/* ═══════════════════════════════════════════════════════════════════════
   ChivapMod · сайт (главная, вход, личный кабинет)
   Та же дизайн-система, что у ChivapDash (web/chivapdash/css/app.css):
   токены, карточки, вердикт-чипы, кнопки — чтобы сайт и панель выглядели одним продуктом.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --bg: #08090c; --bg2: #0c0f13; --surface: #11151a; --surface2: #161b21; --surface3: #1d232b;
  --hover: rgba(255,255,255,.045);
  --line: #1f252d; --line2: #2b333d;
  --text: #e9ecef; --text2: #b6bec8; --muted: #8893a1; --dim: #5a6572;
  --accent: #e8e3d4; --accent-ink: #15130e; --accent-soft: rgba(232,227,212,.09);
  --live: #57b9ff; --live-soft: rgba(87,185,255,.13);
  --v-clean: #3ddc97; --v-mention: #f5c04a; --v-ad: #ff7b5c; --v-incite: #ff4f8b; --v-none: #5d6773;
  --ok: #3ddc97; --warn: #f5c04a; --bad: #ff6b5c;
  --vk: #2787f5; --tg: #29a9eb;
  --shadow-lg: 0 24px 64px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04);

  /* совместимость со старыми именами (их использует protected_modules/user_plus.js) */
  --cyan: var(--live); --cyan-soft: var(--live-soft); --cyan-glow: rgba(87,185,255,.35);
  --purple: #a855f7;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 14px/1.55 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(87,185,255,.08), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(232,227,212,.045), transparent 60%),
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 22px 22px;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
code { font: 500 .92em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--surface3); color: var(--text); }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--live-soft); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── иконки ── */
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.ic.xs { width: 13px; height: 13px; } .ic.sm { width: 15px; height: 15px; } .ic.lg { width: 22px; height: 22px; } .ic.xl { width: 28px; height: 28px; }

/* ── кнопки ── */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--surface2); color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .2s, color .15s;
}
.btn:hover { background: var(--surface3); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #f4f0e4; box-shadow: 0 10px 30px -12px rgba(232,227,212,.5); }
.btn.live { background: var(--live); color: #04121c; border-color: transparent; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.vk .ic { color: var(--vk); } .btn.tg .ic { color: var(--tg); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface2); color: var(--text); }

/* ── карточки, чипы ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.card-h h2 .ic, .card-h h3 .ic { color: var(--muted); }
.card-h .sp { flex: 1; }
.card-h .sub { color: var(--dim); font-size: 12.5px; }
.card-b { padding: 14px 18px 18px; }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; }

.vchip {
  --c: var(--v-none);
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.vchip[data-v="Чисто"] { --c: var(--v-clean); } .vchip[data-v="Упоминание"] { --c: var(--v-mention); }
.vchip[data-v="Реклама"] { --c: var(--v-ad); } .vchip[data-v="Подстрекание"] { --c: var(--v-incite); }
.vchip[data-v="pending"] { --c: var(--live); }
.ptag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10.5px var(--mono); letter-spacing: .02em; }
.ptag.vk { background: color-mix(in srgb, var(--vk) 16%, transparent); color: #72b5ff; }
.ptag.tg { background: color-mix(in srgb, var(--tg) 16%, transparent); color: #69cbff; }
.ptag.web { background: var(--accent-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.empty { display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ic { width: 28px; height: 28px; color: var(--dim); }
.empty b { color: var(--text2); font-weight: 600; }
.empty span { font-size: 12.5px; max-width: 380px; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── toast ── */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 99;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: min(92vw, 420px);
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 13px;
  background: var(--surface3); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500;
  transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════════════ Вход (модалка и гостевая карточка) ═══════════════════════ */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: rgba(4,5,8,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.login { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-lg); position: relative; transform: translateY(8px) scale(.98); transition: transform .3s var(--ease-spring); }
.overlay.show .login { transform: none; }
.login .close { position: absolute; top: 14px; right: 14px; }
.login h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 14px; }
.login p { color: var(--text2); font-size: 13.5px; margin-top: 6px; }
.login-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line2); }
.login-mark img { width: 26px; height: 26px; }
.code-box { margin: 18px 0 14px; padding: 18px; border-radius: 16px; background: var(--bg2); border: 1px dashed var(--line2); text-align: center; }
.code-val { font: 700 34px/1.1 var(--mono); letter-spacing: .22em; color: var(--text); padding-left: .22em; }
.code-cmd { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.code-cmd code { font-size: 13px; padding: 5px 10px; }
.login .plats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-status { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.login-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--live); animation: spin .8s linear infinite; }
.login-err { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #ffb4aa; background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════ Главная ═══════════════════════ */
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 22px; }
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line2); }
.brand-mark img { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--hover); }
.nav .sp { flex: 1; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line2); color: var(--text2); font-size: 12.5px; font-weight: 500; }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; font-weight: 750; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(100deg, var(--accent) 10%, var(--live) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--text2); max-width: 540px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero .proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero .proof .ic { color: var(--ok); width: 15px; height: 15px; }

/* демо: заявка РД → ВК / TG / веб → вердикт в игре */
.demo { position: relative; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(87,185,255,.16), transparent 65%); pointer-events: none; }
.demo-game { border-radius: 14px; background: #0b0d10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23ffffff05'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23ffffff05'/%3E%3C/svg%3E"); border: 1px solid var(--line); padding: 12px 14px; font: 500 12.5px/1.6 var(--mono); min-height: 104px; }
.demo-game .tag { color: #ffaa00; font-weight: 700; }
.demo-game .nick { color: #55ffff; }
.demo-game .line { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.demo-game .line.on { opacity: 1; transform: none; }
.demo-game .vote { color: #55ff55; }
.demo-route { display: flex; justify-content: center; gap: 0; height: 34px; position: relative; }
.demo-route i { width: 2px; height: 100%; background: linear-gradient(var(--line2), var(--live)); opacity: .6; position: relative; overflow: hidden; }
.demo-route i::after { content: ""; position: absolute; left: -2px; width: 6px; height: 10px; border-radius: 3px; background: var(--live); box-shadow: 0 0 12px var(--live); animation: flow 1.6s linear infinite; }
@keyframes flow { from { top: -12px; } to { top: 100%; } }
.demo-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-ch { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text2); transition: border-color .25s, background .25s, color .25s; }
.demo-ch.active { border-color: var(--live); background: var(--live-soft); color: var(--text); }
.demo-ch .ic { width: 15px; height: 15px; }
.demo-ch.vk .ic { color: var(--vk); } .demo-ch.tg .ic { color: var(--tg); }
.demo-card { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line2); }
.demo-card .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.demo-card .who b { color: var(--text); }
.demo-card .msg { margin: 10px 0 12px; font-size: 14px; }
.demo-timer { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.demo-timer i { display: block; height: 100%; width: 100%; background: var(--live); transform-origin: left; }
.demo-timer.run i { animation: drain 4.2s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.vbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vbtn { --c: var(--v-clean); display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .12s, background .15s, box-shadow .2s; }
.vbtn:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.vbtn:active { transform: scale(.96); }
.vbtn[data-v="ban_3_days"] { --c: var(--v-mention); } .vbtn[data-v="ban_93_days"] { --c: var(--v-ad); } .vbtn[data-v="ban_podstrekanie"] { --c: var(--v-incite); }
.vbtn.pressed { background: var(--c); color: #0b0d10; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.demo-card.done .vbtn:not(.pressed) { opacity: .35; }

.section { padding: 64px 0; }
.section-h { max-width: 640px; margin-bottom: 28px; }
.section-h .kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--live); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section-h h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 720; letter-spacing: -.03em; }
.section-h p { margin-top: 12px; color: var(--text2); font-size: 15px; }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel { padding: 22px; }
.channel .ch-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line2); margin-bottom: 16px; }
.channel .ch-ic .ic { width: 22px; height: 22px; }
.channel.vk .ch-ic .ic { color: var(--vk); } .channel.tg .ch-ic .ic { color: var(--tg); } .channel.web .ch-ic .ic { color: var(--accent); }
.channel h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.channel p { margin-top: 8px; color: var(--text2); font-size: 13.5px; }
.channel ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.channel li { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.channel li .ic { width: 15px; height: 15px; color: var(--ok); margin-top: 2px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 18px; transition: border-color .2s, transform .25s var(--ease), background .2s; }
.feature:hover { border-color: var(--line2); transform: translateY(-3px); background: var(--surface2); }
.feature .f-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 14.5px; font-weight: 650; }
.feature p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.step { padding: 22px; }
.step::before { counter-increment: st; content: counter(st, decimal-leading-zero); font: 700 13px var(--mono); color: var(--live); }
.step h3 { margin-top: 10px; font-size: 16px; font-weight: 650; }
.step p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

.cta-band { margin: 24px 0 64px; padding: 34px; border-radius: var(--r-xl); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface2), var(--surface)); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(87,185,255,.18), transparent 70%); }
.cta-band h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.cta-band p { color: var(--text2); margin-top: 6px; }
.cta-band .grow { min-width: 240px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--dim); font-size: 12.5px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Скрываем секции только когда скрипт точно работает (класс .js ставится в <head>), иначе контент виден сразу */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .channels, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .btn .lbl { display: none; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 15px; }
  .hero .cta .btn { flex: 1 1 auto; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .vbtns { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 24px; }
  .login { padding: 22px 18px; }
  .code-val { font-size: 28px; }
}

/* ═══════════════════════ Личный кабинет ═══════════════════════ */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 88%, transparent); }
.rail .brand { padding: 2px 6px 16px; }
.rail .brand small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 500; letter-spacing: 0; }
#tabRow { display: flex; flex-direction: column; gap: 3px; }
.tab-item { appearance: none; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: left; position: relative; transition: background .15s, color .15s; }
.tab-item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-item:hover { color: var(--text); background: var(--hover); }
.tab-item.active { color: var(--text); background: var(--surface2); box-shadow: 0 0 0 1px var(--line); }
.tab-item.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.tab-item .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--live); color: #04121c; font: 700 11px/20px var(--mono); text-align: center; }
.rail-foot { margin-top: auto; display: grid; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.me img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: var(--surface3); }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 26px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar .title h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.topbar .title p { color: var(--muted); font-size: 12.5px; }
.topbar .sp { flex: 1; }
.topbar .m-brand { display: none; }
.view { padding: 22px 26px 60px; max-width: 1120px; }
.role { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.role.plus, .user-badge.user_plus { color: var(--live); background: var(--live-soft); border-color: color-mix(in srgb, var(--live) 35%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 15px 16px; }
.kpi-l { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-l .ic { width: 15px; height: 15px; }
.kpi-v { margin-top: 8px; font: 650 26px/1.1 var(--mono); letter-spacing: -.04em; }

/* лента */
.feed { display: grid; }
.fi { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.fi:first-child { border-top: 0; }
.fi-t { font: 500 12px var(--mono); color: var(--dim); }
.fi-m { min-width: 0; }
.fi-m b { color: var(--live); font-weight: 600; }
.fi-m p { overflow-wrap: anywhere; font-size: 13.5px; }
.fi-s { display: flex; align-items: center; gap: 8px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 48px; gap: 12px; align-items: center; font-size: 13px; }
.bar-t { height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar-t i { display: block; height: 100%; border-radius: 5px; background: var(--c, var(--live)); transform-origin: left; animation: growX .8s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* тапалка */
.tap-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.tap-status .grow { min-width: 160px; }
.tap-status b { font-weight: 600; }
.tap-q { display: grid; gap: 12px; }
.tap-card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line2); animation: tapIn .35s var(--ease-spring); }
.tap-card.leaving { animation: tapOut .3s var(--ease) forwards; }
@keyframes tapIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes tapOut { to { opacity: 0; transform: translateX(30px); } }
.tap-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tap-card .head b { color: var(--text); font-size: 14px; }
.tap-card .msg { margin: 10px 0 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tap-card .left { margin-left: auto; font: 600 12px var(--mono); color: var(--live); }
.tap-card .left.low { color: var(--warn); }
.tap-card .demo-timer i { transition: transform .25s linear; animation: none; }
.tap-card .vbtn { min-height: 48px; font-size: 13.5px; }
.tap-card.sent .vbtn:not(.pressed) { opacity: .3; pointer-events: none; }
.tap-hist .fi { grid-template-columns: 70px minmax(0, 1fr) auto; }
kbd { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line2); background: var(--surface2); color: var(--muted); }

/* мод */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mod-card { padding: 20px; display: grid; gap: 14px; align-content: start; }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mod-ver { font: 700 24px var(--mono); letter-spacing: -.04em; }
.mod-mc { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--live); background: var(--live-soft); border: 1px solid color-mix(in srgb, var(--live) 30%, transparent); }
.mod-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.mod-notes { font-size: 13px; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mod-notes b { display: block; color: var(--text); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.mod-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ms; }
.mod-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text2); }
.mod-steps li::before { counter-increment: ms; content: counter(ms); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--text); background: var(--surface3); border: 1px solid var(--line2); }

/* совместимость с protected_modules/user_plus.js (рисует свою вкладку старыми классами) */
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-card h2, .dash-card h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.dash-card h2 svg, .dash-card h3 svg { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
.dash-card p.sub { color: var(--text2); font-size: 13.5px; margin-bottom: 14px; }
.empty-state { color: var(--muted); text-align: center; padding: 30px 0; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text2); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.help-status-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 16px; }
.stick-card-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.stick-card-option input { accent-color: var(--live); width: 18px; height: 18px; flex: none; }
.online-indicator { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dot-ping { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); } .dot-ping.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.user-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.input, input[type="number"], input[type="time"], select.input { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); }
.input:focus { outline: none; border-color: var(--live); box-shadow: 0 0 0 3px var(--live-soft); }

/* мобильная раскладка кабинета: нижняя панель как в ChivapDash */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 50; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: auto; padding: 6px; border: 1px solid var(--line2); border-radius: 20px; background: color-mix(in srgb, var(--surface2) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
  .rail .brand, .rail-foot { display: none; }
  #tabRow { flex-direction: row; gap: 4px; }
  .tab-item { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0 2px; font-size: 10.5px; font-weight: 600; min-width: 0; }
  .tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-item.active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
  .tab-item.active::before { display: none; }
  .tab-item .badge { position: absolute; top: 3px; right: calc(50% - 22px); margin: 0; min-width: 17px; height: 17px; font-size: 10px; line-height: 17px; }
  .topbar { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .topbar .title p { display: none; }
  .topbar .m-brand { display: grid; }
  .view { padding: 14px 14px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-v { font-size: 22px; }
  .fi { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; gap: 6px 10px; }
  .fi-t { grid-column: 1 / -1; order: 3; }
  .bar-row { grid-template-columns: 96px 1fr 40px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════ Кабинет v2: обзор, арена тапалки, графики ═══════════════════════ */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.page { display: grid; gap: 16px; align-content: start; animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* герой */
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; border: 1px solid var(--line2);
  background: linear-gradient(135deg, var(--surface2), var(--surface) 60%); isolation: isolate; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.hero-card::before { width: 340px; height: 340px; right: -80px; top: -120px; background: rgba(87,185,255,.30); }
.hero-card::after { width: 280px; height: 280px; left: 30%; bottom: -150px; background: rgba(232,227,212,.16); animation-delay: -6s; }
.hero-card.plus::before { background: rgba(168,85,247,.30); }
.hero-card.plus::after { background: rgba(87,185,255,.22); }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.15); } }
.hero-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-ring { position: relative; width: 72px; height: 72px; border-radius: 22px; padding: 3px; flex: none;
  background: conic-gradient(from var(--ang), var(--live), var(--accent), var(--live)); animation: spinAng 6s linear infinite; }
.hero-card.plus .avatar-ring { background: conic-gradient(from var(--ang), #a855f7, var(--live), #ff4f8b, #a855f7); }
@keyframes spinAng { to { --ang: 360deg; } }
.avatar-ring img { width: 100%; height: 100%; border-radius: 19px; image-rendering: pixelated; background: var(--surface3); }
.avatar-ring .live { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface); background: var(--dim); }
.avatar-ring .live.on { background: var(--ok); animation: ping 2s infinite; }
.hero-text { flex: 1; min-width: 200px; }
.hero-text .hi { color: var(--muted); font-size: 13px; }
.hero-text h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.hero-text .sub { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.chan-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chan { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
  color: var(--dim); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line); transition: all .25s; }
.chan .ic { width: 15px; height: 15px; }
.chan i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.chan.on { color: var(--text); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 13%, transparent); }
.chan.on i { background: var(--c); box-shadow: 0 0 10px var(--c); }
.chan.vk { --c: var(--vk); } .chan.tg { --c: var(--tg); } .chan.web { --c: var(--accent); } .chan.game { --c: var(--ok); }
.chan.on .ic { color: var(--c); }

/* KPI-плитки */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line2); }
.tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--live)) 24%, transparent), transparent 70%); }
.tile .t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c, var(--live)); background: color-mix(in srgb, var(--c, var(--live)) 14%, transparent); }
.tile .t-v { margin-top: 14px; font: 700 30px/1 var(--mono); letter-spacing: -.05em; }
.tile .t-l { margin-top: 6px; color: var(--muted); font-size: 12.5px; }

/* графики */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 120px; margin-top: 6px; }
.hours i { display: block; min-height: 4px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--live), color-mix(in srgb, var(--live) 35%, transparent));
  transform-origin: bottom; animation: growY .7s var(--ease) both; animation-delay: calc(var(--i) * 18ms); opacity: .95; }
.hours i.z { background: var(--line2); opacity: .7; }
@keyframes growY { from { transform: scaleY(0); } }
.axis { display: flex; justify-content: space-between; color: var(--dim); font: 500 11px var(--mono); margin-top: 8px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 110px; }
.days > div { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; font: 500 11px var(--mono); color: var(--dim); }
.days i { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); min-height: 4px; transform-origin: bottom; animation: growY .8s var(--ease) both; }
.days b { color: var(--text2); font-weight: 600; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 148px; height: 148px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 15; }
.donut .seg { stroke-linecap: butt; transition: stroke-dasharray 1s var(--ease); }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .mid b { font: 700 28px/1 var(--mono); letter-spacing: -.05em; }
.donut .mid span { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.legend { display: grid; gap: 9px; min-width: 150px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend b { margin-left: auto; font: 600 13px var(--mono); }
.pbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); gap: 2px; }
.pbar i { display: block; background: var(--c); animation: growX .8s var(--ease) both; transform-origin: left; }
.pbar-l { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.pbar-l span { display: inline-flex; align-items: center; gap: 6px; } .pbar-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ── арена тапалки ── */
.arena { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line2); min-height: 380px; isolation: isolate;
  background: radial-gradient(600px 300px at 50% -10%, rgba(87,185,255,.12), transparent 70%), linear-gradient(180deg, var(--surface), var(--bg2)); }
.arena.hot { border-color: color-mix(in srgb, var(--live) 55%, transparent); box-shadow: 0 0 0 4px var(--live-soft), 0 30px 80px -30px rgba(87,185,255,.35); }
.arena.warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 14%, transparent); }
.arena.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--fc); } 100% { box-shadow: 0 0 0 40px transparent; } }
.arena-idle { display: grid; place-items: center; gap: 14px; text-align: center; padding: 44px 20px; }
.radar { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--line2); background: radial-gradient(circle, rgba(87,185,255,.10), transparent 70%); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid var(--line2); }
.radar::after { inset: 40%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(87,185,255,.0) 0deg, rgba(87,185,255,.38) 70deg, rgba(87,185,255,0) 71deg); animation: sweep 3s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); opacity: 0; animation: blip 3s infinite; }
@keyframes blip { 0%, 30% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.8); } }
.radar.off .sweep, .radar.off .blip { display: none; }
.arena-idle h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.arena-idle p { color: var(--muted); font-size: 13.5px; max-width: 420px; }
.arena-live { padding: 22px; display: grid; gap: 18px; animation: tapIn .35s var(--ease-spring); }
.arena-head { display: flex; align-items: center; gap: 16px; }
.timer-ring { position: relative; width: 74px; height: 74px; flex: none; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 6; }
.timer-ring .bg { stroke: var(--line2); }
.timer-ring .fg { stroke: var(--live); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.arena.warn .timer-ring .fg { stroke: var(--warn); }
.timer-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px var(--mono); letter-spacing: -.04em; }
.who-box { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.who-box img { width: 46px; height: 46px; border-radius: 12px; image-rendering: pixelated; background: var(--surface3); flex: none; }
.who-box .nm { font-size: 18px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-box .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bubble { position: relative; padding: 18px 20px; border-radius: 18px; background: #0b0d10; border: 1px solid var(--line2); font-size: clamp(16px, 2.3vw, 21px); line-height: 1.45; overflow-wrap: anywhere; min-height: 76px; display: flex; align-items: center; }
.bubble::before { content: "РД"; position: absolute; top: -9px; left: 16px; padding: 1px 8px; border-radius: 6px; background: var(--surface3); border: 1px solid var(--line2); font: 700 10.5px var(--mono); color: #ffaa00; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vbig { --c: var(--v-clean); position: relative; display: grid; gap: 4px; justify-items: start; align-content: space-between; min-height: 112px; padding: 14px; border-radius: 16px; text-align: left;
  color: var(--text); background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); overflow: hidden;
  transition: transform .15s var(--ease), background .2s, box-shadow .25s, opacity .25s; }
.vbig::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); transition: transform .3s var(--ease); }
.vbig:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 17%, var(--surface)); box-shadow: 0 16px 36px -18px var(--c); }
.vbig:hover::after { transform: scale(1.5); }
.vbig:active { transform: scale(.97); }
.vbig .ic { width: 24px; height: 24px; color: var(--c); }
.vbig b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.vbig small { color: var(--muted); font-size: 11.5px; }
.vbig kbd { position: absolute; top: 10px; right: 10px; }
.vbig[data-v="ban_3_days"] { --c: var(--v-mention); } .vbig[data-v="ban_93_days"] { --c: var(--v-ad); } .vbig[data-v="ban_podstrekanie"] { --c: var(--v-incite); }
.vbig.pressed { background: var(--c); color: #0b0d10; transform: scale(1.02); }
.vbig.pressed .ic, .vbig.pressed small { color: #0b0d10; }
.arena.sent .vbig:not(.pressed) { opacity: .25; pointer-events: none; }
.arena.nolive .vbig { opacity: .4; pointer-events: none; }
.arena-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.arena-foot span { display: inline-flex; align-items: center; gap: 6px; }
.arena-foot .grow { flex: 1; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 13px; background: color-mix(in srgb, var(--warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); color: #f1d594; }
.banner.bad { background: color-mix(in srgb, var(--bad) 9%, transparent); border-color: color-mix(in srgb, var(--bad) 28%, transparent); color: #ffb4aa; }
.session { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.session .tile { padding: 13px 15px; } .session .t-v { font-size: 24px; margin-top: 10px; }
.hist-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); animation: pageIn .35s var(--ease) both; }
.hist-row:first-child { border-top: 0; }
.hist-row .m { min-width: 0; font-size: 13.5px; } .hist-row .m b { color: var(--live); } .hist-row .m span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.hist-row .s { display: flex; align-items: center; gap: 8px; }
.hist-row time { font: 500 12px var(--mono); color: var(--dim); }
.secs { font: 600 11.5px var(--mono); color: var(--muted); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-card { padding: 18px; }
  .avatar-ring { width: 60px; height: 60px; border-radius: 18px; }
  .tile .t-v { font-size: 25px; }
  .session { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .session .t-l { font-size: 11px; }
  .arena-live { padding: 16px; }
  .arena-head { gap: 12px; } .timer-ring { width: 62px; height: 62px; } .timer-ring b { font-size: 19px; }
  .vbig { min-height: 96px; padding: 12px; } .vbig kbd { display: none; }
  .hist-row { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 14px; } .hist-row time { grid-column: 1 / -1; order: 3; }
  .hours { gap: 2px; }
}

/* Автопилот (user_plus.js): орбита статуса и более живые карточки графика */
.auto-orb { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; flex: none; color: var(--muted);
  background: var(--surface3); border: 1px solid var(--line2); position: relative; }
.auto-orb.on { color: #fff; background: linear-gradient(135deg, #a855f7, var(--live)); border-color: transparent; box-shadow: 0 0 0 0 rgba(168,85,247,.5); animation: orb 2.2s infinite; }
@keyframes orb { 70% { box-shadow: 0 0 0 16px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
.plus-page .help-status-banner { background: var(--surface); border-radius: var(--r-lg); }
.plus-page .sched-card { background: var(--surface); border-radius: var(--r-lg); border-color: var(--line); margin: 0 0 16px; }
.plus-page .day-chip.active { background: linear-gradient(160deg, color-mix(in srgb, var(--live) 28%, var(--surface2)), var(--surface2)); }
.plus-page .hour-tile.on { background: linear-gradient(160deg, color-mix(in srgb, var(--live) 30%, var(--surface2)), var(--surface2)); }
.plus-page .page, .plus-page { gap: 16px; }
.page { grid-template-columns: minmax(0, 1fr); }
.page > * { min-width: 0; }
.sched-calendar-strip { overflow-x: auto; max-width: 100%; }

/* Управление РД / SafeRd (тапалка) */
.ctl { padding: 14px 16px; display: grid; gap: 12px; }
.ctl-main { display: flex; align-items: center; gap: 12px; }
.ctl-ic { --c: var(--dim); width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: all .25s; }
.ctl-ic[data-state="on"] { --c: var(--ok); box-shadow: 0 0 18px -4px var(--ok); }
.ctl-ic[data-state="off"] { --c: var(--warn); }
.ctl-ic[data-state="offline"] { --c: var(--bad); }
.ctl-txt { flex: 1; min-width: 0; display: grid; }
.ctl-txt b { font-size: 14.5px; font-weight: 650; }
.ctl-txt span { color: var(--muted); font-size: 12.5px; }
.ctl-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.ctl-missed { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text2); user-select: none; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: var(--surface3); border: 1px solid var(--line2); transition: background .2s, border-color .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.sw input:checked + i { background: color-mix(in srgb, var(--ok) 30%, transparent); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.sw input:checked + i::after { transform: translateX(16px); background: var(--ok); }
.sw input:focus-visible + i { outline: 2px solid var(--live); outline-offset: 2px; }
.sw input:disabled + i { opacity: .5; }

/* Игровая статистика (/rd stats) */
.gs-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.gs-top > div { padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.gs-top span { color: var(--muted); font-size: 12px; }
.gs-top b { font: 650 17px var(--mono); overflow-wrap: anywhere; }
.gs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gs-block { display: grid; gap: 9px; }
.gs-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.gs-h b { color: var(--text); font: 650 14px var(--mono); }
.gs-row { display: grid; grid-template-columns: 8px 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.gs-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gs-row b { text-align: right; font: 600 13px var(--mono); }
.gs-bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gs-bar em { display: block; height: 100%; background: var(--c); border-radius: 4px; animation: growX .8s var(--ease) both; transform-origin: left; }

/* Telegram Mini App: свой заголовок у Telegram — наш делаем компактным */
.tg-app .topbar { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.tg-app .topbar .title p { display: none; }

@media (max-width: 560px) {
  .gs-top { grid-template-columns: 1fr 1fr; }
  .gs-top > div:last-child { grid-column: 1 / -1; }
  .gs-grid { grid-template-columns: 1fr; }
  .gs-row { grid-template-columns: 8px 96px 1fr 40px; }
  .ctl-missed { margin-left: 0; }
}
