/* ============================================================
   Noxera One — public styles
   Ported from noxera-one-landing.html. Adds: form/admin/utility
   styles for non-home pages and the language switcher.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --midnight: #0a0e1a;
  --navy: #0f1528;
  --navy-light: #162040;
  --gold: #c9a96e;
  --gold-light: #e4cc9c;
  --gold-dim: #8a7245;
  --cream: #f5f0e8;
  --cream-dim: #d4cfc7;
  --text-body: #b8b5c0;
  --purple-glow: #2a1f4e;
  --section-gap: 120px;
  --error: #e26d6d;
  --success: #6ec597;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--midnight);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: var(--gold-dim); color: var(--cream); }

/* === STARS BACKGROUND === */
.stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Sits above the home page's .hero-bg gradient (no z-index, treated as 0)
     but below .hero-content (z-index: 2), so the stars twinkle through the
     hero on every page including the homepage. */
  z-index: 1;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-logo span {
  display: block;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold-dim);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 10px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--midnight) !important;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current {
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--cream-dim);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.lang-current:hover { border-color: var(--gold); color: var(--gold); }
.lang-flag { font-size: 14px; line-height: 1; }
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  /* Fully opaque so the hero moon's gold glow can never bleed through
     the dropdown rows. z-index above the nav (100) so it always wins
     against any other stacking context on the page. */
  background: rgb(10, 14, 26);
  border: 1px solid rgba(201, 169, 110, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  list-style: none;
  padding: 6px;
  min-width: 160px;
  z-index: 110;
}
.lang-menu li form { margin: 0; }
.lang-option {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--cream-dim);
  font: inherit;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.lang-option:hover { background: rgba(201, 169, 110, 0.08); color: var(--gold); }
.lang-menu[hidden] { display: none; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Layered ambient glow on top of the body's midnight background. The
     bottom linear-gradient used to be opaque (#0d1225, #151833…), which
     completely hid the .stars-canvas behind it. Switching it to rgba with
     alpha < 1 lets the stars twinkle through while preserving the warm
     navy-to-purple wash. */
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(42, 31, 78, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(15, 21, 40, 0.7) 0%, transparent 70%),
    linear-gradient(180deg, rgba(13, 18, 37, 0) 0%, rgba(21, 24, 51, 0.4) 70%, rgba(26, 21, 64, 0.6) 100%);
}

.hero-moon {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dim) 100%);
  box-shadow:
    0 0 60px rgba(201, 169, 110, 0.3),
    0 0 120px rgba(201, 169, 110, 0.15);
  animation: moonGlow 4s ease-in-out infinite;
}

.hero-moon::after {
  content: '';
  position: absolute;
  top: 8px; left: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.85;
}

@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(201, 169, 110, 0.3), 0 0 120px rgba(201, 169, 110, 0.15); }
  50% { box-shadow: 0 0 80px rgba(201, 169, 110, 0.45), 0 0 160px rgba(201, 169, 110, 0.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  padding: 8px 24px;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 300;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-size: 0.45em;
  color: var(--gold);
  letter-spacing: 12px;
  margin-top: 8px;
  font-weight: 300;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
  margin-top: 24px;
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-body);
  max-width: 500px;
  margin: 28px auto 0;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--midnight);
  border: none;
  padding: 16px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 169, 110, 0.3);
}

/* Disabled / aria-busy state: visually muted, no hover lift, cursor wait.
   Used by the submit-once guard while a form POST is in flight. */
button[disabled],
button[aria-busy="true"] {
  opacity: 0.55;
  cursor: progress;
  pointer-events: none;
}
.btn-primary[disabled]:hover,
.btn-primary[aria-busy="true"]:hover {
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 16px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS COMMON === */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 60px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* === BENEFITS === */
.benefits {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--navy) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto 0;
}

.benefit-card {
  text-align: center;
  padding: 48px 28px;
  border: 1px solid rgba(201, 169, 110, 0.08);
  background: rgba(15, 21, 40, 0.5);
  transition: all 0.5s;
}

.benefit-card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-8px);
  background: rgba(22, 32, 64, 0.4);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.benefit-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
}

/* === PRODUCT === */
.product {
  background: var(--navy);
  overflow: hidden;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.product-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 31, 78, 0.6) 0%, transparent 70%);
  filter: blur(40px);
}

.product-photo {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(201, 169, 110, 0.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-photo:hover { transform: scale(1.03); }

.product-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.25;
}

.product-info h2 em { font-style: italic; color: var(--gold); }

.product-desc {
  font-size: 15px;
  color: var(--text-body);
  margin: 24px 0 36px;
  font-weight: 300;
  line-height: 1.85;
  max-width: 440px;
}

.product-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.product-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-badge .badge-icon { color: var(--gold); font-size: 14px; }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Mandatory food-supplement disclosures (EU regulation + BG Закон за храните).
   Visually understated but always visible — small print, gold accent. */
.supplement-notice {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(15, 21, 40, 0.4);
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream-dim);
}
.supplement-notice-heading {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.supplement-notice ul {
  margin: 0;
  padding-left: 16px;
}
.supplement-notice li {
  margin: 2px 0;
}

.price-current {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--cream);
}

.price-note { font-size: 13px; color: var(--text-body); }

/* === INGREDIENTS === */
.ingredients { background: linear-gradient(180deg, var(--navy) 0%, var(--midnight) 100%); }
.ingredients-inner { max-width: 1100px; margin: 0 auto; }
.ingredients-header { text-align: center; margin-bottom: 70px; }
.ingredients-header p {
  max-width: 550px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.ingredient-item {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid rgba(201, 169, 110, 0.06);
  background: rgba(15, 21, 40, 0.3);
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.ingredient-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.ingredient-item:hover::before { opacity: 1; }

.ingredient-item:hover {
  border-color: rgba(201, 169, 110, 0.15);
  transform: translateY(-4px);
}

.ingredient-dose {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.ingredient-unit { font-size: 14px; color: var(--gold-dim); margin-top: 4px; }

.ingredient-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--cream);
  margin-top: 16px;
  font-weight: 400;
}

.ingredient-detail {
  font-size: 12px;
  color: var(--text-body);
  margin-top: 8px;
  font-weight: 300;
  line-height: 1.6;
}

/* === RITUAL === */
.ritual { background: var(--midnight); text-align: center; }
.ritual-inner { max-width: 800px; margin: 0 auto; }
.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}
.ritual-step { position: relative; }

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.ritual-step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
}

.ritual-step p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.7;
}

/* === TESTIMONIALS === */
.testimonials { background: linear-gradient(180deg, var(--midnight) 0%, var(--navy) 100%); }
.testimonials-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  text-align: left;
  padding: 40px;
  border: 1px solid rgba(201, 169, 110, 0.08);
  background: rgba(15, 21, 40, 0.4);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 13px;
  color: var(--gold-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === CTA === */
.cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(42, 31, 78, 0.4) 0%, transparent 70%),
    var(--navy);
  text-align: center;
  padding: 140px 60px;
}

.cta-inner { max-width: 600px; margin: 0 auto; }
.cta .section-title { font-size: clamp(36px, 4.5vw, 56px); }

.cta p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  margin: 20px 0 40px;
  color: var(--text-body);
}

/* === FOOTER === */
footer {
  position: relative;
  z-index: 1;
  background: var(--midnight);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
  padding: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--text-body);
  letter-spacing: 1px;
  font-weight: 300;
  margin-top: 8px;
  text-transform: none;
}

.footer-links { display: flex; gap: 60px; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold); }

/* Impressum block — sits between footer-links and footer-bottom. Tiny
   inline list of business identifiers per BG/EU e-commerce law. */
.footer-impressum {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(201, 169, 110, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 11px;
  color: var(--text-body-dim, var(--text-body));
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.7;
}
.footer-impressum strong { color: var(--cream-dim); font-weight: 500; }
.footer-impressum a { color: inherit; text-decoration: none; }
.footer-impressum a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(201, 169, 110, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-body);
  font-weight: 300;
}

.footer-trust { display: flex; gap: 24px; }
.footer-trust span { color: var(--gold-dim); }

/* === SCROLL REVEAL === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === GENERIC PAGE === */
.page-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 60px 100px;
}

.page-header { margin-bottom: 40px; }
.page-header .section-divider { margin-top: 16px; }

.prose p {
  margin-bottom: 1.2em;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 300;
  color: var(--text-body);
}

.muted { color: var(--text-body); opacity: 0.85; font-size: 14px; }
.contact-note { margin-top: 30px; font-size: 14px; }
.contact-note a { color: var(--gold); text-decoration: none; }
.contact-note a:hover { text-decoration: underline; }

/* === BREADCRUMBS === */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.breadcrumbs a { color: var(--gold-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--cream-dim); }

/* === FORMS === */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin-top: 30px;
}
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cream-dim);
  text-transform: uppercase;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  background: rgba(15, 21, 40, 0.6);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--cream);
  font: inherit;
  padding: 12px 14px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-stack textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.form-row--equal {
  grid-template-columns: 1fr 1fr;
}
.form-stack fieldset {
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: 16px;
}
.form-stack fieldset legend {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold-dim);
  text-transform: uppercase;
  padding: 0 6px;
}
.form-stack .radio {
  flex-direction: row;
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream-dim);
  font-size: 14px;
  margin-bottom: 8px;
}
.form-stack .radio input { width: auto; }

/* Mandatory consent checkbox on the order form. Inline links inherit the
   gold accent and stay underlined so it's obvious they're tappable. */
.form-stack .checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream-dim);
  font-size: 13px;
  line-height: 1.6;
}
.form-stack .checkbox input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-stack .checkbox a {
  color: var(--gold);
  text-decoration: underline;
}
.form-stack .checkbox a:hover { color: var(--gold-light); }

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.alert {
  padding: 14px 18px;
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 14px;
  /* Match the .order-summary card and .form-stack form below — same
     max-width keeps everything aligned on the same vertical column. */
  max-width: 560px;
}
.alert-error   { border-color: var(--error);   color: var(--error); }
.alert-success { border-color: var(--success); color: var(--success); }
.alert-info    { border-color: var(--gold-dim); color: var(--cream); }

/* Account link in the nav — same compact style as the lang switcher,
   small enough to fit alongside ORDER + lang on mobile. */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  color: var(--cream-dim);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-account:hover { color: var(--gold); border-color: rgba(201, 169, 110, 0.4); }
.nav-account-icon { color: var(--gold); font-size: 8px; }

@media (max-width: 600px) {
  /* Mobile: hide the account text label, keep just the icon dot. */
  .nav-account { padding: 6px 10px; font-size: 11px; }
  .nav-account-label { display: none; }
}

/* Pre-order tier banner — pinned to the very top of the viewport ABOVE
   the nav. The nav gets pushed down by --preorder-banner-h via the
   body.has-preorder class (set in the layout when the campaign is on),
   so the two never visually overlap. Quiet but golden, urgency without
   being shouty. */
:root { --preorder-banner-h: 38px; }

.preorder-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--preorder-banner-h);
  z-index: 110; /* above nav (100) so nav scrolls under, banner stays */
  background: linear-gradient(180deg, rgba(20, 16, 40, 0.96), rgba(15, 21, 40, 0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.3px;
}
.preorder-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.preorder-banner-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold);
  color: var(--midnight);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.preorder-banner strong { color: var(--gold); font-weight: 600; }
.preorder-banner .muted { font-size: 11px; }

/* When the banner exists in the DOM, push the nav down by its height so
   they sit on separate rows. Uses :has() — when preorder is off the
   banner partial renders nothing, the selector doesn't match, and the
   nav sits at top:0 as normal. No JS / body class needed. */
body:has(.preorder-banner) nav { top: var(--preorder-banner-h); }

@media (max-width: 600px) {
  /* Tighter padding on phones; the banner can wrap to 2 lines if needed. */
  :root { --preorder-banner-h: 44px; }
  .preorder-banner { padding: 4px 12px; font-size: 11px; }
  .preorder-banner-inner { gap: 8px; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid rgba(201, 169, 110, 0.1);
  background: rgba(15, 21, 40, 0.5);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--cream);
  font-weight: 400;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold);
  font-size: 22px;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
}

/* Order summary */
.order-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(201, 169, 110, 0.1);
  background: rgba(15, 21, 40, 0.4);
  margin-bottom: 30px;
  /* Align with .form-stack below (same max-width). */
  max-width: 560px;
}
.order-summary img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}
.order-summary h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 8px;
}
.order-summary .price-current { font-size: 24px; }

/* Pre-order: original price strikethrough + savings badge next to the
   discounted price on the order-summary card. */
.price-strike {
  text-decoration: line-through;
  color: var(--cream-dim);
  font-size: 0.65em;
  margin-left: 8px;
  font-weight: 400;
}
.price-save {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--gold);
  color: var(--midnight);
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* Live order preview — appears above the submit button on /order. */
.order-preview {
  border: 1px solid rgba(201, 169, 110, 0.18);
  background: rgba(15, 21, 40, 0.45);
  padding: 16px 20px;
  margin-top: 8px;
}
.order-preview h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.order-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--cream);
}
/* `display:flex` above out-specifies the UA stylesheet's [hidden]{display:none}
   rule, so explicit `hidden` rows (like the promo line before a code is
   applied) would otherwise still render with empty placeholders. */
.order-preview-row[hidden] { display: none; }
.order-preview-label { flex: 1; }
.order-preview-unit { font-size: 13px; }

/* Quantity tile picker (1 / 2 / 3 bottles) — radio cards rendered when
   the volume-discount feature is enabled in admin. Mutually exclusive
   with promo + pre-order, so the tiles never show alongside those. */
.qty-tiles { padding: 0; border: none; margin: 0; }
.qty-tiles legend {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0 0 8px;
}
.qty-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 540px) {
  .qty-tiles-grid { grid-template-columns: 1fr; }
}
.qty-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 18px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.qty-tile:hover { border-color: rgba(201, 169, 110, 0.5); }
.qty-tile-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qty-tile--selected {
  border-color: var(--gold) !important;
  background: rgba(201, 169, 110, 0.08);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.qty-tile-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80px;
  /* Centred so on the 1-bottle tile the lone bottle sits in the middle
     instead of being left-aligned, and on the 3-bottle tile the cluster
     is balanced under the heading. */
  max-width: 100%;
}
.qty-tile-images img {
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}
.qty-tile-label { font-size: 13px; color: var(--cream); }
.qty-tile-price { font-size: 13px; color: var(--gold); }
.qty-tile-save {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.18);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  /* Pin above the bottle images so a tile crowded with 3 bottles can't
     visually obscure the badge. (The bottles have no `position`, so
     z-index on them does nothing; this is the side that needs it.) */
  z-index: 2;
  pointer-events: none;
}
.qty-tile-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a0e1a;
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.order-preview-total {
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
}

.order-receipt {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid rgba(201, 169, 110, 0.15);
}
.order-receipt p { margin-bottom: 8px; font-size: 14px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  /* Direct child only — without `>`, this rule cascades into `.lang-menu li`
     and silently hides the first 3 of the 5 language options on mobile. */
  .nav-links > li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  section { padding: 80px 24px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-inner { grid-template-columns: 1fr; text-align: center; }
  .product-desc { margin-left: auto; margin-right: auto; }
  .product-badges { justify-content: center; }
  .product-visual { min-height: auto; }
  .ingredient-list { grid-template-columns: repeat(2, 1fr); }
  .ritual-steps { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-moon { width: 50px; height: 50px; top: 12%; right: 12%; }
  .hero-moon::after { top: 5px; left: 10px; width: 38px; height: 38px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .page-inner { padding: 140px 24px 80px; }
  .form-row { grid-template-columns: 1fr; }
  .order-summary { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .ingredient-list { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 30px; }
  footer { padding: 40px 24px; }

  /* Tight nav: logo, ORDER CTA, and lang switcher all need to share one
     row without overlapping. Drop the logo wordmark down a size and
     compact every nav element so the three fit at <600px. */
  nav { padding: 14px 14px; }
  .nav-logo { font-size: 16px; letter-spacing: 3px; }
  .nav-logo span { font-size: 8px; letter-spacing: 4px; }
  .nav-links { gap: 8px; }
  .nav-cta { padding: 6px 14px !important; font-size: 11px !important; letter-spacing: 1px !important; }
  .lang-current { padding: 6px 10px; font-size: 11px; }
  .lang-current .lang-code { display: none; } /* keep just the flag — saves ~30px */

  /* Hero moon — purely decorative; hide on very narrow screens so the
     section-label badge "NIGHT RESET — SLEEP & STRESS SUPPORT" has room
     to wrap without colliding into the moon's gold glow. */
  .hero-moon { display: none; }
}

/* === DELIVERY PICKER === */
.delivery-fieldset {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.delivery-fieldset .radio {
  flex: 1 1 200px;
  cursor: pointer;
}
[data-delivery-fields="econt"] select,
[data-delivery-fields="econt"] input[list] {
  font-family: 'Jost', sans-serif;
}
[data-delivery-fields="econt"] select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  padding: 18px 24px;
  animation: cookieSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 300px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cream-dim);
}
.cookie-banner-text strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cookie-banner-text p { font-weight: 300; margin: 0; }
.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 2px;
}
.footer-cookie-link {
  color: var(--gold-dim) !important;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}
.footer-cookie-link:hover { color: var(--gold) !important; }
@media (max-width: 700px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { gap: 14px; }
  .cookie-banner-actions { width: 100%; flex-direction: column-reverse; }
  .cookie-banner .btn-primary,
  .cookie-banner .btn-secondary { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stars-canvas { display: none; }
}
