/* ============================================================
   SKINBOX — Design System & Global Styles
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #07111D;
  --surface:     #0F1726;
  --surface2:    #17253A;
  --surface3:    #22344D;
  --primary:     #4B7CFF;
  --primary-dim: rgba(75,124,255,.16);
  --accent:      #FFB454;
  --accent-dim:  rgba(255,180,84,.16);
  --success:     #2ECB86;
  --warning:     #FFB84D;
  --danger:      #FF5D6C;
  --text:        #FFFFFF;
  --text2:       #A7B0C2;
  --text3:       #6D7892;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.12);
  --glow:        rgba(75,124,255,.28);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --nav-h: 64px;
  --sidebar-w: 240px;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography Scale ───────────────────────────────────── */
.t-hero   { font-size: clamp(40px,5.5vw,64px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.t-h1     { font-size: clamp(32px,4vw,48px);   font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.t-h2     { font-size: clamp(24px,3vw,36px);   font-weight: 700; line-height: 1.2;  letter-spacing: -.02em; text-wrap: balance; }
.t-h3     { font-size: clamp(18px,2.2vw,24px); font-weight: 600; line-height: 1.3;  letter-spacing: -.01em; }
.t-h4     { font-size: 18px; font-weight: 600; line-height: 1.4; }
.t-body   { font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--text2); }
.t-small  { font-size: 14px; font-weight: 400; color: var(--text2); }
.t-label  { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.t-num    { font-variant-numeric: tabular-nums; }

/* ── Layout Utilities ───────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.flex   { display: flex; }
.grid   { display: grid; }
.col    { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

/* ── Page Layout ────────────────────────────────────────── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-content { flex: 1; padding-top: var(--nav-h); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7,11,24,.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: background .3s;
}
.nav.scrolled { background: rgba(7,11,24,.98); }
.nav__inner {
  display: flex; align-items: center; gap: 0;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; letter-spacing: -.03em;
  margin-right: 40px; flex-shrink: 0;
}
.nav__logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav__links {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.nav__link {
  padding: 6px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text2);
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav__link.active { color: var(--primary); }
.nav__link--free {
  color: var(--success) !important;
  background: rgba(34,197,94,.1) !important;
}
.nav__link--free:hover { background: rgba(34,197,94,.18) !important; }
.nav__actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: 20px; flex-shrink: 0;
}
.nav__balance {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  color: var(--success);
}
.nav__balance-icon { font-size: 12px; opacity: .7; }

/* ── Mobile Burger + Menu ─────────────────────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(7,11,24,.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 8px 16px 16px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__link {
  padding: 14px 8px;
  font-size: 15px; font-weight: 500;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link.active { color: var(--primary); }
.mobile-menu__link--free { color: var(--success); }
.mobile-menu__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px;
}
.mobile-menu__lang {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
}
.mobile-menu__lang .lang-btn {
  flex: 1;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  text-align: center;
}

/* ── Language Switcher ───────────────────────────────────── */
.lang-switch {
  display: flex; align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--text3);
  background: none; border: none;
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.lang-btn.active { color: var(--primary); background: var(--primary-dim); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-sm);
  transition: all .2s var(--ease-out);
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(255,255,255,.08);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(75,124,255,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(75,124,255,.5); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--surface3); color: var(--text3); box-shadow: none; cursor: not-allowed; transform: none; opacity: 1; }

.btn-secondary {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.2); background: var(--surface3); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

.btn-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--success);
}
.btn-success:hover { background: rgba(34,197,94,.25); }

.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(239,68,68,.25); }

.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; border-radius: var(--r-md); }
.btn-xl  { padding: 18px 40px; font-size: 17px; border-radius: var(--r-md); font-weight: 700; }
.btn-icon { padding: 9px; aspect-ratio: 1; }

/* Steam login button */
.btn-steam {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1b2838;
  border: 1px solid #4c6b8a;
  color: #c6d4df;
  padding: 7px 16px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--r-sm);
  cursor: pointer; transition: background .15s, border-color .15s;
  text-transform: uppercase;
}
.btn-steam:hover { background: #2a475e; border-color: #66c0f4; color: #fff; }
.btn-steam__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Auth-gate overlay */
.auth-gate {
  position: relative;
}
.auth-gate::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 10, 18, .75);
  border-radius: inherit;
  backdrop-filter: blur(3px);
  z-index: 10;
}
.auth-gate__cta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  z-index: 11;
  pointer-events: none;
}
.auth-gate__cta .btn-steam { pointer-events: all; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.card:hover {
  border-color: rgba(255,255,255,.14);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.card-surface2 { background: var(--surface2); }

/* ── Case Card ───────────────────────────────────────────── */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  position: relative;
  min-width: 0;
  height: 100%;
}
.case-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7) 100%);
  z-index: 1; pointer-events: none;
}
.case-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(75,124,255,.25);
}
.case-card__img {
  width: 100%;
  height: 180px;
  max-height: 220px;
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  transition: transform .3s var(--ease-out);
}
.case-card:hover .case-card__img { transform: scale(1.06); }
.case-card__body {
  padding: 12px 14px 14px;
  position: relative; z-index: 2;
}
.case-card__name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.case-card__price {
  font-size: 15px; font-weight: 700;
  color: var(--primary);
}
.case-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 3px 8px;
  background: var(--primary);
  border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
}
.case-card__badge--hot  { background: var(--danger); }
.case-card__badge--free { background: var(--success); }
.case-card__badge--new  { background: var(--warning); color: #000; }

/* ── Skin Item Card ─────────────────────────────────────── */
.skin-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.skin-card:hover {
  border-color: var(--primary);
  background: var(--surface3);
  transform: translateY(-2px);
}
.skin-card__img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: contain;
  margin-bottom: 8px;
}
.skin-card__name { font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-card__weapon { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-card__price { font-size: 13px; font-weight: 700; color: var(--warning); }
.skin-card__rarity {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
}
.rarity-blue    { background: #4B69FF; }
.rarity-purple  { background: #8847FF; }
.rarity-pink    { background: #D32CE6; }
.rarity-red     { background: #EB4B4B; }
.rarity-gold    { background: #E4AE39; }
.rarity-white   { background: #B2C3D9; }

/* ── Inputs ──────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input::placeholder { color: var(--text3); }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.search-wrap { position: relative; }
.search-wrap .input { padding-left: 38px; }
.search-wrap__icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 15px; pointer-events: none;
}

.select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px; color: var(--text);
  outline: none; appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.select:focus { border-color: var(--primary); }

/* ── Range Slider ────────────────────────────────────────── */
.range-slider {
  width: 100%; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--surface3);
  border-radius: 2px; outline: none; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--glow);
}

/* ── Badges / Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 12px; font-weight: 600;
}
.badge-primary  { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(75,124,255,.25); }
.badge-success  { background: rgba(34,197,94,.12); color: var(--success); border: 1px solid rgba(34,197,94,.2); }
.badge-warning  { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.2); }
.badge-danger   { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.2); }
.badge-muted    { background: var(--surface3); color: var(--text2); border: 1px solid var(--border); }

/* ── Stats Row ───────────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-item__value { font-size: clamp(24px,3vw,36px); font-weight: 800; letter-spacing: -.03em; }
.stat-item__label { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* ── Section Headers ─────────────────────────────────────── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
#popularCasesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* ── Dividers ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7,11,24,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(.95) translateY(20px);
  transition: transform .3s var(--ease-spring);
  position: relative;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-wide { max-width: 720px; }
.modal__close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: var(--surface3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text2);
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--danger); color: #fff; }
.modal__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal__subtitle { font-size: 14px; color: var(--text2); margin-bottom: 24px; }

/* ── Consent Modal ─────────────────────────────────────── */
.consent-modal .modal {
  text-align: center;
  max-width: 420px;
}
.consent-modal__char {
  width: 200px; margin: -40px auto 20px;
  position: relative; z-index: 2;
}
.consent-modal__char img { width: 100%; }
.consent-modal__title {
  font-size: 18px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.consent-check {
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .2s;
}
.consent-check:hover { border-color: var(--primary); }
.consent-check input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.consent-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform .35s var(--ease-spring);
  min-width: 280px; max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast__icon { font-size: 18px; flex-shrink: 0; }
.toast--success { border-left: 3px solid var(--success); }
.toast--warning { border-left: 3px solid var(--warning); }
.toast--error   { border-left: 3px solid var(--danger); }
.toast--info    { border-left: 3px solid var(--primary); }

/* ── Live Drop Feed ──────────────────────────────────────── */
.drop-ticker {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0 16px;
}
.drop-ticker__inner {
  display: flex; gap: 0;
  animation: ticker-scroll 30s linear infinite;
}
.drop-ticker__inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-right: 1px solid var(--border);
  flex-shrink: 0; white-space: nowrap;
}
.drop-item__img { width: 36px; height: 36px; object-fit: contain; }
.drop-item__info { }
.drop-item__user { font-size: 11px; color: var(--text3); }
.drop-item__name { font-size: 12px; font-weight: 600; }
.drop-item__price { font-size: 12px; font-weight: 700; color: var(--warning); }

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width .6s var(--ease-out);
}

/* ── Glow Effects ────────────────────────────────────────── */
.glow-primary { text-shadow: 0 0 24px rgba(75,124,255,.6); }
.glow-success { text-shadow: 0 0 24px rgba(34,197,94,.6); }
.glow-warning { text-shadow: 0 0 24px rgba(245,158,11,.6); }

/* ── Gradient Text ───────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-gold {
  background: linear-gradient(135deg, #F59E0B, #FDE68A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Ambient BG Orbs ─────────────────────────────────────── */
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.bg-orb-1 {
  width: 400px; height: 400px;
  background: rgba(75,124,255,.12);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 350px; height: 350px;
  background: rgba(255,180,84,.08);
  top: 200px; right: -80px;
  animation-delay: -4s;
}
.bg-orb-3 {
  width: 250px; height: 250px;
  background: rgba(34,197,94,.06);
  bottom: -60px; left: 40%;
  animation-delay: -8s;
}
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.08); }
}

/* ── Filter Pills ────────────────────────────────────────── */
.filter-pill {
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  font-size: 13px; font-weight: 500; color: var(--text2);
  transition: all .2s;
  cursor: pointer; white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--primary);
  background: var(--primary-dim);
  color: var(--primary);
}

/* ── Tables ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text3); padding: 10px 16px;
  text-align: left; border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }

/* ── Sidebar Layout ──────────────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 24px;
  align-items: start;
}
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}

/* ── Checkbox / Toggle ───────────────────────────────────── */
.toggle {
  position: relative; display: inline-block;
  width: 40px; height: 22px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute; inset: 0;
  background: var(--surface3); border-radius: 11px;
  cursor: pointer;
  transition: background .2s;
}
.toggle__slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s var(--ease-spring);
}
.toggle input:checked + .toggle__slider { background: var(--primary); }
.toggle input:checked + .toggle__slider::before { transform: translateX(18px); }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border2);
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 64px; height: 64px; border-width: 3px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; }

/* ── Section Padding ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand-desc { font-size: 14px; color: var(--text2); line-height: 1.7; margin: 12px 0 20px; max-width: 280px; }
.footer__col-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: 14px; color: var(--text2); transition: color .2s; }
.footer__link:hover { color: var(--primary); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text3);
  flex-wrap: wrap; gap: 12px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social-btn {
  width: 36px; height: 36px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text2);
  transition: all .2s;
}
.footer__social-btn:hover { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); }

/* ── Probability Circle (Upgrade) ────────────────────────── */
.prob-ring {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.prob-ring svg { transform: rotate(-90deg); }
.prob-ring__text {
  position: absolute;
  text-align: center;
}
.prob-ring__pct { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.prob-ring__label { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* ── Battle Card ─────────────────────────────────────────── */
.battle-row {
  display: flex; align-items: center;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  gap: 16px;
  transition: all .2s;
}
.battle-row:hover { border-color: var(--border2); background: var(--surface2); }
.battle-row__players {
  display: flex; align-items: center; gap: -8px; flex-shrink: 0;
}
.battle-row__player { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; first-child { margin-left: 0; } }
.battle-row__player:first-child { margin-left: 0; }

/* ── Wheel ───────────────────────────────────────────────── */
.wheel-container { position: relative; display: flex; align-items: center; justify-content: center; }
.wheel-pointer {
  position: absolute; top: -12px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--primary);
  z-index: 10;
  filter: drop-shadow(0 0 8px var(--glow));
}

/* ── Slot Machine ────────────────────────────────────────── */
.slot-track { overflow: hidden; border-radius: var(--r-md); position: relative; }
.slot-track::before, .slot-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.slot-track::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.slot-track::after  { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.slot-track__center-line {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow);
  z-index: 3;
}
.slot-inner {
  display: flex; gap: 8px;
  padding: 8px;
  transition: transform 3s cubic-bezier(.1,.7,.1,1);
}
.slot-item {
  flex-shrink: 0;
  width: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
}
.slot-item img { width: 80px; height: 60px; object-fit: contain; }

/* ── Profile Sidebar ─────────────────────────────────────── */
.profile-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 16px);
  align-self: start;
}
.profile-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  border-left: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
}
.profile-nav-item:hover, .profile-nav-item.active {
  color: var(--text);
  background: var(--surface2);
  border-left-color: var(--primary);
}

/* ── Achievement Card ────────────────────────────────────── */
.achievement {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.achievement:hover { border-color: var(--border2); }
.achievement--unlocked { border-color: rgba(245,158,11,.2); background: rgba(245,158,11,.04); }
.achievement__icon {
  width: 44px; height: 44px;
  background: var(--surface3);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.achievement--unlocked .achievement__icon { background: rgba(245,158,11,.12); }
.achievement__title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.achievement__desc  { font-size: 12px; color: var(--text3); }

/* ── Referral ────────────────────────────────────────────── */
.ref-level {
  padding: 16px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all .25s;
}
.ref-level:hover, .ref-level.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}
.ref-level__num { font-size: 24px; font-weight: 800; color: var(--primary); }
.ref-level__pct { font-size: 22px; font-weight: 700; margin-top: 4px; }
.ref-level__label { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer;
  font-size: 16px; font-weight: 500;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q__icon {
  width: 24px; height: 24px;
  background: var(--surface2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: transform .3s var(--ease-out), background .2s;
}
.faq-item.open .faq-q__icon { transform: rotate(45deg); background: var(--primary-dim); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out), padding .3s;
  font-size: 15px; color: var(--text2); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ── SEO Text List ───────────────────────────────────────── */
.seo-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px 48px; }
.seo-section__title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.seo-grid { display: flex; flex-direction: column; gap: 12px; }
.seo-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
}
.seo-card__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; color: var(--primary); }
.seo-card__text {
  font-size: 13px; color: var(--text2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) { .seo-section { padding: 28px 20px; } .seo-card { padding: 16px 18px; } }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px var(--glow); }
  50%       { box-shadow: 0 0 32px rgba(75,124,255,.6); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounce-in {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.anim-fade-up   { animation: fade-up .6s var(--ease-out) both; }
.anim-float     { animation: float 4s ease-in-out infinite; }
.anim-pulse     { animation: pulse-glow 2.5s ease-in-out infinite; }

/* delay helpers */
.d-1 { animation-delay: .1s; }
.d-2 { animation-delay: .2s; }
.d-3 { animation-delay: .3s; }
.d-4 { animation-delay: .4s; }
.d-5 { animation-delay: .5s; }

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar-layout { grid-template-columns: 200px 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__balance,
  .nav__actions .lang-switch,
  .nav__actions .btn-steam,
  .nav__actions #navDepositBtn { display: none; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 56px 0; }
  .container { padding: 0 16px; }
  .nav__inner { padding: 0 16px; }
  .nav__logo { margin-right: auto; }
  .nav__actions { gap: 8px; margin-left: 0; }
}
@media (max-width: 480px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .nav__logo { font-size: 16px; }
  .modal { padding: 24px 18px; }
  .modal-wide .u-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .modal-wide .u-grid-cols-2 { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full   { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-rel  { position: relative; }
.overflow-x-auto { overflow-x: auto; }
.mt-auto  { margin-top: auto; }
.opacity-50 { opacity: .5; }
.pointer  { cursor: pointer; }
