/* ============================================================================
   VFF ULTIMA — вид 2 (19.10, владелец: раскладка как у образца Xconnect, но «в нашем стиле: только зелёный и красный для обозначения»):
   цвета сайта (#111110 / #171716 / #F2F2F0, серые), Unbounded в заголовках и крупных цифрах; зелёный — «активна / в сети / норма»,
   красный — «удалить / истекла / заканчивается»; остальное — серое и белое. Плавающее меню-«таблетка», без своей шапки
   (шапку с именем бота рисует Telegram). Подключается после style.css и переопределяет токены и раскладку.
   ========================================================================== */
:root, [data-theme="light"], [data-theme="dark"] {
  --bg: #111110;
  --surface: #171716;
  --surface-2: #1d1d1b;
  --surface-sunk: #0c0c0b;
  --line: #262624;
  --line-2: #30302d;
  --text: #F2F2F0;
  --text-2: #96968F;
  --text-3: #5E5E5A;
  --x-blue: #F2F2F0;                       /* метки и полосы — нейтральные (цвет только у статусов) */
  --x-blue-bg: rgba(242, 242, 240, 0.08);
  --x-blue-deep: #1f1f1d;
  --x-green: #6fcf8e;
  --x-green-bg: rgba(111, 207, 142, 0.12);
  --x-gold: #e0776a;                       /* «заканчивается» — тоже красный: обозначения только зелёный и красный */
  --x-gold-bg: rgba(224, 119, 106, 0.12);
  --x-red: #e0776a;
  --x-red-bg: rgba(224, 119, 106, 0.12);
  --x-r: 24px;
  color-scheme: dark;
}
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; }   /* 20.11: Ultimex (var(--font)); было жёстко IBM Plex — перебивало */
.topbar { display: none !important; }
/* 31.10 (владелец): приложение на сайте — кнопка «Сайт» в левом верхнем углу, закреплена (видна при прокрутке); в Telegram её нет */
.site-btn { position: fixed; z-index: 50; top: calc(14px + var(--sat)); left: 16px;   /* у левого края страницы */
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 19px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(23, 23, 22, 0.94); box-shadow: 0 10px 24px -14px #000; color: var(--text); font-size: 16px; font-weight: 600;
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.site-btn svg { width: 20px; height: 20px; }
.site-btn:active { opacity: .7; }
html.x-web .screen { padding-top: calc(70px + var(--sat)); }
@media (min-width: 820px) { html.x-web .screen { padding-top: calc(14px + var(--sat)); } }   /* широкий экран: кнопка слева от колонки — место не нужно */   /* место под кнопку — не закрывает логотип и заголовки */
html.x-light .site-btn { background: rgba(255, 255, 255, 0.9); border-color: var(--line); box-shadow: 0 10px 24px -14px rgba(28, 27, 24, 0.28); }
.screen { padding: calc(14px + var(--sat)) 16px calc(118px + var(--sab)); gap: 14px; }
.num, .x-num { font-variant-numeric: tabular-nums; }

/* --- плавающее меню-«таблетка» -------------------------------------- */
.navbar { left: 12px; right: 12px; bottom: calc(12px + var(--sab)); height: 74px; padding: 6px; border: 1px solid var(--line-2);
  border-radius: 34px; background: rgba(23, 23, 22, 0.94); box-shadow: 0 18px 40px -18px #000; }
.navbar-inner { gap: 4px; }
.nav-item { border-radius: 26px; color: var(--text-3); font-size: 11.5px; font-weight: 600; gap: 5px; }
.nav-item.active { color: var(--text); background: linear-gradient(180deg, #2a2a27, #1d1d1b); box-shadow: inset 0 1px 0 rgba(242,242,240,.08); }
.nav-item .nav-active-mark { display: none; }

/* --- заголовки -------------------------------------------------------- */
.x-title { margin: 18px 2px 4px; font: 800 26px/1.15 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; }
.x-sub { margin: -2px 2px 6px; color: var(--text-3); font-size: 14px; }
.x-back { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.x-back button { width: 40px; height: 40px; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.x-back h1 { margin: 0; font: 800 20px/1.2 "Nunito", "IBM Plex Sans", sans-serif; }
.x-back .x-sub { margin: 2px 0 0; }
.x-label { font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 6px 4px 0; }

/* --- приветствие ------------------------------------------------------ */
.x-top { display: flex; align-items: center; gap: 10px; }
.x-pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 6px; border: 1px solid var(--line-2); border-radius: 26px;
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.x-pill .x-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #262623; font-weight: 700; font-size: 14px; }
.x-roundbtn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.x-hello { display: flex; align-items: center; gap: 16px; margin: 12px 2px 4px; }
.x-hello .x-mark { width: 74px; flex: none; color: #fff; }
.x-hello .x-mark svg { width: 100%; height: auto; display: block; }
.x-hello small { display: block; color: var(--text-3); font-size: 15px; }
.x-hello b { display: block; font: 800 28px/1.12 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* --- карточки и метки -------------------------------------------------- */
.x-card { border: 1px solid var(--line); border-radius: var(--x-r); background: var(--surface); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.x-card--glow { background: radial-gradient(120% 140% at 0% 0%, #22221f 0%, var(--surface) 55%); }
.x-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.x-row > .x-grow { flex: 1; min-width: 0; }
.x-ico { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #262623, #171716);
  color: var(--text); border: 1px solid var(--line-2); }
.x-ico--plain { background: #1d1d1b; color: var(--text); border-color: var(--line-2); }
.x-ico--green { background: #22221f; color: var(--text); border-color: var(--line-2); }
.x-ico svg.x-logo { width: 34px; height: auto; color: #fff; }
.x-name { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
/* 04.11 (владелец: «имя — в одну строку, остаток плывёт»): длинное имя — одна строка, плавно уезжает и возвращается (settings.js ставит --shift) */
.x-marquee { display: block; white-space: nowrap; overflow: hidden; }
.x-marquee > span { display: inline-block; }
.x-marquee.is-scroll > span { animation: x-marq var(--dur, 8s) ease-in-out infinite alternate; }
@keyframes x-marq { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--shift, 0px)); } }
.x-meta { color: var(--text-2); font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.x-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font: 600 12px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .1em; text-transform: uppercase; background: var(--x-blue-bg); color: var(--x-blue); white-space: nowrap; }
.x-chip--gray { background: #1f1f1d; color: var(--text-2); letter-spacing: .04em; }
.x-chip--gold { background: var(--x-gold-bg); color: var(--x-gold); }
.x-chip--big { padding: 8px 14px; border-radius: 12px; font-size: 14px; letter-spacing: .02em; text-transform: none; }
.x-st { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 10px; background: #1f1f1d; color: var(--text-2); font-size: 14px; }
.x-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.x-st--on { background: var(--x-green-bg); color: var(--x-green); }
.x-st--on::before { background: var(--x-green); }
.x-st--warn { background: var(--x-gold-bg); color: var(--x-gold); } .x-st--warn::before { background: var(--x-gold); }
.x-st--off { background: var(--x-red-bg); color: var(--x-red); } .x-st--off::before { background: var(--x-red); }
.x-dot-on { color: var(--x-green); } .x-chev { color: var(--text-3); flex: none; }

/* --- три показателя ------------------------------------------------------ */
.x-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--x-r); background: var(--surface); overflow: hidden; }
.x-stat { padding: 16px 14px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; text-align: center; }   /* 21.10 (владелец): подписи и цифры — по центру ячейки */
.x-stat + .x-stat { border-left: 1px solid var(--line); }
.x-stat span { color: var(--text-3); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.x-stat b { font: 800 24px/1 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-stat b.is-long { font-size: 20px; }                      /* 21.10: 4 цифры (1023 ГБ) — чуть меньше, чтобы влезло в треть экрана */
.x-stat b small { font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.x-stat b i { font-style: normal; color: var(--text-3); font-weight: 400; }
.x-stat em { font-style: normal; color: var(--text-3); font-size: 13px; }
.x-bar { height: 5px; border-radius: 5px; background: #262623; overflow: hidden; }
.x-bar > i { display: block; height: 100%; border-radius: 5px; background: var(--x-green); }
.x-bar--blue > i { background: var(--x-blue); }
.x-bar--green > i { background: var(--x-green); }   /* 24.10: запасные гигабайты */
.x-reserve { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.x-reserve b { font-size: 15px; font-weight: 600; min-width: 0; }
.x-reserve .x-row > .x-num { white-space: nowrap; flex: none; }   /* 26.10: «25,0 ГБ осталось» — одной строкой, переносится заголовок */
.x-reserve .x-row { gap: 10px; } .x-bar--gold > i { background: var(--x-gold); } .x-bar--red > i { background: var(--x-red); }
.x-segs { display: flex; gap: 5px; } .x-segs i { flex: 1; height: 5px; border-radius: 5px; background: #2c2c29; } .x-segs i.on { background: var(--text); }
.x-segs--2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }   /* 21.10: больше 5 устройств — два ряда по 5 */

/* --- кнопки ---------------------------------------------------------------- */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 20px; border: 0;
  font: 600 16px/1.2 "IBM Plex Sans", sans-serif; cursor: pointer; text-decoration: none; }
.x-btn:disabled { opacity: .45; cursor: default; }
.x-btn--white { background: var(--text); color: var(--bg); }
.x-btn--dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.x-btn--blue { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.x-btn--red { background: var(--x-red-bg); color: var(--x-red); }
.x-btn--sq { width: 56px; padding: 0; flex: none; }
.x-btn--block { width: 100%; }
.x-btn--pill { border-radius: 30px; }
.x-btns { display: flex; gap: 10px; }
.x-btns > .x-btn:not(.x-btn--sq) { flex: 1; }
.x-link { background: none; border: 0; color: var(--text); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* --- устройство -------------------------------------------------------------- */
.x-dev { border: 1px solid var(--line); border-radius: var(--x-r); background: var(--surface); overflow: hidden; }
.x-dev__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
.x-dev__app { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font: 800 8.5px/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .02em; flex: none; }
.x-dev__app--incy { background: #262623; color: var(--text); border: 1px solid var(--line-2); }
.x-dev__app--happ { background: #262623; color: var(--text); border: 1px solid var(--line-2); font-size: 12px; }
.x-dev__name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; min-width: 0; }
.x-dev__nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.2; }
.x-dev__name button { border: 0; background: none; color: var(--text-3); padding: 2px; cursor: pointer; flex: none; }
.x-dev__line { color: var(--text-2); font-size: 14.5px; margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.x-dev__line .x-st { flex: none; }
.x-dev__os { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-dev__trf { color: var(--text-2); font: 400 13.5px/1.4 "IBM Plex Mono", monospace; margin-top: 6px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.x-dev__trf span { white-space: nowrap; }
.x-dev__trf b { font-weight: 400; color: var(--text-3); }
.x-ip { margin-top: 6px; display: inline-block; font: 400 14px/1.4 "IBM Plex Mono", monospace; color: var(--text-2); padding: 1px 6px; border-radius: 6px;
  filter: blur(5px); background: var(--surface-2); cursor: pointer; user-select: none; transition: filter .2s; }
.x-ip.is-open { filter: none; background: transparent; user-select: text; }
.x-dev__total { text-align: right; display: grid; gap: 4px; align-content: start; }
.x-dev__total b { font: 800 15px/1.1 "Nunito", "IBM Plex Sans", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-dev__total span { font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--text-3); }
.x-dev__total .x-bar { width: 100%; min-width: 64px; margin-top: 8px; }
.x-dev__act { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.x-dev__act .x-btn { min-height: 52px; border-radius: 16px; }
.x-add { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--x-r); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); width: 100%; font: inherit; }
.x-add b { display: block; font-size: 17px; } .x-add small { display: block; color: var(--text-3); font-size: 14px; margin-top: 3px; }
.x-add .x-price { color: var(--text); font: 800 17px/1 "Nunito", sans-serif; white-space: nowrap; }

/* --- список настроек -------------------------------------------------------- */
.x-list { border: 1px solid var(--line); border-radius: var(--x-r); background: var(--surface); overflow: hidden; }
.x-li { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text);
  font: 500 16px/1.3 "IBM Plex Sans", sans-serif; text-align: left; cursor: pointer; }
.x-li:first-child { border-top: 0; }
.x-li .x-grow { flex: 1; min-width: 0; } .x-li small { display: block; color: var(--text-3); font-size: 13px; margin-top: 3px; }
.x-li > svg:first-child { color: var(--text-2); flex: none; }
.x-li .x-val { color: var(--text-3); font-size: 14px; }
.x-foot { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--text-3); font-size: 13.5px; padding: 10px 6px 4px; }
.x-foot__brand { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.x-foot__ver { font-variant-numeric: tabular-nums; }   /* 29.10 (владелец: «нижний текст в порядок»): по центру, «VFFULTIMA» и «Версия … · платформа» */

/* --- тарифы ----------------------------------------------------------------- */
.x-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 5px; gap: 5px; }
.x-seg button { border: 0; border-radius: 14px; background: none; color: var(--text-2); padding: 12px 6px; font: 600 15px/1.2 "IBM Plex Sans", sans-serif; cursor: pointer; }
.x-seg button small { display: block; font: 500 12px/1.3 "IBM Plex Mono", monospace; color: var(--text-3); margin-top: 3px; }
.x-seg button[aria-checked="true"] { background: var(--text); color: var(--bg); } .x-seg button[aria-checked="true"] small { color: #55554f; }
.x-plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--x-r); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); width: 100%; font: inherit; }
.x-plan[aria-checked="true"] { border-color: var(--text); background: radial-gradient(120% 140% at 0% 0%, #22221f 0%, var(--surface) 60%); }
.x-plan b { font-size: 18px; } .x-plan small { display: block; color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.x-plan .x-price { font: 800 16px/1.2 "Nunito", sans-serif; white-space: nowrap; text-align: right; }
.x-plan .x-price s { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.x-total { display: grid; gap: 8px; } .x-total .x-row { justify-content: space-between; font-size: 14.5px; color: var(--text-2); }
.x-total .x-sum { font: 800 26px/1 "Nunito", sans-serif; color: var(--text); }
.x-err { color: var(--x-red); font-size: 14px; } .x-note { color: var(--x-gold); font-size: 14px; }
.x-help { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--x-r); background: transparent;
  color: var(--text-2); font: 500 16px/1.3 "IBM Plex Sans", sans-serif; width: 100%; text-align: left; cursor: pointer; }
.x-help .x-grow { flex: 1; }

/* --- окна (шторки) в тёмном виде --------------------------------------------- */
.sheet { background: var(--surface); border: 1px solid var(--line-2); }
.dialog { background: var(--surface); border: 1px solid var(--line-2); }
.code { background: var(--surface-sunk); border-color: var(--line); color: var(--text-2); }
.toast { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
@media (max-width: 360px) { .x-stat b { font-size: 23px; } .x-hello b { font-size: 26px; } }

/* 19.10: «Приглашай друзей» и «Бонусы» */
.x-invite__link { gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.x-seg--sm { flex: none; padding: 3px; border-radius: 14px; } .x-seg--sm button { padding: 8px 10px; font-size: 13px; border-radius: 11px; }
.x-invite__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 "IBM Plex Mono", monospace; color: var(--text-2); }
.x-roundbtn--sm { width: 40px; height: 40px; flex: none; }
.x-bonus { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.x-bonus b { font: 800 48px/1 "Nunito", sans-serif; letter-spacing: -0.03em; } .x-bonus span { color: var(--text-2); font-size: 16px; }
.x-pos { color: var(--x-green); font-weight: 600; white-space: nowrap; }

/* 19.10: колокольчик и переключатели (включено — зелёный: это индикатор) */
.x-top .x-roundbtn + .x-roundbtn { margin-left: 8px; }
.x-bell { position: relative; }
.x-bell__n { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--x-green);
  color: #0c0c0b; font: 800 11px/20px "IBM Plex Sans", sans-serif; text-align: center; border: 2px solid var(--bg); }
.toggle { border: 0; cursor: pointer; } .toggle[aria-checked="true"] { background: var(--x-green); }

/* 19.10: тест скорости */
.x-speed { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.x-speed div { display: grid; gap: 4px; } .x-speed div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.x-speed span { color: var(--text-2); font-size: 13px; } .x-speed b { font: 800 22px/1.1 "Nunito", sans-serif; font-variant-numeric: tabular-nums; }

/* 19.10: четыре кнопки в карточке устройства помещаются в 390 px; скрытое — скрыто */
.x-dev__act { gap: 8px; } .x-dev__act .x-btn--sq { width: 48px; min-width: 48px; padding: 0; flex: none; }
.x-dev__act .x-btn--block { min-width: 0; }
[hidden] { display: none !important; }
.x-speed-row { display: grid; gap: 10px; } .x-speed-row .x-seg--sm { width: 100%; }

/* 20.10: аватар — фото Telegram поверх инициалов (не загрузилось — видны инициалы) */
.x-ava--img { position: relative; overflow: hidden; }
.x-ava--img img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; }
.x-ava-lg { border-radius: 50%; font-weight: 700; font-size: 17px; }

/* 20.10 (владелец): нижнее меню — подписи помещаются (5 разделов, «Настройки» / «Subscription» не выпирают) */
.navbar { left: 8px; right: 8px; padding: 5px; }
.navbar-inner { gap: 2px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav-item { min-width: 0; padding: 0 2px; font-size: 10.5px; letter-spacing: -0.01em; }
.nav-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 20.10 (владелец): без подсветки и выделения при нажатии — на всех элементах */
* { -webkit-tap-highlight-color: transparent; }
button, a, [data-action], .x-li, .x-plan, .x-seg button, .nav-item, .x-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:focus, a:focus, [data-action]:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--line-2); outline-offset: 2px; }
::selection { background: rgba(242, 242, 240, 0.18); }

/* 20.10 (владелец): немного анимации — нажатие, появление экрана и карточек, переключатели */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-btn, .x-li, .x-plan, .x-add, .x-help, .x-roundbtn, .x-seg button, .nav-item, .x-card[data-action], button.x-card {
    transition: transform .16s cubic-bezier(.2,.8,.2,1), background-color .2s ease, border-color .2s ease, opacity .2s ease, color .2s ease; }
  .x-btn:active, .x-li:active, .x-plan:active, .x-add:active, .x-help:active, .x-roundbtn:active, .nav-item:active, button.x-card:active { transform: scale(.97); }
  .x-seg button:active { transform: scale(.95); }
  .screen > * { animation: x-rise .32s cubic-bezier(.2,.8,.2,1) backwards; }   /* 24.10: не both — конец анимации (opacity) держался навсегда и отрезал вложенные плитки от фона: размытие пропадало */
  .screen > *:nth-child(2) { animation-delay: .03s; } .screen > *:nth-child(3) { animation-delay: .06s; } .screen > *:nth-child(4) { animation-delay: .09s; }
  .screen > *:nth-child(5) { animation-delay: .12s; } .screen > *:nth-child(n+6) { animation-delay: .15s; }
  .x-bar i, .x-segs i { transition: width .6s cubic-bezier(.2,.8,.2,1), background-color .3s ease; }
  .x-bell__n { animation: x-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
  .x-st--on::before { animation: x-pulse 2.4s ease-in-out infinite; }
}
@keyframes x-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes x-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes x-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* 20.10: «потяни, чтобы обновить» */
.x-ptr { position: fixed; left: 50%; top: calc(8px + var(--sat)); z-index: 40; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  transform: translateY(-60px); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.x-ptr svg { animation: x-spin .9s linear infinite; }      /* 22.10: крутится всегда, пока виден */
.x-ptr__arc { transition: stroke-dashoffset .12s linear; transform-origin: center; }
.x-ptr.is-ready { border-color: var(--x-green); color: var(--x-green); }
.x-ptr.is-loading svg { animation-duration: .7s; }
@keyframes x-spin { to { transform: rotate(360deg); } }
.screen.no-anim > * { animation: none !important; }

/* 20.10: фон как на сайте (пока — только владельцу): свет, планета, зерно — поверх прежнего цвета фона */
/* 31.10: промокоды («Подписка») */
.x-promo { padding: 0; overflow: hidden; }
.x-promo__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; color: var(--text); font-weight: 600; }
.x-promo__form { display: grid; gap: 10px; padding: 0 18px 16px; }
.x-promo__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.x-promo__row .x-btn { padding: 0 16px; min-height: 46px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 360px) { .x-promo__row { grid-template-columns: 1fr; } }   /* 01.11: совсем узкий экран — кнопка под полем */
.x-promo__in { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 16px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.x-promo__in::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 400; color: var(--text-3); }
.x-promo__item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.x-promo__item small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.x-promo__item--on svg { color: #6fcf97; }
.x-promo__item--code { flex-wrap: wrap; }
.x-promo__item--code > .x-grow { flex: 1 1 calc(100% - 30px); min-width: 0; }
.x-promo__acts { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 28px; }
.x-promo__acts .x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; }
.x-promo__code { font-family: "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: .06em; }
.x-promo__tag { flex: none; margin-left: auto; align-self: center; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(111, 207, 151, .45); background: rgba(111, 207, 151, .10); font: 600 15px "IBM Plex Mono", monospace; letter-spacing: .05em; color: var(--text); white-space: nowrap; }   /* 01.11 (владелец): крупнее, по правому краю */
.x-btn--sm { padding: 8px 12px; min-height: 0; font-size: 13px; }
/* 01.11: «Подключить за 2 шага» (тест владельца) */
.x-help--test, .x-help--top { border-color: rgba(111, 207, 151, .45); }
/* 01.11 (владелец): «Подключить ещё устройство» — мягкое внутреннее зелёное свечение, «+» — белое; медленно (3,2 с), без резких вспышек */
.screen > .x-help--pulse, .screen.no-anim > .x-help--pulse, .screen.settled > .x-help--pulse { animation: xHelpGlow 3.2s ease-in-out infinite !important; }   /* сильнее .screen.no-anim > * (оно гасило свечение) */
.x-help--pulse > svg:first-child { color: #fff; animation: xPlusGlow 3.2s ease-in-out infinite; }
/* 01.11 (владелец: «„+“ жирнее и текст жирный, чтобы видно было») */
.x-help--pulse > svg:first-child { stroke-width: 3; }
.x-help--pulse .x-grow { color: var(--text); font-weight: 700; font-size: 16.5px; }
.x-help--pulse .x-grow small { color: var(--text-2); font-weight: 500; }
@keyframes xHelpGlow {
  0%, 100% { box-shadow: inset 0 0 10px 0 rgba(111, 207, 151, .06); border-color: rgba(111, 207, 151, .35); }
  50% { box-shadow: inset 0 0 30px 3px rgba(111, 207, 151, .28); border-color: rgba(111, 207, 151, .7); }
}
/* светлая тема: «+» белым не виден — зелёный со свечением; свечение кнопки — темнее зелёный */
html.x-light .screen > .x-help--pulse, html.x-light .screen.no-anim > .x-help--pulse, html.x-light .screen.settled > .x-help--pulse { animation-name: xHelpGlowL !important; }
html.x-light .x-help--pulse > svg:first-child { color: #1f8a4f; animation-name: xPlusGlowL; }
@keyframes xHelpGlowL {
  0%, 100% { box-shadow: inset 0 0 10px 0 rgba(31, 138, 79, .06); border-color: rgba(31, 138, 79, .35); }
  50% { box-shadow: inset 0 0 30px 3px rgba(31, 138, 79, .2); border-color: rgba(31, 138, 79, .7); }
}
@keyframes xPlusGlowL {
  0%, 100% { opacity: .8; filter: drop-shadow(0 0 0 rgba(31, 138, 79, 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(31, 138, 79, .55)); }
}
@keyframes xPlusGlow {
  0%, 100% { opacity: .75; filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .7)); }
}
/* 01.11: «Подключите VPN» — ещё нет устройств: на видном месте, сразу под подпиской */
.x-cta { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: var(--x-r); border: 1px solid rgba(111, 207, 151, .55);
  background: linear-gradient(135deg, rgba(111, 207, 151, .16), rgba(111, 207, 151, .04)); color: var(--text); text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(111, 207, 151, .4); animation: x-cta-pulse 2.4s ease-out infinite; }
.x-cta b { display: block; font-size: 17px; }
.x-cta small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.x-cta__ico { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(111, 207, 151, .22); color: #6fcf97; }
.x-cta__go { flex: none; padding: 11px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14.5px; }
@keyframes x-cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 151, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(111, 207, 151, 0); } }
html.x-light .x-cta { background: linear-gradient(135deg, rgba(46, 160, 98, .14), rgba(46, 160, 98, .03)); border-color: rgba(46, 160, 98, .5); }
html.x-light .x-cta__ico { background: rgba(46, 160, 98, .16); color: #1f8a4f; }
.x-help small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; font-weight: 400; }
.x-cn__devs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.x-cn__devs::-webkit-scrollbar { display: none; }
.x-cn__devs { cursor: grab; scroll-behavior: auto; } .x-cn__devs.is-drag { cursor: grabbing; user-select: none; } .x-cn__devs.is-drag .x-cn__dev { pointer-events: none; }
.x-cn__dev { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 13.5px "IBM Plex Sans", sans-serif; cursor: pointer; }
.x-cn__dev.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.x-cn__step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 10px; }
.x-cn__step b { display: block; font-size: 16px; }
.x-cn__step small { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.x-cn__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px "Nunito", sans-serif; background: var(--text); color: var(--bg); }
.x-cn__btn { width: 100%; justify-content: flex-start; gap: 12px; text-align: left; min-height: 60px; padding: 10px 16px; margin-top: 8px; }
.x-cn__btn .x-grow > span { display: block; font-weight: 600; font-size: 15.5px; }
.x-cn__btn small { display: block; font-size: 12.5px; font-weight: 400; opacity: .7; margin-top: 2px; white-space: normal; }
/* 01.11 (владелец: «добавить мягкие цвета — элементы непонятны из-за только тёмного и светлого»; 01.11 — всем, .x-cn--color):
   у шага свой цвет — 1 «Скачайте» голубой, 2 «Добавьте» зелёный, 3 «Включите» фиолетовый; карточка, номер и кнопка шага — в его цвете */
.x-cn--color .x-cn__s1 { --cn: 106, 168, 255; } .x-cn--color .x-cn__s2 { --cn: 111, 207, 151; } .x-cn--color .x-cn__s3 { --cn: 181, 140, 255; }
.x-cn--color .x-cn__step { border-color: rgba(var(--cn), .32); background: linear-gradient(135deg, rgba(var(--cn), .13), rgba(var(--cn), .03)); }
.x-cn--color .x-cn__num { background: rgba(var(--cn), .22); color: rgb(var(--cn)); box-shadow: inset 0 0 0 1px rgba(var(--cn), .45); }
.x-cn--color .x-cn__btn.x-btn--white > svg:first-child { color: rgb(var(--cn)); filter: brightness(.8) saturate(1.3); }
.x-cn--color .x-cn__btn.x-btn--white { box-shadow: inset 0 0 0 1px rgba(var(--cn), .55); }
.x-cn--color .x-cn__btn.x-btn--dark { border-color: rgba(var(--cn), .3); }
.x-cn--color .x-cn__btn.x-btn--dark > svg:first-child { color: rgb(var(--cn)); }
.x-cn--color .x-cn__dev.is-on { background: rgba(111, 207, 151, .2); color: var(--text); border-color: rgba(111, 207, 151, .6); }
.x-cn--color .x-cn__sum > svg:first-child { color: #6fcf97; opacity: 1; }
.x-cn--color .x-cn__orow [data-dl] { --cn: 106, 168, 255; border-color: rgba(var(--cn), .45); } .x-cn--color .x-cn__orow [data-dl] svg { color: rgb(var(--cn)); }   /* «Скачать» — цвет шага 1 */
.x-cn--color .x-cn__orow [data-oadd], .x-cn--color .x-cn__orow [data-role="copy"] { --cn: 111, 207, 151; box-shadow: inset 0 0 0 1px rgba(var(--cn), .6); }   /* «Добавить» — цвет шага 2 */
.x-cn--color .x-cn__orow [data-oadd] svg, .x-cn--color .x-cn__orow [data-role="copy"] svg { color: #1f8a4f; }
html.x-light .x-cn--color .x-cn__orow [data-dl] { --cn: 37, 110, 220; }
html.x-light .x-cn--color .x-cn__orow [data-oadd] svg, html.x-light .x-cn--color .x-cn__orow [data-role="copy"] svg { color: #6fcf97; }
html.x-light .x-cn--color .x-cn__s1 { --cn: 37, 110, 220; } html.x-light .x-cn--color .x-cn__s2 { --cn: 31, 138, 79; } html.x-light .x-cn--color .x-cn__s3 { --cn: 124, 77, 214; }
html.x-light .x-cn--color .x-cn__step { background: linear-gradient(135deg, rgba(var(--cn), .14), rgba(var(--cn), .04)), #fff; border-color: rgba(var(--cn), .35); box-shadow: none; }
html.x-light .x-cn--color .x-cn__num { background: rgba(var(--cn), .16); }
html.x-light .x-cn--color .x-cn__s1.x-btn--white > svg:first-child { color: #6aa8ff; filter: none; }   /* светлая тема: эта кнопка — тёмная, значок — светлым цветом шага */
html.x-light .x-cn--color .x-cn__s2.x-btn--white > svg:first-child { color: #6fcf97; filter: none; }
html.x-light .x-cn--color .x-cn__dev.is-on { background: rgba(31, 138, 79, .14); border-color: rgba(31, 138, 79, .55); }
html.x-light .x-cn--color .x-cn__sum > svg:first-child { color: #1f8a4f; }
.x-cn__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.x-cn__alt .x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; }
.x-link.x-link--sub { align-self: flex-start; justify-content: flex-start; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-3); padding: 2px 2px 6px; text-align: left; }
.x-cn__other { margin-top: 14px; padding: 0; overflow: hidden; display: block; }   /* 01.11: не grid — зазор .x-card (14 px) давал пустоту под заголовком */
.x-cn__other summary { list-style: none; display: block; padding: 0; cursor: pointer; }   /* 01.11: flex — во внутреннем div (старый WebKit Telegram Mac не умеет flex у summary) */
.x-cn__sum { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 60px; }
.x-cn__st { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15.5px; }
.x-cn__sum > svg:first-child { flex: none; opacity: .8; } .x-cn__sum > svg:last-child { flex: none; opacity: .6; transition: transform .2s ease; }
.x-cn__other summary::-webkit-details-marker { display: none; }
.x-cn__other summary small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.x-cn__other[open] .x-cn__sum > svg:last-child { transform: rotate(90deg); }
.x-cn__orow { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.x-cn__orow > b { flex: 1 1 auto; min-width: 0; }
.x-cn__omiss { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.x-cn__orow .x-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.x-cn__miss, .x-cn__foot { margin: 8px 2px 0; font-size: 13px; }
body.globe-hover { cursor: grab; }   /* 31.10: планета — крутить мышью, как на главной */
body.globe-drag, body.globe-drag * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
#x-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#x-bg > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.x-bg__light { --mx: 50%; --my: 30%; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242,242,240,.065), transparent 65%); }
.x-bg__grain { opacity: .55; }
/* 25.10 (оптимизация): пятно света — готовый слой 840×840, двигается сдвигом (GPU), экран не перерисовывается; вид — тот же */
#x-bg > .x-bg__light--fast { right: auto; bottom: auto; width: 840px; height: 840px; background: radial-gradient(420px circle at 50% 50%, rgba(242,242,240,.065), transparent 65%); will-change: transform; }
body.has-bg .shell { position: relative; z-index: 1; }
/* 24.10 (владелец: «то же самое в тех же пропорциях — ко ВСЕМ элементам; не понравится — откатимся»): крупные элементы (плитки, строки,
   списки, переключатели, тарифы, шапка, круглые кнопки, тёмные кнопки, нижнее меню) — подложка 30 %; мелкие внутри (значки, аватар, метки
   статуса, значки приложений, выбранная вкладка, полоски) — 50 %; размытие фона 1 px. Окна, диалоги, уведомления, подсказки, колесо —
   сплошные (лежат поверх содержимого). 24.10 — включено всем (владелец: «выкладывай для всех»). Откат — удалить этот блок. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.has-bg .x-card, body.has-bg .x-card--glow, body.has-bg .x-stats, body.has-bg .x-dev, body.has-bg .x-list, body.has-bg .x-add, body.has-bg .x-seg, body.has-bg .x-plan, body.has-bg .x-pill, body.has-bg .x-roundbtn, body.has-bg .x-btn--dark, body.has-bg .x-btn--blue, body.has-bg .x-ip, body.has-bg .x-welcome__list, body.has-bg .xb-card { background: rgba(23, 23, 22, .3); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
  body.has-bg .x-plan[aria-checked="true"] { background: radial-gradient(120% 140% at 0% 0%, rgba(40, 40, 36, .45) 0%, rgba(23, 23, 22, .3) 60%); }
  body.has-bg .x-ico, body.has-bg .x-ico--plain, body.has-bg .x-ico--green, body.has-bg .x-pill .x-ava, body.has-bg .x-chip--gray, body.has-bg .x-st:not(.x-st--on):not(.x-st--warn):not(.x-st--off), body.has-bg .x-dev__app--incy, body.has-bg .x-dev__app--happ, body.has-bg .xb-btn, body.has-bg .x-steps b { background: rgba(32, 32, 30, .5); }
  body.has-bg .x-ico { background: linear-gradient(160deg, rgba(38, 38, 35, .5), rgba(23, 23, 22, .5)); }
}
body.has-bg .navbar { background: rgba(23, 23, 22, .8); }
/* 24.10 (владелец: «капсулы — светло-серыми, с размытием их не видно»): пустые капсулы и дорожки полосок — светло-серые; заполненные — как были */
body.has-bg .x-segs i:not(.on), body.has-bg .x-dot:not(.on), body.has-bg .x-bar { background: rgba(242, 242, 240, .24); }
body.has-bg .x-card.x-friends { background: rgba(23, 23, 22, .8); }   /* 24.10: «Начислено за друзей» — подложка 80 % */   /* 24.10: нижнее меню — как было, только подложка 80 % (было 94 %) */




/* 20.10: анимация входа — три части знака собираются, пока грузится — «переставляются» и светятся, готово — растворяется */
.x-splash { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease; }
.x-splash__in { display: grid; justify-items: center; gap: 26px; }
.x-splash svg { width: 132px; height: auto; overflow: visible; filter: drop-shadow(0 0 0 rgba(242,242,240,0)); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }
.x-splash path { fill: #F2F2F0; transform-box: fill-box; transform-origin: center; opacity: 0; }
.x-splash .p0 { animation: xs-in0 .7s cubic-bezier(.2,.9,.25,1.15) .05s forwards; }
.x-splash .p1 { animation: xs-in1 .7s cubic-bezier(.2,.9,.25,1.15) .16s forwards; }
.x-splash .p2 { animation: xs-in2 .7s cubic-bezier(.2,.9,.25,1.15) .27s forwards; }
.x-splash.is-loading svg { animation: xs-glow 1.6s ease-in-out infinite; }
.x-splash.is-loading .p1 { opacity: 1; animation: xs-shuffle1 1.6s ease-in-out infinite; }
.x-splash.is-loading .p2 { opacity: 1; animation: xs-shuffle2 1.6s ease-in-out infinite; }
.x-splash.is-loading .p0 { opacity: 1; animation: xs-shuffle0 1.6s ease-in-out infinite; }
.x-splash__bar { width: 92px; height: 2px; border-radius: 2px; background: rgba(242,242,240,.12); overflow: hidden; position: relative; opacity: 0; animation: xs-fade .4s ease .7s forwards; }
.x-splash__bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: #F2F2F0; animation: xs-run 1.1s ease-in-out infinite; }
.x-splash.is-done { opacity: 0; pointer-events: none; }
.x-splash.is-done svg { transform: scale(1.18); opacity: 0; }
@keyframes xs-in0 { from { opacity: 0; transform: translate(-70px, -50px) rotate(-28deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes xs-in1 { from { opacity: 0; transform: translate(80px, -16px) rotate(22deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes xs-in2 { from { opacity: 0; transform: translate(14px, 80px) rotate(-18deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes xs-shuffle0 { 0%, 100% { transform: none; } 40% { transform: translate(-3px, -3px); } }
@keyframes xs-shuffle1 { 0%, 100% { transform: none; } 25% { transform: translate(7px, -5px); } 55% { transform: translate(-2px, 3px); } }
@keyframes xs-shuffle2 { 0%, 100% { transform: none; } 45% { transform: translate(-6px, 6px); } 75% { transform: translate(3px, -2px); } }
@keyframes xs-glow { 0%, 100% { filter: drop-shadow(0 0 2px rgba(242,242,240,.15)); } 50% { filter: drop-shadow(0 0 14px rgba(242,242,240,.4)); } }
@keyframes xs-run { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes xs-fade { to { opacity: 1; } }
@media not all /* 24.10: «Уменьшить движение» больше не выключает анимации */ { .x-splash path { opacity: 1; animation: none !important; } .x-splash svg { animation: none !important; } }

/* 20.10 (владелец): блеск логотипа на главной — раз в 7 с полоса света проходит по знаку (маска по форме логотипа) */
.x-hello .x-mark { position: relative; }
.x-hello .x-mark::after, .x-welcome .x-mark::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 494 326' fill='%23000'%3E%3Cpath d='M4.8 11.8L5.2 12.9Q9 23.7 14.9 33.5L114.4 199.3Q120.6 209.6 126.4 199.2L205.7 57.5Q206.5 56.2 208 56.2L449.1 56.2Q455.1 56.2 460.1 52.8L460.6 52.4Q465.6 49 468.5 43.6L486.3 11.5Q492 1 480 1L187.9 1Q175.9 1 170 11.4L123 95.3Q122.3 96.6 121.5 95.3L95.9 52.7Q95.2 51.4 96.7 51.4L106.2 51.4Q116.2 51.3 121.1 42.6L138.6 11.4Q144.4 1 132.4 1L12.5 1Q1 1 4.8 11.8Z'/%3E%3Cpath d='M300.6 72L225.8 72Q213.8 72 207.9 82.4L134.7 213.1Q128.9 223.5 135.1 233.8L156.8 270Q163 280.3 168.8 269.8L214.8 187.8Q215.5 186.4 217 186.4L236.5 186.4Q248.5 186.4 254.3 176L270.7 146.7Q276.6 136.2 264.6 136.2L245.1 136.2Q243.6 136.2 244.4 134.9L250.8 123.5Q251.5 122.2 253 122.2L272.5 122.2Q284.5 122.2 290.4 111.7L306.7 82.4Q312.6 72 300.6 72Z'/%3E%3Cpath d='M440.6 72L341.2 72Q329.2 72 323.3 82.4L193.4 314.4Q187.6 324.9 199.6 324.9L241.3 325Q253.3 325 259.2 314.5L330.2 187.8Q330.9 186.4 332.4 186.4L376.5 186.4Q388.5 186.4 394.4 176L410.8 146.7Q416.6 136.2 404.6 136.2L360.6 136.2Q359.1 136.2 359.8 134.9L366.2 123.5Q366.9 122.2 368.4 122.2L412.5 122.2Q424.5 122.2 430.4 111.7L446.7 82.4Q452.6 72 440.6 72Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 494 326' fill='%23000'%3E%3Cpath d='M4.8 11.8L5.2 12.9Q9 23.7 14.9 33.5L114.4 199.3Q120.6 209.6 126.4 199.2L205.7 57.5Q206.5 56.2 208 56.2L449.1 56.2Q455.1 56.2 460.1 52.8L460.6 52.4Q465.6 49 468.5 43.6L486.3 11.5Q492 1 480 1L187.9 1Q175.9 1 170 11.4L123 95.3Q122.3 96.6 121.5 95.3L95.9 52.7Q95.2 51.4 96.7 51.4L106.2 51.4Q116.2 51.3 121.1 42.6L138.6 11.4Q144.4 1 132.4 1L12.5 1Q1 1 4.8 11.8Z'/%3E%3Cpath d='M300.6 72L225.8 72Q213.8 72 207.9 82.4L134.7 213.1Q128.9 223.5 135.1 233.8L156.8 270Q163 280.3 168.8 269.8L214.8 187.8Q215.5 186.4 217 186.4L236.5 186.4Q248.5 186.4 254.3 176L270.7 146.7Q276.6 136.2 264.6 136.2L245.1 136.2Q243.6 136.2 244.4 134.9L250.8 123.5Q251.5 122.2 253 122.2L272.5 122.2Q284.5 122.2 290.4 111.7L306.7 82.4Q312.6 72 300.6 72Z'/%3E%3Cpath d='M440.6 72L341.2 72Q329.2 72 323.3 82.4L193.4 314.4Q187.6 324.9 199.6 324.9L241.3 325Q253.3 325 259.2 314.5L330.2 187.8Q330.9 186.4 332.4 186.4L376.5 186.4Q388.5 186.4 394.4 176L410.8 146.7Q416.6 136.2 404.6 136.2L360.6 136.2Q359.1 136.2 359.8 134.9L366.2 123.5Q366.9 122.2 368.4 122.2L412.5 122.2Q424.5 122.2 430.4 111.7L446.7 82.4Q452.6 72 440.6 72Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 46%, rgba(17,17,16,.35) 48.6%, rgba(17,17,16,.6) 50%, rgba(17,17,16,.35) 51.4%, transparent 54%) 0 0 / 400% 100% no-repeat;
  background-position: 75% 0; opacity: 0; }
/* 21.10 (владелец: «убрать анимацию у логотипа… придумай что-то поинтереснее»): блеск и «катание» убраны.
   «Пересборка»: раз в 10 с три части знака (V и две F) по очереди выезжают вверх-вправо по наклону знака и со щелчком встают на место */
.x-hello .x-mark::after, .x-welcome .x-mark::after { display: none; }
.x-hello .x-mark svg { overflow: visible; }                 /* части выезжают за рамку знака — не обрезать (владелец: «невидимый квадрат») */
/* 24.10 (владелец: «добавить вторую — частицы — через 10 с»): «пересборка» запускается по очереди с частицами (logo-fx.js, класс
   .is-snap, раз в 20 с); движение то же — 0,8 с из прежних 10-секундных ключевых кадров (90–98 %) */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-hello .x-mark.is-snap path { animation: x-snap1 .8s cubic-bezier(.3, 0, .2, 1) both; }
  .x-hello .x-mark.is-snap path:nth-child(2) { animation-delay: .12s; }
  .x-hello .x-mark.is-snap path:nth-child(3) { animation-delay: .24s; }
}
@keyframes x-snap1 { 0% { transform: none; } 37.5% { transform: translate(30px, -52px); } 75% { transform: translate(-4px, 7px); } 100% { transform: none; } }
.x-mark__fx { position: absolute; pointer-events: none; z-index: 1; }
@keyframes x-snap {
  0%, 90% { transform: none; }
  93%     { transform: translate(30px, -52px); }
  96%     { transform: translate(-4px, 7px); }
  98%, 100% { transform: none; }
}
@keyframes x-shine { 0% { background-position: 75% 0; opacity: 1; } 14% { background-position: 25% 0; opacity: 1; } 15%, 100% { background-position: 25% 0; opacity: 0; } }

/* 21.10 (владелец: «блеск попробуй сделать серым или чёрным»): знак снова белый, по нему проходит тёмно-серая полоса */
.x-hello .x-mark, .x-welcome .x-mark { color: #f2f2f0; }

/* 20.10 (владелец: «лёгкие анимации элементам интерфейса») */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .screen:not(.no-anim) .x-bar i { animation: x-fill .9s cubic-bezier(.2,.8,.2,1) .15s both; }
  /* 23.10 (владелец): капсулы — появляются по очереди, затем по очереди заполняются (устройства, бонусы, точки мест) */
  .screen:not(.no-anim) .x-segs i, .screen:not(.no-anim) .x-dot { animation: x-seg-in .34s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.12s + var(--i, 0) * 70ms); }
  .screen:not(.no-anim) .x-segs i.on, .screen:not(.no-anim) .x-dot.on {
    animation: x-seg-in .34s cubic-bezier(.2,.8,.2,1) both, x-seg-fill .38s ease both;
    animation-delay: calc(.12s + var(--i, 0) * 70ms), calc(.2s + var(--n, 1) * 70ms + var(--i, 0) * 110ms); }
  .screen:not(.no-anim) .x-dev, .screen:not(.no-anim) .x-li, .screen:not(.no-anim) .x-plan { animation: x-rise .38s cubic-bezier(.2,.8,.2,1) backwards; }
  .screen:not(.no-anim) .x-list > :nth-child(2), .screen:not(.no-anim) .x-dev:nth-of-type(2), .screen:not(.no-anim) [data-role="periods"] > :nth-child(2) { animation-delay: .05s; }
  .screen:not(.no-anim) .x-list > :nth-child(3), .screen:not(.no-anim) .x-dev:nth-of-type(3), .screen:not(.no-anim) [data-role="periods"] > :nth-child(3) { animation-delay: .1s; }
  .screen:not(.no-anim) .x-list > :nth-child(n+4), .screen:not(.no-anim) .x-dev:nth-of-type(n+4), .screen:not(.no-anim) [data-role="periods"] > :nth-child(n+4) { animation-delay: .15s; }
  .nav-item.active svg { animation: x-hop .45s cubic-bezier(.3,1.6,.5,1) both; }
  .toggle::after { transition: transform .32s cubic-bezier(.3,1.5,.5,1); }
  .x-seg button { transition: background-color .25s ease, color .25s ease, transform .16s ease; }
  .x-plan[aria-checked="true"] { animation: x-pick .3s cubic-bezier(.3,1.4,.5,1); }
  .x-ico svg { transition: transform .2s ease; } button:active .x-ico svg, .x-li:active svg { transform: scale(.9); }
  .x-chev, .x-li > svg:last-child { transition: transform .2s ease; } .x-li:active > svg:last-child { transform: translateX(3px); }
  .toast { animation: x-toast .35s cubic-bezier(.2,1.2,.4,1) both; }
}
@keyframes x-fill { from { width: 0; } }
@keyframes x-hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-4px) scale(1.12); } 100% { transform: none; } }
@keyframes x-pick { 0% { transform: scale(.98); } 60% { transform: scale(1.012); } 100% { transform: none; } }
@keyframes x-toast { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* 20.10 (владелец: «что будет при очень длинном нике?»): имя никогда не ломает вёрстку */
.x-top { min-width: 0; }
.x-pill { min-width: 0; max-width: calc(100% - 128px); flex-shrink: 1; }
.x-pill > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-hello b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.x-hello--long b { font-size: 22px; }
.x-hello--xlong b { font-size: 18px; line-height: 1.2; }
.x-ava-lg + div .x-name, .x-card .x-name[data-i18n-skip] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }

/* 20.10: первый вход без подписки — приветствие, капча «где наш логотип», «готовим доступ» */
.x-welcome { min-height: calc(100vh - 60px); display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px 6px 40px; }
.x-welcome h1 { margin: 6px 0 0; font: 800 24px/1.2 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.x-welcome p { margin: 0; color: var(--text-2); max-width: 320px; }
.x-welcome .x-mark { width: 120px; color: #f2f2f0; position: relative; } .x-welcome .x-mark svg { width: 100%; height: auto; display: block; }
.x-welcome__list { list-style: none; margin: 4px 0 0; padding: 14px 16px; display: grid; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); max-width: 360px; }
.x-welcome__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14px; line-height: 1.4; } .x-welcome__list svg { flex: none; margin-top: 1px; color: var(--text); }
.x-welcome__btns { width: 100%; max-width: 360px; display: grid; gap: 10px; margin-top: 6px; }
.x-cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.x-cap__opt { aspect-ratio: 1.25; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; padding: 10px; }
.x-cap__opt svg { width: 100%; height: 100%; } .x-cap__opt path { fill: var(--text); }
.x-cap__opt { height: 84px; } @supports (aspect-ratio: 1) { .x-cap__opt { height: auto; } }   /* 04.11: старый WebKit без aspect-ratio — капча не раздувается */
.x-cap__opt:active { transform: scale(.95); border-color: var(--text); }
.x-ready { display: grid; justify-items: center; gap: 14px; padding: 18px 0 8px; }
.x-ready__spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--x-green); animation: x-spin .8s linear infinite; }

/* 21.10: «Добавить устройство», когда докупка недоступна, — обычная плашка; действие справа («Тарифы» / «Продлить») — обычным шрифтом */
.x-add[data-why] .x-price { font: 600 14px/1 "IBM Plex Sans", sans-serif; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* 21.10 (владелец: окно докупки устройств — «как у Xconnect, только вид»): шапка с иконкой, «+N», ползунок с точками, «Навсегда» */
.xb-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.xb-head__t b { display: block; font-size: 17px; line-height: 1.25; }
.xb-head__t small { display: block; color: var(--text-3); font-size: 15px; margin-top: 4px; }
.xb-head__t small b { display: inline; font-size: inherit; color: var(--text); }
.xb-x { background: none; border: 0; color: var(--text-3); padding: 6px; cursor: pointer; }
.xb-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 18px; display: grid; gap: 14px; }
.xb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xb-n { font: 800 34px/1 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.xb-slide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.xb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #1d1d1b; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.xb-btn:disabled { opacity: .35; cursor: default; }
.xb-track { position: relative; height: 34px; touch-action: none; cursor: pointer; }
.xb-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: #262623; }
.xb-track i { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #55554f; }
.xb-knob { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: left .18s cubic-bezier(.2,.8,.2,1); }
.xb-cap { text-align: center; color: var(--text-3); font-size: 14px; }
.xb-cap--l { text-align: left; }
.xb-val { font-size: 19px; font-weight: 600; }

/* 21.10 (владелец: «добавить анимации оплаты»): точки «Создаём платёж…», экран «Оплата прошла» / «не прошла» */
.x-dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.x-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .25; animation: x-dot 1s ease-in-out infinite; }
.x-dots i:nth-child(2) { animation-delay: .15s; } .x-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes x-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.x-paid { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: grid; place-items: center; background: rgba(10,10,9,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: x-paid-in .25s ease both; }
.x-paid.is-closing { animation: x-paid-out .3s ease both; }
.x-paid__in { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 24px; animation: x-paid-pop .45s cubic-bezier(.2,.9,.25,1.2) both; }
.x-paid svg { width: 112px; height: 112px; }
.x-paid__ring { fill: none; stroke-width: 5; stroke-dasharray: 264; stroke-dashoffset: 264; animation: x-paid-draw .6s ease-out .05s forwards; }
.x-paid__mark { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: x-paid-draw .35s ease-out .55s forwards; }
.x-paid.is-ok .x-paid__ring, .x-paid.is-ok .x-paid__mark { stroke: var(--x-green); }
.x-paid.is-bad .x-paid__ring, .x-paid.is-bad .x-paid__mark { stroke: var(--x-red); }
.x-paid.is-ok svg { filter: drop-shadow(0 0 18px rgba(96, 200, 130, .35)); }
.x-paid b { font: 800 24px/1.2 "Nunito", "IBM Plex Sans", sans-serif; margin-top: 6px; }
.x-paid small { color: var(--text-3); font-size: 15px; }
@keyframes x-paid-draw { to { stroke-dashoffset: 0; } }
@keyframes x-paid-in { from { opacity: 0; } } @keyframes x-paid-out { to { opacity: 0; } }
@keyframes x-paid-pop { from { transform: scale(.85); opacity: 0; } }
@media not all /* 24.10: «Уменьшить движение» больше не выключает анимации */ { .x-paid__ring, .x-paid__mark { animation: none; stroke-dashoffset: 0; } .x-paid__in { animation: none; } }

/* 21.10 (владелец): значок подписки на главной — у каждого тарифа свой; тихие анимации */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-pi__trail { animation: x-trail 2.4s ease-in-out infinite; }
  .x-pi__trail.t2 { animation-delay: .3s; } .x-pi__trail.t3 { animation-delay: .6s; }
  .x-pi__tw { animation: x-twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .x-pi__flame { animation: x-flame .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top center; }
}
@media not all /* 24.10: «Уменьшить движение» больше не выключает анимации */ { .x-pi__sat circle:not(:first-child) { display: none; } }
@keyframes x-trail { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes x-twinkle { 0%, 70%, 100% { opacity: .35; transform: scale(.7); } 85% { opacity: 1; transform: scale(1.15); } }
@keyframes x-flame { from { transform: scaleY(.75); opacity: .6; } to { transform: scaleY(1.15); opacity: 1; } }
/* 21.10 (владелец: «иконки уровня тарифов везде»): значок тарифа над названием в выборе тарифа */
.x-seg button .x-pi { display: block; margin: 0 auto 6px; }
.x-seg button[aria-checked="true"] .x-pi { color: var(--bg); }
.x-seg .x-pi { --x-pi-bg: var(--surface); }
.x-seg button[aria-checked="true"] .x-pi { --x-pi-bg: var(--text); }

/* 21.10 (владелец): «Начислено за друзей» — созвездие на фоне (canvas под текстом) */
.x-friends { position: relative; overflow: hidden; }
.x-friends > :not(.x-friends__bg):not(.x-friends__glow) { position: relative; z-index: 1; }
.x-friends__bg, .x-friends__glow { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.x-friends__glow { filter: blur(12px); opacity: .85; }        /* 21.10: полосы — размыто (как у Xconnect), чтобы не мешали тексту */
/* 21.10: фазы Луны в выборе срока — полная (12 мес) мягко светится */
.x-moon--full { filter: drop-shadow(0 0 5px rgba(242,242,240,.35)); }
.x-ico .x-moon { color: var(--text-2); }   /* 24.10 (владелец): луны сроков — тем же серым, что иконки тарифов, не белые */
.x-ico .x-moon--full { filter: drop-shadow(0 0 4px rgba(242,242,240,.18)); }

/* 21.10: приглашение — «У друга не открывается Telegram?» и шаги в окне */
.x-invite__tg { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; background: none; text-align: left; }
.x-invite__tg small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.x-steps { display: grid; gap: 10px; }
.x-steps > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.x-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2, #262623); font-size: 13px; }
.x-steps span { color: var(--text-2); font-size: 15px; line-height: 1.4; }

/* 22.10: свайп между вкладками — новая вкладка въезжает с нужной стороны */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  /* 22.10 (запись экрана владельца): только новая вкладка (.swiping) — обновление данных во время въезда его не повторяет */
  [data-swipe="next"] #screen.swiping { animation: x-swipe-next .24s cubic-bezier(.2,.8,.2,1) backwards; }
  [data-swipe="prev"] #screen.swiping { animation: x-swipe-prev .24s cubic-bezier(.2,.8,.2,1) backwards; }
}
/* 22.10 (вторая запись владельца, 11,40 с): у .screen своё проявление screen-in (style.css) — запускалось на КАЖДОЙ подмене #screen
   (обновление данных, «Устройства» обновляются сами) и снова — когда после въезда снимался .swiping. Подмены без анимации: */
.screen.no-anim, .screen.settled { animation: none; }      /* settled — въехала свайпом: своё проявление не запускать (блоки — анимируются) */
/* 22.10: край вкладок — редкая «пыль» полуовалом на всю высоту (canvas, рисует app.js) */
.x-edge { position: fixed; top: 0; width: 150px; height: 100vh; height: 100dvh; pointer-events: none; z-index: 59; display: none; }
.x-edge.is-left { left: 0; } .x-edge.is-right { right: 0; }
.x-edge.is-on { display: block; }
/* уезжающая вкладка — копия поверх (под меню), новая въезжает одновременно, без пустого кадра */
.x-ghost { position: fixed; margin: 0; pointer-events: none; z-index: 2; will-change: transform; }
@keyframes x-swipe-next { from { transform: translate3d(100%,0,0); } }      /* 22.10: «как месяц» — новая вкладка въезжает целиком */
@keyframes x-swipe-prev { from { transform: translate3d(-100%,0,0); } }
#screen, .navbar { touch-action: pan-y; }                                          /* 22.10: вертикаль — браузеру, горизонталь — свайпу вкладок */
#app { overflow-x: hidden; }
html, body { overscroll-behavior-x: none; }   /* 22.10: свайп тачпадом — вкладки приложения, а не «назад» браузера */


/* 22.10 (владелец: «месяц в сторону свайпа… закруглённая линия, расширенная в середине»): серп у края при свайпе; на пороге — светится */
.x-swmoon { position: fixed; top: calc(50% - 75px); right: 6px; transition: top .06s linear; z-index: 60; width: 34px; height: 150px; color: var(--text); pointer-events: none; opacity: 0; display: none; }
.x-swmoon.is-left { right: auto; left: 6px; transform: scaleX(-1); }
.x-swmoon.is-on { display: block; }
.x-swmoon.is-full svg { filter: drop-shadow(0 0 10px rgba(242,242,240,.6)); }

/* 23.10: капсулы и точки мест */
.x-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #30302d; } .x-dot.on { background: var(--text); }
/* 24.10 (владелец: «в Устройствах вместо точек — такие же капсулы; не влезают — чуть короче»): места — капсулы, делят строку поровну
   (до 22 px, при 10 местах короче, не меньше 8 px) */
.x-dcaps-row { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.x-dcaps { display: flex; gap: 4px; flex: 1; min-width: 0; max-width: 240px; }
.x-dcaps .x-dot { flex: 1 1 0; width: auto; min-width: 8px; max-width: 22px; height: 5px; border-radius: 5px; }
@keyframes x-seg-in { from { opacity: 0; transform: scale(.4); } }
@keyframes x-seg-fill { from { background-color: #2c2c29; } }
/* 23.10: подсказка справа сверху */
.x-hint { position: fixed; top: calc(12px + var(--sat)); right: 12px; z-index: 120; max-width: min(78vw, 300px); display: flex; gap: 10px; align-items: center;
  padding: 11px 14px; border-radius: 16px; background: rgba(30,30,28,.94); border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.x-hint.is-on { opacity: 1; transform: none; }
.x-hint__ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2c2c29; font-size: 14px; }
/* 23.10: обучение — затемнение с «окном» вокруг элемента и карточка с текстом */
.x-tour { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 150; opacity: 0; transition: opacity .3s ease; }
.x-tour.is-on { opacity: 1; }
.x-tour__spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(0,0,0,.72); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.x-tour__card { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 18px; border-radius: 22px; background: #1b1b19; border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.55); transition: top .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 8px; }
.x-tour__step { color: var(--text-3); font-size: 12px; letter-spacing: .08em; }
.x-tour__title { font-size: 17px; }
.x-tour__text { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.x-tour__btns { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.x-tour__skip { background: none; border: 0; color: var(--text-3); font: inherit; font-size: 14px; padding: 8px 4px; cursor: pointer; }
.x-tour__next { min-width: 120px; }
@media not all /* 24.10: «Уменьшить движение» больше не выключает анимации */ { .x-hint, .x-tour, .x-tour__spot, .x-tour__card { transition: none; } }

/* 23.10 (владелец, макет): главная — подписка + плитка рулетки справа, размеры как на макете владельца (390 px: 238 + 4 + 117) */
/* 23.10 (владелец, фиолетовая линия на скриншоте): середина зазора — ровно на разделителе «Устройства | Трафик» карточки ниже
   (.x-stats: рамка 1 px + 3 равные колонки → разделитель на 1px + 2/3 ширины без рамок); зазор 8 px */
.x-subrow { display: grid; grid-template-columns: calc((100% - 2px) * 2 / 3 + 1px - 4px) minmax(0, 1fr); gap: 8px; }
.x-subrow > .x-card { margin: 0; min-width: 0; min-height: 85px; align-content: center; }   /* высота — как на макете */
.x-subrow > .x-card--glow .x-chev { display: none; }                 /* у подписки на макете стрелки нет — она у рулетки */
.x-subrow .x-name { white-space: nowrap; flex-wrap: nowrap; }
.x-subrow .x-name .x-chip { flex: none; }
.x-subrow .x-meta { font-size: 13px; gap: 6px; }
/* компактнее, чтобы «название + цена» и «статус · срок» влезли в узкую карточку, как на макете */
.x-subrow > .x-card--glow { padding: 14px; }
.x-subrow > .x-card--glow .x-row { gap: 10px; }
.x-subrow > .x-card--glow .x-ico { width: 44px; height: 44px; border-radius: 15px; }
.x-subrow > .x-card--glow .x-ico svg { width: 26px; height: 26px; }
.x-subrow .x-name { font-size: 16px; gap: 6px; min-width: 0; overflow: hidden; }
.x-subrow .x-name .x-chip { padding: 3px 7px; font-size: 10.5px; }
.x-subrow .x-meta .x-st { padding: 3px 9px; font-size: 12px; }
.x-subrow .x-meta { flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
.x-subrow .x-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 04.11 (владелец: «до 05.11 17:…» не влезает): не обрезать срок — если не помещается рядом со статусом, переносится целиком на вторую строку */
.x-subrow .x-meta { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; }
.x-subrow .x-meta > span:last-child { white-space: nowrap; overflow: visible; text-overflow: clip; }
.x-wheel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px; color: inherit; cursor: pointer; }
.x-wheel__name { font: 800 11px/1.15 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -.01em; text-align: center; white-space: nowrap; }
/* 23.10: клевер «День в плюсе» — покачивание, «дыхание» листьев по очереди, мерцание искорок */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-clover { transform-origin: 34px 58px; animation: x-clover-sway 6s ease-in-out infinite; }
  .x-clover__leaf { animation: x-clover-leaf 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * .8s); }
  .x-clover__spark { transform-box: fill-box; transform-origin: center; animation: x-spark 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * 1.1s); }
}
.x-clover__spark { opacity: .7; }
/* 24.10 (владелец: «в колесе клевер съехал»): точка поворота/масштаба SVG-групп по умолчанию движки считают по-разному (WebKit в
   Telegram для Mac/iPhone — иначе, чем Chrome); привязка к рамке самого рисунка (fill-box) одинакова везде: голова клевера
   симметрична — центр рамки = центр клевера; лист растёт из центра — середина нижнего края его рамки = центр клевера */
.x-clover__head { transform-box: fill-box; transform-origin: 50% 50%; }
.x-clover__leaf { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes x-clover-sway { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }   /* 23.10: от прямого положения — без рывка после появления */
@keyframes x-clover-leaf { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.08); } }
@keyframes x-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }
.x-wheel__svg { display: block; flex: none; }
@keyframes x-wheel-idle { to { transform: rotate(360deg); } }

/* 23.10 (владелец): за клевером — слабое туманное свечение: зелёное, фиолетовое, синее; медленно плавает */
.x-wheel { position: relative; overflow: hidden; isolation: isolate; }
.x-wheel::before { content: ""; position: absolute; top: -30%; right: -30%; bottom: -30%; left: -30%; z-index: -1; pointer-events: none; filter: blur(12px); opacity: .85;
  background:
    radial-gradient(38% 34% at 50% 42%, rgba(79,191,118,.6), transparent 72%),
    radial-gradient(36% 32% at 30% 64%, rgba(150,96,255,.55), transparent 72%),
    radial-gradient(36% 32% at 70% 62%, rgba(70,130,255,.5), transparent 72%); }
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ { .x-wheel::before { animation: x-mist 9s ease-in-out infinite alternate; } }
@keyframes x-mist { 0% { transform: translate(-4%, 2%) rotate(0deg) scale(1); } 50% { transform: translate(3%, -3%) rotate(20deg) scale(1.08); } 100% { transform: translate(-2%, 3%) rotate(-12deg) scale(.96); } }

/* 23.10 (владелец): внутреннее свечение плитки — слабое, пульсирует */
.x-wheel::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 16px rgba(120,210,160,.22), inset 0 0 2px rgba(160,140,255,.25); opacity: .6; }
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ { .x-wheel::after { animation: x-inglow 3.6s ease-in-out infinite; } }
@keyframes x-inglow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* 23.10 (владелец): клевер появляется при открытии главной (свайп или кнопка): стебелёк прорисовывается, листья раскрываются по
   одному, искорки вспыхивают; при обновлении данных (.no-anim) — не повторяется */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .screen:not(.no-anim) .x-clover { animation: x-clover-in .9s cubic-bezier(.22,1,.36,1) both, x-clover-sway 6s ease-in-out .9s infinite; }
  .screen:not(.no-anim) .x-clover__stem { stroke-dasharray: 1; animation: x-stem-in .45s cubic-bezier(.22,1,.36,1) .05s both; }
  .screen:not(.no-anim) .x-clover__leaf { animation: x-leaf-in .55s cubic-bezier(.22,1,.36,1) both, x-clover-leaf 3.2s ease-in-out infinite;
    animation-delay: calc(.2s + var(--k) * .09s), calc(1.1s + var(--k) * .8s); }
  .screen:not(.no-anim) .x-clover__spark { animation: x-spark-pop .5s ease-out both, x-spark 2.4s ease-in-out infinite;
    animation-delay: calc(.75s + var(--k) * .15s), calc(1.3s + var(--k) * 1.1s); }
}
/* 24.10 (владелец): вращение доступно — раз в 6 с клевер сворачивается в себя (листья закручиваются к центру) и распускается снова */
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-wheel.is-ready .x-clover__head { animation: x-clover-bloom 6s cubic-bezier(.45,0,.25,1) 1.4s infinite; }
}
@keyframes x-clover-bloom {
  0%, 70%, 100% { transform: rotate(0deg) scale(1); }
  80% { transform: rotate(-150deg) scale(.12); }
  83% { transform: rotate(-150deg) scale(.12); }
  93% { transform: rotate(8deg) scale(1.1); }
  97% { transform: rotate(-2deg) scale(.98); }
}
@keyframes x-clover-in { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
@keyframes x-stem-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes x-leaf-in { from { transform: scale(.15); opacity: 0; } }
@keyframes x-spark-pop { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 60% { opacity: 1; transform: scale(1.4) rotate(45deg); } 100% { opacity: 0; transform: scale(.3) rotate(90deg); } }

/* 23.10: «День в плюсе» — экран колеса */
.x-wpage { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: calc(14px + var(--sat)) 16px calc(20px + var(--sab)); background: rgba(10,10,9,.94);
  opacity: 0; transition: opacity .3s ease; overflow-y: auto; overflow-x: hidden; touch-action: none; }
.x-wpage.is-on { opacity: 1; }
.x-wpage::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 30% at 50% 45%, rgba(79,191,118,.35), transparent 70%), radial-gradient(35% 28% at 25% 65%, rgba(150,96,255,.3), transparent 70%),
    radial-gradient(35% 28% at 75% 62%, rgba(70,130,255,.28), transparent 70%); filter: blur(20px); }
.x-wpage__top { width: 100%; max-width: 420px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; }
.x-wpage__x, .x-wpage__snd { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #1b1b19; color: var(--text); font-size: 20px; cursor: pointer; }
.x-wpage__head { text-align: center; display: grid; gap: 2px; }
.x-wpage__head b { font: 800 19px/1.2 "Nunito", "IBM Plex Sans", sans-serif; }
.x-wpage__head small { color: var(--text-3); font-size: 12.5px; }
.x-wpage__stage { position: relative; margin-top: 18px; flex: none; }   /* 01.11: колонку не сжимать — иначе колесо налезает на надпись под ним */
.x-wpage__stage canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.x-wpage__wheel { filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); cursor: grab; touch-action: none; }
.x-wpage__ptr, .x-wpage__fx { pointer-events: none; }
.x-wpage__stage canvas.x-wpage__ptr { top: auto; right: auto; bottom: auto; left: auto; left: 0; top: -12px; }
.x-wpage__hint { color: var(--text-2); font-size: 14px; text-align: center; transition: color .2s ease; white-space: pre-line; }
.x-wpage__hint.is-warn { color: #e3b95b; animation: x-shake .4s ease; }
@keyframes x-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.x-wpage__res { display: grid; gap: 4px; text-align: center; padding: 14px 18px; border-radius: 20px; background: #1b1b19; border: 1px solid var(--line-2);
  min-width: min(320px, 88vw); animation: x-res-in .45s cubic-bezier(.22,1,.36,1) both; }
.x-wpage__res small { color: var(--text-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.x-wpage__res b { font: 800 18px/1.25 "Nunito", "IBM Plex Sans", sans-serif; }
.x-wpage__res span { color: var(--text-3); font-size: 12.5px; }
.x-wpage__res.is-jack { border-color: rgba(227,185,91,.6); box-shadow: 0 0 30px rgba(227,185,91,.25); }
@keyframes x-res-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* 23.10: клевер в центре барабана — живой; плашка выигрыша с частицами */
/* 24.10 (владелец: «клевер где?» — в Telegram на Mac был выше центра): высота — явно (сцена квадратная), без aspect-ratio — его
   старый WebKit не знает, и высота бралась по умолчанию (150 px) → центровка уводила клевер вверх */
.x-wpage__clover { position: absolute; left: 42%; top: 42%; width: 16%; height: 16%; pointer-events: none; margin: 0; padding: 0; }   /* точные px — wheel.js */
.x-wpage__clover svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  .x-wclover { transform-origin: 32px 32px; animation: x-wc-breath 3.2s ease-in-out infinite; }
  .x-wpage__clover .x-clover__leaf { animation: x-clover-leaf 3.2s ease-in-out infinite; animation-delay: calc(var(--k) * .8s); }
  .x-wpage__clover .x-clover__spark { transform-box: fill-box; transform-origin: center; animation: x-spark 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * 1.1s); }
  .x-wpage__clover.is-win .x-wclover { animation: x-wc-win 1s cubic-bezier(.22,1,.36,1), x-wc-breath 3.2s ease-in-out 1s infinite; }
}
@keyframes x-wc-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes x-wc-win { 0% { transform: scale(1) rotate(0deg); } 45% { transform: scale(1.35) rotate(200deg); } 100% { transform: scale(1) rotate(360deg); } }
.x-wpage__res { position: relative; overflow: hidden; isolation: isolate; }
.x-wpage__resfx { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* 24.10 (владелец: «фон поинтереснее»): глубина, тёплое пятно за колесом, медленно вращающиеся лучи; кольцо пыли вокруг барабана */
.x-wpage { background: radial-gradient(120% 70% at 50% 35%, #17171c 0%, #0c0c0f 55%, #070708 100%); }
.x-wpage__stage { isolation: isolate; }
.x-wpage__stage canvas.x-wpage__aura { top: auto; right: auto; bottom: auto; left: auto; z-index: -1; pointer-events: none; }
.x-wpage__stage canvas.x-wpage__rays { top: auto; right: auto; bottom: auto; left: auto; z-index: -2; pointer-events: none; will-change: transform; }
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ { .x-wpage__stage canvas.x-wpage__rays { animation: x-rays 90s linear infinite; } }
@keyframes x-rays { to { transform: rotate(360deg); } }

/* 24.10 (владелец: «всё слетает»): раскладка без сдвигов — под колесом место фиксированной высоты (подсказка ⇄ плашка), правила — шторкой поверх */
.x-wpage { justify-content: flex-start; overflow: hidden; }
.x-wpage__slot { width: 100%; max-width: 420px; height: 112px; display: grid; place-items: center; flex: none; }   /* 01.11: было 140 — промокод и «Правила» выше */
.x-wpage__slot > * { grid-area: 1 / 1; }
.x-wpage__res { max-width: 100%; }
.x-wpage__cpn { color: var(--text-2); font-size: 13px; line-height: 1.45; text-align: center; padding: 6px 14px; border-radius: 12px;
  background: rgba(138,99,255,.12); border: 1px solid rgba(138,99,255,.28); flex: none; max-width: 420px; }   /* 24.10: купоны колеса */
.x-wpage__rules-btn { background: none; border: 0; color: var(--text-3); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; flex: none; }
.x-wpage__rules { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); transition: background .25s ease; }
.x-wpage__rules.is-on { background: rgba(0,0,0,.5); }
.x-wpage__rules-card { width: 100%; max-width: 460px; display: grid; gap: 8px; padding: 16px 18px calc(18px + var(--sab)); border-radius: 22px 22px 0 0;
  background: #1b1b19; border: 1px solid var(--line-2); border-bottom: 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.x-wpage__rules.is-on .x-wpage__rules-card { transform: none; }
.x-wpage__rules-head { display: flex; align-items: center; justify-content: space-between; }
.x-wpage__rules-head b { font: 800 16px/1.2 "Nunito", "IBM Plex Sans", sans-serif; }
.x-wpage__rules-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #232321; color: var(--text); font-size: 18px; cursor: pointer; }
.x-wpage__rules p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* ============================================================================
   24.10 (владелец: «нормальная проработанная светлая тема — чтобы читалось и выглядело как тёмная, со всеми элементами»):
   html.x-light (light.js; «Настройки» → «Светлая тема», пока владельцу). Не инверсия: тёплый светлый фон, белые плитки с мягкой
   тенью вместо рамок (как карточки iOS), тёплые серые для вспомогательного, основные кнопки — чёрные, второстепенные — белые с тенью,
   тосты — тёмные плашки; зелёный и красный — только статусы. Экран колеса — своя тёмная «сцена», не меняется.
   ========================================================================== */
html.x-light {
  --bg: #f2f1ec; --surface: #ffffff; --surface-2: #f7f6f2; --surface-sunk: #eceae4; --surface-ink: #ffffff;
  --line: rgba(28, 27, 24, 0.08); --line-2: rgba(28, 27, 24, 0.12); --line-strong: rgba(28, 27, 24, 0.16);
  --text: #171614; --text-2: #5d5b55; --text-3: #8c8a83; --text-on-brand: #ffffff; --text-on-ink: #171614; --text-on-ink-2: #5d5b55;
  --x-blue: #171614; --x-blue-bg: rgba(23, 22, 20, 0.06); --x-blue-deep: #eceae4;
  --x-green: #23864a; --x-green-bg: rgba(35, 134, 74, 0.11); --x-gold: #c0412f; --x-gold-bg: rgba(192, 65, 47, 0.09);
  --x-red: #c0412f; --x-red-bg: rgba(192, 65, 47, 0.09);
  --x-shadow: 0 1px 1px rgba(28, 27, 24, 0.04), 0 8px 22px -12px rgba(28, 27, 24, 0.18);
  --x-shadow-sm: 0 1px 2px rgba(28, 27, 24, 0.08);
  color-scheme: light;
}
html.x-light, html.x-light body { background: var(--bg); color: var(--text); }
html.x-light ::selection { background: rgba(23, 22, 20, 0.16); color: var(--text); }
/* фон: пятно света — тёплое, очень слабое; планета и пыль — тёмные точки (light.js dotRGB) */
html.x-light .x-bg__light { opacity: 0.18; }

/* плитки и списки — белые, мягкая тень вместо рамки */
html.x-light .x-card, html.x-light .x-stats, html.x-light .x-dev, html.x-light .x-list, html.x-light .x-add, html.x-light .x-plan,
html.x-light .x-welcome__list, html.x-light .xb-card, html.x-light .card, html.x-light .stat, html.x-light .quick, html.x-light .tariff,
html.x-light .receipt, html.x-light .pay, html.x-light .hero {
  background: #ffffff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--x-shadow) !important; }
html.x-light .x-card--glow { background: radial-gradient(120% 140% at 0% 0%, #ffffff 0%, #fbfaf7 60%); }
html.x-light .x-stat + .x-stat { border-left-color: var(--line); }
html.x-light .card--sunk, html.x-light .stat--sunk { background: var(--surface-sunk); }
/* с фоном-планетой (прозрачность 24.10): матовое белое стекло */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.x-light body.has-bg .x-card, html.x-light body.has-bg .x-card--glow, html.x-light body.has-bg .x-stats, html.x-light body.has-bg .x-dev,
  html.x-light body.has-bg .x-list, html.x-light body.has-bg .x-add, html.x-light body.has-bg .x-plan, html.x-light body.has-bg .x-welcome__list,
  html.x-light body.has-bg .xb-card { background: rgba(255, 255, 255, 0.78); }
  html.x-light body.has-bg .x-card.x-friends { background: rgba(255, 255, 255, 0.92); }
}
/* значки, аватар, метки — тёплые серые с лёгким объёмом */
html.x-light .x-ico, html.x-light body.has-bg .x-ico { background: linear-gradient(180deg, #ffffff, #f1efea); border: 1px solid var(--line); box-shadow: var(--x-shadow-sm); color: var(--text); }
html.x-light .x-ico--plain, html.x-light .x-ico--green, html.x-light body.has-bg .x-ico--plain, html.x-light body.has-bg .x-ico--green { background: #f4f3ee; }
html.x-light .icon-sq, html.x-light [class*="icon-sq--"] { background: #f4f3ee !important; color: var(--text) !important; border: 1px solid var(--line); }
html.x-light .avatar, html.x-light .x-pill .x-ava, html.x-light body.has-bg .x-pill .x-ava { background: #ebe9e3; color: var(--text); }
html.x-light .x-chip, html.x-light .x-chip--gray, html.x-light body.has-bg .x-chip--gray { background: #efede8; color: var(--text-2); }
html.x-light .x-st:not(.x-st--on):not(.x-st--warn):not(.x-st--off), html.x-light body.has-bg .x-st:not(.x-st--on):not(.x-st--warn):not(.x-st--off) { background: #efede8; color: var(--text-2); }
html.x-light .x-dev__app--incy, html.x-light .x-dev__app--happ, html.x-light body.has-bg .x-dev__app--incy, html.x-light body.has-bg .x-dev__app--happ { background: #efede8; color: var(--text); }
html.x-light .badge, html.x-light .badge--sage, html.x-light .badge--amber, html.x-light .badge--coral, html.x-light .badge--ultra, html.x-light .badge--copper,
html.x-light .badge--ink, html.x-light .badge--outline, html.x-light .badge--off { background: transparent; color: var(--text-2); border-color: var(--line-2); }
html.x-light .badge--on { background: var(--text); color: #ffffff; border-color: var(--text); }
html.x-light .label, html.x-light .gauge__unit, html.x-light .divider { color: var(--text-3); }
/* шапка с именем, круглые кнопки — белые с тенью */
html.x-light .x-pill, html.x-light .x-roundbtn, html.x-light body.has-bg .x-pill, html.x-light body.has-bg .x-roundbtn { background: #ffffff; border-color: var(--line); box-shadow: var(--x-shadow-sm); color: var(--text); }
/* кнопки: основная — чёрная, второстепенная — белая с тенью */
html.x-light .x-btn--white, html.x-light .btn--primary, html.x-light .btn--copper, html.x-light .btn--danger-solid { background: #171614; color: #ffffff; border-color: #171614; }
html.x-light .x-btn--dark, html.x-light .x-btn--blue, html.x-light body.has-bg .x-btn--dark, html.x-light body.has-bg .x-btn--blue,
html.x-light .btn--soft, html.x-light .btn--soft-copper, html.x-light .btn--ghost, html.x-light .btn--secondary {
  background: #ffffff; color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--x-shadow-sm); }
html.x-light .btn--danger { background: #ffffff; color: var(--x-red); border-color: rgba(192, 65, 47, 0.25); }
html.x-light .btn--quiet { color: var(--text-2); }
/* полосы, капсулы, точки, переключатели */
html.x-light .x-bar, html.x-light .x-segs i, html.x-light .x-dot, html.x-light .progress,
html.x-light body.has-bg .x-segs i:not(.on), html.x-light body.has-bg .x-dot:not(.on), html.x-light body.has-bg .x-bar { background: rgba(28, 27, 24, 0.1); }
html.x-light .x-segs i.on, html.x-light .x-dot.on, html.x-light .progress__fill, html.x-light .progress__fill--copper, html.x-light .progress__fill--sage,
html.x-light .progress__fill--amber, html.x-light .progress__fill--danger { background: var(--text); }
html.x-light .toggle { background: #dddad3; }
html.x-light .toggle[aria-checked="true"] { background: var(--x-green); }
/* вкладки, переключатель языка, выбранный тариф */
html.x-light .tab.active, html.x-light .segmented button.active { background: #171614; border-color: #171614; color: #ffffff; }
html.x-light .x-seg, html.x-light body.has-bg .x-seg { background: #ffffff; border: 1px solid var(--line); box-shadow: var(--x-shadow-sm); }
html.x-light .x-plan[aria-checked="true"], html.x-light body.has-bg .x-plan[aria-checked="true"] { background: #ffffff; border-color: var(--text); box-shadow: 0 0 0 1px var(--text), var(--x-shadow) !important; }
html.x-light .tariff.is-selected, html.x-light .pay.is-selected { border-color: var(--text); }
html.x-light .tariff.is-selected .tariff__check, html.x-light .pay.is-selected .pay__mark,
html.x-light .tariff__flag, html.x-light .tariff__flag--brand { background: #171614; border-color: #171614; color: #ffffff; }
/* нижнее меню — белое стекло, выбранная вкладка — тёплая серая «таблетка» */
html.x-light .navbar, html.x-light body.has-bg .navbar { background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line); box-shadow: 0 12px 34px -14px rgba(28, 27, 24, 0.28); }
html.x-light .nav-item { color: var(--text-3); }
html.x-light .nav-item.active { background: #eeece6; color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
/* окна, диалоги, тосты, подсказки, обучение */
html.x-light .overlay { background: rgba(28, 27, 24, 0.32); }
html.x-light .sheet, html.x-light .dialog, html.x-light .modal { background: #ffffff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 -10px 40px -18px rgba(28, 27, 24, 0.35); }
html.x-light .toast, html.x-light .toast--ok, html.x-light .toast--warn, html.x-light .toast--err { background: #1d1c1a; color: #f2f1ec; border-color: #1d1c1a; }
html.x-light .x-hint { background: rgba(255, 255, 255, 0.97); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 32px -14px rgba(28, 27, 24, 0.3); }
html.x-light .x-hint__ico { background: #efede8; }
html.x-light .x-tour__card { background: #ffffff; color: var(--text); box-shadow: 0 18px 50px -20px rgba(28, 27, 24, 0.45); }
html.x-light .x-paid { background: rgba(242, 241, 236, 0.92); }
html.x-light .xb-btn, html.x-light .x-steps b, html.x-light body.has-bg .xb-btn, html.x-light body.has-bg .x-steps b { background: #efede8; color: var(--text); }
html.x-light .xb-track::before { background: rgba(28, 27, 24, 0.1); }
html.x-light .skel { background: #e9e7e1; }
html.x-light .code--ink { background: #f4f3ee; border-color: var(--line); color: var(--text-2); }
html.x-light .input { background: #ffffff; border-color: var(--line-2); color: var(--text); }
html.x-light .input:focus { border-color: var(--text-2); }
/* логотип, искорки клевера */
html.x-light .x-hello .x-mark, html.x-light .x-welcome .x-mark, html.x-light .logo-vff, html.x-light .brand-mark { color: #171614; }
html.x-light .x-clover__spark { fill: #8c8a83; }
/* график трафика: трафик — тёмный, CDN — серый */
html.x-light .chart__bar, html.x-light .chart__bar--peak, html.x-light .chart__bar--rest, html.x-light .chart-key { background: #171614; }
html.x-light .chart__bar--cdn, html.x-light .chart-key--cdn { background: #b4b1a9; }
html.x-light .chart__val, html.x-light .chart-legend { color: var(--text); }
html.x-light .chart__labels span { color: var(--text-3); }
/* полоса запаса (колесо) и плитка «День в плюсе» */
html.x-light .x-reserve { border-top-color: var(--line); }
html.x-light .x-wheel::after { box-shadow: inset 0 0 16px rgba(35, 134, 74, 0.14), inset 0 0 2px rgba(120, 100, 200, 0.18); }

/* светлая тема — заставка, «луна» перелистывания, колесо «День в плюсе» (светлая сцена: обод и ступица светлые — wheel.js LT()) */
html.x-light .x-splash path { fill: #171614; }
html.x-light .x-splash__bar { background: rgba(23, 22, 20, 0.12); }
html.x-light .x-splash__bar::after { background: #171614; }
html.x-light .x-moon--full { filter: drop-shadow(0 0 4px rgba(23, 22, 20, 0.25)); }
html.x-light .x-swmoon.is-full svg { filter: drop-shadow(0 0 8px rgba(23, 22, 20, 0.3)); }
html.x-light .x-wpage { background: radial-gradient(120% 70% at 50% 35%, #ffffff 0%, #f1efe9 55%, #e7e4dd 100%); }
html.x-light .x-wpage::before { opacity: 0.38; }
html.x-light .x-wpage__x, html.x-light .x-wpage__snd { background: #ffffff; border-color: var(--line); box-shadow: var(--x-shadow-sm); color: var(--text); }
html.x-light .x-wpage__wheel { filter: drop-shadow(0 16px 30px rgba(28, 27, 24, 0.22)); }
html.x-light .x-wpage__res { background: #ffffff; border-color: var(--line); box-shadow: var(--x-shadow); color: var(--text); }
html.x-light .x-wpage__res.is-jack { border-color: rgba(201, 150, 40, 0.55); box-shadow: 0 0 28px rgba(201, 150, 40, 0.22); }
html.x-light .x-wpage__hint.is-warn { color: var(--x-red); }
html.x-light .x-wpage__cpn { background: rgba(138, 99, 255, 0.08); border-color: rgba(138, 99, 255, 0.22); color: var(--text-2); }
html.x-light .x-wpage__rules.is-on { background: rgba(28, 27, 24, 0.3); }
html.x-light .x-wpage__rules-card { background: #ffffff; border-color: var(--line); box-shadow: 0 -10px 40px -18px rgba(28, 27, 24, 0.35); }
html.x-light .x-wpage__rules-x { background: #f1efea; border-color: var(--line); color: var(--text); }
html.x-light .x-wpage__clover .x-clover__spark { fill: #8c8a83; }

/* светлая тема — без жёлтого (владелец: «у нас нет жёлтого вообще»), монохром как в тёмной:
   луны сроков — освещённая часть светло-серая с тёмным контуром (не чёрная клякса), полная — мягкое серое свечение */
html.x-light .x-moon { color: #171614; }
html.x-light .x-moon [fill="currentColor"] { fill: #dedad1; }
html.x-light .x-ico .x-moon { color: var(--text-2); } html.x-light .x-ico .x-moon [fill="currentColor"] { fill: currentColor; }   /* 24.10: как иконки тарифов */
html.x-light .x-moon--full { filter: drop-shadow(0 0 4px rgba(23, 22, 20, 0.22)); }
/* значок тарифа Major: «тело» планеты закрывает заднюю часть кольца — цветом фона квадрата значка (было тёмное по умолчанию — чёрный круг) */
html.x-light .x-ico .x-pi { --x-pi-bg: #f6f5f1; }
html.x-light .x-subrow .x-ico .x-pi, html.x-light body.has-bg .x-ico .x-pi { --x-pi-bg: #f6f5f1; }

/* 24.10 (владелец: «иконки подписок везде побольше — без перестановки и смещения»): рисунок значка тарифа крупнее масштабом —
   размеры квадрата и кнопок не меняются, соседние элементы не сдвигаются. Луны сроков — без изменений. 24.10 — всем. */
.x-ico .x-pi:not(.x-moon) { transform: scale(1.25); transform-origin: 50% 50%; }
.x-seg .x-pi:not(.x-moon) { transform: scale(1.2); transform-origin: 50% 50%; }
button:active .x-ico .x-pi:not(.x-moon),   .x-li:active .x-ico .x-pi:not(.x-moon) { transform: scale(1.12); }
/* 24.10 owner-font:begin — владелец: «чуть побольше шрифт без сильного изменения»: мелкий текст (≤ 15 px) +1 px, самый мелкий (≤ 12 px) +0,5 px; 24.10 — всем */
.x-sub { font-size: 15px; }
.x-pill { font-size: 16px; }
.x-hello small { font-size: 16px; }
.x-chip--big { font-size: 15px; }
.x-st { font-size: 15px; }
.x-stat span { font-size: 14.5px; }
.x-stat b small { font-size: 16px; }
.x-stat em { font-size: 14px; }
.x-reserve b { font-size: 16px; }
.x-link { font-size: 16px; }
.x-dev__app--happ { font-size: 12.5px; }
.x-add small { font-size: 15px; }
.x-li small { font-size: 14px; }
.x-li .x-val { font-size: 15px; }
.x-foot { font-size: 14.5px; }
.x-plan small { font-size: 14px; }
.x-plan .x-price s { font-size: 13.5px; }
.x-total .x-row { font-size: 15.5px; }
.x-err { font-size: 15px; }
.x-note { font-size: 15px; }
.x-seg--sm button { font-size: 14px; }
.x-speed span { font-size: 14px; }
.nav-item { font-size: 11px; }
.x-welcome__list li { font-size: 15px; }
.xb-head__t small { font-size: 16px; }
.xb-cap { font-size: 15px; }
.x-paid small { font-size: 16px; }
.x-invite__tg small { font-size: 14px; }
.x-steps span { font-size: 16px; }
.x-hint { font-size: 14.5px; }
.x-tour__step { font-size: 12.5px; }
.x-tour__text { font-size: 15.5px; }
.x-tour__skip { font-size: 15px; }
.x-subrow .x-name .x-chip { font-size: 11px; }
.x-wpage__head small { font-size: 13.5px; }
.x-wpage__hint { font-size: 15px; }
.x-wpage__res small { font-size: 12.5px; }
.x-wpage__res span { font-size: 13.5px; }
.x-wpage__cpn { font-size: 14px; }
/* 31.10: промокод под колесом — две ровные строки: код и скидка, ниже мелко «как применить» */
.x-wpage__cpn { text-wrap: balance; }
.x-wpage__cpn-t { display: block; color: var(--text); font-weight: 500; }
.x-wpage__cpn-t b { font-family: "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: .04em; white-space: nowrap; }
.x-wpage__cpn small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); text-wrap: balance; }
.x-wpage__rules-btn { font-size: 14.5px; }
.x-wpage__rules p { font-size: 15px; }
/* 24.10 owner-font:end */
/* 25.10: невидимые бесконечные анимации — на паузе (app.js pauseHidden) */
.x-off, .x-off * { animation-play-state: paused !important; }
/* 25.10: смена темы — слои с размытием строятся заново (light.js applyLight), на два кадра */
body.x-relayer *, body.x-relayer { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* 25.10: WebKit (iPhone/Mac) рвал «Meteor» на «Meteo / r» — название тарифа переносится только целыми словами */
.x-name__t { overflow-wrap: normal; }
/* 25.10 (владелец: «при переходе между вкладками интерфейс немного сам выравнивается»; 24.10 вечер — всем):
   1) въезд вкладки — быстрее встаёт на место, без долгого «доползания» в конце; 2) Mac/ПК — место под полосу прокрутки всегда,
   содержимое не сдвигается вбок между длинной и короткой вкладкой. Откат — удалить блок и строку в app.js (is-owner на html). */
/* 24.10 (видео владельца, Android): полоса прокрутки Telegram занимает ~7 px — при переходе вкладок появлялась и пропадала,
   страница меняла ширину (карточки и цифры прыгали вправо). Полосы прокрутки нет нигде — прокрутка пальцем / колёсиком / тачпадом та же */
html, body, * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media all /* 24.10 (владелец): анимации — на всех устройствах, без учёта «Уменьшить движение» */ {
  html[data-swipe="next"] #screen.swiping { animation: x-swipe-next .2s cubic-bezier(.35,.8,.6,1) backwards; }
  html[data-swipe="prev"] #screen.swiping { animation: x-swipe-prev .2s cubic-bezier(.35,.8,.6,1) backwards; }
}
/* 25.10 (владелец): «2/10 устройств» вверху «Устройств» — без подложки, текст по краю заголовка */
.x-chip.x-chip--bare, html.x-light .x-chip.x-chip--bare, body.has-bg .x-chip.x-chip--bare { background: none; border: 0; padding-left: 2px; padding-right: 2px; }
/* 24.10: смена темы частицами (light.js setLightFrom): старая тема — снимок, новая проступает сквозь маску из точек; длительность — x-tv-hold */
::view-transition-old(root) { animation: x-tv-hold 1s linear both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: x-tv-hold 1s linear both; mix-blend-mode: normal;
  -webkit-mask-image: var(--x-tmask, none); mask-image: var(--x-tmask, none); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
@keyframes x-tv-hold { from { opacity: 1; } to { opacity: 1; } }
.x-theme-dust { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }   /* 24.10: смена темы без View Transitions */

/* 25.10: ряд устройств «Как подключить» — тянется мышью */
@media (hover: hover) and (pointer: fine) { [data-role="platforms"] { cursor: grab; } [data-role="platforms"] .tab { cursor: pointer; } }
[data-role="platforms"].is-drag, [data-role="platforms"].is-drag .tab { cursor: grabbing; }
[data-role="platforms"] { -webkit-user-select: none; user-select: none; }
[data-role="platforms"] .tab { -webkit-user-drag: none; }

/* 25.10 (владелец): справа от профиля — плитка «Кабинет» (личный кабинет на сайте). Без aspect-ratio — старый WebKit Telegram Mac */
.x-prof { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: stretch; }
.x-prof--solo { grid-template-columns: minmax(0, 1fr); }   /* 31.10: на сайте плитки «Сайт» нет — профиль во всю ширину */
.x-cab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; color: var(--text); cursor: pointer; font: 600 12px/1.1 inherit; }
.x-cab span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.x-cab svg { transition: transform .25s ease; }
.x-cab:active svg { transform: scale(.92); }
/* 25.10 (владелец: «выделить плитку внутренним свечением… белое»; «почему в светлой теме нет»): свечение — отдельный слой ::after
   (тень карточек в светлой теме задана с !important, анимацию на самой плитке она перебивает). Одинаково в обеих темах:
   «дыхание» 3,2 с. Позиционирование без inset — старый WebKit Telegram Mac */
.x-cab { position: relative; color: var(--text); border-color: rgba(242, 242, 240, .30) !important; }
.x-cab::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; pointer-events: none;
  animation: x-cab-glow 3.2s ease-in-out infinite; }
.x-cab svg { color: var(--text); }
@keyframes x-cab-glow {
  0%, 100% { box-shadow: inset 0 0 16px rgba(242, 242, 240, .08), inset 0 0 2px rgba(242, 242, 240, .28); }
  50% { box-shadow: inset 0 0 28px rgba(242, 242, 240, .22), inset 0 0 3px rgba(242, 242, 240, .5); }
}
html.x-light .x-cab { border-color: rgba(20, 20, 18, .30) !important; }
html.x-light .x-cab::after { animation-name: x-cab-glow-l; }
@keyframes x-cab-glow-l {
  0%, 100% { box-shadow: inset 0 0 18px rgba(20, 20, 18, .10), inset 0 0 2px rgba(20, 20, 18, .28); }
  50% { box-shadow: inset 0 0 28px rgba(20, 20, 18, .22), inset 0 0 3px rgba(20, 20, 18, .45); }
}

/* 25.10 (владелец: «дверь анимировалась каждые 5 минут»): створка приоткрыта; раз в 5 минут (первый раз — через 2 с после открытия
   «Настроек») распахивается и возвращается (~1,4 с). Поворот на петлях слева: scaleX + skewY (в SVG надёжно и в старом WebKit) */
.x-cab .dleaf { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.62) skewY(-7deg);
  animation: x-door 300s ease-in-out 2s infinite; }
@keyframes x-door {
  0% { transform: scaleX(.62) skewY(-7deg); }
  0.2% { transform: scaleX(.22) skewY(-18deg); }
  0.35% { transform: scaleX(.22) skewY(-18deg); }
  0.55% { transform: scaleX(1) skewY(0deg); }
  0.65% { transform: scaleX(.9) skewY(-2deg); }
  0.8%, 100% { transform: scaleX(.62) skewY(-7deg); }
}

/* 26.10 (владелец: «полоску докупленного — вот таким цветом»): фиолетовый как «до −15%» на сайте (#a586ff); светлая тема — темнее для контраста */
.x-bar--violet > i { background: #a586ff; }
html.x-light .x-bar--violet > i { background: #7a5cf0; }

/* 01.11: замочек на кнопках функций подписки у пробного */
.x-lock { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: rgba(255, 82, 82, .2); color: #ff5a5a; vertical-align: middle; flex: none; }
html.x-light .x-lock { background: rgba(211, 47, 47, .13); color: #c62828; }
/* 04.11 (владелец: «замок красным, чтобы видно и в светлой, и в тёмной»): на белой кнопке (тёмная тема) — тёмно-красный, на чёрной (светлая) — яркий */
.x-btn--white .x-lock { background: rgba(211, 47, 47, .14); color: #d32f2f; }
html.x-light .x-btn--white .x-lock { background: rgba(255, 82, 82, .22); color: #ff5a5a; }

/* 19.11: кабинет в приложении VFFUltima (native.js → html.x-app): кнопки «Сайт» нет; подключение — большой кнопкой на главной */
html.x-app .site-btn { display: none !important; }
html.x-app.x-web .screen { padding-top: calc(14px + var(--sat)); }
.x-vpn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 16px; text-align: center; }
.x-vpn__btn { width: 250px; height: 250px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-2);   /* 20.11: ×1.25 */
  background: radial-gradient(circle at 50% 35%, #232321, #161615 70%); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(242,242,240,.06), 0 18px 40px -22px #000; transition: color .25s, border-color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.x-vpn__btn:active { transform: scale(.97); }
.x-vpn.is-on .x-vpn__btn { color: #F2F2F0; border-color: rgba(242, 242, 240, .3); }
.x-vpn.is-connecting .x-vpn__btn { color: var(--text); animation: x-vpn-pulse 1.3s ease-in-out infinite; }
@keyframes x-vpn-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,242,240,.10); } 50% { box-shadow: 0 0 0 12px rgba(242,242,240,.04); } }
@media (prefers-reduced-motion: reduce) { .x-vpn.is-connecting .x-vpn__btn { animation: none; } }
.x-vpn__state { font: 800 21px/1.2 "Nunito", "IBM Plex Sans", sans-serif; letter-spacing: -0.01em; }
.x-vpn.is-on .x-vpn__state { color: var(--text); }   /* 20.11 (владелец): «Подключено» — белым */
.x-vpn__err { color: var(--x-red); font-size: 14px; line-height: 1.35; max-width: 320px; }
.x-vpn__leak { display: flex; align-items: center; gap: 8px; max-width: 340px; padding: 9px 13px; border-radius: 14px; border: 1px solid rgba(255,190,90,.35);
  background: rgba(255,190,90,.08); color: #ffcf85; font: inherit; font-size: 13.5px; line-height: 1.3; text-align: left; cursor: pointer; }
.x-vpn__leak[hidden] { display: none; }
.x-vpn__leak svg { flex: none; }
.x-vpn__loc { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 18px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; cursor: pointer; }
.x-vpn__loc small { display: block; color: var(--text-3); font: 600 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.x-vpn__loc b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-vpn__ms { color: var(--text-3); font: 500 13px/1 "IBM Plex Mono", monospace; white-space: nowrap; }
.x-vpn__ms.is-good { color: var(--x-green); }
.x-vpn__ms.is-bad { color: var(--x-red); }
.x-vpn__ms.is-mid { color: #d9a441; }   /* 20.11: средняя задержка — как полоски */
.x-locs { display: flex; flex-direction: column; gap: 6px; }
.x-loc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 500 15px/1.3 "IBM Plex Sans", sans-serif; }
.x-loc.is-on { border-color: var(--line-strong, #3a3a36); background: linear-gradient(180deg, #2a2a27, #1d1d1b); }
.x-loc__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.x-loc.is-on .x-loc__dot { background: var(--x-green); border-color: var(--x-green); box-shadow: 0 0 0 4px var(--x-green-bg); }
.x-vpn__loc .x-grow, .x-loc .x-grow { flex: 1; min-width: 0; }
.x-vpn__sub { min-height: 18px; margin-top: -6px; color: var(--text-3); font: 500 13px/1.4 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.x-loc small { display: block; font-size: 12px; font-weight: 500; margin-top: 2px; }
.x-loc small.is-good { color: var(--x-green); }
.x-loc small.is-bad { color: var(--x-red); }
.x-app-ico { width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--surface-2); }
.x-app-row[hidden] { display: none; }

/* 19.11 (владелец: «в светлой теме кнопка включения тёмная — неприятно, сделать серой ближе к фону; выбранная локация тёмная, текст не читается;
   с цветами разобраться, чтобы не сильно контрастировало в обеих темах»): мягче основные кнопки, светлая кнопка VPN и выбор локации */
.x-btn--white { background: #dedcd6; color: #141412; }                                   /* тёмная тема: не ярко-белая */
html.x-light .x-btn--white, html.x-light .btn--primary, html.x-light .btn--copper, html.x-light .btn--danger-solid { background: #3a3934; color: #faf9f6; border-color: #3a3934; }
.x-loc.is-on { border-color: rgba(111, 207, 142, .45); background: linear-gradient(180deg, #252522, #1d1d1b); }
html.x-light .x-loc { background: #f7f6f2; border-color: var(--line); }
html.x-light .x-loc.is-on { background: rgba(35, 134, 74, .07); border-color: rgba(35, 134, 74, .45); color: var(--text); }
html.x-light .x-vpn__btn { color: var(--text-3); background: radial-gradient(circle at 50% 35%, #fbfaf7, #ebe9e3 72%); border-color: var(--line-2);
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 30px -20px rgba(28, 27, 24, .35); }
html.x-light .x-vpn.is-on .x-vpn__btn { color: var(--text); border-color: rgba(28, 27, 24, .14); background: radial-gradient(circle at 50% 35%, #fbfaf7, #f0efe9 72%);
  box-shadow: 0 0 0 8px var(--x-green-bg), 0 14px 34px -16px rgba(35, 134, 74, .35); }
html.x-light .x-vpn.is-connecting .x-vpn__btn { color: var(--text-2); }
html.x-light .x-vpn__loc { background: #f7f6f2; border-color: var(--line); }
html.x-light .x-vpn__leak { background: rgba(196, 128, 20, .08); border-color: rgba(196, 128, 20, .35); color: #8a5a10; }
/* выбранный пункт переключателей (тариф, язык): серая плашка вместо чёрной/белой */
.x-seg button[aria-checked="true"] { background: #33332f; color: var(--text); box-shadow: inset 0 1px 0 rgba(242,242,240,.07); }
.x-seg button[aria-checked="true"] small { color: var(--text-2); }
.x-seg button[aria-checked="true"] .x-pi { color: var(--text); --x-pi-bg: #33332f; }
html.x-light .x-seg button[aria-checked="true"] { background: #ebe9e3; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
html.x-light .x-seg button[aria-checked="true"] .x-pi { --x-pi-bg: #ebe9e3; }
/* 19.11 (владелец: «вместо зелёного свечения кнопки при включении — белый»): включено — белое свечение (тёмная), белая кнопка с ободком (светлая) */
.x-vpn.is-on .x-vpn__btn { color: #F2F2F0; border-color: rgba(242, 242, 240, .55); box-shadow: 0 0 0 8px rgba(242, 242, 240, .07), 0 0 46px -6px rgba(242, 242, 240, .35); }
html.x-light .x-vpn.is-on .x-vpn__btn { color: var(--text); background: #ffffff; border-color: rgba(28, 27, 24, .14);
  box-shadow: 0 0 0 8px rgba(28, 27, 24, .05), 0 16px 36px -14px rgba(28, 27, 24, .30); }
/* 19.11 (владелец: «телефон сильно греется», «нужно 60 кадров»): размытие под карточками и меню пересчитывалось каждый кадр над
   движущимся фоном — на эмуляторе это ~30 % всей нагрузки. Под ними и так почти непрозрачный фон (blur 1px / 94 %) — вид тот же, 60 кадров остаются.
   Размытие за открытым окном (.overlay) — оставлено. */
body.has-bg .x-card, body.has-bg .x-card--glow, body.has-bg .x-stats, body.has-bg .x-dev, body.has-bg .x-list, body.has-bg .x-add, body.has-bg .x-seg,
body.has-bg .x-plan, body.has-bg .x-pill, body.has-bg .x-roundbtn, body.has-bg .x-btn--dark, body.has-bg .x-btn--blue, body.has-bg .x-ip,
body.has-bg .x-welcome__list, body.has-bg .xb-card, .sheet__foot { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* 19.11: чёрная тема (OLED) — только тёмная: чистый чёрный фон, поверхности чуть светлее */
html.x-black:not(.x-light) { --bg: #000000; --surface: #0b0b0b; --surface-2: #121212; --surface-sunk: #000000; --line: #1b1b1a; --line-2: #242422; }
html.x-black:not(.x-light) .navbar { background: rgba(8, 8, 8, 0.96); }
html.x-black:not(.x-light) .x-vpn__btn { background: radial-gradient(circle at 50% 35%, #161615, #050505 70%); }
/* 19.11: график скорости на главной (приложение) — рисуется раз в секунду, без цикла кадров */
.x-vpn__graph { width: 100%; height: 48px; display: block; margin-top: -4px; }
.x-vpn__graph[hidden] { display: none; }
.x-auto { display: inline-flex; align-items: center; gap: 6px; }
/* 19.11: поиск по настройкам (приложение) */
.x-search { width: 100%; margin: 4px 0 2px; }
/* 19.11: аватар-созвездие из ID — фон под тему, звёзды цветом текста */
.x-ava--stars { background: #0c0c0b !important; color: #F2F2F0; overflow: hidden; padding: 0 !important; }
.x-ava--stars .x-stars { width: 100%; height: 100%; display: block; }
html.x-light .x-ava--stars { background: #ebe9e3 !important; color: #2a2926; }
/* 19.11: новая версия — строка на главной под локацией */
.x-vpn__upd { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 18px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line-2); }
.x-vpn__upd[hidden] { display: none; }
.x-vpn__upd b { display: block; font-size: 15px; }
.x-link { border: 0; background: none; padding: 2px 0 0; color: var(--text-2); font: 500 13px/1.3 inherit; text-decoration: underline; cursor: pointer; }
.x-btn--sm { min-height: 40px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
/* 19.11: главная приложения — одна строка подписки под кнопкой, подробности по нажатию */
.x-home-sub { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 20px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; }
.x-home-sub b { font-size: 15px; }
.x-home-sub__more { color: var(--text-3); font-size: 13px; }
.x-home-sub[aria-expanded="true"] svg { transform: rotate(180deg); }
html.x-app [data-role="home-more"] { display: grid; gap: 14px; }
html.x-app [data-role="home-more"][hidden] { display: none; }
html.x-app .x-vpn { padding-top: 34px; padding-bottom: 20px; }
/* 19.11 (владелец: «нижняя панель — чуть размытие, сильно прозрачная, везде»): одно лёгкое размытие только у панели (не у карточек — не греет) */
/* 20.11 (владелец: «под Подпиской и Настройками белое — подписи не видно»): матовое стекло — плотнее (0.78) и сильнее размытие (22px),
   фон под панелью угадывается, подписи читаются на любом содержимом */
.navbar, body.has-bg .navbar { background: rgba(22, 22, 21, 0.78); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
html.x-light .navbar, html.x-light body.has-bg .navbar { background: rgba(250, 249, 245, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
html.x-black:not(.x-light) .navbar { background: rgba(0, 0, 0, 0.78); }
/* 19.11 (владелец: «белое свечение кнопки — чуть пульсировало, мягко»): свечение — отдельный слой, меняется только прозрачность (дёшево для видеочипа) */
.x-vpn__btn { position: relative; }
.x-vpn__btn::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 10px rgba(242, 242, 240, .08), 0 0 60px 4px rgba(242, 242, 240, .30); }
.x-vpn.is-on .x-vpn__btn::after { animation: x-vpn-glow 3.6s ease-in-out infinite; }
html.x-light .x-vpn__btn::after { box-shadow: 0 0 0 10px rgba(28, 27, 24, .05), 0 0 50px 2px rgba(28, 27, 24, .16); }
@keyframes x-vpn-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .x-vpn.is-on .x-vpn__btn::after { animation: none; opacity: .7; } }
/* 19.11: локации — сигнал полосками, мс, стрелки при замере; длинные подписи не вылезают */
.x-loc { min-height: 60px; padding: 0 14px 0 16px; gap: 12px; }
.x-loc .x-grow { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.x-loc__name, .x-loc .x-auto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.x-loc__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.x-loc__sub.is-bad { color: var(--x-red); }
.x-loc__ping { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.x-loc__ping .x-vpn__ms { min-width: 46px; text-align: right; }
.x-sig { width: 18px; height: 14px; flex: none; fill: var(--text-2); }
.x-sig rect.off { fill: var(--line-2); }
.x-sig.is-good { fill: var(--x-green); } .x-sig.is-mid { fill: #d9a441; } .x-sig.is-bad { fill: var(--x-red); }
.x-loc__spin { display: inline-grid; color: var(--text-3); opacity: .35; transition: opacity .2s; }
.x-locs.is-busy .x-loc__spin { opacity: 1; animation: x-spin 1s linear infinite; }
@keyframes x-spin { to { transform: rotate(360deg); } }
/* 20.11 (владелец: «кнопку и карточку „Локация“ — прозрачными, как элементы внизу, размытия чуть больше»): матовое стекло, размытие 26px.
   Размытие только у этих двух неподвижных элементов (не у списков) — видеочип не нагружается */
.x-vpn__btn { background: radial-gradient(circle at 50% 35%, rgba(60, 60, 57, .40), rgba(22, 22, 21, .32) 70%);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
.x-vpn__loc { background: rgba(30, 30, 28, .38); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
html.x-light .x-vpn__btn { background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .72), rgba(235, 233, 227, .55) 72%); }
html.x-light .x-vpn.is-on .x-vpn__btn { background: rgba(255, 255, 255, .78); }
html.x-light .x-vpn__loc { background: rgba(255, 255, 255, .55); }
html.x-black:not(.x-light) .x-vpn__btn { background: radial-gradient(circle at 50% 35%, rgba(30, 30, 29, .40), rgba(0, 0, 0, .35) 70%); }
html.x-black:not(.x-light) .x-vpn__loc { background: rgba(0, 0, 0, .38); }
/* 20.11 (владелец: «кнопка и Локация не прозрачные»): причина — карточка .x-vpn с фоном --surface; стекло размывало её, а не фон экрана.
   В приложении у карточки VPN фон убираем — кнопка и «Локация» (матовое стекло) показывают фон экрана, как панель внизу. */
html.x-app .x-vpn { background: transparent; border: none; box-shadow: none; padding-left: 4px; padding-right: 4px; }
/* 20.11 (владелец: «где прозрачность кнопки и локаций, всё плавно»): явное матовое стекло. Селектор с .x-vpn — приоритет выше тем
   (чёрная/тёмная), чтобы прозрачность была во всех темах. Лёгкая тонировка + сильное размытие + светлая кромка = читается как стекло. */
/* 20.11 (владелец: «кнопку и Локацию — как остальные карточки на главной; без зелёного; при включении приятное свечение»):
   тот же полупрозрачный тёмный фон, что у карточек (видно звёзды). Одинаково вкл/выкл — без смены цвета. */
html.x-app .x-vpn .x-vpn__btn, html.x-app .x-vpn.is-on .x-vpn__btn {
  background: rgba(23, 23, 22, .3); border: 1px solid var(--line-2); color: var(--text-2);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: none; transition: box-shadow .5s var(--ease), color .4s var(--ease); }
html.x-app .x-vpn.is-on .x-vpn__btn { color: #F2F2F0; }                      /* значок при включении — белый, не зелёный */
html.x-app .x-vpn .x-vpn__loc { background: rgba(23, 23, 22, .3); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); box-shadow: none; }
/* светлая тема (владелец): кнопка серая */
html.x-app.x-light .x-vpn .x-vpn__btn, html.x-app.x-light .x-vpn.is-on .x-vpn__btn {
  background: rgba(28, 27, 24, .05); border-color: rgba(28, 27, 24, .12); color: var(--text-3); }
html.x-app.x-light .x-vpn.is-on .x-vpn__btn { color: var(--text); }
html.x-app.x-light .x-vpn .x-vpn__loc { background: rgba(255, 255, 255, .42); border-color: rgba(28, 27, 24, .08); }
/* приятное свечение при включении (не цвет): мягкий белый пульс вокруг кнопки, заметный */
html.x-app .x-vpn.is-on .x-vpn__btn::after { animation: x-vpn-glow 3.2s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(242, 242, 240, .10), 0 0 60px 10px rgba(242, 242, 240, .40); }
html.x-app.x-light .x-vpn.is-on .x-vpn__btn::after {
  box-shadow: 0 0 0 7px rgba(28, 27, 24, .10), 0 0 70px 16px rgba(28, 27, 24, .42); }   /* в светлой — ярче/заметнее */
/* 20.11 (владелец: «при включении всё съезжает вверх»): подпись под кнопкой — фиксированная высота, статус — тоже; слой не меняет высоту */
.x-vpn__sub { min-height: 20px; line-height: 20px; transition: color .2s; }
.x-vpn__state { min-height: 30px; }
.x-vpn__btn svg { width: 72px; height: 72px; }   /* значок под размер кнопки */
/* 20.11 (владелец: «протоколы в локациях разными цветами, таблички крупнее»): цветной значок протокола + выше строки */
.x-loc { min-height: 68px; }
.x-loc__sub2 { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.x-proto { display: inline-flex; align-items: center; font: 800 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; }
.x-proto--r { color: #7fb4ff; background: rgba(90, 150, 255, .14); border-color: rgba(90, 150, 255, .30); }   /* Reality/TCP — синий */
.x-proto--x { color: #6fcf8e; background: rgba(111, 207, 142, .14); border-color: rgba(111, 207, 142, .30); } /* XHTTP — зелёный */
.x-proto--g { color: #c79bff; background: rgba(170, 120, 255, .15); border-color: rgba(170, 120, 255, .32); } /* gRPC — фиолетовый */
.x-proto--a { color: #e0b64a; background: rgba(224, 182, 74, .14); border-color: rgba(224, 182, 74, .30); }   /* Авто — золотой */
.x-proto--w { color: #e78a4e; background: rgba(231, 138, 78, .14); border-color: rgba(231, 138, 78, .30); }  /* WS/прочее — оранжевый */
.x-proto--o { color: var(--text-3); background: rgba(128, 128, 128, .14); }
html.x-light .x-proto--r { color: #2b62c4; } html.x-light .x-proto--x { color: #1f7a3a; }
html.x-light .x-proto--g { color: #6b3fc4; } html.x-light .x-proto--a { color: #9a6a0a; }
/* 20.11 (владелец: «показать приложение — наше/стороннее, для безопасности»): значок приложения у устройства */
.x-appchip { display: inline-flex; align-items: center; gap: 4px; font: 800 10.5px/1 "IBM Plex Sans", sans-serif; letter-spacing: .02em;
  padding: 3px 7px 3px 5px; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.x-appchip svg { width: 12px; height: 12px; }
.x-appchip--ours { color: #6fcf8e; background: rgba(111, 207, 142, .13); border-color: rgba(111, 207, 142, .30); }
.x-appchip--ext { color: #e0b64a; background: rgba(224, 182, 74, .13); border-color: rgba(224, 182, 74, .30); }
html.x-light .x-appchip--ours { color: #1f7a3a; } html.x-light .x-appchip--ext { color: #9a6a0a; }

/* 24.11: компактная главная приложения (как у StealthSurf): «День в плюсе» таблеткой рядом с ID */
.x-app .x-pill { max-width: none; flex-shrink: 0; padding-right: 14px; }
.x-app .x-top { gap: 8px; }
.x-plus { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; font-size: 13px; border-radius: 20px; border: 1px solid rgba(79,191,118,.5);
  background: rgba(79,191,118,.1); color: inherit; font: 600 14px/1 var(--body, inherit); cursor: pointer; white-space: nowrap; }
.x-plus i { width: 10px; height: 10px; border-radius: 50%; background: #4fbf76; }
.x-plus.is-ready i { box-shadow: 0 0 0 0 rgba(79,191,118,.6); animation: xplus 1.6s infinite; }
@keyframes xplus { 70% { box-shadow: 0 0 0 8px rgba(79,191,118,0); } 100% { box-shadow: 0 0 0 0 rgba(79,191,118,0); } }
@media (prefers-reduced-motion: reduce) { .x-plus.is-ready i { animation: none; } }
.x-stat[data-action] { cursor: pointer; }

/* 24.11: карточка обновления (как у StealthSurf) */
.x-vpn__upd small { display: block; color: var(--muted, #9a9a95); font-size: 13px; margin-top: 2px; }
.x-vpn__updico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3b6fd8; color: #fff; }
.x-spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: xspin .8s linear infinite; }
@keyframes xspin { to { transform: rotate(360deg); } }

/* ============================================================================
   24.11 (макет владельца «как у StealthSurf, только лучше»): ПРИЛОЖЕНИЕ (html.x-app). Шрифт Nunito, нижних вкладок нет
   (настройки — шестерёнкой, назад — «‹» или свайпом вправо), главная — кнопка ровно по центру экрана, внизу обновление и локация.
   Кабинет в Telegram и на сайте не меняется.
   ========================================================================== */
html.x-app { --font: "Nunito", "IBM Plex Sans", -apple-system, system-ui, sans-serif; }
html.x-app body, html.x-app button, html.x-app input, html.x-app .x-vpn__state, html.x-app .x-title, html.x-app .x-name, html.x-app h1, html.x-app h2,
html.x-app .x-vpn__sub, html.x-app .x-vpn__ms, html.x-app .x-num, html.x-app .num, html.x-app .mono { font-family: "Nunito", "IBM Plex Sans", sans-serif !important; }
html.x-app .navbar { display: none !important; }
html.x-app .screen { padding-bottom: calc(24px + var(--sab)); }
/* шапка подстраниц: «‹ Заголовок» (router.js) */
.x-aback { display: flex; align-items: center; gap: 12px; margin: 0 0 2px; }
.x-aback__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-2, #2a2a28); background: rgba(23, 23, 22, .3); color: var(--text, #f2f2f0);
  display: grid; place-items: center; cursor: pointer; }
.x-aback h1 { font-size: 24px; font-weight: 800; margin: 0; }
html.x-app .x-aback ~ * .x-title:first-child, html.x-app .x-aback + h1.x-title { display: none; }
/* главная */
html.x-app .screen:has(.x-home) { padding: 0; gap: 0; }
.x-home { position: relative; height: 100vh; height: 100dvh; padding: calc(14px + var(--sat)) 16px calc(20px + var(--sab)); }
.x-ahead { display: flex; align-items: center; gap: 4px; }
.x-hello.x-hello--app { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin: 0; padding: 0; background: none; border: 0; }
.x-hello--app .x-mark { display: inline-flex; color: #fff; width: auto; height: auto; background: none; border: 0; box-shadow: none; }
.x-hello--app .x-mark svg { width: 56px; height: auto; overflow: visible; }
.x-hello--app b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.x-abtn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; color: var(--text, #f2f2f0); cursor: pointer; }
.x-abtn__dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--x-green, #4fbf76); }
.x-astrip { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.x-apill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; white-space: nowrap; font-size: 13.5px; font-weight: 600;
  color: #d6d6d1; background: rgba(23, 23, 22, .3); border: 1px solid rgba(255, 255, 255, .09); cursor: pointer; }
.x-apill--g { color: var(--x-green, #4fbf76); border-color: rgba(79, 191, 118, .35); background: rgba(79, 191, 118, .07); }
/* кнопка — центр ровно на середине экрана */
html.x-app .x-home .x-vpn { position: static; background: none; border: 0; box-shadow: none; padding: 0; }
html.x-app .x-home .x-vpn .x-vpn__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 262px; height: 262px; margin: 0; }
html.x-app .x-home .x-vpn .x-vpn__btn:active { transform: translate(-50%, -50%) scale(.97); }
html.x-app .x-home .x-vpn .x-vpn__btn svg { width: 96px; height: 96px; }
html.x-app .x-home .x-vpn__state, html.x-app .x-home .x-vpn__sub, html.x-app .x-home .x-vpn__err { position: absolute; left: 16px; right: 16px; text-align: center; }
html.x-app .x-home .x-vpn__state { top: calc(50% + 148px); font-size: 26px; font-weight: 800; margin: 0; }
html.x-app .x-home .x-vpn__sub { top: calc(50% + 186px); margin: 0; font-size: 14px; white-space: pre; font-variant-numeric: tabular-nums; }
html.x-app .x-home .x-vpn__err { top: calc(50% + 210px); }
.x-vpn__bottom { position: absolute; left: 14px; right: 14px; bottom: calc(20px + var(--sab)); display: flex; flex-direction: column; gap: 8px; }
html.x-app .x-vpn__upd, html.x-app .x-vpn__loc { min-height: 72px; padding: 14px 16px; border-radius: 20px; margin: 0; background: rgba(23, 23, 22, .3);
  border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
html.x-app .x-vpn__loc b { font-size: 16.5px; font-weight: 800; }
html.x-app .x-vpn__loc small { display: block; margin-top: 3px; font: 500 13px/1.3 "Nunito", sans-serif !important; letter-spacing: 0; text-transform: none; color: var(--text-3, #6b6b66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.x-app .x-vpn__loc small .is-good { color: var(--x-green, #4fbf76); } html.x-app .x-vpn__loc small .is-bad { color: var(--x-red, #e5484d); }
.x-vpn__lead { width: 32px; flex: none; text-align: center; font-size: 22px; }
.x-vpn__png { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.x-vpn__png .x-vpn__ms { font-size: 11.5px !important; font-weight: 700; }
.x-bars { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.x-bars i { display: block; width: 4px; border-radius: 1px; background: #3a3a37; }
.x-bars i:nth-child(1) { height: 4px; } .x-bars i:nth-child(2) { height: 7px; } .x-bars i:nth-child(3) { height: 10px; } .x-bars i:nth-child(4) { height: 13px; }
.x-bars i.is-good { background: var(--x-green, #4fbf76); } .x-bars i.is-mid { background: #d9a441; } .x-bars i.is-bad { background: var(--x-red, #e5484d); }
html.x-app .x-vpn__upd b { font-size: 16.5px; font-weight: 800; }
html.x-app .x-vpn__upd .x-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 800; border-radius: 14px; }
.x-anosub { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; display: grid; gap: 8px; }
.x-anosub b { font-size: 22px; } .x-anosub small { color: var(--text-3, #6b6b66); margin-bottom: 10px; }
/* крупнее остальное в приложении */
html.x-app .x-li, html.x-app .x-card { min-height: 64px; }
html.x-app .toggle { transform: scale(1.12); }
/* 24.11: настройки приложения — Подписка и Устройства рядом */
.x-acards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-acard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 20px; text-align: left; cursor: pointer;
  background: rgba(23, 23, 22, .3); border: 1px solid rgba(255, 255, 255, .09); color: var(--text, #f2f2f0); }
.x-acard small { font-size: 11px; letter-spacing: .08em; color: var(--text-3, #6b6b66); }
.x-acard b { font-size: 17px; font-weight: 800; }
.x-acard span { font-size: 13px; color: var(--text-3, #6b6b66); white-space: nowrap; }
.x-abar { width: 100%; height: 7px; border-radius: 4px; background: #2a2a27; overflow: hidden; margin-top: 6px; }
.x-abar i { display: block; height: 100%; background: var(--x-green, #4fbf76); border-radius: 4px; }
.x-acaps { width: 100%; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; margin-top: 6px; }
.x-acaps i { display: block; height: 8px; border-radius: 4px; background: #2a2a27; } .x-acaps i.on { background: #6e9bff; }
html.x-app .x-vpn__upd .x-grow { flex: 1; min-width: 0; }
html.x-app .x-vpn__upd b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.x-app .x-vpn__upd small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3, #6b6b66); }
html.x-app .x-vpn__upd .x-link { display: block; margin-top: 2px; padding: 0; background: none; border: 0; color: #7da2ff; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
html.x-app .x-vpn__updico { width: 36px; height: 36px; }
/* 24.11 (владелец: «название такой же высоты, как логотип; капсулы больше; тонкий мелкий шрифт не читается; удобнее») */
.x-hello--app .x-mark svg { width: 48px !important; }
.x-hello--app b { font-size: 39px !important; font-weight: 900 !important; letter-spacing: -.03em; line-height: 1; }
.x-hello.x-hello--app { gap: 10px; }
.x-astrip { gap: 8px; margin-top: 14px; }
.x-apill { padding: 11px 16px; font-size: 15.5px; font-weight: 800; gap: 7px; min-height: 46px; }
.x-apill svg { flex: none; }
/* читаемость: в приложении — плотнее и крупнее, подписи светлее */
html.x-app body { font-weight: 600; -webkit-font-smoothing: antialiased; }
html.x-app small, html.x-app .x-meta, html.x-app .x-sub, html.x-app .muted, html.x-app .small, html.x-app .xsmall, html.x-app .x-label, html.x-app .hint {
  font-size: max(13.5px, 1em) !important; font-weight: 600 !important; letter-spacing: 0 !important; }
html.x-app small, html.x-app .x-meta, html.x-app .x-sub, html.x-app .muted { color: #a3a39e !important; }
html.x-app .x-li small, html.x-app .x-acard span { font-size: 13.5px !important; }
html.x-app .x-acard small, html.x-app .x-label { font-size: 12px !important; letter-spacing: .06em !important; color: #8a8a85 !important; text-transform: uppercase; }
html.x-app .x-li { font-size: 16px; font-weight: 700; }
html.x-app .x-vpn__sub { font-size: 15px !important; font-weight: 700 !important; color: #b5b5b0 !important; }
html.x-app .x-home .x-vpn__state { font-size: 28px; font-weight: 900; }
html.x-app .x-vpn__loc small, html.x-app .x-vpn__upd small { font-size: 13.5px !important; color: #a3a39e !important; }
html.x-app .x-vpn__png .x-vpn__ms { font-size: 12.5px !important; font-weight: 800 !important; }
/* 24.11: подгонка — название в одну строку по высоте знака, капсулы ровно в ширину экрана */
.x-hello--app .x-mark svg { width: 44px !important; }
.x-hello--app b { font-size: 31px !important; white-space: nowrap; }
.x-astrip { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 8px; }
.x-apill { justify-content: center; padding: 11px 8px; font-size: 15px; }
/* 24.11 (владелец: «текст должен читаться и в тёмной, и в светлой теме; мелкий тонкий не увидят люди с плохим зрением»):
   светлая тема приложения — тёмный контрастный текст, белые матовые карточки; минимум 13.5 px и вес 600 — для обеих тем */
html.x-app.x-light small, html.x-app.x-light .x-meta, html.x-app.x-light .x-sub, html.x-app.x-light .muted { color: #4a4843 !important; }
html.x-app.x-light .x-acard small, html.x-app.x-light .x-label { color: #6b6963 !important; }
html.x-app.x-light .x-vpn__sub { color: #3d3b36 !important; }
html.x-app.x-light .x-vpn__loc small, html.x-app.x-light .x-vpn__upd small { color: #4a4843 !important; }
html.x-app.x-light .x-hello--app .x-mark, html.x-app.x-light .x-hello--app b, html.x-app.x-light .x-abtn { color: #171614; }
html.x-app.x-light .x-apill { color: #171614; background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); box-shadow: var(--x-shadow-sm); }
html.x-app.x-light .x-apill--g { color: #1c6e3d; background: rgba(35, 134, 74, .1); border-color: rgba(35, 134, 74, .35); }
html.x-app.x-light .x-vpn__upd, html.x-app.x-light .x-vpn__loc, html.x-app.x-light .x-acard, html.x-app.x-light .x-aback__btn {
  background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); color: #171614; box-shadow: var(--x-shadow-sm); }
html.x-app.x-light .x-vpn__upd .x-link { color: #2f5fd0; }
html.x-app.x-light .x-bars i { background: #d6d3cb; } html.x-app.x-light .x-abar, html.x-app.x-light .x-acaps i { background: #e2dfd7; }
html.x-app.x-light .x-acaps i.on { background: #3b6fd8; }
html.x-app.x-light .x-home .x-vpn .x-vpn__btn { background: radial-gradient(circle at 50% 35%, #ffffff, #efede7 70%); border-color: rgba(28, 27, 24, .14); color: #5d5b55;
  box-shadow: 0 18px 50px -18px rgba(28, 27, 24, .35); }
html.x-app.x-light .x-home .x-vpn.is-on .x-vpn__btn { color: #171614; border-color: rgba(28, 27, 24, .5); box-shadow: 0 0 0 14px rgba(28, 27, 24, .05), 0 0 50px rgba(28, 27, 24, .18); }
html.x-app.x-light .x-home .x-vpn__state { color: #171614; }
html.x-app.x-light .x-home .x-vpn { background: none !important; border: 0 !important; box-shadow: none !important; }
html.x-app.x-light .x-bars i.is-good { background: #23864a; } html.x-app.x-light .x-bars i.is-mid { background: #b07a12; } html.x-app.x-light .x-bars i.is-bad { background: #c0412f; }
/* 24.11: частицы вокруг кнопки подключения (как у колеса «День в плюсе») — центр совпадает с центром кнопки */
html.x-app .x-home .x-vpn__aura { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
html.x-app .x-home .x-vpn .x-vpn__btn { z-index: 1; }
/* 24.11: включено — белая кромка, белый значок и белое свечение (макет владельца) */
html.x-app:not(.x-light) .x-home .x-vpn.is-on .x-vpn__btn { color: #fff; border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, .04), 0 0 60px rgba(255, 255, 255, .22), inset 0 0 30px rgba(255, 255, 255, .06); }
html.x-app:not(.x-light) .x-home .x-vpn.is-on .x-vpn__btn svg { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .55)); }
/* 24.11: журнал подключений */
.x-log { display: grid; gap: 2px; max-height: 52vh; overflow-y: auto; border-radius: 14px; background: rgba(23, 23, 22, .3); border: 1px solid rgba(255, 255, 255, .08); padding: 6px; }
.x-log__row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 8px 8px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.x-log__row time { color: #a3a39e; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.x-log__row.is-bad span { color: var(--x-red, #e5484d); }
html.x-light .x-log { background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); } html.x-light .x-log__row time { color: #4a4843; }
/* 24.11: IP выхода с флагом (как у StealthSurf) и график скорости под кнопкой */
html.x-app .x-home .x-vpn__ip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(50% + 214px); padding: 6px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; background: rgba(23, 23, 22, .35); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.x-app .x-home .x-vpn__graph2 { position: absolute; left: 22%; width: 56%; height: 36px; top: calc(50% + 252px); pointer-events: none; }
html.x-app.x-light .x-home .x-vpn__ip { background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); color: #171614; }
.x-vpn__ip[hidden], .x-vpn__graph2[hidden] { display: none !important; }
html.x-app .x-home:has(.x-vpn__upd:not([hidden])) .x-vpn__graph2 { display: none !important; }   /* обновление внизу — графику места нет */
/* 24.11 (владелец: «где обозначение, что устройство использует VFF»): метка приложения крупнее и словами «наше / стороннее» */
.x-appchip__k { font-style: normal; font-weight: 700; opacity: .9; }
html.x-app .x-appchip { font-size: 12.5px !important; font-weight: 800; padding: 3px 9px 3px 7px; gap: 4px; }
/* 24.11: запасные локации — внутри страны */
.x-loc__exp { display: block; margin: -2px 0 6px 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(23, 23, 22, .3);
  color: var(--text-2, #c9c9c4); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.x-loc__subs { display: grid; gap: 6px; margin: 0 0 8px 22px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .08); }
.x-loc__subs[hidden] { display: none; }
.x-loc--sub .x-loc__name { font-size: 15px; }
html.x-light .x-loc__exp { background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); color: #3d3b36; }
html.x-light .x-loc__subs { border-left-color: rgba(28, 27, 24, .12); }
/* 24.11 (владелец: «почему не везде шрифт VAG, шрифт больше; текст между карточками заметнее»): в приложении — Nunito на всём, крупнее */
html body *:not(svg):not(svg *) { font-family: "Nunito", "IBM Plex Sans", -apple-system, system-ui, sans-serif !important; }   /* 01.12 (владелец: «единый стиль»): Nunito — и в Telegram, и в браузере, не только в приложении */
html.x-app body { font-size: 16.5px; }
html.x-app .x-label { font-size: 14px !important; font-weight: 900 !important; letter-spacing: .05em !important; color: #d9d9d4 !important; margin: 16px 4px 6px !important; }
html.x-app.x-light .x-label { color: #26241f !important; }
html.x-app .x-li { font-size: 16.5px; } html.x-app .x-li small { font-size: 14px !important; }
html.x-app .sheet__title, html.x-app .overlay h2, html.x-app .x-title { font-size: 24px !important; font-weight: 900 !important; }
/* 24.11: пинг как на Speedtest — крупное число, «мс» мелко */
.x-ms2 { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.x-ms2 b { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.x-ms2 small { font-size: 12.5px; font-weight: 800; opacity: .8; }
/* 24.11: проверка скорости */
.x-spd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.x-spd__c { padding: 14px 10px; border-radius: 18px; background: rgba(23, 23, 22, .35); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.x-spd__c span { display: block; font-size: 13.5px; font-weight: 800; opacity: .8; margin-bottom: 6px; }
.x-spd__n b { display: block; font-size: 28px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.x-spd__n small { font-size: 12.5px; font-weight: 800; opacity: .8; }
html.x-light .x-spd__c { background: rgba(255, 255, 255, .82); border-color: rgba(28, 27, 24, .12); }
/* 24.11 (владелец: «в приложении нельзя копировать, кроме ID и ссылок»): текст не выделяется и не копируется долгим нажатием;
   ID, ссылки, коды — копируются своими кнопками («Скопировать»); поля ввода — как обычно */
html.x-app, html.x-app body, html.x-app body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.x-app input, html.x-app textarea, html.x-app [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* 24.11: сервер не отвечает — главная с кнопкой VPN и заметкой сверху */
.x-offline-note { position: absolute; left: 16px; right: 16px; top: calc(var(--sat, 0px) + 18px); z-index: 3; display: flex; gap: 10px; align-items: center;
  flex-direction: column; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(23, 23, 22, .7); border: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.x-offline-note .x-btn { flex: none; }
html.x-light .x-offline-note { background: rgba(255, 255, 255, .9); border-color: rgba(28, 27, 24, .12); color: #171614; }
html.x-offline .x-home { width: 100vw; max-width: 100vw; overflow: hidden; box-sizing: border-box; } html.x-offline .shell, html.x-offline .screen { width: 100vw; max-width: 100vw; overflow: hidden; }
/* 24.11 (владелец: «немного вылазит логотип»): планета анимации (Ø≈72 px) шире знака (50 px) — надпись отодвинута, чтобы не наезжала */
html.x-app .x-hello--app .x-mark { margin-right: 16px; }
/* 24.11: «Белый интернет» вверху списка локаций — полоса трафика с цифрами */
.x-loc--white { border-color: rgba(122, 200, 140, .35) !important; }
.x-wbar { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 8px 0 6px; }
.x-wbar i { display: block; height: 100%; border-radius: 99px; background: #7ac88c; }
.x-wbar.is-gold i { background: #e0b24f; } .x-wbar.is-red i { background: #e2705f; }
.x-wnum { display: block; font-size: 13.5px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.x-wnum b { font-weight: 900; }
html.x-light .x-wbar { background: rgba(28, 27, 24, .1); }
/* 24.11 (владелец: «текст в карточках — ровно, как у дизайнера: отступы одинаковые, ничего не вылезает и не впритык к рамкам»):
   список локаций — одна сетка для всех карточек */
html.x-app .x-locs { display: grid; gap: 10px; }
html.x-app .x-loc { box-sizing: border-box; min-height: 72px; padding: 14px 16px; gap: 14px; align-items: center; border-radius: 18px; }
html.x-app .x-loc .x-grow { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; overflow: visible; }
html.x-app .x-loc__name, html.x-app .x-loc .x-auto { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: clip; line-height: 1.25; font-size: 16.5px; font-weight: 800; overflow-wrap: anywhere; }
html.x-app .x-loc .x-auto { display: inline-flex; align-items: center; gap: 6px; -webkit-line-clamp: unset; }
html.x-app .x-loc__sub, html.x-app .x-loc small.x-loc__sub { white-space: normal; margin: 0; line-height: 1.3; font-size: 13.5px; }
html.x-app .x-loc__sub2 { margin: 0; gap: 8px; }
html.x-app .x-loc__sub2:empty { display: none; }
html.x-app .x-loc__ping { flex: none; min-width: 84px; justify-content: flex-end; gap: 8px; }
html.x-app .x-loc__spin { display: none; }
html.x-app .x-locs.is-busy .x-loc__spin { display: inline-grid; }
html.x-app .x-loc__dot { flex: none; }
html.x-app .x-wbar { margin: 0; }
html.x-app .x-wnum { margin: 0; line-height: 1.2; }
html.x-app .x-wnote { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text-3, #8a8a85); }   /* 24.11: что такое «Белый интернет» */
/* 24.11: подпись «Белого интернета» — на всю ширину карточки под строкой (отступ слева — как у названия) */
html.x-app .x-loc--white { flex-wrap: wrap; row-gap: 10px; }
html.x-app .x-loc--white .x-grow { flex: 1 1 0; }
html.x-app .x-loc--white .x-wnote { flex: 0 0 100%; padding-left: 24px; box-sizing: border-box; }
/* 24.11 (владелец: «выбранная локация — подсветка белым, не зелёным; у белого интернета рамка серая, не зелёная») */
html.x-app .x-loc--white { border-color: var(--line, rgba(255, 255, 255, .1)) !important; }
html.x-app .x-loc.is-on, html.x-app .x-loc--white.is-on { border-color: rgba(255, 255, 255, .7) !important; background: linear-gradient(180deg, #2b2b29, #1f1f1d) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 18px rgba(255, 255, 255, .12); }
html.x-app .x-loc.is-on .x-loc__dot { background: #f2f2f0; border-color: #f2f2f0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
html.x-app.x-light .x-loc--white { border-color: var(--line) !important; }
html.x-app.x-light .x-loc.is-on, html.x-app.x-light .x-loc--white.is-on { border-color: #171614 !important; background: #fff !important; box-shadow: 0 0 0 1px rgba(23, 22, 20, .25); }
html.x-app.x-light .x-loc.is-on .x-loc__dot { background: #171614; border-color: #171614; box-shadow: 0 0 0 4px rgba(23, 22, 20, .1); }
/* 24.11 (владелец: «логотип и название почти впритык к шторке»): отступ от шторки — больше */
html.x-app .x-home { padding-top: calc(28px + var(--sat, 0px)) !important; }
/* 24.11 (владелец: «нажимаешь на поле ввода — всё уезжает на шторку и сливается со временем»): под шторкой — постоянная полоса фона,
   содержимое при открытой клавиатуре уходит под неё, а не под значки */
html.x-app body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: var(--sat, 0px); background: var(--bg, #111110); z-index: 2147483000; pointer-events: none; }
html.x-app.x-light body::after { background: var(--bg, #f4f3ef); }
/* 24.11 (владелец: «на Mac — точь-в-точь как на Android»; как у StealthSurf на Mac): окно любой ширины — интерфейс телефона по центру,
   карточки внизу и шапка — не шире 440 px; сверху — место под кнопки окна macOS */
html.x-desktop { --sat: 34px; --sab: 8px; }
html.x-desktop .x-home { max-width: 100%; }
html.x-desktop .x-home > .x-ahead, html.x-desktop .x-home > .x-astrip, html.x-desktop .x-vpn__bottom, html.x-desktop .x-home .x-vpn__loc,
html.x-desktop .x-home .x-vpn__upd { max-width: 440px; margin-left: auto !important; margin-right: auto !important; }
html.x-desktop .screen:not(:has(.x-home)) { max-width: 520px; margin: 0 auto; }
html.x-desktop body::after { display: none; }
html.x-desktop .shell { max-width: none !important; border: 0 !important; background: transparent !important; }   /* 24.11: широкое окно компьютера — без колонки с рамками, фон общий */
/* 25.11 (владелец: «логотип больше — в каждом приложении»): знак 64 px, название — под стать */
html.x-app .x-hello--app .x-mark svg { width: 64px !important; }
html.x-app .x-hello--app b { font-size: 34px !important; }
html.x-app .x-hello--app .x-mark { margin-right: 18px; }
html.x-app .x-hello--app .x-mark { margin-right: 2px !important; }   /* 25.11: при знаке 64 px планета анимации не шире знака — без лишнего зазора */
/* 25.11 (владелец: «всем прозрачным элементам — капсулам, карточкам — чуть светлее, чтобы выделялись»): тёмная тема приложения —
   единая подложка и рамка светлее; выбранные (is-on) и светлая тема — как были */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan) {
  background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .13) !important; }
html.x-app:not(.x-light) .x-list .x-li { background: transparent !important; }
html.x-app:not(.x-light) .x-list > .x-li + .x-li { border-top-color: rgba(255, 255, 255, .08) !important; }
html.x-app:not(.x-light) .x-seg [aria-checked="true"] { background: rgba(255, 255, 255, .13) !important; }
/* 25.11 (владелец: «размытие — для эффекта стекла»): карточки и капсулы — матовое стекло (фон под ними размыт) */
html.x-app :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc, .x-aback__btn,
  .x-search, .x-spd__c, .x-offline-note, .x-vpn__ip, .x-dev, .x-add, .x-plan) {
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); }
/* 25.11 (владелец: «сильно сделал — фон должен быть виден; внизу настроек эффекта нет»): стекло легче — размытие 6 px, подложка
   прозрачнее, блик по верхнему краю (стекло видно и на однотонном фоне внизу настроек) */
html.x-app :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc, .x-aback__btn,
  .x-search, .x-spd__c, .x-offline-note, .x-vpn__ip, .x-dev, .x-add, .x-plan) {
  -webkit-backdrop-filter: blur(6px) saturate(1.15); backdrop-filter: blur(6px) saturate(1.15); }
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09); }
/* 25.11 (владелец: «вот такой эффект» — glassmorphism): фон под карточкой сильно размыт, но цвета и формы видны; подложка светлая
   полупрозрачная, тонкая светлая рамка, блик сверху */
html.x-app :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc, .x-aback__btn,
  .x-search, .x-spd__c, .x-offline-note, .x-vpn__ip, .x-dev, .x-add, .x-plan) {
  -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(1.08); backdrop-filter: blur(22px) saturate(1.7) brightness(1.08); }
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan) {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)) !important;
  border-color: rgba(255, 255, 255, .2) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .18); }
/* 25.11 (владелец: «у всего интерфейса — эффект стекла, вот так»): единое стекло — фон под элементом виден, но мягко размыт (≈10 px),
   элемент светлее, тонкая светлая рамка и блик сверху. Тёмная тема приложения; светлая — как была */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card) {
  -webkit-backdrop-filter: blur(10px) saturate(1.5) !important; backdrop-filter: blur(10px) saturate(1.5) !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .22) !important; }
/* большая кнопка — стеклянный круг */
html.x-app:not(.x-light) .x-home .x-vpn__btn {
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 60%) !important;
  border: 1px solid rgba(255, 255, 255, .24) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 50px rgba(0, 0, 0, .35) !important; }
/* нижние окна — стекло потемнее (текст поверх содержимого должен читаться) */
html.x-app:not(.x-light) .sheet {
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  background: linear-gradient(180deg, rgba(48, 48, 45, .72), rgba(24, 24, 22, .82)) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14) !important; }
/* 25.11 (владелец: «должно быть прозрачное блять стекло — я же скинул»): прозрачное стекло — почти без подложки (фон виден целиком,
   только размыт), тонкая светлая рамка-край и блик; нижние окна — тоже прозрачные */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card) {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)) !important;
  border: 1px solid rgba(255, 255, 255, .2) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18) !important; }
html.x-app:not(.x-light) .x-home .x-vpn__btn { background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .01) 60%) !important; }
html.x-app:not(.x-light) .sheet { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); }
/* 25.11 (владелец: «ничего не добавлять в фон — сделать элементы вот таким стеклом»): прозрачное стекло — без подложки (фон виден,
   мягко размыт), тонкая светлая рамка-край, лёгкое свечение внутри у края */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card) {
  background: rgba(255, 255, 255, .025) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.3) !important; backdrop-filter: blur(8px) saturate(1.3) !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .22) !important; }
html.x-app:not(.x-light) .x-home .x-vpn__btn { background: rgba(255, 255, 255, .025) !important; border: 1px solid rgba(255, 255, 255, .35) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
/* 25.11 (владелец: «кнопку включения больше»): 262 → 310 px, надписи под ней — ниже на столько же */
html.x-app .x-home .x-vpn .x-vpn__btn { width: 310px !important; height: 310px !important; }
html.x-app .x-home .x-vpn__btn svg { width: 112px !important; height: 112px !important; }
html.x-app .x-home .x-vpn__state { top: calc(50% + 172px) !important; }
html.x-app .x-home .x-vpn__sub { top: calc(50% + 212px) !important; }
html.x-app .x-home .x-vpn__err { top: calc(50% + 236px) !important; }
html.x-app .x-home .x-vpn__ip { top: calc(50% + 240px) !important; }
/* 25.11 (владелец: «через это стекло видно, а у нас данные на планете не видно через элементы»): размытие лёгкое — 2,5 px (точки и
   линии фона по 1–2 px видны сквозь элементы, только мягче); 8 px их стирало */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card),
html.x-app:not(.x-light) .x-home .x-vpn__btn {
  -webkit-backdrop-filter: blur(2.5px) saturate(1.2) !important; backdrop-filter: blur(2.5px) saturate(1.2) !important; }
/* 25.11 (владелец: «ещё меньше»): размытие 1 px — фон почти как есть, края мягче */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card),
html.x-app:not(.x-light) .x-home .x-vpn__btn {
  -webkit-backdrop-filter: blur(1px) saturate(1.15) !important; backdrop-filter: blur(1px) saturate(1.15) !important; }
/* 25.11 (владелец: «кромку — вот такую», объёмный стеклянный край): светлый блик по верхней кромке, уходящий внутрь, слабый отсвет
   снизу, бока еле видны; рамка тоньше и тусклее — край рисует свет */
html.x-app:not(.x-light) :is(.x-card:not(.x-vpn), .x-stats, .x-list, .x-seg, .x-acard, .x-apill, .x-vpn__loc, .x-vpn__upd, .x-loc:not(.is-on), .x-aback__btn,
  .x-search, input.input, .x-spd__c, .x-log, .x-offline-note, .x-vpn__ip, .x-loc__exp, .x-dev, .x-add, .x-plan, .x-btn--dark, .x-hint, .toast, .x-tour__card),
html.x-app:not(.x-light) .x-home .x-vpn__btn {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 10px 18px -12px rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .16), inset 0 -10px 18px -12px rgba(255, 255, 255, .12),
    inset 1px 0 0 rgba(255, 255, 255, .05), inset -1px 0 0 rgba(255, 255, 255, .05), 0 10px 28px rgba(0, 0, 0, .35) !important; }
/* 25.11 (владелец: «подсказки — под „День в плюсе“»): в приложении подсказка — под строкой капсул (не закрывает логотип и название),
   на всю ширину, стекло плотнее (текст читается поверх фона), значок — в стиле капсулы «День в плюсе» */
html.x-app .x-hint { top: calc(var(--sat, 0px) + 168px) !important; left: 16px !important; right: 16px !important; max-width: none !important;
  font-size: 15px !important; line-height: 1.4 !important; padding: 13px 16px !important; border-radius: 20px !important; }
html.x-app:not(.x-light) .x-hint { background: rgba(22, 22, 21, .72) !important; -webkit-backdrop-filter: blur(14px) saturate(1.3) !important; backdrop-filter: blur(14px) saturate(1.3) !important; }
html.x-app .x-hint__ico { background: rgba(79, 191, 118, .12) !important; color: var(--x-green, #4fbf76); border: 1px solid rgba(79, 191, 118, .35); }
html.x-desktop .x-hint { max-width: 440px !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: calc(100% - 32px); }
/* 25.11 (владелец: «не могу перемещать окно» → «перемещение только за верхнюю часть»): заголовок окна спрятан (как на Android) —
   тянуть окно можно только за верх: полосу заголовка (.x-dragbar, её добавляет vff-desktop.js) и строку с логотипом; кнопки в ней не тянут */
html.x-desktop :is(.x-dragbar, .x-ahead, .x-hello, header) { --wails-draggable: drag; }
html.x-desktop :is(.x-ahead, .x-hello, header) :is(button, a, input, [data-action], [role=button]) { --wails-draggable: no-drag; }
.x-dragbar { position: fixed; top: 0; left: 0; right: 0; height: 28px; z-index: 9999; background: transparent; }
/* 25.11 (проверка в Windows: окно ~700 px — IP-плашка наезжала на карточку локации): невысокие окна/экраны — кнопка и подписи компактнее */
@media (max-height: 780px) {
  html.x-app .x-home .x-vpn .x-vpn__btn { width: 250px !important; height: 250px !important; }
  html.x-app .x-home .x-vpn__btn svg { width: 92px !important; height: 92px !important; }
  html.x-app .x-home .x-vpn__state { top: calc(50% + 140px) !important; font-size: 24px !important; }
  html.x-app .x-home .x-vpn__sub { top: calc(50% + 176px) !important; }
  html.x-app .x-home .x-vpn__err { top: calc(50% + 196px) !important; }
  html.x-app .x-home .x-vpn__ip { top: calc(50% + 200px) !important; }
}
@media (max-height: 660px) {
  html.x-app .x-home .x-vpn .x-vpn__btn { width: 200px !important; height: 200px !important; }
  html.x-app .x-home .x-vpn__btn svg { width: 74px !important; height: 74px !important; }
  html.x-app .x-home .x-vpn__state { top: calc(50% + 114px) !important; font-size: 22px !important; }
  html.x-app .x-home .x-vpn__sub { top: calc(50% + 146px) !important; }
  html.x-app .x-home .x-vpn__err { top: calc(50% + 164px) !important; }
  html.x-app .x-home .x-vpn__ip { top: calc(50% + 168px) !important; }
}
/* 25.11 (проверка в Ubuntu): WebKitGTK без видеоускорения не размывает фон — «стекло» окон становилось прозрачным, под ним читалась
   главная. На Linux окна и всплывающие элементы — плотные (стекло на карточках главной остаётся). */
html.x-app.x-linux:not(.x-light):not(.x-x) :is(.sheet, .x-tour__card, .toast, .x-hint) { background: rgba(22, 22, 21, .97) !important; }
html.x-app.x-linux:not(.x-x) .overlay { background: rgba(0, 0, 0, .6) !important; }
html.x-app.x-linux.x-light:not(.x-x) :is(.sheet, .x-tour__card, .toast, .x-hint) { background: rgba(250, 250, 248, .98) !important; }
/* 01.12: «Свой срок» — строка с ползунком (выбор тарифа) */
.x-custom { grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; }
.x-custom__range { grid-column: 1 / -1; width: 100%; margin: 6px 0 0; accent-color: var(--text); height: 28px; }
.x-custom__hint { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }
.x-custom:not([aria-checked="true"]) .x-custom__hint { display: none; }
.x-custom__days { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--text-2); font-size: 15px; }
.x-custom__num { width: 92px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 700 18px var(--font); text-align: center; }
.x-custom__num:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.x-custom__lbl { color: var(--text-3); font-size: 14px; }
.x-custom:not([aria-checked="true"]) .x-custom__days { display: none; }
/* 01.12 (владелец, скриншоты обучения: сквозь карточку просвечивали кнопка и надписи): карточка подсказки — всегда плотная, поверх всего */
html .x-tour { z-index: 2147483000; }
/* стекло приложения (25.11) делало подсказку прозрачной — у подсказки матовое тёмное стекло: читается, стиль тот же (приоритет выше стекла) */
html .x-tour > .x-tour__card.x-tour__card.x-tour__card.x-tour__card { background: rgba(24, 24, 22, .92) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important; z-index: 2; }
html.x-light .x-tour > .x-tour__card.x-tour__card.x-tour__card.x-tour__card { background: rgba(255, 255, 255, .95) !important; }

/* 02.12 (владелец, снимок StealthSurf): карточка паузы на главной — до скольки, «+15 мин», «Включить» */
.x-vpn__pause { width: 100%; display: grid; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); text-align: left;
  background: rgba(30, 30, 28, .38); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
.x-vpn__pause[hidden] { display: none; }
.x-vpn__pausehead { display: flex; align-items: center; gap: 12px; }
.x-vpn__pausehead b { display: block; font-size: 17px; }
.x-vpn__pausehead small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.x-vpn__pauseico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #4f7fe0; color: #fff; flex: none; }
.x-vpn__pausebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-vpn__pausebtns .x-btn { min-height: 46px; border-radius: 23px; font-size: 16px; }
html.x-light .x-vpn__pause { background: rgba(255, 255, 255, .6); }
.x-vpn__pmore { background: rgba(255, 255, 255, .08); color: #8fb4ff; border: 0; }
.x-vpn__pgo { background: #4f7fe0; color: #fff; border: 0; }
html.x-light .x-vpn__pmore { background: rgba(28, 27, 24, .06); color: #3b63c4; }
/* 02.12 (владелец: в светлой теме вокруг кнопки «полоса» — серый квадрат): размытие фона за кнопкой рисуется квадратом по тени.
   Без него вид тот же, квадрата нет. Только светлая тема. */
html.x-light .x-vpn__btn { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* 02.12 (владелец: «при 150 % на Mac всё растягивается»): размер текста на компьютере — zoom страницы; высота «на всё окно» (vh/dvh)
   при zoom умножается на масштаб — делим обратно (--zk ставит app.js / appsettings.js вместе с классом x-zoomed) */
html.x-zoomed .x-home { height: calc(100vh / var(--zk, 1)) !important; }
html.x-zoomed .shell, html.x-zoomed .login { min-height: calc(100vh / var(--zk, 1)) !important; }
html.x-zoomed .x-edge { height: calc(100vh / var(--zk, 1)) !important; }
html.x-zoomed .x-welcome { min-height: calc(100vh / var(--zk, 1) - 60px) !important; }
/* 02.12 (владелец: «настройки — всё как у StealthSurf»): компьютер, широкое окно — меню разделов слева, раздел справа */
html.x-setwide .screen { max-width: 1120px !important; }
.x-setgrid__pane { display: none; }
@media (min-width: 860px) {
  html.x-desktop .x-setgrid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
  /* 02.12 (владелец, видео: меню слева обрезалось и прыгало — прокручивались и страница, и меню): как у StealthSurf — страница не
     прокручивается, меню и раздел прокручиваются каждый сам, на всю высоту окна */
  html.x-desktop.x-setwide, html.x-desktop.x-setwide body { overflow: hidden; }
  html.x-desktop .x-setgrid { height: calc(100vh / var(--zk, 1) - var(--setgrid-top, 24px)); grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  html.x-desktop .x-setgrid__nav, html.x-desktop .x-setgrid__pane { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 24px 2px; scrollbar-width: thin; }
  html.x-desktop .x-setgrid__pane { display: block; }
  html.x-desktop .x-setnav .x-li.is-active { background: rgba(255, 255, 255, .07); }
  html.x-desktop.x-light .x-setnav .x-li.is-active { background: rgba(28, 27, 24, .06); }
  .x-pane { padding: 6px 2px 24px; }
  .x-pane__head { margin: 4px 0 14px; text-align: center; }
  .x-pane__title { font-size: 22px !important; font-weight: 800 !important; line-height: 1.2; margin: 0 !important; letter-spacing: 0; text-transform: none; }
  .x-pane__sub { color: var(--text-3, #8a8a85); font-size: 14px; margin-top: 4px; }
  .x-pane .sheet__foot { margin-top: 16px; display: flex; gap: 10px; }
}
/* 02.12 (как у StealthSurf): «Прокси / Туннель» над карточкой локации — компактный переключатель по центру */
html.x-desktop .x-vpn__mode { display: flex; width: 220px; max-width: 100%; margin: 0 auto 2px; position: relative; z-index: 5; align-self: center; }
/* плашка IP на компьютере — наверху, под плашками (внизу — переключатель режима, как у StealthSurf) */
/* 03.12 (владелец: «почему на Маке IP наверху?»): как на телефоне — под статусом и таймером (было: наверху, под плашками) */
html.x-desktop .x-vpn__mode[hidden] { display: none; }
html.x-desktop .x-vpn__mode button { padding: 6px 18px; font-size: 13.5px; }
/* 02.12 (владелец: «плавно, без рывков и резких появлений»): раздел настроек справа появляется мягко */
@keyframes x-pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.x-pane { animation: x-pane-in .22s cubic-bezier(.2, .8, .2, 1) both; }
html.x-desktop .x-setnav .x-li { transition: background-color .18s ease; }
/* 02.12 (владелец: справа от «Туннель» пусто): переключатель режима — ровно две половины */
html.x-desktop .x-vpn__mode { display: grid !important; grid-template-columns: 1fr 1fr; }
html.x-desktop .x-vpn__mode[hidden] { display: none !important; }
/* 02.12 (владелец: «подсветка при наведении на элементы»): компьютер — мягкая подсветка всего, что нажимается */
@media (hover: hover) and (pointer: fine) {
  html.x-desktop :is(.x-li, .x-acard, .x-apill, .x-vpn__loc, .x-abtn, .x-btn, .x-seg > button, .x-card[role="button"], .x-chip, .x-loc, .x-dev, .x-plan, button.x-card) {
    transition: background-color .16s ease, border-color .16s ease; }
  html.x-desktop:not(.x-light) :is(.x-li, .x-acard, .x-apill, .x-vpn__loc, .x-card[role="button"], .x-loc, .x-dev, .x-plan, button.x-card):not(:disabled):hover {
    background-color: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .22) !important; }
  html.x-desktop.x-light :is(.x-li, .x-acard, .x-apill, .x-vpn__loc, .x-card[role="button"], .x-loc, .x-dev, .x-plan, button.x-card):not(:disabled):hover {
    background-color: rgba(28, 27, 24, .05) !important; border-color: rgba(28, 27, 24, .2) !important; }
  html.x-desktop :is(.x-btn, .x-abtn):not(:disabled):hover { background-color: rgba(255, 255, 255, .1); }
  html.x-desktop .x-seg > button:not([aria-checked="true"]):hover { background-color: rgba(255, 255, 255, .06); color: var(--text, #f2f2f0); }
  html.x-desktop.x-light .x-seg > button:not([aria-checked="true"]):hover { background-color: rgba(28, 27, 24, .05); color: #171614; }
}
/* 02.12 (владелец, видео: указатель над плашками мигал рука ↔ стрелка): на компьютере слой падающего снега — под интерфейсом
   (поверх — перерисовка 60 раз в секунду, и WebKit сбивал курсор); курсор «рука» — и на всём внутри нажимаемого */
html.x-desktop .x-snow { z-index: 0 !important; }
html.x-desktop :is(button, [role="button"], [data-action], a, .toggle) * { cursor: inherit; }
html.x-desktop :is(button, [role="button"], [data-action], a, .toggle) { cursor: pointer; }

/* 02.12 (владелец: раздел справа вылезал за край, кнопки — в тёмной подложке): колонка раздела не шире окна, нижний блок — без подложки */
@media (min-width: 860px) {
  html.x-desktop .x-setgrid { grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important; width: 100%; max-width: 100%; box-sizing: border-box; }
  html.x-desktop .x-setgrid__pane { min-width: 0; overflow-x: hidden; }
  html.x-desktop .x-pane, html.x-desktop .x-pane .sheet__body { max-width: 100%; min-width: 0; box-sizing: border-box; }
  html.x-desktop .x-pane .x-li .x-grow { min-width: 0; }
  html.x-desktop .x-pane .sheet__foot { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; position: static !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
/* 02.12 (владелец: «Сменить пароль» обрезалась слева): нижний блок в разделе справа — без отрицательных отступов окна, у колонки — поля */
@media (min-width: 860px) {
  html.x-desktop .x-setgrid__pane { padding-left: 8px !important; padding-right: 10px !important; }
  html.x-desktop .x-pane .sheet__foot { margin: 16px 0 0 !important; width: auto !important; justify-content: flex-start; }
}

/* 03.12 «Защита» на компьютере: окно заперто до Touch ID / пароля Mac — фон бренда, всё по центру */
.x-applock { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  background: #0F0F0E; color: #fff; -webkit-app-region: drag; }
.x-applock__in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 320px; padding: 0 16px; }
.x-applock__in svg { opacity: .9; margin-bottom: 6px; }
.x-applock__t { font-size: 20px; font-weight: 700; }
.x-applock__s { font-size: 14px; opacity: .6; line-height: 1.4; margin-bottom: 10px; }
.x-applock .x-btn { -webkit-app-region: no-drag; min-width: 200px; }

/* 03.12 (владелец: «всё как на телефоне, по центру»): компьютер — столбиком по центру: «Защищено», таймер, плашка IP
   (позиции IP — ниже, по высоте окна; переключатель «Прокси / Туннель» — под ними, не касается) */
html.x-app.x-desktop .x-home { --vh: calc(100vh / var(--zk, 1)); --U: 38px; --S: clamp(180px, calc(var(--vh) - 504px), 300px); }
html.x-app.x-desktop .x-home .x-vpn .x-vpn__btn { top: calc(50% - var(--U)) !important; width: var(--S) !important; height: var(--S) !important; }
html.x-app.x-desktop .x-home .x-vpn .x-vpn__btn svg { width: calc(var(--S) * .36) !important; height: calc(var(--S) * .36) !important; }
html.x-app.x-desktop .x-home .x-vpn__aura { top: calc(50% - var(--U)) !important; transform: translate(-50%, -50%) scale(calc(var(--S) / 262px)) !important; }
html.x-app.x-desktop .x-home .x-vpn__state { top: calc(50% - var(--U) + var(--S) / 2 + 14px) !important; }
html.x-app.x-desktop .x-home .x-vpn__sub { top: calc(50% - var(--U) + var(--S) / 2 + 50px) !important; }
html.x-app.x-desktop .x-home .x-vpn__err { top: calc(50% - var(--U) + var(--S) / 2 + 74px) !important; }
html.x-app.x-desktop .x-home .x-vpn__ip { top: calc(50% - var(--U) + var(--S) / 2 + 86px) !important; left: 50% !important; }

/* 03.12 (владелец: «чуть плавнее включение кнопки и появление всего»): кнопка меняет цвет и рамку плавно; слово статуса и подпись
   проявляются снизу вверх; плашка IP — мягко вырастает. Время — как у системных переходов (≈ 0,35–0,45 с, плавное замедление) */
.x-vpn__btn { transition: color .7s cubic-bezier(.22, 1, .36, 1), border-color .7s cubic-bezier(.22, 1, .36, 1), background .7s ease, box-shadow .7s ease, transform .25s ease; }
.x-vpn__state { transition: color .6s ease; }
@keyframes x-soft-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.x-vpn__state.x-soft, .x-vpn__sub.x-soft { animation: x-soft-in .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes x-pop-in { from { opacity: 0; transform: translateX(-50%) translateY(7px) scale(.95); } to { opacity: 1; transform: translateX(-50%); } }
html.x-app .x-home .x-vpn__ip.x-pop { animation: x-pop-in .6s cubic-bezier(.22, 1, .36, 1) both; }
/* 03.12 (владелец: «почему плашка подсказки — пиздец»): подсказки и сообщения лежат поверх карточек — прозрачное стекло (2,5 %) их
   смешивало с содержимым под ними, текст не читался. Им — плотное тёмное стекло (сильное размытие), кромка — как у остальных */
html.x-app:not(.x-light) :is(.x-hint.x-hint.x-hint, .toast.toast.toast, .x-tour__card.x-tour__card.x-tour__card) {   /* специфичность выше общего стекла */
  background: rgba(24, 24, 23, .94) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important; backdrop-filter: blur(18px) saturate(1.2) !important; }
