/* FluPay — общий стиль. Основа — палитра Flux Hub (тёмный фон, фиолетово-голубой градиент);
   по духу — игровые маркетплейсы: плотные таблицы лотов, крупные обложки игр, яркие плитки разделов. */
:root {
  color-scheme: dark;
  --bg: #08090e;
  --bg-2: var(--pop-2);
  --panel: #12141d;
  --panel-2: #181b27;
  --panel-3: #1f2332;
  --line: #232838;
  --line-2: #2e3448;
  --text: #eef0f7;
  --text-2: #c3c8d9;
  --muted: #8a90a6;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --sky: #38bdf8;
  --green: #22c55e;
  --lime: #a3e635;
  --amber: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(56, 189, 248, .12));
  --radius: 18px;
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  /* поверхности и текст, которые меняет светлая тема */
  --strong: #fff;
  --input: #0b0d13;
  --chip: #1a1d29;
  --chip-h: #232738;
  --pop: #11131c;
  --pop-2: #0d0f16;
  --hero-top: #13151f;
  --topbar: rgba(8, 9, 14, .82);
  --icon: #b9c0d4;
  --soft: rgba(255, 255, 255, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: "Manrope", system-ui, sans-serif; font-size: 15px;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 15% -10%, rgba(99, 102, 241, .13), transparent 60%),
              radial-gradient(700px 400px at 100% 0%, rgba(56, 189, 248, .07), transparent 60%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
select option { background: var(--panel-2); color: var(--text); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; }
/* отступ до подвала на всех страницах (main всегда ещё и .wrap — поэтому правило с двумя классами, иначе .wrap его обнулял) */
main.wrap { padding-bottom: 96px; }
@media (max-width: 860px) { main.wrap { padding-bottom: 64px; } }
h1, h2, .head-font { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.12; }
h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.2; }
h3 { font-size: 16px; font-weight: 700; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262b3c; border-radius: 10px; border: 2px solid var(--bg); }

/* ================= шапка ================= */
.top { position: sticky; top: 0; z-index: 50; background: var(--topbar); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05); }
.top-row { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -.03em; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 6px 14px rgba(99, 102, 241, .5)); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--grad); color: var(--strong); box-shadow: 0 8px 24px -10px rgba(99, 102, 241, .8); flex-shrink: 0; }
.cat-btn svg { width: 18px; height: 18px; }
.search { position: relative; flex: 1; max-width: 560px; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: #8891a8; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 12px; font-size: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: rgba(99, 102, 241, .7); background: rgba(255, 255, 255, .07); }
.suggest { position: absolute; top: 50px; left: 0; right: 0; padding: 8px; border-radius: 16px; background: var(--pop);
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px #000; display: grid; gap: 2px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.suggest a:hover, .suggest a.sel { background: rgba(99, 102, 241, .16); }
.suggest .gi { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.suggest small { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.suggest .lbl { padding: 6px 10px 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ic-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--icon); transition: background .15s, color .15s; }
.ic-btn:hover { background: rgba(255, 255, 255, .06); color: var(--strong); }
.ic-btn svg, .tb svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: var(--strong); background: #ef4444; border: 2px solid #0b0c12; }
.balance-pill { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 12px; font-weight: 800; font-size: 14px;
  background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .28); color: #bbf7d0; white-space: nowrap; }
.balance-pill i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #16a34a; color: var(--strong); font-style: normal; font-size: 18px; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; }
.me-btn:hover { background: rgba(255, 255, 255, .06); }
.menu { position: absolute; right: 0; top: 54px; min-width: 240px; padding: 8px; border-radius: 16px; background: var(--pop);
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px #000; display: grid; gap: 2px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; width: 100%; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .06); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu-head { padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.menu-head small { display: block; color: var(--muted); font-size: 12px; }


/* мега-меню каталога (как список игр на классических биржах) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--pop-2); border-bottom: 1px solid var(--line); box-shadow: 0 40px 80px -30px #000;
  max-height: calc(100vh - 70px); overflow: auto; }
.mega-in { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 16px 28px; }
.mega-tabs { display: grid; gap: 4px; align-content: start; }
.mega-tabs button { text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.mega-tabs button.active, .mega-tabs button:hover { background: rgba(99, 102, 241, .16); color: var(--strong); }
.mega-list { columns: 3 230px; column-gap: 22px; }
.mega-game { break-inside: avoid; display: block; margin-bottom: 14px; }
.mega-game > a { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.mega-game > a:hover { color: #a5b4fc; }
.mega-game .gi { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; }
.mega-game div { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 4px 0 0 35px; font-size: 12.5px; color: var(--muted); }
.mega-game div a:hover { color: var(--strong); }

/* нижнее меню на телефоне */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 62px; padding-bottom: env(safe-area-inset-bottom);
  background: var(--topbar); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tb { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--icon); }
.tb.active { color: var(--strong); }
.tb .badge { top: 6px; right: calc(50% - 22px); }
.tb-sell span:first-child { display: grid; place-items: center; width: 36px; height: 25px; border-radius: 10px; background: var(--grad);
  color: var(--strong); box-shadow: 0 6px 16px -8px rgba(99, 102, 241, .9); }
@media (max-width: 860px) {
  .tabbar { display: flex; }
  .top-row { height: 58px; gap: 8px; }
  .cat-btn span, .top-right .hide-m, .balance-pill { display: none; }
  .cat-btn { padding: 0 11px; }
  .brand span { display: none; }
  .footer { padding-bottom: 80px !important; }
}

/* ================= базовые элементы ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; font-size: 14px; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--grad); color: var(--strong); box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .8); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(99, 102, 241, .95); }
.btn-buy { background: linear-gradient(135deg, #22c55e, #16a34a); color: var(--strong); box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .7); }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--panel-3); }
.btn-red { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn.full { width: 100%; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; font-weight: 500; }
.input, .field input, .field select, .field textarea, .select {
  width: 100%; min-height: 42px; padding: 10px 13px; border-radius: 11px; font-size: 14px; font-weight: 500;
  background: var(--input); border: 1px solid var(--line); transition: border-color .15s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: rgba(99, 102, 241, .7); }
.select { width: auto; padding: 0 34px 0 12px; height: 40px; min-height: 0; appearance: none; cursor: pointer;
  background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a90a6' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--indigo); }
.switch { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  background: var(--input); border: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.switch input { display: none; }
.switch i { width: 30px; height: 18px; border-radius: 99px; background: #2a2f42; position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--indigo); }
.switch input:checked + i::after { transform: translateX(12px); }
.err { color: #fca5a5; font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-t > * { min-width: 0; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--strong); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--text-2); white-space: nowrap; }
.pill.auto { background: rgba(163, 230, 53, .12); color: #d9f99d; }
.pill.paid { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.pill.sent { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.pill.done { background: rgba(34, 197, 94, .14); color: #86efac; }
.pill.refund, .pill.dispute { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--text-2);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
.chip b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { display: block; font-size: 40px; margin-bottom: 8px; }
.stars { color: #fbbf24; letter-spacing: .5px; white-space: nowrap; font-size: 13px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; font-size: 14px; font-weight: 700;
  color: var(--text-2); background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.tab:hover { border-color: var(--line-2); color: var(--strong); }
.tab.active { color: var(--strong); border-color: rgba(99, 102, 241, .7); background: rgba(99, 102, 241, .18); }
.tab i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.tab.active i { color: #c7d2fe; }

/* аватар: первая буква ника на градиенте (цвет выбирается в настройках) */
.ava { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--grad); flex-shrink: 0; font-size: 16px; font-family: var(--head); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ava.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.ava.lg { width: 88px; height: 88px; border-radius: 24px; font-size: 36px; }
.ava.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--panel); }
.ava.lg.on::after { width: 18px; height: 18px; border-width: 3px; }
.lvl { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800;
  background: rgba(99, 102, 241, .16); color: #c7d2fe; white-space: nowrap; }
.lvl-Легенда { background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(244, 63, 94, .2)); color: #fde68a; }
.lvl-Топ { background: rgba(251, 191, 36, .16); color: #fde68a; }
.lvl-Проверенный { background: rgba(34, 197, 94, .14); color: #86efac; }
.lvl-Новичок { background: rgba(255, 255, 255, .06); color: var(--muted); }

/* обложки игр: картинка или нарисованная плитка с буквами */
.gi { position: relative; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--strong); letter-spacing: -.02em; }
.gi img { width: 100%; height: 100%; object-fit: cover; }
.gi.has-img, html[data-theme="light"] .gi.has-img { background: none !important; border-color: transparent !important; }

/* ================= главная ================= */
.hero { position: relative; margin-top: 18px; border-radius: 28px; overflow: hidden; border: 1px solid #1c2030; min-height: 360px;
  background: linear-gradient(180deg, var(--hero-top), var(--pop-2)); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; opacity: 0; transition: opacity .6s;
  pointer-events: none; padding: 44px 48px; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide .tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.slide h1 { font-size: clamp(28px, 4.2vw, 50px); margin-top: 18px; max-width: 620px; }
.slide p { margin-top: 14px; max-width: 520px; color: #b3b8ca; line-height: 1.6; }
.slide .cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.slide-art { position: relative; height: 280px; }
.slide-art .gi { position: absolute; width: 120px; height: 120px; border-radius: 30px; font-size: 32px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite; border: 1px solid rgba(255, 255, 255, .12); }
.slide-art .big-emoji { position: absolute; font-size: 150px; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 30px 40px rgba(99, 102, 241, .45));
  animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.dots { position: absolute; right: 28px; bottom: 22px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.dots button.on { width: 26px; background: #fff; }
@media (max-width: 860px) {
  .hero { min-height: 400px; }
  .slide { grid-template-columns: 1fr; padding: 30px 22px 54px; align-content: start; }
  .slide-art { display: none; }
  .dots { right: auto; left: 22px; }
}
@media (prefers-reduced-motion: reduce) { .slide-art .gi, .slide-art .big-emoji { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.stat i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-style: normal; font-size: 19px; background: var(--grad-soft); }
.stat b { display: block; font-family: var(--head); font-size: 18px; }
.stat span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

.section { margin-top: 42px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head a.more { font-size: 13.5px; font-weight: 700; color: #a5b4fc; }
.sec-head a.more:hover { color: var(--strong); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 16px; border-radius: 18px; min-height: 118px;
  background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.cat-tile span:first-child { font-size: 30px; }
.cat-tile b { font-size: 14px; }
.cat-tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cat-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--c, #6366f1); opacity: .16; filter: blur(10px); }

.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 14px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s, box-shadow .2s; isolation: isolate; }
.cover:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px var(--c, #000); }
.cover .bg { position: absolute; inset: 0; z-index: -2; }
.cover .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.cover .letters { position: absolute; inset: 0 0 30%; z-index: -1; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 52px;
  color: rgba(255, 255, 255, .92); text-shadow: 0 10px 30px rgba(0, 0, 0, .35); letter-spacing: -.04em; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 10, .92)); }
.cover b { font-size: 15px; line-height: 1.25; }
.cover small { font-size: 12px; color: #c3c8d9; margin-top: 3px; }

.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.az-game { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.az-game:hover { border-color: var(--line-2); }
.az-game > div { min-width: 0; }
.az-game > div > a { font-weight: 800; font-size: 14.5px; }
.az-game > div > a:hover { color: #a5b4fc; }
.az-game p { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.az-game p a:hover { color: var(--strong); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .hscroll { grid-auto-columns: calc((100% - 36px) / 4); } }

.sellers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.seller-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.seller-card:hover { border-color: var(--line-2); }
.seller-card b { display: flex; gap: 4px 6px; align-items: center; font-size: 14.5px; flex-wrap: wrap; }
.seller-card > div { min-width: 0; }
.seller-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); margin-bottom: 14px; font-family: var(--head); }
.step p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px; border-radius: 26px;
  background: radial-gradient(500px 200px at 90% 50%, rgba(56, 189, 248, .2), transparent), var(--grad-soft); border: 1px solid rgba(139, 92, 246, .3); }
.cta-band p { color: var(--text-2); margin-top: 8px; }

/* ================= карточки лотов ================= */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lot { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .2s; min-width: 0; }
.lot:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9); }
.lot-cover { position: relative; height: 92px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; overflow: hidden; }
.lot-cover .gi { width: 40px; height: 40px; border-radius: 11px; font-size: 12px; border: 1px solid rgba(255, 255, 255, .15); }
.lot-cover .cat-ic { position: absolute; right: -6px; bottom: -18px; font-size: 64px; opacity: .25; transform: rotate(-12deg); }
.lot-cover .gname { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.lot-cover .gname small { display: block; font-weight: 600; opacity: .75; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(10, 11, 18, .55); color: #fff; font-size: 16px; transition: transform .15s, color .15s; }
.fav:hover { color: #fda4af; }
.fav:hover { transform: scale(1.1); }
.fav.on { color: #f43f5e; }
.lot-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; flex: 1; }
.lot-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.lot-attrs { display: flex; gap: 4px; flex-wrap: wrap; max-height: 24px; overflow: hidden; }
.lot-seller { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.lot-seller b { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.lot-foot small { font-size: 12px; color: var(--muted); }

/* таблица предложений (как на классических биржах) */
.offers { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.offer-h, .offer { display: grid; grid-template-columns: minmax(0, 1fr) 230px 90px 120px; gap: 16px; align-items: center; padding: 12px 18px; }
.offer-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.offer-h button { text-transform: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; text-align: left; }
.offer-h button:hover, .offer-h button.on { color: var(--strong); }
.offer { border-top: 1px solid var(--line); transition: background .12s; }
.offer:first-of-type { border-top: 0; }
.offer:hover { background: rgba(99, 102, 241, .06); }
.offer-t { min-width: 0; }
.offer-t b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.offer-t .lot-attrs { margin-top: 6px; }
.offer .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offer .who div { min-width: 0; }
.offer .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer .who small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.offer .qty { color: var(--text-2); font-size: 14px; }
.offer .price { font-size: 17px; text-align: right; }
.offer .price small { display: block; font-family: "Manrope"; font-size: 11px; color: #d9f99d; font-weight: 700; }
@media (max-width: 860px) {
  .offer-h { display: none; }
  .offer { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .offer-t { grid-column: 1 / -1; }
  .offer .qty { display: none; }
}

/* ================= страница игры ================= */
/* шапка игры: название, описание, поиск и все категории компактными плашками */
.ghead { position: relative; margin-top: 14px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); isolation: isolate; }
.ghead-glow { position: absolute; inset: 0 0 auto; height: 170px; z-index: -1; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.ghead-art { position: absolute; right: -30px; top: -30px; width: 300px; height: 300px; z-index: -1; display: grid; place-items: center;
  opacity: .22; transform: rotate(-12deg); pointer-events: none; }
.ghead-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 60px; }
.ghead-art span { font-family: var(--head); font-weight: 800; font-size: 150px; color: var(--strong); letter-spacing: -.05em; }
.ghead-in { padding: 24px 26px 20px; display: grid; gap: 16px; }
.ghead-top { display: flex; gap: 16px; align-items: center; max-width: 820px; }
.ghead-top .gi { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; border: 1px solid rgba(255, 255, 255, .15); }
.ghead-top h1 { font-size: clamp(22px, 2.6vw, 30px); }
.ghead-top p { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.csearch { position: relative; display: block; max-width: 360px; }
.csearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); }
.csearch input { width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 10px; font-size: 13.5px; background: var(--input); border: 1px solid var(--line); }
.csearch input:focus { outline: none; border-color: rgba(99, 102, 241, .7); }
.cgroups { display: grid; gap: 14px; }
.cgroup h4 { font-size: 12.5px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.cchips { display: flex; flex-wrap: wrap; gap: 5px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--chip); border: 1px solid transparent; transition: background .12s, color .12s, border-color .12s; white-space: nowrap; }
.cchip:hover { background: var(--chip-h); color: var(--strong); }
.cchip i { font-style: normal; font-size: 11px; font-weight: 700; color: #8b9cff; }
.cchip.on { background: var(--indigo); color: var(--strong); box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .9); }
.cchip.on i { color: #e0e7ff; }
/* панель фильтров */
.fpanel { display: grid; gap: 12px; margin: 12px 0 14px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flabel { min-width: 120px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.fbottom { padding-top: 12px; border-top: 1px solid var(--line); }
.frow-sub { align-items: flex-start; flex-wrap: nowrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.frow-sub .cchips { flex: 1; }
.fsell { margin-left: auto; flex-shrink: 0; }
.lsearch { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.lsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); }
.lsearch input { width: 100%; height: 40px; padding: 0 12px 0 34px; border-radius: 11px; font-size: 13.5px; background: var(--input); border: 1px solid var(--line); }
.lsearch input:focus { outline: none; border-color: rgba(99, 102, 241, .7); }
.fnums { gap: 14px; }
.fnum { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fnum input { width: 76px; height: 36px; min-height: 0; padding: 0 9px; font-size: 13px; }
.fpanel select.select { max-width: 280px; }
@media (max-width: 620px) {
  .frow-sub { flex-wrap: wrap; }
  .fsell { width: 100%; }
  .lsearch { min-width: 0; max-width: none; flex-basis: 100%; }
}
.fbottom .grow { flex: 1; }
.fpanel .price-in { display: flex; gap: 6px; }
.fpanel .price-in input { width: 110px; height: 40px; min-height: 0; }
@media (max-width: 620px) {
  .ghead-in { padding: 18px 16px; }
  .ghead-top .gi { width: 48px; height: 48px; border-radius: 14px; font-size: 15px; }
  .ghead-art { width: 180px; height: 180px; }
  .flabel { min-width: 0; width: 100%; }
  .fpanel { padding: 14px; }
  .fpanel .switch { flex: 1 1 100%; }
  .fpanel .price-in { width: 100%; }
  .fpanel .price-in input { flex: 1; width: auto; min-width: 0; }
  .fpanel .select { flex: 1; min-width: 0; }
}
.fpanel > * { min-width: 0; }
.game-hero { position: relative; margin-top: 16px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); isolation: isolate; }
.game-hero .glow { position: absolute; inset: 0; z-index: -1; }
.game-hero-in { display: flex; align-items: center; gap: 22px; padding: 30px; background: linear-gradient(90deg, rgba(8, 9, 14, .55), rgba(8, 9, 14, .1)); }
.game-hero .gi { width: 96px; height: 96px; border-radius: 26px; font-size: 28px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7); }
.game-hero p { margin-top: 8px; color: #d6dae6; font-size: 14px; }
@media (max-width: 620px) {
  .game-hero-in { padding: 20px; gap: 14px; }
  .game-hero .gi { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
  .filters-bar .switch { flex: 1; }
}
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cat-tabs .tab { height: 36px; padding: 0 13px; font-size: 13.5px; }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.filters-bar .price-in { display: flex; gap: 6px; }
.filters-bar .price-in input { width: 92px; height: 40px; min-height: 0; }
.filters-bar .grow { flex: 1; }
.view-tg { display: flex; padding: 3px; border-radius: 11px; background: var(--input); border: 1px solid var(--line); }
.view-tg button { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 8px; color: var(--muted); }
.view-tg button.on { background: var(--panel-3); color: var(--strong); }
.view-tg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }

/* каталог/поиск */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.side { position: sticky; top: 130px; display: grid; gap: 14px; max-height: calc(100vh - 150px); overflow: auto; }
.side h3 { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.side-list { display: grid; gap: 1px; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 14px; }
.side-list a:hover { background: rgba(255, 255, 255, .05); }
.side-list a.active { background: rgba(99, 102, 241, .18); color: var(--strong); }
.side-list i { font-style: normal; color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr; } .side { position: static; max-height: none; } .side-list { max-height: 200px; overflow: auto; } }

/* ================= товар ================= */
.lot-page { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; align-items: start; margin-top: 14px; }
.lot-hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); isolation: isolate; }
.lot-hero-in { padding: 26px; display: grid; gap: 14px; background: linear-gradient(180deg, rgba(8, 9, 14, .1), rgba(8, 9, 14, .75)); }
.lot-hero .big-ic { position: absolute; right: 20px; top: 10px; font-size: 110px; opacity: .22; transform: rotate(-10deg); z-index: -1; }
.lot-hero h1 { font-size: clamp(22px, 2.6vw, 30px); }
.descr { white-space: pre-wrap; line-height: 1.7; color: var(--text-2); font-size: 15px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lot-page > div { grid-template-columns: minmax(0, 1fr); }
.spec { padding: 12px 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); }
.spec small { display: block; color: var(--muted); font-size: 12px; }
.spec b { font-size: 14px; }
.buy-box { position: sticky; top: 130px; display: grid; gap: 14px; }
.buy-box .price { font-size: 34px; }
.stepper { display: flex; align-items: center; border-radius: 12px; background: var(--input); border: 1px solid var(--line); overflow: hidden; }
.stepper button { width: 42px; height: 42px; font-size: 20px; color: var(--text-2); }
.stepper button:hover { background: var(--panel-3); }
.stepper input { width: 60px; height: 42px; text-align: center; background: none; border: 0; font-weight: 800; }
.stepper input:focus { outline: none; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); }
.guar { display: grid; gap: 10px; }
.guar div { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.guar span { font-size: 17px; }
.seller-box { display: flex; gap: 12px; align-items: center; }
.seller-box b { display: flex; align-items: center; gap: 6px; font-size: 15px; flex-wrap: wrap; }
.seller-box > div { min-width: 0; }
.seller-box small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.review { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review > div { flex: 1; min-width: 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.review p { margin-top: 5px; font-size: 14px; color: var(--text-2); }
.review small { color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .lot-page { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* ================= профиль ================= */
.profile { position: relative; margin-top: 18px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.profile-banner { height: 120px; background: radial-gradient(400px 160px at 20% 100%, rgba(139, 92, 246, .55), transparent),
  radial-gradient(400px 160px at 80% 0%, rgba(56, 189, 248, .35), transparent), #141726; }
.profile-in { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; padding: 0 26px 22px; margin-top: -44px; }
.profile-in .ava.lg { border: 4px solid var(--panel); }
.profile-in h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.profile-stats b { display: block; font-family: var(--head); font-size: 20px; }
.profile-stats span { font-size: 12px; color: var(--muted); }
.rating-bars { display: grid; gap: 6px; }
.rating-bars div { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rating-bars i { height: 7px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.rating-bars i::before { content: ""; display: block; height: 100%; width: var(--w); background: #fbbf24; border-radius: 99px; }
.two-col { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ================= формы ================= */
.form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 680px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
#cats.tabs { max-height: 260px; overflow: auto; }
/* форма «Добавить предложение» */
.back-title { display: flex; align-items: center; gap: 10px; }
.back-title .ic-btn { font-size: 20px; background: var(--panel); border: 1px solid var(--line); }
.sform { display: grid; gap: 12px; min-width: 0; }
.sblock { display: grid; gap: 18px; }
.where { display: flex; align-items: center; gap: 14px; }
.where small { display: block; font-size: 12px; color: var(--muted); }
.where b { font-size: 15px; }
.where .btn { margin-left: auto; }
.req { color: #f87171; }
.hint { display: flex; gap: 6px; align-items: baseline; }
.hint::before { content: "●"; font-size: 8px; color: var(--muted); }
.with-count { position: relative; display: block; }
.with-count input, .with-count textarea { padding-right: 70px; }
.with-count i { position: absolute; right: 12px; bottom: 10px; font-style: normal; font-size: 11.5px; color: #8b9cff; pointer-events: none; }
.unit-in { display: flex; align-items: stretch; border-radius: 11px; background: var(--input); border: 1px solid var(--line); overflow: hidden; }
.unit-in:focus-within { border-color: rgba(99, 102, 241, .7); }
.field .unit-in input { border: 0; background: none; flex: 1; min-width: 0; }
.field .unit-in select { width: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--panel-2); font-weight: 700; font-size: 13px; }
.unit-in b { display: grid; place-items: center; padding: 0 14px; font-size: 14px; color: var(--text-2); background: var(--panel-2); }
.field input:disabled { opacity: .6; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: 14px; border: 2px dashed var(--line-2); background: var(--input);
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--indigo); background: rgba(99, 102, 241, .07); }
.drop-ic { font-size: 26px; color: #8b9cff; }
.drop b { font-size: 13.5px; color: var(--text); }
.drop small { font-size: 12px; color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 7px; background: rgba(0, 0, 0, .65); color: var(--strong); font-size: 12px; }
.price-box { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.price-calc { display: grid; gap: 6px; font-size: 13.5px; padding-top: 12px; border-top: 1px solid var(--line); }
.price-calc div { display: flex; justify-content: space-between; color: var(--text-2); }
.price-calc .total { color: #86efac; font-size: 15px; }
details.faq.mini summary { padding: 12px 14px; font-size: 13.5px; }
details.faq.mini p { font-size: 13.5px; padding: 0 14px 14px; }
.sform-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sform-foot .grow { flex: 1; }
.aside-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lot-cover.img { background-size: cover !important; background-position: center !important; }
.lot-cover.img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 60%); }
.lot-cover.img > *:not(.fav):not(.cat-ic) { position: relative; z-index: 1; }
.lot-cover.img .fav { z-index: 2; }
.gallery { display: grid; gap: 8px; }
.gallery > img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 18px; background: var(--input); border: 1px solid var(--line); }
.gthumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gthumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gthumbs button.on { border-color: var(--indigo); opacity: 1; }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; }
/* «Ваши предложения» */
.my-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.my-head .btn { margin-left: auto; }
.my-lot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.my-lot:first-child { border-top: 0; }
.my-lot .ph { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 22px; background: var(--panel-2); }
.my-lot .ph img { width: 100%; height: 100%; object-fit: cover; }
.my-lot b { display: block; font-size: 14.5px; }
.my-lot .acts { display: flex; gap: 6px; }
.my-lot.off { opacity: .55; }
@media (max-width: 760px) {
  .my-lot { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .my-lot .ph { width: 48px; height: 48px; }
  .my-lot .acts { grid-column: 1 / -1; }
}
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; padding: 2px; }
.pick button { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 12px; background: var(--input); border: 1px solid var(--line); font-size: 13px; font-weight: 700; text-align: left; }
.pick button:hover { border-color: var(--line-2); }
.pick button.on { border-color: rgba(99, 102, 241, .8); background: rgba(99, 102, 241, .16); }
.pick .gi { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }
.sell-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sell-layout aside { position: sticky; top: 130px; }
@media (max-width: 960px) { .sell-layout { grid-template-columns: 1fr; } .sell-layout aside { position: static; } }
.ava-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.ava-pick button { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); border: 2px solid var(--line); font-size: 24px; }
.ava-pick button.on { border-color: var(--indigo); background: rgba(99, 102, 241, .16); }

/* ================= таблицы ================= */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 12px 10px; text-transform: uppercase; letter-spacing: .05em; }
.table td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: rgba(99, 102, 241, .05); }
.table-wrap { overflow-x: auto; }
@media (max-width: 720px) { .table .hide-sm { display: none; } }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 680px) { .summary { grid-template-columns: 1fr; } }

/* ================= заказ и чаты ================= */
.order-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-top: 14px; }
@media (max-width: 960px) { .order-page { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; height: 600px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--muted); font-size: 12.5px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(500px 300px at 50% 120%, rgba(99, 102, 241, .07), transparent); }
.msg { max-width: 76%; padding: 10px 13px; border-radius: 16px 16px 16px 5px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  background: var(--panel-2); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(99, 102, 241, .3)); border-color: rgba(129, 140, 248, .35); }
.msg.system { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, .03); border-radius: 12px; }
.msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.msg .lot-ref { display: block; margin-bottom: 6px; padding: 6px 9px; border-radius: 9px; background: rgba(0, 0, 0, .25); font-size: 12.5px; color: #c7d2fe; }
.day { align-self: center; font-size: 11.5px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .04); margin: 6px 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--panel); }
.chat-form input { flex: 1; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; background: var(--panel); }
.quick button { flex-shrink: 0; height: 30px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); }
.quick button:hover { color: var(--strong); border-color: var(--line-2); }
.payload { display: grid; gap: 6px; }
.payload code { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--input);
  border: 1px solid rgba(163, 230, 53, .25); font-size: 13px; word-break: break-all; color: #ecfccb; }
.payload code button { flex-shrink: 0; font-size: 12px; color: #a5b4fc; font-family: "Manrope"; font-weight: 700; }
.kv { display: grid; gap: 9px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; }
.kv span { color: var(--muted); }
.timeline { display: flex; gap: 4px; }
.timeline div { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.timeline div::before { content: ""; display: block; height: 5px; border-radius: 99px; background: var(--panel-3); margin-bottom: 6px; }
.timeline div.on { color: #c7d2fe; }
.timeline div.on::before { background: var(--grad); }
.rate { display: flex; gap: 4px; }
.rate button { font-size: 28px; color: #3a3f5a; transition: transform .1s; }
.rate button:hover { transform: scale(1.15); }
.rate button.on { color: #fbbf24; }

.chats { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 190px); min-height: 520px; margin-top: 16px;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.dlg-list { border-right: 1px solid var(--line); overflow-y: auto; }
.dlg-list .search-mini { padding: 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.dlg { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .03); align-items: center; }
.dlg:hover { background: rgba(255, 255, 255, .03); }
.dlg.active { background: rgba(99, 102, 241, .14); }
.dlg > div { flex: 1; min-width: 0; }
.dlg b { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; }
.dlg b small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.dlg p { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.dlg .unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--indigo); color: var(--strong); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chats .chat { height: auto; border: 0; border-radius: 0; }
/* связанные аккаунты в карточке пользователя (админка) */
.linked { margin: 12px 0; padding: 12px; border-radius: 14px; background: rgba(239, 68, 68, .07); border: 1px solid rgba(239, 68, 68, .28); display: grid; gap: 6px; }
.linked-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.linked-h > .i { width: 20px; height: 20px; color: #fca5a5; flex: none; margin-top: 1px; }
.linked-h small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.linked-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.linked-row:hover { border-color: var(--line-2); }
.linked-row > b { font-size: 14px; }
.linked-why { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.why { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.why .i { width: 12px; height: 12px; margin: 0; }
.why-card { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.why-ip { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.why.warn { margin-top: 6px; height: auto; padding: 3px 8px; }
.linked-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #86efac; margin: 10px 0; }
.linked-ok .i { width: 15px; height: 15px; }
/* чат заказа как на FunPay: покупатель — розовый, продавец — синий, поддержка — зелёный */
.who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; margin-bottom: 3px; }
.who .i { width: 13px; height: 13px; margin: 0; }
.who i.tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.who-buyer { color: #f472b6; } .who-buyer i.tag { background: rgba(244, 114, 182, .15); }
.who-seller { color: #60a5fa; } .who-seller i.tag { background: rgba(96, 165, 250, .15); }
.who-staff { color: #4ade80; } .who-staff i.tag { background: rgba(74, 222, 128, .15); }
.msg.r-buyer { border-left: 3px solid rgba(244, 114, 182, .7); }
.msg.r-seller { border-left: 3px solid rgba(96, 165, 250, .7); }
.msg.r-staff { border-left: 3px solid rgba(74, 222, 128, .8); background: rgba(74, 222, 128, .07); }
.msg.me.r-buyer, .msg.me.r-seller, .msg.me.r-staff { border-left: 0; border-right: 3px solid; }
.msg.me.r-buyer { border-right-color: rgba(244, 114, 182, .7); }
.msg.me.r-seller { border-right-color: rgba(96, 165, 250, .7); }
.msg.me.r-staff { border-right-color: rgba(74, 222, 128, .8); }
html[data-theme="light"] .who-buyer { color: #db2777; } html[data-theme="light"] .who-seller { color: #2563eb; } html[data-theme="light"] .who-staff { color: #16a34a; }
.key-show { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.key-show code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 9px 11px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 13px; }
/* документация API */
.api-doc { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; overflow-wrap: anywhere; }
.api-doc .code { max-width: 100%; overflow-wrap: normal; }
.api-doc p, .api-list li, .api-steps li { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.api-doc p { margin: 8px 0; }
.api-doc a { color: #a5b4fc; }
.api-doc code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #e0e7ff; }
.api-list, .api-steps { margin: 8px 0 8px 20px; display: grid; gap: 4px; }
.code { margin: 8px 0; padding: 14px 16px; border-radius: 12px; background: #0b0d14; border: 1px solid var(--line); overflow-x: auto;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: #dbe1ff; white-space: pre; }
.code .c { color: #6b7280; }
.code-head { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.api-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.api-m code { font-size: 14px; font-weight: 700; }
.verb { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.verb.get { background: rgba(34, 197, 94, .16); color: #86efac; }
.verb.post { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
.api-t { margin: 10px 0; font-size: 13.5px; display: block; overflow-x: auto; }
.api-t td { vertical-align: top; }
html[data-theme="light"] .code { background: #f6f7fb; color: #1f2333; }
html[data-theme="light"] .api-doc code { background: #eef0f7; color: #3730a3; }
/* боты в чатах */
.bot-ava { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.bot-ava .i { width: 21px; height: 21px; margin: 0; }
.b-notify { background: linear-gradient(135deg, #f59e0b, #f97316); }
.b-support { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.b-guarant { background: linear-gradient(135deg, #22c55e, #0d9488); }
.dlg.bot { background: rgba(255, 255, 255, .015); }
.dlg.bot b span { display: flex; align-items: center; gap: 5px; }
.dlg.bot b .i { width: 13px; height: 13px; color: var(--muted); }
.dlg .unread.muted { background: var(--panel-3, #2a2f40); color: var(--text-2); }
.dlg.bot + .dlg:not(.bot) { border-top: 6px solid rgba(255, 255, 255, .03); }
.chat-head .grow { flex: 1; min-width: 0; }
@media (max-width: 700px) {   /* на телефоне переключатели бота — отдельной строкой под заголовком */
  .chat-head { flex-wrap: wrap; }
  .chat-head .seg { order: 5; width: 100%; }
  .chat-head .seg button { flex: 1; justify-content: center; padding: 0 6px; }
}
.chat-head .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button, .seg label span { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg button .i { width: 14px; height: 14px; margin: 0; }
.seg button.on, .seg input:checked + span { background: var(--indigo); color: #fff; }
.seg label input { display: none; }
.seg.wide { flex-wrap: wrap; }
.seg.wide label { flex: 1 1 200px; }
.seg.wide label span { justify-content: center; }
.msg.bot-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; white-space: normal; }
.msg.bot-msg > .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #a5b4fc; }
.msg-link { color: #a5b4fc; font-weight: 700; white-space: nowrap; }
.msg-link .i { width: 13px; height: 13px; }
.chat-foot { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.topic-chips button { height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); }
.topic-chips button:hover { color: var(--strong); border-color: var(--line-2); }
.topic-chips button.on { background: var(--indigo); border-color: transparent; color: #fff; }
.old-tickets { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.old-tickets button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 8px 11px; border-radius: 10px; background: var(--panel-2); font-size: 13px; }
.old-tickets a { font-size: 13px; color: #a5b4fc; }
.g-team { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.g-team small { width: 100%; }
.g-team a { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.g-team b { color: #86efac; }
.g-steps { margin: 6px 0 0 18px; display: grid; gap: 3px; }
.g-form { display: grid; gap: 12px; margin: 4px 0; }
.g-form textarea { min-height: 70px; }
.deal-list { display: grid; gap: 6px; margin-top: 8px; }
.deal-list h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin: 6px 0 2px; }
.deal-list h4 .i { width: 15px; height: 15px; }
.deal-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.deal-row:hover { border-color: var(--line-2); }
.deal-row .pill { grid-row: span 2; }
.deal-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-row .muted { grid-column: 2; font-size: 12.5px; }
.deal-row .unread { grid-column: 3; grid-row: 1 / span 2; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.deal-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; }
.deal-card small { display: block; font-size: 11.5px; color: var(--muted); }
.deal-card b { font-size: 14px; }
.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 0; background: var(--panel); border-top: 1px solid var(--line); }
.msg-role.g { color: #86efac; }
.msg-role.p { color: var(--text-2); }
.chat-orders { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.chat-orders a { flex-shrink: 0; display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--panel-2); font-size: 12.5px; }
@media (max-width: 860px) {
  .chats { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chats.open .dlg-list { display: none; }
  .chats:not(.open) .chat { display: none; }
}

/* ================= кошелёк ================= */
.wallet-hero { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.wallet-main { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: radial-gradient(400px 200px at 100% 0%, rgba(56, 189, 248, .3), transparent),
  linear-gradient(135deg, #4c1d95, #3730a3 50%, #0e7490); border: 1px solid rgba(255, 255, 255, .12); }
.wallet-main .balance { font-family: var(--head); font-size: 40px; margin-top: 8px; }
.wallet-main small { color: #e0e7ff; }
.balance { font-family: var(--head); font-size: 28px; font-weight: 700; margin-top: 6px; }
@media (max-width: 860px) { .wallet-hero { grid-template-columns: 1fr; } }
.amount-plus { color: #86efac; font-weight: 800; }
.amount-minus { color: #fca5a5; font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { height: 34px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); }
.chips button:hover { border-color: var(--line-2); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.methods label { display: grid; gap: 4px; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--input); border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.methods label span { font-size: 22px; }
.methods input { display: none; }
.methods label:has(input:checked) { border-color: var(--indigo); background: rgba(99, 102, 241, .14); }

/* ================= вход ================= */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 40px auto 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.auth-art { padding: 36px; background: radial-gradient(400px 260px at 0% 100%, rgba(139, 92, 246, .5), transparent),
  radial-gradient(300px 200px at 100% 0%, rgba(56, 189, 248, .3), transparent), #121526; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-art ul { list-style: none; display: grid; gap: 14px; }
.auth-art li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.auth-art li span { font-size: 20px; }
.auth-form { padding: 36px; }
.auth .tabs { margin-bottom: 20px; }
.auth .tab { flex: 1; justify-content: center; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; margin-top: 20px; } .auth-art { display: none; } }

/* ================= помощь ================= */
details.faq { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding: 0 18px 16px; color: var(--text-2); line-height: 1.65; font-size: 14.5px; }

/* ================= подвал и уведомление ================= */
.footer { border-top: 1px solid var(--line); padding: 52px 16px 34px; font-size: 13.5px; color: var(--muted); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 32px; font-size: 12.5px; color: var(--muted); }
.foot-legal a:hover { color: var(--strong); }
.check.agree { align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.check.agree input { margin-top: 2px; flex: none; }
.check.agree a, .buy-note a { color: #a5b4fc; font-weight: 700; }
.buy-note { font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.o-missing { color: #fbbf24 !important; font-style: italic; }
.foot-grid h4 { color: var(--text); font-size: 13.5px; margin-bottom: 14px; }
.foot-grid > div > a:not(.brand) { display: block; padding: 6px 0; }
.foot-grid a:hover { color: var(--strong); }
.foot-grid .brand { display: inline-flex; }
.foot-grid p { margin-top: 16px; line-height: 1.7; max-width: 320px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 14px;
  background: var(--chip); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px);
  animation: pop .2s ease-out; }
.toast.bad { border-color: rgba(239, 68, 68, .5); color: #fecaca; }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } }
.skeleton { min-height: 140px; border-radius: 18px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 8, .7); backdrop-filter: blur(6px); }
.modal-box { width: 100%; max-width: 440px; padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); display: grid; gap: 14px;
  box-shadow: 0 40px 90px -30px #000; animation: pop2 .18s ease-out; }
@keyframes pop2 { from { transform: scale(.96); opacity: 0; } }

/* ================= роли, поддержка, меню профиля ================= */
.role { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800;
  white-space: nowrap; vertical-align: middle; font-family: "Manrope", sans-serif; letter-spacing: 0; }
.role-admin { background: rgba(244, 63, 94, .16); color: #fda4af; }
.role-support { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.role-guarant { background: rgba(34, 197, 94, .16); color: #86efac; }
.trow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; }
.trow + .trow { border-top: 1px solid var(--line); border-radius: 0; }
.trow:hover { background: var(--soft); }
.trow b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow.new b { color: var(--strong); }
.trow.mini { grid-template-columns: auto minmax(0, 1fr) auto; padding: 8px 10px; font-size: 13.5px; }
.trow.mini b { font-size: 13.5px; }
.tnum { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.prio { margin-right: 4px; }
.trow .unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tstatus { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-open { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.st-answered { background: rgba(34, 197, 94, .14); color: #86efac; }
.st-closed { background: var(--soft); color: var(--muted); }
@media (max-width: 720px) { .trow { grid-template-columns: 44px minmax(0, 1fr) auto; } .trow .thide, .trow .tstatus { display: none; } .trow.mini .tstatus { display: inline-flex; } }
.kb-tip { padding: 14px 16px; border-radius: 14px; background: rgba(99, 102, 241, .09); border: 1px solid rgba(99, 102, 241, .28); font-size: 13.5px; line-height: 1.55; }
.kb-tip p { margin-top: 4px; color: var(--text-2); }
.kb-tip a { display: inline-block; margin-top: 6px; color: #a5b4fc; font-weight: 700; }
.kb-tip.bad { background: rgba(239, 68, 68, .09); border-color: rgba(239, 68, 68, .35); margin-bottom: 12px; }
.files { display: flex; gap: 8px; flex-wrap: wrap; }
.files:empty { display: none; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--chip); font-size: 13px; font-weight: 700; }
.fchip.img { height: 72px; width: 72px; padding: 0; overflow: hidden; }
.fchip.img img { width: 72px; height: 72px; object-fit: cover; }
.fchip button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; }
.fchip:not(.img) button { position: static; }
.msg .files { margin-top: 8px; }
.msg.staff { border-color: rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .08); }
.msg.note { border: 1px dashed rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .07); }
.note-tag { display: block; font-size: 11px; font-weight: 800; color: #fcd34d; margin-bottom: 4px; }
.msg.buyer { background: rgba(99, 102, 241, .1); }
.decide { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.order-log { max-height: 260px; overflow: auto; padding: 0 14px 12px; display: grid; gap: 6px; font-size: 13px; }
.order-log small { color: var(--muted); font-size: 11px; }
.ol-system { color: var(--muted); }
/* меню профиля */
.menu .menu-head { padding: 10px; border-radius: 12px; background: var(--soft); }
.menu .menu-head small a { color: var(--muted); }
.menu-group > button { justify-content: space-between; }
.menu-group > button::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.menu-group.open > button::after { transform: rotate(-135deg) translateY(-2px); }
.menu-sub { display: none; padding-left: 10px; }
.menu-group.open .menu-sub { display: grid; }
.menu .mbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.menu .menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.menu .menu-item:hover { background: var(--soft); }
.me-btn { position: relative; }
.me-btn .badge { top: -2px; right: -4px; }
.menu .theme-row { cursor: pointer; }
.menu .theme-row .switch { margin-left: auto; height: auto; padding: 0; border: 0; background: none; }
.menu .danger { color: #f87171; }
.ic-lbl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 62px; height: 48px; padding: 0; font-size: 11px; font-weight: 600; line-height: 1; }
.top-right .balance-pill { margin: 0 6px 0 8px; }
.ic-lbl svg { width: 20px; height: 20px; }
.ic-lbl .badge { right: 8px; }
@media (max-width: 1100px) { .ic-lbl span.lbl { display: none; } .ic-lbl { width: 42px; } }
/* правила */
.rules { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.rules-nav { position: sticky; top: 130px; display: grid; gap: 2px; padding: 10px; }
.rules-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.rules-nav a:hover { background: var(--soft); color: var(--strong); }
.rules-nav a.active { background: rgba(99, 102, 241, .16); color: var(--strong); }
.rules-nav a i { font-style: normal; margin-left: auto; font-size: 12px; color: var(--muted); }
.rsec { scroll-margin-top: 130px; }
.rsec + .rsec { margin-top: 26px; }
.rsec > h2 { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.rule { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.rule + .rule { margin-top: 8px; }
.rule .rnum { font-family: var(--head); font-weight: 700; color: #a5b4fc; font-size: 14px; }
.rule p { line-height: 1.65; font-size: 14.5px; color: var(--text-2); }
.rule p b { color: var(--text); }
.pen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pen span { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.pen .p1 { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.pen .p2 { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.pen .p0 { background: var(--soft); color: var(--muted); }
mark { background: rgba(250, 204, 21, .35); color: inherit; border-radius: 3px; }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); } .rules > * { min-width: 0; } .rules-nav { position: static; display: flex; overflow-x: auto; max-width: 100%; } .rules-nav a { flex-shrink: 0; } .rules-nav a i { display: none; } }

/* ================= статусы, уровни, значки ================= */
/* точка статуса на аватаре: в сети, не на месте (луна), не беспокоить */
.ava.st-online::after, .ava.st-idle::after, .ava.st-dnd::after { content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--panel); box-sizing: content-box; }
.ava.st-online::after { background: #22c55e; }
.ava.st-idle::after { background: radial-gradient(circle at 30% 30%, var(--panel) 0 35%, #f59e0b 36%); }
.ava.st-dnd::after { background: #ef4444 linear-gradient(var(--panel), var(--panel)) center / 6px 2px no-repeat; }
.ava.lg.st-online::after, .ava.lg.st-idle::after, .ava.lg.st-dnd::after { width: 18px; height: 18px; border-width: 3px; }
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sd-online { background: #22c55e; }
.sd-idle { background: radial-gradient(circle at 30% 30%, var(--pop) 0 35%, #f59e0b 36%); }
.sd-dnd { background: #ef4444 linear-gradient(var(--pop), var(--pop)) center / 6px 2px no-repeat; }
.sd-invisible { background: transparent; box-shadow: inset 0 0 0 2.5px var(--muted); }
.pt-online { color: #86efac; } .pt-idle { color: #fcd34d; } .pt-dnd { color: #fca5a5; }
/* рамки аватара — награда за уровень */
.ava.frame { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fc, #8b5cf6); }
.frame-violet { --fc: #8b5cf6; } .frame-sky { --fc: #38bdf8; } .frame-green { --fc: #22c55e; } .frame-gold { --fc: #fbbf24; }
.frame-fire { --fc: #f97316; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #f97316, 0 0 14px 2px rgba(249, 115, 22, .6) !important; }
.frame-rainbow { box-shadow: none !important; }
.frame-rainbow::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #38bdf8, #8b5cf6, #f43f5e); animation: spin 3s linear infinite; }
.ava.frame-rainbow { isolation: isolate; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .frame-rainbow::before { animation: none; } }
/* цвет ника */
.nc-violet { color: #a78bfa; } .nc-sky { color: #38bdf8; } .nc-green { color: #4ade80; } .nc-pink { color: #f472b6; }
.nc-gold { background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--fc, #8b5cf6); }
.sw-violet { --fc: #8b5cf6; } .sw-sky { --fc: #38bdf8; } .sw-green { --fc: #22c55e; } .sw-gold { --fc: #fbbf24; } .sw-fire { --fc: #f97316; }
.sw-rainbow { border: 0; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #38bdf8, #8b5cf6, #f43f5e); }
.nsw-violet, .nsw-sky, .nsw-green, .nsw-pink, .nsw-gold { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 0; }
.nsw-violet { background: #a78bfa; } .nsw-sky { background: #38bdf8; } .nsw-green { background: #4ade80; } .nsw-pink { background: #f472b6; }
.nsw-gold { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.cchip:disabled { opacity: .5; cursor: not-allowed; }
.ava-pick button.locked { opacity: .5; font-size: 18px; }
.lvl-Опытный { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.lvl-Мастер { background: rgba(251, 191, 36, .16); color: #fde68a; }
/* меню: опыт и статус */
.xpline { display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 12px !important; font-weight: 700; color: var(--muted); }
.xpline i, .xpbar { display: block; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.xpline i b, .xpbar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.xpbar { height: 10px; margin-top: 12px; }
.menu .st-item { align-items: flex-start; }
.menu .st-item .sdot { margin-top: 4px; }
.menu .st-item small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.menu .st-item.on { background: var(--soft); }
.menu-group > button span { display: flex; align-items: center; gap: 10px; }
/* настройки: статус */
.status-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.status-pick button { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); text-align: left; }
.status-pick button.on { border-color: var(--indigo); background: rgba(99, 102, 241, .1); }
.status-pick .sdot { margin-top: 4px; width: 14px; height: 14px; }
.status-pick small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
@media (max-width: 620px) { .status-pick { grid-template-columns: 1fr; } }
/* уровень */
.lvl-head { display: flex; gap: 18px; align-items: center; }
.lvl-ring { --p: 0; flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--panel) 80%, transparent 81%), conic-gradient(#8b5cf6 calc(var(--p) * 1%), var(--panel-3) 0); }
.lvl-ring b { font-family: var(--head); font-size: 30px; line-height: 1; }
.lvl-ring small { font-size: 11px; color: var(--muted); }
.lvl-ring.sm { width: 60px; height: 60px; }
.lvl-ring.sm b { font-size: 20px; }
.lvl-now { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.perks { display: grid; gap: 4px; margin-top: 8px; }
.perks div { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.perks div.done { background: rgba(34, 197, 94, .08); color: var(--text); }
.perks .pl { min-width: 50px; font-weight: 800; font-size: 12px; color: #a5b4fc; }
/* значки как в Discord */
.badges { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.bl { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--bg-2); border-right: 1px solid var(--line); }
.bl p { font-size: 12.5px; }
.bl h4 { font-size: 12.5px; margin-top: 8px; }
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.btile { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--chip); border: 2px solid transparent; font-size: 26px; display: grid; place-items: center; }
.btile:hover { background: var(--chip-h); }
.btile.on { border-color: var(--indigo); }
.btile.locked span { filter: grayscale(1); opacity: .4; }
.btile i { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: #c7d2fe; }
.btile em { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: 11px; color: #fbbf24; }
.br { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 22px; }
.bbig { font-size: 82px; line-height: 1.1; filter: drop-shadow(0 14px 24px rgba(99, 102, 241, .45)); }
.bbig.locked { filter: grayscale(1); opacity: .35; }
.br h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.bprog { width: 100%; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 8px; text-align: left; font-size: 13.5px; }
.bprog i { display: block; height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bprog i span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #38bdf8); }
.btiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 10px; width: 100%; margin-top: 12px; }
.btiers div { display: grid; justify-items: center; gap: 2px; font-size: 12px; opacity: .5; }
.btiers div.done { opacity: 1; }
.btiers span { font-size: 24px; }
.btiers b { font-size: 12px; }
.btiers small { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .badges { grid-template-columns: 1fr; } .bl { border-right: 0; border-bottom: 1px solid var(--line); } .bgrid { grid-template-columns: repeat(5, 1fr); } }
.bdg { font-size: 16px; vertical-align: middle; }
.showcase { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bdg.big { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--chip); font-size: 15px; }
.bdg.big span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.levelup { text-align: center; justify-items: center; }
.lu-burst { font-size: 64px; animation: pop2 .4s ease-out; }

/* ================= иконки вместо эмодзи ================= */
.i { width: 1.05em; height: 1.05em; flex-shrink: 0; vertical-align: -.16em; }
:is(.pill, .chip, .role, .lvl, .tab, .cchip, .btn, .menu a, .menu button, .menu-item span, .kb-tip b, .note-tag, .fchip a, .li, .pt, .guar div, .auth-art li, .switch, .lot-ref) .i { margin-right: 6px; }
.btn .i { width: 17px; height: 17px; }
.menu .i { width: 18px; height: 18px; color: var(--muted); margin-right: 2px; }
.menu a:hover .i, .menu button:hover .i { color: var(--strong); }
.menu .danger .i { color: #f87171; }
.li { display: inline-flex; align-items: center; }
.li .i { color: var(--muted); }
.h-ic { width: 22px; height: 22px; margin-right: 10px; vertical-align: -3px; color: #a5b4fc; }
.i.empty-ic { display: block; width: 56px; height: 56px; padding: 14px; margin: 0 auto 12px; border-radius: 50%; background: var(--soft); color: var(--muted); }
.i.big-i { width: 34px; height: 34px; color: #a5b4fc; }
.guar div { align-items: flex-start; }
.guar .i { width: 18px; height: 18px; margin-top: 1px; color: #a5b4fc; }
.auth-art li { align-items: flex-start; }
.auth-art li .i { width: 20px; height: 20px; color: #c7d2fe; margin-top: 1px; }
.stat i .i { width: 20px; height: 20px; color: #a5b4fc; }
.stat i { color: #a5b4fc; }
.cat-tile .ct-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--soft); color: var(--c, #a5b4fc); }
.cat-tile .ct-ic .i { width: 22px; height: 22px; }
.lot-cover .cat-ic { font-size: 0; right: -10px; bottom: -14px; opacity: .2; }
.lot-cover .cat-ic .i { width: 78px; height: 78px; stroke-width: 1.6; }
.lot-hero .big-ic { font-size: 0; opacity: .18; }
.lot-hero .big-ic .i { width: 120px; height: 120px; stroke-width: 1.4; }
.slide-art .big-emoji .i { width: 170px; height: 170px; stroke-width: 1.2; color: #a5b4fc; }
.fav .i { width: 17px; height: 17px; }
.fav.on .i { fill: currentColor; }
.drop-ic, .i.drop-ic { width: 26px; height: 26px; color: #8b9cff; }
.methods label span .i { width: 22px; height: 22px; color: #a5b4fc; }
.prio .i { width: 15px; height: 15px; color: #f97316; margin-right: 4px; vertical-align: -2px; }
.pt { display: inline-flex; align-items: center; gap: 6px; }
.pt .sdot { width: 8px; height: 8px; }
.kb-tip b { display: inline-flex; align-items: center; }
.perks .i { width: 18px; height: 18px; color: #a5b4fc; }
.perks div:not(.done) .i { color: var(--muted); }
.lot-ref { display: inline-flex !important; align-items: center; }
.btiers small .i { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.lu-burst .lvl-ring { width: 110px; height: 110px; }
/* медали значков: цвет по ступени */
.medal { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 45%), var(--mg, #3a3f55);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 6px 14px -6px var(--mgs, transparent); }
.medal .i { width: 52%; height: 52%; }
.medal.xs { width: 22px; height: 22px; box-shadow: none; }
.medal.sm { width: 30px; height: 30px; }
.medal.xl { width: 108px; height: 108px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25), 0 18px 40px -14px var(--mgs, transparent); }
.mt-0 { --mg: #2e3346; color: #6b7189; }
.mt-1 { --mg: linear-gradient(135deg, #d08b54, #8a4b22); --mgs: #c2763f; }
.mt-2 { --mg: linear-gradient(135deg, #e5e7eb, #8b93a7); --mgs: #b8bfcc; }
.mt-3 { --mg: linear-gradient(135deg, #fde68a, #d97706); --mgs: #f59e0b; }
.mt-4 { --mg: linear-gradient(135deg, #6ee7b7, #047857); --mgs: #10b981; }
.mt-5 { --mg: linear-gradient(135deg, #a5f3fc, #6366f1 60%, #a855f7); --mgs: #8b5cf6; }
.mt-sp { --mg: linear-gradient(135deg, #8b5cf6, #38bdf8); --mgs: #6366f1; }
.btile .medal { width: 70%; height: 70%; }
.btile.locked .medal { filter: none; }
.bbig { filter: none; }
.bbig.locked { opacity: 1; filter: none; }
.bdg.big { padding-left: 4px; }
/* цвет аватара: g1…g15 и x1…x12 (открываются со 2 уровня) */
.ava { background: linear-gradient(135deg, #8b5cf6, #6366f1 50%, #38bdf8); }
.av-g1 { background: linear-gradient(135deg, #f97316, #db2777); } .av-g2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.av-g3 { background: linear-gradient(135deg, #22c55e, #0d9488); } .av-g4 { background: linear-gradient(135deg, #f43f5e, #9333ea); }
.av-g5 { background: linear-gradient(135deg, #fbbf24, #ea580c); } .av-g6 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.av-g7 { background: linear-gradient(135deg, #ef4444, #7f1d1d); } .av-g8 { background: linear-gradient(135deg, #facc15, #84cc16); }
.av-g9 { background: linear-gradient(135deg, #64748b, #1e293b); } .av-g10 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.av-g11 { background: linear-gradient(135deg, #14b8a6, #22d3ee); } .av-g12 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.av-g13 { background: linear-gradient(135deg, #10b981, #3b82f6); } .av-g14 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-g15 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }
.av-x1 { background: conic-gradient(from 45deg, #f43f5e, #f59e0b, #22c55e, #38bdf8, #8b5cf6, #f43f5e); }
.av-x2 { background: linear-gradient(135deg, #111827, #4b5563 50%, #111827); } .av-x3 { background: linear-gradient(135deg, #fde68a, #f59e0b 45%, #78350f); }
.av-x4 { background: linear-gradient(135deg, #a7f3d0, #059669 50%, #064e3b); } .av-x5 { background: linear-gradient(135deg, #fbcfe8, #db2777 50%, #500724); }
.av-x6 { background: linear-gradient(135deg, #c7d2fe, #4f46e5 50%, #1e1b4b); } .av-x7 { background: radial-gradient(circle at 30% 30%, #fef08a, #f97316 45%, #7c2d12); }
.av-x8 { background: radial-gradient(circle at 30% 30%, #bae6fd, #0284c7 50%, #082f49); } .av-x9 { background: linear-gradient(160deg, #0f172a 30%, #7c3aed 70%, #f472b6); }
.av-x10 { background: linear-gradient(135deg, #34d399, #06b6d4, #6366f1); } .av-x11 { background: linear-gradient(135deg, #fca5a5, #fdba74, #fde047); }
.av-x12 { background: linear-gradient(135deg, #e2e8f0, #94a3b8 50%, #475569); }
.ava-pick button { display: grid; place-items: center; padding: 0; }
.ava-pick .ava.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.ava-pick .ava .i { width: 14px; height: 14px; }

/* ================= кошелёк ================= */
.wl-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.wl-hero { position: relative; overflow: hidden; display: grid; gap: 14px; padding: 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(420px 220px at 100% 0%, rgba(56, 189, 248, .35), transparent), radial-gradient(300px 200px at 0% 100%, rgba(236, 72, 153, .18), transparent),
  linear-gradient(135deg, #4c1d95, #3730a3 55%, #0e7490); border: 1px solid rgba(255, 255, 255, .12); }
.wl-hero > small { color: #e0e7ff; font-weight: 700; letter-spacing: .02em; }
.wl-balance { font-family: var(--head); font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.wl-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.wl-bar i { display: block; height: 100%; transition: width .4s; }
.wl-bar i.ok { background: linear-gradient(90deg, #4ade80, #22c55e); }
.wl-bar i.fr { background: repeating-linear-gradient(135deg, #7dd3fc 0 8px, #38bdf8 8px 16px); }
.wl-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.wl-legend span:not(.dot) { font-size: 12.5px; color: #e0e7ff; }
.wl-legend b { grid-column: 1 / -1; font-family: var(--head); font-size: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: #4ade80; } .dot.fr { background: #7dd3fc; }
.wl-extra { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #e0e7ff; }
.wl-extra div { display: flex; align-items: center; gap: 6px; }
.wl-extra .i { width: 16px; height: 16px; opacity: .8; }
.wl-extra b { color: #fff; }
.wl-next { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.wl-next-sum { font-family: var(--head); font-size: 30px; font-weight: 700; color: #7dd3fc; }
.wl-next-sum.ok { color: #86efac; font-size: 24px; }
.wl-count { font-size: 18px; font-weight: 800; }
.wl-ring { --p: 0; position: absolute; right: 20px; top: 20px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #7dd3fc;
  background: radial-gradient(closest-side, var(--panel) 78%, transparent 80%), conic-gradient(#38bdf8 calc(var(--p) * 1%), var(--panel-3) 0); }
.wl-ring.ok { color: #86efac; background: radial-gradient(closest-side, var(--panel) 78%, transparent 80%), conic-gradient(#22c55e 100%, transparent 0); }
.wl-ring .i { width: 22px; height: 22px; }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.wl-actions { position: sticky; top: 130px; display: grid; gap: 16px; }
.wl-actions .tabs .tab { flex: 1; justify-content: center; }
.wl-can { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 16px; border-radius: 16px;
  background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .25); }
.wl-can small { color: var(--muted); font-size: 12.5px; }
.wl-can b { grid-row: 2; font-family: var(--head); font-size: 26px; color: #86efac; }
.wl-can .btn { grid-row: 1 / 3; grid-column: 2; }
.wl-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.wl-hint .i { width: 18px; height: 18px; color: #a5b4fc; margin-top: 1px; }
.wl-unlock, .wl-op { display: flex; gap: 12px; align-items: center; padding: 14px 6px; }
.wl-unlock + .wl-unlock { border-top: 1px solid var(--line); }
.wl-op { padding: 12px 14px; border-radius: 12px; }
.wl-op + .wl-op { border-top: 1px solid var(--line); border-radius: 0; }
.wl-op:hover { background: var(--soft); }
.wl-uic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.wl-uic.in { background: rgba(34, 197, 94, .12); color: #86efac; }
.wl-uic.out { background: rgba(239, 68, 68, .1); color: #fca5a5; }
.wl-uic .i { width: 20px; height: 20px; }
.wl-ubody { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.wl-urow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wl-urow > b:first-child, .wl-urow > small:first-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wl-urow > :last-child:not(:first-child) { flex-shrink: 0; }
#unlocks, #ops, .wl-actions, .wl-actions > form { min-width: 0; }
.wl-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.wl-urow b { font-size: 14px; }
.wl-urow small { font-size: 12.5px; }
.wl-uprog { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.wl-uprog i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #22c55e); border-radius: 99px; }
.wl-frozen { background: rgba(56, 189, 248, .14) !important; color: #7dd3fc !important; flex-shrink: 0; }
.wl-op .pill { flex-shrink: 0; }
.wl-steps { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: start; gap: 6px; margin-top: 14px; text-align: center; }
.wl-steps > div:not(.wl-arrow) { display: grid; justify-items: center; gap: 6px; }
.wl-steps b { font-size: 13.5px; }
.wl-steps small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.wl-step-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(99, 102, 241, .14); color: #a5b4fc; }
.wl-step-ic.frozen { background: rgba(56, 189, 248, .14); color: #7dd3fc; }
.wl-step-ic.ok { background: rgba(34, 197, 94, .14); color: #86efac; }
.wl-step-ic .i { width: 22px; height: 22px; }
.wl-arrow { height: 2px; margin-top: 23px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 9px); }
.wl-month { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 960px) {
  .wl-top, .wl-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-actions { position: static; }
  .wl-month { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wl-hero { padding: 20px; }
  .wl-legend { grid-template-columns: 1fr; }
  .wl-steps { grid-template-columns: 1fr; }
  .wl-arrow { display: none; }
  .wl-op .wl-urow:last-child { flex-wrap: wrap; }
}
html[data-theme="light"] .wl-hero, html[data-theme="light"] .wl-hero b { color: #fff; }

/* ================= светлая тема ================= */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fa; --bg-2: #eceef6; --panel: #ffffff; --panel-2: #f1f2f8; --panel-3: #e6e8f2;
  --line: #e1e4ef; --line-2: #cfd3e3; --text: #141726; --text-2: #3d4358; --muted: #6b7189;
  --strong: #0f1220; --input: #ffffff; --chip: #eef0f7; --chip-h: #e2e5f0; --pop: #ffffff; --pop-2: #ffffff;
  --hero-top: #ffffff; --topbar: rgba(255, 255, 255, .86); --icon: #4b5168; --soft: rgba(15, 18, 32, .05);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(56, 189, 248, .1));
}
html[data-theme="light"] body::before { background: radial-gradient(900px 500px at 15% -10%, rgba(99, 102, 241, .1), transparent 60%); }
html[data-theme="light"] .top { border-bottom-color: var(--line); }
html[data-theme="light"] .search input { background: var(--panel); border-color: var(--line); }
html[data-theme="light"] .hero { background: radial-gradient(600px 300px at 85% 30%, rgba(99, 102, 241, .14), transparent 70%), #fff; border-color: var(--line); }
html[data-theme="light"] .slide p, html[data-theme="light"] .ghead-top p { color: var(--text-2); }
html[data-theme="light"] .slide .tag { background: var(--soft); border-color: var(--line); }
html[data-theme="light"] .chip, html[data-theme="light"] .pill { background: var(--chip); border-color: transparent; }
html[data-theme="light"] .pill.auto { background: #ecfccb; color: #3f6212; }
html[data-theme="light"] .pill.paid, html[data-theme="light"] .st-open { background: #fef3c7; color: #92400e; }
html[data-theme="light"] .pill.sent { background: #e0f2fe; color: #075985; }
html[data-theme="light"] .pill.done, html[data-theme="light"] .st-answered { background: #dcfce7; color: #166534; }
html[data-theme="light"] .pill.refund, html[data-theme="light"] .pill.dispute { background: #fee2e2; color: #991b1b; }
html[data-theme="light"] .role-admin { background: #ffe4e6; color: #be123c; }
html[data-theme="light"] .role-support { background: #e0f2fe; color: #0369a1; }
html[data-theme="light"] .role-guarant { background: #dcfce7; color: #166534; }
html[data-theme="light"] .amount-plus, html[data-theme="light"] .price-calc .total { color: #15803d; }
html[data-theme="light"] .amount-minus, html[data-theme="light"] .err { color: #dc2626; }
html[data-theme="light"] .cchip i { color: #4f46e5; }
html[data-theme="light"] .msg.me { background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(99, 102, 241, .12)); }
html[data-theme="light"] .payload code { color: #3f6212; }
html[data-theme="light"] .lvl { background: #e0e7ff; color: #3730a3; }
/* на цветном или тёмном фоне текст остаётся белым */
html[data-theme="light"] :is(.btn-primary, .btn-buy, .cat-btn, .cchip.on, .badge, .ava, .gi, .step b, .tb-sell span:first-child,
  .balance-pill i, .dlg .unread, .fav, .lot-cover, .cover, .lot-hero, .wallet-main, .auth-art, .profile-banner, .mbadge) { color: #fff; }
html[data-theme="light"] :is(.lot-hero, .lot-cover, .cover, .auth-art) :is(b, h1, small, span, div) { color: #fff; }
html[data-theme="light"] .auth-art li { color: #e0e7ff; }
html[data-theme="light"] .balance-pill { background: #dcfce7; border-color: #86efac; color: #166534; }
html[data-theme="light"] .tabbar { border-top-color: var(--line); }
html[data-theme="light"] .tab.active, html[data-theme="light"] .side-list a.active { color: #3730a3; }
html[data-theme="light"] .menu, html[data-theme="light"] .suggest, html[data-theme="light"] .modal-box { box-shadow: 0 30px 70px -30px rgba(15, 18, 32, .35); }
html[data-theme="light"] .skeleton { background: linear-gradient(90deg, #eceef6 25%, #f6f7fb 50%, #eceef6 75%); background-size: 200% 100%; }
html[data-theme="light"] .ghead-art span { color: var(--strong); }
html[data-theme="light"] .ghead-glow { opacity: .22; }
html[data-theme="light"] .game-hero-in { background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .2)); }
/* меню профиля поверх ленты игр */
.top-row { position: relative; z-index: 3; }

/* ---------- панель: быстрый поиск, график, команда, журнал ---------- */
.ap-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; width: min(420px, 100%); border-radius: 14px;
  background: var(--input); border: 1px solid var(--line-2); color: var(--muted); }
.ap-search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.ap-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.ap-search kbd { padding: 2px 8px; border-radius: 7px; border: 1px solid var(--line-2); font: 600 12px/1.4 var(--head); color: var(--muted); }
.ap-tabs { margin-bottom: 16px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.ap-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ap-h .muted { font-size: 12.5px; }
.wk-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; margin-top: 16px; }
.wk-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.wk-col i { width: 100%; max-width: 40px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(139, 92, 246, .75), rgba(99, 102, 241, .35)); }
.wk-col.today i { background: var(--grad); box-shadow: 0 8px 24px -10px rgba(139, 92, 246, .8); }
.wk-col b { font-size: 12.5px; }
.wk-col small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.team { display: grid; gap: 4px; margin-top: 10px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.team-row:hover { background: var(--soft); }
.team-row .grow { flex: 1; min-width: 0; }
.team-row small { display: block; font-size: 12px; }
.team-row > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.team-row > span .i { width: 14px; height: 14px; color: var(--muted); }
.notice-form { display: flex; gap: 8px; flex-wrap: wrap; }
.notice-form .input:first-child { flex: 1 1 280px; }
.notice-form select { width: auto; }
.log-list { padding: 6px; }
.log-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; }
.log-row + .log-row { border-top: 1px solid var(--line); }
.log-row .grow { flex: 1; min-width: 0; font-size: 14px; }
.log-row a { color: #a5b4fc; font-weight: 700; }
.log-text { color: var(--text-2); margin-top: 2px; word-break: break-word; }
.log-row > small { white-space: nowrap; font-size: 12px; }

/* ---------- панель: заказ по номеру ---------- */
.join-card { display: flex; gap: 16px; align-items: center; background: var(--grad-soft); border-color: rgba(129, 140, 248, .3); }
.join-card .grow { flex: 1; min-width: 0; }
.join-card p { font-size: 13.5px; margin: 4px 0 12px; }
.join-ic { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; }
.join-ic .i { width: 26px; height: 26px; }
.join-form { display: flex; gap: 8px; max-width: 520px; }
.join-form .input { flex: 1; min-width: 0; font: 700 16px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.join-form .input::placeholder { font: 500 14px Manrope, sans-serif; letter-spacing: 0; text-transform: none; }
.op-card { margin-top: 12px; display: grid; gap: 16px; border-color: rgba(129, 140, 248, .35); }
.op-head { display: flex; align-items: center; gap: 10px; }
.op-head .grow { flex: 1; }
.op-code { font: 700 18px var(--head); letter-spacing: .04em; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.op-lot { display: flex; gap: 12px; align-items: center; }
.op-lot span { min-width: 0; }
.op-lot b, .op-lot small { display: block; }
.op-people { display: grid; gap: 8px; align-content: start; }
.op-person { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border-radius: 14px; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; }
.op-person:hover { border-color: var(--line-2); background: var(--panel-3); }
.op-person small, .op-person b { display: block; }
.op-person small { font-size: 12px; }
.op-tickets { display: grid; gap: 4px; }
.op-msgs { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); }
.op-msg { padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13.5px; }
.op-msg small { color: var(--muted); font-size: 11.5px; }
.op-msg p { margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.op-msg.system { background: none; border: 1px dashed var(--line-2); }
.op-msg.staff { background: rgba(56, 189, 248, .08); }
.op-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.op-actions .grow { flex: 1; }
.op-actions small { font-size: 12.5px; }

/* ---------- заказ: режим поддержки ---------- */
.chat-two { display: flex; gap: 22px; flex-wrap: wrap; min-width: 0; }
.msg-role { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #7dd3fc; margin-bottom: 3px; }
.msg-role .i { width: 13px; height: 13px; }
.staff-card { display: grid; gap: 12px; border-color: rgba(56, 189, 248, .35); background: linear-gradient(180deg, rgba(56, 189, 248, .07), transparent 60%), var(--panel); }
.staff-card h3 { display: flex; align-items: center; gap: 8px; }
.staff-card h3 .i { color: #7dd3fc; }
.staff-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff-acts .btn { width: 100%; justify-content: center; }
.staff-acts .btn-buy, .staff-acts .btn-red, .staff-acts p { grid-column: 1 / -1; }
.notes { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.notes > b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.notes > small { margin-top: -6px; font-size: 12px; }
.note { padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .07); font-size: 13.5px; }
.note p { white-space: pre-wrap; word-break: break-word; }
.note small { color: var(--muted); font-size: 11.5px; }
.note-form { display: flex; gap: 6px; }
.note-form .input { flex: 1; min-width: 0; height: 40px; min-height: 0; }
.kb-tip.good { background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .35); }
.kb-tip.good b .i { color: #7dd3fc; margin-right: 6px; }

/* ---------- объявление администрации ---------- */
.notice-bar { position: relative; z-index: 4; font-size: 13.5px; font-weight: 600; background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(56, 189, 248, .2)); border-bottom: 1px solid rgba(129, 140, 248, .35); }
.notice-bar.warn { background: linear-gradient(90deg, rgba(245, 158, 11, .28), rgba(239, 68, 68, .16)); border-bottom-color: rgba(245, 158, 11, .4); }
.notice-bar.good { background: linear-gradient(90deg, rgba(34, 197, 94, .26), rgba(163, 230, 53, .14)); border-bottom-color: rgba(34, 197, 94, .4); }
.notice-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.notice-bar span { flex: 1; min-width: 0; }
.notice-bar .i { width: 18px; height: 18px; flex: none; }
.notice-bar button { border: 0; background: none; color: inherit; cursor: pointer; opacity: .7; font-size: 15px; }
.notice-bar button:hover { opacity: 1; }
html[data-theme="light"] .notice-bar { color: #1e1b4b; }

/* ---------- вход: капча, Google / VK, код из письма ---------- */
.captcha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--input); border: 1px solid var(--line-2); }
.cap-box { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); font: 600 14px Manrope, sans-serif; cursor: pointer; padding: 0; }
.cap-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); background: var(--panel); flex: none; }
.captcha[data-state="idle"] .cap-box:hover .cap-check { border-color: var(--indigo); }
.captcha[data-state="done"] .cap-check { background: #16a34a; border-color: #16a34a; color: #fff; }
.captcha[data-state="done"] .cap-check .i { width: 16px; height: 16px; stroke-width: 3; }
.captcha[data-state="done"] .cap-text { color: #86efac; }
.captcha[data-state="error"] .cap-text { color: #fca5a5; }
.cap-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--indigo); animation: capspin .7s linear infinite; }
@keyframes capspin { to { transform: rotate(360deg); } }
.cap-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cap-brand .i { width: 13px; height: 13px; }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 14px;
  background: var(--input); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--text); }
.oauth-btn:hover { border-color: var(--indigo); }
.oa-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font: 800 12px Manrope, sans-serif; color: #fff; }
.oa-ic.g { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.oa-ic.vk { background: #0077ff; font-size: 10px; }
.oauth-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.oauth-note a { color: #a5b4fc; }
.or { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-back, .link-btn { background: none; border: 0; color: #a5b4fc; font: 700 13.5px Manrope, sans-serif; cursor: pointer; padding: 0; }
.link-btn { display: block; margin: 16px auto 0; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.code-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 18px auto 14px; border-radius: 20px; background: var(--grad-soft); color: #a5b4fc; }
.code-ic .i { width: 30px; height: 30px; }
.code-title { text-align: center; font-family: var(--head); font-size: 22px; }
.code-sub { text-align: center; font-size: 13.5px; margin: 8px 0 20px; line-height: 1.55; }
.code-sub b { color: var(--text); }
.code-boxes { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.code-boxes input { width: 48px; height: 58px; text-align: center; font: 800 24px var(--head); border-radius: 14px;
  background: var(--input); border: 1px solid var(--line-2); color: var(--text); outline: 0; }
.code-boxes input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
@media (max-width: 420px) { .code-boxes input { width: 40px; height: 50px; font-size: 20px; } }

.mail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mail-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mail-actions .input { flex: 1 1 200px; max-width: 280px; }
code.ip { padding: 1px 6px; border-radius: 6px; background: var(--input); border: 1px solid var(--line); font-size: 12px; }
.login-table { font-size: 12.5px; }
.login-table td, .login-table th { padding: 7px 8px; }
.email-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.mail-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.mail-cur { flex: 1 1 260px; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border-radius: 11px;
  background: var(--input); border: 1px solid var(--line); font-size: 14px; font-weight: 600; min-width: 0; }
.mail-cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-cur .i { width: 17px; height: 17px; color: #a5b4fc; flex: none; }
.mail-warn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); }
.mail-warn > .i { width: 18px; height: 18px; color: #fcd34d; flex: none; }
.mail-warn .grow { flex: 1 1 240px; }
.mail-step { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
/* счёт на перевод USDT */
.inv { max-width: 480px; }
.inv-h { display: flex; align-items: center; gap: 10px; }
.inv-h small { display: block; color: var(--muted); font-size: 12px; }
.inv-sum, .inv-addr { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.inv-sum small, .inv-addr small { color: var(--muted); font-size: 12px; }
.inv-sum b { font-size: 26px; font-family: Unbounded, sans-serif; color: #86efac; }
.inv-addr code { font-size: 13.5px; overflow-wrap: anywhere; color: #e0e7ff; }
.inv-warn { margin: 0 0 0 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.inv-st { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .1); color: #fcd34d; font-size: 13.5px; }
.inv-st .i { width: 17px; height: 17px; flex: none; }
.inv-st.ok { background: rgba(34, 197, 94, .12); color: #86efac; }
.inv-st.bad { background: rgba(239, 68, 68, .12); color: #fca5a5; }
/* выбор способа пополнения */
.pay-pick { display: grid; gap: 8px; min-width: 0; }
.pay-pick > * { min-width: 0; }
.pm { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); position: relative; }
.pm:hover { border-color: var(--line-2); }
.pm.on { border-color: #22c55e; background: rgba(34, 197, 94, .08); }
.pm-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--panel-2); color: #a5b4fc; }
.pm-ic .i { width: 20px; height: 20px; margin: 0; }
.pm-tg { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; }
.pm-t { flex: 1; min-width: 0; }
.pm-t b { display: block; font-size: 14px; }
.pm-t small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pm-best { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(34, 197, 94, .16); color: #86efac; flex: none; }
.pm.on::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.pm-group { padding: 10px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.pm-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 2px 8px; }
.pm-title .i { width: 15px; height: 15px; color: #a5b4fc; align-self: center; }
.pm-title b { font-size: 13.5px; }
.pm-title small { font-size: 11.5px; color: var(--muted); }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.coin { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; border-radius: 11px; background: var(--input); border: 1px solid var(--line); position: relative; }
.coin:hover { border-color: var(--line-2); }
.coin.on { border-color: #22c55e; background: rgba(34, 197, 94, .08); }
.coin b { display: block; font-size: 13px; }
.coin small { display: block; font-size: 11px; color: var(--muted); }
.coin-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 900; font-size: 14px; }
.c-USDT { background: #26a17b; } .c-TON { background: #0098ea; } .c-BTC { background: #f7931a; } .c-ETH { background: #627eea; }
.c-LTC { background: #345d9d; } .c-BNB { background: #f3ba2f; color: #1f1f1f; } .c-TRX { background: #ff060a; } .c-USDC { background: #2775ca; } .c-SOL { background: linear-gradient(135deg, #9945ff, #14f195); } .c-DOGE { background: #c2a633; }
.cb-guide { padding: 14px; border-radius: 14px; background: rgba(99, 102, 241, .07); border: 1px solid rgba(99, 102, 241, .22); font-size: 13px; line-height: 1.55; }
.cb-head { display: flex; gap: 10px; align-items: flex-start; }
.cb-head > .i { width: 20px; height: 20px; color: #a5b4fc; flex: none; margin-top: 2px; }
.cb-head small { display: block; color: var(--muted); font-size: 12px; }
.cb-guide ol { margin: 10px 0 0 18px; display: grid; gap: 4px; }
.cb-guide details { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cb-guide summary { cursor: pointer; font-weight: 700; color: #c7d2fe; }
.cb-guide a { color: #a5b4fc; text-decoration: underline; }
html[data-theme="light"] .cb-guide summary, html[data-theme="light"] .cb-guide a { color: #4f46e5; }
.verify-box { max-width: 460px; margin: 60px auto; text-align: center; }
.verify-box .big-i { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 20px;
  background: rgba(99, 102, 241, .14); color: #a5b4fc; }
.verify-box .big-i .i { width: 30px; height: 30px; margin: 0; }
.verify-box.ok .big-i { background: rgba(34, 197, 94, .14); color: #86efac; }
.email-form .field { flex: 1 1 260px; }
.sess-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.sess-row > .i { width: 22px; height: 22px; color: #a5b4fc; flex: none; }
.sess-row .grow { flex: 1; min-width: 0; }
.sess-row small { display: block; font-size: 12px; margin-top: 2px; }

/* ---------- документы: оферта, политика, возврат, доставка, контакты ---------- */
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 26px; }
.doc-nav { position: sticky; top: 120px; display: grid; gap: 2px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.doc-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.doc-nav a .i { width: 17px; height: 17px; color: var(--muted); }
.doc-nav a:hover { background: var(--soft); color: var(--strong); }
.doc-nav a.on { background: rgba(99, 102, 241, .14); color: #c7d2fe; }
.doc-nav a.on .i { color: #a5b4fc; }
.doc { padding: 30px 34px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); line-height: 1.7; font-size: 14.5px; color: var(--text-2); min-width: 0; }
.doc h1 { font-family: var(--head); font-size: 26px; color: var(--strong); line-height: 1.25; }
.doc .doc-date { margin: 8px 0 22px; font-size: 13px; color: var(--muted); }
.doc h2 { font-size: 17px; color: var(--strong); margin: 28px 0 10px; }
.doc p, .doc li { margin: 8px 0; }
.doc ol, .doc ul { padding-left: 22px; }
.doc a { color: #a5b4fc; font-weight: 700; }
.doc .lead { padding: 14px 16px; border-radius: 14px; background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .25); color: var(--text); }
.doc .req { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; padding: 16px 18px; border-radius: 14px; background: var(--input); border: 1px solid var(--line); }
.doc .req span:nth-child(odd) { color: var(--muted); }
.doc .req span:nth-child(even) { color: var(--text); font-weight: 700; word-break: break-word; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.contact-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); }
.contact-card > .i { width: 22px; height: 22px; color: #a5b4fc; flex: none; margin-top: 2px; }
.contact-card small { display: block; color: var(--muted); font-size: 12.5px; }
.contact-card b, .contact-card a { color: var(--text); font-weight: 700; word-break: break-word; }
@media (max-width: 860px) { .doc-wrap { grid-template-columns: minmax(0, 1fr); } .doc-nav { position: static; grid-template-columns: 1fr 1fr; } .doc { padding: 22px 18px; } }

/* ---------- лента игр на главной ---------- */
.gstrip { position: relative; margin-top: 18px; }
.gs-track { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 2px 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.gs-track::-webkit-scrollbar { display: none; }
.gs-item { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; padding: 4px 0; }
.gs-item .gs-ic { width: 64px; height: 64px; border-radius: 18px; font-size: 18px; transition: transform .18s, box-shadow .18s; }
.gs-item:hover .gs-ic { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .9); }
.gs-item > span:last-child { max-width: 100%; font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item:hover > span:last-child { color: var(--strong); }
.gs-more .gs-ic { display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--muted); font: 700 13px var(--head); }
.gs-more:hover .gs-ic { border-color: var(--indigo); color: #a5b4fc; }
.gs-arrow { position: absolute; top: 26px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8); }
.gs-arrow:hover { background: var(--panel-3); }
.gs-arrow .i { width: 18px; height: 18px; }
.gs-arrow.left { left: -6px; }
.gs-arrow.left .i { transform: rotate(180deg); }
.gs-arrow.right { right: -6px; }
.gstrip:has(.gs-arrow.left:not([hidden])) .gs-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
@media (max-width: 700px) { .gs-arrow { display: none; } .gs-item { width: 76px; } .gs-item .gs-ic { width: 56px; height: 56px; border-radius: 16px; } }

/* ---------- все игры и приложения ---------- */
.gl-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; width: min(360px, 100%); border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.gl-search:focus-within { border-color: var(--indigo); }
.gl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.gl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.gl-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text-2); font: 700 13.5px Manrope, sans-serif; cursor: pointer; }
.gl-tab i { font-style: normal; color: var(--muted); font-weight: 600; }
.gl-tab:hover { border-color: var(--line-2); }
.gl-tab.on { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .55); color: #fcd34d; }
.gl-tab.on i { color: #fcd34d; opacity: .75; }
.gl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.gl-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 16px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s, background .15s; min-width: 0; }
.gl-card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.gl-card .gl-ic { width: 46px; height: 46px; border-radius: 13px; font-size: 13px; }
.gl-card b { font-size: 13.5px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-card small { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.gl-more { display: flex; justify-content: center; margin-top: 18px; }
.mega-all { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; break-inside: avoid; margin-bottom: 14px;
  background: var(--grad-soft); border: 1px solid rgba(129, 140, 248, .35); font-weight: 800; font-size: 14px; }
.mega-all span { flex: 1; min-width: 0; }
.mega-all small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.mega-all .i { width: 20px; height: 20px; color: #a5b4fc; flex: none; }
.mega-all:hover { border-color: rgba(129, 140, 248, .7); }
.az-all { margin: 0; }
.pick-more { grid-column: 1 / -1; font-size: 12.5px; padding: 4px 2px; }
@media (max-width: 1100px) { .gl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-search { width: 100%; } }

@media (max-width: 860px) {
  .ap-grid, .op-grid { grid-template-columns: minmax(0, 1fr); }
  .join-ic { display: none; }
  .ap-search { width: 100%; }
}

