/* ─────────────────────────────────────────────────────────────────
   Steam Invest Portfolio — Tokens & Base
   Original design. Not affiliated with Steam/Valve.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  /* Base — near black, cool slight-blue tone */
  --bg-0: #050608;
  --bg-1: #0a0c11;
  --bg-2: #10131a;
  --bg-3: #161a23;
  --panel: rgba(20, 24, 33, 0.55);
  --panel-strong: rgba(28, 33, 45, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Foreground */
  --fg-0: #f6f7fb;
  --fg-1: #cdd1dc;
  --fg-2: #8b91a3;
  --fg-3: #5a5f70;
  --fg-4: #3a3f4d;

  /* Accent — magenta/pink (per swatch pick) */
  --accent: oklch(0.68 0.22 5);
  --accent-soft: oklch(0.68 0.22 5 / 0.18);
  --accent-glow: oklch(0.72 0.24 5 / 0.45);

  /* Secondary for charts */
  --cyan: oklch(0.78 0.14 210);
  --green: oklch(0.78 0.16 150);
  --amber: oklch(0.82 0.16 75);
  --red: oklch(0.66 0.22 25);

  /* CS2-ish rarity colors (generic, not Valve trademarked) */
  --rar-1: #4b69ff; /* mil-spec-ish */
  --rar-2: #8847ff; /* restricted-ish */
  --rar-3: #d32ce6; /* classified-ish */
  --rar-4: #eb4b4b; /* covert-ish */
  --rar-5: #ffd700; /* exotic-ish */

  /* Glass */
  --glass-blur: 22px;
  --glass-sat: 140%;

  /* Type */
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); color: var(--fg-0); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
button { font-family: inherit; cursor: default; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Background — layered */
.app-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.68 0.22 5 / 0.12), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, oklch(0.78 0.14 210 / 0.06), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, oklch(0.68 0.22 5 / 0.06), transparent 60%),
    var(--bg-0);
}
.app-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
}
.app-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Glass panel */
.glass {
  background: var(--panel);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 50px rgba(0,0,0,0.35);
}
.glass-strong {
  background: var(--panel-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

/* Type utilities */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
}
.kbd {
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--fg-2); background: rgba(255,255,255,0.02);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--fg-0); transition: all 160ms ease;
  cursor: default;
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, oklch(0.72 0.24 5), oklch(0.6 0.22 5));
  border-color: oklch(0.72 0.24 5 / 0.8);
  color: #fff;
  box-shadow: 0 8px 24px oklch(0.68 0.22 5 / 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 32px oklch(0.68 0.22 5 / 0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-sm { padding: 7px 11px; font-size: 11.5px; border-radius: 8px; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: var(--fg-1);
}
.chip-accent { color: oklch(0.72 0.24 5); border-color: oklch(0.72 0.24 5 / 0.4); background: oklch(0.68 0.22 5 / 0.08); }
.chip-up { color: var(--green); border-color: oklch(0.78 0.16 150 / 0.3); background: oklch(0.78 0.16 150 / 0.08); }
.chip-down { color: var(--red); border-color: oklch(0.66 0.22 25 / 0.3); background: oklch(0.66 0.22 25 / 0.08); }

/* Live dot */
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: 0.4; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* Scanline texture for hero */
.scanlines::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
}

/* Section helpers */
.section { padding: 120px 64px; position: relative; }
.section-tight { padding: 64px 64px; }
.container { max-width: 1320px; margin: 0 auto; }

/* Numbers ticking */
.num-tick { font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Scroll bar dark */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Float gradient bar (FN→BS) */
.float-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg,
    oklch(0.78 0.16 150) 0%, oklch(0.78 0.16 150) 7%,
    oklch(0.82 0.18 130) 7%, oklch(0.82 0.18 130) 15%,
    oklch(0.82 0.16 75) 15%, oklch(0.82 0.16 75) 38%,
    oklch(0.74 0.18 40) 38%, oklch(0.74 0.18 40) 45%,
    oklch(0.66 0.22 25) 45%, oklch(0.66 0.22 25) 100%
  );
  position: relative;
}

/* Item card hover lift */
.item-card {
  position: relative; padding: 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  transition: all 200ms ease;
}
.item-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px 0 0 2px;
  background: var(--rar-tier, var(--rar-2));
  opacity: 0.7;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

/* Market explorer */
.market-toolbar {
  padding: 22px;
  margin-bottom: 22px;
}
.market-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.market-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 580px;
}
.market-search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--fg-0);
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.market-search-input:focus {
  border-color: oklch(0.72 0.24 5 / 0.55);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px oklch(0.68 0.22 5 / 0.08);
}
.market-search-input::placeholder { color: var(--fg-3); }
.market-toolbar-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.market-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.market-filter-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.market-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.market-filter-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 160ms ease;
  cursor: pointer;
}
.market-filter-chip:hover {
  color: var(--fg-0);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.05);
}
.market-filter-chip[data-active="true"] {
  color: var(--fg-0);
  border-color: oklch(0.72 0.24 5 / 0.45);
  background: linear-gradient(180deg, oklch(0.68 0.22 5 / 0.18), rgba(255,255,255,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255,255,255,0.05), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  text-align: left;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}
.market-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--rar-tier, var(--rar-2));
  opacity: 0.8;
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}
.market-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.market-card-art {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
}
.market-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}
.market-card-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.market-card-sub {
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.market-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 10px;
}
.market-card-price {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}
.market-card-listings {
  margin-top: 4px;
  color: var(--fg-1);
  font-family: var(--f-mono);
  font-size: 13px;
}
.market-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.market-empty {
  padding: 32px;
}

button:disabled,
.market-filter-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Marching border */
@keyframes march {
  to { background-position: 200% 0; }
}
.march {
  background: linear-gradient(90deg, transparent 0%, oklch(0.72 0.24 5 / 0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: march 2.4s linear infinite;
}

/* Fade-in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.hero-3d-stage {
  width: 100%;
  height: 620px;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-operators-glow {
  position: absolute;
  width: min(76vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.68 0.22 5 / 0.35), transparent 60%);
  filter: blur(20px);
}

.hero-operators-ring,
.hero-operators-ring-alt {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-operators-ring {
  width: min(62vw, 380px);
  aspect-ratio: 1;
  border: 1px solid oklch(0.68 0.22 5 / 0.35);
  animation: ringSpin 40s linear infinite;
}

.hero-operators-ring-alt {
  width: min(74vw, 460px);
  aspect-ratio: 1;
  border: 1px dashed oklch(0.78 0.14 210 / 0.3);
  animation: ringSpin 80s linear infinite reverse;
}

.hero-operators-shadow {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(64vw, 380px);
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 70%);
  filter: blur(12px);
}

.hero-operators-image-wrap {
  position: relative;
  z-index: 2;
  width: min(82vw, 560px);
  height: min(82vw, 560px);
  display: grid;
  place-items: center;
}

.hero-operators-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 60px rgba(0,0,0,0.7))
    drop-shadow(0 0 40px oklch(0.68 0.22 5 / 0.25));
  transform: translateY(8px);
  pointer-events: none;
  user-select: none;
}

.hero-operators-fallback {
  position: relative;
  width: min(82vw, 520px);
  height: min(82vw, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 36px 24px 20px;
}

.hero-operators-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 50% 12%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(180deg, rgba(28,33,45,0.88), rgba(10,12,17,0.96));
  box-shadow:
    0 26px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}

.hero-operators-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-operators-card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 70%;
  height: 56%;
  transform: translateX(-50%);
  border-radius: 46% 46% 16% 16%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.22), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  filter: blur(0.4px);
  opacity: 0.78;
}

.hero-operators-card[data-slot="center"] {
  height: 82%;
  transform: translateY(-6px);
}

.hero-operators-card[data-slot="left"],
.hero-operators-card[data-slot="right"] {
  height: 70%;
}

.hero-operators-card[data-slot="left"] {
  transform: rotate(-6deg) translateY(14px);
}

.hero-operators-card[data-slot="right"] {
  transform: rotate(6deg) translateY(10px);
}

.hero-operators-badge {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.hero-operators-readout {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  padding: 10px 18px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(0.68 0.22 5 / 0.4);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

/* Mini sparkline */
.sparkline { display: block; width: 100%; height: 32px; }

/* Tab */
.tab {
  padding: 8px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid transparent;
  cursor: default;
}
.tab[data-active="true"] { color: var(--fg-0); border-color: oklch(0.72 0.24 5); }
.tab:hover { color: var(--fg-0); }

/* Item placeholder (we don't draw real CS2 art) */
.item-art {
  position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(64, 72, 81, 0.96), rgba(49, 56, 64, 0.98));
  border: 1px solid var(--line);
}
.item-art::after {
  content: attr(data-label); position: absolute; left: 8px; bottom: 6px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--fg-3); text-transform: uppercase;
}

/* Rarity tier accents */
.tier-1 { --rar-tier: var(--rar-1); }
.tier-2 { --rar-tier: var(--rar-2); }
.tier-3 { --rar-tier: var(--rar-3); }
.tier-4 { --rar-tier: var(--rar-4); }
.tier-5 { --rar-tier: var(--rar-5); }

/* Header nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(5,6,8,0.8), rgba(5,6,8,0.4));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.78 0.24 5), oklch(0.5 0.22 5));
  position: relative;
  box-shadow: 0 4px 14px oklch(0.68 0.22 5 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.nav-logo-mark::after {
  content: ''; position: absolute; inset: 6px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 3px;
  transform: rotate(45deg);
}
.nav-link {
  padding: 8px 12px; font-size: 12.5px; font-weight: 500; color: var(--fg-2);
  border-radius: 8px; cursor: default;
}
.nav-link:hover { color: var(--fg-0); background: rgba(255,255,255,0.04); }
.nav-link[data-active="true"] { color: var(--fg-0); background: rgba(255,255,255,0.05); }

/* Visual direction skins */
[data-skin="cyber"] {
  --accent: oklch(0.68 0.22 5);
  --accent-soft: oklch(0.68 0.22 5 / 0.18);
  --accent-glow: oklch(0.72 0.24 5 / 0.45);
}
[data-skin="tactical"] {
  --accent: oklch(0.84 0.18 88);
  --accent-soft: oklch(0.84 0.18 88 / 0.18);
  --accent-glow: oklch(0.86 0.18 88 / 0.45);
}
[data-skin="luxe"] {
  --accent: oklch(0.82 0.13 80);
  --accent-soft: oklch(0.82 0.13 80 / 0.18);
  --accent-glow: oklch(0.86 0.13 80 / 0.45);
}

/* When skin changes, override key surfaces */
[data-skin="tactical"] .nav-logo-mark {
  background: radial-gradient(circle at 30% 30%, oklch(0.92 0.18 88), oklch(0.6 0.18 88));
  box-shadow: 0 4px 14px oklch(0.84 0.18 88 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-skin="luxe"] .nav-logo-mark {
  background: radial-gradient(circle at 30% 30%, oklch(0.92 0.13 80), oklch(0.6 0.13 80));
  box-shadow: 0 4px 14px oklch(0.82 0.13 80 / 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-skin="tactical"] .btn-primary {
  background: linear-gradient(180deg, oklch(0.88 0.18 88), oklch(0.7 0.18 88));
  border-color: oklch(0.88 0.18 88 / 0.8);
  color: #1a1500;
  box-shadow: 0 8px 24px oklch(0.84 0.18 88 / 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-skin="luxe"] .btn-primary {
  background: linear-gradient(180deg, oklch(0.92 0.13 80), oklch(0.7 0.13 80));
  border-color: oklch(0.86 0.13 80 / 0.8);
  color: #1a1100;
  box-shadow: 0 8px 24px oklch(0.82 0.13 80 / 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
[data-skin="tactical"] .chip-accent { color: oklch(0.88 0.18 88); border-color: oklch(0.84 0.18 88 / 0.4); background: oklch(0.84 0.18 88 / 0.08); }
[data-skin="luxe"] .chip-accent { color: oklch(0.86 0.13 80); border-color: oklch(0.82 0.13 80 / 0.4); background: oklch(0.82 0.13 80 / 0.08); }
[data-skin="tactical"] .tab[data-active="true"] { border-color: oklch(0.84 0.18 88); }
[data-skin="luxe"] .tab[data-active="true"] { border-color: oklch(0.82 0.13 80); }

@media (max-width: 1100px) {
  .hero-3d-stage {
    height: 560px;
  }

  .market-toolbar-top,
  .market-filter-group {
    grid-template-columns: 1fr;
    display: grid;
  }

  .market-toolbar-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .market-toolbar-meta {
    justify-content: flex-start;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-3d-stage {
    height: 500px;
  }

  .hero-operators-badge[data-badge="left"] {
    top: 24px !important;
    left: 12px !important;
  }

  .hero-operators-badge[data-badge="right"] {
    top: 72px !important;
    right: 12px !important;
  }

  .hero-operators-badge[data-badge="bottom"] {
    bottom: 112px !important;
    right: 18px !important;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass intensity (controlled via JS setting --glass-blur) */
[data-glass="0"] { --glass-blur: 0px; --panel: rgba(20, 24, 33, 0.92); }
[data-glass="1"] { --glass-blur: 8px; }
[data-glass="2"] { --glass-blur: 16px; }
[data-glass="3"] { --glass-blur: 24px; }
[data-glass="4"] { --glass-blur: 36px; }

@media (pointer: fine) {
  body[data-cursor-style]:not([data-cursor-style="default"]),
  body[data-cursor-style]:not([data-cursor-style="default"]) * {
    cursor: none !important;
  }
}

.cursor-overlay {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483645;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  mix-blend-mode: screen;
}

.cursor-overlay[data-visible="1"] {
  opacity: 1;
}

.cursor-overlay[data-hover="1"] {
  transform: translate(-50%, -50%) scale(1.12);
}

.cursor-overlay[data-down="1"] {
  transform: translate(-50%, -50%) scale(0.92);
}

.cursor-glyph {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--accent);
  filter:
    drop-shadow(0 0 8px oklch(0.72 0.24 5 / 0.48))
    drop-shadow(0 0 18px oklch(0.72 0.24 5 / 0.2));
}

.cursor-glyph.is-preview {
  width: 36px;
  height: 36px;
}

.cursor-line,
.cursor-center,
.cursor-ring,
.cursor-diag {
  position: absolute;
  display: block;
}

.cursor-line {
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.cursor-line.top,
.cursor-line.bottom {
  left: 50%;
  width: 2px;
  height: 8px;
  transform: translateX(-50%);
}

.cursor-line.left,
.cursor-line.right {
  top: 50%;
  width: 8px;
  height: 2px;
  transform: translateY(-50%);
}

.cursor-line.top { top: 0; }
.cursor-line.right { right: 0; }
.cursor-line.bottom { bottom: 0; }
.cursor-line.left { left: 0; }

.cursor-center {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255,255,255,0.95);
}

.cursor-ring {
  inset: 5px;
  border-radius: 999px;
  border: 1px solid oklch(0.72 0.24 5 / 0.75);
  opacity: 0;
}

.cursor-diag {
  width: 6px;
  height: 2px;
  background: currentColor;
  opacity: 0;
}

.cursor-diag.tl { left: 4px; top: 6px; transform: rotate(-45deg); }
.cursor-diag.tr { right: 4px; top: 6px; transform: rotate(45deg); }
.cursor-diag.br { right: 4px; bottom: 6px; transform: rotate(-45deg); }
.cursor-diag.bl { left: 4px; bottom: 6px; transform: rotate(45deg); }

.cursor-glyph[data-variant="classic"] .cursor-line {
  opacity: 1;
}

.cursor-glyph[data-variant="dot"] .cursor-line {
  opacity: 0.55;
  width: 2px;
  height: 5px;
}

.cursor-glyph[data-variant="dot"] .cursor-line.left,
.cursor-glyph[data-variant="dot"] .cursor-line.right {
  width: 5px;
  height: 2px;
}

.cursor-glyph[data-variant="dot"] .cursor-ring {
  opacity: 1;
  inset: 3px;
  border-color: rgba(255,255,255,0.35);
}

.cursor-glyph[data-variant="dot"] .cursor-center {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 10px oklch(0.72 0.24 5 / 0.95);
}

.cursor-glyph[data-variant="split"] .cursor-line.top { top: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.bottom { bottom: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.left { left: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line.right { right: 1px; }
.cursor-glyph[data-variant="split"] .cursor-line {
  width: 2px;
  height: 6px;
}

.cursor-glyph[data-variant="split"] .cursor-line.left,
.cursor-glyph[data-variant="split"] .cursor-line.right {
  width: 6px;
  height: 2px;
}

.cursor-glyph[data-variant="split"] .cursor-center {
  width: 2px;
  height: 2px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.9);
}

.cursor-glyph[data-variant="scope"] .cursor-ring {
  opacity: 1;
  inset: 1px;
}

.cursor-glyph[data-variant="scope"] .cursor-line.top,
.cursor-glyph[data-variant="scope"] .cursor-line.bottom {
  height: 11px;
}

.cursor-glyph[data-variant="scope"] .cursor-line.left,
.cursor-glyph[data-variant="scope"] .cursor-line.right {
  width: 11px;
}

.cursor-glyph[data-variant="scope"] .cursor-diag {
  opacity: 0.72;
}

.top-dock {
  position: sticky;
  top: 64px;
  z-index: 45;
  pointer-events: none;
}

.top-dock-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  justify-content: flex-end;
}

.cursor-switcher {
  position: relative;
  z-index: 1;
  width: 288px;
  padding: 10px;
  border-radius: 14px;
  transform: none !important;
  pointer-events: auto;
}

.cursor-switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cursor-switcher-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-2);
}

.cursor-switcher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cursor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cursor-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.05);
}

.cursor-card[data-active="true"] {
  border-color: oklch(0.72 0.24 5 / 0.5);
  background: oklch(0.68 0.22 5 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(0.72 0.24 5 / 0.18);
}

.cursor-card-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.cursor-card-label {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: -0.01em;
}

.cursor-card-desc {
  font-family: var(--f-mono);
  font-size: 8px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .top-dock-inner {
    padding: 8px 12px 0;
  }

  .cursor-switcher {
    width: 260px;
  }
}
