/* BLOOD STORE — стили витрины */
:root {
  --bg: #121316;
  --bg2: #0d0e10;
  --panel: #17181b;
  --panel2: #1d1e21;
  --line: #26282c;
  --line2: #33363b;
  --red: #d4472b;
  --red2: #ff6a3d;
  --orange: #e2593a;
  --text: #e8e6e3;
  --muted: #8b8b95;
  --green: #5dd97c;
  --gold: #ffb84d;
  --radius: 10px;
  --topbar: rgba(18,19,22,.92);
  --overlay: rgba(0,0,0,.6);
  --pill-active-text: #ffd9cc;
  --btn-buy-text: #ffc4ae;
  --announce-text: #ffb4a0;
  --steam-tint: rgba(27,40,56,.25);
  --shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(212,71,43,.15);
}

/* ---------------- Светлая тема ---------------- */
html[data-theme="light"] {
  --bg: #f3f1ed;
  --bg2: #fbfaf8;
  --panel: #ffffff;
  --panel2: #f0ede7;
  --line: #ddd8cf;
  --line2: #c8c1b4;
  --red: #c03d22;
  --red2: #b5301a;
  --orange: #d04a2c;
  --text: #26211d;
  --muted: #7d766c;
  --green: #2f9e52;
  --gold: #b0770f;
  --topbar: rgba(251,250,248,.92);
  --overlay: rgba(30,25,20,.45);
  --pill-active-text: #8a2a12;
  --btn-buy-text: #a1361f;
  --announce-text: #9c3318;
  --steam-tint: rgba(42,71,94,.08);
  --shadow: 0 14px 34px rgba(60,40,20,.18), 0 0 0 1px rgba(192,61,34,.12);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* шумовая текстура */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

h1, h2, h3, .stencil {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.icon { display: inline-flex; vertical-align: middle; flex: none; }
.icon svg { display: block; }

/* ---------------- Шапка ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  height: 64px;
  justify-content: space-between;
  padding: 0 8px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Oswald', Arial, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .06em; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--red2); }
.nav { display: flex; gap: 24px; }
.nav-mob { display: none; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.btn-cart:hover { border-color: var(--red); background: rgba(212,71,43,.1); }
.cart-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* объявление */
.announce {
  background: linear-gradient(90deg, rgba(212,71,43,.16), rgba(212,71,43,.05));
  border-bottom: 1px solid rgba(212,71,43,.3);
  color: var(--announce-text);
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}

/* ---------------- Герой ---------------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Баннер: картинка с плавным затуханием краёв, чтобы граница не была видна */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/img/banner.jpg') center / cover no-repeat;
  opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse 78% 115% at 50% 42%, #000 42%, rgba(0,0,0,.5) 64%, transparent 88%);
  mask-image: radial-gradient(ellipse 78% 115% at 50% 42%, #000 42%, rgba(0,0,0,.5) 64%, transparent 88%);
  pointer-events: none;
}
html[data-theme="light"] .hero-bg { opacity: .3; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 42%, transparent) 42%, color-mix(in srgb, var(--bg) 82%, transparent) 78%, var(--bg) 100%),
    radial-gradient(600px 300px at 50% 0%, rgba(212,71,43,.16), transparent 70%),
    radial-gradient(400px 200px at 15% 100%, rgba(226,89,58,.08), transparent 70%),
    radial-gradient(400px 200px at 85% 100%, rgba(138,31,31,.1), transparent 70%);
}
html[data-theme="light"] .hero::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 45%, color-mix(in srgb, var(--bg) 90%, transparent) 80%, var(--bg) 100%),
    radial-gradient(600px 300px at 50% 0%, rgba(192,61,34,.08), transparent 70%);
}
.hero h1 {
  position: relative;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
}
.hero h1 span {
  background: linear-gradient(180deg, #ff7a4d, #b3220f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { position: relative; color: var(--muted); font-size: 17px; max-width: 560px; margin: 14px auto 0; }
.hero-actions { position: relative; margin-top: 28px; display: flex; gap: 12px; justify-content: center; }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: filter .15s, transform .05s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--red2), #a12a15); color: #fff; }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--red); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------- Инфо-полоса ---------------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.perk {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.perk .icon { color: var(--red2); }
.perk b { display: block; font-size: 14px; }
.perk span { color: var(--muted); font-size: 12.5px; }

/* ---------------- Каталог ---------------- */
.section-title {
  display: flex; align-items: center; gap: 14px;
  margin: 34px 0 18px;
}
.section-title h2 { font-size: 26px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
}
.pill:hover { color: var(--text); border-color: var(--line2); }
.pill.active {
  background: linear-gradient(135deg, rgba(212,71,43,.25), rgba(212,71,43,.1));
  border-color: var(--red);
  color: var(--pill-active-text);
}
.toolbar-spacer { flex: 1; }
.search {
  position: relative;
}
.search input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px 9px 38px;
  width: 220px;
  font-size: 13.5px;
  outline: none;
}
.search input:focus { border-color: var(--red); }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
select.sort {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
}

/* ---------------- Карточки товаров ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  padding-bottom: 60px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  z-index: 2;
  pointer-events: none;
  transition: border-color .15s;
}
.card::before { top: 6px; left: 6px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); opacity: 0; }
.card::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); opacity: 0; }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-img {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
/* картинка показывается целиком (contain), а не обрезается */
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, var(--red2), #a12a15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 3px 8px;
}
.badge.gold { background: linear-gradient(135deg, #ffc94d, #b07a1f); color: #1c1503; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.card-name { font-family: 'Oswald', Arial, sans-serif; font-size: 17px; letter-spacing: .02em; }
.card-desc {
  color: var(--muted);
  font-size: 12.5px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: 'Oswald', Arial, sans-serif; font-size: 20px; font-weight: 700; color: var(--red2); }
.price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.btn-buy {
  background: linear-gradient(135deg, rgba(212,71,43,.2), rgba(212,71,43,.08));
  border: 1px solid rgba(212,71,43,.55);
  color: var(--btn-buy-text);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
}
.btn-buy:hover { background: var(--red); color: #fff; border-color: var(--red); }
.stock-note { color: var(--gold); font-size: 11.5px; }

/* ---------------- Корзина ---------------- */
.overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 90;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(440px, 100vw);
  background: var(--bg2);
  border-left: 1px solid var(--line);
  z-index: 100;
  transform: translateX(102%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(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: 19px; display: flex; align-items: center; gap: 10px; }
.drawer-close { background: none; border: none; color: var(--muted); padding: 4px; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }

.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.cart-empty .icon { color: var(--line2); }

.cart-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}
.cart-item img { width: 58px; height: 44px; object-fit: cover; border-radius: 5px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { color: var(--red2); font-size: 13px; font-weight: 700; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button {
  width: 24px; height: 24px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty button:hover { border-color: var(--red); color: var(--red2); }
.qty span { min-width: 26px; text-align: center; font-size: 13.5px; font-weight: 700; }
.ci-del { background: none; border: none; color: var(--muted); padding: 4px; }
.ci-del:hover { color: var(--red2); }
.ci-var {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(212,71,43,.14);
  border: 1px solid rgba(212,71,43,.4);
  color: var(--red2);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}
/* Сервер выдачи в корзине */
.ci-server {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 11.5px;
  padding: 6px 8px;
  max-width: 160px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}
.ci-server:focus { border-color: var(--red); }
.ci-server-tag {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
}
/* Сервер в заказе (кабинет) */
.oi-server {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--red2);
  border: 1px solid rgba(212,71,43,.35); background: rgba(212,71,43,.1);
  border-radius: 8px; padding: 2px 8px; white-space: nowrap;
}
.oi-server-tag {
  font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; white-space: nowrap;
}
.from-price {
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.promo-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo-row input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  text-transform: uppercase;
}
.promo-row input:focus { border-color: var(--red); }
.promo-msg { font-size: 12px; min-height: 16px; margin-bottom: 6px; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: var(--red2); }

.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; padding: 3px 0; }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 16px; padding-top: 8px; }
.sum-row.total b { color: var(--red2); font-family: 'Oswald', Arial, sans-serif; font-size: 20px; }

.checkout-fields { display: grid; gap: 10px; margin: 14px 0; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.field input:focus { border-color: var(--red); }
.field textarea, .field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}
.field textarea:focus, .field select:focus { border-color: var(--red); }
select option { background: var(--panel); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
}

.methods { display: grid; gap: 8px; margin-bottom: 16px; }
.method {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s;
}
.method:hover { border-color: var(--line2); }
.method.selected { border-color: var(--red); background: rgba(212,71,43,.08); }
.method .radio {
  width: 16px; height: 16px;
  border: 2px solid var(--line2);
  border-radius: 50%;
  flex: none;
  transition: all .15s;
}
.method.selected .radio { border-color: var(--red2); box-shadow: inset 0 0 0 3px var(--bg2), inset 0 0 0 9px var(--red2); }
.method small { color: var(--muted); margin-left: auto; font-size: 11.5px; }
.methods-empty { color: var(--gold); font-size: 13px; background: rgba(255,184,77,.08); border: 1px solid rgba(255,184,77,.3); border-radius: 8px; padding: 10px 14px; }

.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--panel); }

/* ---------------- Карточка товара (модалка) ---------------- */
body.pmodal-open { overflow: hidden; }
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.pmodal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(3px);
}
.pmodal-box {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: pmodalIn .18s ease;
}
@keyframes pmodalIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.pmodal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s;
}
.pmodal-close:hover { color: var(--text); border-color: var(--red); }

.pm-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  align-items: start;
}
.pm-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { min-width: 0; }
.pm-info h2 { font-size: 24px; margin: 2px 0 8px; }
.pm-desc { color: var(--muted); font-size: 13.5px; }
.pm-label {
  margin: 18px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.pm-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-var {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 118px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.pm-var:hover { border-color: var(--red); }
.pm-var.active {
  border-color: var(--red);
  background: rgba(212,71,43,.12);
  box-shadow: 0 0 0 1px var(--red);
}
.pm-var span { color: var(--red2); font-weight: 700; font-size: 12.5px; }
.pm-buyrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pm-qty .qty button { width: 32px; height: 32px; font-size: 16px; }
.pm-qty .qty span { min-width: 34px; font-size: 15px; }
.pm-total { margin-left: auto; text-align: right; }
.pm-total small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pm-total b { font-family: 'Oswald', Arial, sans-serif; font-size: 22px; color: var(--red2); }
.pm-stock { margin: 14px 0; color: var(--gold); font-size: 12.5px; }
.pm-add { width: 100%; padding: 13px; font-size: 15px; }
.pm-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
}
.pm-note .icon { color: var(--green); }

/* ---------------- Страница заказа ---------------- */
.order-page { max-width: 640px; margin: 60px auto 80px; padding: 0 20px; position: relative; z-index: 2; }
.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.order-id { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.order-status-line {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 24px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 24px;
}
.order-status-line .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted);
}
.order-status-line.s-new .dot { background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 1.6s infinite; }
.order-status-line.s-paid .dot, .order-status-line.s-delivered .dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.order-status-line.s-cancelled .dot { background: var(--red2); }
@keyframes pulse { 50% { opacity: .4; } }

.timeline { display: flex; align-items: center; margin: 22px 0 26px; }
.tl-step { flex: 1; text-align: center; position: relative; color: var(--muted); font-size: 12px; }
.tl-step::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--panel2);
  border: 2px solid var(--line2);
  position: relative;
  z-index: 2;
}
.tl-step::after {
  content: '';
  position: absolute;
  top: 6px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line2);
}
.tl-step:first-child::after { display: none; }
.tl-step.done { color: var(--text); }
.tl-step.done::before { background: var(--green); border-color: var(--green); }
.tl-step.done::after { background: var(--green); }

.order-items { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.oi-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.oi-row:last-child { border-bottom: none; }
.oi-row .ok { color: var(--green); }
.oi-row .wait { color: var(--muted); }
.order-total { display: flex; justify-content: space-between; align-items: center; font-family: 'Oswald', Arial, sans-serif; font-size: 18px; }
.order-total b { color: var(--red2); font-size: 24px; }
.order-back { margin-top: 22px; text-align: center; }
.order-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ---------------- Внутренние страницы (вайп / колесо / статистика / кабинет) ---------------- */
.page-hero {
  position: relative;
  padding: 52px 0 42px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 260px at 50% 0%, rgba(212,71,43,.16), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg) 96%);
}
.page-hero h1 { position: relative; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.page-hero h1 span {
  background: linear-gradient(180deg, #ff7a4d, #b3220f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p { position: relative; color: var(--muted); font-size: 15.5px; max-width: 620px; margin: 12px auto 0; }

.page-wrap { max-width: 920px; margin: 0 auto; padding: 28px 20px 70px; position: relative; z-index: 2; }
.page-wrap.wide { max-width: 1100px; }

.page-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Обратный отсчёт */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 10px; }
.cd-cell {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 12px;
  min-width: 92px;
  padding: 16px 12px 12px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.cd-num {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--red2);
  font-variant-numeric: tabular-nums;
}
.cd-cap { margin-top: 7px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.cd-sep { align-self: center; font-family: 'Oswald', Arial, sans-serif; font-size: 30px; color: var(--line2); }

/* Вайп-календарь */
.wipe-section-title { margin: 30px 0 14px; font-size: 20px; }
.wipe-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.wipe-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.wipe-row:last-child { border-bottom: none; }
.wipe-row .wd { font-family: 'Oswald', Arial, sans-serif; font-size: 15px; letter-spacing: .03em; min-width: 200px; }
.wipe-row .wd small { display: block; font-family: 'Inter', Arial, sans-serif; color: var(--muted); font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.wipe-row.past { opacity: .5; }
.pill-soft {
  margin-left: auto;
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--muted);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-soft.next { color: var(--green); border-color: rgba(93,217,124,.4); background: rgba(93,217,124,.08); }
.pill-soft.soon { color: var(--gold); border-color: rgba(255,184,77,.4); background: rgba(255,184,77,.08); }
.pill-soft.done { color: var(--muted); }
.wipe-note {
  margin-top: 24px;
  background: var(--panel);
  border: 1px dashed var(--line2);
  border-radius: 10px;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.wipe-note .icon { color: var(--gold); margin-top: 2px; }

/* Вайп-блок */
.wb-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  overflow: hidden;
  margin-top: 30px;
}
.wb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% 0%, rgba(212,71,43,.16), transparent 72%);
  pointer-events: none;
}
.wb-card > * { position: relative; }
.wb-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.wb-server { font-family: 'Oswald', Arial, sans-serif; font-size: clamp(26px, 4vw, 38px); margin-top: 6px; }
.wb-text { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 15px; }
.wb-time { margin-top: 22px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }

/* Колесо фортуны */
.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}
.wheel-stage { text-align: center; }
.wheel-wrap {
  position: relative;
  width: min(430px, 92vw);
  aspect-ratio: 1;
  margin: 8px auto 0;
}
.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid var(--line2);
  box-shadow: 0 0 0 6px var(--panel), 0 20px 50px rgba(0,0,0,.5);
  transition: transform 3.6s cubic-bezier(.15,.6,.1,1);
  will-change: transform;
  overflow: hidden;
}
.wheel-seg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  max-width: 46%;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--red2);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 4;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}
.wheel-controls { margin: 22px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wheel-meta { color: var(--muted); font-size: 13px; }
.wheel-meta b { color: var(--text); }
.win-card {
  margin: 18px auto 0;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(93,217,124,.16), rgba(93,217,124,.05));
  border: 1px solid rgba(93,217,124,.45);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  animation: slideIn .25s ease;
}
.win-card b { display: block; font-family: 'Oswald', Arial, sans-serif; font-size: 18px; margin: 6px 0 2px; color: var(--green); }
.win-card small { color: var(--muted); font-size: 12px; }
.win-card .promo-code {
  display: inline-block;
  margin-top: 8px;
  background: var(--panel2);
  border: 1px dashed var(--line2);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
}
.side-title { font-size: 16px; margin: 4px 0 12px; }
.side-block { margin-bottom: 22px; }
.prize-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prize-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.prize-item:last-child { border-bottom: none; }
.prize-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; border: 1px solid rgba(255,255,255,.2); }
.prize-chance { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.spin-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.spin-row:last-child { border-bottom: none; }
.spin-row b { color: var(--text); font-weight: 600; }
.spin-row .won { color: var(--green); }
.spin-row .lost { opacity: .7; }
.spin-row time { white-space: nowrap; font-size: 11.5px; }

/* Статистика */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.stat-card > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.stat-card b {
  display: block;
  margin-top: 6px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}
.stat-card b small { font-size: 14px; color: var(--muted); font-family: 'Inter', Arial, sans-serif; font-weight: 400; }
.stat-card.accent b { color: var(--red2); }
.stat-card.green b { color: var(--green); }
.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.top-list, .recent-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.top-row, .recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  min-height: 52px;
}
.top-row:last-child, .recent-row:last-child { border-bottom: none; }
.top-row .rank { font-family: 'Oswald', Arial, sans-serif; color: var(--muted); width: 22px; text-align: center; flex: none; }
.top-row:nth-child(1) .rank { color: var(--gold); }
.top-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.top-row .t-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex: none;
}
.top-row .t-sum, .recent-row .r-sum { margin-left: auto; color: var(--red2); font-weight: 700; white-space: nowrap; }
.top-row .t-info, .recent-row .r-info { min-width: 0; }
.top-row .t-info b, .recent-row .r-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-row .t-info small, .recent-row .r-info small { color: var(--muted); font-size: 11.5px; }
.recent-row .r-item { font-weight: 600; }
.recent-row .r-when { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.online-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s infinite;
  margin-right: 7px;
}
.online-dot.off { background: var(--muted); box-shadow: none; animation: none; }

/* Личный кабинет */
.acc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.acc-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  position: sticky;
  top: 84px;
}
.acc-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .15s, color .15s;
}
.acc-tab:hover { background: var(--panel2); color: var(--text); }
.acc-tab.active { background: rgba(212,71,43,.14); color: var(--pill-active-text); }
.acc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.acc-card h3 { font-size: 17px; margin-bottom: 14px; }
.acc-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-profile img, .acc-ava {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel2);
  border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex: none;
}
.acc-profile .acc-nick { font-family: 'Oswald', Arial, sans-serif; font-size: 20px; }
.acc-profile .acc-steamid { color: var(--muted); font-size: 12px; font-family: monospace; }
.acc-balance { font-family: 'Oswald', Arial, sans-serif; font-size: 30px; color: var(--green); }
.acc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.acc-nums .cell { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.acc-nums .cell small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.acc-nums .cell b { font-family: 'Oswald', Arial, sans-serif; font-size: 19px; }
.acc-order {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg2);
}
.acc-order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.acc-order-head .oid { font-family: 'Oswald', Arial, sans-serif; font-size: 15px; color: var(--text); letter-spacing: .04em; }
.acc-order-head .o-sum { margin-left: auto; color: var(--red2); font-weight: 700; font-size: 14px; }
.acc-order .oi-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; color: var(--muted); }
.acc-order .oi-line .ok { color: var(--green); }
.acc-order .oi-line .wait { opacity: .75; }
.st { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.st-new { background: rgba(255,184,77,.12); color: var(--gold); border: 1px solid rgba(255,184,77,.4); }
.st-paid { background: rgba(93,217,124,.1); color: var(--green); border: 1px solid rgba(93,217,124,.35); }
.st-delivered { background: rgba(93,217,124,.16); color: var(--green); border: 1px solid rgba(93,217,124,.5); }
.st-cancelled { background: rgba(212,71,43,.12); color: var(--red2); border: 1px solid rgba(212,71,43,.4); }
.acc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; color: var(--muted); }
.acc-row b { color: var(--text); }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.amount-chips button {
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s;
}
.amount-chips button:hover { border-color: var(--red); }
.amount-chips button.active {
  border-color: var(--red);
  background: rgba(212,71,43,.12);
  color: var(--pill-active-text);
}
.topup-box input.amount-input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 15px;
  outline: none;
}
.topup-box input.amount-input:focus { border-color: var(--red); }
.topup-hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.empty-note { color: var(--muted); font-size: 13.5px; padding: 18px 0; text-align: center; }

/* ---------------- Футер ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 13px;
}
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.socials { display: flex; gap: 10px; }
.socials a {
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  transition: border-color .15s, color .15s;
}
.socials a:hover { border-color: var(--red); color: var(--text); }
.disclaimer { margin-top: 14px; font-size: 11.5px; color: #5d5d66; }

/* ---------------- Аккаунт Steam ---------------- */
.btn-steam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2a475e, #1b2838);
  border: 1px solid #3d6c8d;
  color: #c7d5e0;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: filter .15s, border-color .15s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-steam:hover { filter: brightness(1.25); border-color: #66c0f1; color: #fff; }
.btn-steam .icon { color: #66c0f1; }
.btn-steam.sm { padding: 8px 16px; font-size: 13px; }

.user-zone { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 22px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s;
}
.user-chip:hover { border-color: var(--red); }
.user-chip img {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line);
  object-fit: cover;
}
.user-chip .uc-ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.user-chip .uc-name { font-size: 13px; font-weight: 600; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-bal {
  background: rgba(93,217,124,.12);
  border: 1px solid rgba(93,217,124,.35);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.user-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  min-width: 210px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  display: none;
  z-index: 60;
}
.user-zone.open .user-menu { display: block; }
.user-menu .um-head { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .um-head b { font-size: 13.5px; display: block; }
.user-menu .um-head span { color: var(--muted); font-size: 11px; font-family: monospace; }
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  transition: all .12s;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(212,71,43,.12); color: var(--text); }

.login-prompt {
  text-align: center;
  padding: 26px 16px 20px;
  border: 1px dashed var(--line2);
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--steam-tint);
}
.login-prompt p { color: var(--muted); font-size: 13px; margin: 10px 0 16px; }
.login-prompt .icon-big { color: #66c0f1; }
.account-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--steam-tint);
  border: 1px solid rgba(102,192,240,.35);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.account-line img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.account-line b { font-size: 13px; }
.account-line small { display: block; color: var(--muted); font-size: 11px; font-family: monospace; }

/* ---------------- Переключатель темы ---------------- */
.theme-toggle {
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, border-color .15s, transform .3s;
  flex: none;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); transform: rotate(18deg); }

/* ---------------- Гирлянда и снег ---------------- */
.garland {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 46px;
  pointer-events: none;
  z-index: 49;
  overflow: hidden;
  color: var(--line2);
}
.garland svg { width: 100%; height: 100%; display: block; }
.garland .bulb {
  animation: garlandBlink 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 5px currentColor);
}
@keyframes garlandBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

/* ---------------- Тосты ---------------- */
.toasts {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: slideIn .2s ease;
  max-width: 340px;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red2); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

/* ---------------- Адаптив ---------------- */
@media (max-width: 960px) {
  .nav { gap: 14px; }
  .nav > a { font-size: 13px; }
  .nav-drop-btn { padding: 8px 12px; font-size: 13px; }
  .wheel-layout { grid-template-columns: 1fr; }
  .stat-cols { grid-template-columns: 1fr; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .nav > a { display: none; }
  .nav-mob { display: block; }
  .nav-drop-menu { min-width: 190px; }
}
@media (max-width: 760px) {
  .topbar-in { gap: 12px; }
  .perks { grid-template-columns: 1fr; }
  .toolbar .search input { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .user-chip .uc-name { display: none; }
  .hero { padding: 48px 0 40px; }
  .pm-grid { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .pm-media { aspect-ratio: 16 / 9; }
  .pmodal { padding: 12px 8px; }
  .cd-cell { min-width: 74px; padding: 12px 8px 10px; }
  .cd-num { font-size: 30px; }
  .wipe-row { flex-wrap: wrap; gap: 8px; }
  .wipe-row .wd { min-width: 0; flex: 1; }
  .pill-soft { margin-left: 0; }
  .wb-card { padding: 26px 18px; }
}

/* Вайп-блок — доступные после вайпа товары */
.wb-items { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wb-items-head { margin-bottom: 14px; }
.wb-items-title { font-family: 'Oswald', Arial, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .04em; margin-bottom: 4px; }
.wb-items-desc { color: var(--muted); font-size: 13px; }
.wb-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.wb-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wb-item-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg2);
}
.wb-item-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wb-item-name { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-item-price { font-family: 'Oswald', Arial, sans-serif; font-size: 15px; color: var(--red2); }
.wb-item-btn { margin-top: auto; padding: 8px 14px; font-size: 13px; }
@media (max-width: 860px) {
  .wb-items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Вайп-блок — разблокировка предметов после вайпа */
.wbl-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wbl-head { text-align: center; padding: 6px 0 18px; }
.wbl-head h2 { font-family: 'Oswald', Arial, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.wbl-head p { color: var(--muted); font-size: 13px; }
.wbl-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.wbl-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; text-align: center; }
.wbl-stat .v { display: block; font-family: 'Oswald', Arial, sans-serif; font-size: 22px; font-weight: 700; color: #ffaa33; margin-bottom: 4px; }
.wbl-stat.unlocked .v { color: #4caf50; }
.wbl-stat.locked .v { color: #f44336; }
.wbl-stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.wbl-progress { height: 8px; background: var(--panel); border-radius: 6px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); }
.wbl-progress-bar { height: 100%; background: linear-gradient(90deg, #ffaa33, #4caf50); border-radius: 6px; transition: width .5s ease; }
.wbl-categories { display: flex; flex-direction: column; gap: 14px; }
.wbl-cat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.wbl-cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 6px; }
.wbl-cat-title { font-size: 15px; font-weight: 700; color: #ffaa33; }
.wbl-cat-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wbl-cat-count { font-size: 11px; color: var(--muted); }
.wbl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.wbl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px; transition: .2s; }
.wbl-item.unlocked { border-color: rgba(76,175,80,.35); background: rgba(76,175,80,.05); }
.wbl-item.locked { border-color: rgba(244,67,54,.2); }
.wbl-item-icon { width: 36px; height: 36px; border-radius: 6px; background: #0e0e0e; flex-shrink: 0; background-size: contain; background-repeat: no-repeat; background-position: center; filter: grayscale(60%); }
.wbl-item.unlocked .wbl-item-icon { filter: none; }
.wbl-item-info { min-width: 0; flex: 1; }
.wbl-item-name { font-size: 12.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbl-item-status { font-size: 11px; color: #f44336; font-weight: 600; margin-top: 2px; }
.wbl-item.unlocked .wbl-item-status { color: #4caf50; }
.wbl-update { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 16px; }
.wbl-loading, .wbl-empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 14px; }
.wbl-loading .spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid rgba(255,140,0,.15); border-top-color: #ffaa33; border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .wbl-items { grid-template-columns: 1fr 1fr; gap: 6px; }
  .wbl-item { padding: 6px 8px; gap: 8px; }
  .wbl-item-icon { width: 30px; height: 30px; }
  .wbl-item-name { font-size: 11.5px; }
  .wbl-item-status { font-size: 10px; }
}

/* Статистика игроков — топ, категории, карточка игрока (в стиле магазина) */
.st-header { text-align: center; padding: 8px 0 18px; }
.st-header h2 { font-family: 'Oswald', Arial, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.st-header p { color: var(--muted); font-size: 13px; }
.st-servers { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; justify-content: center; }
.st-server-btn {
  padding: 8px 22px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); cursor: pointer; transition: .2s;
  font-family: 'Oswald', Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.st-server-btn:hover { border-color: var(--red); color: var(--red2); }
.st-server-btn.active {
  background: linear-gradient(135deg, var(--red2), #a12a15);
  border-color: var(--red2); color: #fff;
  box-shadow: 0 6px 18px rgba(212,71,43,.25);
}
.st-cats {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin-bottom: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; justify-content: center;
}
.st-cat {
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel2);
  color: var(--muted); cursor: pointer; transition: .2s;
  font-size: 12.5px; font-weight: 600;
}
.st-cat:hover { border-color: var(--red); color: var(--text); }
.st-cat.active { background: linear-gradient(135deg, var(--red2), #a12a15); border-color: var(--red2); color: #fff; }
.st-cat .st-cnt { font-size: 10px; opacity: .75; margin-left: 5px; }
.st-update { text-align: right; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.st-table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.st-table-head {
  display: grid; grid-template-columns: 56px 1fr 140px; padding: 13px 18px;
  background: var(--panel2); color: var(--muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}
.st-table-body { max-height: 540px; overflow-y: auto; }
.st-table-body::-webkit-scrollbar { width: 8px; }
.st-table-body::-webkit-scrollbar-track { background: var(--bg2); }
.st-table-body::-webkit-scrollbar-thumb { background: var(--red); border-radius: 8px; }
.st-row { display: grid; grid-template-columns: 56px 1fr 140px; padding: 11px 18px; border-bottom: 1px solid var(--line); align-items: center; transition: .15s; }
.st-row:last-child { border-bottom: none; }
.st-row:hover { background: rgba(212,71,43,.07); }
.st-rank { font-family: 'Oswald', Arial, sans-serif; font-weight: 600; font-size: 15px; color: var(--muted); }
.st-rank.gold { color: #ffd166; }
.st-rank.silver { color: #c9ccd1; }
.st-rank.bronze { color: #cd7f32; }
.st-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-avatar {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: var(--panel2); border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-name { color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name:hover { color: var(--red2); }
.st-value { font-family: 'Oswald', Arial, sans-serif; font-weight: 600; color: var(--red2); text-align: right; font-size: 15px; }
.st-search { display: flex; gap: 10px; margin-top: 14px; }
.st-search input {
  flex: 1; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 13.5px; outline: none; transition: .2s;
}
.st-search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,71,43,.12); }
.st-search input::placeholder { color: var(--muted); }
.st-search button {
  padding: 12px 24px; background: linear-gradient(135deg, var(--red2), #a12a15);
  border: none; border-radius: 10px; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s;
}
.st-search button:hover { filter: brightness(1.12); }
.st-player-card { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: none; }
.st-player-card.show { display: block; }
.st-player-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.st-player-avatar-big {
  width: 66px; height: 66px; border-radius: 14px; overflow: hidden;
  background: var(--panel2); border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px;
}
.st-player-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.st-player-meta { min-width: 0; }
.st-player-name-big { font-family: 'Oswald', Arial, sans-serif; font-size: 21px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-player-id { color: var(--muted); font-size: 12px; font-family: ui-monospace, Consolas, monospace; margin-top: 2px; }
.st-player-server { color: var(--muted); font-size: 12px; margin-top: 4px; }
.st-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.st-stat-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; }
.st-stat-item .v { display: block; font-family: 'Oswald', Arial, sans-serif; font-size: 18px; font-weight: 600; color: var(--red2); margin-bottom: 4px; }
.st-stat-item .l { font-size: 11px; color: var(--muted); }
.st-close-card { margin-top: 14px; text-align: center; }
.st-close-card button {
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 20px; border-radius: 10px; cursor: pointer; font-size: 12.5px; transition: .2s;
}
.st-close-card button:hover { color: var(--red2); border-color: var(--red); }
.st-loading, .st-empty { text-align: center; color: var(--muted); padding: 50px 16px; font-size: 14px; }
.st-loading .st-spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 3px solid rgba(212,71,43,.2); border-top-color: var(--red2);
  border-radius: 50%; animation: st-spin .8s linear infinite; margin-bottom: 12px;
}
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .st-table-head, .st-row { grid-template-columns: 40px 1fr 90px; padding: 10px 12px; }
  .st-name { font-size: 13px; }
  .st-value { font-size: 13px; }
  .st-player-avatar-big { width: 54px; height: 54px; font-size: 18px; }
  .st-player-name-big { font-size: 17px; }
  .st-search { flex-direction: column; }
}

/* --- Шапка: выпадающее меню + поддержка --- */
/* Выпадающее меню в шапке */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: .2s; white-space: nowrap;
}
.nav-drop-btn:hover { border-color: var(--red); color: var(--red2); }
.nav-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 60;
}
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 13.5px; font-weight: 500; transition: .15s; white-space: nowrap; }
.nav-drop-menu a:hover { background: rgba(212,71,43,.1); color: var(--red2); }
@media (max-width: 760px) {
  .nav-drop-menu { right: auto; left: 0; }
}

/* Поддержка — обращения и переписка */
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: 1fr; } }
.sup-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; margin-bottom: 18px;
}
.sup-card h3 { font-family: 'Oswald', Arial, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: .03em; margin-bottom: 14px; }
.sup-tickets { display: flex; flex-direction: column; gap: 8px; }
.sup-ticket {
  text-align: left; width: 100%; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; color: var(--text); transition: .2s; font-family: inherit;
}
.sup-ticket:hover { border-color: var(--red); background: rgba(212,71,43,.06); }
.sup-ticket-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.sup-ticket-subject { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-ticket-meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.sup-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.sup-badge.st-open { background: rgba(255,180,77,.14); color: #ffb84d; }
.sup-badge.st-answered { background: rgba(93,217,124,.14); color: #5dd97c; }
.sup-badge.st-closed { background: rgba(139,139,149,.16); color: var(--muted); }
.sup-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sup-chat-title { font-weight: 700; font-size: 15px; }
.sup-chat-meta { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.sup-msgs { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.sup-msgs::-webkit-scrollbar { width: 7px; }
.sup-msgs::-webkit-scrollbar-track { background: var(--bg2); }
.sup-msgs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.sup-msg { border-radius: 12px; padding: 11px 13px; max-width: 88%; }
.sup-msg.from-user { background: var(--panel2); border: 1px solid var(--line); align-self: flex-start; }
.sup-msg.from-admin { background: rgba(212,71,43,.09); border: 1px solid rgba(212,71,43,.28); align-self: flex-end; }
.sup-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.sup-msg-head span { color: var(--muted); font-size: 11px; }
.sup-msg-body { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.sup-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sup-reply textarea {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-size: 13.5px; font-family: inherit; resize: vertical; outline: none;
}
.sup-reply textarea:focus { border-color: var(--red); }
.sup-reply button { align-self: flex-end; }
.sup-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sup-faq-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sup-faq-item b { font-size: 13.5px; color: var(--red2); }
.sup-faq-item p { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }

/* ==========================================================================
   Восстановленные стили: Live Drop, колесо, результат прокрута, карточка
   товара, карточки серверов, вайп-блок, служебные элементы
   ========================================================================== */

/* ---------- Служебное ---------- */
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; font-size: 14px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.arrow { color: var(--muted); margin: 0 4px; }
.btn-block { width: 100%; display: flex; justify-content: center; }
.foot-policy { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-policy a { color: var(--muted); font-size: 12.5px; transition: .2s; }
.foot-policy a:hover { color: var(--red2); }

/* ---------- Live Drop ---------- */
.ld-strip {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.ld-label {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-family: 'Oswald', Arial, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red2);
  padding: 0 14px;
}
.ld-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 8px var(--red2); animation: ld-pulse 1.6s ease-in-out infinite; }
@keyframes ld-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ld-viewport { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ld-track { display: flex; gap: 10px; width: max-content; animation: ld-scroll 32s linear infinite; }
.ld-track:hover { animation-play-state: paused; }
@keyframes ld-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ld-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 11px; white-space: nowrap;
}
.ld-item-img {
  width: 26px; height: 26px; border-radius: 7px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; color: var(--red2); flex-shrink: 0;
}
.ld-item-info { display: flex; flex-direction: column; line-height: 1.25; }
.ld-item-name { font-size: 12.5px; font-weight: 600; }
.ld-item-prize { font-size: 11.5px; color: var(--red2); }
.ld-empty { color: var(--muted); font-size: 12.5px; padding: 4px 14px; }

/* ---------- Колесо фортуны ---------- */
.wheel-page { padding-top: 22px; }
.wheel-page-hero { padding-bottom: 18px; }
.wheel-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.wheel-header {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center;
  margin-top: 18px; padding: 16px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.wheel-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  min-width: 132px; text-align: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.stat-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-value { font-family: 'Oswald', Arial, sans-serif; font-size: 19px; font-weight: 600; color: var(--red2); margin-top: 3px; }
.wheel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.wheel-reel-wrap { position: relative; margin: 8px 0 4px; }
.wheel-reel-mask {
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wheel-reel {
  display: flex; flex-wrap: nowrap; gap: 12px;
  width: max-content; will-change: transform;
}
.wheel-card {
  width: 152px; flex-shrink: 0;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-align: center; position: relative; overflow: hidden;
}
.wheel-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--c, var(--red)); opacity: .9;
}
.wheel-card-top { display: flex; justify-content: center; margin-bottom: 8px; }
.wheel-card-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--red)); box-shadow: 0 0 10px var(--c, var(--red)); }
.wheel-card-img {
  height: 54px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); margin-bottom: 8px;
}
.wheel-card-img img { max-height: 52px; max-width: 100%; object-fit: contain; }
.wheel-card-name {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wheel-card-price { font-family: 'Oswald', Arial, sans-serif; font-size: 14px; color: var(--red2); margin-top: 3px; }
.wheel-reel-marker {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--red2), transparent);
  box-shadow: 0 0 14px rgba(255,106,61,.6); pointer-events: none;
}
.wheel-hint { text-align: center; color: var(--muted); font-size: 13px; min-height: 20px; margin: 4px 0 10px; }

.wheel-contents { margin-top: 26px; }
.wheel-sec-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: 'Oswald', Arial, sans-serif; font-size: 18px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px;
}
.wheel-sec-line { flex: 1; max-width: 160px; height: 1px; background: var(--line); }
.wheel-prizes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wheel-prize {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center;
}
.wheel-prize-bar { height: 3px; border-radius: 3px; background: var(--c, var(--red)); margin-bottom: 10px; }
.wheel-prize-img { height: 34px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.wheel-prize-name { font-size: 12.5px; font-weight: 600; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-prize-price { font-family: 'Oswald', Arial, sans-serif; font-size: 14px; color: var(--red2); margin-top: 2px; }
.wheel-prize-chance { font-size: 11px; color: var(--muted); margin-top: 4px; }

.wheel-faq { margin-top: 30px; }
.wheel-faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.wheel-faq-q { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.wheel-faq-a { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ---------- Результат прокрута ---------- */
.result-modal { max-width: 420px; text-align: center; }
.result-content { padding: 6px 2px 2px; }
.result-title { font-family: 'Oswald', Arial, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.result-prize { font-family: 'Oswald', Arial, sans-serif; font-size: 26px; font-weight: 600; margin-top: 8px; }
.result-award { color: var(--muted); font-size: 13px; margin-top: 6px; }
.result-promo { margin-top: 14px; }
.result-promo-code {
  font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700;
  background: var(--panel2); border: 1px dashed var(--red); border-radius: 10px; padding: 10px 14px; color: var(--red2);
}
.result-product {
  margin-top: 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.result-product-name { font-weight: 700; font-size: 14px; }
.result-product-price { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.result-cost { margin-top: 14px; font-size: 13px; color: var(--muted); }
.result-balance { margin-top: 4px; font-family: 'Oswald', Arial, sans-serif; font-size: 17px; color: var(--text); }
.result-actions { display: flex; gap: 10px; margin-top: 18px; }
.result-actions .btn { flex: 1; justify-content: center; }

/* ---------- Карточка товара ---------- */
.product-page { padding-top: 18px; }
.prod-bread { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.prod-bread a { color: var(--red2); }
.prod-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.prod-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(212,71,43,.16); color: var(--red2); border-radius: 20px; padding: 4px 11px;
}
.prod-cat { color: var(--muted); font-size: 12.5px; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-image-wrap {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.prod-image { max-width: 100%; max-height: 420px; object-fit: contain; }
.prod-image-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.prod-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.prod-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.prod-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.prod-card-head { margin-bottom: 14px; }
.prod-price-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prod-price { font-family: 'Oswald', Arial, sans-serif; font-size: 30px; font-weight: 600; color: var(--red2); }
.prod-price-old { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.prod-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
.prod-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.prod-section-title {
  font-family: 'Oswald', Arial, sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.prod-variants { display: grid; gap: 8px; }
.prod-var {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: .2s;
}
.prod-var:hover { border-color: var(--red); }
.prod-var.active { border-color: var(--red2); background: rgba(212,71,43,.1); }
.prod-var-label { font-weight: 600; font-size: 13.5px; }
.prod-var-price { font-family: 'Oswald', Arial, sans-serif; font-size: 15px; color: var(--red2); }
.prod-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-size: 17px; line-height: 1;
}
.qty-btn:hover { border-color: var(--red); color: var(--red2); }
.qty-val { min-width: 40px; text-align: center; font-family: 'Oswald', Arial, sans-serif; font-size: 17px; }
.qty-max { color: var(--muted); font-size: 12px; }
.prod-total-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prod-total-label { color: var(--muted); font-size: 13px; }
.prod-total { font-family: 'Oswald', Arial, sans-serif; font-size: 26px; font-weight: 600; color: var(--red2); }
.product-hero { padding: 20px 0 6px; }

/* ---------- Карточки серверов (статистика) ---------- */
.stats-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.stats-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stats-title h2 { font-family: 'Oswald', Arial, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.total-online { color: var(--muted); font-size: 13px; }
.total-online b { color: var(--red2); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.server-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.server-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.server-name { font-weight: 700; font-size: 14px; }
.st { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.st-on { background: rgba(93,217,124,.14); color: #5dd97c; }
.st-off { background: rgba(139,139,149,.16); color: var(--muted); }
.server-body { padding: 12px 16px; display: grid; gap: 8px; }
.server-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.sr-label { color: var(--muted); }
.sr-value { font-weight: 600; text-align: right; }
.sr-online { color: #5dd97c; }
.server-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.server-foot .btn { flex: 1; justify-content: center; }
.srv-connect, .srv-shop { font-size: 12.5px; }

/* ---------- Вайп-блок ---------- */
.wb-block {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.wb-block::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 220px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(212,71,43,.16), transparent 70%);
  pointer-events: none;
}
.wb-block > * { position: relative; }
.wb-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.wb-title { font-family: 'Oswald', Arial, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.wb-status {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 20px; background: rgba(93,217,124,.14); color: #5dd97c;
}
.wb-status-off { background: rgba(139,139,149,.16); color: var(--muted); }
.wb-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 18px 0; align-items: center; }
@media (max-width: 760px) { .wb-body { grid-template-columns: 1fr; } }
.wb-info { display: grid; gap: 10px; }
.wb-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.wb-row-label { color: var(--muted); font-size: 13px; }
.wb-row-value { font-weight: 600; font-size: 13.5px; text-align: right; }
.wb-row-date { color: var(--red2); }
.wb-big { font-family: 'Oswald', Arial, sans-serif; font-size: 22px; color: var(--red2); }
.wb-divider { height: 1px; background: var(--line); margin: 6px 0; }
.wb-timer { text-align: center; }
.wb-timer-title { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.wb-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.wb-text { color: var(--muted); font-size: 13px; max-width: 620px; }
.wb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Поддержка: чат ---------- */
.sup-chat { display: block; }
/* ---------- Р”РѕРїРѕР»РЅРёС‚РµР»СЊРЅРѕ: РїРѕР»РёС‚РёРєРё, С‚Р°Р±Р»РёС†С‹, РєРѕР»РѕРЅРєРё ---------- */
.policy { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.policy h2 { font-family: 'Oswald', Arial, sans-serif; font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.policy p, .policy li { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.policy p { margin-bottom: 10px; }
.policy ul, .policy ol { margin: 0 0 12px 18px; }
.policy a { color: var(--red2); }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.tbl td { color: var(--text); }
.tbl tr:last-child td { border-bottom: none; }

.prod-col-left, .prod-col-right { min-width: 0; }
.st-block { margin-top: 4px; }
.topbar-spacer { flex: 1; }

/* ---------- Адаптив под iPhone 13 и выше (390×844) ---------- */
@media (max-width: 480px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .brand span { display: none; }
  .topbar-right { gap: 6px; }
  .nav-drop-btn { padding: 8px 10px; font-size: 12.5px; }
  .user-chip { padding: 6px 9px; }
  .uc-bal { font-size: 12px; }
  .page-hero { padding: 34px 0 26px; }
  .page-hero h1 { font-size: 30px; }
  .topbar-in { gap: 8px; }
  .brand img { width: 28px; }
  .btn-cart { padding: 8px 10px; }
  .ld-label { display: none; }
  .ld-strip { padding: 7px 0; }

  .wheel-header { padding: 12px; gap: 12px; }
  .wheel-stats { width: 100%; gap: 8px; }
  .wheel-stats .stat { flex: 1 1 44%; min-width: 0; padding: 9px 8px; }
  .stat-value { font-size: 17px; }
  .wheel-actions { width: 100%; }
  .wheel-actions .btn { flex: 1; justify-content: center; padding: 12px 10px; }
  .wheel-card { width: 128px; padding: 10px; }
  .wheel-card-img { height: 44px; }
  .wheel-sec-title { font-size: 15px; gap: 10px; }
  .wheel-prizes-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
  .wheel-prize { padding: 11px 9px; }
  .result-actions { flex-direction: column; }
  .result-prize { font-size: 22px; }

  .sup-card { padding: 15px; border-radius: 12px; }
  .sup-msg { max-width: 96%; }
  .sup-ticket-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sup-reply .btn, .sup-reply button { width: 100%; justify-content: center; }

  .prod-grid { gap: 14px; }
  .prod-image-wrap { min-height: 220px; padding: 12px; }
  .prod-card { padding: 15px; }
  .prod-price { font-size: 25px; }
  .prod-actions .btn { flex: 1; justify-content: center; }

  .wb-block { padding: 16px; border-radius: 14px; }
  .wb-body { grid-template-columns: 1fr; gap: 16px; }
  .wb-footer { flex-direction: column; align-items: flex-start; }
  .wb-actions { width: 100%; }
  .wb-actions .btn { flex: 1; justify-content: center; }

  .server-grid { grid-template-columns: 1fr; }
  .st-cats { padding: 10px 8px; gap: 6px; }
  .st-table-head, .st-row { grid-template-columns: 34px 1fr 74px; padding: 9px 10px; }
  .st-search { flex-direction: column; }
  .st-search button { width: 100%; justify-content: center; }
  .st-player-card { padding: 15px; }

  .foot-in { flex-direction: column; gap: 12px; }
  .foot-policy { gap: 10px; }
  .policy { padding: 16px; }
  .tbl { font-size: 12px; }
  .tbl th, .tbl td { padding: 8px 8px; }
}
