:root {
  --bg: #1a1a1a;
  --bg-deep: #141414;
  --card: #242424;
  --card-2: #2c2c2c;
  --line: #333333;
  --text: #f4f4f4;
  --muted: #9b9b9b;
  --yellow: #f5c518;
  --yellow-2: #ffe27a;
  --ink: #1a1a1a;
  --green: #3ddc6a;
  --header: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--yellow); }
img { max-width: 100%; }

.indie {
  background: #2c2616;
  color: #f3e6b4;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  padding: 7px 16px;
  border-bottom: 1px solid #5a4b22;
}
.indie strong { color: #fff; font-weight: 700; }

.topbar {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: #161616;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mark { width: 30px; height: 28px; position: relative; display: inline-block; }
.mark .ear {
  position: absolute; top: 0; width: 11px; height: 11px;
  background: var(--yellow); border-radius: 50%;
}
.mark .ear.l { left: 1px; }
.mark .ear.r { right: 1px; }
.mark .face {
  position: absolute; left: 4px; right: 4px; bottom: 0; height: 20px;
  background: var(--yellow); border-radius: 50%;
}
.mark .face::before,
.mark .face::after {
  content: ""; position: absolute; top: 7px; width: 3px; height: 3px;
  background: #1a1a1a; border-radius: 50%;
}
.mark .face::before { left: 5px; }
.mark .face::after { right: 5px; }
.mark .mouth {
  position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px;
  border-bottom: 2px solid #1a1a1a; border-radius: 0 0 8px 8px;
}
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav button, .ghost {
  background: transparent; border: 0; color: #e8e8e8;
  padding: 8px 12px; border-radius: 8px; font-weight: 600;
}
.nav button.active { color: var(--yellow); }
.nav button:hover, .ghost:hover, .cats button:hover { background: #2a2a2a; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.usd, .fake-select, .reset, .seg button, .live {
  border: 1px solid #3a3a3a; background: #222; color: #eee;
}
.usd { border-radius: 8px; height: 36px; padding: 0 12px; font-weight: 700; }
.btn-gold {
  background: var(--yellow); color: var(--ink); border: 0; border-radius: 8px;
  font-weight: 800; height: 40px; padding: 0 16px;
}
.btn-gold:hover { background: var(--yellow-2); }
.btn-gold.block { width: calc(100% - 20px); margin: 10px 10px 0; height: 46px; font-size: 15px; }
.btn-gold.big { height: 52px; padding: 0 22px; font-size: 16px; }

.cats {
  display: flex; gap: 2px; padding: 4px 8px 0;
  background: #161616; border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.cats button {
  flex: 0 0 auto; min-width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: 0; color: #d5d5d5;
  padding: 6px 8px 8px; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 600;
}
.cats button.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.cats svg { width: 22px; height: 22px; display: block; }

.trade {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 292px minmax(320px, 1.15fr);
  min-height: calc(100vh - 168px);
  background: var(--bg);
}
.pane {
  min-width: 0; display: flex; flex-direction: column;
  background: var(--bg-deep); border-right: 1px solid #2a2a2a; position: relative;
}
.pane.receive { border-right: 0; }
.mid { background: #1c1c1c; border-right: 1px solid #2a2a2a; padding-bottom: 12px; }
.pane-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 12px 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.pane-head .sum { color: #fff; letter-spacing: 0; text-transform: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.subcount { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; margin-left: 8px; }

.search {
  margin: 0 10px 8px; height: 36px; display: flex; align-items: center; gap: 8px;
  background: #101010; border: 1px solid #333; border-radius: 8px; padding: 0 10px;
}
.search input {
  width: 100%; background: transparent; border: 0; outline: none; color: #fff;
}
.search input::placeholder { color: #777; }
.search svg { flex: 0 0 auto; opacity: .7; }

.grid-wrap { position: relative; flex: 1; min-height: 280px; }
.empty {
  margin: 8px 10px; min-height: 220px; border: 1px dashed #3a3a3a; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px;
  background: repeating-linear-gradient(-45deg, #161616, #161616 8px, #191919 8px, #191919 16px);
}
.empty strong { display: block; color: #ddd; margin-bottom: 4px; }
.crate { width: 72px; height: 48px; margin: 0 auto 10px; position: relative; }
.crate .box { position: absolute; inset: 10px 6px 0; background: #3a3a3a; border-radius: 4px; }
.crate .lid { position: absolute; left: 4px; right: 4px; top: 4px; height: 14px; background: var(--yellow); border-radius: 3px 3px 0 0; opacity: .85; }

.hero {
  position: absolute; left: 16px; right: 16px; top: 168px; bottom: 16px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 28px 26px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(20,20,20,.55), rgba(18,18,18,.92) 40%, rgba(18,18,18,.96));
  border: 1px solid #3d3d3d;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.hero p { margin: 0 0 16px; color: #cfcfcf; max-width: 38ch; }
.stars { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--yellow); font-weight: 800; }
.stars span { color: #ddd; font-weight: 600; }
.stars small { color: var(--muted); font-weight: 500; }

.seg { display: flex; margin: 10px; padding: 3px; background: #111; border-radius: 9px; border: 1px solid #2e2e2e; }
.seg button { flex: 1; height: 32px; border: 0; background: transparent; border-radius: 7px; color: #bdbdbd; font-weight: 700; }
.seg button.on { background: #333; color: #fff; }
.bal {
  margin: 4px 12px 10px; padding: 10px 12px; background: #141414; border: 1px solid #2e2e2e; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px;
}
.bal strong { color: #fff; font-size: 18px; }
.field { display: block; margin: 0 10px 8px; }
.field em { display: block; font-style: normal; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 4px; }
.fake-select, .reset {
  width: 100%; text-align: left; border-radius: 8px; min-height: 36px; padding: 8px 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.fake-select .chev, .usd .chev { color: #888; font-size: 10px; }
.reset { justify-content: center; margin: 8px 10px 0; width: calc(100% - 20px); color: #ddd; background: transparent; }

.item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px; padding: 4px 10px 16px; align-content: start; overflow: auto;
}
.item-card {
  background: var(--card); border: 1px solid #303030; border-radius: 10px;
  padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 168px;
  position: relative; overflow: hidden;
}
.item-card:hover { border-color: #555; transform: translateY(-1px); }
.item-card .rarity { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.r-covert .rarity { background: #eb4b4b; }
.r-class .rarity { background: #d32ce6; }
.r-gold .rarity { background: #e4b108; }
.r-mil .rarity { background: #4b69ff; }
.art {
  height: 78px; border-radius: 8px; margin: 6px 0 6px; position: relative; overflow: hidden;
  background: #1a1a1a;
}
.art i { position: absolute; display: block; border-radius: 2px; }
.art-ak { background: linear-gradient(160deg, #4a1515, #1b1b1b 60%); }
.art-ak .barrel { left: 8%; right: 6%; top: 42%; height: 6px; background: #d7d7d7; }
.art-ak .body { left: 18%; width: 42%; top: 36%; height: 16px; background: #8d2a2a; border-radius: 3px; }
.art-ak .stock { right: 8%; width: 22%; top: 38%; height: 12px; background: #5c4030; }
.art-ak .mag { left: 38%; width: 8px; top: 52%; height: 18px; background: #222; }
.art-awp { background: linear-gradient(160deg, #12331c, #1b1b1b 62%); }
.art-awp .barrel { left: 4%; right: 4%; top: 46%; height: 5px; background: #cfcfcf; }
.art-awp .scope { left: 18%; top: 28%; width: 22px; height: 22px; border-radius: 50%; background: #1d6b38; box-shadow: inset 0 0 0 4px #0e2416; }
.art-awp .body { left: 34%; width: 36%; top: 40%; height: 14px; background: #2f8f4e; }
.art-knife { background: linear-gradient(160deg, #4a3b10, #1b1b1b 60%); }
.art-knife .blade { left: 10%; top: 22%; width: 46%; height: 10px; background: linear-gradient(90deg, #fff4c2, #e6e6e6); transform: rotate(18deg); border-radius: 0 8px 2px 0; }
.art-knife .handle { left: 48%; top: 48%; width: 34%; height: 12px; background: #111; transform: rotate(18deg); border: 2px solid var(--yellow); }
.art-m4 { background: linear-gradient(160deg, #10283f, #1b1b1b 62%); }
.art-m4 .barrel { left: 6%; right: 8%; top: 40%; height: 5px; background: #d0d0d0; }
.art-m4 .body { left: 22%; width: 40%; top: 34%; height: 16px; background: #3d6ea8; }
.art-glock { background: linear-gradient(160deg, #102e30, #1b1b1b 60%); }
.art-glock .slide { left: 16%; width: 58%; top: 38%; height: 12px; background: #d9d9d9; border-radius: 3px; }
.art-glock .grip { left: 28%; width: 16px; top: 48%; height: 22px; background: #1f6f73; border-radius: 0 0 4px 4px; }
.art-usp { background: linear-gradient(160deg, #2d1240, #1b1b1b 60%); }
.art-usp .slide { left: 18%; width: 54%; top: 36%; height: 13px; background: #eee; border-radius: 4px; }
.art-usp .grip { left: 30%; width: 18px; top: 48%; height: 22px; background: #6a2ea0; }
.item-name { font-size: 12px; font-weight: 700; color: #fff; }
.item-meta { font-size: 11px; color: var(--muted); }
.item-price { margin-top: auto; color: var(--yellow); font-weight: 800; font-variant-numeric: tabular-nums; }

.site-foot {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  justify-content: space-between; padding: 12px 16px;
  background: #121212; border-top: 1px solid #2a2a2a; color: #9a9a9a; font-size: 12px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.foot-links a { color: #d8d8d8; text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--yellow); }
.live {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 6px 12px; color: #c8f5d4; background: #1a2a1e; border-color: #2c4a34; font-weight: 700;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61,220,106,.15); }
.copy { flex: 1 1 220px; }
html:not(.cookie-set) .site-foot { margin-bottom: 96px; }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #242424; color: #eee; border: 1px solid #444; border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); max-width: 980px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none !important; }
html.cookie-set #cookie-banner { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: 13px; color: #ddd; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .ghost {
  border: 1px solid #555; border-radius: 8px; height: 36px; padding: 0 12px; background: transparent;
}

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.66); border: 0; padding: 0; }
.modal-card {
  position: relative; z-index: 1; width: min(440px, calc(100% - 28px));
  background: #242424; border: 1px solid #454545; border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.modal-card h2 { margin: 0 36px 8px 0; font-size: 22px; }
.modal-card p { margin: 0 0 16px; color: #d5d5d5; }
.modal-x {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: #333; color: #fff; font-size: 18px; line-height: 1;
}
.legal-body { max-width: 860px; margin: 0 auto; padding: 28px 18px 96px; }
.legal-body h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.03em; }
.legal-body .lead { color: #c8c8c8; margin-top: 0; }
.legal-body h2 { font-size: 18px; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: #d2d2d2; }
.legal-body ul { padding-left: 18px; }
.back { color: #ddd; font-weight: 700; text-decoration: none; }
.page-top .brand { text-decoration: none; }

@media (max-width: 1100px) {
  .trade { grid-template-columns: 1fr; }
  .pane, .mid { border-right: 0; border-bottom: 1px solid #2a2a2a; }
  .hero { position: relative; inset: auto; margin: 0 10px 12px; min-height: 240px; }
  .nav { display: none; }
  .topbar { height: auto; min-height: var(--header); flex-wrap: wrap; padding: 8px 12px; }
}
