/* BashVPN — стиль сайта и мини-приложения. Цвета и приёмы — из brand.md. */

:root {
  --bg: #060303;
  --surface: #120707;
  --surface-2: #1a0b0b;
  --line: rgba(250, 250, 250, 0.14);
  --line-soft: rgba(250, 250, 250, 0.07);
  --text: #FAFAFA;
  --text-muted: #A39A9A;
  --red: #E0010C;
  --red-main: #AF060B;
  --red-deep: #570507;
  --ok: #3DDC84;
  --glow: 0 0 24px rgba(224, 1, 12, 0.55), 0 0 64px rgba(224, 1, 12, 0.25);
  --radius: 16px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* еле заметная сетка, как на логотипе */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration-color: rgba(250, 250, 250, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }
.accent { color: var(--red); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

/* ── шапка ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 3, 3, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav a.link:hover { color: var(--text); }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* ── кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .1s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--red-main); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(250, 250, 250, 0.4); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }

/* ── главный экран ─────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; text-align: center; overflow: hidden; }
.hero::after {
  /* красное свечение снизу, как подсветка под логотипом */
  content: ""; position: absolute; left: 50%; bottom: -120px; width: 900px; height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224, 1, 12, 0.55) 0%, rgba(87, 5, 7, 0.35) 35%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-logo {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 28px; display: block;
  box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(224, 1, 12, 0.25);
}
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── секции ────────────────────────────────────────────── */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--line); font-size: 1.2rem;
}
.card p:last-child { margin-bottom: 0; }

/* ── тарифы ────────────────────────────────────────────── */
.tariff { position: relative; text-align: center; padding: 32px 24px; }
.tariff.best { border-color: rgba(224, 1, 12, 0.6); box-shadow: 0 0 0 1px rgba(224, 1, 12, 0.25), 0 20px 60px rgba(224, 1, 12, 0.12); }
.tariff .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap;
}
.tariff .period { color: var(--text-muted); font-weight: 600; }
.tariff .price { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; margin: 12px 0 6px; }
.tariff .price small { font-size: 1.4rem; }
.tariff .per { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.tariff li { padding: 6px 0 6px 26px; position: relative; color: var(--text); }
.tariff li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ── шаги ──────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font-weight: 700;
}

/* ── вопросы ───────────────────────────────────────────── */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--text-muted); margin: 12px 0 0; }

/* ── подвал ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding: 32px 0 48px; color: var(--text-muted); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { color: var(--text-muted); }

/* ── окно оформления ───────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.72); padding: 16px; }
.modal.open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; } }
.modal-box {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px; position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(224, 1, 12, 0.12);
}
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }

/* ── формы ─────────────────────────────────────────────── */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 1, 12, 0.2); }
.hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }
.check input { margin-top: 3px; accent-color: var(--red); }
.field { margin-bottom: 18px; }
.error { color: #ff6b6b; font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }

/* ── блок «скопируй ссылку» ────────────────────────────── */
.copybox {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--bg); border: 1px dashed rgba(224, 1, 12, 0.6); border-radius: 12px; padding: 8px;
}
.copybox code {
  flex: 1; min-width: 0; padding: 8px 6px; font-size: 0.85rem;
  overflow-wrap: anywhere; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── кабинет ───────────────────────────────────────────── */
.cabinet { padding: 32px 0 64px; }
.cabinet .card { margin-bottom: 16px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
.big-number { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; font-family: var(--sans); }
.tab.active { color: #fff; border-color: var(--red); background: rgba(224, 1, 12, 0.15); }
.platform ol { padding-left: 20px; margin: 0 0 16px; color: var(--text); }
.platform li { margin-bottom: 8px; }
.qr { display: none; justify-content: center; margin-top: 16px; }
.qr.show { display: flex; }
.qr > div { background: #fff; padding: 12px; border-radius: 12px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin 0.9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(40px);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── эффект: подсветка сетки у курсора (assets/effects.js) ── */
.grid-spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --mx: -999px; --my: -999px;
  background-image:
    linear-gradient(rgba(255, 40, 40, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 40, 40, 1) 1px, transparent 1px);
  background-size: 48px 48px;
  filter: drop-shadow(0 0 3px rgba(224, 1, 12, 0.9));
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
          mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.grid-spotlight.on { opacity: 1; transition: opacity 0.2s ease; }

/* ── эффект: свечение карточек под курсором (assets/effects.js) ──
   ::before у карточек занят (номера шагов), поэтому пятно внутри — фоном самой
   карточки, а горящая рамка — через ::after. */
@property --fx { syntax: "<number>"; inherits: false; initial-value: 0; }
.fx-cards .card {
  position: relative;
  --fx: 0;
  background-image: radial-gradient(circle 260px at var(--cx, 50%) var(--cy, 50%), rgba(224, 1, 12, calc(0.22 * var(--fx))), transparent 70%);
  transition: --fx 0.35s ease;
}
.fx-cards .card.fx-hot { --fx: 1; transition: --fx 0.15s ease; }
.fx-cards .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: radial-gradient(circle 230px at var(--cx, 50%) var(--cy, 50%), rgba(255, 40, 40, 1), rgba(224, 1, 12, 0.45) 45%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.35s ease;
}
.fx-cards .card.fx-hot::after { opacity: 1; transition: opacity 0.15s ease; }

/* ── эффект: наклон логотипа к курсору (assets/effects.js) ── */
.hero-logo-wrap {
  --rx: 0deg; --ry: 0deg; --tx: 0; --ty: 0;
  position: relative; display: block; width: 132px; height: 132px; margin: 0 auto 28px;
  border-radius: 50%;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-logo-wrap .hero-logo {
  margin: 0;
  /* тень и красное свечение уходят в сторону, противоположную наклону */
  box-shadow:
    0 0 0 1px var(--line),
    calc(var(--tx) * -22px) calc(18px + var(--ty) * -22px) 60px rgba(224, 1, 12, 0.32),
    calc(var(--tx) * -10px) calc(var(--ty) * -10px) 24px rgba(0, 0, 0, 0.6);
}
/* блик, скользящий по логотипу */
.hero-logo-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle 70px at calc(50% + var(--tx) * 45%) calc(35% + var(--ty) * 45%),
              rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}
/* свечение под главным экраном немного сдвигается вслед за наклоном */
.hero::after { transform: translateX(calc(-50% + var(--gx, 0px))); }

/* ── эффект: 3D-наклон тарифов (assets/effects.js) ──
   Без transform-style: preserve-3d — вместе со свечением рамки (::after с mask) он
   прятал содержимое карточки за её фоном. Поэтому карточка наклоняется целиком,
   а «выступающая» цена — это просто сдвиг цены навстречу курсору (--px/--py). */
.fx-tilt .tariff {
  --trx: 0deg; --try: 0deg; --sx: 50%; --sy: 50%; --px: 0; --py: 0;
  transform: perspective(900px) rotateX(var(--trx)) rotateY(var(--try));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, --fx 0.35s ease;
}
.fx-tilt .tariff.tilt-on {
  transition: transform 0.08s linear, box-shadow .3s, --fx 0.15s ease;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(224, 1, 12, .15);
}
.fx-tilt .tariff .price {
  transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.fx-tilt .tariff.tilt-on .price { transition: transform 0.08s linear; }
.tariff .tilt-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 220px at var(--sx) var(--sy), rgba(255, 255, 255, .10), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.tariff.tilt-on .tilt-shine { opacity: 1; }

/* ── крупный блок «Как подключиться» (сайт и кабинет) ── */
.howto { padding: 40px 0 56px; }
.howto-title {
  font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(2rem, 7vw, 3.6rem); text-align: center; line-height: 1.05; margin: 0 0 10px;
}
.howto-title span { color: var(--red); text-shadow: 0 0 24px rgba(224, 1, 12, 0.6); }
.howto-sub { text-align: center; color: var(--text-muted); font-size: 1.15rem; margin: 0 0 32px; }
.howto-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.howto-step { text-align: center; padding: 28px 22px; }
.howto-num {
  font-family: var(--serif); font-weight: 700; font-size: 4.2rem; line-height: 1;
  color: var(--red); text-shadow: 0 0 30px rgba(224, 1, 12, 0.55); margin-bottom: 10px;
}
.howto-step h3 { font-family: var(--sans); font-size: 1.45rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.howto-step p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 16px; }
.howto-step .row-actions { justify-content: center; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cab-howto .howto-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.cab-howto .howto-num { font-size: 3rem; }
.cab-howto .howto-step { padding: 20px 16px; }
.cab-howto .howto-step h3 { font-size: 1.2rem; }

/* ── мастер подключения: отдельный экран под каждый шаг (my.html, cabinet.js) ── */
.wizard {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.wizard.hidden { display: none; }
.wz-screen { max-width: 480px; height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  background: rgba(6, 3, 3, 0.85); border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.wz-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); min-height: 60px; }
.wz-back { background: none; border: 0; color: var(--red); font-family: var(--sans); font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.wz-back[hidden] { visibility: hidden; display: flex; }
.wz-progress { display: flex; gap: 5px; }
.wz-progress i { width: 26px; height: 5px; border-radius: 3px; background: var(--line); display: block; }
.wz-progress i.on { background: var(--red); box-shadow: 0 0 8px var(--red); }
.wz-close { background: none; border: 0; color: var(--text-muted); font-family: var(--sans); font-size: .95rem; cursor: pointer; }
.wz-body { flex: 1; overflow-y: auto; padding: 26px 18px 18px; text-align: center; }
.wz-icon { font-size: 4rem; line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 0 18px rgba(224,1,12,.45)); }
.wz-kicker { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 4px; }
.wz-title { font-family: var(--sans); font-weight: 800; font-size: 1.65rem; line-height: 1.2; margin: 0 0 10px; }
.wz-text { color: var(--text); font-size: 1.05rem; margin: 0 0 22px; }
.wz-label { text-align: left; color: var(--text-muted); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; margin: 0 4px 8px; }
.wz-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; }
.wz-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: none; border: 0;
  border-top: 1px solid var(--line-soft); color: var(--text); font-family: var(--sans); font-size: 1.1rem; cursor: pointer; text-align: left; }
.wz-row:first-child { border-top: 0; }
.wz-row .ic { font-size: 1.5rem; width: 30px; text-align: center; }
.wz-row .grow { flex: 1; }
.wz-row .sub { display: block; color: var(--text-muted); font-size: .9rem; }
.wz-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.wz-row.sel .wz-radio { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 12px var(--red); }
.wz-pill { background: rgba(224,1,12,.15); color: #ff5a5f; border: 1px solid rgba(224,1,12,.45); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.wz-foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
.wz-foot .hint { text-align: center; margin: 0 0 12px; }
.wz-next { width: 100%; min-height: 64px; font-size: 1.2rem; }
.wz-link { background: none; border: 0; color: var(--text-muted); text-decoration: underline; font-family: var(--sans); font-size: .95rem; cursor: pointer; padding: 6px; }
.mega { padding: 34px 18px !important; }
.mega .btn { min-height: 110px !important; font-size: clamp(1.3rem, 5vw, 1.7rem) !important; text-transform: uppercase; letter-spacing: .03em; }

/* название на первом экране, над слоганом */
.hero-brand {
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1; margin: 0 0 18px;
  color: var(--text); text-shadow: 0 0 28px rgba(224, 1, 12, 0.35);
}

/* ── вкладки кабинета ── */
.tabbar {
  position: sticky; top: 64px; z-index: 15; display: flex; gap: 6px;
  padding: 6px; margin-bottom: 16px; border-radius: 999px;
  background: rgba(18, 7, 7, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tg-mode .tabbar { top: 8px; }
.tabbar-btn {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-muted); font-family: var(--sans); font-weight: 700; font-size: .95rem; cursor: pointer;
  white-space: nowrap;
}
.tabbar-btn.active { background: var(--red); color: #fff; box-shadow: var(--glow); }
@media (max-width: 420px) { .tabbar-btn { font-size: .82rem; } }
.stat { text-align: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; }
.stat span { color: var(--text-muted); font-size: .85rem; }
