:root {
  --bg: #090b0e;
  --surface: #111419;
  --surface-2: #171b21;
  --line: rgba(255,255,255,.075);
  --muted: #777e89;
  --text: #f4f5f6;
  --lime: #a855f7;
  --lime-2: #7c3aed;
  --orange: #c084fc;
  --purple: #8b5cf6;
  --red: #ff5370;
  --cyan: #51d5ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 11%, rgba(139, 92, 246, .16), transparent 31%),
    var(--bg);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.brand > span:last-child > span { color: var(--lime); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
}
.brand-mark svg { width: 100%; fill: var(--lime); }
.brand-mark .brand-face { fill: #171a1f; }
.brand-mark .brand-eyes { fill: var(--lime); }

.live-stats {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.live-stats span { display: flex; align-items: center; gap: 5px; }
.live-stats i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.live-stats b { color: #d7d9dd; font-size: 11px; }

.main-nav {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.main-nav a, .main-nav button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: #949aa4;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.main-nav a:hover, .main-nav a.active, .main-nav button:hover { color: white; background: rgba(255,255,255,.055); }

.balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(168,85,247,.35);
  border-radius: 10px;
  background: rgba(168,85,247,.11);
  cursor: pointer;
}
.coin {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #10130d;
  background: var(--lime);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(168,85,247,.32);
}
.balance > span:nth-child(2) { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.balance small { color: #828994; font-size: 8px; text-transform: uppercase; }
.balance b { font-size: 12px; }
.plus {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--lime);
  color: #10130d;
  font-weight: 900;
}

.live-feed {
  width: 110px;
  position: fixed;
  top: 76px;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 13px 7px;
  overflow: hidden;
  background: #0d1014;
  border-right: 1px solid var(--line);
}
.feed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 11px;
  color: #8e959f;
  font-size: 9px;
  font-weight: 800;
}
.feed-title span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.feed-item {
  position: relative;
  height: 87px;
  margin-bottom: 5px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
    background: linear-gradient(145deg, rgba(139,92,246,.22), #15181d 60%);
  animation: feedIn .35s ease both;
}
.feed-item::before {
  content: "";
  width: 2px;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--rarity, var(--purple));
}
.feed-item img { width: 100%; height: 45px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.feed-item strong, .feed-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item strong { font-size: 7px; }
.feed-item small { margin-top: 2px; color: #747b85; font-size: 6px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px); } }

main { padding-left: 110px; }
.hero {
  min-height: 640px;
  padding: 52px max(4vw, 35px) 38px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "ENOT";
  position: absolute;
  top: 46px;
  right: -20px;
  z-index: -1;
  color: rgba(255,255,255,.015);
  font-size: clamp(130px, 20vw, 320px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -20px;
}
.hero-heading {
  max-width: 1180px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: .95;
  letter-spacing: -4px;
}
h1 em { color: var(--lime); font-style: normal; }
.hero-heading p {
  width: 390px;
  margin-bottom: 3px;
  color: #777e88;
  font-size: 12px;
  line-height: 1.75;
}
.hero-copy { width: 430px; }
.hero-copy p { width: auto; }
.trust-row { display: flex; gap: 6px; flex-wrap: wrap; }
.trust-row span {
  padding: 6px 8px;
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 999px;
  color: #969ca5;
  background: rgba(168,85,247,.055);
  font-size: 7px;
  font-weight: 700;
}

.upgrade-stage {
  max-width: 960px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 250px minmax(230px, 1fr);
  align-items: center;
  gap: 32px;
  transform: translateX(-55px);
}
.selection-card {
  height: 255px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 85%, rgba(168,85,247,.12), transparent 44%),
    linear-gradient(145deg, #161a1f, #0f1216);
  box-shadow: inset 0 1px rgba(255,255,255,.03), 0 24px 60px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.selection-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.38); }
.selection-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px dashed rgba(255,255,255,.04);
  border-radius: 11px;
}
.card-label {
  position: relative;
  z-index: 2;
  color: #7f8690;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.empty-state {
  height: calc(100% - 12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 1px solid rgba(168,85,247,.28);
  border-radius: 14px;
  background: rgba(168,85,247,.11);
  font-size: 24px;
}
.empty-state strong { font-size: 12px; }
.empty-state small { margin-top: 5px; color: #656c76; font-size: 9px; }
.selected-state {
  height: calc(100% - 12px);
  display: none;
  position: relative;
  z-index: 2;
  text-align: center;
}
.selection-card.has-item .empty-state { display: none; }
.selection-card.has-item .selected-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.selected-state img {
  width: 185px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,.5));
}
.selected-state strong { font-size: 12px; }
.selected-state small { margin-top: 4px; color: var(--lime); font-size: 10px; font-weight: 800; }

.chance-wrap { display: flex; flex-direction: column; align-items: center; }
.chance-wheel {
  width: 220px;
  height: 220px;
  padding: 13px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lime) 0 var(--chance, 0%), #252a30 var(--chance, 0%) 100%);
  box-shadow: 0 0 85px rgba(139,92,246,.16);
}
.chance-wheel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 10px solid #0c0e11;
  border-radius: 50%;
}
.chance-inner {
  width: 147px;
  height: 147px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  background: radial-gradient(circle, #1b2023, #0b0e11 70%);
  box-shadow: inset 0 0 45px rgba(168,85,247,.10);
}
.chance-inner span { font-size: 35px; font-weight: 800; letter-spacing: -2px; }
.chance-inner small { color: #757d87; font-size: 8px; letter-spacing: 2px; }
.wheel-pointer {
  position: absolute;
  inset: -5px;
  z-index: 4;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
}
.wheel-pointer::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: -2px;
  left: 50%;
  border-top: 17px solid #fff;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  filter: drop-shadow(0 0 8px var(--lime));
  transform: translateX(-50%);
}
.chance-wheel.spinning .wheel-pointer::after { border-top-color: var(--lime); }
.upgrade-presets {
  width: 220px;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.upgrade-presets button {
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #777f8a;
  background: #14171c;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.upgrade-presets button:hover {
  color: #d9c4ff;
  border-color: rgba(168,85,247,.4);
  background: rgba(168,85,247,.1);
}
.upgrade-presets button.active {
  color: #fff;
  border-color: var(--lime);
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 5px 18px rgba(139,92,246,.22);
}
.upgrade-button {
  width: 205px;
  margin-top: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--lime);
  color: #11140c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  box-shadow: 0 9px 34px rgba(168,85,247,.26);
  cursor: pointer;
  transition: .2s ease;
}
.upgrade-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(168,85,247,.42); }
.upgrade-button:disabled { color: #5f6466; background: #272b2e; box-shadow: none; cursor: not-allowed; }
.fair-label { margin-top: 8px; color: #515761; font-size: 7px; letter-spacing: 1px; }

.market {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 16px;
  padding: 18px max(3vw, 28px) 70px;
  background: #0c0f13;
  border-top: 1px solid var(--line);
}
.market-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111419;
  overflow: hidden;
}
.panel-head {
  min-height: 66px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 5px; }
.tab, .sort-button, .filter {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777f89;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.tab { padding: 10px 12px; }
.tab.active { color: white; background: #20242a; }
.tab span { color: var(--lime); }
.sort-button { padding: 8px; border: 1px solid var(--line); }
.items-grid {
  padding: 11px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.skin-card {
  min-width: 0;
  height: 150px;
  padding: 9px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--rarity) 12%, #171a20), #111419 60%);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.skin-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--rarity);
  box-shadow: 0 0 10px var(--rarity);
}
.skin-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rarity) 50%, transparent); }
.skin-card.selected { border-color: var(--lime); box-shadow: inset 0 0 30px rgba(168,85,247,.16), 0 0 18px rgba(139,92,246,.12); }
.skin-card img {
  width: 100%;
  height: 83px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(0,0,0,.35));
  transition: transform .2s ease;
}
.skin-card:hover img { transform: scale(1.06) rotate(-2deg); }
.skin-price {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
}
.skin-card strong, .skin-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-card strong { font-size: 8px; }
.skin-card small { margin-top: 3px; color: #6d747f; font-size: 7px; }
.inventory-panel .skin-card { height: 190px; padding-bottom: 44px; }
.inventory-panel .skin-card img { height: 102px; }
.condition {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #6e7580;
  font-size: 7px;
  font-weight: 800;
}
.empty-inventory {
  grid-column: 1/-1;
  min-height: 305px;
  display: grid;
  place-items: center;
  color: #656c76;
  font-size: 11px;
}

.catalog-head { align-items: center; }
.catalog-head .eyebrow { margin-bottom: 3px; font-size: 7px; }
.catalog-head h2 { margin: 0; font-size: 16px; letter-spacing: -.6px; }
.search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1115;
}
.search svg { width: 13px; fill: none; stroke: #646c76; stroke-width: 2; }
.search input { width: 130px; border: 0; outline: 0; color: white; background: transparent; font-size: 9px; }
.filters { display: flex; gap: 5px; padding: 11px 12px 0; }
.filter { padding: 7px 10px; border: 1px solid var(--line); }
.filter.active { color: #12150d; border-color: var(--lime); background: var(--lime); }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.load-more {
  width: calc(100% - 24px);
  margin: 2px 12px 14px;
  padding: 11px;
  border: 1px solid rgba(168,85,247,.28);
  border-radius: 8px;
  color: #c9a7ff;
  background: rgba(168,85,247,.08);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.load-more:hover { border-color: var(--lime); background: rgba(168,85,247,.16); }
.load-more[hidden] { display: none; }

.shop-section {
  padding: 72px max(4vw, 36px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0, rgba(139,92,246,.12), transparent 30%),
    #090c10;
}
.shop-title {
  max-width: 1180px;
  margin: 0 auto 25px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}
.shop-title h2 { margin: 0; font-size: 32px; letter-spacing: -1.8px; }
.shop-title p { margin: 8px 0 0; color: #737b86; font-size: 10px; }
.shop-title p b { color: var(--lime); }
.shop-search { width: 240px; }
.shop-search input { width: 100%; }
.shop-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.shop-grid .skin-card { height: 190px; padding-bottom: 43px; }
.shop-grid .skin-card img { height: 95px; }
.buy-button, .sell-button {
  position: absolute;
  right: 8px;
  bottom: 9px;
  left: 8px;
  z-index: 2;
  padding: 7px 5px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.buy-button:hover, .sell-button:hover { filter: brightness(1.15); }
.sell-button {
  border: 1px solid rgba(168,85,247,.28);
  color: #d8c4ff;
  background: rgba(168,85,247,.13);
}
.shop-more { width: min(1180px, 100%); margin: 18px auto 0; display: block; }

.how-it-works {
  padding: 75px max(6vw, 45px);
  display: flex;
  justify-content: space-between;
  gap: 50px;
  border-top: 1px solid var(--line);
}
.how-it-works h2 { margin: 0; font-size: 32px; letter-spacing: -2px; }
.steps { max-width: 740px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #111419; }
.steps b { display: block; margin-bottom: 35px; color: var(--lime); font-size: 11px; }
.steps strong { display: block; font-size: 11px; }
.steps p { margin: 7px 0 0; color: #707781; font-size: 9px; line-height: 1.6; }

footer {
  min-height: 110px;
  padding: 30px max(4vw, 32px) 30px calc(110px + max(4vw, 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #666d77;
  border-top: 1px solid var(--line);
  background: #080a0d;
  font-size: 9px;
}
.footer-brand { color: white; }
footer p { max-width: 390px; margin: 0; text-align: center; }

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  background: rgba(4,5,7,.82);
  backdrop-filter: blur(12px);
  transition: .25s ease;
}
.result-modal.open { opacity: 1; visibility: visible; }
.result-card {
  width: min(420px, 100%);
  padding: 42px 35px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 18px;
  background: #13171b;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
  text-align: center;
  transform: scale(.92);
  transition: .25s ease;
}
.result-modal.open .result-card { transform: scale(1); }
.result-glow { position: absolute; width: 230px; height: 230px; top: -145px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--lime); filter: blur(70px); opacity: .18; }
.modal-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #767d87; font-size: 24px; cursor: pointer; }
.result-kicker { color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.result-card h2 { margin: 7px 0 15px; font-size: 28px; }
.result-card .skin-card { width: 170px; height: 170px; margin: 0 auto 22px; text-align: left; }
.result-card .skin-card img { height: 100px; }
.modal-action { width: 100%; padding: 12px; border: 0; border-radius: 8px; color: #11140c; background: var(--lime); font-size: 10px; font-weight: 900; cursor: pointer; }
.result-card.fail { border-color: rgba(255,83,112,.2); }
.result-card.fail .result-kicker { color: var(--red); }
.result-card.fail .result-glow { background: var(--red); }

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  background: rgba(4,5,7,.84);
  backdrop-filter: blur(12px);
  transition: .25s ease;
}
.topup-modal.open { opacity: 1; visibility: visible; }
.topup-card {
  width: min(400px, 100%);
  padding: 34px;
  position: relative;
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(139,92,246,.16), transparent 34%),
    #14171c;
  box-shadow: 0 35px 100px rgba(0,0,0,.6);
  transform: translateY(12px);
  transition: .25s ease;
}
.topup-modal.open .topup-card { transform: translateY(0); }
.topup-card h2 { margin: 0; font-size: 25px; letter-spacing: -1px; }
.exchange-rate { margin: 7px 0 24px; color: var(--lime); font-size: 11px; font-weight: 800; }
.topup-card label { display: block; margin-bottom: 15px; }
.topup-card label > span { display: block; margin-bottom: 7px; color: #858c96; font-size: 9px; font-weight: 700; }
.topup-card input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #0d1014;
  font-size: 12px;
}
.topup-card input:focus { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 3px rgba(168,85,247,.08); }
.card-details { display: grid; grid-template-columns: 1.4fr .8fr; gap: 11px; }
.card-details label { min-width: 0; }
.amount-input { display: flex; align-items: center; position: relative; }
.amount-input b { position: absolute; left: 13px; z-index: 1; color: var(--lime); font-size: 12px; }
.amount-input input { padding-left: 29px; }
.conversion {
  margin: 3px 0 17px;
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(168,85,247,.06);
  font-size: 10px;
}
.conversion span { color: #7b828c; }
.conversion b { color: var(--lime); }
.topup-card > small { display: block; margin-top: 12px; color: #626975; font-size: 8px; line-height: 1.5; text-align: center; }

.steam-login {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(102,192,244,.25);
  border-radius: 10px;
  color: #eaf7ff;
  background: linear-gradient(135deg, rgba(27,64,88,.7), rgba(20,31,43,.9));
  box-shadow: inset 0 1px rgba(255,255,255,.04);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.steam-login:hover { transform: translateY(-1px); border-color: rgba(102,192,244,.55); background: linear-gradient(135deg, rgba(31,83,118,.8), rgba(20,35,49,.95)); }
.steam-login svg { width: 19px; height: 19px; fill: none; stroke: #66c0f4; stroke-width: 1.8; stroke-linecap: round; }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: white;
  cursor: pointer;
}
.profile-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(168,85,247,.16);
  font-size: 16px;
  overflow: hidden;
}
.profile-avatar img, .big-avatar img, .editable-avatar img { width: 100%; height: 100%; display: none; object-fit: cover; }
.profile-avatar img.visible, .big-avatar img.visible, .editable-avatar img.visible { display: block; }
.profile-avatar i, .big-avatar i, .editable-avatar i { font-style: normal; }
.profile-avatar img.visible + i, .big-avatar img.visible + i, .editable-avatar img.visible + i { display: none; }
.profile-chip > span:last-child { display: flex; flex-direction: column; }
.profile-chip small { color: #aeb3bb; font-size: 7px; font-weight: 800; }
.profile-chip b { color: var(--lime); font-size: 7px; }
.profile-chip i { font-style: normal; }

.inventory-tools {
  padding: 9px 11px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.inventory-tools input, .inventory-tools select, .inventory-tools button,
.setting-row select, .fair-card input {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #aeb3bc;
  background: #0e1115;
  font-size: 8px;
}
.inventory-tools .selection-mode, .inventory-tools .sell-selected { grid-column: span 1; cursor: pointer; }
.inventory-tools .selection-mode.active { color: white; border-color: var(--lime); background: rgba(168,85,247,.14); }
.inventory-tools .sell-selected { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c3aed, #a855f7); }
.inventory-tools .sell-selected[hidden] { display: none; }
.select-check {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 30px;
  left: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: #101319;
  color: transparent;
  cursor: pointer;
}
.skin-card.multi-selected { border-color: var(--lime); box-shadow: inset 0 0 30px rgba(168,85,247,.18); }
.skin-card.multi-selected .select-check { color: white; border-color: var(--lime); background: var(--lime); }

.favorite-button {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 28px;
  right: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #858c97;
  background: rgba(10,12,15,.75);
  font-size: 14px;
  cursor: pointer;
}
.favorite-button.active { color: #ff68bd; border-color: rgba(255,104,189,.35); background: rgba(255,104,189,.12); }
.shop-actions { display: flex; align-items: center; gap: 8px; }
.favorites-filter {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #969da7;
  background: #0e1115;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.favorites-filter.active { color: #ff9bd4; border-color: rgba(255,104,189,.35); background: rgba(255,104,189,.1); }

.history-list { grid-column: 1/-1; display: grid; gap: 7px; }
.history-entry {
  padding: 11px;
  display: grid;
  grid-template-columns: 45px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #14171c;
}
.history-entry img { width: 45px; height: 38px; object-fit: contain; }
.history-entry strong, .history-entry small { display: block; }
.history-entry strong { font-size: 9px; }
.history-entry small { margin-top: 3px; color: #747b85; font-size: 7px; }
.history-result { text-align: right; }
.history-result b { display: block; color: var(--lime); font-size: 9px; }
.history-result.fail b { color: var(--red); }
.history-proof { margin-top: 5px; color: #686f79; font-family: monospace; font-size: 6px; word-break: break-all; }

.dashboard {
  padding: 76px max(4vw, 38px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 8%, rgba(139,92,246,.13), transparent 29%),
    #0b0e12;
}
.section-heading {
  max-width: 1180px;
  margin: 0 auto 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading h2 { margin: 0; font-size: 32px; letter-spacing: -1.8px; }
.section-heading p { max-width: 360px; margin: 0; color: #747b85; font-size: 10px; line-height: 1.6; }
.dashboard-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.dashboard-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(168,85,247,.055), #111419 48%);
}
.dashboard-card h3 { margin: 0 0 18px; font-size: 16px; letter-spacing: -.6px; }
.profile-card { display: grid; grid-template-columns: auto 1fr; gap: 13px 15px; align-items: center; }
.big-avatar { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(168,85,247,.22); border-radius: 18px; background: rgba(168,85,247,.12); font-size: 36px; }
.profile-name strong, .profile-name span { display: block; }
.profile-name strong { font-size: 16px; }
.profile-name span { margin-top: 4px; color: #747b85; font-size: 8px; }
.level-line { grid-column: 1/-1; display: flex; justify-content: space-between; color: #858c96; font-size: 8px; }
.level-line b { color: white; }
.xp-track { height: 6px; grid-column: 1/-1; overflow: hidden; border-radius: 10px; background: #242832; }
.xp-track i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c084fc); box-shadow: 0 0 12px rgba(168,85,247,.4); transition: width .3s ease; }
.profile-stats { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.profile-stats div { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.15); text-align: center; }
.profile-stats b, .profile-stats span { display: block; }
.profile-stats b { color: var(--lime); font-size: 13px; }
.profile-stats span { margin-top: 3px; color: #707781; font-size: 7px; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-heading button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #130c1b;
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.card-heading button:disabled { color: #6c7077; background: #252930; cursor: not-allowed; }
.task-list { display: grid; gap: 7px; }
.task-item { padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.15); }
.task-item strong { font-size: 9px; }
.task-item > b { color: var(--lime); font-size: 8px; }
.task-item > button { padding: 5px 8px; border: 0; border-radius: 6px; color: #130c1b; background: var(--lime); font-size: 7px; font-weight: 900; cursor: pointer; }
.task-progress { height: 4px; grid-column: 1/-1; overflow: hidden; border-radius: 5px; background: #272b33; }
.task-progress i { height: 100%; display: block; background: var(--lime); }
.task-item.completed { border-color: rgba(168,85,247,.26); }
.setting-row { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.setting-row span b, .setting-row span small { display: block; }
.setting-row span b { font-size: 9px; }
.setting-row span small { margin-top: 3px; color: #6f7680; font-size: 7px; }
.setting-row input[type="checkbox"] { width: 32px; height: 18px; accent-color: var(--lime); }
.setting-row select { width: 95px; }
.fair-card p { color: #747b85; font-size: 8px; line-height: 1.6; }
.fair-card label span, .hash-box span { display: block; margin-bottom: 6px; color: #777e88; font-size: 7px; }
.fair-card input { width: 100%; }
.hash-box { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #0c0f13; }
.hash-box code { display: block; overflow: hidden; color: #c9a7ff; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.fair-meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; color: #777e88; font-size: 8px; }
.fair-meta button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: #aeb4bc; background: transparent; font-size: 7px; cursor: pointer; }

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  background: rgba(4,5,8,.88);
  backdrop-filter: blur(14px);
  transition: .25s ease;
}
.profile-modal.open { opacity: 1; visibility: visible; }
.profile-window {
  width: min(930px, 100%);
  max-height: min(780px, calc(100vh - 35px));
  padding: 27px;
  position: relative;
  overflow-y: auto;
  border: 1px solid rgba(168,85,247,.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0, rgba(139,92,246,.15), transparent 30%),
    #111419;
  box-shadow: 0 45px 120px rgba(0,0,0,.65);
  transform: scale(.95) translateY(12px);
  transition: .25s ease;
}
.profile-modal.open .profile-window { transform: scale(1) translateY(0); }
.profile-window-head { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-window-head h2 { margin: 0; font-size: 26px; letter-spacing: -1.2px; }
.profile-window-head > button {
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  color: #130c1b;
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.profile-window-head > button:disabled { color: #686d75; background: #252930; cursor: not-allowed; }
.profile-window-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 11px; }
.profile-editor, .profile-tasks, .profile-quick-settings {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8,10,13,.38);
}
.profile-editor { grid-row: span 2; }
.steam-account {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(102,192,244,.18);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(27,61,82,.25), rgba(10,14,18,.5));
}
.steam-account-main { display: flex; align-items: center; gap: 10px; }
.steam-account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(102,192,244,.3);
  border-radius: 10px;
  color: #66c0f4;
  background: #111b23;
  font-size: 18px;
}
.steam-account-avatar img { width: 100%; height: 100%; display: none; object-fit: cover; }
.steam-account-avatar img.visible { display: block; }
.steam-account-avatar img.visible + i { display: none; }
.steam-account-avatar i { font-style: normal; }
.steam-account-main > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.steam-account-main small { margin-bottom: 3px; color: #66c0f4; font-size: 7px; font-weight: 800; }
.steam-account-main strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.steam-account-actions { margin-top: 10px; display: flex; gap: 6px; }
.steam-account-actions a, .steam-account-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #aeb8c1;
  background: #121820;
  font-size: 7px;
  font-weight: 800;
  cursor: pointer;
}
.steam-account-actions #steamConnect { color: #dff4ff; border-color: rgba(102,192,244,.28); background: rgba(35,94,129,.32); }
.steam-account-actions #steamLogout { color: #ff93a5; }
.avatar-editor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.editable-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 20px;
  background: rgba(168,85,247,.13);
  font-size: 42px;
}
.upload-avatar, .avatar-editor > button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #aeb3bc;
  background: #14171c;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.upload-avatar input { display: none; }
.avatar-editor > button { color: #ff869a; }
.nickname-field { margin-top: 18px; display: block; }
.nickname-field span { display: block; margin-bottom: 7px; color: #777e88; font-size: 8px; }
.nickname-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  outline: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  background: #0d1014;
  font-size: 11px;
}
.save-profile { width: 100%; margin-top: 9px; padding: 10px; border: 0; border-radius: 8px; color: #130c1b; background: linear-gradient(135deg, #8b5cf6, #c084fc); font-size: 9px; font-weight: 900; cursor: pointer; }
.modal-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.modal-stats div { padding: 10px 5px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.modal-stats b, .modal-stats span { display: block; }
.modal-stats b { color: var(--lime); font-size: 12px; }
.modal-stats span { margin-top: 3px; color: #707781; font-size: 6px; }
.profile-section-title h3 { margin: 0 0 13px; font-size: 14px; }
.profile-modal .task-item { background: #101318; }
.profile-quick-settings .setting-row:first-of-type { border-top: 0; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(12px);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 9px;
  background: #181c20;
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
  font-size: 10px;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .live-stats { margin-left: auto; }
  .upgrade-stage { grid-template-columns: 1fr 210px 1fr; gap: 18px; }
  .chance-wheel { width: 190px; height: 190px; }
  .chance-inner { width: 125px; height: 125px; }
  .market { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .how-it-works { flex-direction: column; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 14px; gap: 12px; }
  .live-stats, .balance small, .desktop-only { display: none; }
  .profile-chip > span:last-child { display: none; }
  .profile-chip { margin-left: auto; padding: 5px; }
  .steam-login { margin-left: auto; padding: 0 10px; }
  .steam-login span { display: none; }
  .balance { margin-left: auto; }
  .live-feed { display: none; }
  main { padding-left: 0; }
  .hero { padding: 35px 15px; }
  .hero-heading { display: block; }
  .hero-heading p { width: auto; margin-top: 18px; }
  .hero-copy { width: auto; }
  .trust-row { margin-top: 12px; }
  h1 { letter-spacing: -2.5px; }
  .upgrade-stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .upgrade-stage { transform: none; }
  .selection-card { height: 205px; padding: 14px; }
  .selected-state img { width: 135px; height: 95px; }
  .chance-wrap { grid-column: 1/-1; grid-row: 2; }
  .chance-wheel { width: 175px; height: 175px; }
  .chance-inner { width: 115px; height: 115px; }
  .market { padding: 12px 10px 45px; }
  .items-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-tools { grid-template-columns: 1fr 1fr; }
  .inventory-tools input { grid-column: 1/-1; }
  .shop-section { padding: 50px 12px; }
  .shop-title { align-items: flex-start; flex-direction: column; }
  .shop-actions, .shop-search { width: 100%; }
  .shop-actions { align-items: stretch; flex-direction: column; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard { padding: 50px 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-modal { padding: 8px; }
  .profile-window { max-height: calc(100vh - 16px); padding: 19px 14px; }
  .profile-window-head { align-items: stretch; flex-direction: column; }
  .profile-window-grid { grid-template-columns: 1fr; }
  .profile-editor { grid-row: auto; }
  .catalog-head { align-items: flex-start; flex-direction: column; }
  .search, .search input { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps b { margin-bottom: 15px; }
  .how-it-works { padding: 55px 20px; }
  footer { padding: 30px 20px; flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .balance { padding: 6px; }
  .plus { display: none; }
  .selection-card { height: 185px; }
  .empty-icon { width: 42px; height: 42px; }
  .empty-state strong { font-size: 10px; }
  .empty-state small { font-size: 8px; }
  .filters { overflow-x: auto; }
  .dashboard-card { padding: 17px; }
  .profile-stats { gap: 4px; }
  .card-heading { align-items: stretch; flex-direction: column; }
  .card-heading button { margin-bottom: 10px; }
}
