/* =========================================
   MEIYO BURGER — Newsletter modal
   ========================================= */

.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1 !important;
  animation: none !important;
}
.nl-modal.open { display: flex !important; opacity: 1 !important; }

.nl-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: calc(100dvh - 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--meiyo-black);
  color: #fff;
  border: 1px solid rgba(255,214,0,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.nl-modal.open .nl-modal__dialog {
  animation: nlPop .3s cubic-bezier(.2,.7,.3,1.1) both !important;
}

@keyframes nlPop {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.nl-modal__visual {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 220px;
}
.nl-modal__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.nl-modal__visual-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: var(--meiyo-yellow);
  color: var(--meiyo-black);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 8px 14px;
}
.nl-modal__visual-bottom {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: .9;
  color: var(--meiyo-yellow);
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}

.nl-modal__body {
  padding: 40px 36px;
  overflow-y: auto;
  max-height: calc(100dvh - 48px);
}

.nl-modal__kicker {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--meiyo-yellow);
  margin-bottom: 12px;
  display: block;
}

.nl-modal__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: .95;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.nl-modal__title .hl { color: var(--meiyo-yellow); }

.nl-modal__lead {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  margin: 0 0 24px;
  line-height: 1.55;
}

.nl-modal__form { display: grid; gap: 14px; }

.nl-modal__form .nl-field { display: block; }

.nl-modal__form label {
  display: block;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}
.nl-modal__form .req { color: var(--meiyo-yellow); margin-left: 2px; }

.nl-modal__form input[type="text"],
.nl-modal__form input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 4px;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.nl-modal__form input::placeholder { color: rgba(255,255,255,.35); }
.nl-modal__form input:focus {
  outline: none;
  border-color: var(--meiyo-yellow);
  background: rgba(255,214,0,.06);
}
.nl-modal__form input.has-error {
  border-color: #ff5e5e;
  background: rgba(255,94,94,.08);
}

.nl-modal__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.nl-modal__consent input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: var(--meiyo-yellow);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.nl-modal__consent label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,.72);
  font-weight: 400;
  cursor: pointer;
}
.nl-modal__consent a {
  color: var(--meiyo-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nl-modal__consent.has-error label { color: #ff8e8e; }

.nl-modal__submit {
  margin-top: 8px;
  background: var(--meiyo-yellow);
  color: var(--meiyo-black);
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 0;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.nl-modal__submit:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}
.nl-modal__submit:disabled { opacity: .55; cursor: wait; }

.nl-modal__error {
  background: rgba(255,94,94,.12);
  border: 1px solid rgba(255,94,94,.35);
  color: #ffbcbc;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 4px;
  display: none;
}
.nl-modal__error.show { display: block; }

.nl-modal__legal {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 10px;
  line-height: 1.5;
}

.nl-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, transform .15s;
}
.nl-modal__close:hover {
  background: var(--meiyo-yellow);
  color: var(--meiyo-black);
  border-color: var(--meiyo-yellow);
  transform: rotate(90deg);
}
.nl-modal__close svg { width: 16px; height: 16px; }

.nl-modal__success {
  display: none;
  text-align: center;
  padding: 16px 0;
}
.nl-modal__success.show { display: block; }
.nl-modal__success-mark {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--meiyo-yellow);
  display: grid;
  place-items: center;
}
.nl-modal__success-mark svg { width: 36px; height: 36px; color: var(--meiyo-black); }

/* ===== Discount code card ===== */
.nl-code-card {
  display: block;
  width: 100%;
  margin: 24px 0 20px;
  padding: 22px 20px;
  background: var(--meiyo-yellow);
  color: var(--meiyo-black);
  border: 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  border-radius: 6px;
  transition: transform .15s, box-shadow .15s;
}
.nl-code-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 214, 0, .25);
}
.nl-code-card.copied {
  background: #57c468;
  color: #fff;
}
.nl-code-card__label {
  display: block;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 6px;
}
.nl-code-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.nl-code-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(0,0,0,.12);
  padding: 6px 12px;
  border-radius: 999px;
}
.nl-code-card.copied .nl-code-card__hint {
  background: rgba(255,255,255,.2);
}

/* ===== Order CTA in success view ===== */
.nl-modal__cta-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: var(--meiyo-black);
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background .15s, transform .15s;
  margin-bottom: 18px;
}
.nl-modal__cta-order:hover {
  background: var(--meiyo-yellow);
  transform: translateY(-1px);
}
.nl-modal__cta-order svg {
  width: 18px;
  height: 18px;
}

body[data-lang="it"] .nl-modal [data-lang-en],
body[data-lang="en"] .nl-modal [data-lang-it] {
  display: none !important;
}

@media (max-width: 760px) {
  .nl-modal { padding: 0; }
  .nl-modal__dialog {
    grid-template-columns: 1fr;
    max-height: 100dvh;
    height: 100dvh;
  }
  .nl-modal__visual { min-height: 160px; max-height: 200px; }
  .nl-modal__body { padding: 28px 22px; }
}
