/* AdsAnyway design system: "Night market"
   Canvas violet-ink, loot gold for money + primary CTA, rare blue for buyer side.
   Depth by luminance. No colored side bars, no pulsing dots. */

:root {
  --canvas: #12111A;
  --surface-1: #1A1926;
  --surface-2: #232134;
  --surface-3: #2C2A40;
  --surface-4: #363352;
  --ink: #F1EFFA;
  --ink-body: #C9C6DC;
  --ink-muted: #8E8AA6;
  --ink-faint: #5A577A;

  --gold: #F5B942;
  --gold-hi: #FFD073;
  --gold-lo: #D9962A;
  --gold-ink: #1B1405;
  --gold-dim: rgba(245,185,66,.12);
  --blue: #6E8BFF;
  --blue-hi: #93A8FF;
  --blue-dim: rgba(110,139,255,.14);
  --violet: #B07CFF;
  --green: #3DD68C;
  --green-dim: rgba(61,214,140,.12);
  --red: #FF5C6C;
  --red-dim: rgba(255,92,108,.12);

  --tier-common: #9A9AB0;
  --tier-rare: #6E8BFF;
  --tier-epic: #B07CFF;
  --tier-legendary: #F5B942;

  --line: rgba(241,239,250,.07);
  --line-strong: rgba(241,239,250,.13);
  --hi: rgba(255,255,255,.05);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-ui: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --t-fast: .16s var(--ease-out);
  --t-med: .3s var(--ease-out);

  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 50px -20px rgba(0,0,0,.75);
  --shadow-gold: 0 8px 28px -8px rgba(245,185,66,.45);

  --nav-h: 66px;
  --shell: 1200px;
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: rgba(245,185,66,.3); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw + 10px, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(24px, 1.8vw + 12px, 36px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: clamp(17px, .6vw + 12px, 20px); line-height: 1.25; letter-spacing: -.015em; }
h4 { font-size: 15px; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a.link { color: var(--blue-hi); }
a.link:hover { color: var(--ink); }
code, kbd { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- utilities ---------- */
.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.ink { color: var(--ink); }
.gold { color: var(--gold); }
.blue-text { color: var(--blue-hi); }
.green-text { color: var(--green); }
.red-text { color: var(--red); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
.lead { font-size: clamp(16px, .5vw + 13px, 19px); line-height: 1.55; color: var(--ink-muted); }
.balance { text-wrap: balance; }
.center { text-align: center; }
.right { text-align: right; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row.start { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; } .mb-5 { margin-bottom: 40px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.shell.narrow { max-width: 760px; }
.shell.tight { max-width: 480px; }
.page-pad { padding-top: 44px; padding-bottom: 110px; }
.section { padding-block: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head .eyebrow { margin-bottom: 10px; display: block; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.rise { animation: rise .7s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .08s; transition-delay: .08s; } .d2 { animation-delay: .16s; transition-delay: .16s; }
.d3 { animation-delay: .24s; transition-delay: .24s; } .d4 { animation-delay: .32s; transition-delay: .32s; }
.d5 { animation-delay: .4s; transition-delay: .4s; } .d6 { animation-delay: .48s; transition-delay: .48s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(2px); } 30%,50%,70% { transform: translateX(-4px); } 40%,60% { transform: translateX(4px); } }
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both; }

/* ---------- nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,17,26,.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.topnav.scrolled { border-bottom-color: var(--line); background: rgba(18,17,26,.86); }
.topnav-inner { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.03em; }
.brand-mark { width: 26px; height: 26px; display: block; transition: transform .5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.nav-links { display: flex; gap: 2px; margin-left: 6px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  padding: 8px 13px; border-radius: 999px; position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--hi); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); }
.topnav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums;
  background: var(--surface-1); border: 1px solid var(--line-strong);
  padding: 6px 12px 6px 10px; border-radius: 999px; color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.balance-chip svg { color: var(--gold); width: 14px; height: 14px; }
.balance-chip:hover { border-color: rgba(245,185,66,.4); background: var(--surface-2); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--ink-muted); cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { color: var(--ink); background: var(--hi); border-color: var(--line); }
.icon-btn svg { width: 17px; height: 17px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 36px;
  background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink-faint); font-size: 12.5px; padding: 0 10px 0 11px; cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.search-trigger:hover { color: var(--ink-muted); border-color: rgba(245,185,66,.35); }
.search-trigger svg { width: 14px; height: 14px; }
.search-trigger kbd { background: var(--surface-3); border-color: transparent; padding: 1px 6px; font-size: 11px; color: var(--ink-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  padding: 11px 20px; border-radius: 12px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  color: var(--gold-ink); text-decoration: none; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--shadow-gold);
  transition: transform .18s var(--ease-spring), box-shadow var(--t-fast), filter var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 32px -8px rgba(245,185,66,.55); color: var(--gold-ink); }
.btn:active { transform: translateY(0) scale(.985); }
.btn::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 35%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .6s var(--ease-out);
}
.btn:hover::after { left: 130%; }
.btn.secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-1); }
.btn.secondary:hover { background: var(--surface-3); border-color: rgba(241,239,250,.2); filter: none; box-shadow: var(--shadow-1); color: var(--ink); }
.btn.secondary::after { display: none; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-muted); box-shadow: none; }
.btn.ghost:hover { background: var(--hi); color: var(--ink); filter: none; box-shadow: none; transform: none; }
.btn.ghost::after { display: none; }
.btn.blue { background: linear-gradient(180deg, var(--blue-hi), var(--blue) 60%, #5B76E8); color: #0C1030; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 28px -8px rgba(110,139,255,.5); }
.btn.blue:hover { color: #0C1030; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 32px -8px rgba(110,139,255,.6); }
.btn.danger { background: var(--red-dim); border-color: rgba(255,92,108,.4); color: #FF8A96; box-shadow: none; }
.btn.danger:hover { background: rgba(255,92,108,.2); color: #FFB0B8; filter: none; box-shadow: none; }
.btn.danger::after { display: none; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn.sm svg { width: 13px; height: 13px; }
.btn.lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn.lg svg { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 16px 0 14px; color: var(--ink-faint); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.btn.oauth-google { justify-content: center; background: var(--surface-1); color: var(--ink); }
.btn.oauth-google svg { width: 18px; height: 18px; stroke: none; flex-shrink: 0; }
.btn.oauth-google:hover { color: var(--ink); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn[data-loading] { pointer-events: none; opacity: .85; }
.btn[data-loading]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; animation: spin .7s linear infinite; flex-shrink: 0; }
.btn.secondary[data-loading]::before, .btn.ghost[data-loading]::before { border-color: rgba(255,255,255,.2); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ---------- chips / tiers ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; white-space: nowrap; line-height: 1.3;
}
.chip svg { width: 12px; height: 12px; }
.chip.up { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.chip.gold { color: var(--gold); border-color: rgba(245,185,66,.35); background: var(--gold-dim); }
.chip.blue { color: var(--blue-hi); border-color: rgba(110,139,255,.35); background: var(--blue-dim); }
.chip.green { color: var(--green); border-color: rgba(61,214,140,.35); background: var(--green-dim); }
.chip.red { color: #FF8A96; border-color: rgba(255,92,108,.38); background: var(--red-dim); }
.chip.violet { color: #C9A6FF; border-color: rgba(176,124,255,.38); background: rgba(176,124,255,.12); }
.chip.solid { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.tier { --tc: var(--tier-common); color: var(--tc); border-color: color-mix(in srgb, var(--tc) 40%, transparent); background: color-mix(in srgb, var(--tc) 12%, transparent); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.tier.rare { --tc: var(--tier-rare); }
.tier.epic { --tc: var(--tier-epic); }
.tier.legendary { --tc: var(--tier-legendary); }
.tier::before { content: ""; width: 6px; height: 6px; background: var(--tc); transform: rotate(45deg); border-radius: 1px; }
.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.price .unit { color: var(--ink-faint); font-weight: 400; font-size: .78em; margin-left: 2px; }

/* ---------- cards + HUD brackets ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-1), #171624);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.card.raised { background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.card.flat { box-shadow: none; background: var(--surface-1); }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.pad-s { padding: 16px; }
.card.pad-0 > .empty,
.card.pad-0 > .empty-state { padding: 40px 24px; }
.table-scroll { overflow-x: auto; }
.panel { margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; padding: 16px 18px 0; }
.panel-head h2 { font-size: 20px; }
.panel-head h3 { font-size: 16px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: clamp(26px, 2.6vw, 34px); }
.dash-head .who { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.card.hud { --hud: var(--ink-faint); --hud-len: 14px; --hud-w: 1.5px; }
.card.hud::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(var(--hud), var(--hud)) top left / var(--hud-len) var(--hud-w) no-repeat,
    linear-gradient(var(--hud), var(--hud)) top left / var(--hud-w) var(--hud-len) no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / var(--hud-len) var(--hud-w) no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / var(--hud-w) var(--hud-len) no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / var(--hud-len) var(--hud-w) no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / var(--hud-w) var(--hud-len) no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / var(--hud-len) var(--hud-w) no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / var(--hud-w) var(--hud-len) no-repeat;
  opacity: .55;
  transition: background-size .35s var(--ease-spring), opacity var(--t-med);
}
.card.hud.tier-rare { --hud: var(--tier-rare); }
.card.hud.tier-epic { --hud: var(--tier-epic); }
.card.hud.tier-legendary { --hud: var(--tier-legendary); }
.card.hud.gold-hud { --hud: var(--gold); }
.card.lift { transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.card.lift:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card.lift:hover.hud::after { --hud-len: 24px; opacity: 1; background-size: var(--hud-len) var(--hud-w), var(--hud-w) var(--hud-len), var(--hud-len) var(--hud-w), var(--hud-w) var(--hud-len), var(--hud-len) var(--hud-w), var(--hud-w) var(--hud-len), var(--hud-len) var(--hud-w), var(--hud-w) var(--hud-len); }
.card.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px 180px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.card.glow:hover::before { opacity: 1; }
a.card { color: inherit; display: block; }

/* inventory card */
.inv { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; }
.inv .inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.inv .inv-site { font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -.01em; }
.inv .inv-zone { color: var(--ink-muted); font-size: 13px; margin-top: 2px; }
.inv .inv-frame { background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; place-items: center; min-height: 84px; }
.inv .inv-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.inv .inv-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.inv .inv-foot .price { font-size: 16px; }
.inv .inv-cta { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 5px; transition: color var(--t-fast), gap var(--t-fast); }
.inv .inv-cta svg { width: 14px; height: 14px; stroke-width: 2; }
.card:hover .inv-cta { color: var(--ink); gap: 8px; }
.inv.list { flex-direction: row; align-items: center; padding: 14px 18px; gap: 18px; }
.inv.list .inv-frame { min-height: 0; width: 180px; flex-shrink: 0; padding: 8px; }
.inv.list .inv-foot { border: 0; padding: 0; margin: 0; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 6px; }
.inv.list .inv-meta { margin-top: 6px; }

/* ---------- true-scale slot frame (JS renders the SVG) ---------- */
.slot-frame { width: 100%; display: grid; place-items: center; --frame-max: 120px; --frame-color: var(--ink-muted); }
.slot-frame svg { width: 100%; height: auto; max-height: var(--frame-max); overflow: visible; }
.slot-frame .sf-rect { fill: rgba(245,185,66,.04); stroke: var(--frame-color); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.slot-frame .sf-tick { stroke: var(--frame-color); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.slot-frame .sf-dim { stroke: var(--frame-color); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .45; stroke-dasharray: 3 3; }
.slot-frame .sf-label { font-family: var(--font-mono); fill: var(--ink-muted); font-size: 13px; letter-spacing: .05em; }
.slot-frame .sf-center { font-family: var(--font-mono); fill: var(--ink-faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.slot-frame.gold { --frame-color: var(--gold); }
.slot-frame.lg { --frame-max: 260px; }
.slot-frame.lg .sf-label { font-size: 12px; }
.slot-frame.sm { --frame-max: 64px; }
.slot-frame.draw .sf-rect { stroke-dasharray: var(--sf-len, 2000); stroke-dashoffset: var(--sf-len, 2000); animation: sf-draw 1.1s var(--ease-in-out) forwards; }
.slot-frame.draw .sf-tick, .slot-frame.draw .sf-dim, .slot-frame.draw text { opacity: 0; animation: sf-fade .5s .7s var(--ease-out) forwards; }
@keyframes sf-draw { to { stroke-dashoffset: 0; } }
@keyframes sf-fade { to { opacity: 1; } }
.slot-frame.draw .sf-dim { animation-name: sf-fade-dim; }
@keyframes sf-fade-dim { to { opacity: .45; } }
.slot-frame.draw .sf-tick { animation-name: sf-fade-tick; }
@keyframes sf-fade-tick { to { opacity: .7; } }
.slot-frame img.sf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- stats ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-num.gold { color: var(--gold); }
.stat-num.green { color: var(--green); }
.stat-label { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .09em; font-weight: 500; }
.stat-sub { font-size: 12.5px; color: var(--ink-muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; }
.kpi .stat-num { font-size: 28px; }

/* ---------- forms ---------- */
label, .label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-bottom: 7px; letter-spacing: .01em; }
input, select, textarea {
  background: rgba(0,0,0,.3); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 11px 13px; font-size: 14px; font-family: var(--font-ui); width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
input[type=number] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { border-color: rgba(241,239,250,.2); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(245,185,66,.14); background: rgba(0,0,0,.4); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--gold); padding: 0; }
input[type=file] { padding: 9px 12px; font-size: 13px; color: var(--ink-muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 12.5px; color: var(--ink); background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 11px; margin-right: 10px; cursor: pointer; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238E8AA6' fill='none' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 7px; line-height: 1.45; }
.field-note.ok { color: var(--green); }
.field-note.err { color: #FF8A96; }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-family: var(--font-mono); font-size: 14px; pointer-events: none; }
.input-wrap .suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 12.5px; pointer-events: none; }
.input-wrap.has-prefix input { padding-left: 28px; }
.input-wrap.has-suffix input { padding-right: 64px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--ink-faint); display: grid; place-items: center; transition: color var(--t-fast); }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 16px; height: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-muted); text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; }
.check input { margin-top: 3px; flex-shrink: 0; }

/* segmented choice (radio cards) */
.seg { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color var(--t-fast), background var(--t-fast), transform .2s var(--ease-spring);
  text-transform: none; letter-spacing: 0; color: var(--ink-body); font-size: 13.5px;
}
.seg .opt strong { font-size: 14px; }
.seg .opt small { color: var(--ink-faint); font-size: 12px; line-height: 1.4; }
.seg .opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.seg input:checked + .opt { border-color: var(--gold); background: var(--gold-dim); }
.seg input:checked + .opt strong { color: var(--ink); }
.seg input:focus-visible + .opt { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg.blue input:checked + .opt { border-color: var(--blue); background: var(--blue-dim); }
.seg.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.pills .opt { padding: 7px 13px; border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px; flex-direction: row; }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: rgba(255,255,255,.02); }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; text-align: right; }
td.actions { text-align: right; white-space: nowrap; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  position: relative; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--t-fast);
}
.tabs a svg, .tabs button svg { width: 15px; height: 15px; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.active, .tabs button.active { color: var(--ink); }
.tabs a.active::after, .tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--gold); border-radius: 2px; }
.tabs .count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,7,14,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 91;
  background: var(--surface-1); border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .38s var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-1); }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 92vh; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 18px 18px 0 0; transform: translateY(100%); }
}

/* ---------- misc components ---------- */
.flash { border-radius: 11px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; animation: rise .35s var(--ease-out); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-body); }
.flash svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.flash.error { background: var(--red-dim); border-color: rgba(255,92,108,.4); color: #FFB0B8; }
.flash.success { background: var(--green-dim); border-color: rgba(61,214,140,.4); color: #8FE8B9; }
.flash.info { background: var(--blue-dim); border-color: rgba(110,139,255,.4); color: #C5D0FF; }
.flash a { text-decoration: underline; text-underline-offset: 2px; }

.divider { height: 1px; background: var(--line); margin: 22px 0; }
.empty, .empty-state { text-align: center; padding: 56px 20px; color: var(--ink-faint); }
.empty .glyph, .empty-state .glyph { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink-muted); }
.empty .glyph svg, .empty-state .glyph svg { width: 22px; height: 22px; }
.empty .big, .empty-state .big { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 6px; letter-spacing: -.015em; }
.empty p, .empty-state p { margin-top: 4px; font-size: 13.5px; }
.empty .btn, .empty-state .btn { margin-top: 16px; }

.progress { height: 6px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transition: width .6s var(--ease-out); }
.progress.green i { background: linear-gradient(90deg, #2FB878, var(--green)); }
.progress.red i { background: linear-gradient(90deg, #E04A5A, var(--red)); }
.progress.blue i { background: linear-gradient(90deg, #5B76E8, var(--blue-hi)); }

/* time arc (auctions) */
.arc { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.arc svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.arc circle { fill: none; stroke-width: 3.5; }
.arc .arc-bg { stroke: rgba(255,255,255,.07); }
.arc .arc-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--pct, 0)); transition: stroke-dashoffset 1s var(--ease-out), stroke .4s; }
.arc.red .arc-fg { stroke: var(--red); }
.arc .arc-txt { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-muted); letter-spacing: 0; }

/* bid pulse ring */
.pulse-ring { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.pulse-ring.fire::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); animation: pulse-once .9s var(--ease-out) both; }
@keyframes pulse-once { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* tooltips */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 70;
  transform: translate(-50%, 4px) scale(.96); background: var(--surface-3); color: var(--ink);
  font-family: var(--font-ui); font-size: 11.5px; line-height: 1.35; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: .3s; }
@media (hover: none) { [data-tip]::after { display: none; } }

/* toasts */
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: rgba(35,33,52,.92); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line-strong); border-radius: 13px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-body); box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: toast-in .4s var(--ease-spring) both; }
.toast.leaving { animation: toast-out .22s var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(8px) scale(.97); filter: blur(3px); } }
.toast svg.t-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.success { border-color: rgba(61,214,140,.45); } .toast.success .t-icon { color: var(--green); }
.toast.error { border-color: rgba(255,92,108,.45); } .toast.error .t-icon { color: var(--red); }
.toast path.check { stroke-dasharray: 26; stroke-dashoffset: 26; animation: check-draw .4s .12s var(--ease-out) forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.toast .t-close { background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 2px; margin-left: 2px; display: grid; place-items: center; }
.toast .t-close svg { width: 14px; height: 14px; }
.toast .t-close:hover { color: var(--ink); }

/* command palette */
.cmdk-backdrop { position: fixed; inset: 0; background: rgba(8,7,14,.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 14vh 16px 0; }
.cmdk-backdrop.open { display: flex; animation: cmdk-fade .15s ease both; }
@keyframes cmdk-fade { from { opacity: 0; } }
.cmdk-panel { width: min(560px, 100%); background: rgba(26,25,38,.96); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: cmdk-pop .25s var(--ease-spring) both; }
@keyframes cmdk-pop { from { opacity: 0; transform: scale(.96) translateY(-8px); } }
.cmdk-input { border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 18px; font-size: 15px; background: transparent; }
.cmdk-input:focus { border-color: transparent; border-bottom-color: var(--line); box-shadow: none; background: transparent; }
.cmdk-list { max-height: 340px; overflow: auto; padding: 6px; }
.cmdk-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink-body); cursor: pointer; transition: background .12s var(--ease-out); }
.cmdk-item.sel { background: var(--gold-dim); color: var(--ink); }
.cmdk-item .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.cmdk-empty { padding: 20px; text-align: center; color: var(--ink-faint); font-size: 13px; }

/* copy block */
.codeblock { position: relative; background: #0D0C14; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-body); overflow-x: auto; white-space: pre; }
.codeblock .tok { color: var(--gold); }
.codeblock .str { color: #A7C7FF; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; }

/* steps */
.steps { display: flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.steps span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.steps span.done { color: var(--green); border-color: rgba(61,214,140,.35); }
.steps span.now { color: var(--gold); border-color: rgba(245,185,66,.4); background: var(--gold-dim); }
.steps i { width: 14px; height: 1px; background: var(--line-strong); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.checklist li > div { flex: 1; min-width: 0; }
.checklist li strong { font-size: 14px; display: block; }
.checklist li p { font-size: 12.5px; color: var(--ink-muted); margin-top: 1px; }
.checklist .mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-strong); color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; }
.checklist .mark svg { width: 14px; height: 14px; }
.checklist li.done .mark { background: var(--green-dim); color: var(--green); border-color: rgba(61,214,140,.4); }
.checklist li.done { opacity: .7; }
.checklist li.now { border-color: rgba(245,185,66,.4); background: var(--gold-dim); }
.checklist li.now .mark { color: var(--gold); border-color: rgba(245,185,66,.5); }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 12px; height: 12px; }

/* thin spend bar */
.bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transition: width .6s var(--ease-out); }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-muted); background: var(--surface-2); }
.status.active, .status.approved, .status.delivered, .status.live { color: var(--green); border-color: rgba(61,214,140,.35); background: var(--green-dim); }
.status.paused, .status.pending, .status.scheduled, .status.paid { color: var(--gold); border-color: rgba(245,185,66,.35); background: var(--gold-dim); }
.status.rejected, .status.denied, .status.off, .status.cancelled, .status.expired { color: #FF8A96; border-color: rgba(255,92,108,.35); background: var(--red-dim); }

/* numbered explainer list */
.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ol; }
.olist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.olist li::before { counter-increment: ol; content: counter(ol); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; grid-column: 1; grid-row: 1 / -1; }
.olist li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; grid-column: 2; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 52px 0 36px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 500; }
.footer-grid a { display: block; font-size: 13.5px; color: var(--ink-muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; }

/* ---------- mobile bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 14.5px; }
  .shell { padding: 0 18px; }
  .page-pad { padding-top: 26px; padding-bottom: 110px; }
  .section { padding-block: 52px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.auto { grid-template-columns: 1fr; gap: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .stat-num { font-size: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { display: none; }
  .topnav-inner { height: 58px; gap: 12px; }
  .search-trigger kbd, .search-trigger .st-label { display: none; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; }
  .inv.list { flex-direction: column; align-items: stretch; }
  .inv.list .inv-frame { width: 100%; }
  .inv.list .inv-foot { flex-direction: row; align-items: center; margin-left: 0; }

  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.data tr:last-child { border-bottom: none; }
  table.data td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border-bottom: none; text-align: left; }
  table.data td::before { content: attr(data-label); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); flex-shrink: 0; }
  table.data td:first-child { display: block; padding-bottom: 10px; }
  table.data td:first-child::before { content: none; }
  table.data td.actions { justify-content: flex-end; }
  table.data td.actions::before { content: none; }
  td.num { text-align: right; }

  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-around;
    background: rgba(18,17,26,.9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--ink-faint); padding: 6px 10px; border-radius: 10px; min-width: 58px; transition: color var(--t-fast), transform .15s var(--ease-spring); }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--gold); }
  .bottom-nav a:active { transform: scale(.92); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px 0 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { animation: none; }
  .slot-frame.draw .sf-rect, .slot-frame.draw .sf-tick, .slot-frame.draw .sf-dim, .slot-frame.draw text { animation: none; stroke-dashoffset: 0; opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
