:root {
  --bg: #0d0707;
  --bg2: #150a0a;
  --bg3: #201212;
  --panel: #120a0a;
  --panel2: #1b1010;
  --line: #2e1616;
  --text: #f2e8e6;
  --muted: #a89292;
  --accent: #ff4444;
  --accent2: #cc0000;
  --gold: #ffb800;
  --green: #46d27c;
  --red: #ff4f4f;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(1000px 500px at 80% -10%, rgba(204, 0, 0, 0.18), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(255, 68, 68, 0.08), transparent 60%),
    linear-gradient(180deg, #160505, #030101 90%);
}

.container { width: min(1280px, 94%); margin: 0 auto; }

button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(180deg, #200d0d, #150808);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
}
.logo-text span { color: var(--accent); }
.main-nav { display: flex; gap: 20px; flex: 1; }
.main-nav a {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 600;
  transition: color .15s;
}
.main-nav a:hover { color: #fff; }
.top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.online { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.online b { color: var(--text); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.btn-inv {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; font-weight: 700; font-size: 13px;
  transition: border-color .15s;
}
.btn-inv:hover { border-color: var(--accent); }
.btn-inv span { color: var(--accent); }

.balance {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #222538, #1a1d2a);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px;
}
.balance b { font-size: 15px; font-weight: 800; min-width: 60px; }
.btn-add {
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 800; line-height: 1;
  transition: transform .15s;
}
.btn-add:hover { transform: scale(1.15); }

.steam-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2b6cb0, #22568f);
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 9px; padding: 9px 14px;
  box-shadow: 0 4px 12px rgba(34, 86, 143, .4);
  transition: filter .15s;
}
.steam-btn:hover { filter: brightness(1.12); }

/* ---------- Promo ---------- */
.promo { padding: 14px 0; }
.promo-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(90deg, rgba(255,92,56,.12), rgba(255,184,0,.08));
  border: 1px solid rgba(255,184,0,.25);
  border-radius: var(--radius);
  padding: 14px 22px;
  flex-wrap: wrap;
}
.promo-left { display: flex; align-items: center; gap: 14px; }
.promo-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,184,0,.12); display: grid; place-items: center; }
.promo-title { font-weight: 800; font-size: 15px; color: var(--gold); }
.promo-sub { font-size: 12px; color: var(--muted); }
.promo-timer { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.promo-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.promo-right b { color: var(--gold); }
.promo-right input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; width: 130px; font-size: 12px;
}
.btn-apply {
  background: var(--gold); color: #16181f; border: none;
  border-radius: 8px; padding: 8px 14px; font-weight: 800; font-size: 12px;
  transition: filter .15s;
}
.btn-apply:hover { filter: brightness(1.1); }

/* ---------- Filter ---------- */
.main { padding: 18px 0 60px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; transition: all .15s;
}
.chip:hover { color: #fff; border-color: #3a4258; }
.chip.active { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
.search {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-size: 13px; width: 220px;
}
.search:focus { outline: none; border-color: var(--accent); }

/* ---------- Sections & cases ---------- */
.case-section { margin-bottom: 34px; }
.case-section h2 {
  font-size: 20px; font-weight: 800; margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px;
}
.case-section h2::before {
  content: ''; width: 4px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.case-section .sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.case-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  position: relative;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(255,122,61,.6); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.case-card .img-wrap {
  height: 120px; display: grid; place-items: center;
  position: relative;
}
.case-card .img-wrap img {
  max-height: 108px; max-width: 100%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.5));
  transition: transform .2s;
}
.case-card:hover .img-wrap img { transform: scale(1.06); }
.case-card .badge { position: absolute; top: 4px; right: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 6px; }
.case-card h3 { font-size: 14px; font-weight: 700; margin: 6px 0 2px; }
.case-card .meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.case-card .price {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  font-weight: 800; font-size: 13px; color: var(--gold);
}
.case-card .progress { margin-top: 8px; font-size: 10px; color: var(--muted); }
.case-card .progress .bar { height: 4px; background: var(--bg3); border-radius: 4px; margin-top: 3px; overflow: hidden; }
.case-card .progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 14, .82);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: popIn .22s;
}
.modal-sm { width: min(420px, 100%); }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: var(--bg3); color: var(--muted);
  border: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; transition: color .15s, background .15s;
}
.modal-close:hover { color: #fff; background: var(--accent2); }

.case-hero {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 26px 20px;
  background: linear-gradient(180deg, rgba(255,122,61,.10), transparent 70%);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.case-hero > img {
  width: 180px; height: 130px; object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.6));
}
.case-title-block { flex: 1; min-width: 200px; }
.case-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 800; }
.case-title-block h1 { font-size: 24px; font-weight: 800; margin: 4px 0; }
.case-count { font-size: 12px; color: var(--muted); }
.drop-range { font-size: 12px; color: var(--muted); margin-top: 6px; }
.drop-range b { color: var(--gold); }
.btn-open {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 12px;
  padding: 14px 22px; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(255, 92, 56, .35);
  transition: filter .15s, transform .15s;
}
.btn-open:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-open b { font-size: 17px; }

.case-contents { padding: 22px 26px; }
.contents-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.content-item {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 8px; text-align: center;
  transition: border-color .15s;
}
.content-item:hover { border-color: rgba(255,122,61,.5); }
.content-item img { height: 58px; max-width: 100%; object-fit: contain; margin-bottom: 6px; }
.content-item .ci-name { font-size: 10px; font-weight: 700; color: var(--text); line-height: 1.3; }
.content-item .ci-price { font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.content-item .ci-steam { font-size: 9px; color: var(--muted); margin-top: 1px; }

/* rarity colors */
.rarity-1 { color: #b0b6c9; }
.rarity-2 { color: #4f9cf7; }
.rarity-3 { color: #b06ff5; }
.rarity-4 { color: #ec5fa8; }
.rarity-5 { color: #ffb800; }

/* ---------- Roll ---------- */
.roll-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(180deg, #0c0e15, #16141d);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.roll-overlay.open { display: flex; }
.roll-viewport {
  width: min(860px, 92vw);
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0e1017;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 -30px 60px rgba(0,0,0,.5);
}
.roll-edge { position: absolute; top: 0; bottom: 0; width: 110px; z-index: 3; pointer-events: none; }
.roll-edge-l { left: 0; background: linear-gradient(90deg, rgba(12,14,21,1), transparent); }
.roll-edge-r { right: 0; background: linear-gradient(-90deg, rgba(12,14,21,1), transparent); }
.roll-light { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--gold); z-index: 4; box-shadow: 0 0 14px var(--gold); }
.roll-strip {
  display: flex; height: 190px;
  will-change: transform;
}
.roll-item {
  flex: 0 0 140px; height: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 35%, #222838, #14161f);
  border-right: 1px solid #22273b;
}
.roll-item img { height: 74px; }
.roll-item .ri-name { font-size: 11px; font-weight: 700; text-align: center; padding: 0 6px; line-height: 1.25; }
.roll-item .ri-price { font-size: 12px; font-weight: 800; color: var(--gold); }
.roll-info { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Win ---------- */
.win-overlay { z-index: 320; }
.win-card {
  text-align: center; position: relative;
  background: radial-gradient(circle at 50% 20%, #262b3d, #171a24 70%);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 46px;
  overflow: hidden;
  animation: popIn .3s;
  min-width: 320px;
}
.win-rays {
  position: absolute; inset: -60%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255,184,0,0), rgba(255,184,0,.12), rgba(255,184,0,0), rgba(255,122,61,.1), rgba(255,184,0,0));
  animation: spin 6s linear infinite;
}
.win-card img { position: relative; height: 150px; margin: 8px auto 16px; animation: popIn .4s .1s backwards; filter: drop-shadow(0 0 26px rgba(255,184,0,.35)); }
.win-name { position: relative; font-size: 20px; font-weight: 800; }
.win-skin { position: relative; color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.win-price { position: relative; font-size: 26px; font-weight: 800; color: var(--gold); }
.win-steam { position: relative; font-size: 12px; color: var(--muted); margin-top: 2px; }
.win-steam b { color: #7ea2d4; }
.btn-ok {
  position: relative; margin-top: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 26px; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(255,92,56,.35);
  transition: filter .15s, transform .15s;
}
.btn-ok:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ---------- Drawer (инвентарь) ---------- */
.drawer {
  position: fixed; top: 0; right: -480px; width: min(460px, 100%);
  height: 100vh; background: var(--panel); border-left: 1px solid var(--line);
  z-index: 250; transition: right .28s ease;
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.drawer.open { right: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.inv-grid { flex: 1; overflow-y: auto; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.inv-item { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; position: relative; }
.inv-item img { height: 58px; max-width: 100%; object-fit: contain; margin-bottom: 6px; }
.inv-item .inv-name { font-size: 10px; font-weight: 700; line-height: 1.3; }
.inv-item .inv-price { font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.inv-item .inv-steam { font-size: 9px; color: var(--muted); margin-top: 2px; }
.inv-item .inv-steam b { color: #7ea2d4; }
.inv-item .sell { position: absolute; top: 6px; right: 6px; background: var(--green); color: #0c1210; border: none; border-radius: 6px; font-size: 10px; font-weight: 800; padding: 3px 6px; opacity: 0; transition: opacity .15s; }
.inv-item:hover .sell { opacity: 1; }
.inv-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; }
.inv-empty p { font-size: 14px; line-height: 1.6; }

/* ---------- Add modal ---------- */
.add-sub { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.modal-sm { padding: 26px 26px 28px; }
.modal-sm h2 { font-size: 20px; }
.add-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-amount {
  background: var(--bg3); color: var(--gold); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; font-size: 17px; font-weight: 800;
  transition: all .15s;
}
.add-amount:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--panel2); border: 1px solid rgba(255,122,61,.5); color: #fff;
  border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 600;
  z-index: 400; opacity: 0; transition: all .3s; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Footer ---------- */
.footer { background: #101219; border-top: 1px solid var(--line); padding: 34px 0; text-align: center; }
.footer-logo { font-family: 'Russo One', sans-serif; font-size: 22px; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-text { color: var(--muted); font-size: 12px; max-width: 560px; margin: 0 auto 18px; line-height: 1.7; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: #5a6073; font-size: 11px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e3550; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .steam-btn span { display: none; }
  .promo-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Upgrade ---------- */
.upgrade-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 10px;
}
.upgrade-head h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.upgrade-head p { color: var(--muted); font-size: 12px; margin-bottom: 20px; max-width: 620px; }
.upgrade-layout { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 18px; }
.upg-col { min-width: 0; }
.upg-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.upg-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 380px; overflow-y: auto; }
.upg-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; text-align: center; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.upg-item:hover { transform: translateY(-2px); border-color: rgba(255,122,61,.5); }
.upg-item img { height: 50px; max-width: 100%; object-fit: contain; margin-bottom: 6px; }
.upg-item .upg-i-name { font-size: 10px; font-weight: 700; line-height: 1.3; }
.upg-item .upg-i-price { font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.upg-item .upg-i-steam { font-size: 9px; color: var(--muted); margin-top: 2px; }
.upg-item .upg-i-steam b { color: #7ea2d4; }
.upg-item.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,184,0,.25); }
.upg-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 30px 10px; line-height: 1.6; }

.upg-selected {
  border: 1px dashed var(--line); border-radius: 14px;
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px;
}
.upg-noselect { color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upg-card { text-align: center; }
.upg-card img { height: 120px; max-width: 100%; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.upg-card .uc-name { font-weight: 800; font-size: 15px; }
.upg-card .uc-price { color: var(--gold); font-weight: 800; font-size: 16px; margin-top: 4px; }
.upg-card .uc-steam { font-size: 11px; color: var(--muted); margin-top: 2px; }
.upg-card .uc-steam b { color: #7ea2d4; }

.upg-coefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.upg-coef {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 10px; text-align: center; cursor: pointer;
  transition: border-color .15s;
}
.upg-coef:hover { border-color: #3a4258; }
.upg-coef b { display: block; font-size: 18px; font-weight: 800; color: var(--text); }
.upg-coef span { font-size: 11px; color: var(--muted); }
.upg-coef.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,184,0,.2); }
.upg-info { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 16px; min-height: 30px; }
.upg-info b { color: var(--text); }
.upg-btn { width: 100%; justify-content: center; }
.upg-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.win-tag { position: relative; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; }
.win-tag.ok { color: var(--green); }
.win-tag.fail { color: var(--red); }

@media (max-width: 1000px) {
  .upgrade-layout { grid-template-columns: 1fr; }
  .upg-selected { min-height: 180px; }
}

/* ---------- Профиль / Steam (шапка) ---------- */
#userZone { display: flex; align-items: center; }
.profile-chip {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #1d2231, #171a26);
  border: 1px solid rgba(78, 160, 255, .35); border-radius: 12px;
  padding: 6px 12px 6px 6px;
  transition: border-color .15s, filter .15s;
}
.profile-chip:hover { border-color: #4e9dff; filter: brightness(1.1); }
.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 0 12px rgba(78,160,255,.35);
  text-transform: uppercase;
}
.profile-info { text-align: left; line-height: 1.25; }
.profile-info b { font-size: 13px; display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-level { font-size: 10px; color: var(--muted); }
.profile-xpbar { display: block; width: 90px; height: 3px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.profile-xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 3px; }

/* ---------- Steam-модалка ---------- */
.steam-modal { background: linear-gradient(180deg, #16223a, #141826); border-color: rgba(78,160,255,.35); }
.steam-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.steam-head svg { color: #66c0f4; }
.steam-head h2 { font-size: 20px; }
.steam-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 16px 0 8px; }
.steam-input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
.steam-input:focus { outline: none; border-color: #4e9dff; }
.steam-avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.steam-avatar {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px;
  cursor: pointer; transition: transform .12s, border-color .12s;
}
.steam-avatar:hover { transform: translateY(-2px); }
.steam-avatar.sel { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.steam-enter {
  margin-top: 20px; width: 100%;
  background: linear-gradient(180deg, #5aa9e6, #2f6ea8);
  color: #fff; border: none; border-radius: 10px;
  padding: 14px; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(47, 110, 168, .4);
  transition: filter .15s, transform .15s;
}
.steam-enter:hover { filter: brightness(1.12); transform: translateY(-2px); }
.steam-logout {
  margin-top: 10px; width: 100%; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 700;
  transition: color .15s, border-color .15s;
}
.steam-logout:hover { color: var(--red); border-color: var(--red); }

/* ---------- Апгрейд (upgrader-стиль) ---------- */
.upg-game {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}
.upg-zone { min-width: 0; }
.upg-zone-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); margin-bottom: 12px; text-align: center;
}
.upg-slot {
  border: 1px dashed var(--line); border-radius: 16px;
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(255,122,61,.05), transparent 70%);
}
.upg-slot .upg-card { width: 100%; }
.upg-slot.ready { border-color: rgba(70,210,124,.45); }
.upg-slot.fail-flash { animation: failShake .5s; border-color: var(--red); }
.upg-slot.win-flash { animation: winFlash .5s; border-color: var(--green); }
@keyframes failShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes winFlash { 0%,100% { box-shadow: 0 0 0 0 rgba(70,210,124,0); } 50% { box-shadow: 0 0 0 18px rgba(70,210,124,.25); } }

.upg-card img { height: 110px; max-width: 100%; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.55)); }
.upg-card .uc-name { font-weight: 800; font-size: 15px; line-height: 1.3; }
.upg-card .uc-price { color: var(--gold); font-weight: 800; font-size: 17px; margin-top: 5px; }
.upg-card .uc-chance { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--green); background: rgba(70,210,124,.12); border: 1px solid rgba(70,210,124,.4); border-radius: 999px; padding: 4px 12px; }
.upg-card .uc-chance.low { color: var(--red); background: rgba(255,79,79,.12); border-color: rgba(255,79,79,.4); }

/* колесо */
.upg-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.upg-wheel {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 1;
}
.wheel-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,61,.14), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}
.wheel-glow.ok { background: radial-gradient(circle, rgba(70,210,124,.3), transparent 70%); }
.wheel-glow.fail { background: radial-gradient(circle, rgba(255,79,79,.3), transparent 70%); }
.wheel-ticks {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: repeating-conic-gradient(#0000 0deg 2.5deg, rgba(255,255,255,.14) 2.5deg 3.4deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
}
.wheel-sector {
  position: absolute; inset: 9%;
  border-radius: 50%;
  background: conic-gradient(from 270deg,
    rgba(70,210,124,.90) 0deg, rgba(120,214,110,.80) 30deg, rgba(255,184,0,.75) 60deg,
    rgba(255,122,61,.60) 90deg, rgba(255,79,79,.55) 120deg,
    rgba(255,255,255,.05) 180deg 360deg);
  border: 2px solid #2c2f3b;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 24px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 24px));
  transition: filter .3s;
}
.wheel-sector.hide { background: rgba(255,255,255,.05); }
.wheel-sector.win { filter: drop-shadow(0 0 18px rgba(70,210,124,.75)); }
.wheel-sector.fail { filter: drop-shadow(0 0 18px rgba(255,79,79,.7)); }
.wheel-pointer {
  position: absolute; inset: 0; z-index: 5;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: transform .3s ease;
  pointer-events: none;
}
.wheel-pointer svg {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.6));
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 35%, #242833, #15171f 75%);
  border: 1px solid #333; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  z-index: 6;
  box-shadow: 0 8px 24px rgba(0,0,0,.5), inset 0 2px 10px rgba(255,255,255,.05);
}
.wheel-hub b { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.wheel-caption { font-size: 12px; color: var(--muted); min-height: 18px; text-align: center; }

/* пикер */
.upg-picker { margin-top: 6px; }
.upg-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.upg-tab {
  background: var(--bg2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700;
  transition: all .15s;
}
.upg-tab:hover { color: #fff; }
.upg-tab.active { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
.upg-target-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 290px; }
.upg-target {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px; cursor: pointer; text-align: left;
  transition: border-color .15s, transform .15s;
}
.upg-target:hover { transform: translateY(-2px); border-color: rgba(255,122,61,.5); }
.upg-target img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.upg-target .ut-info { flex: 1; min-width: 0; }
.upg-target .ut-name { font-size: 10px; font-weight: 700; line-height: 1.25; }
.upg-target .ut-price { font-size: 11px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.upg-target .ut-arrow { color: var(--green); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.upg-target.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(70,210,124,.25); }

.upg-unauth {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; text-align: center;
  padding: 30px 10px; line-height: 1.6;
}
.upg-unauth svg { color: #66c0f4; }
.upg-unauth b { color: var(--text); font-size: 14px; }
.upg-unauth .steam-btn { margin-top: 8px; }

/* нижняя панель апгрейда */
.upg-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px;
  flex-wrap: wrap;
}
.upg-info { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.upg-info b { color: var(--text); }
.btn-upgrade {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #ffe27a, #ffb800);
  color: #1c1c20; border: none; border-radius: 12px;
  padding: 15px 34px; font-size: 16px; font-weight: 800;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(255, 184, 0, .35);
  transition: filter .15s, transform .15s, box-shadow .2s;
}
.btn-upgrade:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 0 24px rgba(255, 184, 0, .55); }
.btn-upgrade:disabled { opacity: .45; cursor: not-allowed; }
.btn-upgrade.spinning { pointer-events: none; opacity: .6; }

@media (max-width: 1000px) {
  .upg-game { grid-template-columns: 1fr; }
  .upg-slot { min-height: 180px; }
  .upg-wheel-wrap { order: -1; }
}
/* ---------- MV активная навигация ---------- */
.main-nav a.active, .main-nav a.active:hover { color: var(--gold); }

/* ---------- Price sync ---------- */
.price-sync {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3); color: #7ea2d4;
  border: 1px solid rgba(78,160,255,.3); border-radius: 9px;
  padding: 7px 12px; font-size: 12px; font-weight: 700;
  transition: border-color .15s, color .15s;
}
.price-sync:hover { border-color: #4e9dff; color: #bfe0ff; }
.price-sync.busy { animation: pulse 1.6s infinite; }

/* ---------- Каталог ---------- */
.filter-chips .chip {
  background: var(--bg2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  transition: all .15s;
}
.filter-chips .chip:hover { color: #fff; }
.filter-chips .chip.active { background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
.cat-search input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 14px; width: min(320px, 100%); font-size: 13px;
}
.cat-search input:focus { outline: none; border-color: rgba(255,184,0,.5); }
.cat-info-fold { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
#catInfo { color: var(--muted); font-size: 12px; }
.btn-price-refresh {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2b6cb0, #22568f); color: #fff;
  border: none; border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 800;
  transition: filter .15s;
}
.btn-price-refresh:hover { filter: brightness(1.12); }
.btn-price-refresh:disabled { opacity: .55; cursor: not-allowed; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; text-align: center;
  transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(255,184,0,.45); }
.cat-img { height: 84px; max-width: 100%; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.cat-name { font-size: 12px; font-weight: 800; line-height: 1.35; }
.cat-wear { font-size: 10px; color: var(--muted); margin-top: 3px; }
.cat-price { font-size: 15px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.cat-sync-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  background: rgba(70,210,124,.15); color: var(--green);
  border: 1px solid rgba(70,210,124,.4); border-radius: 999px; padding: 2px 7px;
}
.cat-sync-badge.off { background: rgba(255,255,255,.07); color: var(--muted); border-color: var(--line); }
.cat-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
.rarity-1 { color: #8f97ad; }
.rarity-2 { color: #6fb3ff; }
.rarity-3 { color: #c39cff; }
.rarity-4 { color: #ff8fc9; }
.rarity-5 { color: #ffd35e; }

/* ---------- Магазин (стиль upgrader.vip) ---------- */
.shop-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.shop-head h2 { font-family: 'Russo One', sans-serif; font-size: 22px; }
.shop-head p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 520px; }
.shop-refresh { min-width: 0; box-shadow: 0 6px 18px rgba(255,122,61,.25); }
.shop-status {
  color: var(--muted); font-size: 12.5px; margin-bottom: 14px;
  padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.shop-price-filters { display: flex; align-items: center; gap: 8px; }
.shop-price-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.shop-price-filters input {
  width: 88px;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; font-size: 13px; font-weight: 600;
}
.shop-price-filters input:focus { outline: none; border-color: rgba(255,184,0,.5); }

/* Плитки, как у upgrader.vip */
.up-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 6px;
}
.up-item, .up-item-frame, .up-item-inner {
  border-radius: 6px;
}
.up-item { min-width: 0; cursor: pointer; }
.up-item-frame { padding: 2px; border-radius: 6px; transition: filter .15s, transform .15s; }
.up-item:hover .up-item-frame { filter: brightness(1.15); transform: translateY(-2px); }
.up-item-inner {
  position: relative;
  background: url('https://s3.upgrader.vip/cdn/fa/images/light-gray-logo.png'), linear-gradient(180deg, #1e1f23, #17181c);
  background-size: 66% 55%, cover; background-position: center; background-repeat: no-repeat;
  height: 96px; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.up-price-row {
  position: absolute; top: 4px; right: 5px; z-index: 3;
  display: flex; align-items: center; gap: 3px;
  background: linear-gradient(93deg, #fbd506 0%, #ffdd23 50%, #fbd506 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.up-price { font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.up-coin { width: 10px; height: 10px; flex: none; -webkit-text-fill-color: initial; }
.up-wear {
  position: absolute; top: 18px; right: 5px; z-index: 3;
  font-size: 8.5px; font-weight: 700; color: var(--muted);
}
.up-img {
  position: relative; z-index: 2;
  width: 72%; max-width: 88px; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5));
}
.up-label {
  position: absolute; left: 6px; right: 6px; bottom: 3px; z-index: 4;
  text-align: center; line-height: 1.15;
}
.up-weapon {
  display: block; font-size: 8.5px; font-weight: 600; color: #b7bcc9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-finish {
  display: block; font-size: 10.5px; font-weight: 800;
  background: linear-gradient(93deg, #fbd506 0%, #ffdd23 50%, #fbd506 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-buy {
  position: absolute; inset: 0; z-index: 5;
  display: none; align-items: center; justify-content: center;
  background: rgba(9,10,14,.62);
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase;
}
.up-item:hover .up-buy { display: flex; }

/* Модалка покупки */
.buy-modal { padding: 18px; text-align: center; }
.buy-card {
  position: relative;
  width: 100%; height: 150px; border-radius: 10px;
  background-color: var(--bg2); background-position: center; background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 14px;
}
.buy-card.r1 { border: 1px solid rgba(138,148,173,.5); }
.buy-card.r2 { border: 1px solid rgba(79,156,247,.5); }
.buy-card.r3 { border: 1px solid rgba(176,111,245,.5); }
.buy-card.r4 { border: 1px solid rgba(236,95,168,.5); }
.buy-card.r5 { border: 1px solid rgba(255,196,61,.65); box-shadow: 0 0 24px rgba(255,196,61,.25); }
.buy-name { margin-bottom: 6px; }
.buy-weapon { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.buy-finish { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.buy-wear { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255,184,0,.4); border-radius: 999px; padding: 2px 9px; }
.buy-price {
  font-family: 'Russo One', sans-serif; font-size: 20px; font-weight: 800;
  background: linear-gradient(93deg, #fbd506 0%, #ffdd23 50%, #fbd506 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0 16px;
}
.buy-accept { width: 100%; }

/* ---------- Профиль ---------- */
.prof-card {
  background: linear-gradient(180deg, #171a26, #12141e);
  border: 1px solid rgba(78,160,255,.25); border-radius: 16px;
  padding: 24px; margin-bottom: 20px;
}
.prof-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.prof-avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff;
  border: 3px solid rgba(78,160,255,.5); box-shadow: 0 0 22px rgba(78,160,255,.35);
}
.prof-head-info { flex: 1; min-width: 180px; }
.prof-name { font-family: 'Russo One', sans-serif; font-size: 22px; }
.prof-steamid { color: var(--muted); font-size: 12px; margin-top: 4px; font-family: monospace; }
.prof-level-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.prof-level-line b { color: var(--gold); font-size: 14px; }
.prof-xp { width: 140px; }
.prof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.prof-stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center;
}
.prof-stat span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.prof-stat b { font-size: 18px; font-weight: 800; }
.prof-stat b.gold { color: var(--gold); }
.prof-stat b.green { color: var(--green); }
.prof-stat b.red { color: var(--red); }
.prof-logout {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  min-width: 0; box-shadow: none;
  transition: color .15s, border-color .15s;
}
.prof-logout:hover { color: var(--red); border-color: var(--red); filter: none; transform: none; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.prof-panel {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.prof-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.prof-inv { flex: 1; max-height: 480px; overflow-y: auto; }
.prof-history { max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.hist-row {
  display: grid; grid-template-columns: 74px 74px 1fr auto;
  align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 12px;
}
.hist-time { color: var(--muted); font-family: monospace; font-size: 11px; }
.hist-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.hist-name { color: var(--text); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-amt { font-weight: 800; }
.hist-win .hist-label, .hist-win .hist-amt { color: var(--green); }
.hist-fail .hist-label { color: var(--red); }
.hist-fail .hist-amt { color: var(--red); }
.hist-sell .hist-label { color: #7ea2d4; }
.hist-sell .hist-amt { color: var(--gold); }
.hist-dep .hist-label { color: #4e9dff; }
.hist-dep .hist-amt { color: var(--gold); }
.prof-stat b.best-drop { font-size: 14px; line-height: 1.35; display: block; }
.prof-stat b.best-drop .muted { color: var(--muted); }
.prof-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 40px 10px; }
.prof-unauth {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 50px 20px; color: var(--muted); font-size: 14px;
  line-height: 1.6;
}
.prof-unauth b { color: var(--text); font-size: 18px; }
.prof-unauth .steam-btn { margin-top: 6px; }

@media (max-width: 900px) {
  .prof-grid { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 70px 70px 1fr auto; }
}
