/*
 * ЕДИНЫЙ ИСТОЧНИК ПРАВДЫ для стекла и цветовой темы UnitVR.
 * Все компоненты используют ТОЛЬКО эти CSS-переменные — никогда не хардкодят свои
 * rgba/blur/box-shadow значения локально. Правка стиля стекла = правка ЭТОГО файла,
 * изменение расходится по всему приложению автоматически (прямое требование Михаила, С151).
 *
 * История: рецепт менялся дважды за ночь С151 (см. reference-glass-canon-2026 в памяти
 * агента) — сначала окантовка/просвечивание были неверными, затем плотность 0.42 давала
 * либо тусклость, либо жёсткую окантовку при попытке компенсировать. Текущие значения —
 * финальные, подтверждённые Михаилом визуально на попапе поддержки.
 */

:root[data-theme="dark"] {
  --fg: #eceef2;
  --fg-dim: #a8abbc;
  --fg-mute: #7c8096;

  --scene:
    radial-gradient(circle at 78% -8%, rgba(255, 154, 77, .32), transparent 46%),
    radial-gradient(circle at 15% 108%, rgba(90, 140, 255, .24), transparent 46%),
    linear-gradient(160deg, #1c1408 0%, #0d0e14 55%, #08090e 100%);

  /* ===== ГЛАВНЫЕ ТОКЕНЫ СТЕКЛА (менять ТОЛЬКО здесь) ===== */
  --glass-bg: rgba(18, 18, 21, .72);
  --glass-img: linear-gradient(160deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 100%);
  --glass-blur: blur(30px) saturate(140%) brightness(1.0);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .32);
  --glass-radius: 18px;

  /* плотнее вариант для мелких элементов (тайлы игр, карточки шлемов) */
  --glass-tile-bg: rgba(20, 20, 24, .5);
  --glass-tile-blur: blur(18px) saturate(150%) brightness(1.02);
  /* С152 (3-й проход): раньше только верхний блик 1px — окантовка "исчезала" книзу
     карточки. inset 0 0 0 1px даёт РАВНОМЕРНЫЙ тонкий контур по всему периметру. */
  --glass-tile-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 5px 14px rgba(0, 0, 0, .24);
  --gfoot-gradient: linear-gradient(90deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.14) 100%);

  --glass-helm-bg: rgba(20, 20, 24, .48);
  --glass-helm-active-bg: rgba(38, 32, 26, .62);
  /* С152: контур 1.5px (было 1px — слишком тонко, читалось как "срезанное" рядом с
     несимметричной внешней тенью 0 5px). Внешняя тень заменена на симметричную
     0 0 14px, чтобы не создавать ложное ощущение перекоса выделенной карточки. */
  --glass-helm-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1.5px rgba(255, 154, 77, .55), 0 0 14px rgba(0, 0, 0, .22);

  /* окантовка попап-окон (поддержка/тариф/трансляция), С152 (3-й проход). История:
     0.86+blur(6px на оверлее) убило матовость (двойной конфликт backdrop-filter);
     откат на 0.45 оказался СЛИШКОМ слабым — "плохо видно саму рамку стекла и текст на
     ней" (Михаил). Средний баланс: плотность 0.62 (между крайностями), blur чуть выше,
     чтобы текст лучше читался поверх стекла, окантовка (нижняя тень) усилена — теперь
     рамка визуально отделяется от фона сама по себе, не полагаясь только на оверлей. */
  --glass-sup-bg: rgba(16, 16, 20, .62);
  --glass-sup-blur: blur(22px) saturate(160%) brightness(1.05);
  --glass-sup-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 32px rgba(0, 0, 0, .5);
  --sup-panel-bg: rgba(255, 255, 255, .96);
  --sup-panel-fg: #16171c;
  --sup-panel-fg-dim: #6b6d78;

  /* контейнер-обёртка правой колонки (KPI+таймер+библиотека) — один большой кусок
     тёмного стекла, внутри которого лежат светло-серые вставки (см. --inset-*) */
  --main-panel-bg: rgba(16, 16, 20, .58);
  --main-panel-blur: blur(28px) saturate(150%) brightness(1.0);
  --main-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 24px rgba(0, 0, 0, .3);
  --inset-bg: rgba(255, 255, 255, .045);
  --inset-border: rgba(255, 255, 255, .09);

  /* капсула подписи под обложкой игры (С152) — заметно светлее .inset-bg, ближе к
     референсу Stardog: явная светлая плашка, а не тонкая подложка того же тона */
  --gfoot-bg: rgba(255, 255, 255, .12);
  --gfoot-border: rgba(255, 255, 255, .16);

  /* С152: оверлей под модалками слегка размывает сцену за окном (Михаил — «попап теряется
     на фоне большого числа обложек игр»). ⚠️ Первая попытка (0.32 + blur 6px) в СУММЕ с
     поднятой плотностью самой панели убила матовость целиком — стекло перестало
     просвечивать. Плотность панели вернул к 0.72 (см. --glass-sup-bg), поэтому здесь
     оставляю МЯГКИЙ вариант: blur всего 3px, затемнение чуть выше исходного 0.18 — этого
     достаточно, чтобы окно отделялось от фона, но сцена всё ещё видна сквозь стекло. */
  --overlay-bg: rgba(8, 9, 16, .24);
  --overlay-blur: blur(3px);

  --chip: rgba(10, 10, 14, .45);
  /* ⭐⭐⭐⭐⭐ С180 (Михаил): «оранжевые кнопки как будто не бьются с текущим дизайном - логотип
     градиентный, там другие цвета». Так и есть: логотип переливается сине-фиолетовым, шапка и
     фон холодные, а кнопки были тёплыми оранжевыми - две разные темы на одном экране.
     Акцент берём ПРЯМО ИЗ ЛОГОТИПА (#8ab4ff → #b89bff): теперь главная кнопка выглядит
     продолжением фирменного знака, а не чужой наклейкой. Оранжевый остаётся, но в своей
     роли - как цвет внимания (заканчивается время, забита память), и от этого читается лучше:
     раз он больше не на каждой кнопке, глаз замечает его сразу. */
  --accent: #8ab4ff;
  --accent2: #b89bff;
  --accent-fg: #0d1017;
  --ok: #45e08a;
  --ok2: #35c9a0;
  --ok-fg: #06120c;
  --warn: #ffb066;
  --bad: #ff9fac;
  /* Единый радиус для кнопок и плиток. 13px - как у кнопок скачивания приложения, которые
     Михаил отметил отдельно: скруглённые, но не «таблетки». */
  --btn-radius: 13px;
}

:root[data-theme="light"] {
  --fg: #eef0f4;
  --fg-dim: #c2c7d2;
  --fg-mute: #9aa0ad;

  --scene:
    radial-gradient(circle at 72% 18%, rgba(210, 160, 110, .16), transparent 34%),
    radial-gradient(circle at 24% 30%, rgba(150, 175, 205, .14), transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(120, 140, 170, .12), transparent 42%),
    radial-gradient(circle at 40% 95%, rgba(190, 150, 110, .10), transparent 38%),
    linear-gradient(155deg, #2a2e36 0%, #1c1f26 45%, #14161c 100%);

  --glass-bg: rgba(50, 54, 62, .58);
  --glass-img: linear-gradient(150deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 42%, rgba(0, 0, 0, .03) 100%);
  --glass-blur: blur(26px) saturate(110%) brightness(1.0);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 28px rgba(0, 0, 0, .22);
  --glass-radius: 18px;

  --glass-tile-bg: rgba(46, 50, 58, .5);
  --glass-tile-blur: blur(18px) saturate(105%) brightness(1.0);
  --glass-tile-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px rgba(0, 0, 0, .18);
  --gfoot-gradient: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.18) 100%);

  --glass-helm-bg: rgba(46, 50, 58, .46);
  --glass-helm-active-bg: rgba(58, 62, 72, .6);
  --glass-helm-active-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1.5px rgba(255, 255, 255, .2), 0 0 16px rgba(0, 0, 0, .16);

  --glass-sup-bg: rgba(50, 54, 62, .58);
  --glass-sup-blur: blur(20px) saturate(130%) brightness(1.05);
  --glass-sup-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 28px rgba(0, 0, 0, .3);
  --sup-panel-bg: rgba(255, 255, 255, .97);
  --sup-panel-fg: #16171c;
  --sup-panel-fg-dim: #6b6d78;

  --main-panel-bg: rgba(40, 44, 52, .5);
  --main-panel-blur: blur(26px) saturate(120%) brightness(1.0);
  --main-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 22px rgba(0, 0, 0, .22);
  --inset-bg: rgba(255, 255, 255, .06);
  --inset-border: rgba(255, 255, 255, .12);
  --gfoot-bg: rgba(255, 255, 255, .16);
  --gfoot-border: rgba(255, 255, 255, .2);

  --overlay-bg: rgba(8, 9, 16, .24);
  --overlay-blur: blur(3px);

  --chip: rgba(10, 10, 14, .35);
  /* ⭐⭐⭐⭐⭐ С180 (Михаил): «оранжевые кнопки как будто не бьются с текущим дизайном - логотип
     градиентный, там другие цвета». Так и есть: логотип переливается сине-фиолетовым, шапка и
     фон холодные, а кнопки были тёплыми оранжевыми - две разные темы на одном экране.
     Акцент берём ПРЯМО ИЗ ЛОГОТИПА (#8ab4ff → #b89bff): теперь главная кнопка выглядит
     продолжением фирменного знака, а не чужой наклейкой. Оранжевый остаётся, но в своей
     роли - как цвет внимания (заканчивается время, забита память), и от этого читается лучше:
     раз он больше не на каждой кнопке, глаз замечает его сразу. */
  --accent: #8ab4ff;
  --accent2: #b89bff;
  --accent-fg: #0d1017;
  --ok: #45e08a;
  --ok2: #35c9a0;
  --ok-fg: #06120c;
  --warn: #ffb066;
  --bad: #ff9fac;
  /* Единый радиус для кнопок и плиток. 13px - как у кнопок скачивания приложения, которые
     Михаил отметил отдельно: скруглённые, но не «таблетки». */
  --btn-radius: 13px;
}

/* ===== БАЗОВЫЙ КЛАСС СТЕКЛА (используется всеми .glass-панелями) ===== */
.glass {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--glass-bg);
  background-image: var(--glass-img);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glass-shadow);
}

.glass-tile {
  background-color: var(--glass-tile-bg);
  backdrop-filter: var(--glass-tile-blur);
  -webkit-backdrop-filter: var(--glass-tile-blur);
  box-shadow: var(--glass-tile-shadow);
}

/* стекло попапа техподдержки — плотнее .glass (см. --glass-sup-* выше) */
.glass-sup {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--glass-sup-bg);
  backdrop-filter: var(--glass-sup-blur);
  -webkit-backdrop-filter: var(--glass-sup-blur);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--glass-sup-shadow);
}

/* контейнер-обёртка правой колонки — один большой кусок тёмного стекла (С152) */
.main-panel {
  position: relative;
  border-radius: var(--glass-radius);
  background-color: var(--main-panel-bg);
  backdrop-filter: var(--main-panel-blur);
  -webkit-backdrop-filter: var(--main-panel-blur);
  box-shadow: var(--main-panel-shadow);
}

/* С152: светло-серые вставки внутри тёмного стекла (по образцу референса Stardog —
   большая тёмная стеклянная область, внутри которой лежат светлые под-панели с мягкой
   серой окантовкой). Используется для таймера/библиотеки игр внутри .main-panel. */
.inset-panel {
  border-radius: 16px;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
}
/* компактные чипы-теги (по образцу «Seekingalpha/CNBC» на референсе) для KPI */
.chip-tag {
  border-radius: 100px;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
}

/* grain — то, что отличает матовое стекло от чистого (см. reference-glass-canon-2026) */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: overlay;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-1, #0d0e14);
  color: var(--fg);
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -.01em; }
p { margin: 0; color: var(--fg-dim); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
input, select {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--accent); }
input::placeholder { color: var(--fg-mute); }

.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s, background .15s;
}
.password-toggle:hover { opacity: 1; background: rgba(255, 255, 255, .06); }

:root[data-theme="dark"] { --bg-2: #1c1408; }

.site-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -8%, rgba(255, 154, 77, .22), transparent 46%),
    radial-gradient(circle at 15% 108%, rgba(90, 140, 255, .18), transparent 46%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 55%, #08090e 100%);
}

/* ===== Buttons (shared with site/app) ===== */
/* ⭐⭐⭐⭐⭐ С180 (Михаил): единый язык кнопок. Было: «таблетки» с полным скруглением и тёплый
   оранжевый градиент, спорящий с холодным фирменным стилем. Стало: скругление как у кнопок
   скачивания приложения (их Михаил отметил отдельно) и акцент из логотипа. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  white-space: nowrap;
  background: rgba(255, 255, 255, .04);
  color: inherit;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { color: var(--fg-dim); background: none; }
.btn-ghost:hover { color: var(--fg); border-color: rgba(255, 255, 255, .22); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--accent-fg);
  border: none;
  font-weight: 600;
}
.btn-accent:hover { filter: brightness(1.06); }
/* ⭐ С180 (Михаил): «если модуль подключён - должна быть зелёная кнопка, а не серая
   нейтральная». Зелёный здесь означает состояние «уже работает», а не действие - поэтому он
   спокойный, без градиента: подтверждение, а не призыв нажать. */
.btn-ok {
  background: rgba(69, 224, 138, .14);
  border-color: rgba(69, 224, 138, .35);
  color: var(--ok);
  font-weight: 600;
}
.btn-ok:hover { background: rgba(69, 224, 138, .2); }
.btn-block { width: 100%; }
.btn-danger { color: var(--bad); border-color: rgba(255, 159, 172, .3); background: none; }

/* ===== Logo ===== */
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text {
  background: linear-gradient(100deg, #8ab4ff 0%, #b89bff 25%, #ffb066 50%, #b89bff 75%, #8ab4ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shimmer 6s ease-in-out infinite;
}
@keyframes logo-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) { .logo-text { animation: none; } }

/* ===== Auth screens (login/register/forgot) ===== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo .logo { font-size: 20px; }
.auth-logo svg { width: 34px; height: 34px; }
.auth-title { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 13.5px; text-align: center; margin-bottom: 26px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 12.5px; color: var(--fg-mute); }
.auth-error {
  font-size: 13px;
  color: var(--bad);
  background: rgba(255, 159, 172, .08);
  border: 1px solid rgba(255, 159, 172, .2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--fg-mute);
  margin: 4px 0 18px;
  line-height: 1.5;
}
.auth-check input { margin-top: 3px; flex-shrink: 0; }
.auth-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.auth-check a:hover { color: var(--accent2); }
.auth-footer { text-align: center; font-size: 13px; color: var(--fg-mute); margin-top: 18px; }
.auth-footer a { color: var(--accent); }

/* ===== App shell (sidebar + content) ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar .logo { padding: 6px 10px 22px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-dim);
}
.side-link:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.side-link.active { color: var(--fg); background: rgba(255, 154, 77, .1); }
.side-link .si { width: 18px; text-align: center; flex-shrink: 0; }
.side-spacer { flex: 1; }
.side-club-picker {
  margin-bottom: 10px;
  padding: 4px;
}

/* Ограничение по образцу сайта-витрины (см. unitvr/site) - без max-width контент растягивался
   почти во весь широкий монитор, из-за чего строки/карточки выглядели неоправданно длинными
   с пустотой справа (Михаил, С153). 960px хватает под grid-4/grid-2 без сжатия колонок. */
.content { flex: 1; min-width: 0; max-width: 960px; padding: 28px 36px 60px; }
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.content-header h1 { font-size: 24px; }
.content-header p { font-size: 13.5px; margin-top: 4px; }

/* ===== Cards / grids ===== */
/* ⭐⭐⭐⭐⭐ С180 (Михаил): «у каждого блока должна быть окантовка - у тарифов её вообще нет».
   Раньше .card задавал только внутренние отступы, а фон и рамку давал отдельный класс стекла:
   стоило забыть его дописать - блок растворялся в фоне, как это и вышло на новой странице
   тарифов. Теперь .card самодостаточен: любой блок сразу выглядит блоком. */
.card {
  padding: 22px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
}
/* Стекло поверх карточки перекрывает эту подложку своим фоном - двойного слоя не возникает. */
.card.glass { background-color: var(--glass-bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* ⭐ С180: плитка с числом - ОДИН класс на весь кабинет (обзор, тарифы, статистика). Раньше
   такие плитки рисовались на каждой странице заново своими стилями, и они разъезжались. */
.kpi-card, .stat-card {
  padding: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}
.kpi-num, .stat-num { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-num.accent, .stat-num.accent { color: var(--accent); }
.stat-num.ok { color: var(--ok); }
.stat-num.warn { color: var(--warn); }
.kpi-label, .stat-label { font-size: 12px; color: var(--fg-mute); margin-top: 4px; }

.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-mute); margin-bottom: 12px; }

/* ===== Tables / lists ===== */
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}
.list-row + .list-row { margin-top: 8px; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 14px; font-weight: 500; }
.list-row .lr-sub { font-size: 12px; color: var(--fg-mute); margin-top: 2px; }
/* С173: обёртка строки+раскрытой панели деталей платежа - тот же отступ между записями,
   что был у .list-row напрямую, но теперь строка не всегда последний элемент в группе. */
.list-row-wrap + .list-row-wrap { margin-top: 8px; }
.list-row-wrap .list-row { margin-top: 0; }
.list-row-wrap .card { margin-top: 8px; }


.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.badge-ok { background: rgba(126, 230, 160, .12); color: var(--ok); }
.badge-warn { background: rgba(255, 209, 128, .14); color: var(--warn); }
.badge-bad { background: rgba(255, 159, 172, .12); color: var(--bad); }
.badge-mute { background: rgba(255, 255, 255, .06); color: var(--fg-mute); }
/* С173 (Михаил): бесплатные/демо-платежи отличать от реально оплаченных - не зелёный "деньги
   получены", а голубой "бесплатно по условиям тарифа". */
.badge-info { background: rgba(125, 200, 255, .14); color: #7dc8ff; }

/* ===== Plan cards ===== */
/* С185 (Михаил): «плашки должны выглядеть более презентабельно» - крупнее отступы, разделители
   между блоками (цена/функции/шлемы), явный статус вместо одной только рамки. */
.plan-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 20px;
}
.plan-card.current { border: 1px solid rgba(255, 154, 77, .4); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-title { font-size: 17px; font-weight: 700; }
.plan-price { font-size: 30px; font-weight: 700; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--fg-mute); }
.plan-divider { height: 1px; background: rgba(255, 255, 255, .08); }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--fg-dim); }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; }
.pf-check { color: var(--ok); font-weight: 700; flex-shrink: 0; }

/* Степпер количества шлемов - плюс/минус вместо голого number-инпута (С185, Михаил). */
.helmet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.helmet-row-label { font-size: 13px; color: var(--fg-mute); }
.helmet-row-hint { font-size: 11.5px; color: var(--fg-mute); margin-top: -8px; }
.helmet-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 100px;
  padding: 4px;
  background: rgba(255, 255, 255, .03);
  flex-shrink: 0;
}
.stepper-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .06);
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease;
}
.stepper-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.stepper-num {
  /* global `input { padding: 11px 14px }` (layout.css:20) съедал почти всю ширину поля -
     цифра "10" обрезалась справа (Михаил, С185, скриншот). Сбрасываем паддинг/рамку явно. */
  width: 46px;
  padding: 0;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: none;
  border: none;
  color: var(--fg);
}
.stepper-num::-webkit-inner-spin-button, .stepper-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-num[type=number] { -moz-appearance: textfield; }

/* Итог - крупная, живая цифра при пересчёте (С185: «чтобы это было более крупными цифрами»).
   Колонкой, а не строкой - при длинной подписи ("Итого за N шлем(ов) / 30 дней") в строку с
   ценой оба переносились по отдельности и разъезжались вкривь. Так же цифра крупнее и заметнее. */
.plan-total { display: flex; flex-direction: column; gap: 4px; }
.plan-total-label { font-size: 12px; color: var(--fg-mute); }
.plan-total-num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Modal (create club / new ticket) ===== */
.ov {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 9, 16, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ov.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 420px; padding: 26px; margin: 20px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-h b { font-size: 16px; }
.modal .x { background: none; border: none; color: var(--fg-mute); font-size: 16px; cursor: pointer; }

/* ===== Reveal-once secret (new club password) ===== */
.reveal-box {
  background: rgba(255, 154, 77, .08);
  border: 1px solid rgba(255, 154, 77, .25);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--fg-dim);
}
.reveal-box .rb-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.reveal-box .rb-val { font-family: monospace; font-size: 13px; color: var(--fg); }

/* ===== Учётные данные клуба (логин планшета/пароль/аварийный код) - постоянно открыты
   владельцу, компактный ряд label+значение+иконка-действие вместо отдельной кнопки-раскрытия */
.cred-box {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 4px 14px;
  display: flex;
  flex-direction: column;
}
.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.cred-row:last-of-type { border-bottom: none; }
.cred-label { font-size: 12px; color: var(--fg-mute); width: 120px; flex-shrink: 0; }
.cred-val { font-family: monospace; font-size: 13px; color: var(--fg); flex: 1; letter-spacing: .02em; }
.cred-val-plain { font-family: inherit; }
.cred-copy {
  background: none; border: none; color: var(--fg-mute); cursor: pointer; font-size: 14px;
  padding: 4px 6px; border-radius: 6px; flex-shrink: 0; line-height: 1;
}
.cred-copy:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.cred-input {
  flex: 0 0 auto; font-family: monospace; font-size: 13px; letter-spacing: .1em; color: var(--fg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px; padding: 4px 8px; width: 70px; outline: none;
}

/* ===== История аварийного доступа - сворачиваемый журнал под учётными данными клуба ===== */
.emg-log { display: flex; flex-direction: column; }
.emg-log-toggle {
  align-self: flex-start; background: none; border: none; color: var(--fg-mute); cursor: pointer;
  font-size: 12px; font-family: inherit; padding: 4px 0;
}
.emg-log-toggle:hover { color: var(--fg-dim); }
.emg-log-empty { font-size: 12px; color: var(--fg-mute); padding: 8px 0; }
/* ⭐ С179: удаление клуба - намеренно НЕяркая кнопка внизу карточки. Действие необратимое и
   редкое, оно не должно соперничать за внимание с рабочими кнопками (пароль, скачать APK);
   красный проявляется только при наведении, чтобы случайно не притягивать палец. */
.club-delete {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; color: var(--fg-mute); padding: 4px 2px;
}
.club-delete:hover { color: #ff8080; }
.club-delete:disabled { opacity: .5; cursor: default; }
.emg-log-list { display: flex; flex-direction: column; margin-top: 4px; }
.emg-log-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.emg-log-row:last-child { border-bottom: none; }
.emg-log-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.emg-log-dot-unlocked { background: var(--warn); }
.emg-log-dot-relocked { background: var(--ok); }
.emg-log-dot-attempt_failed { background: var(--bad); }
.emg-log-text { flex: 1; color: var(--fg-dim); }
.emg-log-time { color: var(--fg-mute); flex-shrink: 0; }

/* ===== Ссылка скачивания APK - компактная, не растянутая на всю ширину карточки ===== */
.apk-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12.5px; color: var(--fg-dim); text-decoration: none;
  padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .1);
  transition: all .15s;
}
.apk-link:hover { color: var(--fg); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: rgba(20, 20, 30, .94);
  backdrop-filter: blur(9px); color: #eaeaf2; padding: 11px 20px; border-radius: 100px; font-size: 12px;
  opacity: 0; transition: all .3s; z-index: 60; pointer-events: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== С158: Магазин модулей — App Store-стиль по образцу AURORA (08-store.js) ===== */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mod-card { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s; }
.mod-card:hover { transform: translateY(-2px); }
.mod-card-media {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(255,154,77,.16), rgba(255,154,77,.04));
}
.mod-card-ic { font-size: 40px; }
.mod-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.mod-card-title { font-size: 15px; font-weight: 600; }
.mod-card-price { font-size: 13px; color: var(--fg-mute); }

.mod-detail { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 0; position: relative; }
.mod-detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 15px;
  border: none; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 14px;
}
.mod-detail-hero {
  aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(255,154,77,.22), rgba(255,154,77,.05));
}
.mod-detail-hero-ic { font-size: 64px; }
.mod-detail-body { padding: 22px 26px 28px; }
.mod-detail-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-mute); margin-bottom: 6px; }
.mod-detail-title { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.mod-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mod-detail-price { font-size: 18px; font-weight: 600; }
.mod-detail-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mod-detail-tab {
  background: none; border: none; padding: 10px 4px; margin-right: 14px; font-size: 13.5px; color: var(--fg-mute);
  cursor: pointer; border-bottom: 2px solid transparent;
}
.mod-detail-tab.active { color: var(--fg); border-bottom-color: var(--accent); }
.mod-detail-desc { font-size: 13.5px; line-height: 1.55; color: var(--fg-dim); margin-bottom: 18px; }

/* С158 (Михаил): «галерея» — как будет выглядеть модуль вживую, листаемая лента иллюстраций
   реального интерфейса (по образцу m.shots в AURORA 08-store.js), НЕ скриншоты кода/консоли. */
.mod-shots { display: flex; gap: 12px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
.mod-shot { flex: 0 0 auto; width: 130px; }
.mod-shot-art { width: 130px; aspect-ratio: 220 / 260; border-radius: 12px; overflow: hidden; }
.mod-shot-cap { font-size: 11px; color: var(--fg-mute); margin-top: 6px; text-align: center; }
/* ⭐⭐⭐⭐⭐ С182, ОБРАЗЦЫ ЗВУКА (просьба Михаила): владелец слушает реальные фразы ДО покупки -
   это главный аргумент за модуль, описанием голос не передашь. Список строк-кнопок: слева
   значок воспроизведения, справа когда звучит и что именно говорится. */
.sound-samples { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.sound-samples-h { font-size: 12px; font-weight: 600; color: var(--fg-dim); margin-bottom: 2px; }
.sound-sample {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--chip); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font-family: inherit; color: var(--fg);
  transition: border-color .15s, background .15s;
}
.sound-sample:hover { border-color: rgba(255, 255, 255, .28); }
.sound-sample-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #17151c;
}
.sound-sample-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sound-sample-when { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .03em; }
.sound-sample-text { font-size: 13px; color: var(--fg); }
/* ⭐⭐⭐⭐⭐ С182: переключатели звуков для купленного модуля. Строка-кнопка целиком кликабельна -
   на планшете попадать пальцем в маленький ползунок неудобно. */
.sound-toggles { margin: 6px 0 18px; display: flex; flex-direction: column; gap: 14px; }
.sound-toggles-hint { font-size: 12px; color: var(--fg-mute); margin-bottom: 14px; }
.sound-toggle-group { display: flex; flex-direction: column; gap: 8px; }
.sound-toggle-group-h { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .04em; }
.sound-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  background: var(--chip); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font-family: inherit; color: var(--fg); text-align: left;
}
.sound-toggle-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sound-toggle-switch {
  flex-shrink: 0; width: 40px; height: 22px; border-radius: 999px; position: relative;
  background: rgba(255, 255, 255, .16); transition: background .18s;
}
.sound-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .18s;
}
.sound-toggle.on .sound-toggle-switch { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.sound-toggle.on .sound-toggle-knob { transform: translateX(18px); }
.sound-toggle:disabled { opacity: .6; cursor: default; }

.feat-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.feat-item { display: flex; gap: 12px; align-items: flex-start; }
.feat-ico { font-size: 20px; flex-shrink: 0; width: 32px; text-align: center; }
.feat-t { font-size: 13.5px; font-weight: 500; }
.feat-d { font-size: 12px; color: var(--fg-mute); margin-top: 2px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cell { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.info-cell .k { font-size: 10.5px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .04em; }
.info-cell .v { font-size: 13px; margin-top: 3px; }

.install-steps { display: flex; flex-direction: column; gap: 16px; }
.install-step { display: flex; gap: 14px; }
.is-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,154,77,.15);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600;
}
.is-t { font-size: 13.5px; font-weight: 500; }
.is-d { font-size: 12px; color: var(--fg-mute); margin-top: 3px; line-height: 1.4; }

/* ⭐⭐⭐⭐⭐ С173: инструкция UnitVR - оглавление-ссылки + разделы + места под скриншоты.
   См. account/src/pages/Instructions.jsx и app/src/components/InstructionsModal.jsx (те же
   классы работают в обоих местах - планшетная разметка чуть компактнее по отступам). */
.instr-toc { margin-bottom: 20px; }
.instr-toc-title { font-size: 14px; display: block; margin-bottom: 12px; color: var(--fg); }
.instr-toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.instr-toc-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-dim);
  padding: 6px 8px; border-radius: 8px; text-decoration: none; transition: background .12s, color .12s;
}
.instr-toc-link:hover { background: rgba(255,255,255,.05); color: var(--fg); }
.instr-toc-icon { flex-shrink: 0; width: 18px; text-align: center; }

.instr-section { margin-bottom: 14px; padding: 0; overflow: hidden; }
.instr-section-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 18px 22px;
  background: none; border: none; cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.instr-section-head h3 { margin: 0; flex: 1; color: var(--accent); }
.instr-section-icon { font-size: 18px; }
.instr-section-caret { color: var(--fg-mute); font-size: 13px; }
.instr-section-body { padding: 0 22px 20px; }
.instr-intro { font-size: 12.5px; color: var(--fg-mute); margin: -4px 0 14px; line-height: 1.5; }

.instr-item { margin-bottom: 16px; }
.instr-item:last-child { margin-bottom: 0; }
/* С185 (Михаил): было наоборот (яркий жирный заголовок, тусклый текст) - поменяли местами,
   чтобы сама подсказка (самое важное - что делать) читалась легче, а заголовок был вспомогательным. */
.instr-item b { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 4px; color: var(--fg-mute); }
.instr-item p { font-size: 13px; color: var(--fg); line-height: 1.55; margin: 0; }
/* С173 (прямое требование Михаила «написать красным текстом»): пункт про сторонние
   лаунчеры и любые другие критичные предупреждения выделяются заметно, не теряются в потоке. */
.instr-item-important { padding: 12px 14px; border-radius: 10px; background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.25); }
.instr-item-important b { color: #ff5a5a; }

.instr-shot-slot {
  margin-top: 10px; border: 1.5px dashed rgba(255,255,255,.16); border-radius: 12px;
  padding: 22px 16px; text-align: center; background: rgba(255,255,255,.02);
}
.instr-shot-slot-icon { font-size: 24px; opacity: .5; margin-bottom: 8px; }
.instr-shot-slot-desc { font-size: 12px; color: var(--fg-mute); line-height: 1.5; max-width: 480px; margin: 0 auto; }
.instr-shot-slot-file { font-size: 10.5px; color: var(--fg-mute); opacity: .6; margin-top: 8px; font-family: monospace; }
.instr-shot-ready { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.instr-shot-ready img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .sidebar .logo { display: none; }
  .side-spacer { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 20px; }
  .instr-toc-grid { grid-template-columns: 1fr; }
}

/* ⭐⭐⭐⭐⭐ С180 (Михаил): шлемы клуба - отдельный блок под клубом, каждый шлем полноценной
   карточкой, как на планшете. Было: свёрнутый список строк, где прошивка, версия, память и
   заряд шли одной фразой через точки - чтобы найти нужное, глаз каждый раз перебирал всю
   строку. В карточке у каждого показателя постоянное место, и парк читается с одного взгляда. */
.hlm-section { margin-top: 14px; }
.hlm-section-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.hlm-section-count {
  font-size: 11.5px; font-weight: 500; color: var(--muted, #8a90a0);
  background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 1px 8px;
}
/* Сетка сама решает, сколько карточек в ряд: на широком экране их несколько, на телефоне -
   одна. Минимум 210px - ниже названия шлемов начинают переноситься и карточка «плывёт». */
.hlm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hlm-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 12px 14px;
}
.hlm-card-head { display: flex; align-items: baseline; gap: 8px; }
.hlm-card-name { font-size: 13.5px; font-weight: 600; }
.hlm-card-state { margin-left: auto; font-size: 11px; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* Цвета те же, что на планшете у администратора: зелёный - идёт игра, спокойный - свободен,
   приглушённый - шлем не в сети. Один язык сигналов на всех экранах. */
.hlm-card-state.is-busy { background: rgba(69, 224, 138, .15); color: #45e08a; }
.hlm-card-state.is-free { background: rgba(138, 180, 255, .15); color: #8ab4ff; }
.hlm-card-state.is-off { background: rgba(255, 255, 255, .07); color: var(--muted, #8a90a0); }
.hlm-card-model { font-size: 11.5px; color: var(--muted, #8a90a0); margin: 2px 0 10px; }
.hlm-card-rows { display: flex; flex-direction: column; gap: 5px; }
.hlm-card-row { display: flex; align-items: baseline; font-size: 12px; }
.hlm-card-row span { color: var(--muted, #8a90a0); }
.hlm-card-row b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.hlm-card-row b.is-warn { color: #ff9f43; }
.hlm-card-dim { color: var(--muted, #8a90a0); font-weight: 400; }
.hlm-card-warn { margin-top: 8px; font-size: 11px; line-height: 1.45; color: #ff9f43; }
.hlm-archived { margin-top: 10px; font-size: 11.5px; color: var(--muted, #8a90a0); }

/* ⭐⭐⭐⭐⭐ С180 (Михаил): окно подробной статистики шлема поверх кабинета. Фон РАЗМЫВАЕТСЯ, а не
   закрашивается: владелец видит, откуда пришёл, и не теряет место на странице клуба. */
.hlm-card-stats {
  width: 100%; margin-top: 10px; padding: 7px 10px; font-size: 12px;
  border-radius: 10px; cursor: pointer;
  background: rgba(138, 180, 255, .12); border: 1px solid rgba(138, 180, 255, .25); color: #8ab4ff;
}
.hlm-card-stats:hover { background: rgba(138, 180, 255, .2); }

.stats-ov {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 8, 14, .55); backdrop-filter: blur(6px);
}
.stats-win {
  width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  background: #12151f; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px 22px;
}
.stats-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.stats-title { font-size: 17px; font-weight: 600; }
.stats-sub { font-size: 12px; color: var(--muted, #8a90a0); margin-top: 2px; }
.stats-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: none; color: var(--muted, #8a90a0); font-size: 14px;
}
.stats-close:hover { background: rgba(255, 255, 255, .13); }

.stats-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.stats-chip {
  padding: 6px 12px; font-size: 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; color: var(--muted, #8a90a0);
}
.stats-chip.on { background: rgba(138, 180, 255, .16); color: #8ab4ff; border-color: rgba(138, 180, 255, .3); }
.stats-dates { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.stats-dates input {
  padding: 5px 8px; font-size: 12px; border-radius: 9px; color-scheme: dark;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: inherit;
}
.stats-dash { color: var(--muted, #8a90a0); }

.stats-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
/* Плитки в окне статистики - общий класс .stat-card (см. «Карточки» выше), только компактнее:
   в окне меньше места, чем на странице обзора. */
.stats-totals .stat-card { padding: 12px 14px; text-align: center; }
.stats-totals .stat-num { font-size: 20px; }

.stats-h { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.stats-empty { font-size: 12.5px; color: var(--muted, #8a90a0); padding: 10px 0; }
.stats-days { display: flex; flex-direction: column; gap: 4px; }
.stats-day { display: flex; align-items: baseline; font-size: 12.5px; }
.stats-day b { margin-left: auto; font-weight: 600; }

.stats-list { display: flex; flex-direction: column; gap: 8px; }
.stats-session { background: rgba(255, 255, 255, .035); border-radius: 12px; padding: 10px 12px; }
.stats-session-head { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.stats-session-time { font-weight: 600; }
.stats-session-dur { margin-left: auto; font-variant-numeric: tabular-nums; }
.stats-games { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.stats-game { display: flex; align-items: baseline; gap: 10px; }
.stats-game span:last-child { margin-left: auto; }
.stats-dim { color: var(--muted, #8a90a0); font-weight: 400; }
.stats-emg {
  display: flex; align-items: baseline; gap: 10px; font-size: 12.5px;
  background: rgba(255, 159, 67, .08); border-radius: 10px; padding: 8px 12px;
}
.stats-emg span:last-child { margin-left: auto; }

@media (max-width: 560px) {
  .stats-totals { grid-template-columns: 1fr; }
  .stats-dates { margin-left: 0; width: 100%; }
}

/* ⭐⭐⭐⭐⭐ С180 (Михаил): тарифы клуба - владелец задаёт время и цену, планшет показывает
   оператору только время. Таблица нарочно простая: две колонки и крестик, никаких выпадающих
   списков - это настройка «на пять минут раз в полгода», а не рабочий инструмент. */
.trf-hint {
  font-size: 12.5px; line-height: 1.5; color: var(--muted, #8a90a0);
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.trf-table { display: flex; flex-direction: column; gap: 8px; }
.trf-head, .trf-row { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 10px; align-items: center; }
.trf-head { font-size: 11.5px; color: var(--muted, #8a90a0); padding: 0 2px; }
.trf-field {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.trf-field input {
  width: 100%; background: none; border: none; outline: none; color: inherit;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.trf-unit { font-size: 12px; color: var(--muted, #8a90a0); }
.trf-del {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: none; color: var(--muted, #8a90a0);
}
.trf-del:hover { background: rgba(255, 90, 90, .15); color: #ff5a5a; }
.trf-actions { display: flex; gap: 10px; margin-top: 16px; }
.trf-actions .btn-primary { margin-left: auto; }

/* ⭐⭐⭐⭐⭐ С180 (Михаил): «кнопки скачать программы поднять над карточками клубов и сделать
   более заметными». Раньше это была неприметная ссылка внизу каждой карточки - и повторялась
   столько раз, сколько у владельца клубов. Теперь одна полоса вверху страницы: слева коротко
   что это и куда вводить адрес в шлеме, справа две крупные кнопки с номером версии. */
/* ⭐ С180 (Михаил: «окошко приложения для шлемов отличается от других окошек»): блок больше не
   рисует себе собственный фон и рамку - он обычная карточка кабинета, как все остальные.
   Отличаться должно СОДЕРЖИМОЕ (крупные цветные кнопки), а не сама коробка. */
.apk-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 18px;
}
.apk-bar-text { flex: 1; min-width: 260px; }
.apk-bar-title { font-size: 14.5px; font-weight: 600; }
.apk-bar-sub { font-size: 12.5px; line-height: 1.5; color: var(--muted, #8a90a0); margin-top: 4px; }
.apk-bar-sub b { color: var(--fg, #e9ecf5); font-weight: 600; }
.apk-bar-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* Кнопка намеренно крупная и «кнопочная», а не ссылка: это первое действие нового владельца,
   и он должен находить его без объяснений. */
.apk-big {
  display: flex; align-items: center; gap: 10px; min-width: 168px;
  padding: 11px 16px; border-radius: var(--btn-radius); text-decoration: none;
  background: #8ab4ff; color: #0a0c12; font-weight: 600;
  transition: transform .12s ease, filter .12s ease;
}
.apk-big:hover { filter: brightness(1.06); transform: translateY(-1px); }
.apk-big-meta { background: #b89bff; }
.apk-big-ico { font-size: 17px; }
.apk-big b { display: block; font-size: 14px; }
/* Версия помельче и в одну строку с названием: владелец сравнивает её с номером на самом
   шлеме и решает, нужно ли вообще что-то ставить. */
.apk-big i { display: block; font-size: 11.5px; font-style: normal; opacity: .75; margin-top: 1px; }

/* ===== Печать публичной оферты в PDF (кнопка "Скачать как PDF") ===== */
/* ⭐⭐⭐⭐⭐ С183: мастер первых шагов — маленькое перетаскиваемое окно поверх кабинета, а не
   модалка на весь экран (Михаил: «не сильно большое поп-ап окно, но чтобы информация
   помещалась», «могу передвинуть куда мне нужно»). Фиксированное позиционирование по
   умолчанию в правом нижнем углу — там же, где живёт чат техподдержки, безопасное место,
   не перекрывает основной контент сразу при входе. */
.onboarding-wizard {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.onboarding-important { box-shadow: 0 0 0 1px rgba(255, 176, 102, .45), var(--glass-sup-shadow); }
.onboarding-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  cursor: grab;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.onboarding-head:active { cursor: grabbing; }
.onboarding-drag-hint { color: var(--fg-mute); font-size: 13px; letter-spacing: -2px; }
.onboarding-step-count { font-size: 12.5px; color: var(--fg-mute); flex: 1; }
.onboarding-x {
  background: none; border: none; color: var(--fg-mute); font-size: 15px; cursor: pointer;
  width: 24px; height: 24px; border-radius: 8px; line-height: 1;
}
.onboarding-x:hover { background: rgba(255, 255, 255, .1); color: var(--fg); }
.onboarding-body { padding: 14px; }
/* С185 (Михаил): тот же принцип, что и в инструкции - заголовок серым и жирным, сама
   подсказка (самое важное) - белым, максимально читаемым. Было наоборот. */
.onboarding-body h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--fg-mute); }
.onboarding-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg); }
.onboarding-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
}
.onboarding-foot .btn { padding: 7px 12px; font-size: 13px; }
.onboarding-dots { display: flex; gap: 5px; flex: 1; justify-content: center; }
.onboarding-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.onboarding-dot.done { background: var(--accent); }
.onboarding-dot.active { background: var(--accent2); transform: scale(1.3); }

@media print {
  .no-print { display: none !important; }
  .offer-page {
    background: #fff !important;
    padding: 0 !important;
    display: block !important;
  }
  .offer-page .card {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #000 !important;
    max-width: none !important;
  }
  .offer-page .card::after { display: none !important; } /* grain-оверлей */
  .offer-page h1, .offer-page h3 { color: #000 !important; }
  .offer-page p { color: #111 !important; }
}
