/* Site-wide palette and background (public pages)
   Near-black with a magenta-violet accent. Every public page reads its colours
   from the tokens below; theme.css styles the buttons and navbar with them, and a
   seasonal theme (archived in seasonal_themes/) can layer decorations on top. */
/* ═══ Theme tokens ═══════════════════════════════════════════════════════
     base    #09090d  page backdrop (near-black, faint violet)
     teal    #e879ff  accent role — links, highlights, active states. The name is
                      historical; the accent is magenta. Buttons use the
                      600 → 700 gradient (#c523df → #a315c8) with white text.
     mint    #f0d4fa  highlight text (soft lilac)
     ink / text / muted / dim: lilac-tinted greys
     deep    #01050d  shadow tint
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --aura-base: #09090d;
  --aura-deep: #01050d;
  --aura-teal: #e879ff;
  --aura-teal-600: #c523df;
  --aura-teal-700: #a315c8;
  --aura-cyan: #d56ee9;
  --aura-mint: #f0d4fa;

  --aura-ink: #f1edf4;
  --aura-text: #d9cfe0;
  --aura-muted: #a69bac;
  --aura-dim: #7f7685;

  --aura-surface: rgba(12, 14, 16, 0.6);
  --aura-surface-2: rgba(var(--aura-mint-rgb), 0.035);
  --aura-line: rgba(var(--aura-mint-rgb), 0.09);
  --aura-line-strong: rgba(var(--aura-teal-rgb), 0.45);

  --aura-grad: linear-gradient(135deg, var(--aura-grad-a) 0%, var(--aura-grad-b) 100%);

  /* Layered shadows tinted with the deepest backdrop colour instead of black */
  --shadow-sm: 0 1px 2px rgba(1, 5, 13, .35), 0 4px 12px -4px rgba(1, 5, 13, .45);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 2px 6px rgba(1, 5, 13, .35), 0 14px 32px -12px rgba(1, 5, 13, .65);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 4px 10px rgba(1, 5, 13, .4), 0 26px 56px -18px rgba(1, 5, 13, .8);

  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Palette roles. Hard-coded colours on public pages point here, so the
     whole site is recoloured from this one block. */
  --aura-snow: #f6eef9;
  --aura-teal-300: #f0a6ff;
  --aura-ice: #e9c8f5;
  --aura-grad-a: #c523df;
  --aura-grad-b: #a315c8;
  --aura-mint-rgb: 222, 195, 233;
  --aura-teal-rgb: 232, 121, 255;
  --aura-ice-rgb: 233, 200, 245;
  --aura-panel-rgb: 18, 16, 22;
  --aura-panel-2-rgb: 25, 20, 29;
  --aura-panel-deep-rgb: 9, 9, 13;
  --aura-footer: #08070b;
}

/* Base colour on BODY - blend modes composite against this */
html body {
  background-color: #09090d !important;
  background-image: none !important;
}

/* Wrapper is NOT positioned so it creates no stacking context:
   each layer is fixed behind content (z-index:-1) and blends against the body.
   Layers never animate, so one composited layer each (translateZ) is enough. */
.aura-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
}

/* Layer 1 — faint violet moonlight washing down from the top.
   (The old fixed floor glow, violet fog plus orange corner embers, sat at the bottom of every
   screen and read as a muddy brown band, so the page is now clean dark with this light tint.)
   No filter and no blend mode: a full-screen fixed layer with blur(48px) + mix-blend-mode made the
   browser re-blend the whole viewport on every scroll frame (the main cause of scroll lag, worst on
   phones). The gradients are already soft, so normal blending looks the same. */
.aura-layer-1 {
  background: radial-gradient(90% 55% at 50% -12%, rgba(176, 40, 220, .12) 0%, rgba(90, 30, 120, .05) 45%, transparent 75%);
}

/* Layer 2 — a very soft edge vignette so the centre reads slightly lifted */
.aura-layer-2 {
  background: radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(4, 3, 8, .35) 100%);
}

/* Procedural SVG grain was removed. Mobile WebKit can detach a fixed
   feTurbulence layer from its mask while scrolling and paint a gray block. */
.aura-grain { display: none !important; }


/* Text colours tuned to the Snow Boosts palette.
   "html body" prefix outranks Tailwind's base class but still loses to hover:/focus: variants. */
html body .text-slate-200 { color: var(--aura-ink); }
html body .text-slate-300 { color: var(--aura-text); }
html body .text-slate-400 { color: var(--aura-muted); }
html body .text-slate-500 { color: var(--aura-dim); }
html body .text-slate-600 { color: var(--aura-dim); }
html body .text-slate-700 { color: var(--aura-dim); }
html body .text-brand-300 { color: var(--aura-mint); }
html body .text-brand-400 { color: var(--aura-teal-300); }
html body .text-brand-500 { color: var(--aura-teal); }
html body .text-blue-400  { color: #5fdcf0; }

/* Footer: translucent so the backdrop shows through (home.css forces a solid navy) */
html body footer:not(.sf) {
  background: rgba(var(--aura-panel-deep-rgb), 0.86) !important;
  border-top-color: rgba(var(--aura-teal-rgb), 0.18) !important;
}

/* Footer links (no rule existed outside admin.css, so colours varied per page) */
html body .footer-link {
  color: var(--aura-muted);
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
}
html body .footer-link:hover { color: var(--aura-mint); }

/* Old dotted noise overlay clashes with the aurora's own grain */
#noise-overlay { display: none !important; }

/* ═══ Cards & depth (pages outside site-v2) ═════════════════════════════
   Existing card classes on checkout, dashboard, feedback, login and payment
   pick up the tinted multi-layer shadows; interactive ones lift on hover. */
html body :is(.dash-card, .stat-card, .balance-card, .summary-card, .co-prod-card,
              .rev-real-card, .glow-card, .payment-card, .frost-glass) {
  box-shadow: var(--shadow-md);
}
html body :is(.stat-card, .rev-real-card, .co-prod-card) {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s ease;
}
@media (hover: hover) {
  html body :is(.stat-card, .rev-real-card, .co-prod-card):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

/* ═══ Micro-interactions ════════════════════════════════════════════════ */
/* Press feedback on every button-like control */
html body :where(button, [role="button"], .v2-btn, .nav-login, .tc-buy-btn, .buy-now-btn, a.category-btn, .pay-chip) {
  transition-property: transform, box-shadow, background-color, border-color, color, opacity;
  transition-duration: .2s;
  transition-timing-function: var(--ease-out);
}
html body :where(button, [role="button"], .v2-btn, .nav-login, .tc-buy-btn, .buy-now-btn, a.category-btn):not(:disabled):active {
  transform: scale(.97);
  transition-duration: .08s;
}

/* Animated focus ring on inputs (ring fades/grows in; no layout change) */
html body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), textarea, select) {
  transition: border-color .25s ease, box-shadow .3s var(--ease-out), background-color .25s ease;
}
html body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus,
html body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus-visible {
  outline: none;
  border-color: rgba(var(--aura-teal-rgb), .6);
  box-shadow: none;
}
/* Search/field wrappers that own the border */
html body :where(.v2-search, .hero-search-box):focus-within {
  border-color: rgba(var(--aura-teal-rgb), .55);
  box-shadow: none;
}
html body :where(.v2-search, .hero-search-box) :where(input):focus { box-shadow: none; border-color: transparent; }

/* Links: underline that grows from the left (transform only) */
html body :where(.v2-link, .footer-link) { position: relative; }
html body :where(.footer-link)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
html body :where(.footer-link):hover::after { transform: scaleX(1); }

::selection { background: #c523df; color: #fff; }

/* ═══ Native feel on phones (mobile-native) ═══════════════════════════ */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html body :where(a, button, [role="button"], label, summary) { touch-action: manipulation; }
html body :where(button, .v2-btn, .nav-login, .tc-buy-btn, .buy-now-btn) { -webkit-user-select: none; user-select: none; }
@media (max-width: 767px) {
  /* iOS zooms the page when a focused field is under 16px */
  html body :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: max(16px, 1em); }
}

/* ═══ Browser surfaces carry the palette too ═══════════════════════════ */
html { scrollbar-color: rgba(var(--aura-teal-rgb), .35) transparent; accent-color: var(--aura-teal); caret-color: var(--aura-teal); }
html body :where(h1, h2, h3) { text-wrap: balance; }
html body :where(p) { text-wrap: pretty; }
html body :where(.pcard-price, .pd-price, .pd-total-val, .vo-price, .rev-stat-val) { font-variant-numeric: tabular-nums; }
