/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
input, textarea { font: inherit; }

/* ══════════════════════════════════════════════════════
   THEME TOKENS
══════════════════════════════════════════════════════ */
:root {
  --transition-theme: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;

  /* Fonts */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --fast: 0.14s ease;
  --mid: 0.24s ease;
  --slow: 0.4s ease;

  /* Layout */
  --header-h: 64px;
}

[data-theme="dark"] {
  /* Backgrounds */
  --bg-0: #07070c;
  --bg-base: #0b0d12;
  --bg-1: #0d0d18;
  --bg-2: #14142a;
  --bg-3: #1c1c3a;
  --bg-4: #242c42;

  /* Text */
  --text-1: #f4f4ff;
  --text-2: #a0a0c0;
  --text-3: #60607a;

  /* Borders */
  --border-1: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.12);
  --border-3: rgba(255,255,255,0.18);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.8);
  --shadow-modal: 0 32px 100px rgba(0,0,0,0.95);

  /* Glow */
  --glow-primary: rgba(255,179,0,0.15);
  --noise-opacity: 0.025;

  /* Surface */
  --bg-modal: #0d0d18;
  --bg-input: rgba(255,255,255,0.04);
  --bg-surface: #0d0d18;
  --bg-card: #0d0d18;
  --bg-card-hover: #14142a;
}

[data-theme="light"] {
  /* Backgrounds */
  --bg-0: #f4f4f8;
  --bg-base: #f0f2f8;
  --bg-1: #ffffff;
  --bg-2: #ececf4;
  --bg-3: #dcdce8;
  --bg-4: #e2e7fc;

  /* Text */
  --text-1: #0c0c1a;
  --text-2: #4a4a60;
  --text-3: #8a8aa0;

  /* Borders */
  --border-1: rgba(0,0,0,0.08);
  --border-2: rgba(0,0,0,0.12);
  --border-3: rgba(0,0,0,0.18);
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.18);

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.16);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.22);

  /* Glow */
  --glow-primary: rgba(255,179,0,0.12);
  --noise-opacity: 0.015;

  /* Surface */
  --bg-modal: #ffffff;
  --bg-input: rgba(0,0,0,0.04);
  --bg-surface: #f5f7fe;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fe;
}

:root {
  /* Accent colors */
  --accent: #FFB300;
  --accent-2: #3f8cff;
  --accent-3: #ff3cf0;
  --cyan: #00e5ff;
  --violet: #a855f7;
  --accent-light: #ffd666;
  --accent-glow-rgb: 255 179 0;
  --accent-glow: rgba(255,179,0,0.25);
  --accent-dim: rgba(255,179,0,0.1);

  /* Brand colors */
  --gold: #f5c842;
  --gold-glow: rgba(245,200,66,0.25);
  --gold-dim: rgba(245,200,66,0.12);
  --red: #ff4d6d;
  --red-glow: rgba(255,77,109,0.2);
  --purple: #a78bfa;
  --purple-glow: rgba(167,139,250,0.2);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.12);
  --green-glow: rgba(52,211,153,0.2);
  --steam-blue: #66c0f4;
  --steam-dark: #1b2838;

  /* Rarities */
  --r-consumer: #b0c3d9;
  --r-industrial: #5e98d9;
  --r-milspec: #4b69ff;
  --r-restricted: #8847ff;
  --r-classified: #d32ce6;
  --r-covert: #eb4b4b;
  --r-rare: #ffd700;
}

/* ══════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0; padding: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 400; line-height: 1.6;
  color: var(--text-1); background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition-theme);
  /* clip instead of hidden — clips horizontal overflow at the padding edge
     without creating a new scroll container (BFC). This lets html own
     the scroll root so scrollbar-gutter: stable above actually works.  */
  overflow-x: clip;
  position: relative;
}

.display {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.mono {
  font-family: var(--f-mono);
}

/* Scanlines — disabled */
.scanlines { display: none; }

body::after { display: none; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(99,190,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(167,139,250,0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transition: opacity var(--slow);
}
[data-theme="light"] body::before { opacity: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

.particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: particle-drift linear infinite; opacity: 0;
}
[data-theme="light"] .particle { opacity: 0 !important; }
@keyframes particle-drift {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* ── Background shimmer orbs ─────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}
.bg-orb--gold {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,179,0,0.22) 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: orb-drift-a 30s ease-in-out infinite, orb-pulse 7s ease-in-out infinite alternate;
}
.bg-orb--blue {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(63,140,255,0.18) 0%, transparent 70%);
  bottom: -80px; right: -60px;
  animation: orb-drift-b 38s ease-in-out infinite, orb-pulse 9s ease-in-out infinite alternate;
  animation-delay: -12s, -3s;
}
.bg-orb--pink {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,60,240,0.14) 0%, transparent 70%);
  top: 38%; left: 48%;
  animation: orb-drift-c 25s ease-in-out infinite, orb-pulse 5s ease-in-out infinite alternate;
  animation-delay: -5s, -1s;
}
@keyframes orb-drift-a {
  0%   { transform: translate(0,   0)    scale(1);    filter: blur(70px); }
  25%  { transform: translate(50px,-60px) scale(1.08); filter: blur(55px); }
  50%  { transform: translate(90px, 35px) scale(0.94); filter: blur(75px); }
  75%  { transform: translate(20px, 80px) scale(1.06); filter: blur(60px); }
  100% { transform: translate(0,   0)    scale(1);    filter: blur(70px); }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0,    0)    scale(1);    filter: blur(65px); }
  30%  { transform: translate(-60px, 50px) scale(0.95); filter: blur(50px); }
  60%  { transform: translate(-90px,-40px) scale(1.07); filter: blur(70px); }
  100% { transform: translate(0,    0)    scale(1);    filter: blur(65px); }
}
@keyframes orb-drift-c {
  0%   { transform: translate(0,    0)    scale(1);    filter: blur(80px); }
  40%  { transform: translate(70px,-70px) scale(1.12); filter: blur(60px); }
  80%  { transform: translate(-50px,60px) scale(0.90); filter: blur(85px); }
  100% { transform: translate(0,    0)    scale(1);    filter: blur(80px); }
}
@keyframes orb-pulse {
  from { opacity: 0.35; }
  to   { opacity: 0.90; }
}
[data-theme="light"] .bg-orbs { display: none; }

/* ── Inline result actions (case page) ─────────────────────── */
.inline-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.inline-result-actions .multi-result-summary {
  width: 100%;
}

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--header-h) auto 1fr;
  min-height: 100vh;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════
   TOPBAR / NAVIGATION
══════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  grid-column: 1 / -1;
  grid-row: 1;
  height: var(--header-h);

  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;

  background: rgba(7,7,12,0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);

  transition: var(--transition-theme);
}

[data-theme="light"] .topbar {
  background: rgba(255,255,255,0.8);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark svg {
  flex-shrink: 0;
}

.wordmark__text {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
}
.wordmark__live {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 8px;
  background: rgba(var(--accent-glow-rgb), 0.1);
  border: 1px solid rgba(var(--accent-glow-rgb), 0.35);
  letter-spacing: 1.2px;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
}


.btn-steam {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1b4f8a, #1a3a6e);
  border: 1px solid rgba(102,192,244,0.25);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: #90c8ff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-steam:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,79,138,0.5);
}
.steam-svg { flex-shrink: 0; fill: #90c8ff; }

/* Balance display */
.topbar-balance,
.user-balance-inline {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  gap: 2px;
}
.topbar-balance.active,
.user-balance-inline.active {
  display: flex;
}
.balance-label {
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--f-mono);
}
.balance-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.balance-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  font-family: var(--f-display);
  line-height: 1;
}
.balance-currency {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-2);
  margin-left: 0;
}

/* Coin icon */
.coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-weight: 600;
}
.coin::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8a0, #ffb300 60%, #8a5a00);
  box-shadow: 0 0 6px rgba(255,179,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* Deposit button */
.deposit-topbar-btn {
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--f-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--accent);
  color: #001018;
  border: none;
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: filter 0.15s;
  white-space: nowrap;
}
.deposit-topbar-btn:hover {
  filter: brightness(1.12);
}

/* User profile */
.user-profile {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 8px);
  cursor: default;
}
.user-profile.active { display: inline-flex; }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.user-nickname {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-rank {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logout-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  color: var(--text-3); font-size: 13px;
  transition: color var(--fast), background var(--fast); flex-shrink: 0;
  margin-left: 4px;
}
.logout-btn:hover { color: var(--red); background: rgba(255,77,109,0.1); }

/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  margin-left: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  background: none;
}
.nav-link:hover:not(.disabled) {
  background: none;
  color: var(--text-1);
}
.nav-link.active {
  background: none;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-link.active::after { display: none; }
.nav-link.disabled {
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.5;
}
.nav-link.disabled:hover {
  background: none;
  color: var(--text-3);
}

.nav-link .badge {
  background: rgba(var(--accent-glow-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-glow-rgb), 0.3);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--f-mono);
}

[data-theme="light"] .nav-link:hover:not(.disabled) {
  background: none;
}

.dev-badge {
  background: rgba(255,197,61,0.15) !important;
  color: #ffc53d !important;
  font-size: 9px !important;
  padding: 2px 7px !important;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.btn-dev-badge {
  background: rgba(255,197,61,0.2);
  color: #ffc53d;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-left: 10px;
  display: inline-block;
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════ */
.main {
  grid-column: 1; grid-row: 3;
  padding: 28px 28px;
  overflow-x: hidden;
  min-height: calc(100vh - var(--header-h) - 56px);
  display: flex; flex-direction: column; gap: 28px;
}

/* ══════════════════════════════════════════════════════
   BANNER GRID (replaces hero-banner)
══════════════════════════════════════════════════════ */
.banner-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr 296px;
  gap: 12px;
  height: 300px;
  margin-bottom: 48px;
}

/* ─ Main slider ─ */
.banner-main {
  position: relative;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  flex: 1;
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.banner-slide--news {
  position: relative;
}
/* grid overlay */
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* bottom fade */
.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  pointer-events: none;
}
.banner-slide__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
}
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.banner-badge--gold   { color: var(--accent); }
.banner-badge--green  { color: #4ade80; }
.banner-badge--purple { color: #a78bfa; }
.banner-slide__title {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--text-1);
  margin: 0 0 8px;
}
.banner-slide__title .hl-gold   { color: var(--accent); }
.banner-slide__title .hl-green  { color: #4ade80; }
.banner-slide__title .hl-purple { color: #a78bfa; }
.banner-slide__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 380px;
  margin: 0;
}
.banner-slide__action { flex-shrink: 0; }
.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: #0d0d18;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .15s;
}
.banner-cta:hover { filter: brightness(.92); }
.banner-cta:disabled { opacity: .45; cursor: not-allowed; filter: none; }
/* news chips */
.banner-news-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bnc {
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 4px;
}
.bnc--red   { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.bnc--green { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.bnc--blue  { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
/* arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
}
.banner-arrow:hover { background: rgba(255,255,255,.18); }
.banner-arrow--prev { left: 14px; }
.banner-arrow--next { right: 14px; }
/* dots */
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.banner-dot--active { background: #fff; width: 18px; border-radius: 3px; }

/* ─ Aside mini banners ─ */
.banner-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  width: auto;
}
.banner-mini {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.banner-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  
  pointer-events: none;
}
.banner-mini--promo {
  border: 1px solid rgba(255,179,0,.18);
}
.banner-mini--daily {
  background: radial-gradient(ellipse at 85% 10%, rgba(139,92,246,.22) 0%, transparent 60%),
              linear-gradient(135deg, #05030f, #0c081e);
  border: 1px solid rgba(139,92,246,.18);
}
.banner-mini__eyebrow {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  position: relative;
}
.banner-mini__title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
  margin: 0;
  position: relative;
}
.banner-mini__code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 7px 12px;
  margin-top: 4px;
  position: relative;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.banner-mini__code button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  transition: color .15s;
}
.banner-mini__code button:hover { color: var(--accent); }
.banner-mini__timer {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 2px;
  position: relative;
}
.banner-mini__btn {
  margin-top: auto;
  padding: 8px 14px;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 6px;
  color: #a78bfa;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.banner-mini__btn:hover { background: rgba(139,92,246,.25); }
.banner-mini__btn:disabled { opacity: .45; cursor: not-allowed; }
.banner-mini__btn.is-ready {
  background: rgba(139,92,246,.28);
  border-color: rgba(139,92,246,.6);
  box-shadow: 0 0 14px rgba(139,92,246,.25);
}
.banner-mini__btn.is-ready:hover { background: rgba(139,92,246,.42); }

/* "Need X XC to unlock" hint */
.banner-mini__need {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .4px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .banner-grid { grid-template-columns: 1fr; height: auto; }
  .banner-main { height: 280px; }
  .banner-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .banner-mini {
    flex: 1 1 50%;
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .banner-aside { flex-direction: column; }
  .banner-slide__title { font-size: 22px; }
  .banner-slide__body { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* keep these for compatibility */
.hero-banner {
  position: relative;
  padding: 60px 32px 40px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: var(--transition-theme);
}

/* Hero background effects */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-glow-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-glow-rgb), 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blob-float 20s ease-in-out infinite;
}

.blob-a {
  width: 500px;
  height: 500px;
  background: var(--accent);
  left: -100px;
  top: -100px;
  animation-delay: 0s;
}

.blob-b {
  width: 400px;
  height: 400px;
  background: var(--accent-3);
  right: -80px;
  bottom: -80px;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-glow-rgb), 0.08);
  border: 1px solid rgba(var(--accent-glow-rgb), 0.2);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--f-mono);
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  margin: 12px 0 0;
  letter-spacing: -0.03em;
  color: var(--text-1);
  font-family: var(--f-display);
  text-wrap: balance;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 32px rgba(var(--accent-glow-rgb), 0.6);
}

.hero-title .hl {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-2);
  font-size: 18px;
  max-width: 560px;
  text-wrap: pretty;
  margin: 0;
  line-height: 1.6;
}

.hero-cta,
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Chip element */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.chip .dot.live {
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-stats {
  position: absolute; right: 52px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
}
.hstat {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 14px; padding: 14px 20px;
  text-align: right; min-width: 150px;
  transition: all 0.2s;
}
.hstat:hover { border-color: var(--border-3); transform: translateX(-4px); }
.hstat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 700;
  color: var(--text-1); margin-bottom: 2px;
}
.hstat-val span { color: var(--accent); }
.hstat-label { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.5px; }

.hero-slider {
  display: grid; grid-template-columns: 1fr;
}
.hero-slide {
  grid-column: 1; grid-row: 1;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(16px);
}
.hero-slide--active {
  opacity: 1; pointer-events: auto;
  transform: translateX(0);
}
.hero-slide--exit {
  opacity: 0; transform: translateX(-16px);
}

.hero-banner[data-active-slide="0"] .hero-stats { opacity: 1; pointer-events: auto; }
.hero-banner:not([data-active-slide="0"]) .hero-stats {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-nav-dots {
  position: absolute; bottom: 18px; left: 52px;
  display: flex; gap: 7px; align-items: center;
}
.hero-nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-3); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.25s, border-radius 0.25s;
  flex-shrink: 0;
}
.hero-nav-dot--active {
  width: 20px; border-radius: 4px;
  background: var(--accent);
}

.hero-eyebrow--gold {
  background: rgba(255,197,61,0.1); border-color: rgba(255,197,61,0.3);
  color: #ffc53d;
}
.hl--gold {
  background: linear-gradient(135deg, #ffc53d, #ff8c00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-promo-block { margin-top: 8px; }
.hero-promo-code {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 10px 16px;
}
.promo-code-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text-3); text-transform: uppercase;
}
.promo-code-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 700; color: #ffc53d;
  letter-spacing: 2px;
}
.promo-code-copy {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 15px; padding: 2px 4px;
  border-radius: 6px; transition: color var(--fast), background var(--fast);
}
.promo-code-copy:hover { color: var(--text-1); background: var(--bg-3); }

.hero-eyebrow--green {
  background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3);
  color: var(--green);
}
.hl--green {
  background: linear-gradient(135deg, var(--green), #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-referral-block { margin-top: 12px; }
.hero-referral-stats {
  display: flex; gap: 20px; margin-bottom: 8px;
}
.ref-stat {
  text-align: center;
}
.ref-stat-value {
  font-size: 32px; font-weight: 700; color: var(--green);
  line-height: 1;
}
.ref-stat-label {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}

.hero-eyebrow--accent {
  background: rgba(99,190,255,0.1); border-color: rgba(99,190,255,0.3);
  color: var(--accent);
}
.hero-free-case-block { margin-top: 12px; }
.free-case-timer {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 16px 20px;
  max-width: 400px;
}
.free-case-icon {
  font-size: 48px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(99,190,255,0.3));
}
.free-case-text {
  flex: 1;
}
.free-case-status {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.free-case-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; margin-top: 2px;
}

.hero-eyebrow--purple {
  background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3);
  color: var(--purple);
}
.hl--purple {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-news-list {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.hero-news-item {
  display: flex; align-items: center; gap: 10px;
}
.hero-news-badge {
  font-size: 14px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); color: var(--text-2);
}
.hero-news-badge--red   { background: rgba(235,75,75,0.15); color: #eb4b4b; }
.hero-news-badge--green { background: rgba(72,199,116,0.15); color: #48c774; }
.hero-news-badge--blue  { background: rgba(99,190,255,0.15); color: var(--accent); }
.hero-news-text { font-size: 15px; color: var(--text-2); line-height: 1.4; }

/* ══════════════════════════════════════════════════════
   LIVE FEED / LIVE DROPS
══════════════════════════════════════════════════════ */
.live-feed,
.live-drops {
  padding-bottom: 16px;
}

/* Section header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 32px;
  margin: 60px auto 24px;
  max-width: 1360px;
}

.section-title {
  font-size: 36px;
  margin: 6px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--f-display);
  color: var(--text-1);
}

.section-sub {
  color: var(--text-2);
  font-size: 14px;
}

/* Drops rail */
.live-drop-track-wrap,
.drops-rail {
  display: flex;
  gap: 8px;
  padding: 0 32px 16px;
  overflow-x: auto;
  max-width: 100vw;
  scrollbar-width: none;
}

.live-drop-track-wrap::-webkit-scrollbar,
.drops-rail::-webkit-scrollbar {
  display: none;
}

.live-drop-track-wrap::after,
.drops-rail::after {
  content: '';
  flex-shrink: 0;
  min-width: 32px;
  height: 1px;
  display: block;
}

/* Drop card */
.live-drop-item,
.drop-cell {
  flex-shrink: 0;
  width: 145px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: slideIn 0.4s ease;
  position: relative;
}

.live-drop-item:hover,
.drop-cell:hover {
  transform: translateY(-2px);
  border-color: var(--rc, var(--accent));
  box-shadow: 0 8px 24px -8px rgba(var(--accent-glow-rgb), 0.3);
}

/* Rarity strip */
.live-drop-strip,
.drop-cell__strip {
  height: 2px;
  background: var(--rc, var(--accent));
  box-shadow: 0 0 10px var(--rc, var(--accent));
}

/* Drop art/image */
.live-drop-art,
.drop-cell__art {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  flex: 1;
}

/* Drop meta/info */
.live-drop-meta,
.drop-cell__meta {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.live-drop-user,
.drop-cell__user {
  display: none;
}

.live-drop-name,
.drop-cell__item {
  font-size: 13px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  text-align: center;
}

.live-drop-price,
.drop-cell__price {
  display: none;
}

/* User avatar on hover */
.drop-cell__avatar {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 10;
}

.drop-cell__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-cell:hover .drop-cell__avatar,
.content-item:hover .drop-cell__avatar {
  opacity: 1;
  transform: scale(1);
}

/* Case icon on hover */
.drop-cell__case {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--rc, var(--accent));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}

.drop-cell__case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-cell:hover .drop-cell__case,
.content-item:hover .drop-cell__case {
  opacity: 1;
  transform: scale(1);
}


/* Slide in animation */
@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes drop-slide-in {
  from { transform: translateX(-28px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.live-drop-thumb {
  width: 45px; height: 35px; object-fit: contain; border-radius: 4px; image-rendering: -webkit-optimize-contrast;
}
.live-drop-item-name { font-size: 11px; font-weight: 600; color: var(--text-1); }

.live-drop-tooltip {
  position: absolute; bottom: 3px; left: 3px;
  display: flex; align-items: center; gap: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
  background: rgba(0,0,0,0.55); border-radius: 6px; padding: 2px 3px;
}
.live-drop-tooltip-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border-2); flex-shrink: 0;
}
.live-drop-tooltip-case {
  width: 22px; height: 18px; object-fit: contain; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════ */
.cases-block { margin-bottom: 40px; }

.section-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 0 32px;
}
.section-title {
  font-size: clamp(18px,2vw,24px); font-weight: 900;
  letter-spacing: -0.3px; color: var(--text-1);
  white-space: nowrap; margin-bottom: 20px;
}
.section-line { flex: 1; height: 1px; background: var(--border-1); }
.section-sub {
  font-size: 12px; color: var(--text-3); white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   CASES GRID & CARDS
══════════════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 14px;
  padding: 0 32px;
  max-width: 1360px;
  margin: 0 auto;
}

/* Case Card */
.case-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: box-shadow 0.28s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  box-shadow: 0 8px 36px -8px color-mix(in oklab, var(--cc, var(--accent)) 18%, transparent);
}

/* Case tags */
.case-tag {
  position: absolute;
  top: 8px;
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-tag.hot {
  left: 8px;
  background: rgba(255,60,100,0.18);
  color: #ff5780;
  border: 1px solid rgba(255,60,100,0.32);
}
.case-tag.new {
  right: 8px;
  background: rgba(var(--accent-glow-rgb),0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-glow-rgb),0.3);
}
/* "NOT AVAILABLE" badge — hidden until hover */
/* "UNAVAILABLE" badge — always visible, centered over art */
.case-tag.unavailable {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(8,8,16,0.78);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  letter-spacing: 0.12em;
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
}

/* ── Unavailable case card ─────────────────────────── */
.case-card.is-unavailable {
  cursor: not-allowed;
  pointer-events: auto;
}

/* Permanent dark overlay + grayscale */
.case-card.is-unavailable .case-art {
  filter: grayscale(0.7) brightness(0.5);
}
.case-card.is-unavailable .case-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Suppress all hover animations — card is inert */
.case-card.is-unavailable:hover { box-shadow: none; }
.case-card.is-unavailable:hover .case-art { filter: grayscale(0.7) brightness(0.5); }
.case-card.is-unavailable:hover .case-glow { opacity: 0; }
.case-card.is-unavailable:hover .case-card-icon-image { transform: none; }
.case-card.is-unavailable:hover .case-svg { transform: none; }

/* ── Case art zone ────────────────────────────────── */
.case-art {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.case-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 85%,
    color-mix(in oklab, var(--cc, var(--accent)) 22%, transparent),
    transparent 65%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.32s;
}
.case-card:hover .case-glow { opacity: 0.55; }

/* Base image */
.case-card-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  z-index: 1;
  transition: transform 0.38s cubic-bezier(0.34, 1.42, 0.64, 1);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}
.case-card:hover .case-card-icon-image {
  transform: translateY(-9px) scale(1.07);
}

/* SVG fallback art */
.case-svg {
  position: absolute;
  inset: 0; margin: auto;
  width: 72%; height: 72%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.6));
  transition: transform 0.38s cubic-bezier(0.34, 1.42, 0.64, 1);
  z-index: 1;
}
.case-card:hover .case-svg {
  transform: translateY(-8px) scale(1.07) rotate(-2deg);
}

/* ── Card info overlay ───────────────────────────── */
.case-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 32px 12px 12px;
  background: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.case-card__name {
  display: none;
}

.case-card__price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
}

.case-card__open-chip {
  display: none;
}

.free-label {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 13px;
}

/* Legacy alias */
.case-card-price {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.case-card-price .xcoin { margin-left: -3px; }

/* ══════════════════════════════════════════════════════
   STAGGER ANIMATIONS
══════════════════════════════════════════════════════ */
.stagger-in > * {
  opacity: 0; transform: translateY(12px);
  animation: stagger-reveal 0.4s ease forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.40s; }
.stagger-in > *:nth-child(n+9) { animation-delay: 0.45s; }
@keyframes stagger-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #001018;
  border: none;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 rgba(var(--accent-glow-rgb), 0.4), 0 8px 24px -8px rgba(var(--accent-glow-rgb), 0.6);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 0 24px 0 rgba(var(--accent-glow-rgb), 0.5), 0 12px 32px -8px rgba(var(--accent-glow-rgb), 0.7);
}

.btn:active,
.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--line-strong);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
}

/* Button sizes */
.btn--xl {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-large {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--r-sm);
}

/* ══════════════════════════════════════════════════════
   MODALS (shared)
══════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal.active { display: flex; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  animation: overlay-in var(--mid) ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-modal);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow-modal);
  animation: modal-in 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes modal-in {
  from { transform: scale(0.93) translateY(14px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs);
  background: var(--bg-2); border: 1px solid var(--border-2);
  color: var(--text-2); font-size: 18px;
  transition: background var(--fast), color var(--fast); z-index: 2;
}
.modal-close:hover { background: rgba(255,77,109,0.12); color: var(--red); }

/* ══════════════════════════════════════════════════════
   DEPOSIT MODAL
══════════════════════════════════════════════════════ */
.modal-content--deposit { width: min(480px, 100%); }

.deposit-header { text-align: center; margin-bottom: 26px; padding-top: 4px; }
.deposit-header-icon { font-size: 34px; margin-bottom: 10px; }
.deposit-header-title { font-size: 20px; font-weight: 900; color: var(--text-1); }
.deposit-header-sub { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.deposit-section { margin-bottom: 22px; }
.deposit-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-3); margin-bottom: 8px;
}

/* Amount row */
.deposit-amount-row {
  display: flex; align-items: center;
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.2s;
}
.deposit-amount-row:focus-within { border-color: var(--accent); }
.deposit-amount-input {
  flex: 1; padding: 13px 16px; background: transparent; border: none; outline: none;
  font-size: 22px; font-weight: 800; color: var(--text-1);
  font-family: 'JetBrains Mono', monospace; min-width: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.deposit-amount-input::-webkit-inner-spin-button,
.deposit-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.deposit-amount-input::placeholder { color: var(--text-3); font-weight: 400; font-size: 18px; }
.deposit-amount-curr { padding: 0 16px 0 6px; font-size: 14px; }

.deposit-bonus-row {
  display: none; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin-top: 8px;
  background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.22);
  border-radius: var(--r-sm);
}
.deposit-bonus-label { font-size: 12px; color: var(--text-3); }
.deposit-bonus-value {
  font-size: 14px; font-weight: 800; color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
}

/* Presets */
.deposit-presets { display: flex; gap: 8px; margin-top: 10px; }
.deposit-preset {
  flex: 1; padding: 7px 4px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 700;
  color: var(--text-2); cursor: pointer; transition: all 0.15s;
}
.deposit-preset:hover { border-color: var(--accent); color: var(--accent); }
.deposit-preset.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(99,190,255,0.08);
}

/* Promo */
.deposit-promo-row { display: flex; gap: 8px; }
.deposit-promo-input {
  flex: 1; padding: 11px 14px;
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: var(--r-md); color: var(--text-1);
  font-size: 13px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  outline: none; transition: border-color 0.2s;
}
.deposit-promo-input:focus { border-color: var(--accent); }
.deposit-promo-input::placeholder { color: var(--text-3); font-weight: 400; }
.deposit-promo-apply { white-space: nowrap; flex-shrink: 0; }
.deposit-promo-status { margin-top: 6px; font-size: 12px; font-weight: 600; min-height: 16px; }
.deposit-promo-status.ok { color: #4ade80; }
.deposit-promo-status.err { color: var(--red); }

/* Payment methods */
.deposit-methods { display: flex; gap: 10px; }
.deposit-method {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px 12px; gap: 6px; position: relative;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.deposit-method--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.deposit-method-icon { width: 38px; height: 38px; }
.deposit-method-icon svg { width: 100%; height: 100%; }
.deposit-method-name { font-size: 13px; font-weight: 800; color: var(--text-1); }
.deposit-method-network {
  font-size: 10px; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.deposit-method-soon {
  position: absolute; top: 7px; right: 7px;
  padding: 2px 5px; border-radius: 4px;
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
  color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border-1);
}

/* Submit */
.deposit-submit {
  width: 100%; justify-content: center;
  padding: 15px; font-size: 15px; font-weight: 800; margin-top: 4px;
}
.deposit-submit:disabled {
  opacity: 0.35; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════
   CASE MODAL
══════════════════════════════════════════════════════ */
.modal-content--case { max-width: 600px; }

.case-header {
  text-align: center; margin-bottom: 24px;
}
.case-header-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 900; color: var(--text-1);
  letter-spacing: -0.3px;
}

.case-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.case-image-container {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-2);
  overflow: hidden; flex-shrink: 0;
}
.case-image { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.case-action-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.case-quantity-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.case-quantity-label {
  font-size: 14px; font-weight: 700; color: var(--text-1);
}
.case-quantity-input {
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 14px; font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 80px;
}
.case-quantity-input:hover { border-color: var(--border-1); }
.case-quantity-input:focus { outline: none; border-color: var(--accent); background: var(--bg-1); }

.case-cost-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: var(--r-sm);
}
.case-cost-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.case-cost-value {
  font-size: 18px; font-weight: 900; color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
}
.case-cost-value .xcoin {
  font-size: 12px; margin-left: 2px;
}

.case-description {
  font-size: 14px; color: var(--text-2); line-height: 1.5;
  margin-bottom: 4px;
}

.app-notice {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; margin-top: 8px;
}
.app-notice.is-hidden { display: none; }
.app-notice.is-error   { background: rgba(255,77,109,0.12);  color: #fca5a5; border: 1px solid rgba(255,77,109,0.25); }
.app-notice.is-success { background: var(--green-dim);       color: #86efac; border: 1px solid rgba(52,211,153,0.25); }

.app-notice-floating {
  position: relative;
  min-width: 260px; max-width: 420px; z-index: 9999;
  border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-modal);
  animation: notice-slide 0.3s cubic-bezier(0.22,1,0.36,1);
  font-size: 13px; font-weight: 600; pointer-events: all;
}
.app-notice-floating.is-error   { background: rgba(255,77,109,0.15);  color: #fca5a5; border: 1px solid rgba(255,77,109,0.3); }
.app-notice-floating.is-success { background: rgba(52,211,153,0.15);  color: #86efac; border: 1px solid rgba(52,211,153,0.3); }
@keyframes notice-slide {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.site-notice-host {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; pointer-events: none;
}

.opening-animation { display: none; margin-bottom: 24px; }
.opening-animation.active { display: block; }

/* ══════════════════════════════════════════════════════
   SPINNER / ROULETTE MODAL
══════════════════════════════════════════════════════ */
.spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.spinner-modal {
  position: relative;
  width: min(1100px, 94vw);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 32px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.spinner-modal--result {
  overflow-y: auto;
}

.spinner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.spinner-close:hover {
  color: var(--text-1);
  border-color: var(--line-strong);
}

.spinner-head {
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.spinner-head h2 {
  font-size: 36px;
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--text-1);
}

/* ═══════════════════════════════ dx-reel ═══════════════════════════════ */
/* DOM structure — ОДИН .dx-reel на сессию, N строк (по числу открытий):
   .dx-reel[data-phase="idle|arming|spinning|landed"]   ← root; --item-w/h; data-phase → все CSS-transitions
     .dx-reel__viewport                                 ← тёмный контейнер; padding 14px 0 при qty>1
       .dx-reel__rail--top                              ← верхняя шкала (общая на все ряды)
       .dx-reel__rows                                   ← flex-column, gap 10px
         .dx-reel__row  (height = itemH + 20px)         ← один ряд / одно открытие
           .dx-reel__speed-lines[data-on="0|1"]         ← speed-lines (absolute overlay)
           .dx-reel__track                              ← горизонтальная лента (60 карточек)
         .dx-reel__row …
       .dx-reel__rail--bottom                           ← нижняя шкала (общая)
       .dx-reel__fade--left/right                       ← градиентные перекрытия (absolute)
       .dx-reel__pointer                                ← указатель: линия + шевроны (absolute)

   Тайминг анимации (мс, воспроизводит Spinner Reel.html):
     t=0    → phase=arming
     t+50   → track.transform = translateX(+60px)   [антиципейшн, ease-in 380мс]
     t+420  → phase=spinning + --dur + finalOffset  [cubic-bezier(0.05,0.62,0.18,1)]
     t+420+dur+80 → phase=landed + winner glow
   Каждый следующий ряд получает duration + r*350мс.
*/

/* ── Root — phase attribute drives all CSS transitions ──────────────── */
.dx-reel {
  --reel-bg-0: #0a0a10;
  --reel-bg-1: #06060a;
  width: 100%;
}

/* ── Viewport ────────────────────────────────────────────────────────── */
.dx-reel__viewport {
  width: 100%;
  background: linear-gradient(180deg, var(--reel-bg-0) 0%, var(--reel-bg-1) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

/* Roulette container keeps original style */
.roulette-container {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--line);
  transform: translateZ(0);
}

/* ── Tick rails ──────────────────────────────────────────────────── */
.dx-reel__rail {
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  pointer-events: none;
  flex-shrink: 0;
}
.dx-reel__rail--top    { border-bottom: 1px solid rgba(255,255,255,0.04); }
.dx-reel__rail--bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(transparent, rgba(255,255,255,0.024));
}
.dx-reel__tick {
  width: 1px;
  align-self: flex-end;
  flex-shrink: 0;
  background: rgba(244,239,230,0.12);
}
.dx-reel__rail--bottom .dx-reel__tick { align-self: flex-start; }
.dx-reel__tick--major {
  height: 10px;
  background: rgba(244,239,230,0.32);
}
.dx-reel__tick--minor { height: 4px; }

/* ── Rows container / single row ────────────────────────────────── */
.dx-reel__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dx-reel__row {
  position: relative;
  padding: 10px 0;
  /* height set inline from JS: itemH + 20px */
}

/* ── Edge fades — absolute on .dx-reel__viewport, cover all rows ── */
.dx-reel__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 14%;
  z-index: 4;
  pointer-events: none;
}
.dx-reel__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--reel-bg-1, #06060a) 0%, rgba(6,6,10,0.85) 50%, transparent 100%);
}
.dx-reel__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--reel-bg-1, #06060a) 0%, rgba(6,6,10,0.85) 50%, transparent 100%);
}

/* Pointer — roulette only (case.html roulette page) */
.roulette-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 40px rgba(var(--accent-glow-rgb), 0.5);
  z-index: 3;
}
.roulette-pointer::before,
.roulette-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.roulette-pointer::before {
  top: 4px;
  border-top: 10px solid var(--accent);
}
.roulette-pointer::after {
  bottom: 4px;
  border-bottom: 10px solid var(--accent);
}

/* ── Multi-reel grid container ───────────────────────────────────── */
/* Теперь контейнер — просто блок, внутри единственный .dx-reel */
.spinner-reels-container {
  width: 100%;
  flex-shrink: 0;
}

/* ── Case not-available notice (case page) ───────────────────────── */
.case-unavailable-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 24px;
  color: var(--text-3);
  text-align: center;
}
.case-unavailable-notice__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-unavailable-notice__sub {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 320px;
  line-height: 1.5;
}

/* ── Vertical (HAP) track ────────────────────────────────────────── */
.spinner-track--vertical {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  border: 1px solid var(--line);
}
.spinner-track--vertical .spinner-reel {
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  width: auto;
  padding-top: 8px;
  gap: 6px;
}
.spinner-pointer--h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 40px rgba(var(--accent-glow-rgb), 0.5);
  z-index: 3;
}
.spinner-pointer--h::before,
.spinner-pointer--h::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.spinner-pointer--h::before {
  left: 6px;
  border-right: 10px solid var(--accent);
}
.spinner-pointer--h::after {
  right: 6px;
  border-left: 10px solid var(--accent);
}
.spinner-track--vertical::before,
.spinner-track--vertical::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}
.spinner-track--vertical::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg-0), transparent);
}
.spinner-track--vertical::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-0), transparent);
}

.reel-item--vertical {
  width: 100%;
  height: var(--item-h, 100px);
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.reel-item--vertical .reel-item__strip {
  height: calc(100% + 1px);
  width: 3px;
  margin: 0 auto 0 -8px;
  position: absolute;
  top: 0; left: 0; bottom: 0;
  flex-shrink: 0;
  box-shadow: 4px 0 12px var(--rs, var(--rc, var(--accent)));
}

.reel-item--vertical .reel-item__art {
  height: 100%;
  width: 60px;
  flex: none;
}

.reel-item--vertical .reel-item__name {
  margin-top: 0;
  text-align: left;
  font-size: 10px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: unset;
}

/* ── HAP mode ─────────────────────────────────────────── */
.spinner-reels--hap .spinner-track--vertical {
  animation: hapGlow 2s ease-in-out infinite;
}

@keyframes hapGlow {
  0%, 100% {
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.45), inset 0 0 8px rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 22px 4px rgba(255, 140, 0, 0.6), inset 0 0 14px rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.55);
  }
}

.hap-badge {
  text-align: center;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #ffd700;
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 30px rgba(255, 215, 0, 0.4);
  margin-bottom: 10px;
  flex-shrink: 0;
  animation: hapBadgePulse 1.6s ease-in-out infinite;
}

@keyframes hapBadgePulse {
  0%, 100% { opacity: 1; letter-spacing: 0.25em; }
  50%       { opacity: 0.65; letter-spacing: 0.35em; }
}

/* ── Reel animation keyframes ─────────────────────────── */
@keyframes reelSpeedLine {
  0%   { transform: translateX(120%); opacity: 0; }
  30%  { opacity: 0.7; }
  100% { transform: translateX(-120%); opacity: 0; }
}
@keyframes reelChevron {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2px); }
}
@keyframes reelPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes reelRevealIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── dx-reel__track — scrolling strip ───────────────────────────── */
/* Transition driven by data-phase on .dx-reel — no inline style.transition needed */
.dx-reel__track {
  display: flex;
  gap: 8px;
  will-change: transform;
  transform: translateX(0);
}
/* Phase: arming — short anticipation ease-out */
.dx-reel[data-phase="arming"] .dx-reel__track {
  transition: transform 380ms cubic-bezier(0.5, 0, 0.8, 0.3);
}
/* Phase: spinning — long deceleration curve + motion blur */
.dx-reel[data-phase="spinning"] .dx-reel__track {
  transition: transform var(--dur, 7200ms) cubic-bezier(0.05, 0.62, 0.18, 1);
  filter: blur(0.4px);
}

/* HAP vertical reel still uses the old .spinner-reel class */
.spinner-reel {
  display: flex;
  gap: 8px;
  will-change: transform;
}

/* Roulette reel keeps absolute positioning */
.roulette-items {
  position: absolute;
  top: 10px;
  left: 0;
  display: flex;
  gap: 8px;
  padding-left: 8px;
  will-change: transform;
}

/* ── dx-reel card ────────────────────────────────────────────────── */
/* --rc       = glow color  (lighter)   → label, radial overlay, winner glow */
/* --rc-strip = strip color (saturated) → bottom bar + border-top tint       */
.dx-reel__card {
  flex: 0 0 var(--item-w, 140px);
  width: var(--item-w, 140px);
  height: var(--item-h, 165px);
  background: linear-gradient(180deg, #15151c 0%, #0d0d12 100%);
  border: 1px solid rgba(255,255,255,0.06);
  /* border-top: set inline as strip-color + 55 opacity */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* Radial glow overlay */
.dx-reel__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 40%,
    color-mix(in srgb, var(--rc, transparent) 13%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
/* Rarity tag */
.dx-reel__card-rarity {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 1.4px;
  color: var(--rc, rgba(255,255,255,0.5));
  opacity: 0.85;
  pointer-events: none;
  text-transform: uppercase;
  line-height: 1;
  z-index: 1;
}
/* Art area */
.dx-reel__card-art {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 8px;
  position: relative;
  z-index: 1;
  min-height: 0;
}
.dx-reel__card-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
/* Name */
.dx-reel__card-name {
  padding: 0 10px 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #f4efe6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
/* Bottom rarity strip */
.dx-reel__card-strip {
  height: 3px;
  background: var(--rc-strip, var(--rc, var(--accent)));
  flex-shrink: 0;
}
/* Winner state — class added by JS at landing */
.dx-reel__card--winner-landed {
  box-shadow:
    0 0 0 1px var(--rc, var(--accent)),
    0 0 60px 4px var(--rc, var(--accent)),
    inset 0 0 30px color-mix(in srgb, var(--rc, var(--accent)) 18%, transparent);
}
.dx-reel__card--winner-landed .dx-reel__card-strip {
  box-shadow: 0 0 12px var(--rc, var(--accent));
}

/* HAP vertical items still use the old .reel-item classes */
.reel-item {
  flex-shrink: 0;
  width: var(--item-w, 140px);
  height: var(--item-h, 165px);
  background: linear-gradient(180deg, #15151c 0%, #0d0d12 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.reel-item__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 40%,
    color-mix(in srgb, var(--rc, transparent) 13%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.reel-item__label {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: 1.4px;
  color: var(--rc, rgba(255,255,255,0.5));
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  line-height: 1;
}
.reel-item__art {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 8px;
  position: relative;
  z-index: 1;
  min-height: 0;
}
.reel-item__art img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.reel-item__name {
  padding: 0 10px 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #f4efe6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.reel-item__strip {
  height: 3px;
  background: var(--rs, var(--rc, var(--accent)));
  flex-shrink: 0;
}
.reel-item--winner-hap {
  box-shadow:
    0 0 0 2px #ffd700,
    0 0 24px #ffd700,
    0 0 50px rgba(255, 215, 0, 0.4),
    inset 0 0 16px rgba(255, 215, 0, 0.12) !important;
}

/* ── dx-reel center pointer ──────────────────────────────────────── */
.dx-reel__pointer {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  z-index: 5;
  pointer-events: none;
}
.dx-reel__pointer-line {
  position: absolute;
  top: 18px; bottom: 18px;
  left: -0.75px;
  width: 1.5px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,122,26,0.8) 50%, transparent 100%);
  box-shadow: 0 0 6px rgba(255,122,26,0.6);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.dx-reel[data-phase="landed"] .dx-reel__pointer-line {
  background: linear-gradient(180deg, transparent 0%, #FFB066 50%, transparent 100%);
  box-shadow: 0 0 16px #FFB066;
}
.dx-reel__chevron {
  position: absolute;
  left: -9px;
  width: 18px;
  height: 14px;
  display: block;
}
.dx-reel__chevron--top    { top: 6px; }
.dx-reel__chevron--bottom { bottom: 6px; }
.dx-reel[data-phase="spinning"] .dx-reel__chevron--top {
  animation: reelChevron 0.6s ease-in-out infinite;
}
.dx-reel[data-phase="spinning"] .dx-reel__chevron--bottom {
  animation: reelChevron 0.6s ease-in-out infinite reverse;
}

/* ── dx-reel speed lines ─────────────────────────────────────────── */
.dx-reel__speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  display: none;
}
.dx-reel[data-phase="spinning"] .dx-reel__speed-lines[data-on="1"] {
  display: block;
}
.dx-reel__speed-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,0.45) 50%, transparent);
}

/* ── Roulette item (case.html) — keeps original style ─── */
.roulette-item {
  flex-shrink: 0;
  width: var(--item-w, 140px);
  height: var(--item-h, 160px);
  background: linear-gradient(
    155deg,
    color-mix(in oklab, var(--rc, var(--line)) 10%, var(--bg-2)) 0%,
    var(--bg-1) 100%
  );
  border: 1px solid color-mix(in oklab, var(--rc, var(--line)) 28%, var(--line));
  border-top-width: 0;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.roulette-item-image {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.roulette-item__strip {
  height: 3px;
  width: calc(100% + 16px);
  margin: -8px -8px 6px;
  flex-shrink: 0;
  background: var(--rc, var(--accent));
  box-shadow: 0 0 12px var(--rc, var(--accent)), 0 2px 8px var(--rc, var(--accent));
}

.roulette-item-name {
  font-size: 9px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
  font-family: var(--f-mono);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

/* Spinner footer — quantity + cost + open button */
.spinner-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Farmcase amount picker */
.farmcase-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.farmcase-picker__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  color: var(--text-2);
}

.farmcase-picker__btn:hover:not(:disabled) {
  background: var(--bg-3, var(--bg-2));
  border-color: var(--line-strong);
  color: var(--text-1);
  transform: translateY(-1px);
}

.farmcase-picker__btn.is-active {
  background: color-mix(in oklab, var(--accent) 15%, var(--bg-2));
  border-color: var(--accent);
  color: var(--accent);
}

.farmcase-picker__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.farmcase-picker__value {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--f-mono);
  line-height: 1;
}

.farmcase-picker__tooltip {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--f-mono);
  white-space: nowrap;
}

.farmcase-picker__btn.is-active .farmcase-picker__tooltip {
  color: color-mix(in oklab, var(--accent) 60%, var(--text-3));
}

.spinner-footer .btn-large {
  flex-shrink: 0;
  margin-left: auto;
}

.spinner-contents {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 520px) {
  .spinner-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .spinner-footer .btn-large {
    margin-left: 0;
  }
  .farmcase-picker {
    justify-content: center;
  }
}

.opening-result { display: none; }
.opening-result.active { display: block; }
.result-content {
  text-align: center;
  animation: result-appear 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes result-appear {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Result Screen */
.spinner-result {
  text-align: center;
  padding: 48px 24px;
  position: relative;
}

.result-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(var(--result-rarity-rgb, var(--accent-glow-rgb)), 0.25),
    rgba(var(--result-rarity-rgb, var(--accent-glow-rgb)), 0.08) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.result-rarity {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--result-rarity-color, var(--accent));
  text-shadow: 0 0 12px currentColor;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.result-name {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 32px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.result-art {
  position: relative;
  z-index: 1;
  margin: 0 auto 32px;
  max-width: 320px;
  animation: floatY 3s ease-in-out infinite;
}

.result-art img,
.spinner-result__img {
  width: 100%;
  max-width: 280px;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px var(--rc, rgba(0,0,0,0.5)));
}

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

.result-value {
  font-family: var(--f-mono);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-replay:hover {
  background: rgba(var(--accent-glow-rgb), 0.1);
  box-shadow: 0 0 20px rgba(var(--accent-glow-rgb), 0.3);
}

.result-title {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 900; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.result-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 28px 40px; border-radius: var(--r-xl);
  border: 2px solid var(--result-rarity-color, var(--border-2));
  background: linear-gradient(135deg,
    rgba(var(--result-rarity-rgb, 74 222 128), 0.08),
    rgba(var(--result-rarity-rgb, 74 222 128), 0.02)
  ), var(--bg-2);
  margin-bottom: 20px; min-width: 240px;
  box-shadow: 0 0 32px rgba(var(--result-rarity-rgb, 74 222 128), 0.15),
              inset 0 1px 1px rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}
.result-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(var(--result-rarity-rgb, 74 222 128), 0.1), transparent 70%);
  pointer-events: none; z-index: -1;
}
.result-item-image {
  width: 140px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative; z-index: 1;
}
.result-item-thumb { width: 100%; height: 100%; object-fit: contain; }
.result-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative; z-index: 1;
}
.result-item-name  {
  font-size: 18px; font-weight: 800; color: var(--text-1);
  text-align: center;
}
.result-item-rarity{
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--result-rarity-color, var(--text-2));
}
.result-item-price {
  font-size: 22px; font-weight: 900; color: var(--gold);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.result-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── Multi-result strip (x2–x10) ────────────────────────── */
.multi-result-head {
  text-align: center;
  padding: 28px 24px 4px;
}
.multi-result-head h2 {
  font-size: 28px;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--text-1);
  margin: 8px 0 0;
}

/* Result cards strip inside the spinner modal */
.multi-result-strip {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
}

.multi-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--rc, var(--accent)) 30%, transparent);
  background:
    radial-gradient(ellipse at top center,
      color-mix(in srgb, var(--rc, var(--accent)) 14%, transparent),
      transparent 65%),
    var(--bg-1);
  box-shadow: 0 4px 28px color-mix(in srgb, var(--rc, var(--accent)) 12%, transparent);
  min-width: 225px;
  flex: 0 0 auto;
  overflow: hidden;
  animation: multiCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--card-delay, 0s);
}

@keyframes multiCardIn {
  from { opacity: 0; transform: translateX(56px) scale(0.88); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

.multi-result-card__halo {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--rc, var(--accent)) 35%, transparent),
    transparent 70%
  );
  filter: blur(32px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.multi-result-card__rarity {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px currentColor;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.multi-result-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  line-height: 1.3;
  max-width: 225px;
}

.multi-result-card__art {
  position: relative;
  z-index: 1;
  width: 195px;
  height: 135px;
  margin: 4px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  animation: floatY 3s ease-in-out infinite;
  animation-delay: var(--card-delay, 0s);
}

.multi-result-card__art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.multi-result-card__value {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.multi-result-card__val-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: block;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.multi-result-card__value .coin {
  font-size: 26px;
  font-weight: 900;
}

.multi-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--text-2);
}
.multi-result-summary__label { color: var(--text-3); }
.multi-result-summary__total {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--f-mono);
  color: var(--gold, #FFB300);
  text-shadow: 0 0 16px rgba(255,179,0,0.5);
}
.multi-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 32px 32px;
}

/* Case contents */
.case-contents { margin-top: 28px; }
.contents-title {
  font-size: 14px; font-weight: 800; margin-bottom: 14px;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 11vw, 160px), 1fr));
  gap: 10px;
}

/* ═══════════════════════════ SKIN CARD ═══════════════════════════ */
.content-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, var(--quality-start, rgba(255,255,255,0.06)) 0%, transparent 55%),
    linear-gradient(180deg, #15151f 0%, #0c0c14 100%);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.04);
  transition:
    transform .25s cubic-bezier(.2,.7,.3,1),
    box-shadow .25s ease,
    border-color .25s ease;
  cursor: pointer;
}

/* Coloured rail along the bottom — primary rarity signal */
.content-item::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--quality-border, var(--accent));
  box-shadow: 0 0 14px var(--quality-border, var(--accent));
  z-index: 2;
  pointer-events: none;
}

/* Subtle inner glow on the top edge */
.content-item::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, var(--quality-end, rgba(255,255,255,0.03)) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.content-item:hover {
  transform: translateY(-3px);
  border-color: var(--quality-border, var(--accent));
  box-shadow:
    0 8px 28px rgba(0,0,0,0.5),
    0 0 0 1px var(--quality-border, var(--accent)),
    0 0 24px var(--quality-end, transparent);
}

/* Quality gradient class — kept for inv-card compat */
.quality-themed {
  background:
    linear-gradient(180deg,
      var(--quality-start, rgba(255,255,255,0.08)) 0%,
      var(--quality-end,   rgba(0,0,0,0)) 65%
    ),
    var(--bg-0);
}
.content-item.quality-themed {
  background:
    linear-gradient(180deg, var(--quality-start, rgba(255,255,255,0.06)) 0%, transparent 55%),
    linear-gradient(180deg, #15151f 0%, #0c0c14 100%);
}

/* Rarity badge — top-left pill */
.quality-tag {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--quality-border, var(--accent));
  border: 1px solid var(--quality-border, var(--accent));
  line-height: 1;
  pointer-events: none;
}

/* Star / ST — top-right */
.quality-mark {
  position: absolute;
  top: 8px; right: 10px;
  z-index: 3;
  font-size: 10px;
  line-height: 1;
  color: var(--quality-border, var(--accent));
  opacity: 0.7;
  font-family: var(--f-mono);
  letter-spacing: 1px;
  pointer-events: none;
}

/* Image block */
.content-item-image {
  position: relative;
  display: block;
  aspect-ratio: 330 / 192;
  background:
    radial-gradient(80% 60% at 50% 50%, var(--quality-end, rgba(255,255,255,0.03)) 0%, transparent 70%),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.02) 0 8px,
      rgba(0,0,0,0.06) 8px 16px);
  overflow: hidden;
  flex: 0 0 auto;
  z-index: 1;
}

/* Logo watermark — bottom-right of image */
.content-item-image::before {
  content: '';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 16px; height: 16px;
  background: url(../img/favicon.svg) center/contain no-repeat;
  z-index: 2;
  opacity: 0.25;
  pointer-events: none;
}

/* Shimmer sweep on rare cards */
.content-item.is-rare .content-item-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%);
  transform: translateX(-120%);
  animation: shimmer-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer-sweep {
  0%, 70%, 100% { transform: translateX(-120%); }
  85%           { transform: translateX(120%); }
}

.content-item-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px 5px 5px;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.content-item:hover .content-item-thumb {
  transform: scale(1.08) translateY(-2px);
}

/* Name */
.content-item-name {
  padding: 12px 14px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-1);
  letter-spacing: -0.1px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

/* Tier underline accent */
.content-item-name::after {
  content: '';
  display: block;
  width: 14px; height: 2px;
  margin-top: 6px;
  background: var(--quality-border, var(--accent));
  opacity: 0.7;
}

/* Price row */
.content-item-price {
  padding: 4px 14px 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--quality-border, var(--accent));
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  letter-spacing: 0.2px;
  min-height: 22px;
}
.content-item-price::before {
  content: 'PRICE';
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-3);
  font-weight: 500;
  font-family: var(--f-mono);
}

/* Case contents: hide price */
.content-item--no-price .content-item-price { display: none; }

/* Live drop feed card — fixed width inside the scroll rail */
.drop-feed-card {
  flex-shrink: 0;
  width: 145px;
  animation: slideIn 0.4s ease;
}

/* ── Sold / Withdrawn — inactive state ─────────────────────────── */
.content-item.is-sold,
.content-item.is-withdrawn {
  cursor: default;
  opacity: 0.75;
}
.content-item.is-sold:hover,
.content-item.is-withdrawn:hover {
  transform: none;
  border-color: rgba(255,255,255,0.04);
  box-shadow: none;
}
/* Prevent thumb scale on disabled cards */
.content-item.is-sold:hover .content-item-thumb,
.content-item.is-withdrawn:hover .content-item-thumb {
  transform: none;
}

/* Status overlay — blurred icon appears on hover */
.content-item-status-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.content-item.is-sold:hover .content-item-status-overlay,
.content-item.is-withdrawn:hover .content-item-status-overlay {
  opacity: 1;
}
.content-item-status-overlay svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px currentColor);
}
.content-item.is-sold .content-item-status-overlay svg {
  color: var(--accent);
}
.content-item.is-withdrawn .content-item-status-overlay svg {
  color: #1b9ce5;
}

/* Available items — cursor pointer (already set on base, explicit for clarity) */
.content-item.is-available {
  cursor: pointer;
}

/* Selected state — yellow border + glow */
.content-item.is-available.selected {
  border-color: var(--gold, #ffb300) !important;
  box-shadow:
    0 0 0 1px var(--gold, #ffb300),
    0 0 20px rgba(255, 179, 0, 0.22);
  transform: translateY(-3px);
}

/* Checkmark badge — top-right corner, animated in on selection */
.content-item__check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold, #ffb300);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .18s ease, transform .2s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
  color: #000;
}
.content-item.selected .content-item__check {
  opacity: 1;
  transform: scale(1);
}

/* inv-card quality-themed overrides (profile page) */
.inv-card.quality-themed {
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg,
      var(--quality-start, rgba(255,255,255,0.08)) 0%,
      var(--quality-end,   rgba(0,0,0,0)) 65%
    ),
    var(--bg-0);
  border-color: var(--quality-border, var(--line-normal));
}

.btn-subprice {
  margin-left: 8px;
  font-size: 0.9em; font-weight: 900;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 12px var(--bg-0);
}

/* ══════════════════════════════════════════════════════
   INVENTORY MODAL
══════════════════════════════════════════════════════ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 12vw, 165px), 1fr));
  gap: 10px;
}
.inventory-item {
  background: var(--bg-2); border: 1px solid;
  border-radius: var(--r-md); padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; transition: transform var(--fast), box-shadow var(--fast);
  position: relative; overflow: hidden;
}
.inventory-item.is-available { cursor: pointer; }
.inventory-item.is-available:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.inventory-item-image { width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.inventory-item-thumb { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.inventory-item-name  { font-size: 11px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.inventory-item-price { font-size: 13px; font-weight: 900; color: var(--gold); }
.inventory-item-status { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--bg-3); color: var(--text-2); }

/* ══════════════════════════════════════════════════════
   SELL CONFIRM MODAL
══════════════════════════════════════════════════════ */
.sell-confirm-modal {
  position: fixed; inset: 0; z-index: 800;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.sell-confirm-modal.active { display: flex; }
.sell-confirm-dialog {
  background: var(--bg-modal); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 28px 32px;
  max-width: 380px; width: 100%;
  box-shadow: var(--shadow-modal);
  animation: modal-in 0.25s cubic-bezier(0.22,1,0.36,1);
}
.sell-confirm-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.sell-confirm-text  { font-size: 14px; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }
.sell-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.hiw {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hiw .section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 60px;
  color: var(--text-1);
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .hiw-grid {
    grid-template-columns: 1fr;
  }
}

.hiw-step {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hiw-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(var(--accent-glow-rgb), 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hiw-step:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.hiw-step:hover::before {
  opacity: 1;
}

.hiw-step__n {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(var(--accent-glow-rgb), 0.5);
}

.hiw-step__t {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hiw-step__d {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(var(--accent-glow-rgb), 0.12), transparent 60%);
  pointer-events: none;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  box-shadow: 0 0 32px rgba(var(--accent-glow-rgb), 0.3);
}

.profile-avatar__level {
  position: absolute;
  bottom: -8px;
  right: -8px;
  padding: 4px 10px;
  background: var(--accent);
  color: #001018;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}

.profile-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.profile-name__user {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-name__meta {
  display: flex;
  gap: 16px;
  color: var(--text-2);
  font-size: 13px;
  flex-wrap: wrap;
}

.xp-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-3);
  overflow: hidden;
}

.xp-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  box-shadow: 0 0 12px var(--accent);
}

.xp-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.profile-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.profile-balance__l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-3);
}

.profile-balance__n {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.pstat {
  padding: 20px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.pstat__n {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
}

.pstat__l {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.pstat__delta {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--f-mono);
  margin-top: 4px;
}

/* Best drop mini card */
.pstat--best-drop {
  overflow: hidden;
  transition: padding 0.2s;
}

.pstat--best-drop.has-item {
  padding: 0;
}

.pstat__best-placeholder {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
}

.pstat__best-card {
  flex-direction: column;
}

.pstat__best-card__strip {
  height: 3px;
  background: linear-gradient(90deg, var(--rc, #888), rgba(255,255,255,0));
  flex-shrink: 0;
}

.pstat__best-card__art {
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 90px;
  position: relative;
}

.pstat__best-card__glow {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, var(--rc, #ffb300) 10%, transparent 100%);
  opacity: 0.35;
  filter: blur(10px);
  pointer-events: none;
}

.pstat__best-card__img {
  width: 95%;
  max-height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.pstat__best-card__body {
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.pstat__best-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pstat__best-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.pstat__best-card__body .pstat__l {
  flex: 1;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-top: 0;
  padding: 0;
  color: var(--text-3);
}

.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.inv-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
}

.inv-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inv-search {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-1);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  width: 200px;
}

.inv-search:focus {
  outline: none;
  border-color: var(--accent);
}

.rt {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.rt:hover {
  color: var(--text-1);
  border-color: var(--line-strong);
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.inv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line-normal);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  background: rgba(20, 25, 40, 0.6);
}

.inv-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: radial-gradient(ellipse 120% 100% at 50% 100%, var(--rc, #4ecdc4) 0%, transparent 90%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

.inv-card:hover {
  border-color: var(--rc, var(--accent));
}

.inv-card:hover::before {
  opacity: 0.15;
}

.item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-card__rarity-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--rc, #888), rgba(255, 255, 255, 0));
  flex-shrink: 0;
}

.item-card__art {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 140px;
  position: relative;
  z-index: 0;
}

.item-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.item-glow {
  position: absolute;
  width: 85%;
  height: 70%;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, var(--rc, #4ecdc4) 10%, transparent 100%);
  opacity: 0.35;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.art-svg {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 0 12px var(--rc, #4ecdc4)) drop-shadow(0 0 6px var(--rc, #4ecdc4));
}

.inv-card:hover .art-svg {
  filter: drop-shadow(0 0 20px var(--rc, #4ecdc4)) drop-shadow(0 0 10px var(--rc, #4ecdc4));
}

.item-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.item-card__weapon {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.item-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

.inv-card__sel {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.6);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.inv-card.selected .inv-card__sel::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffb300;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
}

.inv-card.selected {
  border-color: #FFB300;
  box-shadow: 0 0 0 2px #FFB300;
}

.inv-card.sold {
  opacity: 0.38;
  cursor: default;
  pointer-events: auto;
  transition: opacity var(--fast);
}
.inv-card.sold .inv-card__sel { display: none; }
.inv-card.withdrawn .inv-card__sel { display: none; }
.inv-card.sold:hover {
  opacity: 1;
}
.inv-card.sold:hover .inv-card__sold-overlay {
  opacity: 1;
}
.inv-card.sold:hover .item-card__art,
.inv-card.sold:hover .item-card__body {
  filter: blur(3px);
}
.inv-card__sold-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast);
  z-index: 5;
  pointer-events: none;
}
.inv-card__sold-overlay__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.15);
  border: 2px solid #ffb300;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffb300;
}
.inv-card.withdrawn {
  opacity: 0.38;
  cursor: default;
  pointer-events: auto;
  transition: opacity var(--fast);
}
.inv-card.withdrawn:hover {
  opacity: 1;
}
.inv-card.withdrawn:hover .inv-card__withdrawn-overlay {
  opacity: 1;
}
.inv-card.withdrawn:hover .item-card__art,
.inv-card.withdrawn:hover .item-card__body {
  filter: blur(3px);
}
.inv-card__withdrawn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast);
  z-index: 5;
  pointer-events: none;
}
.inv-card__withdrawn-overlay__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(27, 159, 226, 0.15);
  border: 2px solid #1b9fe2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b9fe2;
}

.inv-footer {
  position: sticky;
  bottom: 16px;
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(14, 14, 24, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.inv-footer__info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.inv-footer__count {
  font-family: var(--f-mono);
  color: var(--text-2);
  font-size: 12px;
}

.inv-footer__total {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.inv-footer__actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .profile-balance {
    align-items: center;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .inv-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  margin-top: 8px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  margin-bottom: 24px;
}
.footer-logo-mark {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.footer-logo-mark svg {
  width: 80px;
  height: auto;
}
.footer-tagline { font-size: 13px; color: var(--text-2); line-height: 1.5; max-width: 220px; }
.footer-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-3); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; color: var(--text-2); transition: color var(--fast); }
.footer-link:hover { color: var(--text-1); }
.footer-email { font-size: 13px; color: var(--text-2); }
.footer-email a { color: var(--accent); transition: color var(--fast); }
.footer-email a:hover { color: var(--accent-light); }
.footer-divider { height: 1px; background: var(--border-1); margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: center; }
.footer-copyright { font-size: 12px; color: var(--text-3); }

/* ══════════════════════════════════════════════════════
   LEGAL PAGE
══════════════════════════════════════════════════════ */
.legal-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.legal-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal-main {
  padding: clamp(16px, 2.4vw, 26px);
}

.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-doc h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--text-1);
}

.legal-doc h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--text-1);
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-2);
}

.legal-doc p {
  margin: 0 0 10px;
}

.legal-doc ul {
  margin: 0 0 12px 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-doc blockquote {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  font-weight: 600;
}

.legal-doc hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin: 2px 0;
}

.legal-doc section {
  padding: 4px 0;
}

/* ══════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════ */
.profile-section { padding: clamp(24px, 3.5vw, 56px) 0; }
.container {
  max-width: min(1400px, calc(100vw - 80px));
  margin: 0 auto; padding: 0 40px; position: relative; z-index: 1;
}
.profile-container {
  display: grid; grid-template-columns: 280px 1fr;
  gap: clamp(18px, 2.5vw, 32px); align-items: start;
}
.profile-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 84px;
}
.panel {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-theme);
}
.panel--stat { border-radius: var(--r-md); padding: 16px; }
.profile-usercard {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.profile-avatar-wrap {
  width: 100px; height: 100px; border-radius: var(--r-lg);
  overflow: hidden;
  border: 3px solid rgba(99,190,255,0.4);
  box-shadow: 0 0 28px rgba(99,190,255,0.2);
  position: relative;
}
.profile-avatar-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,190,255,0.1), transparent); z-index: 1; pointer-events: none;
}
.profile-avatar { width: 100%; height: 100%; object-fit: cover; background: var(--steam-dark); }
.profile-userinfo { display: flex; flex-direction: column; gap: 4px; }
.profile-nickname { font-size: 17px; font-weight: 900; }
.profile-status   { font-size: 12px; color: var(--text-2); }
.profile-balance-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(99,190,255,0.08), var(--gold-dim));
  border: 1px solid rgba(99,190,255,0.15);
  border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.balance-label    { font-size: 11px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.balance-value    { font-size: 24px; font-weight: 900; color: var(--gold); font-family: 'JetBrains Mono', monospace; }

.profile-trade { display: flex; flex-direction: column; gap: 10px; }
.sidebar-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-2); }
.trade-input-row { display: flex; flex-direction: column; gap: 8px; }
.trade-input-row.is-hidden, .trade-link-status.is-hidden { display: none; }
.trade-link-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; width: 100%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.07);
  cursor: pointer; transition: all var(--fast);
}
.trade-link-status:hover { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.5); }
.trade-link-check {
  width: 18px; height: 18px; border-radius: 99px;
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.trade-link-status-text { font-size: 12px; font-weight: 700; color: var(--text-1); }
.trade-input {
  width: 100%; padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--text-1); font-size: 12px;
  transition: border-color var(--fast);
  outline: none;
}
.trade-input::placeholder { color: var(--text-3); }
.trade-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.trade-input:disabled { opacity: 0.45; cursor: not-allowed; }
.trade-hint { font-size: 11px; color: var(--text-3); line-height: 1.4; }

.profile-main { display: flex; flex-direction: column; gap: 24px; }
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 16vw, 195px), 1fr));
  gap: 12px;
}
.stat-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--bg-1); border: 1px solid var(--border-1);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
  transition: transform var(--fast), box-shadow var(--fast);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-2); }
.stat-value { font-size: 20px; font-weight: 900; color: var(--text-1); font-family: 'JetBrains Mono', monospace; }

.profile-inventory { display: flex; flex-direction: column; gap: 14px; }
.profile-inv-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-1);
}
.profile-inv-filters {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--border-1);
}
.profile-inv-filter-btn {
  padding: 7px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: background var(--fast), color var(--fast);
}
.profile-inv-filter-btn:hover { color: #ffb300; }
.profile-inv-filter-btn.active {
  background: #ffb300;
  color: #111; box-shadow: 0 2px 12px rgba(255, 179, 0, 0.35);
}
.profile-inv-total { font-size: 15px; font-weight: 900; color: var(--gold); font-family: 'JetBrains Mono', monospace; }

.profile-inv-total .xcoin { font-size: 15px; margin-left: -8px; }

.profile-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(148px, 14vw, 185px), 1fr));
  gap: 2px;
}
.profile-inv-item {
  background: var(--bg-1); border: 1px solid var(--border-1);
  border-radius: var(--r-md); padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
  transition: transform var(--fast), box-shadow var(--fast);
}
.profile-inv-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.profile-inv-item.is-sold, .profile-inv-item.is-withdrawn { opacity: 0.6; }
.profile-inv-item.is-available,
.profile-inv-item.is-sold,
.profile-inv-item.is-withdrawn {
  transform: scale(0.85);
  transform-origin: center;
}
.profile-inv-item.is-available:hover { transform: scale(0.85) translateY(-3px); box-shadow: var(--shadow-hover); }
.profile-inv-item.is-sold:hover,
.profile-inv-item.is-withdrawn:hover { transform: scale(0.85) translateY(-3px); box-shadow: var(--shadow-hover); }
.profile-inv-icon {
  position: relative; border-radius: var(--r-sm); background: var(--bg-2);
  overflow: hidden; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.profile-inv-thumb { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.profile-inv-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--fast); border-radius: var(--r-sm);
}
.profile-inv-item:hover .profile-inv-actions { opacity: 1; }
.profile-inv-item.is-sold:hover .profile-inv-actions,
.profile-inv-item.is-withdrawn:hover .profile-inv-actions { opacity: 0; }
.profile-inv-action-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: white;
  font-size: 10px; font-weight: 700;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.profile-inv-action-btn:hover { transform: scale(1.1); }
.profile-inv-action-btn--withdraw:hover { background: rgba(99,190,255,0.3); border-color: rgba(99,190,255,0.5); }
.profile-inv-action-btn--sell:hover     { background: rgba(52,211,153,0.3);  border-color: rgba(52,211,153,0.5); }
.profile-inv-action-icon { width: 18px; height: 18px; flex-shrink: 0; }
.profile-inv-action-label { font-size: 9px; display: none; }
.profile-inv-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 7px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  pointer-events: none; transition: opacity var(--fast);
}
.profile-inv-item.is-available:hover .profile-inv-overlay { opacity: 0; }
.profile-inv-name {
  display: flex; flex-direction: column; gap: 1px; max-width: 56%;
}
.profile-inv-name-weapon {
  font-size: 8px; font-weight: 600; color: rgba(255,255,255,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.profile-inv-name-skin {
  font-size: 10px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.profile-inv-price-box { display: flex; align-items: center; gap: 0; }
.profile-inv-price-value { font-size: 11px; font-weight: 900; color: var(--gold); font-family: 'JetBrains Mono', monospace; }
.profile-inv-price-value .xcoin {font-size: 11px; margin-left: -6px; }
.profile-inv-status-icon { display: flex; align-items: center; }
.profile-inv-status-icon-svg { width: 12px; height: 12px; }
.profile-inv-status-icon.is-sold { color: var(--red); }
.profile-inv-status-icon.is-withdrawn { color: var(--steam-blue); }
.profile-empty {
  grid-column: 1/-1; text-align: center;
  padding: clamp(32px, 4vw, 64px) 20px;
  color: var(--text-2); font-size: 14px;
}

.profile-page-header {
  background: var(--bg-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 24px 32px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition-theme);
}
.profile-page-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 8px 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  transition: all 0.2s; text-decoration: none;
}
.profile-page-back:hover { color: var(--text-1); border-color: var(--border-3); }

/* ══════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════ */
.is-hidden { display: none !important; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }


.prof-hero {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 36px 40px 28px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
  transition: var(--transition-theme);
  margin-bottom: 20px;
}
.prof-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(63,140,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.prof-hero-top {
  display: flex; align-items: center; gap: 28px;
  padding-bottom: 28px;
}

.prof-hero-bottom {
  display: flex; align-items: stretch; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}

.prof-avatar-wrap {
  position: relative; flex-shrink: 0;
  width: 90px; height: 90px;
}
.prof-avatar-img {
  width: 90px; height: 90px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-2), var(--purple));
  display: block;
}
.prof-avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 24px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--purple)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: prof-ring-rotate 4s linear infinite;
}
@keyframes prof-ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.prof-online-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 8px var(--green-glow);
}

.prof-info { flex: 1; }
.prof-name {
  font-size: 24px; font-weight: 900;
  letter-spacing: -0.5px; color: var(--text-1);
  margin-bottom: 4px;
}
.prof-handle { font-size: 13px; color: var(--text-3); font-weight: 500; margin-bottom: 14px; }

.prof-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pbadge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 12px; border-radius: 8px; border: 1px solid;
}
.pbadge--gold { color: var(--gold); border-color: rgba(245,200,66,0.3); background: rgba(245,200,66,0.08); }
.pbadge--blue { color: var(--accent); border-color: rgba(99,190,255,0.3); background: rgba(99,190,255,0.08); }
.pbadge--green { color: var(--green); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }

.prof-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0;
}
.prof-balance-display { text-align: right; }
.prof-balance-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 700; color: var(--gold);
  margin-bottom: 2px;
}
.prof-balance-label { font-size: 11px; color: var(--text-3); }

.prof-stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  align-content: start;
}

.prof-stats-grid .stat-card {
  padding: 16px 18px;
  position: relative; overflow: hidden;
}
.prof-stats-grid .stat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; opacity: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--purple));
  transition: opacity 0.3s;
}
.prof-stats-grid .stat-card:hover::after { opacity: 1; }
.prof-stats-grid .stat-label { font-size: 11px; margin-bottom: 8px; }
.prof-stats-grid .stat-value { font-size: 20px; }

.prof-best-drop {
  flex-shrink: 0;
  width: 220px;
  min-height: 140px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.prof-best-drop-label {
  position: absolute;
  top: 10px; left: 12px;
  z-index: 3;
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.prof-best-drop-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-3); font-style: italic;
}
.prof-best-drop-item {
  position: absolute; inset: 0;
}
.prof-best-drop-img-wrap {
  position: absolute; inset: 0;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
}
.prof-best-drop-img-wrap img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
}
.prof-best-drop-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 32px 12px 12px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.80));
  display: flex; justify-content: space-between; align-items: flex-end;
}
.prof-best-drop-name {
  display: flex; flex-direction: column; gap: 1px;
}
.prof-best-drop-name-weapon {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.prof-best-drop-name-skin {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.prof-best-drop-price {
  font-size: 15px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.prof-best-drop-price .xcoin { margin-left: -8px; }

.prof-best-drop[data-quality] {
  border-bottom-width: 3px;
}
.prof-best-drop[data-quality="consumer"]         { border-bottom-color: #b0c3d9; box-shadow: 0 4px 16px rgba(176,195,217,.25); }
.prof-best-drop[data-quality="industrial"]       { border-bottom-color: #5e98d9; box-shadow: 0 4px 16px rgba(94,152,217,.30); }
.prof-best-drop[data-quality="mil-spec"],
.prof-best-drop[data-quality="milspec"]          { border-bottom-color: #4b69ff; box-shadow: 0 4px 16px rgba(75,105,255,.35); }
.prof-best-drop[data-quality="restricted"]       { border-bottom-color: #8847ff; box-shadow: 0 4px 16px rgba(136,71,255,.35); }
.prof-best-drop[data-quality="classified"]       { border-bottom-color: #d32ce6; box-shadow: 0 4px 16px rgba(211,44,230,.35); }
.prof-best-drop[data-quality="covert"]           { border-bottom-color: #eb4b4b; box-shadow: 0 4px 16px rgba(235,75,75,.35); }
.prof-best-drop[data-quality="exceedingly_rare"],
.prof-best-drop[data-quality="exceedingly rare"],
.prof-best-drop[data-quality="extraordinary"]   { border-bottom-color: #ffd700; box-shadow: 0 4px 20px rgba(255,215,0,.45); }

.prof-body {
  display: block;
}

.prof-trade-panel {
  flex-shrink: 0;
  width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.prof-trade-panel .sidebar-section-title { margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-stats { display: none; }
  .hero-banner { padding: 36px 36px; }
  .hero-nav-dots { left: 36px; }
}

@media (max-width: 860px) {
  .layout { grid-template-rows: var(--header-h) auto 1fr; }
  .nav-links { padding: 0 16px; gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 13px; }
  .nav-link .badge { font-size: 9px; padding: 2px 6px; }
  .topbar { padding: 0 16px; }
  .main { grid-column: 1; padding: 20px 16px; }
  .section-row { padding: 0 16px; }
  .case-info { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-container { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .prof-hero { padding: 24px 20px 20px; }
  .prof-hero-top { gap: 16px; padding-bottom: 20px; }
  .prof-actions { display: none; }
  .prof-hero-bottom { flex-direction: column; }
  .prof-trade-panel { width: 100%; }
  .prof-best-drop { width: 100%; }
  .footer-content { grid-template-columns: 1fr 1fr; }

  .legal-shell {
    width: calc(100% - 20px);
    margin: 14px auto 26px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header-right {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-banner { padding: 28px 24px; }
  .hero-nav-dots { left: 24px; bottom: 14px; }
  .hero-title { letter-spacing: -1px; }
  .hero-sub { display: none; }
  .hero-cta-row .btn-secondary { display: none; }
  .cases-grid { gap: 10px; }
  .contents-grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
  .modal-content { padding: 18px; border-radius: var(--r-lg); }
  .result-item { padding: 18px 24px; min-width: unset; width: 100%; }
  .footer-content { grid-template-columns: 1fr; }
  .nav-links { overflow-x: auto; gap: 2px; }
  .nav-link { flex-shrink: 0; }

  .legal-doc p,
  .legal-doc li { font-size: 14px; }
}

@media (max-width: 420px) {
  .steam-text { display: none; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   TOPUP PAGE
══════════════════════════════════════════════════════ */
.topup-head {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 10px;
}
.topup-head h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 8px;
  color: var(--text-1);
}
.topup-head p { color: var(--text-2); font-size: 15px; margin: 0; }

.topup-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.topup-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
}
.topup-card:last-child { margin-bottom: 0; }

.topup-card__h {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
}
.topup-num {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #001018;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: var(--f-mono);
  flex-shrink: 0;
}

/* Method tabs */
.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.method-tab {
  padding: 18px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  user-select: none;
  overflow: hidden;
}
.method-tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(var(--accent-glow-rgb), 0.08), transparent);
}
.method-tab.active::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px var(--accent);
}
.method-tab__icon { font-size: 22px; margin-bottom: 8px; display: block; }
.method-tab__label { font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--text-1); }
.method-tab__sub { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.1em; }
.method-tab--soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.method-soon {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 9px;
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.6;
}

/* Amount chips */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.amount-chip {
  padding: 14px 8px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  position: relative;
  user-select: none;
}
.amount-chip:hover { border-color: var(--accent); }
.amount-chip.active {
  background: var(--accent);
  color: #001018;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-glow-rgb), 0.3);
}
.amount-chip .a-n {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}
.amount-chip.active .a-n { color: #001018; }
.amount-chip .a-bonus {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.08em;
}
.amount-chip.active .a-bonus { color: #001018; }
.amount-chip .a-pop {
  position: absolute;
  top: -7px; right: 8px;
  background: var(--r-classified, #d32ce6);
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: var(--f-mono);
}

.topup-custom-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  margin-bottom: 0;
  transition: border-color 0.15s;
}
.topup-custom-amount:focus-within { border-color: var(--accent); }
.topup-custom-amount input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  outline: none;
  width: 0;
}
.topup-custom-amount input::placeholder { color: var(--text-3); font-weight: 400; font-size: 18px; }
.topup-custom-amount input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.topup-custom-amount input[type=number]::-webkit-inner-spin-button,
.topup-custom-amount input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.topup-custom-amount .cc {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Card form */
.card-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-field { display: flex; flex-direction: column; gap: 6px; }
.card-field.full { grid-column: 1 / -1; }
.card-field label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-field input {
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--f-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.card-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-glow-rgb), 0.12);
}
.card-field input::placeholder { color: var(--text-3); }

.card-preview {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 22px;
  aspect-ratio: 1.6 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.card-preview::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(var(--accent-glow-rgb), 0.2), transparent);
}
.card-preview__chip {
  width: 38px; height: 28px;
  background: linear-gradient(135deg, #ffd45a, #b88b22);
  border-radius: 4px;
}
.card-preview__n {
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--text-1);
}

/* Crypto */
.crypto-coins { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.crypto-coin {
  padding: 8px 12px;
  border: 1px solid var(--border-1);
  background: var(--bg-1);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  transition: all 0.15s;
}
.crypto-coin:hover { border-color: var(--accent); color: var(--accent); }
.crypto-coin.active { border-color: var(--accent); color: var(--accent); }

.crypto-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
}
.crypto-addr .copy-addr {
  margin-left: auto;
  background: var(--accent);
  color: #001018;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  font-family: var(--f-mono);
  transition: filter 0.15s;
}
.crypto-addr .copy-addr:hover { filter: brightness(1.1); }
.crypto-rate {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
}

/* Crypto address result */
.crypto-result {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
}
.crypto-result__qr { flex-shrink: 0; }
.crypto-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  display: block;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.crypto-result__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crypto-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-glow-rgb), 0.12);
  border: 1px solid rgba(var(--accent-glow-rgb), 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.crypto-result__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
}
.crypto-result__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: crypto-pulse 1.8s ease-in-out infinite;
}
@keyframes crypto-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.5; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
@media (max-width: 520px) {
  .crypto-result { flex-direction: column; align-items: center; }
  .crypto-result__info { align-items: center; text-align: center; }
  .crypto-addr { flex-direction: column; gap: 8px; }
  .crypto-addr .copy-addr { margin-left: 0; width: 100%; }
}

/* Promo section */
.topup-promo-row { display: flex; gap: 8px; }
.topup-promo-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: none;
  outline: none;
  transition: border-color 0.15s;
}
.topup-promo-input:focus { border-color: var(--accent); }
.topup-promo-input::placeholder { color: var(--text-3); text-transform: none; letter-spacing: 0; }
.topup-promo-hints { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.topup-promo-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 3px 8px;
  background: var(--bg-1);
  border: 1px dashed var(--border-2);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.topup-promo-hint:hover { color: var(--accent); border-color: var(--accent); }
.topup-promo-status { margin-top: 10px; font-size: 12px; font-weight: 600; min-height: 16px; font-family: var(--f-mono); }
.topup-promo-status.ok { color: #4ade80; }
.topup-promo-status.err { color: var(--red); }
.topup-promo-banner {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-1);
  border-radius: var(--r-md);
  border: 1px solid var(--accent);
}
.topup-promo-banner-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.topup-promo-banner-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Summary card */
.summary-card { position: sticky; top: 84px; }
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
}
.sum-row:last-of-type { border-bottom: none; }
.sum-row__l { color: var(--text-2); }
.sum-row__v { color: var(--text-1); font-family: var(--f-mono); font-weight: 600; }
.sum-row.bonus .sum-row__v { color: var(--accent); }
.sum-row.total {
  padding: 16px 0 8px;
  border-bottom: none;
  margin-top: 4px;
}
.sum-row.total .sum-row__l {
  font-family: var(--f-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
}
.sum-row.total .sum-row__v {
  font-size: 26px;
  font-family: var(--f-display);
  color: var(--accent);
}
.sum-row--rate .sum-row__l  { color: var(--text-3); font-size: 12px; }
.sum-row--rate .sum-row__v  { color: var(--text-3); font-weight: 400; }
.sum-row--crypto .sum-row__l {
  border-bottom: none;
  color: var(--text-2); 
  }
.sum-crypto-amt { color: var(--accent-2) !important; font-weight: 700 !important; font-size: 14px; }
.summary-cta {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 16px;
  user-select: none;
}
.checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox__square {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-2, rgba(255,255,255,0.18));
  border-radius: 4px;
  background: var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox__square::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: border-color 0.15s;
}
.checkbox__input:checked + .checkbox__square {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox__input:checked + .checkbox__square::after {
  border-color: #001018;
}
.checkbox:hover .checkbox__square { border-color: var(--accent); }
.checkbox__text {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}
.link { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.link_accent { color: var(--accent); }
.link_accent:hover { text-decoration-color: var(--accent); }
.summary-legal {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Trust row */
.trust-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  margin-bottom: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-item .ic { color: var(--accent); font-size: 13px; }

/* Transaction history */
.tx-history { margin-top: 48px; }
.tx-history h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-1);
}
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  align-items: center;
  font-size: 13px;
  transition: border-color 0.15s;
}
.tx-row:hover { border-color: var(--border-2); }
.tx-ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tx-meta__l { color: var(--text-1); font-size: 13px; }
.tx-meta__d { color: var(--text-3); font-family: var(--f-mono); font-size: 11px; margin-top: 2px; }
.tx-status {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tx-status.ok        { background: rgba(74,222,128,0.12);  color: #4ade80; }
.tx-status.pending   { background: rgba(255,179,0,0.12);   color: var(--accent); }
.tx-status.cancelled { background: rgba(239,68,68,0.12);   color: #f87171; }
.tx-amount { font-family: var(--f-mono); font-weight: 700; color: var(--accent); white-space: nowrap; }
.tx-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--bg-1);
  border: 1px dashed var(--border-1);
  border-radius: var(--r-md);
}

@media (max-width: 900px) {
  .topup-grid { grid-template-columns: 1fr; }
  .card-form { grid-template-columns: 1fr; }
  .card-field.full { grid-column: 1; }
  .summary-card { position: static; }
  .amount-grid { grid-template-columns: repeat(4, 1fr); }
  .method-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .method-tabs { grid-template-columns: 1fr; }
  .tx-row { grid-template-columns: 28px 1fr auto; }
  .tx-status { display: none; }
}

/* Confirm dialog */
.confirm-dialog-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.confirm-dialog {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 400px; width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 20px;
}
.confirm-dialog-msg {
  font-size: 15px; color: var(--text-1);
  line-height: 1.5; margin: 0;
}
.confirm-dialog-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.confirm-dialog-btn {
  padding: 8px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .15s;
}
.confirm-dialog-btn:hover { opacity: .85; }
.confirm-dialog-btn--yes {
  background: var(--accent); color: #fff;
}
.confirm-dialog-btn--no {
  background: var(--bg-3, #2a2d35); color: var(--text-2);
}

/* ══════════════════════════════════════════════════════
   CASE PAGE (pages/case.html)
══════════════════════════════════════════════════════ */
.case-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0 130px;
}

.case-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.case-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--f-mono);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.case-page-back:hover {
  color: var(--text-1);
  border-color: var(--line-strong);
}

.case-page-title-block { flex: 1; min-width: 0; }
.case-page-title-block .chip { margin-bottom: 6px; }

.case-page-title {
  font-size: clamp(22px, 4vw, 36px);
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sticky action bar */
.case-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 32px 20px;
  background: linear-gradient(0deg, var(--bg-0) 65%, transparent);
  pointer-events: none;
}

.case-action-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  pointer-events: all;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}

.case-notice-area {
  width: 100%;
  order: -1;
}

.case-notice-area:empty { display: none; }

/* ══════════════════════════════════════════════════════
   DX-BG — Animated background system
══════════════════════════════════════════════════════ */
.dx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── Drifting orbs ── */
.dx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.dx-orb--a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,179,0,0.16) 0%, transparent 70%);
  top: -220px; left: -160px;
  animation: dx-orb-a 30s ease-in-out infinite;
}
.dx-orb--b {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(63,140,255,0.13) 0%, transparent 70%);
  bottom: -120px; right: -120px;
  animation: dx-orb-b 40s ease-in-out infinite;
  animation-delay: -15s;
}
.dx-orb--c {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  top: 38%; left: 44%;
  animation: dx-orb-c 24s ease-in-out infinite;
  animation-delay: -9s;
}
@keyframes dx-orb-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(130px, 90px) scale(1.08); }
  66%       { transform: translate(-70px, 150px) scale(0.93); }
}
@keyframes dx-orb-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-110px,-70px) scale(1.06); }
  66%       { transform: translate(90px,-130px) scale(0.94); }
}
@keyframes dx-orb-c {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(-90px, 70px) scale(1.14); }
}

/* ── Hex grid ── */
.dx-hexgrid {
  position: absolute;
  inset: -10%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,16 54,44 28,58 2,44 2,16' fill='none' stroke='%23FFB300' stroke-width='0.8'/%3E%3Cpolygon points='28,52 54,66 54,94 28,108 2,94 2,66' fill='none' stroke='%23FFB300' stroke-width='0.8'/%3E%3Cline x1='0' y1='27' x2='28' y2='2' stroke='%23FFB300' stroke-width='0.4' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  animation: dx-hex-drift 80s linear infinite;
}
@keyframes dx-hex-drift {
  from { transform: translate(0,0); }
  to   { transform: translate(56px, 100px); }
}

/* ── Concentric orbit rings ── */
.dx-orbits {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
}
.dx-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,179,0,0.09);
  transform: translate(-50%,-50%);
  animation: dx-orbit-spin linear infinite;
}
.dx-orbit--1 { width: 280px; height: 280px; animation-duration: 22s; }
.dx-orbit--2 { width: 480px; height: 480px; animation-duration: 36s; animation-direction: reverse; border-color: rgba(63,140,255,0.07); }
.dx-orbit--3 { width: 700px; height: 700px; animation-duration: 54s; border-color: rgba(168,85,247,0.05); }
.dx-orbit--4 { width: 960px; height: 960px; animation-duration: 78s; animation-direction: reverse; border-color: rgba(255,179,0,0.04); }
@keyframes dx-orbit-spin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
.dx-orb-dot {
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
  transform: translateX(-50%);
}
.dx-orbit--2 .dx-orb-dot { background: var(--accent-2); box-shadow: 0 0 10px 2px var(--accent-2); }
.dx-orbit--3 .dx-orb-dot { background: var(--violet); box-shadow: 0 0 10px 2px var(--violet); }
.dx-orbit--4 .dx-orb-dot { background: var(--cyan); box-shadow: 0 0 8px 1px var(--cyan); width: 4px; height: 4px; top: -2px; }

/* ── Floating particles ── */
.dx-particles {
  position: absolute;
  inset: 0;
}
.dx-p {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,179,0,0.65);
  box-shadow: 0 0 4px rgba(255,179,0,0.4);
  animation: dx-p-rise linear infinite;
}
@keyframes dx-p-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  5%   { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-130vh) scale(0.5); opacity: 0; }
}
.dx-spark {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.6);
  animation: dx-spark-flash ease-in-out infinite;
}
@keyframes dx-spark-flash {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 0.85; transform: scale(1.8); }
}

/* ── Horizontal ticker strips ── */
.dx-ticker-strip {
  position: absolute;
  left: 0; right: 0;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,179,0,0.3);
  white-space: nowrap;
  line-height: 1;
  top: calc(var(--header-h) + 2px);
}
.dx-ticker-strip--alt {
  top: auto;
  bottom: 0;
  color: rgba(63,140,255,0.22);
}
.dx-ticker-strip .track {
  display: inline-flex;
  gap: 36px;
  padding: 6px 0;
  animation: dx-ticker-fwd 42s linear infinite;
}
.dx-ticker-strip--alt .track {
  animation: dx-ticker-rev 58s linear infinite;
}
@keyframes dx-ticker-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes dx-ticker-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.dx-ticker-strip .pip {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.6;
}

/* ── HUD corner panels ── */
.dx-hud {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  color: rgba(255,179,0,0.28);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dx-hud .row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dx-hud .k {
  color: rgba(255,179,0,0.18);
  text-transform: uppercase;
  min-width: 54px;
}
.dx-hud .v {
  color: rgba(255,179,0,0.48);
  font-weight: 600;
  font-size: 9.5px;
}
.dx-hud--tl { top: calc(var(--header-h) + 16px); left: 16px; }
.dx-hud--tr { top: calc(var(--header-h) + 16px); right: 16px; align-items: flex-end; }
.dx-hud--bl { bottom: 20px; left: 16px; }
.dx-hud--br { bottom: 20px; right: 16px; align-items: flex-end; text-align: right; }

/* ── HUD bar graph ── */
.dx-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 4px;
}
.dx-bars .bar {
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(63,140,255,0.45);
  animation: dx-bar-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes dx-bar-pulse {
  0%   { height: 4px; opacity: 0.25; }
  100% { height: 28px; opacity: 0.85; }
}

/* ── HUD line chart ── */
.dx-chart {
  width: 120px; height: 28px;
  margin-top: 4px;
}
.dx-chart polyline {
  fill: none;
  stroke: rgba(255,179,0,0.38);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ── Rolling digit ticker (HUD sync%) ── */
.dx-hud .ticker {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  vertical-align: top;
  line-height: 1;
}
.dx-hud .ticker .stack {
  display: flex;
  flex-direction: column;
  animation: dx-tick-roll var(--dur, .5s) steps(10, end) infinite;
}
.dx-hud .ticker .stack span {
  height: 1em;
  display: block;
}
@keyframes dx-tick-roll {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* ── Scan lines overlay ── */
.dx-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.03) 3px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ── Vignette ── */
.dx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 38%, rgba(0,0,0,0.6) 100%);
}

/* Hide old bg-orbs + scanlines when dx-bg is in use */
body:has(.dx-bg) .bg-orbs,
body:has(.dx-bg) .scanlines,
body:has(.dx-bg) .particles { display: none; }

.case-action-bar #caseAmountPicker { flex: 1; }

/* Trade link stat block */
.pstat--trade-link { cursor: default; }

.trade-link-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
}

.trade-link-form {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.trade-link-input {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-1);
  font-size: 11px;
  font-family: var(--f-mono);
  padding: 6px 10px;
  width: 100%;
  outline: none;
  box-sizing: border-box;
}
.trade-link-input:focus { border-color: var(--accent); }

.trade-link-save-btn {
  padding: 6px 14px;
  font-size: 12px;
  align-self: flex-start;
}

/* Link exists → show status; hover → swap to form */
.pstat--trade-link:not(.no-link) .trade-link-status { display: flex; }
.pstat--trade-link:not(.no-link) .trade-link-form { display: none; }
.pstat--trade-link:not(.no-link):hover .trade-link-status { display: none; }
.pstat--trade-link:not(.no-link):hover .trade-link-form { display: flex; }

/* No link → always show form */
.pstat--trade-link.no-link .trade-link-status { display: none; }
.pstat--trade-link.no-link .trade-link-form { display: flex; }

.btn-withdraw-steam {
  background: linear-gradient(135deg, #1b4f8a, #1a3a6e);
  border: 1px solid rgba(79,136,199,0.4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-withdraw-steam:hover:not(:disabled) {
  background: linear-gradient(135deg, #2260a8, #1e4580);
  box-shadow: 0 4px 16px rgba(27,79,138,0.45);
}
.btn-withdraw-steam:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.inv-footer__withdraw-hint {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--f-mono);
  align-self: center;
  white-space: nowrap;
}

.case-action-bar #caseSpinnerOpenBtn {
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 600px) {
  .case-action-bar { padding: 0 12px 12px; }
  .case-action-bar__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .case-action-bar #caseSpinnerOpenBtn { margin-left: 0; width: 100%; }
  .case-page-header { gap: 12px; }
}

/* ══════════════════════════════════════════════════════
   CASE OPENER — PREMIUM VISUAL UPGRADE
══════════════════════════════════════════════════════ */

/* Overlay — atmospheric depth (no grid) */
.spinner-overlay {
  background: radial-gradient(ellipse at 50% 42%, rgba(12,12,26,0.93), rgba(0,0,0,0.97));
}

/* Modal — premium dark frame + entrance animation */
.spinner-modal {
  background: linear-gradient(160deg, #0e0f1e 0%, #07080f 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 32px 100px rgba(0,0,0,0.95),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  animation: spinnerModalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

@keyframes spinnerModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Head — flex column with case image support */
.spinner-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Case image thumbnail in spinner header */
.spinner-head__case-preview {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.spinner-head__case-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Roulette container override */
.roulette-container {
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.025),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 24px rgba(0,0,0,0.5);
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 22%), var(--bg-0);
}

/* Pointer — enhanced glow, more dramatic triangles */
.roulette-pointer {
  width: 2px;
  box-shadow:
    0 0 0 1px rgba(255,179,0,0.5),
    0 0 10px rgba(255,179,0,0.9),
    0 0 28px rgba(255,179,0,0.45),
    0 0 60px rgba(255,179,0,0.14);
}

.roulette-pointer::before {
  top: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--accent);
  filter: drop-shadow(0 0 5px var(--accent));
}

.roulette-pointer::after {
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid var(--accent);
  filter: drop-shadow(0 0 5px var(--accent));
}

/* Footer — glassmorphism surface */
.spinner-footer {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-top: 16px;
  gap: 14px;
}

/* Quantity picker — crisper active glow */
.farmcase-picker__btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  transition: background 0.14s, border-color 0.14s, transform 0.1s, box-shadow 0.14s;
}

.farmcase-picker__btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.farmcase-picker__btn.is-active {
  background: color-mix(in oklab, var(--accent) 16%, rgba(14,14,30,1));
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow:
    0 0 14px color-mix(in oklab, var(--accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.farmcase-picker__btn.is-active .farmcase-picker__value {
  text-shadow: 0 0 10px currentColor;
}

/* Result halo — breathing pulse for rarity atmosphere */
.result-halo {
  animation: haloPulse 2.8s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.65; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Result screen — smooth entrance from below */
.spinner-result {
  animation: resultScreenIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes resultScreenIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Result art — rarity-tinted drop shadow per skin */
.result-art img,
.spinner-result__img {
  filter:
    drop-shadow(0 0 18px color-mix(in oklab, var(--rc, rgba(0,0,0,0)) 55%, transparent))
    drop-shadow(0 12px 40px rgba(0,0,0,0.65));
}

/* Multi-result card — hover lift */
.multi-result-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
}

.multi-result-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 40px color-mix(in srgb, var(--rc, var(--accent)) 22%, transparent),
    0 4px 28px color-mix(in srgb, var(--rc, var(--accent)) 10%, transparent);
}

/* HAP badge — more impact */
.hap-badge {
  font-size: 15px;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .spinner-head__case-preview { width: 60px; height: 60px; }
  .spinner-footer { border-radius: var(--r-md); padding: 12px; }
}

/* ══════════════════════════════════════════════════════
   AMBIENT ORBS — переливающиеся фоновые элементы
══════════════════════════════════════════════════════ */

/* Золотой орб — правый верхний угол */
.spinner-overlay::before {
  content: '';
  position: absolute;
  width: 580px; height: 580px;
  top: -180px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(255,179,0,0.18) 0%,
    rgba(255,140,0,0.08) 40%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbGold 11s ease-in-out infinite;
}

/* Синий/фиолетовый орб — левый нижний угол */
.spinner-overlay::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%,
    rgba(136,71,255,0.14) 0%,
    rgba(75,105,255,0.08) 45%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbBlue 14s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes orbGold {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.85; }
  30%       { transform: translate(-50px, 40px) scale(1.1); opacity: 1; }
  65%       { transform: translate(35px, -30px) scale(0.9); opacity: 0.7; }
}

@keyframes orbBlue {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.9; }
  40%       { transform: translate(45px, -45px) scale(1.08); opacity: 0.7; }
  75%       { transform: translate(-30px, 30px) scale(0.93); opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   INLINE RESULT — предмет вместо ленты рулетки
══════════════════════════════════════════════════════ */

/* Контейнер после результата */
.spinner-reels-container--result {
  height: auto !important;
  overflow: visible;
}

/* Карточка выпавшего предмета */
.spinner-result-inline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--rc, var(--border-2)) 30%, transparent);
  background:
    radial-gradient(ellipse at 15% 50%,
      color-mix(in oklab, var(--rc, rgba(0,0,0,0)) 14%, transparent) 0%,
      transparent 60%),
    var(--bg-1);
  box-shadow:
    0 0 40px color-mix(in oklab, var(--rc, rgba(0,0,0,0)) 12%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  animation: inlineResultIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Внутренний размытый ореол — цвет редкости */
.spinner-result-inline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%,
    color-mix(in oklab, var(--rc, rgba(0,0,0,0)) 20%, transparent),
    transparent 65%);
  filter: blur(28px);
  pointer-events: none;
  animation: haloPulse 2.8s ease-in-out infinite;
}

@keyframes inlineResultIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Изображение скина */
.sri-image {
  flex-shrink: 0;
  width: 148px; height: 124px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

.sri-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter:
    drop-shadow(0 0 18px color-mix(in oklab, var(--rc, rgba(0,0,0,0)) 60%, transparent))
    drop-shadow(0 8px 24px rgba(0,0,0,0.55));
  animation: floatY 3.2s ease-in-out infinite;
}

.sri-emoji {
  font-size: 72px; line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: floatY 3.2s ease-in-out infinite;
}

/* Текстовая информация о предмете */
.sri-info {
  flex: 1; min-width: 0;
  position: relative; z-index: 1;
}

.sri-rarity {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 0 10px currentColor;
  margin-bottom: 8px;
}

.sri-name {
  font-family: var(--f-display);
  font-size: clamp(17px, 2.4vw, 26px); font-weight: 800;
  color: var(--text-1); line-height: 1.2; margin-bottom: 16px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sri-price {
  font-family: var(--f-mono);
  font-size: 28px; font-weight: 900;
  color: var(--gold, #FFB300);
  text-shadow: 0 0 16px rgba(255,179,0,0.4);
}

@media (max-width: 520px) {
  .spinner-result-inline {
    flex-direction: column; text-align: center;
    padding: 20px 16px; gap: 14px;
  }
  .sri-image { width: 110px; height: 90px; }
  .sri-name  { font-size: 17px; }
  .sri-price { font-size: 22px; }
}
