/* ==========================================================
   MAISON — Design system "Luxury boutique"
   ========================================================== */
:root {
  --cream: hsl(40, 38%, 95%);
  --cream-2: hsl(38, 30%, 90%);
  --sand: hsl(35, 24%, 80%);
  --ink: hsl(30, 8%, 8%);
  --ink-2: hsl(30, 6%, 22%);
  --muted: hsl(30, 6%, 45%);
  --gold: hsl(38, 52%, 52%);
  --gold-2: hsl(40, 62%, 70%);
  --gold-grad: linear-gradient(120deg, hsl(36, 48%, 42%) 0%, hsl(42, 70%, 72%) 45%, hsl(36, 50%, 46%) 100%);
  --line: hsla(30, 10%, 10%, 0.12);
  --surface: hsla(40, 40%, 98%, 0.78);
  --surface-solid: hsl(40, 40%, 98%);
  --header-bg: hsla(40, 38%, 95%, 0.84);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --header-h: 84px;
}

/* ---------- Modalità Notte (Dark Theme) ---------- */
[data-theme="dark"] {
  --cream: hsl(30, 12%, 7%);
  --cream-2: hsl(30, 12%, 11%);
  --sand: hsl(34, 18%, 26%);
  --ink: hsl(40, 36%, 94%);
  --ink-2: hsl(38, 22%, 76%);
  --muted: hsl(35, 14%, 58%);
  --gold: hsl(39, 58%, 58%);
  --gold-2: hsl(42, 74%, 76%);
  --line: hsla(40, 40%, 85%, 0.13);
  --surface: hsla(30, 14%, 11%, 0.88);
  --surface-solid: hsl(30, 14%, 11%);
  --header-bg: hsla(30, 12%, 7%, 0.86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grana leggera tipo carta */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--gold-2); }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.display {
  font-family: var(--f-display); font-weight: 300; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
}
.display em { font-style: italic; font-weight: 400; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.05; }
.h2 em { font-style: italic; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--gold-grad); }
.btn--dark:hover { color: var(--ink); border-color: var(--gold); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.link-u { position: relative; padding-bottom: 4px; }
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-u:hover::after, .link-u.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Announcement bar ---------- */
.topbar { background: var(--ink); color: var(--cream-2); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; overflow: hidden; height: 36px; display: flex; align-items: center; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding-inline: 32px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--gold); margin-left: 64px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 40px -30px hsla(30, 20%, 10%, .4); }
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav { display: flex; gap: 36px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; align-items: center; }
.nav a { display: inline-flex; gap: 8px; align-items: center; }
.nav .soon { color: var(--muted); cursor: not-allowed; display: inline-flex; gap: 8px; align-items: center; }
.nav small { font-size: .55rem; letter-spacing: .15em; border: 1px solid var(--gold); color: var(--gold); padding: 2px 6px; border-radius: 20px; line-height: 1.2; }
.logo { font-family: var(--f-display); font-size: 1.85rem; letter-spacing: .34em; font-weight: 500; text-transform: uppercase; text-align: center; line-height: 1; }
.logo small { display: block; font-family: var(--f-body); font-size: .5rem; letter-spacing: .6em; color: var(--muted); margin-top: 6px; font-weight: 400; }
.actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: background .3s;
}
.icon-btn:hover { background: hsla(30, 10%, 10%, .06); }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.2; }
.icon-btn .badge {
  position: absolute; top: 6px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px;
  background: var(--ink); color: var(--cream); font-size: .58rem; display: grid; place-items: center; font-weight: 500;
}
.avatar-mini {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--gold-grad); box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--gold);
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__text > * + * { margin-top: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 220px 220px 2px 2px; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, hsla(30, 20%, 10%, .25)); }
.hero__seal {
  position: absolute; left: -46px; bottom: 60px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--gold-2); display: grid; place-items: center; z-index: 2;
  box-shadow: 0 20px 50px -20px hsla(30, 30%, 10%, .6);
}
.hero__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__seal text { font-family: var(--f-body); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; fill: var(--gold-2); }
.hero__seal b { font-family: var(--f-display); font-size: 2rem; font-weight: 400; font-style: italic; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__tag {
  position: absolute; right: -18px; top: 48px; z-index: 2; padding: 14px 20px; background: hsla(40, 38%, 97%, .78);
  backdrop-filter: blur(10px); border: 1px solid hsla(38, 52%, 52%, .4); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase;
  animation: float 5s ease-in-out infinite;
}
.hero__tag strong { display: block; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: 0; text-transform: none; font-weight: 500; font-style: italic; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: fit-content; }
.countdown__cell { padding: 18px 26px; text-align: center; position: relative; }
.countdown__cell + .countdown__cell { border-left: 1px solid var(--line); }
.countdown__num { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.countdown__lbl { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.countdown.is-done { padding: 18px 26px; font-family: var(--f-display); font-size: 1.8rem; font-style: italic; }

/* ---------- Ribbon ---------- */
.ribbon { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--cream-2); }
.ribbon .marquee { animation-duration: 50s; }
.ribbon span { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-style: italic; letter-spacing: 0; text-transform: none; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section__head > div > * + * { margin-top: 18px; }

/* ---------- Mystery Clue Cards (con Nuvoletta + Scena Animata ReactBits) ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 34px);
  align-items: stretch;
}
.product {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Nuvoletta (Speech Bubble) sopra la card */
.product__bubble {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 74px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: hsla(40, 45%, 98%, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(38, 52%, 52%, 0.42);
  border-radius: 18px 18px 18px 6px;
  box-shadow:
    0 18px 38px -22px hsla(30, 30%, 10%, 0.28),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.8);
  transition:
    transform 0.45s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.4s var(--ease);
  animation: bubbleFloat 5.2s ease-in-out infinite;
  z-index: 5;
}
.product:nth-child(2) .product__bubble { animation-delay: -1.7s; }
.product:nth-child(3) .product__bubble { animation-delay: -3.4s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Codino della nuvoletta che punta alla scena dell'indizio */
.product__bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: hsla(40, 45%, 98%, 0.96);
  border-right: 1px solid hsla(38, 52%, 52%, 0.42);
  border-bottom: 1px solid hsla(38, 52%, 52%, 0.42);
  transform: rotate(45deg);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.product:hover .product__bubble,
.product.is-speaking .product__bubble {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--gold);
  box-shadow: 0 22px 44px -20px hsla(38, 55%, 30%, 0.36);
}
.product.is-speaking .product__bubble {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--gold);
}
.product.is-speaking .product__bubble::after {
  background: var(--ink);
  border-color: var(--gold);
}

.product__bubble-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  margin-top: 1px;
  box-shadow: 0 0 12px hsla(42, 80%, 65%, 0.45);
  transition: transform 0.5s var(--ease);
}
.product:hover .product__bubble-icon,
.product.is-speaking .product__bubble-icon {
  transform: rotate(90deg) scale(1.1);
}

.product__bubble-text {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-style: italic;
  line-height: 1.32;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.product.is-speaking .product__bubble-text {
  color: var(--cream);
}

/* Scena animata interattiva (sostituisce le vecchie foto sfocate) */
.product__media.product__scene {
  position: relative;
  aspect-ratio: 4 / 4.8;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: radial-gradient(125% 100% at 50% 0%, hsl(32, 14%, 17%) 0%, hsl(30, 10%, 7%) 70%);
  border: 1px solid hsla(38, 52%, 52%, 0.32);
  box-shadow:
    0 34px 65px -35px hsla(30, 35%, 8%, 0.65),
    inset 0 1px 0 hsla(42, 80%, 82%, 0.14);
}
.product__scene--essence {
  background: radial-gradient(125% 100% at 50% 0%, hsl(345, 16%, 17%) 0%, hsl(30, 10%, 7%) 72%);
}
.product__scene--eternal {
  background: radial-gradient(125% 100% at 50% 0%, hsl(38, 22%, 17%) 0%, hsl(30, 10%, 7%) 72%);
}

/* Cornice interna dorata */
.product__scene::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid hsla(38, 52%, 52%, 0.14);
  border-radius: 9px;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.45s var(--ease);
}
.product:hover .product__scene::after {
  border-color: hsla(42, 70%, 70%, 0.34);
}

/* Canvas particelle e aurora */
.product__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.product__aurora {
  position: absolute;
  inset: 0;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.product__aurora span {
  position: absolute;
  border-radius: 50%;
  animation: sceneAurora 12s ease-in-out infinite alternate;
}
.product__aurora span:nth-child(1) {
  width: 65%;
  height: 55%;
  top: -12%;
  left: -10%;
  background: hsla(38, 68%, 48%, 0.45);
}
.product__aurora span:nth-child(2) {
  width: 60%;
  height: 50%;
  bottom: -10%;
  right: -12%;
  background: hsla(350, 45%, 52%, 0.28);
  animation-delay: -5s;
}
@keyframes sceneAurora {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, 10%) scale(1.18); }
}

/* Top bar della card (Chip stato + Pill minigioco) */
.product__top-bar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: hsla(30, 10%, 6%, 0.78);
  color: var(--cream);
  border: 1px solid hsla(38, 52%, 52%, 0.35);
  padding: 6px 11px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product__chip svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold-2);
}
.product__game-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: hsla(38, 52%, 52%, 0.14);
  border: 1px solid hsla(42, 70%, 70%, 0.3);
  padding: 6px 10px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.product__game-pill svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold-2);
}
.product:hover .product__game-pill {
  background: hsla(38, 52%, 52%, 0.26);
}

/* Illustrazione SVG animata al centro della scena */
.product__art {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  place-items: center;
  margin-block: 4px;
  transition: transform 0.25s ease-out;
}
.scene-svg {
  width: min(100%, 205px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 8px 24px hsla(38, 70%, 50%, 0.22));
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px), 24px);
  transition: transform 0.3s ease-out, filter 0.4s var(--ease);
}
.product:hover .scene-svg {
  filter: drop-shadow(0 10px 30px hsla(42, 85%, 65%, 0.42));
}

.scene-orbit { transform-origin: 120px 120px; }
.scene-orbit--slow { animation: orbitSpin 28s linear infinite; }
.scene-orbit--reverse { animation: orbitSpinReverse 22s linear infinite; }
.scene-orbit--pulse { animation: orbitPulse 5s ease-in-out infinite; }
.scene-core {
  transform-origin: 120px 120px;
  transition: transform 0.5s var(--ease);
}
.scene-core--float { animation: coreFloat 4.2s ease-in-out infinite; }
.product:hover .scene-core { transform: scale(1.1); }

.scene-wave {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
  animation: waveRise 4.5s ease-in-out infinite alternate;
}
.scene-wave--2 { animation-delay: -1.5s; }
.scene-wave--3 { animation-delay: -3s; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinReverse { to { transform: rotate(-360deg); } }
@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes coreFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes waveRise {
  0% { transform: translateY(4px); opacity: 0.45; }
  100% { transform: translateY(-6px); opacity: 0.95; }
}

/* Box Indizio Interattivo dentro la scena animata */
.product__clue-stage {
  position: relative;
  z-index: 4;
  background: hsla(30, 12%, 8%, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(42, 70%, 70%, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  outline: none;
}
.product__clue-stage:hover,
.product__clue-stage:focus-visible {
  border-color: var(--gold-2);
  background: hsla(30, 12%, 10%, 0.9);
  box-shadow: 0 12px 30px -12px hsla(42, 80%, 55%, 0.4);
}
.product__clue-stage.is-shaking {
  animation: lockShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  border-color: var(--gold-2);
}
@keyframes lockShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.product__clue-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 5px;
}
.product__clue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 8px var(--gold-2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

.product__clue-preview {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.1em;
  min-height: 1.45em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: letter-spacing 0.4s var(--ease), color 0.4s var(--ease);
}
.product:hover .product__clue-preview {
  color: var(--gold-2);
}

/* Stato sbloccato (pronto per quando verranno collegati i minigiochi) */
.product.is-unlocked .product__chip {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-2);
  font-weight: 500;
}
.product.is-unlocked .product__chip svg { stroke: var(--ink); }
.product.is-unlocked .product__clue-preview {
  letter-spacing: 0.01em;
  color: var(--gold-2);
}

/* Footer info sotto la card */
.product__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  gap: 12px;
}
.product__name { font-family: var(--f-display); font-size: 1.45rem; font-weight: 400; }
.product__meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.product__meta.is-locked { color: var(--gold); transition: color .3s ease, transform .3s ease; display: inline-flex; align-items: center; gap: 4px; }
.product:hover .product__meta.is-locked { color: var(--ink); transform: translateX(2px); }
.product__meta.is-revealed {
  display: block; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0;
  text-transform: none; font-style: italic; font-weight: 500; color: var(--ink);
  animation: revealClue .6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes revealClue {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.product__price { font-size: .8rem; letter-spacing: .1em; color: var(--gold); white-space: nowrap; font-weight: 400; }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.perk { padding: 40px 28px; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; }
.perk svg { width: 28px; height: 28px; stroke: var(--gold); stroke-width: 1.1; margin-bottom: 22px; }
.perk h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 6px; }
.perk p { font-size: .9rem; color: var(--muted); }

/* CTA dark */
.cta-dark { background: var(--ink); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.cta-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, hsla(40, 60%, 55%, .22), transparent 60%); pointer-events: none;
}
.cta-dark .container { position: relative; }
.cta-dark .eyebrow { color: var(--sand); }
.cta-dark .h2 { margin: 22px auto 34px; max-width: 18ch; }
.cta-dark .btn { border-color: var(--gold); }
.cta-dark .btn--ghost { color: var(--cream); }
.cta-dark .btn--ghost::before { background: var(--gold-grad); }
.cta-dark .btn--ghost:hover { color: var(--ink); }

/* ---------- Page hero (about / profilo) ---------- */
.page-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); text-align: center; }
.page-hero .display { margin-top: 24px; }
.page-hero .lead { margin: 26px auto 0; text-align: center; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.story__img { aspect-ratio: 4 / 5; overflow: hidden; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.story__img:hover img { transform: scale(1.05); }
.story__text > * + * { margin-top: 24px; }
.story__text p { color: var(--ink-2); }
.signature { font-family: var(--f-display); font-style: italic; font-size: 2rem; color: var(--gold); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--cream); padding: 48px 36px; transition: background .5s var(--ease); }
.value:hover { background: var(--cream-2); }
.value__n { font-family: var(--f-display); font-size: 3.4rem; font-style: italic; color: var(--gold); line-height: 1; }
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; margin: 18px 0 10px; }
.value p { color: var(--muted); font-size: .95rem; }

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-weight: 200; font-size: 1.8rem; transition: transform .4s var(--ease); color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--ink-2); max-width: 64ch; animation: fadeUp .5s var(--ease); }

/* ---------- Profilo ---------- */
.auth { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; padding-bottom: 120px; }
.auth__aside > * + * { margin-top: 24px; }
.auth__aside ul { list-style: none; display: grid; gap: 16px; margin-top: 32px; }
.auth__aside li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.auth__aside li::before { content: "✦"; color: var(--gold); }

.card { background: hsla(40, 40%, 98%, .7); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -60px hsla(30, 30%, 10%, .35); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--sand);
  padding: 10px 0; outline: none; border-radius: 0; transition: border-color .3s; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input:invalid:not(:placeholder-shown) { border-color: hsl(0, 50%, 55%); }
fieldset.field { border: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  display: block; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 0%, .1); transition: transform .3s var(--ease), box-shadow .3s;
}
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--ink); transform: scale(1.08); }
.swatch span:hover { transform: scale(1.12); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 18px; border: 1px solid var(--sand); border-radius: 40px; font-size: .82rem; cursor: pointer; transition: all .3s var(--ease); }
.chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip span:hover { border-color: var(--ink); }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.form__note { font-size: .78rem; color: var(--muted); max-width: 36ch; }

/* Member card */
.member { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: 120px; }
.mcard {
  position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 30px; color: var(--cream);
  background: radial-gradient(120% 140% at 0% 0%, hsl(30, 8%, 20%), var(--ink) 55%);
  overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 50px 80px -40px hsla(30, 30%, 8%, .7); transform-style: preserve-3d; transition: transform .2s ease-out;
}
.mcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, hsla(42, 80%, 75%, .22) 48%, transparent 62%);
  background-size: 250% 100%; animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -60% 0; } }
.mcard__top { display: flex; justify-content: space-between; align-items: start; }
.mcard__logo { font-family: var(--f-display); letter-spacing: .32em; font-size: 1.1rem; text-transform: uppercase; }
.mcard__tier { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold-2); padding: 5px 10px; border-radius: 20px; }
.mcard__chip { width: 46px; height: 34px; border-radius: 6px; background: var(--gold-grad); opacity: .9; }
.mcard__name { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; line-height: 1.1; }
.mcard__row { display: flex; justify-content: space-between; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sand); margin-top: 8px; }
.mcard__row b { display: block; color: var(--cream); font-weight: 400; letter-spacing: .14em; font-size: .78rem; margin-top: 4px; }

.member__info > * + * { margin-top: 28px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dl div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.dl dd { font-family: var(--f-display); font-size: 1.35rem; margin-top: 4px; display: flex; align-items: center; gap: 10px; }
.dl .dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.12); }
.orders { border: 1px dashed var(--sand); padding: 28px; display: flex; gap: 20px; align-items: center; }
.orders svg { width: 34px; height: 34px; stroke: var(--gold); flex: none; stroke-width: 1.1; }
.orders h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.orders p { font-size: .88rem; color: var(--muted); }
.member__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--text { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding: 18px 8px; }
.btn--text:hover { color: hsl(0, 45%, 45%); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid hsla(40, 20%, 80%, .14); }
.footer .logo { color: var(--cream); text-align: left; }
.footer p { font-size: .9rem; max-width: 36ch; margin-top: 20px; }
.footer h4 { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); font-weight: 400; margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 12px; font-size: .92rem; }
.footer a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 28px; font-size: .72rem; letter-spacing: .14em; flex-wrap: wrap; gap: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 140%); z-index: 100;
  background: var(--ink); color: var(--cream); padding: 16px 26px; font-size: .82rem; letter-spacing: .06em;
  display: flex; gap: 12px; align-items: center; border: 1px solid hsla(38, 52%, 52%, .5);
  transition: transform .6s var(--ease); box-shadow: 0 24px 50px -20px hsla(30, 30%, 8%, .6); max-width: calc(100% - 32px);
}
.toast::before { content: "✦"; color: var(--gold); }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Auth & Login Tabs ---------- */
[hidden] { display: none !important; }

.view-loading { min-height: 60vh; display: grid; place-items: center; }
.loader { width: 44px; height: 44px; border: 2px solid var(--sand); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }

.tabs { display: flex; justify-content: center; gap: 32px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.tabs--single { display: none; }
.tab {
  font-family: var(--f-display); font-size: 1.5rem; color: var(--muted); padding-bottom: 16px;
  position: relative; transition: color .4s var(--ease);
}
.tab.is-active { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.tab.is-active::after { transform: scaleX(1); }

.card--narrow { max-width: 480px; margin-inline: auto; }
.card--wide { max-width: 880px; margin-inline: auto; }
.form--single { display: grid; grid-template-columns: 1fr; gap: 24px; }

.pw { position: relative; display: flex; align-items: center; }
.pw input { padding-right: 70px; }
.pw__toggle {
  position: absolute; right: 0; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 8px 0; transition: color .3s;
}
.pw__toggle:hover { color: var(--ink); }

.form__sep { text-align: center; position: relative; margin: 16px 0 8px; }
.form__sep::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.form__sep span { position: relative; background: hsla(40, 40%, 98%, 1); padding: 0 16px; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--gold); }

.form__error { color: hsl(0, 65%, 50%); font-size: .84rem; margin-top: -6px; min-height: 1.2em; }
.btn--text-plain { padding: 0; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.btn--text-plain:hover { color: var(--ink); border-bottom-color: var(--ink); }

.is-busy { opacity: .6; pointer-events: none; }

.dl__full { grid-column: 1 / -1; }

.admin { display: grid; gap: 28px; max-width: 1120px; margin-inline: auto; padding-bottom: 120px; }
.admin__state { font-family: var(--f-display); font-size: 2.4rem; color: var(--gold); margin: 12px 0 6px; }

/* KPI Riepilogo Capo */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.admin-kpi {
  background: hsla(40, 42%, 98%, 0.85);
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 50px -40px hsla(30, 30%, 10%, 0.3);
}
.admin-kpi__lbl { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.admin-kpi__val { font-family: var(--f-display); font-size: 2rem; font-weight: 400; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.admin-kpi__sub { font-size: 0.76rem; color: var(--gold); }

.admin-tabs {
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.admin-grid-salon {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

/* Switch e Toggle Admin */
.admin-toggle-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: hsla(38, 35%, 92%, 0.55);
  border: 1px solid var(--line);
}
.admin-toggle-box strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: none;
}
.admin-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.admin-switch span {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 30px;
  background: var(--sand);
  transition: background 0.35s var(--ease);
}
.admin-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 2px 6px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.35s var(--ease);
}
.admin-switch input:checked + span {
  background: var(--gold);
}
.admin-switch input:checked + span::after {
  transform: translateX(22px);
}
.admin-switch small {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Editor dei 3 Indizi */
.admin-clues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.admin-clue-card {
  padding: 24px;
  background: hsla(40, 38%, 96%, 0.7);
  border: 1px solid var(--line);
}
.admin-clue-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-clue-card__head h4 {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 400;
}

/* Lista Annunci Collezione (in Admin) */
.admin-ann-list {
  display: grid;
  gap: 16px;
}
.admin-ann-item {
  padding: 20px;
  background: hsla(40, 38%, 96%, 0.75);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.admin-ann-item.is-pub {
  border-left: 3px solid var(--gold);
}
.admin-ann-item.is-draft {
  opacity: 0.82;
  border-style: dashed;
}
.admin-ann-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-ann-item__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-pill {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--sand);
  color: var(--muted);
}
.admin-pill--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 500;
}
.admin-ann-item__date {
  font-size: 0.75rem;
  color: var(--muted);
}
.admin-ann-item__order {
  display: flex;
  gap: 4px;
}
.icon-btn-sm {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.icon-btn-sm:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--cream-2);
}
.icon-btn-sm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.admin-ann-item__title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.admin-ann-item__body {
  font-size: 0.92rem;
  color: var(--ink-2);
  white-space: pre-line;
}
.admin-ann-item__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.btn--text-plain.is-danger:hover {
  color: hsl(0, 65%, 45%);
  border-bottom-color: hsl(0, 65%, 45%);
}

/* Sezione Collezione / Annunci in Home */
.salon-section {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.salon-card {
  background: hsla(40, 42%, 98%, 0.9);
  border: 1px solid hsla(38, 52%, 52%, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -40px hsla(30, 30%, 10%, 0.35);
}
.salon-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
}
.salon-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.salon-card:hover .salon-card__media img {
  transform: scale(1.05);
}
.salon-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.salon-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.salon-card__badge {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid hsla(38, 52%, 52%, 0.45);
  padding: 4px 10px;
  border-radius: 20px;
}
.salon-card__date {
  font-size: 0.75rem;
  color: var(--muted);
}
.salon-card__title {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
}
.salon-card__text {
  color: var(--ink-2);
  font-size: 0.96rem;
  white-space: pre-line;
}

/* ---------- Integrazione Completa Modalità Notte per Menù, Card e Controlli ---------- */
.icon-btn--theme svg {
  transition: transform 0.5s var(--ease), color 0.3s;
}
.icon-btn--theme:hover svg {
  transform: rotate(22deg) scale(1.1);
  color: var(--gold);
}

[data-theme="dark"] .topbar {
  background: hsl(30, 14%, 5%);
  color: hsl(38, 30%, 84%);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .header {
  border-bottom-color: hsla(40, 40%, 85%, 0.08);
}
[data-theme="dark"] .header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 14px 44px -24px hsla(0, 0%, 0%, 0.85);
}
[data-theme="dark"] .icon-btn:hover {
  background: hsla(40, 40%, 90%, 0.08);
}
[data-theme="dark"] .icon-btn .badge {
  background: var(--gold);
  color: hsl(30, 12%, 8%);
}
[data-theme="dark"] .hero__tag {
  background: hsla(30, 14%, 11%, 0.84);
  color: var(--ink);
  border-color: hsla(40, 60%, 60%, 0.45);
}
[data-theme="dark"] .hero__seal {
  background: hsl(30, 14%, 12%);
  border: 1px solid hsla(40, 60%, 60%, 0.35);
}
[data-theme="dark"] .btn--dark {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: hsl(30, 12%, 8%);
  border-color: transparent;
  font-weight: 500;
}
[data-theme="dark"] .btn--dark::before {
  background: hsl(40, 38%, 95%);
}
[data-theme="dark"] .btn--dark:hover {
  color: hsl(30, 12%, 8%);
  border-color: transparent;
}
[data-theme="dark"] .btn--ghost {
  border-color: hsla(40, 40%, 85%, 0.35);
  color: var(--ink);
}
[data-theme="dark"] .btn--ghost::before {
  background: var(--gold-grad);
}
[data-theme="dark"] .btn--ghost:hover {
  color: hsl(30, 12%, 8%);
  border-color: var(--gold);
}
[data-theme="dark"] .product__bubble {
  background: hsla(30, 14%, 12%, 0.94);
  border-color: hsla(40, 62%, 62%, 0.42);
  box-shadow:
    0 18px 38px -20px hsla(0, 0%, 0%, 0.75),
    inset 0 1px 0 hsla(42, 80%, 85%, 0.12);
}
[data-theme="dark"] .product__bubble::after {
  background: hsl(30, 14%, 12%);
  border-right-color: hsla(40, 62%, 62%, 0.42);
  border-bottom-color: hsla(40, 62%, 62%, 0.42);
}
[data-theme="dark"] .product.is-speaking .product__bubble {
  background: hsl(34, 24%, 16%);
  border-color: var(--gold-2);
}
[data-theme="dark"] .product.is-speaking .product__bubble::after {
  background: hsl(34, 24%, 16%);
  border-color: var(--gold-2);
}
[data-theme="dark"] .card,
[data-theme="dark"] .admin-kpi,
[data-theme="dark"] .salon-card {
  background: var(--surface);
  border-color: hsla(40, 50%, 60%, 0.22);
  box-shadow: 0 36px 70px -45px hsla(0, 0%, 0%, 0.85);
}
[data-theme="dark"] .admin-clue-card,
[data-theme="dark"] .admin-ann-item,
[data-theme="dark"] .admin-toggle-box {
  background: hsla(30, 14%, 14%, 0.78);
  border-color: var(--line);
}
[data-theme="dark"] .form__sep span {
  background: var(--surface-solid);
}
[data-theme="dark"] .field select option {
  background: hsl(30, 12%, 11%);
  color: var(--ink);
}
[data-theme="dark"] .chip input:checked + span {
  background: var(--gold);
  color: hsl(30, 12%, 8%);
  border-color: var(--gold);
  font-weight: 500;
}
[data-theme="dark"] .cta-dark {
  background: hsl(30, 14%, 5%);
  color: hsl(40, 38%, 95%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .cta-dark .eyebrow { color: var(--gold-2); }
[data-theme="dark"] .cta-dark .btn--ghost { color: hsl(40, 38%, 95%); }
[data-theme="dark"] .cta-dark .btn--ghost:hover { color: hsl(30, 12%, 8%); }
[data-theme="dark"] .footer {
  background: hsl(30, 14%, 4%);
  color: hsl(35, 18%, 72%);
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .footer .logo { color: hsl(40, 38%, 95%); }
[data-theme="dark"] .toast {
  background: hsl(30, 14%, 12%);
  color: hsl(40, 38%, 95%);
  border-color: var(--gold);
  box-shadow: 0 24px 50px -15px hsla(0, 0%, 0%, 0.9);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .story, .auth, .member, .admin-grid-2, .admin-grid-salon { grid-template-columns: 1fr; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .hero__media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__seal { left: -10px; }
  .hero__tag { right: 0; }
  .products { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .products > .product:nth-child(3) { grid-column: 1 / -1; max-width: 440px; width: 100%; margin-inline: auto; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(2) { border-right: 0; }
  .perk { border-bottom: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }

  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    box-shadow: 0 24px 48px -20px hsla(0, 0%, 0%, 0.45);
    transition: all .45s var(--ease);
  }
  .nav a, .nav .soon { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .header__left { display: flex; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .logo { font-size: 1.35rem; letter-spacing: .26em; }
  .logo small { display: block; font-size: .42rem; letter-spacing: .4em; }
  .products, .perks, .form, .dl, .admin-kpis { grid-template-columns: 1fr; }
  .admin-tabs { gap: 14px 20px; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .admin-tabs .tab { font-size: 1.2rem; white-space: nowrap; }
  .admin-toggle-box { flex-direction: column; align-items: flex-start; }
  .products { gap: 36px; }
  .products > .product:nth-child(3) { max-width: none; }
  .product__bubble {
    min-height: 64px;
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: 16px 16px 16px 6px;
  }
  .product__bubble-text { font-size: 1.02rem; }
  .product__media.product__scene {
    aspect-ratio: 4 / 4.4;
    padding: 15px;
  }
  .scene-svg { width: min(100%, 175px); }
  .product__clue-stage { padding: 11px 12px; }
  .product__clue-preview { font-size: 1.12rem; }
  .perk { border-right: 0; }
  .countdown__cell { padding: 14px 14px; }
  .hero__seal { width: 104px; height: 104px; bottom: 30px; }
  .footer__grid { grid-template-columns: 1fr; }
  .icon-btn--bag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
