/* ═══════════════════════════════════════════════════════════════════════════
   BunkerFeed — портал данных. Оформление.

   Правило номер один: этот файл меняет ТОЛЬКО внешний вид. Каждый селектор,
   к которому обращается app.js (id, класс-якорь, data-атрибут), сохранён —
   контракт вёрстки зафиксирован отдельно и проверяется скриптом.

   Устройство: сначала токены (:root), дальше база, дальше поверхности в том
   же порядке, в каком пользователь их встречает — витрина, вход, кабинет,
   разделы, аккаунт, модалки, плееры, плавающие элементы, брейкпоинты.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Шрифт. Self-hosted: ни одного внешнего origin, иначе портал зависел бы
   от чужого CDN и светил бы туда IP посетителей. Переменное начертание —
   один файл на все веса. Кириллица и латиница разнесены по unicode-range,
   поэтому русскому посетителю латинский файл нужен только под цифры и
   пунктуацию, а не целиком «на всякий случай». ────────────────────────── */
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Токены ──────────────────────────────────────────────────────────────
   ⚠️ Имена --bg / --panel / --gold / --text / --muted / --err менять нельзя:
   на них завязаны инлайновые стили в index.html и строковый блок стилей
   видеовкладки внутри app.js. Новые токены добавлены рядом.              */
:root {
  color-scheme: dark;

  /* Базовые (совместимость) */
  --bg: #0B0B0F;
  --panel: #15151B;
  --gold: #E3B75A;
  --text: #ECECF1;
  --muted: #9A9AA8;
  --err: #F0685F;

  /* Поверхности по глубине */
  --surface-0: #0B0B0F;
  --surface-1: #101015;
  --surface-2: #15151B;
  --surface-3: #1B1B23;
  --surface-4: #22222C;
  --inset: #0D0D12;

  /* Линии. Полупрозрачные, а не сплошные: одинаково читаются на любой
     поверхности, поэтому карточка в карточке не даёт «грязной» рамки. */
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .2);

  /* Текст */
  --text-2: #C3C3CE;
  /* ⚠️ Не темнее: на панели это ровно граница AA (4.8:1). Прежний #6A6A79
     давал 3.4 — мелкие подписи читались с трудом. */
  --faint: #82828F;

  /* Золото — рампа, а не один тон */
  --gold-hi: #F4D68F;
  --gold-lo: #B98A2C;
  --gold-grad: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 45%, #D2A244 100%);
  --gold-a08: rgba(227, 183, 90, .08);
  --gold-a14: rgba(227, 183, 90, .14);
  --gold-a24: rgba(227, 183, 90, .24);
  --gold-a40: rgba(227, 183, 90, .40);
  --on-gold: #17131C;

  /* Статусы */
  --ok: #5BD48F;
  --ok-a12: rgba(91, 212, 143, .12);
  --ok-a35: rgba(91, 212, 143, .35);
  --err-a12: rgba(240, 104, 95, .12);
  --err-a35: rgba(240, 104, 95, .35);
  --warn: #E6BE63;
  /* Красный «в эфире» разведён на два: --live читается ТЕКСТОМ на тёмном
     (5.9:1), --live-bg держит белый текст на себе (4.7:1). Один тон обе
     роли вытянуть не может — светлый проваливает подложку, тёмный текст. */
  --live: #FF5A5A;
  --live-bg: #D63C3C;

  /* Геометрия. Все отступы кратны 4 — от этого линии и совпадают. */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Тени: мягкие, многослойные, без чёрных «ореолов» */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .38);
  --sh-2: 0 4px 14px -4px rgba(0, 0, 0, .5);
  --sh-3: 0 14px 34px -10px rgba(0, 0, 0, .62);
  --sh-4: 0 28px 70px -16px rgba(0, 0, 0, .72);
  --sh-gold: 0 10px 30px -10px rgba(227, 183, 90, .38);
  --hairline: inset 0 1px 0 rgba(255, 255, 255, .045);

  /* Движение */
  --dur-1: .14s;
  --dur-2: .22s;
  --dur-3: .34s;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --shell: 1080px;
}

/* ── База ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'InterVar', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-synthesis-weight: none;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -.006em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* ⚠️ Именно clip, а не hidden. `overflow-x: hidden` делает body контейнером
     прокрутки, и всё липкое на странице начинает считать «своим» скроллпортом
     body, который сам не скроллится, — position: sticky молча перестаёт
     работать. В портале таких мест два: заголовки скаут-таблицы и полоса
     кнопок в модалке. `clip` подрезает так же, но контейнера прокрутки не
     создаёт. */
  overflow-x: clip;
}

/* Фон страницы. Два мягких пятна + зерно, всё на фиксированных слоях под
   контентом: не перерисовывается при скролле и не даёт «полос» на градиенте,
   которыми грешит плоский radial-gradient на больших экранах. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(720px 460px at 50% -6%, rgba(227, 183, 90, .10), transparent 62%),
    radial-gradient(900px 700px at 92% 4%, rgba(96, 108, 168, .08), transparent 60%),
    radial-gradient(760px 620px at 4% 32%, rgba(227, 183, 90, .045), transparent 58%),
    linear-gradient(180deg, #101017 0%, var(--bg) 46%, #08080C 100%);
}
/* Зерно: убирает бандинг на градиентах и добавляет «плотность» тёмному фону. */
body::after {
  opacity: .035;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold-a40); color: #fff; }

/* Полоса прокрутки — тонкая, в тон фону. */
* { scrollbar-width: thin; scrollbar-color: #33333F transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #2E2E3A;
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: #3D3D4B; background-clip: content-box; }

/* Единое кольцо фокуса. Только :focus-visible — мышью кольцо не мигает,
   с клавиатуры видно всегда. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

img { max-width: 100%; }

/* ⚠️ Единственный способ скрытия по всему порталу. Не трогать. */
.hidden { display: none !important; }

h1, h2, h3 { letter-spacing: -.022em; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }

.muted { color: var(--muted); }

/* ── Карточка входа ──────────────────────────────────────────────────── */
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 24px;
  padding: 34px 32px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .028), transparent 42%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4), var(--hairline);
  text-align: center;
  animation: rise var(--dur-3) var(--ease) both;
}
/* Тонкий световой блик по верхней кромке — «стеклянность» без backdrop-filter. */
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold-a40), transparent);
  pointer-events: none;
}

.brand {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.slogan {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: lowercase;
  margin-bottom: 26px;
}

/* ── Кнопки ──────────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--gold-grad);
  color: var(--on-gold);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              filter var(--dur-1) linear;
}
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

.gold {
  background: var(--gold-grad);
  border: 1px solid transparent;
  color: var(--on-gold);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.005em;
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              filter var(--dur-1) linear;
}

.ghost {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--hairline);
  transition: border-color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
}

@media (hover: hover) {
  .btn:hover:not(:disabled),
  .gold:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, .32);
  }
  .ghost:hover:not(:disabled) {
    border-color: var(--gold-a40);
    background: var(--surface-4);
    transform: translateY(-1px);
  }
}
.btn:active:not(:disabled),
.gold:active:not(:disabled) { transform: translateY(0) scale(.985); }
.ghost:active:not(:disabled) { transform: translateY(0) scale(.99); }
.gold:disabled, .ghost:disabled { opacity: .42; cursor: default; box-shadow: none; }

.btn-sm {
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: var(--r-xs);
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
@media (hover: hover) { .btn-sm:hover:not(:disabled) { border-color: var(--gold-a40); background: var(--surface-4); } }
.btn-sm.gold {
  background: var(--gold-grad);
  color: var(--on-gold);
  border-color: transparent;
  font-weight: 650;
}
.btn-sm:disabled { opacity: .45; cursor: default; }

/* ⚠️ Подчёркивание — именно text-decoration, а НЕ border-bottom. В
   .modal-actions кнопки тянутся по stretch на всю ширину, и нижняя рамка
   превращалась в линию через всю модалку, похожую на случайный разделитель.
   Паддинг заодно доводит зону нажатия до нормы (было 22px по высоте). */
.link {
  margin-top: 16px;
  padding: 6px 4px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-3);
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}
@media (hover: hover) { .link:hover { color: var(--gold); text-decoration-color: var(--gold-a40); } }
/* В ряду кнопок модалки ссылка остаётся ссылкой, а не растянутой кнопкой. */
.modal-actions .link { align-self: center; width: max-content; }

/* ── Поля ────────────────────────────────────────────────────────────── */
.field { margin: 14px 0; text-align: left; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: .2px;
}
.field input,
.acc-field input,
.creds-addwrap input,
.modal .custom-field input,
.sheet-search,
.hist-filter input[type=date],
.promo-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.field input::placeholder,
.acc-field input::placeholder,
.modal .custom-field input::placeholder,
.sheet-search::placeholder,
.promo-field input::placeholder,
.creds-addwrap input::placeholder { color: var(--faint); }

.field input:focus,
.acc-field input:focus,
.creds-addwrap input:focus,
.modal .custom-field input:focus,
.sheet-search:focus,
.hist-filter input[type=date]:focus,
.promo-field input:focus {
  border-color: var(--gold-a40);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 3px var(--gold-a14);
}
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.45; }

.err-msg { margin-top: 14px; min-height: 18px; font-size: 13px; color: var(--err); }

.authtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.authtabs button {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  transition: color var(--dur-1) var(--ease), background var(--dur-2) var(--ease);
}
@media (hover: hover) { .authtabs button:hover:not(.sel) { color: var(--text-2); } }
.authtabs button.sel {
  background: var(--surface-3);
  border-color: var(--line-2);
  color: var(--gold);
  box-shadow: var(--sh-1);
}

.tg-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--faint);
  font-size: 12px;
}
.tg-sep::before, .tg-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
#telegramWidget { display: flex; justify-content: center; }
/* Капча Turnstile — iframe фиксированной ширины (300px) в колонке 376px:
   без центрирования он прижимался влево, единственный несимметричный элемент
   на центрированной карточке входа.
   ⚠️ display здесь ОБЯЗАН быть видимым: app.js прячет блок через
   style.display='none', а показывает через style.display='' — то есть
   возвращает решение сюда. */
#turnstileBox { display: flex; justify-content: center; }

.userline { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.userline b { color: var(--gold); }

/* ── Каркас широких экранов ──────────────────────────────────────────── */
body.wide { display: block; }
.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 20px 96px;
}

/* Шапка — скруглённая панель, а не полоса во всю ширину: полоса внутри .wrap
   не доходила бы до краёв окна и контент подтекал бы сбоку.
   ⚠️ НЕ липкая — решение владельца (06.08.2026). Была `position: sticky` с
   размытием подложки; вместе с липкостью убрано и backdrop-filter: под
   неподвижной шапкой ничего не проезжает, размывать нечего, а фильтр стоит
   отдельного слоя композиции на каждой перерисовке. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(17, 17, 23, .72);
  box-shadow: var(--sh-2), var(--hairline);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  transition: opacity var(--dur-1) var(--ease);
}
@media (hover: hover) { .logo:hover { opacity: .82; } }
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-a40);
  background: linear-gradient(150deg, var(--gold-a24), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--hairline);
  flex: 0 0 auto;
}
.logo .name {
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.topbar .nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .nav .uinfo { font-size: 12px; color: var(--muted); white-space: nowrap; }
.topbar .nav .uinfo b { color: var(--gold); font-weight: 600; }
.uinfo-link {
  cursor: pointer;
  padding: 4px 2px;
  border-bottom: 1px dashed transparent;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
@media (hover: hover) { .uinfo-link:hover { color: var(--gold); border-color: var(--gold-a40); } }

/* ── Баннеры ─────────────────────────────────────────────────────────── */
.banner {
  position: relative;
  padding: 13px 44px;
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
  animation: rise var(--dur-3) var(--ease) both;
}
.banner.ok { background: var(--ok-a12); color: var(--ok); border: 1px solid var(--ok-a35); }
.banner.warn { background: var(--err-a12); color: #F09A93; border: 1px solid var(--err-a35); }
.banner .bclose {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: var(--r-xs);
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: .65;
  transition: opacity var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.banner .bclose:hover { opacity: 1; background: rgba(255, 255, 255, .08); }

/* ── Витрина ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 34px 0 32px; }
.hero h2 {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.1;
  margin: 6px 0 14px;
  font-weight: 700;
  letter-spacing: -.032em;
  color: #F3F3F7;
  background: linear-gradient(180deg, #FFFFFF 8%, #B9B9C6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* Прозрачный текст включаем только там, где обрезка по глифам реально
   работает: иначе заголовок был бы невидим. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h2, .acc-balance { color: transparent; }
}
.hero p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

.term-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 22px;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.term-toggle button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), background var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
@media (hover: hover) { .term-toggle button:hover:not(.sel) { color: var(--text-2); } }
.term-toggle button.sel {
  background: var(--gold-grad);
  color: var(--on-gold);
  font-weight: 650;
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.section-title {
  margin: 40px 0 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

/* Бандл. Градиентная рамка сделана двумя фонами (padding-box + border-box):
   так рамка градиентная и скругления не «съезжают», как при обводке псевдо-
   элементом. */
.bundle {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    linear-gradient(140deg, rgba(227, 183, 90, .10), rgba(21, 21, 27, .9) 46%, var(--surface-2) 100%) padding-box,
    linear-gradient(135deg, var(--gold-a40), rgba(255, 255, 255, .06) 42%, var(--gold-a24) 100%) border-box;
  box-shadow: var(--sh-3), var(--hairline);
  overflow: hidden;
  animation: rise var(--dur-3) var(--ease) both;
}
/* Медленный блик поперёк карточки — единственная «декоративная» анимация. */
.bundle::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 45%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .055), transparent);
  transform: rotate(8deg);
  pointer-events: none;
  animation: sheen 7s var(--ease-soft) infinite;
}
.bundle .bhead { display: flex; align-items: flex-start; gap: 16px; }
.bundle .bhead .ico {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--gold-a24), rgba(255, 255, 255, .02));
  border: 1px solid var(--gold-a24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex: 0 0 auto;
  box-shadow: var(--hairline);
}
.bundle h3 { font-size: 23px; margin: 2px 0 0; font-weight: 680; }
.bundle .bdesc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0 0; }
.bundle .blist { display: flex; flex-wrap: wrap; gap: 8px; }
.bundle .btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.bundle .gold { min-width: 200px; padding: 13px 22px; font-size: 14.5px; }

.chip {
  font-size: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-weight: 500;
}
.chip.gift { color: var(--ok); border-color: var(--ok-a35); background: var(--ok-a12); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.scard {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .026), transparent 38%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--sh-2), var(--hairline);
  transition: transform var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
  animation: rise var(--dur-3) var(--ease) both;
}
@media (hover: hover) {
  .scard:hover {
    transform: translateY(-3px);
    border-color: var(--gold-a24);
    box-shadow: var(--sh-3), 0 0 0 1px var(--gold-a08), var(--hairline);
  }
}
.scard .ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--gold-a14), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
  box-shadow: var(--hairline);
}
.scard h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; }
.scard .tag { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.scard-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}
.scard-foot button { margin: 0 !important; }
/* Вторая кнопка карточки — «Продлить» либо невидимый спейсер (его app.js
   помечает aria-hidden). Спейсер осмыслен, только когда у соседней карточки
   в ряду есть настоящая вторая кнопка: иначе он оставляет пустую полосу в
   подвале сразу у всех. Правило прогрессивное — где :has() не поддержан,
   остаётся прежнее поведение. */
.grid:not(:has(.scard-foot > button + button:not([aria-hidden="true"])))
  .scard-foot > button[aria-hidden="true"] { display: none; }
.scard .price { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--gold); }
.scard .foot-note { min-height: 16px; font-size: 12px; color: var(--ok); line-height: 1.35; }
.scard-foot .priceRow { justify-content: center; }
.scard-foot .save { text-align: center; }
.scard .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.scard .price .now { font-size: 26px; font-weight: 750; color: var(--gold); }
.scard .price .was { font-size: 13px; color: var(--faint); text-decoration: line-through; margin-left: 8px; }
.scard .gift-note { font-size: 12px; color: var(--ok); margin-top: 8px; }
.scard-short { margin: 8px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .2px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid transparent;
}
.badge.active { background: var(--gold-a14); color: var(--gold); border-color: var(--gold-a24); }
.badge.soon { background: var(--surface-3); color: var(--muted); border-color: var(--line-2); }
.badge.owned { background: var(--ok-a12); color: var(--ok); border-color: var(--ok-a35); }
.badge.disc { background: var(--ok-a12); color: var(--ok); border-color: var(--ok-a35); }

/* Цены. tabular-nums обязателен: без него цифры «пляшут» при пересчёте
   суммы и строка прыгает по ширине. */
.priceRow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.priceRow .now {
  font-size: 32px;
  font-weight: 750;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.03em;
}
.priceRow .was { font-size: 16px; color: var(--faint); text-decoration: line-through; }
.priceRow .per { font-size: 12.5px; color: var(--muted); }
.save { color: var(--ok); font-size: 13px; font-weight: 600; margin-top: 6px; }
.lockedPrice .priceRow { justify-content: center; }
.lockedPrice .save { text-align: center; }

/* ── Кабинет ─────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin: 24px 0 18px; flex-wrap: wrap; }
.tab {
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--hairline);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
@media (hover: hover) { .tab:hover { border-color: var(--line-3); background: var(--surface-3); transform: translateY(-1px); } }
.tab.sel {
  border-color: var(--gold-a40);
  background: linear-gradient(180deg, var(--gold-a14), rgba(227, 183, 90, .05));
  color: var(--gold);
}
.tab .lock { font-size: 11px; color: var(--muted); }

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 30%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--sh-2), var(--hairline);
  animation: rise var(--dur-3) var(--ease) both;
}
.panel.center { text-align: center; }

.acl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2px; }
.pill {
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.pill b { color: var(--text); font-weight: 600; }
.renew-btn { padding: 7px 14px; font-size: 12.5px; }

/* ⚠️ Обязательно через .panel. Класс `locked` носит не только панель покупки,
   но и ЗАКРЫТАЯ КОМНАТА в списке диктовок (.room.locked) — без этой привязки
   центрирование прилетало на неё, и название закрытой комнаты уезжало в
   середину строки, тогда как у открытой оставалось слева. Дефект жил и в
   прежнем оформлении. */
.panel.locked { text-align: center; }
.panel.locked .big { font-size: 19px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.02em; }

.buy-group { max-width: 520px; margin: 0 auto; }
.buy-section { margin-top: 20px; }
.buy-section .buy-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}
.buy-section.daily { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.short-line { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.short-line:last-child { margin-bottom: 0; }
.short-cap { font-size: 13px; color: var(--text-2); text-align: center; }

.pay-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pay-row .gold, .pay-row .ghost { min-width: 190px; padding: 12px 18px; }

/* Плашка баланса */
.balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, var(--gold-a08), transparent 55%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin: 6px 0 18px;
  box-shadow: var(--sh-1), var(--hairline);
}
.balance-bar .bal-left { font-size: 15px; color: var(--text); }
.balance-bar .bal-left b { color: var(--gold); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-bar .bal-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Поле промокода */
/* ⚠️ Поле промокода в верхнем регистре: плейсхолдер «Промокод (если есть)»
   заглавными занимает заметно больше места, чем кажется по строке. При
   max-width 220px и кегле 16px (мобильная норма против зума в iOS) он не
   помещался и обрубался без многоточия. На узком экране поле занимает всю
   строку, кнопка «Применить» уезжает под него. */
.promo-field { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 2px; }
.promo-field input { text-transform: uppercase; max-width: 250px; font-size: 14px; padding: 11px 13px; letter-spacing: .3px; }
.promo-hint { font-size: 12px; min-height: 16px; margin-top: 6px; text-align: center; color: var(--muted); }
.promo-hint.ok { color: var(--ok); }
.promo-hint.err { color: var(--err); }

/* ── Диктовки: плеер, комнаты, расписание ────────────────────────────── */
.play-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--gold-a40);
  background: radial-gradient(circle at 50% 32%, var(--gold-a14), rgba(255, 255, 255, .02) 70%);
  color: var(--gold);
  font-size: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-2), var(--hairline);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
@media (hover: hover) {
  .play-btn:hover:not(:disabled) {
    background: var(--gold-grad);
    color: var(--on-gold);
    transform: scale(1.04);
    box-shadow: var(--sh-gold);
  }
}
.play-btn:active:not(:disabled) { transform: scale(.98); }
.play-btn:disabled { opacity: .4; cursor: default; }

.status { margin-top: 22px; font-size: 14px; min-height: 20px; color: var(--muted); }
.status.live { color: var(--gold); }
.status.error { color: var(--err); }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  margin-right: 8px;
  vertical-align: middle;
}
.dot.live { background: var(--gold); box-shadow: 0 0 0 0 var(--gold-a40); animation: pulse 1.8s var(--ease-soft) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-a40); opacity: 1; }
  70% { box-shadow: 0 0 0 7px rgba(227, 183, 90, 0); opacity: .75; }
  100% { box-shadow: 0 0 0 0 rgba(227, 183, 90, 0); opacity: 1; }
}

/* Регулятор громкости оставлен НАТИВНЫМ: accent-color бесплатно закрашивает
   пройденную часть дорожки, а собственная отрисовка (-webkit-appearance:none)
   эту заливку отключает и требует пересчёта градиента на каждый ввод.
   Ограничиваем только ширину — на всю панель ползунок читался как сплошная
   золотая полоса непонятного назначения. */
.vol { margin-top: 24px; }
.vol input { width: min(280px, 80%); accent-color: var(--gold); }
input[type=range] { accent-color: var(--gold); cursor: pointer; margin: 0; height: 24px; }
.hint { margin-top: 18px; font-size: 11.5px; color: var(--faint); }

.empty { margin-top: 30px; margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.empty .empty-sub { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); }

.rooms { margin: 0 0 22px; text-align: left; }
.rooms-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 10px;
}
.room-list { display: flex; flex-direction: column; gap: 8px; }
.room {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  flex-wrap: wrap;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
.room .dchips { width: 100%; margin-top: 8px; }
@media (hover: hover) { .room:hover { border-color: var(--line-3); background: var(--surface-3); } }
.room.sel {
  border-color: var(--gold-a40);
  background: linear-gradient(180deg, var(--gold-a14), rgba(227, 183, 90, .04));
}
.room .rname { flex: 1; font-size: 14.5px; font-weight: 550; }
.room .rlive { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; color: var(--muted); }
.room.online .rlive { color: var(--gold); }
.room .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.room.online .rdot { background: var(--gold); animation: pulse 1.8s var(--ease-soft) infinite; }
.room.locked { cursor: default; opacity: .95; }
.room.locked .rname { color: var(--muted); }
.room .rbuy { display: flex; gap: 6px; flex-wrap: wrap; }
.room .rlock { font-size: 13px; color: var(--muted); }

.sched { text-align: left; margin: 4px 0 18px; }
.sched-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 10px;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
  margin-bottom: 8px;
  flex-wrap: wrap;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
@media (hover: hover) { .sched-row:hover { border-color: var(--line-2); background: var(--surface-3); } }
.sched-when {
  font-size: 13px;
  color: var(--gold);
  min-width: 96px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sched-title { flex: 1; min-width: 120px; font-size: 14px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sched-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
}
.sched-badge.live { color: var(--gold); background: var(--gold-a14); border-color: var(--gold-a24); }
.sched-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sched-act .ok { font-size: 12.5px; color: var(--ok); }
.sched-act .muted { font-size: 12.5px; color: var(--muted); }
.sched-meta { width: 100%; margin-top: 8px; }

.dflag { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; object-fit: cover; display: block; }
.sched-title .sflag { margin-right: 0; }
.sflag {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.dchips { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dchip {
  font-size: 11px;
  font-weight: 550;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  letter-spacing: .2px;
  background: var(--gold-a14);
  color: var(--gold);
  white-space: nowrap;
}
.dchip.muted { background: var(--surface-3); color: var(--muted); }

/* ── Таблицы ─────────────────────────────────────────────────────────── */
.tbl-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tbl-group-date {
  font-size: 12px;
  font-weight: 650;
  color: var(--gold);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin: 18px 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.tbl-group-date:first-child { margin-top: 0; }
.tbl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-left: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease);
}
@media (hover: hover) { .tbl-item:hover { border-color: var(--gold-a24); background: var(--surface-3); } }
.tbl-item.active {
  border-color: var(--gold-a40);
  background: linear-gradient(90deg, var(--gold-a14), rgba(227, 183, 90, .03));
}
.tbl-item.active .t { color: var(--gold); }
.tbl-item .t { flex: 1; font-size: 14px; font-weight: 500; }
.tbl-item .d { font-size: 11px; color: var(--muted); }

.viewer { margin-top: 18px; }
.viewer iframe, .viewer img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}
.viewer iframe { height: 70vh; }

.sheet-wrap { position: relative; margin-top: 18px; }
.sheet-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.sheet-search { flex: 1; min-width: 190px; font-size: 14px; padding: 11px 14px; width: auto; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chip {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
@media (hover: hover) { .sheet-chip:hover { border-color: var(--line-3); color: var(--text-2); } }
.sheet-chip.sel { border-color: var(--gold-a40); color: var(--gold); background: var(--gold-a14); }
.sheet-count { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
/* Тени прокрутки по бокам: на телефоне таблица шире экрана, и без них не
   видно, что вправо есть ещё колонки. Четыре слоя — два «шторки» цвета фона
   (attachment: local, едут вместе с содержимым) и две тени (attachment:
   scroll, стоят на месте): у самого края шторка накрывает тень, и та гаснет.
   Ни строчки JS. */
.sheet-scroll {
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: var(--surface-1);
  background-image:
    linear-gradient(90deg, var(--surface-1) 40%, rgba(16, 16, 21, 0)),
    linear-gradient(90deg, rgba(16, 16, 21, 0), var(--surface-1) 60%),
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-size: 32px 100%, 32px 100%, 14px 100%, 14px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1D1D25;
  color: var(--gold);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.sheet td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: top; }
table.sheet tbody tr:last-child td { border-bottom: none; }
table.sheet tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
table.sheet tbody tr { transition: background var(--dur-1) linear; }
@media (hover: hover) { table.sheet tbody tr:hover { background: var(--gold-a08); } }
table.sheet td.num { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-sport {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  white-space: nowrap;
}
.sheet-empty { padding: 28px; text-align: center; color: var(--muted); }
/* Анти-копирование — косметика, а не защита. Формулировка сохранена намеренно. */
.sheet-wrap, table.sheet { user-select: none; -webkit-user-select: none; -ms-user-select: none; }
.wm-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; opacity: .07; }
.wm-layer span {
  position: absolute;
  transform: rotate(-30deg);
  transform-origin: center;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 600;
}

/* ── Аккаунт ─────────────────────────────────────────────────────────── */
.acc-h1 { font-size: 26px; margin: 20px 0 20px; font-weight: 700; letter-spacing: -.028em; }
.acc-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 30%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--sh-2), var(--hairline);
  animation: rise var(--dur-3) var(--ease) both;
}
.acc-card > h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.acc-card > .acc-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.acc-balance {
  font-size: 40px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.acc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.acc-chip {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--muted);
}
.acc-chip.on { color: var(--ok); border-color: var(--ok-a35); background: var(--ok-a12); }
.acc-rows { display: flex; flex-direction: column; }
.acc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.acc-row:first-child { border-top: 0; }
.acc-row .ar-main { flex: 1; min-width: 160px; font-size: 14px; font-weight: 600; }
.acc-row .ar-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.acc-row .ar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.acc-row .ar-act { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.acc-state {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.acc-state.on { color: var(--ok); border-color: var(--ok-a35); background: var(--ok-a12); }
.acc-state.off { color: var(--muted); background: var(--surface-3); }
.acc-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.acc-amt.plus { color: var(--ok); }
.acc-amt.minus { color: #E9A98C; }
.acc-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.acc-status.paid { color: var(--ok); border-color: var(--ok-a35); background: var(--ok-a12); }
.acc-status.pending { color: var(--warn); border-color: rgba(230, 190, 99, .35); background: rgba(230, 190, 99, .1); }
.acc-status.failed { color: var(--err); border-color: var(--err-a35); background: var(--err-a12); }
.acc-empty { font-size: 13px; color: var(--muted); padding: 10px 0; }

.acc-seg {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.acc-seg button {
  padding: 8px 15px;
  border-radius: var(--r-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  transition: color var(--dur-1) var(--ease), background var(--dur-2) var(--ease);
}
@media (hover: hover) { .acc-seg button:hover:not(.sel) { color: var(--text-2); } }
.acc-seg button.sel {
  border-color: var(--line-2);
  background: var(--surface-3);
  color: var(--gold);
  box-shadow: var(--sh-1);
}

.acc-field { margin-bottom: 12px; }
.acc-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 550; }
.acc-field input { max-width: 340px; font-size: 14px; padding: 11px 13px; }
.acc-hint { font-size: 12px; min-height: 16px; margin: 8px 0 0; }
.acc-hint.ok { color: var(--ok); }
.acc-hint.err { color: var(--err); }
.acc-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  flex-wrap: wrap;
}
.acc-kv:first-child { border-top: 0; }
.acc-kv .k { color: var(--muted); }

/* ── Модалки ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow-y: auto;
  animation: fade var(--dur-2) var(--ease-soft) both;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 34%),
    var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4), var(--hairline);
  /* Внутренний отступ вынесен в переменную: к нему привязана «прилипающая»
     полоса кнопок ниже, и на мобильном брейкпоинте он меняется. */
  --mp: 28px;
  padding: var(--mp);
  text-align: left;
  animation: modalIn var(--dur-3) var(--ease) both;
}
.modal::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold-a40), transparent);
  pointer-events: none;
}
.modal h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.modal .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; line-height: 1.5; }
.modal .m-err { color: var(--err); font-size: 12.5px; min-height: 16px; margin: 10px 0 0; }
.modal .dialog-msg { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0; white-space: pre-line; }
.modal .custom-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 550; }
.modal .custom-field input { font-size: 16px; }
/* ⚠️ Полоса кнопок прилипает к низу модалки. Высокая модалка (история
   операций) на невысоком экране прокручивается внутри себя, и без sticky
   «Закрыть» оказывалась ниже видимой части — выглядело так, будто кнопки
   закрытия нет вовсе. Отрицательный bottom и компенсирующий padding
   доводят полосу до самого края, чтобы под ней не проглядывал фон. */
.modal-actions {
  position: sticky;
  bottom: calc(var(--mp) * -1);
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: calc(var(--mp) * -1);
  padding-bottom: var(--mp);
  background: var(--surface-2);
}
/* Мягкий срез над прилипшей полосой: содержимое уходит под неё, а не
   обрывается по линейке. В невысоких модалках градиент совпадает с фоном и
   поэтому не виден вовсе. */
.modal-actions::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--surface-2));
  pointer-events: none;
}
.modal-actions .gold, .modal-actions .ghost {
  width: 100%;
  padding: 13px 20px;
  font-size: 14.5px;
  text-align: center;
}
.modal.modal-lg { max-width: 660px; }
/* ⚠️ Высокая модалка (история операций) на невысоком экране не помещалась
   целиком, и ряд кнопок вместе с «Закрыть» уходил за нижний край: оверлей
   прокручивался, но по виду кнопка просто пропадала. Предел высоты + своя
   прокрутка держат модалку в экране на любом устройстве. */
.modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
/* Верхний блик рисуем по внутреннему краю: при overflow:auto вынос за границу
   (inset: -1px) обрезается. */
.modal::before { inset: 0 0 auto; border-radius: var(--r-xl) var(--r-xl) 0 0; }
/* На низком экране списку внутри модалки нужно уступить место кнопкам. */
@media (max-height: 800px) {
  .hist-list { max-height: 30vh; }
}

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-opt {
  padding: 15px 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
@media (hover: hover) { .amount-opt:hover { border-color: var(--gold-a40); transform: translateY(-1px); } }
.amount-opt.sel {
  border-color: var(--gold-a40);
  background: linear-gradient(180deg, var(--gold-a14), rgba(227, 183, 90, .04));
  color: var(--gold);
}

#successModal h3 { text-align: center; }
.success-ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ok-a12);
  border: 1px solid var(--ok-a35);
  color: var(--ok);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: popIn var(--dur-3) var(--ease) both;
}
#successModal .dialog-msg { color: var(--muted); margin-bottom: 4px; }
.success-rows { margin: 16px 0 2px; }
.success-rows .srow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.success-rows .srow:last-child { border-bottom: none; }
.success-rows .sk { color: var(--muted); }
.success-rows .sv { font-weight: 600; text-align: right; }

/* Модалки с крупной иконкой сверху: заголовок под ней обязан быть по центру,
   иначе он спорит с центрированной иконкой и центрированным подзаголовком. */
#credsModal h3,
#forgotModal h3,
#regCodeModal h3 { text-align: center; }
#credsModal .sub { color: var(--muted); margin-bottom: 16px; }
.creds-box {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 16px;
  margin: 6px 0 16px;
}
.creds-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.creds-row:first-child { border-top: 0; }
.creds-k { color: var(--muted); font-size: 13px; width: 68px; flex-shrink: 0; }
.creds-v {
  flex: 1;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 15px;
  color: var(--gold);
  word-break: break-all;
}
.creds-copy { flex-shrink: 0; }
.creds-warn {
  background: var(--err-a12);
  border: 1px solid var(--err-a35);
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 16px;
}
.creds-addwrap { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.creds-addwrap input { flex: 1; min-width: 160px; width: auto; font-size: 14px; padding: 10px 13px; }
.creds-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.creds-ack {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.creds-ack input { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; flex: 0 0 auto; }
#credsContinue[disabled] { opacity: .4; cursor: default; }

.hist-filter { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0; }
.hist-filter .hf-field { display: flex; flex-direction: column; gap: 5px; }
.hist-filter label { font-size: 11px; color: var(--muted); }
.hist-filter input[type=date] { width: auto; font-size: 13px; padding: 9px 11px; }
.hist-list { max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--line); }
.hist-list .acc-row { padding: 11px 0; }
.hist-list .acc-row:first-child { border-top: 0; }
.hist-loading { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
.hist-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hist-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-nav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hist-nav button[disabled] { opacity: .35; cursor: default; }

/* ── Полноэкранный видеоплеер ────────────────────────────────────────── */
#playerView .pv-chrome { transition: opacity var(--dur-3) var(--ease-soft); }
body.player-chrome-hidden #playerView .pv-chrome,
body.player-chrome-hidden .dict-mini { opacity: 0; pointer-events: none; }
body.player-chrome-hidden #playerView,
body.player-chrome-hidden #playerVideo { cursor: none; }

.pv-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.pv-note:hover { color: #fff; border-color: var(--gold); }
.pv-note b { color: var(--gold); font-weight: 700; }
@media (max-width: 620px) { .pv-note span { display: none; } }

/* ── Свёрнутый плеер диктовки ────────────────────────────────────────
   Левый нижний угол: справа внизу живёт #supportFab (z-index 9000), а над
   ним — .welcome-pill. z-index выше #playerView (200), чтобы плашка была
   видна и поверх полноэкранной видеотрансляции.                        */
.dict-mini {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(390px, calc(100vw - 40px));
  padding: 10px 13px;
  border-radius: var(--r-lg);
  background: rgba(19, 19, 25, .92);
  border: 1px solid var(--gold-a40);
  box-shadow: var(--sh-3), var(--hairline);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: dmIn var(--dur-3) var(--ease);
}
.dict-mini.hidden { display: none !important; }
@keyframes dmIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.dict-mini .dm-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-a40);
  background: var(--gold-a08);
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.dict-mini .dm-play:hover { background: var(--gold-grad); color: var(--on-gold); }
.dict-mini .dm-main { min-width: 0; flex: 1 1 auto; }
.dict-mini .dm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dict-mini .dm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.dict-mini .dm-status.live { color: var(--gold); }
.dict-mini .dm-status.error { color: var(--err); }
.dict-mini .dm-vol { width: 80px; flex: 0 0 auto; accent-color: var(--gold); }
.dict-mini .dm-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.dict-mini .dm-btn:hover { background: rgba(255, 255, 255, .09); color: var(--text); }

/* В открытой трансляции нижняя полоса плеера занимает тот же угол — поднимаем
   плашку над ней и приглушаем: в трансляции главное картинка. Наведение
   возвращает полный вид. */
body.player-open .dict-mini {
  bottom: 64px;
  gap: 7px;
  padding: 7px 11px;
  opacity: .55;
  transform: scale(.9);
  transform-origin: left bottom;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
body.player-open .dict-mini:hover,
body.player-open .dict-mini:focus-within { opacity: 1; transform: scale(1); }
body.player-open .dict-mini .dm-play { width: 28px; height: 28px; font-size: 11px; }
body.player-open .dict-mini .dm-title { font-size: 12px; }
body.player-open .dict-mini .dm-status { font-size: 10.5px; }
body.player-open .dict-mini .dm-vol { width: 64px; }

/* ── Плавающая кнопка поддержки ──────────────────────────────────────── */
#supportFab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 17px;
  border-radius: var(--r-full);
  background: var(--gold-grad);
  color: var(--on-gold);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  box-shadow: var(--sh-3), var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
              gap var(--dur-2) var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
#supportFab svg { flex: 0 0 auto; }
#supportFab .support-fab-label {
  max-width: 0;
  opacity: 0;
  transition: max-width var(--dur-3) var(--ease), opacity var(--dur-2) var(--ease),
              margin-left var(--dur-3) var(--ease);
}
@media (hover: hover) {
  #supportFab:hover { transform: translateY(-2px) scale(1.02); }
  #supportFab:hover .support-fab-label { max-width: 140px; opacity: 1; margin-left: 9px; }
}

/* ── Анимации ────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sheen { 0%, 62% { transform: translateX(0) rotate(8deg); } 100% { transform: translateX(320%) rotate(8deg); } }
@keyframes shimmer { 100% { background-position: 200% 0; } }

/* Каскад появления карточек витрины: без задержки все 3–4 карточки
   выезжают одним пятном и эффект читается как «дёрнулось». */
.grid .scard:nth-child(1) { animation-delay: .02s; }
.grid .scard:nth-child(2) { animation-delay: .07s; }
.grid .scard:nth-child(3) { animation-delay: .12s; }
.grid .scard:nth-child(4) { animation-delay: .17s; }
#accountBody .acc-card:nth-child(2) { animation-delay: .05s; }
#accountBody .acc-card:nth-child(3) { animation-delay: .10s; }
#accountBody .acc-card:nth-child(4) { animation-delay: .15s; }

/* Скелет загрузки — вместо голого «Загрузка…». Показывает будущую форму
   списка, поэтому при подстановке данных страница не прыгает. */
.skel {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-4) 37%, var(--surface-2) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: var(--r-xs);
  color: transparent !important;
}
.skel-list { display: flex; flex-direction: column; gap: 8px; }
.skel-row {
  height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-3) 37%, var(--surface-1) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel-row:nth-child(2) { animation-delay: .12s; opacity: .8; }
.skel-row:nth-child(3) { animation-delay: .24s; opacity: .6; }

/* ⚠️ Уважение к системной настройке. Анимации гасим полностью, а не
   ускоряем: у части людей это вопрос самочувствия, а не вкуса. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bundle::after { display: none; }
}

/* ── Брейкпоинты ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  /* Одна колонка — выравнивать кнопки не с чем, спейсер только ест экран. */
  .scard-foot > button[aria-hidden="true"] { display: none; }
  .wrap { padding: 14px 16px 96px; }
  .hero { padding: 26px 0 26px; }
  .bundle { padding: 22px; }
  .bundle .btn-row { flex-direction: column; align-items: stretch; }
  .bundle .gold, .bundle .ghost { width: 100%; }
  .bundle .btn-row > div { text-align: center; }
  .bundle .priceRow { justify-content: center; }
}
@media (max-width: 560px) {
  .topbar { padding: 9px 10px; gap: 10px; flex-wrap: wrap; row-gap: 10px; }
  /* nowrap внутри nav — обязателен: иначе перенос съедает группа действий, а не
     сама шапка, и логотип уезжает в середину высокой шапки. */
  .topbar .nav { gap: 5px; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
  /* Имя аккаунта на узком экране скрыто: рядом стоит кнопка «Аккаунт», ведущая
     туда же, а строка «аккаунт: длинный_логин» ломала шапку на лишний ряд. */
  .topbar .nav .uinfo { display: none; }
  .ghost, .gold { padding: 9px 10px; font-size: 12.5px; }
  /* Кнопки шапки ужимаем сильнее прочих: три штуки плюс переключатель языка
     должны уместиться в одну строку 360px, иначе шапка снова растёт в высоту. */
  .topbar .nav .ghost, .topbar .nav .gold { padding: 9px 9px; font-size: 12px; }
  .logo .name { font-size: 11.5px; letter-spacing: 2px; }
  .logo .mark { width: 30px; height: 30px; font-size: 14px; }
  .dict-mini { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 9px 11px; }
  .dict-mini .dm-vol { display: none; }
  body:has(#dictMini:not(.hidden)) #supportFab { bottom: 80px; }
  body.player-open .dict-mini { bottom: 58px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet-scroll { max-height: 60vh; }
}
@media (max-width: 480px) {
  .card { margin: 12px; padding: 26px 20px 24px; border-radius: var(--r-lg); }
  h1 { font-size: 20px; }
  .slogan { margin-bottom: 22px; }
  .play-btn { width: 84px; height: 84px; font-size: 29px; }
  .vol input { width: 100%; }
  .room { padding: 14px 14px; }      /* крупнее зона тапа */
  .room .rname { font-size: 15px; }
  /* ⚠️ >=16px — иначе iOS зумит страницу при фокусе в поле. */
  .field input, .btn, .acc-field input, .sheet-search, .promo-field input,
  .hist-filter input[type=date], .creds-addwrap input { font-size: 16px; }
  .promo-field input { max-width: none; flex: 1 1 100%; }
  .hero h2 { font-size: 27px; }
  .panel { padding: 18px; border-radius: var(--r-lg); }
  .acc-card { padding: 18px; border-radius: var(--r-lg); }
  .modal { --mp: 22px; padding: var(--mp) 18px; border-radius: var(--r-lg); }
  .acc-balance { font-size: 34px; }
  .priceRow .now { font-size: 28px; }
  .acc-h1 { font-size: 22px; }
  .tbl-item { margin-left: 0; }
  /* Кнопки оплаты в столбик и одной ширины: при min-width 190px они вставали
     ступенькой — «Оплатить криптой» короче, «Оплатить с баланса ($142)» длиннее. */
  .pay-row { flex-direction: column; }
  .pay-row .gold, .pay-row .ghost { width: 100%; min-width: 0; }
  #supportFab { right: 14px; bottom: 14px; height: 52px; padding: 0 15px; }
  #supportFab .support-fab-label { display: none; }
  /* ⚠️ Логин и пароль на узком экране: в одну строку «подпись — значение —
     Копировать» они не влезают, и word-break рвал пароль на три куска
     («Xk9-mQ / 2p-Lr7 / v») — прочитать и переписать такое невозможно.
     Раскладываем в два ряда: подпись и кнопка сверху, значение целой строкой. */
  .creds-row { flex-wrap: wrap; row-gap: 8px; }
  .creds-k { order: 1; width: auto; }
  .creds-copy { order: 2; margin-left: auto; }
  .creds-v { order: 3; flex: 1 1 100%; font-size: 14px; }
}
