:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0b1017;
  --surface: rgba(16, 22, 31, .82);
  --surface-solid: #10161f;
  --surface-2: #151d28;
  --surface-3: #1b2532;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.13);
  --text: #f5f8fb;
  --muted: #8895a7;
  --soft: #b8c2cf;
  --lime: #8dff55;
  --lime-2: #c2ff7e;
  --cyan: #35e7ff;
  --violet: #a678ff;
  --pink: #ff5ea8;
  --orange: #ffb34c;
  --red: #ff5d6c;
  --green: #58e39b;
  --shadow: 0 28px 90px rgba(0,0,0,.42);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(141,255,85,.12), transparent 26%),
    radial-gradient(circle at 92% 0%, rgba(53,231,255,.08), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(166,120,255,.06), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: rgba(141,255,85,.28); }

#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-lime { color: var(--lime); }
.text-cyan { color: var(--cyan); }
.text-red { color: var(--red); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,10,15,.82);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -.045em;
  font-size: 18px;
}
.brand img { width: 34px; height: 34px; }
.brand strong span { color: var(--lime); }

.main-nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.nav-btn {
  position: relative;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.nav-btn:hover { color: #fff; }
.nav-btn.active {
  color: #fff;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.nav-btn .new-dot {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 15px var(--pink);
}

.user-zone {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}
.balance-pill, .demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--soft);
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-weight: 800;
}
.balance-pill b { color: var(--lime); }
.demo-pill b { color: var(--cyan); }
.steam-btn, .user-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(141,255,85,.24);
  border-radius: 11px;
  background: rgba(141,255,85,.07);
  color: #eaffdf;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  font-size: 12px;
}
.steam-btn:hover, .user-btn:hover { background: rgba(141,255,85,.12); }
.user-btn img { width: 26px; height: 26px; border-radius: 7px; }

.page {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 90px;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 24px 0 22px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.page-title {
  margin: 7px 0 5px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.055em;
  line-height: 1;
}
.page-desc {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding: 58px 26px 42px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -150px;
  top: -90px;
  border-radius: 50%;
  border: 1px solid rgba(141,255,85,.12);
  box-shadow:
    0 0 0 50px rgba(141,255,85,.015),
    0 0 0 110px rgba(53,231,255,.012);
  pointer-events: none;
}
.hero h1 {
  margin: 14px 0 18px;
  max-width: 950px;
  font-size: clamp(58px, 7.2vw, 108px);
  line-height: .87;
  letter-spacing: -.075em;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--lime) 10%, #fff 58%, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 760px;
  color: #a9b4c2;
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn.primary {
  color: #071006;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 14px 40px rgba(141,255,85,.13);
}
.btn.primary:hover { background: var(--lime-2); }
.btn.cyan { color: #041114; background: var(--cyan); border-color: var(--cyan); }
.btn.danger { color: #ffdfe3; background: rgba(255,93,108,.09); border-color: rgba(255,93,108,.25); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 0 11px; border-radius: 9px; font-size: 11px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.hero-console {
  position: relative;
  z-index: 2;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.console-inner {
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 19px;
  background: #0b1017;
  overflow: hidden;
}
.console-head {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9ffd8;
  font-weight: 850;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.hero-stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat:nth-child(2n) { border-right: 0; }
.hero-stat:nth-last-child(-n+2) { border-bottom: 0; }
.hero-stat span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.hero-stat strong { display: block; margin: 7px 0 2px; font-size: 26px; letter-spacing: -.045em; }
.hero-stat small { color: #788494; }

.market-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.ticker-label {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: #081008;
  background: var(--lime);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}
.ticker-track {
  display: flex;
  gap: 8px;
  min-width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker-item {
  min-width: max-content;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255,255,255,.025);
  font-size: 10px;
}
.ticker-item b { color: var(--lime); margin-left: 5px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-45%); } }

.section { margin-top: 30px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-title { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.section-sub { color: var(--muted); font-size: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feature-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
}
.feature-card {
  min-height: 190px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  bottom: -58px;
  border: 1px solid rgba(141,255,85,.12);
  border-radius: 50%;
}
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--lime);
  background: rgba(141,255,85,.06);
  font-size: 19px;
}
.feature-card h3 { margin: 16px 0 6px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  margin-bottom: 15px;
}
.searchbox {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0a0f15;
}
.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}
.searchbox input::placeholder { color: #647083; }
.select, .input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  padding: 0 12px;
  color: #dce4ed;
  background: #0a0f15;
}
.input { width: 100%; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}
.skin-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, #131b25, #0c1219);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.skin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141,255,85,.24);
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.skin-visual {
  height: 176px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 65%, rgba(141,255,85,.11), transparent 35%),
    linear-gradient(180deg, #151e29, #10161e);
}
.skin-visual::before {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.045);
  box-shadow: 0 0 0 30px rgba(255,255,255,.012);
}
.skin-visual img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 16px 15px rgba(0,0,0,.28));
}
.weapon-fallback {
  position: relative;
  z-index: 1;
  width: 75%;
  text-align: center;
  color: #526172;
}
.weapon-fallback strong { display: block; font-size: 25px; letter-spacing: -.04em; }
.weapon-fallback span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.source-badge, .rarity-badge {
  position: absolute;
  z-index: 4;
  top: 10px;
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(5,9,13,.75);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 900;
}
.source-badge { left: 10px; color: #d8e1eb; }
.rarity-badge { right: 10px; color: var(--lime); }
.skin-body { padding: 13px; }
.skin-weapon { color: #7e8998; font-size: 10px; font-weight: 800; }
.skin-name {
  min-height: 38px;
  margin: 4px 0 9px;
  font-size: 14px;
  line-height: 1.32;
}
.skin-tags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 21px; }
.tag {
  padding: 3px 5px;
  border-radius: 5px;
  color: #8f9cab;
  background: rgba(255,255,255,.035);
  font-size: 8px;
}
.skin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.price { font-size: 17px; font-weight: 950; letter-spacing: -.025em; }
.price small { display: block; color: #687485; font-size: 8px; font-weight: 700; margin-top: 2px; }
.skin-actions { display: flex; gap: 5px; }
.icon-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #9ca8b7;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.icon-btn:hover { color: var(--lime); border-color: rgba(141,255,85,.25); }

.empty-state {
  grid-column: 1 / -1;
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}
.empty-state strong { display: block; color: #fff; margin-bottom: 7px; font-size: 18px; }

.loading-card { min-height: 330px; }
.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  animation: shimmer 1.35s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.market-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 13px;
}
.tab-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.tab-btn.active { color: #081008; background: var(--lime); border-color: var(--lime); }

.trade-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px minmax(0,1fr);
  gap: 13px;
  align-items: stretch;
}
.trade-panel { min-height: 650px; padding: 15px; }
.trade-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.trade-panel-head h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.trade-count { color: var(--muted); font-size: 10px; }
.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  max-height: 590px;
  overflow: auto;
}
.trade-item {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1118;
  cursor: pointer;
}
.trade-item.selected {
  outline: 2px solid var(--lime);
  background: rgba(141,255,85,.055);
}
.trade-item .skin-visual { height: 96px; border-radius: 8px; }
.trade-item-name {
  height: 34px;
  margin-top: 7px;
  overflow: hidden;
  color: #c8d0da;
  font-size: 9px;
  line-height: 1.35;
}
.trade-item-price { margin-top: 4px; color: var(--lime); font-size: 10px; font-weight: 900; }

.trade-center {
  padding: 15px;
  align-self: center;
}
.trade-summary { padding: 18px; }
.trade-summary h3 { margin: 0 0 15px; font-size: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.summary-row strong { color: #fff; }
.summary-row.final { border-bottom: 0; font-size: 13px; }
.summary-row.final strong { color: var(--lime); }
.trade-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--lime);
  border: 1px solid var(--line-strong);
  background: #0c1219;
  font-size: 20px;
}

.sell-layout, .account-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
}
.sell-panel, .account-card { padding: 20px; }
.form-grid { display: grid; gap: 13px; margin-top: 20px; }
.field { display: grid; gap: 7px; }
.field label { color: #9aa6b5; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.form-note {
  padding: 12px 13px;
  border: 1px solid rgba(53,231,255,.16);
  border-radius: 10px;
  color: #a9dbe2;
  background: rgba(53,231,255,.045);
  font-size: 10px;
  line-height: 1.55;
}
.inventory-list { display: grid; gap: 7px; max-height: 590px; overflow: auto; margin-top: 14px; }
.inventory-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1118;
  cursor: pointer;
}
.inventory-row:hover, .inventory-row.selected { border-color: rgba(141,255,85,.28); }
.inventory-row.selected { background: rgba(141,255,85,.045); }
.inventory-thumb { width: 64px; height: 48px; object-fit: contain; border-radius: 7px; background: #121a23; }
.inventory-name { font-size: 11px; }
.inventory-meta { color: var(--muted); font-size: 9px; margin-top: 3px; }

.case-warning {
  display: flex;
  align-items: start;
  gap: 11px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(53,231,255,.17);
  border-radius: 12px;
  background: rgba(53,231,255,.045);
  color: #abd9e0;
  font-size: 11px;
  line-height: 1.55;
}
.case-warning strong { color: #e3fbff; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.case-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #141c27, #0b1118);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.case-card:hover { transform: translateY(-3px); border-color: rgba(141,255,85,.25); }
.case-art {
  height: 225px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 65%, var(--case-glow, rgba(141,255,85,.22)), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.case-box {
  width: 150px;
  height: 118px;
  position: relative;
  transform: perspective(600px) rotateX(6deg) rotateY(-12deg);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), transparent 45%),
    #101821;
  box-shadow: 0 22px 40px rgba(0,0,0,.35), inset 0 0 0 4px rgba(255,255,255,.018);
}
.case-box::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--case-color, var(--lime));
  border-radius: 11px;
  box-shadow: 0 0 28px var(--case-glow, rgba(141,255,85,.20));
}
.case-box::after {
  content: "SB";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--case-color, var(--lime));
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.08em;
}
.case-body { padding: 16px; }
.case-body h3 { margin: 0 0 5px; font-size: 18px; }
.case-body p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.case-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.case-cost { color: var(--cyan); font-weight: 950; }
.case-odds { color: #7b8898; font-size: 9px; }

.case-stage {
  padding: 19px;
  margin-top: 14px;
  overflow: hidden;
}
.case-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.case-stage-head h2 { margin: 0; }
.case-stage-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.reel-window {
  position: relative;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080d13;
}
.reel-window::before, .reel-window::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
}
.reel-window::before { left: 0; background: linear-gradient(90deg, #080d13, transparent); }
.reel-window::after { right: 0; background: linear-gradient(-90deg, #080d13, transparent); }
.reel-marker {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--lime);
  box-shadow: 0 0 20px var(--lime);
}
.reel {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 15px;
  transform: translateX(0);
}
.reel.spinning { transition: transform 4.5s cubic-bezier(.12,.68,.11,1); }
.reel-item {
  width: 150px;
  height: 145px;
  flex: 0 0 150px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rarity-color, #7d8998);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.reel-item strong { font-size: 10px; line-height: 1.35; }
.reel-item span { color: var(--muted); font-size: 8px; margin-top: 5px; }
.odds-table { display: grid; gap: 6px; }
.odds-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
}
.odds-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rarity-color); box-shadow: 0 0 10px var(--rarity-color); }
.odds-row span:nth-child(3) { color: var(--muted); }
.odds-row strong { color: var(--soft); }

.account-grid { grid-template-columns: repeat(3, 1fr); }
.account-card { min-height: 160px; }
.account-card h3 { margin: 0 0 12px; font-size: 14px; }
.account-value { font-size: 32px; font-weight: 950; letter-spacing: -.05em; }
.account-value small { font-size: 11px; color: var(--muted); font-weight: 700; }
.activity-list { display: grid; gap: 7px; }
.activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.activity-row:last-child { border-bottom: 0; }
.activity-row span { color: var(--muted); }
.activity-row strong { color: var(--soft); }

.footer {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.footer .brand { opacity: .8; }

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 8px;
}
.toast {
  width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(12,17,24,.95);
  box-shadow: var(--shadow);
  animation: toast-in .22s ease;
  font-size: 11px;
  line-height: 1.5;
}
.toast.success { border-color: rgba(88,227,155,.25); }
.toast.error { border-color: rgba(255,93,108,.27); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,5,8,.72);
  backdrop-filter: blur(12px);
}
.modal {
  width: min(820px, 100%);
  max-height: min(800px, 90vh);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0d131b;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.close-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.modal-body { padding: 20px; }
.compare-list { display: grid; gap: 8px; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 13px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1017;
}
.compare-source { font-weight: 900; font-size: 11px; }
.compare-price { color: var(--lime); font-weight: 950; }

@media (max-width: 1250px) {
  .market-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-shell { grid-template-columns: 1fr; }
  .trade-center { order: 2; }
  .trade-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 950px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 16px; }
  .main-nav {
    position: fixed;
    z-index: 90;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: calc(100% - 24px);
    justify-content: space-around;
    background: rgba(8,12,18,.95);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
  }
  .nav-btn { flex: 1; padding: 0 6px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .sell-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 88px; }
}

@media (max-width: 720px) {
  .page { width: min(100% - 22px, 1500px); padding-top: 12px; }
  .topbar { height: 64px; }
  .brand strong { display: none; }
  .balance-pill { display: none; }
  .demo-pill { display: none; }
  .steam-btn, .user-btn { padding: 0 9px; }
  .user-btn span { display: none; }
  .hero { min-height: auto; padding: 45px 3px 32px; }
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 14px; }
  .hero-console { margin-top: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .searchbox { grid-column: 1 / -1; }
  .trade-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .market-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
