/* NAAProxy Mini App — hi-tech dark, палитра аватара канала: почти чёрный
   фон с глубоким синим, электрический фиолет #5321f8, пурпур #d153df, светло-фиолетовый #c098fd.
   Контраст проверен вручную: текст на фоне >= 12:1, текст на акцентных
   кнопках >= 8:1 (см. заметку в конце файла). */

/* Шрифты лежат у нас (15.10.2026): в белых списках fonts.googleapis.com/gstatic недоступны. Только latin + cyrillic. */
@font-face {
  font-family: 'Black Ops One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/BlackOpsOne-latin-a5ed3b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-cyrillic-4ee8fc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-latin-567244.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-cyrillic-4ee8fc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-latin-567244.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-cyrillic-4ee8fc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-latin-567244.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-cyrillic-4ee8fc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-latin-567244.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-cyrillic-b1b041.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-latin-480c06.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-cyrillic-b1b041.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-latin-480c06.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Sora-latin-4fa0aa.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Sora-latin-4fa0aa.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Sora-latin-4fa0aa.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Sora-latin-4fa0aa.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg-0: #03010b;
  --bg-1: #080420;
  --bg-2: #0e0731;
  --surface: rgba(14,8,42,.84);
  --surface-2: #1a1052;
  --border: #33218a;
  --border-soft: #1f1560;

  --ink: #eeedff;
  --ink-soft: #b7abf0;
  --ink-faint: #7a6db8;

  --violet: #7a45ff;
  --violet-2: #c098fd;
  --blue: #4a45f5;
  --blue-2: #8b97ff;
  --cyan: #b9a6ff;
  --magenta: #d153df;

  --grad-primary: linear-gradient(135deg, #5321f8 0%, #7d1bdf 100%);
  --grad-primary-hover: linear-gradient(135deg, #6a3dff 0%, #9a3cf0 100%);
  --grad-text: linear-gradient(90deg, #d6bcff 0%, #c098fd 45%, #93a3ff 100%);
  --grad-line: linear-gradient(90deg, rgba(122,69,255,.75), rgba(209,83,223,.4) 60%, transparent);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(83,33,248,.5) 0%, rgba(47,27,223,0) 70%);
  --grad-border: linear-gradient(160deg, rgba(122,69,255,.75), rgba(74,69,245,.25) 45%, rgba(209,83,223,.4));

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;

  --shadow-glow: 0 0 0 1px rgba(122,69,255,.35), 0 8px 34px rgba(83,33,248,.28);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

/* туманность за звёздами (JS двигает её параллаксом при перетекании вкладок) */
#nebula {
  position: fixed; top: -6%; bottom: -6%; left: -15%; right: -15%;
  z-index: 0; pointer-events: none; will-change: transform;
  background:
    radial-gradient(560px 460px at 22% 6%, rgba(83,33,248,.42), transparent 70%),
    radial-gradient(500px 400px at 88% 24%, rgba(209,83,223,.17), transparent 70%),
    radial-gradient(620px 520px at 72% 96%, rgba(47,27,223,.34), transparent 70%),
    radial-gradient(420px 320px at 10% 78%, rgba(125,27,223,.2), transparent 70%);
}
#matrix-bg {   /* canvas звёздного неба */
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(180deg, #02010a 0%, #06021a 55%, #090329 100%);
  background-color: var(--bg-0);
  min-height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.grad-border {
  position: relative; background: var(--surface);
  border: 1px solid transparent; background-clip: padding-box;
}
.grad-border::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

a { color: inherit; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(18px + var(--safe-top)) 16px calc(96px + var(--safe-bottom));
  position: relative;
  display: flex;
  flex-direction: column;
  touch-action: pan-y;   /* горизонталь отдаём свайпу между вкладками */
  overscroll-behavior-x: none;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 48px; height: 34px;
  background: url("/logo-mark.png?v=20260930c") center/contain no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 0; color: transparent;  /* прозрачный знак без квадрата/фона */
}
.brand-name {
  font-family: 'Black Ops One', 'Sora', sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lang-pill {
  display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.lang-pill button {
  border: none; background: transparent; color: var(--ink-faint);
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
.lang-pill button.active { background: var(--surface-2); color: var(--ink); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  padding: 18px;
  margin-bottom: 14px;
}
.card.glow {
  box-shadow: var(--shadow-glow);
  position: relative; border: 1px solid transparent; background-clip: padding-box;
}
.card.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--ink-soft); font-size: 13px; }
.faint { color: var(--ink-faint); font-size: 12px; }

/* hero */
.hero {
  border-radius: var(--radius-l);
  padding: 22px 20px;
  background: var(--grad-glow), var(--bg-1);
  border: 1px solid transparent; background-clip: padding-box;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,69,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,69,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet-2); margin-bottom: 10px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero h1 {
  font-size: 21px; line-height: 1.3; position: relative;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { position: relative; margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius-m);
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 22px rgba(83,33,248,.5); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); }
.btn-danger { background: rgba(248,113,113,.12); color: var(--danger); border: 1px solid rgba(248,113,113,.35); }
.btn-success { background: rgba(52,211,153,.12); color: var(--success); border: 1px solid rgba(52,211,153,.35); }
.btn-sm { padding: 9px 12px; font-size: 13px; width: auto; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- tier / plan cards ---------- */
.tier-title {
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 20px;
  text-align: center; margin: 4px 0 20px;
}
.tiers { display: grid; grid-template-columns: 1fr; gap: 14px; }
/* карточка тарифа: значок + имя + «от N ₽», три характеристики сразу на виду */
.tier-card {
  border-radius: var(--radius-l); padding: 16px 16px 14px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .12s ease, border-color .2s ease;
}
.tier-card::before {   /* цветное свечение сверху в цвет тарифа */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 0%, var(--tc-glow), transparent 75%);
}
.tier-card:active { transform: scale(.985); }
.tier-lite { --tc: #34d399; --tc-glow: rgba(52,211,153,.22); }
.tier-standard { --tc: #8b97ff; --tc-glow: rgba(139,151,255,.26); }
.tier-family { --tc: #d153df; --tc-glow: rgba(209,83,223,.24); }
.tier-card { border-color: color-mix(in srgb, var(--tc) 35%, var(--border)); }
.tier-head { display: flex; align-items: center; gap: 12px; position: relative; }
.tier-ico {
  width: 40px; height: 40px; flex: none; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent), 0 0 16px color-mix(in srgb, var(--tc) 22%, transparent);
}
.tier-ico svg { width: 22px; height: 22px; }
.tier-ico.sm { width: 30px; height: 30px; border-radius: 10px; }
.tier-ico.sm svg { width: 17px; height: 17px; }
.tier-name { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 19px; flex: 1; }
.tier-from { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.tier-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; position: relative; }
.tier-specs div {
  background: rgba(8,4,32,.55); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 9px 6px 8px; text-align: center; min-width: 0;
}
.tier-specs b { display: block; font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.tier-specs span { display: block; font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }
.chev { color: var(--ink-faint); position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

.tier-desc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--ink-soft);
  padding: 8px 4px; border-top: 1px solid var(--border-soft);
}
.tier-desc-row:first-child { border-top: none; }
.tier-desc-row span:last-child { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; color: var(--ink); }

/* блок «что входит» в карточке подписки */
.sub-limits {
  background: var(--bg-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius-m); padding: 2px 12px; margin-bottom: 10px;
}

/* ---------- предупреждение (напр. про платформы) ---------- */
.warning-card {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35);
  border-radius: var(--radius-m); padding: 13px 15px; margin-bottom: 16px;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.45;
}
.warning-card .ic { width: 20px; height: 20px; flex-shrink: 0; color: var(--warning); }
.warning-card .ic svg { width: 100%; height: 100%; }

.plan-list { display: grid; gap: 12px; }
.section-title.tier-lite, .section-title.tier-standard, .section-title.tier-family { margin-bottom: 14px; }
/* строка срока: значок-календарь, срок (+ скидка и цена за день), цена справа */
.plan-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 14px 16px; cursor: pointer; background: var(--surface);
  transition: transform .12s ease;
}
.plan-row:active { transform: scale(.985); }
.plan-ico {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--violet-2); background: linear-gradient(150deg, rgba(83,33,248,.38), rgba(209,83,223,.16));
  box-shadow: inset 0 0 0 1px rgba(150,110,255,.3);
}
.plan-ico svg { width: 20px; height: 20px; }
.plan-mid { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-days { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.plan-badge {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(52,211,153,.16); color: var(--success);
}
.plan-row .plan-price { font-size: 19px; }
.plan-row.duration-90 { border-color: rgba(52,211,153,.45); background: linear-gradient(90deg, rgba(52,211,153,.10), var(--surface) 60%); }
.plan-row.duration-180 { border-color: rgba(74,69,245,.55); background: linear-gradient(90deg, rgba(74,69,245,.14), var(--surface) 60%); }
.plan-row.duration-365 { border-color: rgba(209,83,223,.5); background: linear-gradient(90deg, rgba(209,83,223,.13), var(--surface) 60%); }
.plan-price {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.sum-left { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; background: rgba(34,211,238,.14); color: var(--cyan); margin-left: 6px;
}

/* ---------- payment methods ---------- */
.pay-methods { display: grid; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 14px; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 12px 14px; cursor: pointer; background: var(--surface);
  transition: transform .12s ease;
}
.pay-method:active { transform: scale(.985); }
.pay-method .pm-label { font-weight: 600; font-size: 15px; flex: 1; }
.pay-method .chev { position: static; transform: none; font-size: 20px; }

/* кнопка «Назад»: компактная пилюля слева, а не растянутая на всю ширину */
.back-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft);
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 14px 7px 8px; border-radius: 999px; cursor: pointer; margin-bottom: 14px;
}
.back-btn svg { width: 18px; height: 18px; }
.back-btn:active { transform: scale(.97); }

/* ---------- status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.status-active { background: rgba(52,211,153,.14); color: var(--success); }
.status-expired { background: rgba(148,163,184,.14); color: var(--ink-soft); }
.status-revoked { background: rgba(248,113,113,.14); color: var(--danger); }
.status-pending { background: rgba(251,191,36,.14); color: var(--warning); }

/* ---------- bottom nav ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(3,1,11,.9) 40%);
  z-index: 20;
}
.tabbar-inner {
  width: 100%; max-width: 560px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(10,5,32,.85); backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 6px 3px; position: relative;
  box-shadow: 0 -4px 28px rgba(83,33,248,.16);
}
/* плашка активной вкладки: ширина = 1/5, позицию задаёт JS (setProg) — едет вместе со свайпом */
.tab-pill {
  position: absolute; left: 3px; top: 6px; bottom: 6px; width: calc((100% - 6px) / 5);
  border-radius: 15px; pointer-events: none; will-change: transform;
  background: linear-gradient(160deg, rgba(83,33,248,.5), rgba(209,83,223,.22));
  box-shadow: inset 0 0 0 1px rgba(150,110,255,.35), 0 0 18px rgba(83,33,248,.35);
}
.tab-btn {
  border: none; background: transparent; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 2px; border-radius: 15px; cursor: pointer; font-size: 11px; font-weight: 600;
  min-width: 0; position: relative; z-index: 1;
}
.tab-btn .ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.tab-btn .ic svg { width: 100%; height: 100%; }
.tab-btn .label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tab-btn.active { color: var(--ink); }
.tab-btn.active .ic { filter: drop-shadow(0 0 6px rgba(150,110,255,.8)); }

@media (max-width: 360px) {
  .tab-btn .label { font-size: 9.5px; }
  .tab-btn .ic { width: 23px; height: 23px; }
}

/* ---------- misc ---------- */
/* stage шире контента на поля #app (16px): обрезка при перетекании — по краю экрана, а не по краю карточек */
.stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow-x: clip; margin: 0 -16px; padding: 0 16px; }
.screen { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.screen.enter { animation: fade .18s ease; }
.screen-inner { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.center-group { margin: auto 0; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Перетекание вкладок: во время свайпа/клика рядом лежат два экрана, JS двигает оба
   transform'ом (см. startFlow/applyFlow в app.js). Приезжающий — поверх, вне потока. */
.stage.flowing .screen { will-change: transform, opacity; }
.stage.flowing .screen.incoming { position: absolute; top: 0; left: 16px; right: 16px; }

.section-title {
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 15px;
  margin: 4px 0 10px; display: flex; align-items: center; gap: 8px;
}
.section-title .line { flex: 1; height: 1px; background: var(--grad-line); }

.empty {
  text-align: center; padding: 34px 16px; color: var(--ink-faint);
}

.field-label { font-size: 11px; color: var(--ink-faint); margin-bottom: 5px; }

.input {
  width: 100%; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 13px 14px; color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px;
}
.input:focus { outline: none; border-color: var(--violet); }

.copy-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 10px 12px;
}
.copy-row code { flex: 1; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; word-break: break-all; color: var(--cyan); }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 12px; font-size: 13px; z-index: 50;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fallback-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fallback-card { max-width: 380px; text-align: center; }
.fallback-card .brand-mark { margin: 0 auto 18px; width: 96px; height: 68px; border-radius: 0; }

/* ---------- home/referral tiles ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-tile {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-m);
  padding: 12px 10px; text-align: center;
}
.quick-tile .v {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 17px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quick-tile .l { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }

.status-line {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft);
  margin-bottom: 14px; padding: 2px 2px;
}

.table-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border-soft);
}
.table-row:last-child { border-bottom: none; }
.table-row .name { font-weight: 600; font-size: 14px; }
.table-row .meta { font-size: 12px; color: var(--ink-faint); }

/* иконки ссылок «Инфо»: линейные SVG в плитке с градиентом (вместо системных эмодзи) */
.table-row .chev { position: static; transform: none; font-size: 20px; }   /* в строках списка — в потоке, а не абсолютно по карточке */
.link-label { display: flex; align-items: center; gap: 12px; }
.ic-tile {
  width: 34px; height: 34px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--violet-2);
  background: linear-gradient(150deg, rgba(83,33,248,.38), rgba(209,83,223,.16));
  box-shadow: inset 0 0 0 1px rgba(150,110,255,.3), 0 0 14px rgba(83,33,248,.22);
}
.ic-tile svg { width: 19px; height: 19px; }
.ic-inline { display: inline-flex; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--violet-2); }
.ic-inline svg { width: 100%; height: 100%; }
.btn .ic-inline { width: 18px; height: 18px; margin-right: 0; vertical-align: 0; color: inherit; }
.news-head { margin-bottom: 4px; display: flex; align-items: center; }
.news-head .ic-inline { vertical-align: 0; }

/* FAQ: аккордеон (раскрытие через grid-template-rows 0fr → 1fr, без замера высоты) */
.faq-card { padding: 4px 16px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: transparent; border: none; color: var(--ink); text-align: start; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600; padding: 14px 0;
}
.faq-chev { flex: none; width: 20px; height: 20px; color: var(--violet-2); transition: transform .25s ease; display: inline-flex; }
.faq-chev svg { width: 100%; height: 100%; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-a-in { overflow: hidden; min-height: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a-in { padding-bottom: 14px; }
.faq-a-in b { color: var(--ink); }
.faq-a-in code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); word-break: break-all; }

.node-dot { width: 8px; height: 8px; border-radius: 50%; }
.node-dot.ok { background: var(--success); box-shadow: 0 0 8px var(--success); }
.node-dot.bad { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* Контраст: --ink (#eeeef8) на --bg-0 (#06050e) ≈ 18:1,
   #fff на --grad-primary (~#7c3aed-#6366f1) ≈ 6.5-7:1 */

/* экран загрузки: через медленный прокси Mini App грузится ~10 с — вместо пустого неба показываем индикатор */
.boot { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.boot[hidden] { display: none; }
.boot-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(150,110,255,.25); border-top-color: #9a6bff; animation: spin .8s linear infinite; box-shadow: 0 0 24px rgba(83,33,248,.35); }
.boot-name { font-family: 'Black Ops One', 'Sora', sans-serif; font-size: 20px; letter-spacing: .02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* персональный оффер после триала */
.offer-banner {
  margin: 0 0 14px; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  border: 1px solid rgba(52,211,153,.45); background: linear-gradient(90deg, rgba(52,211,153,.16), rgba(74,69,245,.12));
}
.plan-price .old {
  background: none; -webkit-text-fill-color: var(--muted, #8a8fa3); color: var(--muted, #8a8fa3);
  text-decoration: line-through; font-weight: 500; font-size: .68em; margin-right: 7px;
}

/* ================= остаток трафика, скорость, документы (07.10.2026) ================= */
.live-title { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.meter { margin: 10px 0 12px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.meter-head b { font-family: 'Sora', 'Inter', sans-serif; font-size: 22px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.meter .m-left { font-size: 13px; color: var(--ink-soft); }
.meter-bar { height: 12px; border-radius: 99px; background: rgba(122,69,255,.16); box-shadow: inset 0 0 0 1px var(--border-soft); overflow: hidden; margin: 8px 0 6px; }
.meter-fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad-primary); box-shadow: 0 0 14px rgba(122,69,255,.55); transition: width .9s cubic-bezier(.2,.8,.2,1), background .4s; position: relative; overflow: hidden; }
.meter-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%); transform: translateX(-100%); animation: meter-shine 3.2s ease-in-out infinite; }
@keyframes meter-shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.meter.low .meter-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 14px rgba(251,191,36,.5); }
.meter.crit .meter-fill { background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 14px rgba(248,113,113,.5); }
.meter.crit .m-empty { color: var(--danger); }
.meter-sub { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-faint); }
.meter.unl .meter-head b { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .meter-fill::after, .live-dot { animation: none; } .meter-fill { transition: none; } }

.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.speed .cell { background: rgba(122,69,255,.10); border: 1px solid var(--border-soft); border-radius: var(--radius-m); padding: 12px; }
.speed .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.speed .k svg { width: 14px; height: 14px; }
.speed .v { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.speed .v.idle { color: var(--ink-faint); }
.spark { width: 100%; height: 64px; margin-top: 12px; overflow: visible; }
.spark path { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .sp-down { stroke: var(--violet-2); }
.spark .sp-up { stroke: var(--magenta); opacity: .85; }
.spark .sp-area { fill: rgba(122,69,255,.16); stroke: none; }
.speed-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-faint); margin-top: 6px; min-height: 16px; }
.speed-hint { font-size: 11.5px; line-height: 1.45; margin-top: 8px; }

.buy-note { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.buy-note b, .buy-note strong { color: var(--ink); }
.buy-note a { color: var(--violet-2); }

/* оферта и политика — в стиле приложения */
.card.doc { padding: 20px 18px 24px; font-size: 14px; line-height: 1.62; color: var(--ink-soft); }
.doc h1 { font-family: 'Sora', 'Inter', sans-serif; font-size: 21px; line-height: 1.25; color: var(--ink); margin: 0 0 6px; text-wrap: balance; }
.doc .meta { color: var(--ink-faint); font-size: 12.5px; margin: 0 0 16px; }
.doc .intro { background: rgba(122,69,255,.10); border: 1px solid var(--border-soft); border-radius: var(--radius-m); padding: 14px 16px; margin: 0 0 18px; font-size: 13.5px; }
.doc nav.toc { background: rgba(122,69,255,.07); border: 1px solid var(--border-soft); border-radius: var(--radius-m); padding: 14px 16px 6px; margin: 0 0 22px; }
.doc nav.toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); border: 0; padding: 0; margin: 0 0 8px; }
.doc nav.toc ol { margin: 0; padding-left: 1.2em; }
.doc nav.toc li { margin: 0 0 7px; font-size: 13px; }
.doc nav.toc a { color: var(--ink); text-decoration: none; }
.doc nav.toc a:active { color: var(--violet-2); }
.doc section { margin: 0 0 22px; scroll-margin-top: 12px; }
.doc section h2 { font-family: 'Sora', 'Inter', sans-serif; font-size: 15.5px; color: var(--violet-2); border-top: 1px solid var(--border-soft); padding-top: 16px; margin: 0 0 10px; }
.doc p { margin: 0 0 10px; }
.doc strong, .doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--violet-2); }
.doc .contact { background: rgba(122,69,255,.08); border: 1px solid var(--border-soft); border-radius: var(--radius-m); padding: 12px 14px; }
.doc .contact p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 10px; }
.doc li { margin-bottom: 5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 12px; }
.doc th, .doc td { border: 1px solid var(--border-soft); padding: 7px 9px; text-align: left; }

.topup-btn { width: 100%; margin: 2px 0 14px; }
.btn-row { flex-wrap: wrap; }

/* ================= вкладка «Подписки»: компактная карточка (07.10.2026) ================= */
.sub-card { padding: 18px 16px 16px; margin-bottom: 14px; }
.sub-card.inactive { opacity: .78; }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sub-id { min-width: 0; }
.sub-title { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.sub-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(122,69,255,.12); border: 1px solid var(--border-soft); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; flex: none; }
.sub-card .meter { margin: 14px 0 4px; }
.sub-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sub-actions .btn { margin: 0; }
.sub-actions .btn svg { width: 17px; height: 17px; flex: none; }
.sub-actions .btn-row { flex-wrap: nowrap; }
.sub-actions .btn.toggle svg { order: 2; transition: transform .25s ease; }
.sub-actions .btn.toggle.on svg { transform: rotate(180deg); }
.sub-foot .btn { font-weight: 500; font-size: 13.5px; padding: 11px 10px; }
.links-panel { display: none; flex-direction: column; gap: 8px; }
.links-panel.open { display: flex; animation: panelin .22s ease; }
@keyframes panelin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.link-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--radius-m); background: rgba(122,69,255,.08); border: 1px solid var(--border-soft); }
.link-row .lt { flex: 1; min-width: 0; }
.link-row .lt b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.link-row .lt span { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }
.icon-btn { appearance: none; cursor: pointer; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(.94); }

/* ================= вкладка «Купить»: витрина (07.10.2026) ================= */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.buy-hero { text-align: center; margin: 2px 0 16px; animation: rise .5s both; }
.buy-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); padding: 6px 13px; border-radius: 99px; background: rgba(122,69,255,.14); border: 1px solid var(--border-soft); }
.buy-kicker svg { width: 14px; height: 14px; }
.buy-hero h1 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 14px 0 8px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.buy-hero p { margin: 0 auto; max-width: 310px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.trial-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; margin: 0 0 14px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgba(83,33,248,.62), rgba(209,83,223,.38)); border: 1px solid rgba(192,152,253,.55); box-shadow: 0 10px 30px rgba(83,33,248,.36); animation: rise .5s .05s both; transition: transform .12s ease; }
.trial-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.2) 50%, transparent 75%); transform: translateX(-120%); animation: meter-shine 4s ease-in-out infinite; pointer-events: none; }
.trial-banner:active { transform: scale(.985); }
.trial-banner.busy { opacity: .6; pointer-events: none; }
.tb-ico { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; }
.tb-ico svg { width: 22px; height: 22px; }
.tb-mid { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-mid b { font-size: 15.5px; color: #fff; }
.tb-mid span { font-size: 12.5px; color: rgba(255,255,255,.82); }
.tb-go { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; }
.tb-go svg { width: 16px; height: 16px; }

.tcard { position: relative; border-radius: 22px; padding: 16px 16px 14px; margin: 0 0 14px; cursor: pointer; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--tc) 15%, var(--surface)), var(--surface) 58%);
  border: 1px solid color-mix(in srgb, var(--tc) 40%, var(--border));
  box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--tc) 55%, transparent);
  animation: rise .5s both; animation-delay: calc(var(--i, 0) * 80ms + 100ms); transition: transform .14s ease, box-shadow .2s ease; }
.tcard::before { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc) 32%, transparent), transparent 68%); }
.tcard:active { transform: scale(.985); }
.tcard.feat { border-color: color-mix(in srgb, var(--tc) 75%, var(--border)); box-shadow: 0 14px 38px -12px color-mix(in srgb, var(--tc) 70%, transparent); }
.tc-badge { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px;
  color: #0b0620; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #fff)); }
.tc-top { display: flex; align-items: center; gap: 12px; position: relative; }
.tcard .tier-ico { width: 46px; height: 46px; border-radius: 15px; }
.tcard .tier-ico svg { width: 24px; height: 24px; }
.tc-tt { min-width: 0; }
.tc-name { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.tc-tag { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.tc-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 15px 0 14px; padding: 0; position: relative; }
.tc-feats li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.tc-feats li svg { width: 15px; height: 15px; flex: none; color: var(--tc); stroke-width: 2.4; }
.tc-feats.compact { margin: 12px 0 0; gap: 6px 14px; }
.tc-feats.compact li { font-size: 12.5px; color: var(--ink-soft); }
.tc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; position: relative; border-top: 1px dashed color-mix(in srgb, var(--tc) 35%, var(--border-soft)); }
.tc-price { display: flex; align-items: baseline; gap: 4px; }
.tc-from, .tc-per { font-size: 12.5px; color: var(--ink-soft); }
.tc-price b { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.tc-cur { font-weight: 700; font-size: 16px; }
.tc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--tc); padding: 8px 14px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); }
.tc-go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.tcard:hover .tc-go svg { transform: translateX(3px); }
.tc-day { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; position: relative; }

.tcard-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--tc) 40%, var(--border)); background: linear-gradient(155deg, color-mix(in srgb, var(--tc) 13%, var(--surface)), var(--surface) 60%); }
.tcard-mini .tc-feats { flex-basis: 100%; }
.tm-mid { flex: 1; min-width: 0; }

.dur-list { display: grid; gap: 12px; }
.dur-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); animation: rise .45s both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .12s ease, border-color .2s; }
.dur-row:active { transform: scale(.985); }
.dur-row.duration-90 { border-color: rgba(52,211,153,.4); background: linear-gradient(90deg, rgba(52,211,153,.09), var(--surface) 65%); }
.dur-row.duration-180 { border-color: rgba(74,69,245,.5); background: linear-gradient(90deg, rgba(74,69,245,.13), var(--surface) 65%); }
.dur-row.duration-365 { border-color: rgba(209,83,223,.5); background: linear-gradient(90deg, rgba(209,83,223,.12), var(--surface) 65%); }
.dur-row.best { border-color: var(--violet-2); box-shadow: 0 10px 30px -12px rgba(122,69,255,.7); padding-top: 22px; }
.dur-flag { position: absolute; top: -1px; left: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 0 0 10px 10px; color: #fff; background: var(--grad-primary); }
.dur-ring { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border); position: relative; }
.dur-row.best .dur-ring { border-color: var(--violet-2); }
.dur-row:hover .dur-ring::after, .dur-row.best .dur-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--violet-2); opacity: .9; }
.dur-mid { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dur-days { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dur-sub { font-size: 12px; color: var(--ink-faint); }
.dur-row .plan-price { font-size: 21px; }

.sum-card { background: linear-gradient(155deg, color-mix(in srgb, var(--tc) 16%, var(--surface)), var(--surface) 62%); border-color: color-mix(in srgb, var(--tc) 45%, var(--border)); }
.sum-top { display: flex; align-items: center; gap: 12px; }
.sum-mid { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sum-mid b { font-family: 'Sora', 'Inter', sans-serif; font-size: 18px; }
.sum-price { font-size: 24px; }
.pay-method { padding: 14px 16px; border-radius: 18px; animation: rise .45s both; animation-delay: calc(var(--i, 0) * 70ms); }
.pay-method .pm-mid { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-method .pm-sub { font-size: 12px; color: var(--ink-faint); }
.pay-note { display: flex; align-items: flex-start; gap: 9px; margin: 16px 2px 4px; font-size: 12px; line-height: 1.45; color: var(--ink-faint); }
.pay-note svg { width: 17px; height: 17px; flex: none; color: var(--success); }
@media (prefers-reduced-motion: reduce) { .buy-hero, .trial-banner, .tcard, .dur-row, .pay-method { animation: none; } .trial-banner::after { animation: none; } }

/* ===== устройства и перевыпуск ссылки ===== */
.reissue { margin-top: 2px; font-size: 13px; padding: 10px 12px; }
.dev-panel { display: none; padding: 12px 14px; border-radius: var(--radius-m); background: rgba(122,69,255,.08); border: 1px solid var(--border-soft); }
.dev-panel.open { display: block; animation: panelin .22s ease; }
.dev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dev-count { font-weight: 700; font-size: 14px; }
.dev-count.full { color: var(--warning); }
.dev-upd { font-size: 11px; }
.dev-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.dev-row:first-child { border-top: none; }
.dev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.dev-dot.on { background: var(--success); box-shadow: 0 0 8px rgba(52,211,153,.7); }
.dev-ip { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 13px; word-break: break-all; }
.dev-tag { font-size: 11.5px; color: var(--ink-faint); }
.dev-tag.on { color: var(--success); font-weight: 600; }
.dev-none { padding: 6px 0; font-size: 13px; }
.dev-hint { margin-top: 8px; font-size: 11.5px; line-height: 1.45; }

/* плашка «Продлить» (09.10.2026) — заметная, но в общей палитре; .soon — до конца неделя и меньше */
.renew-strip { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; color: #fff; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, rgba(83,33,248,.95) 0%, rgba(160,40,224,.92) 100%);
  box-shadow: 0 8px 26px rgba(110,40,240,.45); font: inherit; -webkit-tap-highlight-color: transparent; }
.renew-strip:active { transform: scale(.985); }
.renew-strip .rs-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); }
.renew-strip .rs-ico svg { width: 20px; height: 20px; }
.renew-strip .rs-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.renew-strip .rs-title { font-weight: 700; font-size: 16px; }
.renew-strip .rs-pct { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; background: #fff; color: #5a22e6; vertical-align: 1px; }
.renew-strip .rs-sub { font-size: 12.5px; opacity: .85; }
.renew-strip .chev { font-size: 22px; opacity: .8; }
.renew-strip.soon { animation: rs-pulse 2.4s ease-in-out infinite; }
@keyframes rs-pulse { 0%, 100% { box-shadow: 0 8px 26px rgba(110,40,240,.45); } 50% { box-shadow: 0 8px 34px rgba(209,83,223,.75); } }
@media (prefers-reduced-motion: reduce) { .renew-strip.soon { animation: none; } }

/* ===== автопродление (15.10.2026) ===== */
.ar-card { margin-bottom: 12px; }
.ar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-txt b { font-size: 15px; }
.ar-txt span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.ar-note { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--ink-faint); }
.ar-box { margin-top: 12px; padding: 11px 13px; border-radius: var(--radius-m); background: rgba(122,69,255,.08); border: 1px solid var(--border-soft); }
.ar-unlink { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--ink-faint); font-size: 12px; text-decoration: underline; cursor: pointer; }
.switch { flex: none; position: relative; width: 46px; height: 28px; padding: 0; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.06); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-soft); transition: transform .2s ease, background .2s ease; }
.switch.on { background: var(--grad-primary); border-color: transparent; }
.switch.on i { transform: translateX(18px); background: #fff; }
.switch:disabled { opacity: .55; }
