/* ─────────────────────────────────────────────────────────────
   immorashop — dark premium digital storefront
   Design system: Space Grotesk + JetBrains Mono, purple accent
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0a0d;
  --bg-1:      #0e0e13;
  --bg-2:      #14141b;
  --bg-3:      #1c1c25;
  --line:      #22222d;
  --line-2:    #2e2e3a;
  --fg:        #ecedf2;
  --fg-2:      #a8aab6;
  --fg-3:      #6b6e7c;
  --fg-4:      #43464f;
  --accent:    #b794ff;
  --accent-ink:#0a0a0d;
  --warn:      #fbbf24;
  --good:      #57e389;
  --info:      #7ad3ff;
  --danger:    #ff5d5d;

  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin-top: 0; }

/* ── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.mono   { font-family: var(--f-mono); }
.muted  { color: var(--fg-3); }

body.modal-open { overflow: hidden; }

/* ── Background grid ─────────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 10%, #000 0%, rgba(0,0,0,.7) 50%, transparent 90%);
}

/* Ambient backdrop for subpages (catalog, contact, announcements, legal).
   Sits behind .bg-grid (same z-index, earlier in DOM order) and adds a
   subtle accent glow + soft vignette so subpages have the same depth
   as the homepage hero. */
body:not(.hero-page)::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 40% at 90% 0%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 75%),
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(80, 100, 200, .06), transparent 70%);
}

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding-top: 96px; padding-bottom: 96px; }

/* ── Loading bar ─────────────────────────────────────────── */
.loading-bar {
  position: fixed; top: 0; left: 0; z-index: 400;
  width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--info));
  box-shadow: 0 0 14px var(--accent);
  opacity: 0; pointer-events: none;
}
.loading-bar.active { animation: loadingSweep 1.05s ease forwards; }
@keyframes loadingSweep {
  0%   { opacity: 1; transform: scaleX(0); }
  55%  { opacity: 1; transform: scaleX(.88); }
  82%  { opacity: 1; transform: scaleX(.96); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* ── Site header / nav ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transition: background .3s, border-color .3s;
}
/* Transparent nav over hero on homepage */
body.hero-page .site-header {
  background: linear-gradient(180deg, rgba(10,10,13,.65) 0%, rgba(10,10,13,0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.hero-page .site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 32px;
}

/* Brand / logo */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 4px;
  position: relative;
  transition: transform .3s;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand b {
  font-family: var(--f-sans); font-weight: 600;
  letter-spacing: .01em; font-size: 15px;
}

/* Desktop nav links */
.nav-mid {
  display: flex; align-items: center; gap: 4px; justify-content: center;
}
.nav-link {
  font-size: 13.5px;
  color: var(--fg-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-2); }
.nav-link.active { color: var(--fg); background: var(--bg-2); }

/* Right side */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Cart button */
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  transition: border-color .15s;
  background: var(--bg-2);
}
.cart-btn:hover { border-color: var(--line-2); }
#cartCount {
  font-family: var(--f-mono); font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Nav search */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  width: 220px;
  transition: border-color .15s, width .2s;
  cursor: text;
}
.nav-search:focus-within { border-color: var(--line-2); width: 280px; }
.nav-search-ic { color: var(--fg-3); font-size: 13px; flex-shrink: 0; font-family: var(--f-mono); }
.nav-search input {
  flex: 1; background: none; border: 0; color: var(--fg);
  font: 13px/1 var(--f-sans); outline: 0; min-width: 0;
}
.nav-search input::placeholder { color: var(--fg-4); }
.nav-search .kbd {
  font-family: var(--f-mono); font-size: 10px; color: var(--fg-3);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
  flex-shrink: 0;
}
@media (max-width: 900px) { .nav-search { display: none; } }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg);
  font-size: 13px;
}

/* Mobile nav open state */
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-mid {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
    z-index: 49;
  }
  .nav-mid.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { padding: 12px 16px; border-radius: var(--r-md); }
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .nav-right { gap: 8px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--bg-2);
  transition: background .15s, border-color .15s, transform .1s;
  cursor: pointer;
}
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 90%, white); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translate(2px, -2px); }

/* Legacy button classes (for JS-rendered elements) */
.button, .small-button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-2);
  background: var(--bg-2);
  transition: border-color .15s, color .15s;
  cursor: pointer;
}
.button:hover, .small-button:hover { border-color: var(--line-2); color: var(--fg); }
.button.primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 600;
}
.button.primary:hover { background: color-mix(in oklab, var(--accent) 90%, white); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-fs {
  position: relative;
  margin-top: -65px;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #000; /* shows while video loads */
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.04) saturate(.92);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 30%, transparent 0%, rgba(10,10,13,.45) 60%, rgba(10,10,13,.85) 100%),
    linear-gradient(180deg, rgba(10,10,13,.35) 0%, transparent 25%, transparent 60%, rgba(10,10,13,.92) 100%);
}
.hero-fs-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding-top: 112px;
  padding-bottom: 40px;
}

/* Stats row — right-aligned, center-vertical */
.hero-stats {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 56px;
  padding: 32px 0;
}
.hero-stat {
  text-align: right;
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-stat:nth-child(1) { animation-delay: .1s; }
.hero-stat:nth-child(2) { animation-delay: .2s; }
.hero-stat:nth-child(3) { animation-delay: .3s; }
.hero-stat:nth-child(4) { animation-delay: .4s; }
.hero-stat-n {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: #0a0a0d;
  font-variant-numeric: tabular-nums;
}
.hero-stat-l {
  font-family: var(--f-mono);
  font-size: clamp(10px, .9vw, 12px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(10,10,13,.72);
  margin-top: 10px;
  line-height: 1.3;
  font-weight: 500;
}

/* Bottom rows */
.hero-bottom { display: flex; flex-direction: column; gap: 36px; padding-bottom: 24px; }
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-row-b { align-items: flex-end; }

.hero-tagline {
  font-family: var(--f-mono);
  font-size: clamp(10px, .9vw, 13px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  max-width: 300px;
  margin: 0;
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) .55s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end;
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) .65s forwards;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid transparent;
}
.hero-btn:hover { transform: translateY(-1px); }
.hero-btn-primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.hero-btn-primary:hover { background: color-mix(in oklab, var(--accent) 90%, white); }
.hero-btn-ghost {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.hero-btn-discord {
  background: color-mix(in oklab, var(--accent) 18%, rgba(0,0,0,.35));
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  color: #fff;
  animation-delay: .65s;
}
.hero-btn-discord:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hero-btn-contact {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
  animation-delay: .75s;
}
.hero-btn-contact:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }

/* Hero CTA — large text link */
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  border: 0; background: none; padding: 0;
  transition: gap .2s, color .2s;
}
.hero-cta:hover { gap: 16px; color: #fff; }
.hero-cta-arr { transition: transform .2s; font-size: .85em; }
.hero-cta:hover .hero-cta-arr { transform: translate(2px, -2px); }

/* Hero stat + prefix */
.hero-stat-plus {
  font-size: .48em;
  color: var(--accent);
  margin-right: .1em;
  vertical-align: .28em;
  font-weight: 500;
}

.hero-desc {
  font-family: var(--f-mono);
  font-size: clamp(9px, .8vw, 12px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  width: 300px; flex-shrink: 0;
  text-align: right; margin: 0 0 8px;
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) .75s forwards;
}

.hero-headline {
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: .88;
  font-weight: 600;
  letter-spacing: -.045em;
  color: #fff;
  text-align: right;
  margin: 0;
  text-transform: uppercase;
  flex: 1;
}
.hero-word-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}
.hero-word {
  display: inline-block;
  transform: translateY(110%);
  animation: heroWordIn .85s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-word-wrap:nth-child(1) .hero-word { animation-delay: .05s; }
.hero-word-wrap:nth-child(2) .hero-word { animation-delay: .15s; }
.hero-word-wrap:nth-child(3) .hero-word { animation-delay: .25s; }

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroWordIn  { to { transform: translateY(0); } }

/* ── Quick stats strip ──────────────────────────────────── */
.qstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.qstat {
  padding: 0 28px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--line);
}
.qstat:first-child { border-left: 0; padding-left: 0; }
.qstat .n {
  font-size: 36px;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}
.qstat .l {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Section heads ───────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.sec-title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 0;
}
.sec-sub {
  color: var(--fg-3);
  max-width: 400px;
  line-height: 1.55;
  font-size: 14px;
  margin: 0;
  flex-shrink: 0;
}
.section-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ── Advantages grid ─────────────────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.adv-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px 36px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 220px;
  transition: background .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.adv-card:hover { background: var(--bg-2); border-color: var(--line-2); }
.adv-card:hover .adv-ic { color: var(--accent); }
.adv-card:hover .adv-underline { transform: scaleX(1); }
.adv-ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--fg-2);
  font-family: var(--f-mono); font-size: 15px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: color .25s;
}
.adv-n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  font-weight: 500;
}
.adv-underline {
  position: absolute;
  left: 28px; right: 28px; bottom: 18px;
  height: 1px; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.adv-body h3 {
  font-size: 17px; letter-spacing: -.01em; font-weight: 500;
  margin: 0 0 8px;
}
.adv-body p {
  color: var(--fg-3); font-size: 13.5px; line-height: 1.55; margin: 0;
}

/* ── Games grid ──────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Design-system game tile (used by renderGameGrid in script.js) */
.game-tile {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.game-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.game-tile:hover .game-glyph { color: var(--accent); transform: scale(1.08); }
.game-tile .game-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0, transparent 16px, rgba(255,255,255,.02) 16px, rgba(255,255,255,.02) 17px),
    var(--bg-2);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.game-tile .game-art-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.game-tile .game-art.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0) 45%, rgba(10,10,13,.65) 100%);
  z-index: 1;
}
.game-tile .game-art.has-image .game-glyph { display: none; }
.game-tile .game-art .game-badge { z-index: 2; }
.game-tile .game-art-logo {
  position: absolute; top: 10px; left: 10px;
  width: 38px; height: 38px;
  border-radius: 8px;
  padding: 5px;
  object-fit: contain;
  background: rgba(10, 10, 13, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
}
.game-glyph {
  font-size: 48px; color: var(--fg-3); line-height: 1;
  font-family: var(--f-mono); font-weight: 600;
  transition: color .25s, transform .25s;
}
.game-tile .game-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--f-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 8px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(0,0,0,.5);
}
.game-tile .game-badge.hot { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); }
.game-tile .game-badge.new { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.game-foot {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.game-name { font-size: 14px; font-weight: 500; letter-spacing: -.005em; }
.game-meta {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: .04em;
}

/* ── Product card ─────────────────────────────────────────── */
.products-grid, .catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card-art {
  position: relative; height: 130px;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent 0, transparent 8px, color-mix(in oklab, var(--accent) 5%, transparent) 8px, color-mix(in oklab, var(--accent) 5%, transparent) 9px),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.card-art.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-art.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,.05) 0%, rgba(10,10,13,.65) 100%);
}
.card-art-status { position: absolute; top: 12px; right: 12px; z-index: 1; }

.card-body {
  padding: 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
.card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--accent); border-radius: 4px;
  font-weight: 600; flex-shrink: 0;
}
.card-badge {
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--fg-3); border: 1px solid var(--line-2);
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em;
}
.card-badge.new { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.card-badge.hot { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); }

.card-title {
  font-size: 17px; letter-spacing: -.01em; font-weight: 600;
  margin: 0 0 4px;
}
.card-cat {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 12px;
}
.card-desc {
  font-size: 13px; color: var(--fg-2); line-height: 1.55;
  flex: 1; margin: 0 0 16px;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.card-foot .price {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em;
}
.card-foot .price b {
  color: var(--fg); font-family: var(--f-sans);
  font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin: 0 4px;
}
.card-foot .card-status {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: .04em;
}
.card-features {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.card-features li {
  font-size: 12.5px; color: var(--fg-2);
  display: flex; gap: 8px;
}
.card-features li::before { content: "▸"; color: var(--accent); font-family: var(--f-mono); }
.card-add { margin-top: 12px; }
.card-add .btn, .card-add .button {
  width: 100%; justify-content: center;
  height: 38px; font-size: 12px;
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(0,0,0,.5);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* Mini plan display */
.mini-plans {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.mini-plans span {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: .04em;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 3px 7px; border-radius: 3px;
}

/* ── Duration picker (in modal) ──────────────────────────── */
.duration-label {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 10px;
}
.duration-options {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.duration-option {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 12px;
  text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, background .15s;
}
.duration-option:hover { border-color: var(--line-2); }
.duration-option.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-1));
}
.duration-option span {
  font-family: var(--f-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3);
}
.duration-option.active span { color: var(--accent); }
.duration-option strong {
  font-size: 18px; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; font-weight: 500;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-q {
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-size: 15px; letter-spacing: -.005em;
  transition: background .15s; user-select: none;
}
.faq-q:hover { background: var(--bg-1); }
.faq-ix {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: .08em; width: 32px; flex: none;
}
.faq-text { flex: 1; }
.faq-plus {
  font-family: var(--f-mono); color: var(--accent);
  font-size: 18px; flex: none; width: 18px; text-align: center;
}
.faq-a {
  padding: 0 26px 22px 70px;
  color: var(--fg-2); font-size: 14px; line-height: 1.65;
  max-width: 760px;
}
.faq-a.hidden { display: none !important; }

/* ── Announcements / Updates ─────────────────────────────── */
.announce-feed {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-1); overflow: hidden;
}
.announce-item {
  padding: 20px 24px; border-top: 1px solid var(--line);
}
.announce-item:first-child { border-top: 0; }
.announce-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.announce-tag {
  font-family: var(--f-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--fg-3);
}
.announce-tag.tag-good   { color: var(--good);   border-color: color-mix(in oklab, var(--good)   50%, var(--line)); }
.announce-tag.tag-warn   { color: var(--warn);   border-color: color-mix(in oklab, var(--warn)   50%, var(--line)); }
.announce-tag.tag-info   { color: var(--info);   border-color: color-mix(in oklab, var(--info)   50%, var(--line)); }
.announce-tag.tag-accent { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.announce-date { font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3); }
.announce-item h4 { font-size: 14.5px; margin: 0 0 6px; letter-spacing: -.005em; font-weight: 500; }
.announce-item p  { font-size: 13px; color: var(--fg-2); margin: 0; line-height: 1.55; }

/* ── Numbers / large stats ───────────────────────────────── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.number-cell { background: var(--bg-1); padding: 36px 28px; display: flex; flex-direction: column; gap: 10px; }
.number-v {
  font-size: 52px; letter-spacing: -.035em; font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--fg) 0%, color-mix(in oklab, var(--fg) 50%, var(--accent)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.number-k { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 64px; padding-bottom: 0;
}
.foot {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
}
.foot h5 {
  font-family: var(--f-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg-3); margin: 0 0 16px; font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li { font-size: 13.5px; color: var(--fg-2); transition: color .15s; }
.foot li:hover { color: var(--fg); }
.foot a { color: inherit; transition: color .15s; }
.foot a:hover { color: var(--fg); }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .about {
  font-size: 13.5px; color: var(--fg-3); line-height: 1.6;
  max-width: 340px; margin: 0;
}
.foot-bar {
  padding: 22px 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
}

/* ── Cart drawer ─────────────────────────────────────────── */
.cart-shell {
  position: fixed; inset: 0; z-index: 100;
}
.cart-shell.hidden { display: none !important; }
.drawer-back {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: 440px; max-width: 100vw;
  background: var(--bg-1); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  /* iOS notch/home-bar awareness */
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer-hd {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.drawer-hd h3 {
  margin: 0; font-size: 13px; font-family: var(--f-mono);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
}
.close-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line); border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 16px; color: var(--fg-2);
  cursor: pointer; background: none; transition: background .15s, color .15s;
}
.close-btn:hover { background: var(--bg-2); color: var(--fg); }

.drawer-body { flex: 1; overflow-y: auto; }
.cart-empty {
  padding: 60px 24px; text-align: center; color: var(--fg-3); font-size: 13px;
}
.cart-empty .big { font-size: 18px; color: var(--fg); margin-bottom: 6px; letter-spacing: -.01em; }

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px; padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cart-item-ic {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center;
  font-family: var(--f-mono); color: var(--accent);
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.cart-item-body {}
.cart-item-name { font-size: 14px; letter-spacing: -.005em; }
.cart-item-meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3); margin-top: 3px; }
.cart-item-controls {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
}
.cart-item-controls button {
  width: 24px; height: 24px;
  border: 1px solid var(--line); border-radius: 4px;
  display: grid; place-items: center;
  background: var(--bg-2); color: var(--fg-2);
  font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s;
}
.cart-item-controls button:hover { border-color: var(--line-2); color: var(--fg); }
.cart-qty {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--fg); min-width: 20px; text-align: center;
}
.cart-item-rm {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
  margin-left: 6px; cursor: pointer; border: 0; background: none; padding: 0;
}
.cart-item-rm:hover { color: var(--danger); }
.cart-item-right { text-align: right; }
.cart-item-price { font-size: 14px; font-variant-numeric: tabular-nums; }

.drawer-ft {
  padding: 22px 24px; border-top: 1px solid var(--line);
  background: var(--bg-2); flex-shrink: 0;
}
.cart-line {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 0;
}
.cart-line-total {
  color: var(--fg); font-size: 16px; font-family: var(--f-sans);
  text-transform: none; letter-spacing: -.01em;
  padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line);
}
.cart-line .v { color: var(--fg); font-variant-numeric: tabular-nums; }
.drawer-ft .btn { width: 100%; justify-content: center; margin-top: 14px; }
.drawer-ft .btn + .btn { margin-top: 8px; font-size: 12px; }
.drawer-ft .btn-primary,
.drawer-ft .btn-secondary { font-size: 13.5px; }
.btn-secondary {
  background: var(--bg-1);
  color: var(--fg);
  border-color: var(--line-2);
  font-weight: 500;
}
.btn-secondary:hover {
  background: var(--bg-3, var(--bg-2));
  border-color: var(--accent);
  color: var(--accent);
}
.drawer-ft .btn-secondary[aria-disabled="true"] { opacity: .38; pointer-events: none; cursor: not-allowed; }

/* ── Payment method picker (payment.html) ─────────────────── */
.pay-summary {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: var(--bg-1);
}
.pay-summary-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 6px 0;
  font-size: 13.5px; color: var(--fg-2, var(--fg));
  font-variant-numeric: tabular-nums;
}
.pay-summary-total {
  margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
  color: var(--fg);
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.pay-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
  font-family: var(--f-sans);
}
.pay-tile:hover {
  border-color: var(--accent);
  background: var(--bg-2);
}
.pay-tile:active { transform: translateY(1px); }
.pay-tile-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  font-family: var(--f-mono); font-size: 18px; font-weight: 600;
  flex-shrink: 0;
}
.pay-tile-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pay-tile-name { font-size: 15px; font-weight: 600; color: var(--fg); }
.pay-tile-meta {
  font-size: 12px; color: var(--fg-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pay-tile-arrow {
  color: var(--fg-3);
  font-size: 16px;
  transition: transform .15s, color .15s;
  flex-shrink: 0;
}
.pay-tile:hover .pay-tile-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.pay-tile.pay-tile-busy {
  pointer-events: none;
  opacity: .7;
}
.pay-fineprint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
}

.cart-field { display: block; margin-top: 14px; }
.cart-field-label {
  display: block;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 6px;
}
.cart-field input[type="email"] {
  width: 100%; box-sizing: border-box;
  height: 40px; padding: 0 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--f-sans); font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.cart-field input[type="email"]::placeholder { color: var(--fg-4, var(--fg-3)); }
.cart-field input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}

.tos-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; font-size: 13px; color: var(--fg-3); user-select: none; }
.tos-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; min-width: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--bg-1); cursor: pointer; transition: background .15s, border-color .15s; }
.tos-check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%230a0a0d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 10px 8px; }
.tos-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tos-check a:hover { color: var(--fg); }
.drawer-ft .btn-primary[aria-disabled="true"] { opacity: .38; pointer-events: none; cursor: not-allowed; }

/* ── Product modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.modal-overlay.hidden { display: none !important; }
/* Backdrop fills the overlay but sits behind modal-inner */
.modal-overlay > [data-close-modal] {
  position: absolute; inset: 0; z-index: 0;
}
.modal-inner {
  position: relative; z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  width: min(960px, 100%);
  /* Use dvh on supported browsers (iOS Safari toolbar-aware), fallback to vh */
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Crucial: lets the inner grid items shrink below their intrinsic size
     so .modal-body's overflow-y: auto can actually kick in */
  min-height: 0;
}
.modal-inner > * { min-height: 0; min-width: 0; }
.modal-art-panel {
  background:
    radial-gradient(circle at 40% 40%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(255,255,255,.02) 14px, rgba(255,255,255,.02) 15px),
    var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 480px; position: relative;
  overflow: hidden;
}
.modal-art-panel.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.modal-art-panel.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,.05) 0%, rgba(10,10,13,.5) 100%);
  pointer-events: none;
}
.modal-art-logo {
  font-family: var(--f-mono); font-size: 72px; font-weight: 700;
  color: color-mix(in oklab, var(--accent) 30%, transparent);
  letter-spacing: -.04em; line-height: 1;
  user-select: none;
}
.modal-body {
  padding: 32px; display: flex; flex-direction: column; overflow-y: auto;
}
.modal-body .close-btn {
  align-self: flex-end; margin: -10px -10px 12px 0;
}
.modal-cat {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 6px;
}
.modal-badge {
  display: inline-block;
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--fg-3); border: 1px solid var(--line-2);
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 28px; line-height: 1.1; letter-spacing: -.02em;
  font-weight: 600; margin: 0 0 12px;
}
.modal-desc {
  color: var(--fg-2); font-size: 14px; line-height: 1.55; margin: 0 0 18px;
}
.modal-features {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.modal-features li {
  font-size: 13px; color: var(--fg);
  display: flex; gap: 10px;
}
.modal-features li::before { content: "▸"; color: var(--accent); font-family: var(--f-mono); }
.modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
  border-top: 1px dashed var(--line);
}
.modal-price-row strong { font-family: var(--f-sans); font-size: 20px; color: var(--fg); letter-spacing: -.01em; }
.modal-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.modal-meta strong { font-family: var(--f-sans); font-size: 15px; color: var(--fg); text-transform: none; letter-spacing: -.01em; }
.modal-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-1); border: 1px solid var(--accent);
  padding: 12px 18px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--fg);
  text-transform: uppercase; letter-spacing: .1em;
  border-radius: 999px; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 10%, transparent);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* ── Page hero (subpages) ────────────────────────────────── */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.page-eyebrow {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 12px;
}
.page-title {
  font-size: clamp(2rem, 5vw, 52px);
  line-height: 1.05; letter-spacing: -.03em;
  font-weight: 600; margin: 0 0 14px;
}
.page-sub {
  font-size: 15px; color: var(--fg-2); max-width: 600px; line-height: 1.55; margin: 0;
}

/* ── Catalog page ────────────────────────────────────────── */
.catalog-page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.catalog-head-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.catalog-head-title {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 500;
  margin: 0 0 12px; text-wrap: balance;
}
.catalog-head-sub {
  font-size: 15px; color: var(--fg-2); line-height: 1.55;
  margin: 0 0 28px; max-width: 560px;
}
.catalog-head-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px;
  max-width: 420px;
  transition: border-color .15s;
}
.catalog-head-search:focus-within { border-color: var(--line-2); }
.catalog-head-search input {
  flex: 1; background: none; border: 0; outline: 0;
  font-size: 13.5px; color: var(--fg);
}
.catalog-head-search input::placeholder { color: var(--fg-3); }

/* Group tab cards */
.catalog-group-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 32px 0 0;
}
.catalog-group-tab {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 20px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  position: relative; overflow: hidden;
}
.catalog-group-tab:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-1px); }
.catalog-group-tab.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-1));
}
.catalog-group-tab.active .catalog-group-ic { color: var(--accent); }
.catalog-group-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 18px; font-weight: 600;
  color: var(--fg-3);
  transition: color .2s;
}
.catalog-group-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.catalog-group-name {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: var(--fg); line-height: 1.2;
}
.catalog-group-tab.active .catalog-group-name { color: var(--fg); }
.catalog-group-desc {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-3); line-height: 1.4;
}

/* Legacy tabs kept as no-op */
.catalog-controls, .catalog-search-wrap, .catalog-tabs-row, .catalog-tab { display: none; }
.catalog-result-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 40px 0 28px; gap: 16px;
}
.catalog-result-head .btn { flex-shrink: 0; }
.catalog-result-eyebrow { font-family: var(--f-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.catalog-result-title { font-size: 32px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }
.catalog-result-text { font-size: 14px; color: var(--fg-2); margin: 0; }

.catalog-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px;
}
.catalog-count {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
}

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 64px 24px; text-align: center;
}
.empty-state .empty-icon {
  font-size: 28px; color: var(--fg-3);
  margin-bottom: 12px;
  opacity: .7;
}
.empty-state h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.empty-state p { color: var(--fg-3); font-size: 13.5px; margin: 0 0 22px; line-height: 1.6; }

/* ── Skeleton loader (shown while API is fetching) ─────────────── */
.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.skeleton-art {
  height: 140px;
  background: var(--bg-1);
  position: relative; overflow: hidden;
}
.skeleton-body {
  padding: 18px 16px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.skeleton-line {
  height: 12px;
  background: var(--bg-1);
  border-radius: 4px;
  position: relative; overflow: hidden;
}
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; height: 16px; }
.skeleton-line.w-full { width: 100%; }
.skeleton-art::after, .skeleton-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in oklab, var(--fg) 5%, transparent) 50%,
    transparent 100%
  );
  animation: skeletonSweep 1.4s ease-in-out infinite;
}
@keyframes skeletonSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Skeleton game tile */
.skeleton-tile {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
}
.skeleton-tile .skeleton-art {
  flex: 1; height: auto;
}
.skeleton-tile .skeleton-body { padding: 12px 14px 16px; gap: 8px; }

/* ── Announcements page ──────────────────────────────────── */
.announce-page-feed {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 0;
}
.announce-page-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.announce-page-aside {
  display: flex; flex-direction: column; gap: 10px;
}
.announce-page-date {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: .04em;
}
.announce-page-item h3 { font-size: 20px; letter-spacing: -.01em; font-weight: 500; margin: 0 0 10px; }
.announce-page-item p { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0; }

/* ── Contact page ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px; align-items: flex-start;
  padding-top: 48px;
}
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.channel {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 18px; padding: 24px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: default;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
}
.channel:hover { border-color: var(--line-2); transform: translateY(-2px); }
.channel-ic {
  width: 60px; height: 60px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 18px; font-weight: 700;
  color: var(--accent);
}
.channel h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.channel p { margin: 0 0 8px; font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.channel-cta { font-family: var(--f-mono); font-size: 11.5px; color: var(--accent); }

.contact-form-card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form-card h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.form-sub { font-size: 13px; color: var(--fg-3); margin: -10px 0 0; }

.field-row { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
}
.field-input {
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg); padding: 12px 14px;
  border-radius: var(--r-sm);
  font: 14px/1.4 var(--f-sans); outline: 0;
  resize: vertical; transition: border-color .15s;
  width: 100%;
}
.field-input:focus { border-color: var(--accent); }
.field-input::placeholder { color: var(--fg-4); }
.topic-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.topic-btn {
  padding: 9px 10px; font-size: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--fg-2); background: var(--bg-2); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.topic-btn:hover { border-color: var(--line-2); color: var(--fg); }
.topic-btn.on {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-1));
}
.form-foot { display: flex; justify-content: space-between; align-items: center; }

/* ── Legacy page-shell wrapper (terms / privacy / refund / checkout-* / contact-form-card carriers) ──
   These pages use a simpler markup (.page-shell + .logo + .footer-brand)
   than the main pages. Without these rules the header/footer leak into the
   page corners unstyled. */
.page-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.page-shell > .site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  background: transparent;
  border-bottom: 1px solid var(--line);
  position: static;
}
.page-shell > .site-header .logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
  font-size: 14px; letter-spacing: -.01em;
}
.page-shell > .site-header .logo-mark {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 60%, #000) 100%);
  color: var(--accent-ink);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--f-sans); font-weight: 700; font-size: 14px;
  letter-spacing: -0.04em;
}
.page-shell > .site-header .logo-text { color: var(--fg-2); }
.page-shell > .site-header .logo-text strong { color: var(--fg); font-weight: 600; }
.page-shell > .site-header .nav {
  display: flex; gap: 24px; align-items: center;
}
.page-shell > .site-header .nav a {
  color: var(--fg-3); font-size: 13.5px; text-decoration: none;
  transition: color .15s;
}
.page-shell > .site-header .nav a:hover { color: var(--fg); }
.page-shell > .site-header .nav a.nav-cta {
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
  padding: 6px 14px; border-radius: 999px;
}
.page-shell > .site-header .nav a.nav-cta:hover {
  background: color-mix(in oklab, var(--accent) 10%, var(--bg));
}

.page-shell > .legal-main { flex: 1; }

.page-shell > .site-footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 32px 32px;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
}
.page-shell > .site-footer .footer-brand {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 320px;
}
.page-shell > .site-footer .footer-brand .logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
}
.page-shell > .site-footer .footer-brand p {
  font-size: 13px; color: var(--fg-3); line-height: 1.6; margin: 4px 0 0;
}
.page-shell > .site-footer > div h3 {
  font-family: var(--f-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg-3); margin: 0 0 14px; font-weight: 500;
}
.page-shell > .site-footer > div a {
  display: block; color: var(--fg-2); font-size: 13.5px;
  text-decoration: none; padding: 4px 0;
  transition: color .15s;
}
.page-shell > .site-footer > div a:hover { color: var(--fg); }
.page-shell > .site-footer > div p {
  margin: 12px 0 0; font-size: 11px;
  color: var(--fg-3); font-family: var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em;
}

@media (max-width: 720px) {
  .page-shell > .site-header { padding: 14px 18px; flex-wrap: wrap; }
  .page-shell > .site-header .nav { gap: 14px; font-size: 12.5px; }
  .page-shell > .site-footer { grid-template-columns: 1fr 1fr; padding: 36px 18px 24px; gap: 24px; }
  .page-shell > .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .page-shell > .site-footer { grid-template-columns: 1fr; }
}

/* ── Legal pages ─────────────────────────────────────────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 80px 24px 120px; }
.legal-hero { text-align: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.legal-hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; letter-spacing: -.03em; margin: 0; }
.legal-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 40px 48px; }
.legal-card > p:first-child { font-size: 14px; color: var(--fg-3); line-height: 1.7; margin: 0 0 36px; padding-bottom: 28px; border-bottom: 1px dashed var(--line); }
.legal-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--fg); }
.legal-card h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-card h3 { font-size: 14px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 28px 0 8px; }
.legal-card h3:first-of-type { margin-top: 0; }
.legal-card p { font-size: 14px; color: var(--fg-2); line-height: 1.75; margin: 0 0 6px; }
.legal-nav { gap: 24px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .catalog-product-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .qstats { grid-template-columns: repeat(2, 1fr); }
  .qstat { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .modal-inner {
    grid-template-columns: 1fr;
    /* Two rows: art (auto, fixed) + body (1fr, scrollable). The body row
       owns the remaining height so its overflow-y: auto activates. */
    grid-template-rows: auto 1fr;
  }
  .modal-art-panel { min-height: 140px; max-height: 28dvh; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 38px; }
  .announce-page-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-fs-inner { padding-top: 88px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-bottom { gap: 24px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-row-b { align-items: flex-start; }
  .hero-headline { text-align: left; font-size: clamp(2.8rem, 14vw, 6rem); }
  .hero-desc { width: auto; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .adv-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .products-grid, .catalog-product-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .topic-pick { grid-template-columns: repeat(2, 1fr); }
  .duration-options { grid-template-columns: 1fr 1fr; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-search-wrap { max-width: 100%; }
  .catalog-group-tabs { grid-template-columns: repeat(2, 1fr); }
  .catalog-head-search { max-width: 100%; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 12px; }
  .modal-inner { max-height: 94vh; max-height: 94dvh; }
  .modal-art-panel { min-height: 110px; max-height: 22dvh; }
  .modal-body { padding: 20px 18px; }
  .modal-title { font-size: 22px; }
  .modal-desc { font-size: 13.5px; margin-bottom: 14px; }
  .modal-features { margin-bottom: 16px; }
}

/* Sticky CTA row inside the product modal so Add-to-Cart is always reachable
   on mobile, no matter how long the description / features are. */
@media (max-width: 720px) {
  .modal-body { padding-bottom: 0; }
  .modal-actions {
    position: sticky;
    bottom: 0;
    margin: 12px -18px -20px;
    padding: 14px 18px;
    background: color-mix(in oklab, var(--bg-1) 95%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 18px -8px rgba(0,0,0,.45);
    display: flex; gap: 8px; flex-direction: row;
    /* iOS safe-area aware so it doesn't sit under the home-bar */
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .modal-actions .btn { flex: 1 1 auto; }
  .modal-actions #modalContact { flex: 0 0 auto; }
}

/* ─────────────────────────────────────────────────────────────
   Admin panel
   ───────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); color: var(--fg); font-family: var(--f-sans); }
.admin-shell { min-height: 100vh; }

/* Admin logo */
.admin-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none; font-size: 14px;
  letter-spacing: -.01em;
}
.admin-logo .brand-mark {
  width: 22px; height: 22px;
  background: var(--accent); border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.admin-logo strong { color: var(--accent); font-weight: 600; }

/* Login screen */
.admin-login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px 20px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
}
.admin-login > div { width: 100%; max-width: 420px; }
.admin-login .admin-logo { margin-bottom: 32px; font-size: 16px; }

/* Topbar */
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }

/* Save indicator */
.admin-save-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .12em;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s;
}
.admin-save-indicator::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3); transition: background .25s, box-shadow .25s;
}
.admin-save-indicator.flash {
  color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.admin-save-indicator.flash::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Shell grid: sidebar + main */
.admin-shell-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 60px; align-self: start;
  max-height: calc(100vh - 60px); overflow-y: auto;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 60%),
    transparent;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-sans); font-size: 14px;
  color: var(--fg-2);
  transition: background .15s, color .15s;
  position: relative;
}
.admin-nav-item:hover { background: var(--bg-1); color: var(--fg); }
.admin-nav-item.active {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--fg);
}
.admin-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.admin-nav-ic {
  font-family: var(--f-mono); font-size: 14px;
  width: 20px; text-align: center; color: var(--accent);
  flex-shrink: 0;
}
.admin-nav-count {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 11px;
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 999px;
  color: var(--fg-3);
}
.admin-nav-item.active .admin-nav-count {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  color: var(--accent);
}

/* Main content */
.admin-main {
  padding: 32px 32px 80px;
  max-width: 1100px;
  overflow-x: hidden;
}

/* Section header */
.admin-section { animation: cardEnter .35s cubic-bezier(.22,1,.36,1); }
.admin-section.hidden { display: none; }
.admin-section-head { margin-bottom: 24px; }
.admin-section-head h1 {
  font-size: 30px; letter-spacing: -.02em; font-weight: 600;
  margin: 0 0 8px;
}
.admin-section-head .eyebrow {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 6px;
}

/* Cards */
.admin-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 20px;
}
.admin-card h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; letter-spacing: -.01em; }
.admin-card h1 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.admin-card-head h2 { margin: 0; }
.admin-list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.admin-list-head h2 { margin: 0; }

.admin-muted { font-size: 13.5px; color: var(--fg-3); margin: 0 0 16px; line-height: 1.55; }
.admin-hint { font-size: 12.5px; color: var(--fg-3); margin: 8px 0 0; line-height: 1.5; }

/* Warning card */
.admin-warning {
  background: color-mix(in oklab, var(--accent) 6%, var(--bg-1));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--line));
  color: var(--fg-2);
  font-size: 13.5px; line-height: 1.55;
}
.admin-warning strong { color: var(--accent); }

/* Stats grid */
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.admin-stat-tile {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 20px;
  text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s, background .2s;
}
.admin-stat-tile:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
}
.admin-stat-n {
  font-size: 38px; font-weight: 600; letter-spacing: -.02em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.admin-stat-l {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em;
}

/* Form grids */
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.form-grid    { display: grid; grid-template-columns: 1fr 1fr;        gap: 12px; margin-bottom: 12px; }

/* Inputs */
.input-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--fg-2);
  margin-bottom: 12px;
}
.input-label-text { font-size: 12.5px; font-weight: 500; color: var(--fg-2); }
.input-label input, .input-label select, .input-label textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--fg);
  font-family: var(--f-sans);
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
}
.input-label input:focus, .input-label select:focus, .input-label textarea:focus {
  outline: none; border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 4%, var(--bg));
}
.input-label textarea { min-height: 88px; resize: vertical; font-family: var(--f-sans); }

/* Toggle switch */
.toggle-label {
  flex-direction: row; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 12px;
}
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; transition: background .2s, border-color .2s;
}
.switch-track::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--fg-3);
  transition: transform .2s, background .2s;
}
.switch input:checked + .switch-track {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  border-color: var(--accent);
}
.switch input:checked + .switch-track::before {
  transform: translateX(16px); background: var(--accent);
}

.full-button { width: 100%; justify-content: center; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-actions.left { justify-content: flex-start; margin-top: 8px; }

/* Linked-delete modal (richer confirm with radio options) */
.linked-delete-list {
  margin: 10px 0;
  font-size: 12.5px; color: var(--fg-3);
}
.linked-delete-list summary {
  cursor: pointer; user-select: none;
  padding: 6px 10px; border-radius: 6px;
  background: var(--bg-1); border: 1px solid var(--line);
  font-family: var(--f-mono);
}
.linked-delete-list summary:hover { border-color: var(--line-2); }
.linked-delete-list ul {
  list-style: none; padding: 8px 10px 0;
  margin: 0; max-height: 140px; overflow-y: auto;
}
.linked-delete-list li {
  padding: 3px 0;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--fg-3);
}
.linked-delete-list li::before { content: "› "; color: var(--accent); }
.linked-delete-options {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}
.linked-delete-option {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.linked-delete-option:hover { border-color: var(--line-2); }
.linked-delete-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.linked-delete-option input[type="radio"] { accent-color: var(--accent); margin: 0; }
.linked-delete-option select {
  margin-left: auto;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 5px 9px;
  font-size: 12.5px; color: var(--fg); font-family: var(--f-sans);
}

/* Catalog filter chips (price range + tier duration) */
.catalog-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px;
  margin: 8px 0 28px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.catalog-filters-label {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: .08em;
  text-transform: uppercase;
  margin-right: 4px;
}
.catalog-filters-divider {
  width: 1px; align-self: stretch;
  background: var(--line);
  margin: 4px 8px;
}
.filter-chip {
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--fg-2);
  font-family: var(--f-sans); font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.filter-chip:hover { border-color: var(--line-2); color: var(--fg); }
.filter-chip.active {
  background: color-mix(in oklab, var(--accent) 14%, var(--bg));
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  color: var(--accent);
}
.filter-chip-clear {
  margin-left: auto;
  color: var(--fg-3);
  border-style: dashed;
}
.filter-chip-clear:hover { color: #f87171; border-color: #f87171; }
.filter-chip-clear.hidden { display: none; }

/* Cookie / privacy banner */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translate(-50%, 24px);
  width: min(640px, calc(100vw - 32px));
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s;
  z-index: 200;
}
.cookie-banner.in {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 18px;
}
.cookie-banner-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg));
  color: var(--accent); font-size: 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
}
.cookie-banner-text {
  font-size: 13px; line-height: 1.55; color: var(--fg-2);
}
.cookie-banner-text strong { color: var(--fg); }
.cookie-banner-text a { color: var(--accent); }
.cookie-banner-ok {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--f-sans); font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.cookie-banner-ok:hover { opacity: .9; transform: translateY(-1px); }

@media (max-width: 600px) {
  .cookie-banner-inner { grid-template-columns: 1fr auto; }
  .cookie-banner-icon { display: none; }
}

/* Pages tab navigation (Contact / Terms / Privacy / Refund) */
.pages-tabs {
  display: flex; gap: 4px;
  margin-bottom: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.pages-tab {
  background: transparent; border: 1px solid transparent;
  border-bottom: none;
  color: var(--fg-3); font-family: var(--f-sans);
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  transition: color .15s, background .15s, border-color .15s;
}
.pages-tab:hover { color: var(--fg-2); }
.pages-tab.active {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
  border-color: var(--line);
  border-bottom-color: var(--bg);
}
.pages-panel.hidden { display: none; }

/* Side-by-side markdown editor */
.markdown-editor {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 12px;
}
.markdown-editor-pane {
  display: flex; flex-direction: column; gap: 6px;
}
.markdown-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px;
}
.markdown-editor-head .admin-hint { margin: 0; font-size: 11.5px; }
.markdown-source {
  min-height: 380px;
  font-family: var(--f-mono); font-size: 13px;
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--fg);
  resize: vertical;
}
.markdown-source:focus { outline: none; border-color: var(--accent); }
.markdown-preview {
  min-height: 380px; max-height: 600px; overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 14px; line-height: 1.65; color: var(--fg-2);
}
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 {
  color: var(--fg); margin-top: 1em;
}
.markdown-preview h1 { font-size: 22px; }
.markdown-preview h2 { font-size: 18px; margin-top: 1.4em; }
.markdown-preview h3 { font-size: 15px; }
.markdown-preview p { margin: .7em 0; }
.markdown-preview ul { padding-left: 22px; margin: .6em 0; }
.markdown-preview li { margin: .2em 0; }
.markdown-preview a { color: var(--accent); }
.markdown-preview code {
  font-family: var(--f-mono); font-size: 12.5px;
  background: var(--bg-1); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line);
}
.markdown-preview hr {
  border: 0; border-top: 1px solid var(--line); margin: 1.4em 0;
}
.markdown-preview strong { color: var(--fg); }

@media (max-width: 900px) {
  .markdown-editor { grid-template-columns: 1fr; }
}

/* Invalid input highlight (validation) */
.input-invalid {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, .08) !important;
  animation: shakeInvalid .35s ease;
}
@keyframes shakeInvalid {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Saving button state */
button[data-saving] {
  position: relative;
  opacity: .8;
  pointer-events: none;
}

/* Sticky form footer — primary Save always reachable while editing */
.admin-form-footer {
  position: sticky;
  bottom: 0;
  margin: 16px -16px -16px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  z-index: 4;
}
.admin-form-footer-hint {
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
  margin-left: auto; letter-spacing: .02em;
}
.admin-form-footer.is-dirty {
  border-top-color: color-mix(in oklab, var(--accent) 60%, var(--line));
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.admin-form-footer.is-dirty .admin-form-footer-hint::before {
  content: "● ";
  color: var(--accent);
}

.admin-error { font-size: 13px; color: #f87171; margin-top: 8px; min-height: 18px; }

/* Buttons */
.button.small { padding: 5px 11px; font-size: 12px; height: 28px; }
.button.danger {
  background: rgba(248,113,113,.08);
  border-color: rgba(248,113,113,.3);
  color: #f87171;
}
.button.danger:hover { background: rgba(248,113,113,.18); border-color: #f87171; color: #fca5a5; }

/* Lists */
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s, transform .15s;
}
.admin-list-item:hover { border-color: var(--line-2); }
.admin-list-item.dragging { opacity: .4; }
.admin-list-item.drop-target {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.admin-drag {
  cursor: grab; color: var(--fg-3); font-size: 14px;
  user-select: none; padding: 0 2px;
}
.admin-drag:active { cursor: grabbing; }

.admin-thumb {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center;
}
.admin-thumb-letter {
  font-family: var(--f-mono); font-weight: 600; font-size: 13px;
  color: var(--accent);
}

.admin-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-item-info strong {
  font-size: 14px; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-meta-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  min-width: 0;
}
.admin-meta-clamp {
  font-size: 12px; color: var(--fg-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}

.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.admin-tag {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
  text-transform: lowercase; letter-spacing: .02em;
}
.admin-pill {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3);
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.admin-pill.star  { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.admin-pill.draft {
  color: #facc15;
  background: rgba(250, 204, 21, .08);
  border-color: rgba(250, 204, 21, .3);
  font-weight: 600; letter-spacing: .08em;
}
.admin-list-item.is-hidden {
  opacity: .58;
  background: repeating-linear-gradient(
    45deg, var(--bg) 0, var(--bg) 8px,
    color-mix(in oklab, var(--accent) 3%, var(--bg)) 8px,
    color-mix(in oklab, var(--accent) 3%, var(--bg)) 9px
  );
}
.admin-meta { font-size: 12px; color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Orders rows (expandable) */
.order-row { padding: 0; display: block; }
.order-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.order-summary::-webkit-details-marker { display: none; }
.order-summary:hover { background: color-mix(in oklab, var(--accent) 3%, transparent); }
.order-expand {
  margin-left: auto;
  color: var(--fg-3);
  font-size: 14px;
  transition: transform .15s;
}
.order-row[open] .order-expand { transform: rotate(180deg); }

.order-detail {
  padding: 4px 18px 18px 18px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 14px;
  background: color-mix(in oklab, var(--bg-1) 40%, transparent);
}
.order-detail-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start;
}
.order-detail-row strong {
  font-size: 11px; font-family: var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-3);
  padding-top: 6px;
}
.order-detail-row code {
  font-family: var(--f-mono); font-size: 12px;
  padding: 4px 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 5px;
  word-break: break-all; color: var(--fg-2);
  align-self: start;
}
.order-items {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--fg-2);
}
.order-items li::before { content: "› "; color: var(--accent); }
.order-detail textarea {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 8px 10px;
  font-size: 13px; min-height: 60px; resize: vertical;
  font-family: var(--f-sans); color: var(--fg);
  width: 100%;
}
.order-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 4px;
}

.order-pill-good { color: var(--good); border-color: color-mix(in oklab, var(--good) 50%, var(--line)); }
.order-pill-warn { color: #facc15; border-color: rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .06); }
.order-pill-bad  { color: #f87171; border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .06); }
.order-pill-muted{ color: var(--fg-3); }

@media (max-width: 700px) {
  .order-detail-row { grid-template-columns: 1fr; gap: 6px; }
  .order-detail-row strong { padding-top: 0; }
}

/* Inline Live/Hidden toggle on list rows */
.admin-row-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 4px 10px 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.admin-row-toggle:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.admin-row-toggle-label {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase;
  min-width: 38px; text-align: right;
}
.admin-list-item:not(.is-hidden) .admin-row-toggle-label { color: var(--good); }
.admin-list-item.is-hidden     .admin-row-toggle-label { color: #facc15; }

.admin-empty {
  padding: 32px 16px; text-align: center;
  font-size: 13.5px; color: var(--fg-3);
  border: 1px dashed var(--line); border-radius: 10px;
}

/* Dropdown with rendered badge preview alongside it */
.dropdown-with-preview {
  display: flex; align-items: center; gap: 8px;
}
.dropdown-with-preview select { flex: 1 1 auto; min-width: 0; }
.badge-preview {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-3);
  background: var(--bg-1); white-space: nowrap;
  opacity: .9; min-height: 22px;
}
.badge-preview.empty { opacity: .35; font-style: italic; }
.badge-preview.new { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.badge-preview.hot { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); }
.badge-preview.draft {
  color: #facc15; background: rgba(250, 204, 21, .08);
  border-color: rgba(250, 204, 21, .3);
}
.dropdown-custom-input { margin-top: 6px; }
.dropdown-custom-input.hidden { display: none; }
.admin-muted-inline { color: var(--fg-3); font-weight: 400; font-size: 12px; }

/* Recently edited compact list */
.admin-list.compact .admin-list-item {
  padding: 8px 12px;
}
.admin-list.compact .admin-thumb {
  width: 28px; height: 28px; font-size: 11px;
}
.admin-recent-kind {
  font-family: var(--f-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg-3);
  padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-1);
}

/* Search input */
.admin-search {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--f-sans);
  width: 240px;
  transition: border-color .15s, width .2s;
}
.admin-search:focus { outline: none; border-color: var(--accent); width: 280px; }

/* Image picker */
.image-picker {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  transition: border-color .2s, background .2s;
}
.image-picker.drag {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, var(--bg));
}
.image-picker-preview {
  width: 88px; height: 88px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: none;
}
.image-picker-preview.shown { display: block; }
.image-picker-empty {
  width: 88px; height: 88px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font-size: 10.5px; color: var(--fg-3);
  text-align: center; padding: 8px;
  line-height: 1.3;
  grid-column: 1; grid-row: 1;
}
.image-picker-empty.hidden { display: none; }
.image-picker-icon {
  font-family: var(--f-mono); font-size: 18px; color: var(--accent);
}
.image-picker-controls {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  grid-column: 2; grid-row: 1;
}
.image-picker-url {
  flex: 1; min-width: 140px;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--fg);
  font-family: var(--f-mono);
}
.image-picker-url:focus { outline: none; border-color: var(--accent); }

/* Live preview pane */
.admin-preview-pane {
  margin-bottom: 16px;
  padding: 14px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-preview-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.admin-preview-head .eyebrow {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .12em;
}
.admin-preview-head .admin-hint { margin: 0; font-size: 12px; color: var(--fg-3); }
.admin-preview-canvas {
  display: flex; justify-content: center; align-items: stretch;
  padding: 24px 20px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%),
    var(--bg-2);
  border-radius: 8px;
  min-height: 200px;
  border: 1px solid var(--line);
}
.admin-preview-canvas > .card,
.admin-preview-canvas > .game-tile {
  width: 100%; max-width: 320px;
  cursor: default;
}
.admin-preview-canvas .game-tile { max-width: 240px; }
.admin-preview-canvas .card:hover { transform: none; box-shadow: none; }
.admin-preview-canvas .card:hover .card-art::after { animation: none; }
.admin-preview-card.is-draft { position: relative; }
.admin-preview-draft {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--f-mono); font-size: 10.5px;
  font-weight: 600; color: #facc15;
  background: rgba(250, 204, 21, .14);
  border: 1px solid rgba(250, 204, 21, .4);
  padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .1em;
  pointer-events: none;
}
.admin-preview-card.is-draft .card-art,
.admin-preview-card.is-draft .game-art { filter: saturate(.5); }

/* Plans editor */
.plans-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--bg);
}
.plans-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.plans-editor-actions { display: flex; gap: 8px; align-items: center; }
.plans-editor-actions select {
  background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 6px 10px;
  font-size: 12.5px; color: var(--fg-3); font-family: var(--f-sans);
}
.plans-rows { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.plan-row.dragging { opacity: .4; }
.plan-row.drop-target {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  outline: 1px dashed color-mix(in oklab, var(--accent) 50%, var(--line));
}
.plan-drag {
  cursor: grab; color: var(--fg-3); font-size: 13px;
  user-select: none; padding: 0 4px;
}
.plan-drag:active { cursor: grabbing; }
.plan-row input, .plan-row select {
  background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 7px 10px;
  font-size: 13px; color: var(--fg); font-family: var(--f-sans);
  min-width: 0;
}
.plan-row .plan-currency {
  font-family: var(--f-mono); font-size: 12px;
  padding: 7px 8px; width: 70px;
}
.plan-row input:focus, .plan-row select:focus { outline: none; border-color: var(--accent); }
.plan-remove {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--fg-3);
  border-radius: 6px;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px; line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.plan-remove:hover { color: #f87171; border-color: #f87171; background: rgba(248,113,113,.08); }

/* Export box */
.export-box {
  width: 100%; min-height: 220px;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 14px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--fg-2); resize: vertical;
  box-sizing: border-box; line-height: 1.5;
  margin-top: 10px;
}
code {
  font-family: var(--f-mono); font-size: 12px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px;
  color: var(--accent);
}

/* Toasts */
.admin-toasts {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200; pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  padding: 12px 18px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px; color: var(--fg);
  min-width: 220px; max-width: 360px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.5);
  transform: translateX(20px) translateY(0); opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
  border-left: 3px solid var(--fg-3);
}
.admin-toast.in { transform: translateX(0); opacity: 1; }
.admin-toast-success { border-left-color: var(--accent); }
.admin-toast-error   { border-left-color: #f87171; }
.admin-toast-info    { border-left-color: var(--info, #60a5fa); }

/* Confirm modal */
.admin-confirm {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-confirm.hidden { display: none; }
.admin-confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: backdropFadeIn .2s ease;
}
.admin-confirm-card {
  position: relative; z-index: 1;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
  width: 100%; max-width: 420px;
  animation: modalScaleIn .25s cubic-bezier(.22,1,.36,1);
}
.admin-confirm-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.admin-confirm-card .admin-muted { margin: 0 0 18px; }
.admin-confirm-card .admin-actions { justify-content: flex-end; }

/* Responsive */
@media (max-width: 1000px) {
  .admin-shell-grid { grid-template-columns: 1fr; }
  .admin-sidebar {
    flex-direction: row; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
    position: sticky; top: 60px; max-height: none;
    padding: 12px 16px;
    background: var(--bg);
  }
  .admin-nav-item { flex-shrink: 0; }
  .admin-nav-item.active::before { display: none; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .admin-topbar { padding: 0 14px; height: 56px; }
  .admin-main { padding: 20px 16px 60px; }
  .admin-card { padding: 18px 16px; }
  .form-grid, .admin-grid-3 { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: auto 1fr auto auto auto; gap: 6px; }
  .plan-row .plan-currency { width: 64px; }
  .image-picker { grid-template-columns: 1fr; gap: 10px; }
  .image-picker-preview, .image-picker-empty { width: 100%; height: 140px; grid-column: 1; }
  .image-picker-controls { grid-column: 1; grid-row: auto; }
  .admin-topbar-right .button:not(:last-child) { display: none; }
  .admin-topbar-right .admin-save-indicator { display: none; }
  .admin-search { width: 100%; }
  .admin-list-head { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ─────────────────────────────────────────────────────────────
   Motion & polish layer (loaded last — overrides above)
   ───────────────────────────────────────────────────────────── */

@keyframes drawerSlideIn {
  from { transform: translateX(100%); opacity: .6; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(34px, -22px); }
  100% { transform: translate(0, 0); }
}
@keyframes cardShimmer {
  0%   { transform: translateX(-110%) skewX(-12deg); }
  100% { transform: translateX(220%)  skewX(-12deg); }
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.92); }
}

/* Scroll-reveal (animation, not transition — so hover transforms stay snappy) */
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in {
  opacity: 1;
  animation: revealFadeUp .7s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0ms);
}

/* Subpage ambient orbs — drifting accent glow */
body:not(.hero-page)::before {
  animation: orbDrift 22s ease-in-out infinite;
}

/* Card insertion enter animation + nth-child stagger */
.products-grid > .card,
.catalog-product-grid > .card,
.games-grid > .game-tile,
.announce-feed > *,
.announce-page-feed > * {
  animation: cardEnter .55s cubic-bezier(.22,1,.36,1) backwards;
}
.products-grid > :nth-child(1), .catalog-product-grid > :nth-child(1), .games-grid > :nth-child(1), .announce-feed > :nth-child(1), .announce-page-feed > :nth-child(1) { animation-delay:  0ms; }
.products-grid > :nth-child(2), .catalog-product-grid > :nth-child(2), .games-grid > :nth-child(2), .announce-feed > :nth-child(2), .announce-page-feed > :nth-child(2) { animation-delay: 60ms; }
.products-grid > :nth-child(3), .catalog-product-grid > :nth-child(3), .games-grid > :nth-child(3), .announce-feed > :nth-child(3), .announce-page-feed > :nth-child(3) { animation-delay: 120ms; }
.products-grid > :nth-child(4), .catalog-product-grid > :nth-child(4), .games-grid > :nth-child(4), .announce-feed > :nth-child(4), .announce-page-feed > :nth-child(4) { animation-delay: 180ms; }
.products-grid > :nth-child(5), .catalog-product-grid > :nth-child(5), .games-grid > :nth-child(5), .announce-feed > :nth-child(5), .announce-page-feed > :nth-child(5) { animation-delay: 240ms; }
.products-grid > :nth-child(6), .catalog-product-grid > :nth-child(6), .games-grid > :nth-child(6), .announce-feed > :nth-child(6), .announce-page-feed > :nth-child(6) { animation-delay: 300ms; }
.products-grid > :nth-child(n+7), .catalog-product-grid > :nth-child(n+7), .games-grid > :nth-child(n+7), .announce-feed > :nth-child(n+7), .announce-page-feed > :nth-child(n+7) { animation-delay: 360ms; }

/* Product card hover polish — accent glow + shimmer across art panel */
.card {
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.card:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow:
    0 12px 30px -8px color-mix(in oklab, var(--accent) 32%, transparent),
    0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent);
  transform: translateY(-3px);
}
.card .card-art { position: relative; overflow: hidden; }
.card .card-art::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    color-mix(in oklab, var(--accent) 28%, transparent) 50%,
    transparent 100%
  );
  transform: translateX(-150%) skewX(-12deg);
  pointer-events: none;
  filter: blur(2px);
}
.card:hover .card-art::after { animation: cardShimmer 1s cubic-bezier(.22,1,.36,1); }

/* Game tile hover polish */
.game-tile {
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.game-tile:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
  box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--accent) 28%, transparent);
}

/* Advantage card subtle glow */
.adv-card:hover {
  box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--accent) 24%, transparent);
}

/* Cart drawer + backdrop slide-in */
.cart-shell:not(.hidden) > .drawer-back { animation: backdropFadeIn .25s ease-out; }
.cart-shell:not(.hidden) > .drawer       { animation: drawerSlideIn .38s cubic-bezier(.22,1,.36,1); }

/* Product modal scale-in */
.modal-overlay:not(.hidden) > .modal-backdrop,
.modal-overlay:not(.hidden) > [data-close-modal] { animation: backdropFadeIn .25s ease-out; }
.modal-overlay:not(.hidden) > .modal-inner       { animation: modalScaleIn .4s cubic-bezier(.22,1,.36,1); }

/* Sticky nav — translucent + blurred once scrolled */
.site-header {
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .6);
}

/* Active nav link — animated underline */
.nav-mid .nav-link { position: relative; }
.nav-mid .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.nav-mid .nav-link:hover::after,
.nav-mid .nav-link.active::after { transform: scaleX(1); }

/* Reduced-motion: kill all the noise */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  body:not(.hero-page)::before { animation: none; }
  .products-grid > .card,
  .catalog-product-grid > .card,
  .games-grid > .game-tile,
  .announce-feed > *,
  .announce-page-feed > * { animation: none; }
  .cart-shell:not(.hidden) > .drawer,
  .cart-shell:not(.hidden) > .drawer-back,
  .modal-overlay:not(.hidden) > .modal-inner,
  .modal-overlay:not(.hidden) > .modal-backdrop,
  .modal-overlay:not(.hidden) > [data-close-modal] { animation: none; }
  .card:hover, .game-tile:hover, .adv-card:hover { transform: none; }
}
