@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --surface: #121213;
  --line: #222224;
  --line-strong: #2e2e31;
  --text: #f2f2f0;
  --text-2: #8f8f8a;
  --text-3: #5f5f5b;
  --ok: #6fbf8b;
  --warn: #d9a441;
  --bad: #e2675c;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
}

a { color: inherit; }

/* Шапка */
.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; margin-bottom: 8px;
}
.wordmark {
  font-weight: 650; font-size: 20px; letter-spacing: -0.03em; text-decoration: none;
}
.wordmark.small { font-size: 15px; color: var(--text-2); }
.top-link {
  font-size: 14px; color: var(--text-2); text-decoration: none;
  transition: color .15s;
}
.top-link:hover { color: var(--text); }

/* Типографика */
.label {
  margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-3);
}
.sub { margin: 4px 0 0; color: var(--text-2); }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
h3 { margin: 0; font-size: 16px; font-weight: 550; letter-spacing: -0.01em; }

/* Главная карточка */
.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.hero-head { display: flex; align-items: center; justify-content: space-between; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status.warn .dot { background: var(--warn); }
.status.bad .dot { background: var(--bad); }

.days { margin: 28px 0 0; display: flex; align-items: baseline; gap: 10px; }
.days-num {
  font-size: 84px; line-height: 0.9; font-weight: 500; letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.days-word { font-size: 17px; color: var(--text-2); letter-spacing: -0.01em; }

.meter { height: 2px; background: var(--line-strong); margin: 22px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--text); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--bad); }

.facts { margin: 16px 0 20px; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

.notice {
  margin: 0 0 16px; padding: 12px 14px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line-strong); border-left: 2px solid var(--bad); border-radius: 8px;
}
.notice.warn { border-left-color: var(--warn); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: #47474b; background: #18181a; }
.btn:active { opacity: .8; }
.btn-primary { background: var(--text); border-color: var(--text); color: #0b0b0c; }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-block { width: 100%; height: 50px; font-size: 15px; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-btn {
  margin-top: 14px; padding: 0; border: 0; background: none; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 4px;
}
.link-btn:hover { text-decoration-color: var(--text); }

/* Секции */
.block { padding: 40px 4px 0; }
.block > .label { margin-bottom: 16px; }

/* Переключатель платформ */
/* Ряд листается только по горизонтали: без вертикального «люфта» на iOS */
.segmented {
  display: flex; gap: 22px; margin-bottom: 8px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; touch-action: pan-x;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 -1px 0 var(--line);
  /* Затухание по краям — видно, что вкладки листаются */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  padding: 0 24px 0 0;
}
.segmented.at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
}
.segmented::-webkit-scrollbar { display: none; }
.seg {
  flex: none; position: relative; padding: 10px 0 12px; border: 0; background: none;
  color: var(--text-3); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color .15s; scroll-snap-align: start; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.seg:hover { color: var(--text-2); }
.seg[aria-selected="true"] { color: var(--text); }
.seg[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text);
}

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-n { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.step-body { min-width: 0; }

/* Раскрывающиеся блоки */
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500;
}
.disclosure summary::-webkit-details-marker { display: none; }
.plus { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; transition: transform .2s; }
.disclosure[open] .plus { transform: rotate(45deg); }
.disclosure p { margin: 0 0 18px; color: var(--text-2); max-width: 46ch; }
#connect .disclosure { border-bottom: 0; }

.alt { padding-bottom: 8px; }
.alt-app { padding: 14px 0; border-top: 1px solid var(--line); }
.alt-app:first-child { border-top: 0; padding-top: 0; }
.alt-app h4 { margin: 0; font-size: 15px; font-weight: 550; }
.alt-app .actions { margin-top: 10px; }
.alt-app .btn { height: 38px; padding: 0 14px; font-size: 13px; }

/* Поле ссылки */
.field {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
}
.field code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--text-2);
}
.field-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 7px; background: #1d1d1f; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
}
.field-btn:hover { background: #262628; }
.field-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.qr { margin-top: 18px; }
.qr img { display: block; width: 216px; height: 216px; padding: 14px; background: #fff; border-radius: 10px; image-rendering: pixelated; }

/* Локации */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.rows li:first-child { border-top: 1px solid var(--line); }
.cc {
  flex: none; width: 34px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2);
}
.rows .name { flex: 1; min-width: 0; }
.rows .tag { font-size: 12px; color: var(--text-3); }

/* Подвал */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
}
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.foot nav a:hover { color: var(--text); }

/* Уведомление */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: #0b0b0c;
  font-size: 14px; font-weight: 550; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Загрузка */
.ph { background: #1b1b1d; border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; }
.ph-s { width: 30%; height: 12px; }
.ph-xl { width: 45%; height: 72px; margin: 28px 0 22px; }
.ph-m { width: 100%; height: 2px; }
@keyframes pulse { 50% { opacity: .5; } }

.error-title { margin: 20px 0 0; font-size: 26px; font-weight: 550; letter-spacing: -0.03em; }
#error .btn { margin-top: 24px; }

@media (min-width: 600px) {
  .page { padding-top: 24px; }
  .hero { padding: 32px; }
  .days-num { font-size: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Кнопки в главном блоке */
.hero-actions { display: grid; gap: 8px; }

/* Выбор приложения */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 20px 0 6px; }
.app {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent;
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.app:hover { border-color: #47474b; }
.app[aria-checked="true"] { border-color: var(--text); background: var(--surface); }
.app-name { font-size: 14px; font-weight: 550; }
.app-note { font-size: 12px; color: var(--text-3); }
.app[aria-checked="true"] .app-note { color: var(--text-2); }

/* Короткий режим */
.configured { padding: 20px 0 4px; }
.configured-title { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 550; }
.configured .dot { background: var(--ok); }

/* Статус локаций */
.rows .state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.rows .state .dot { background: var(--ok); }
.rows li.off .name { color: var(--text-3); }
.rows li.off .cc { color: var(--text-3); border-color: var(--line); }
.rows li.off .state .dot { background: var(--text-3); }

/* ── Светлая тема ─────────────────────────────────────── */
:root.light {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --line: #e7e7e3;
  --line-strong: #d9d9d4;
  --text: #111112;
  --text-2: #62625e;
  --text-3: #9a9a95;
  --ok: #2f9a5b;
  --warn: #b7801b;
  --bad: #cf4a3f;
  color-scheme: light;
}
:root.light .btn-primary { color: #fff; }
:root.light .btn-primary:hover { background: #000; border-color: #000; }
:root.light .btn:hover { background: #efefec; border-color: #c9c9c4; }
:root.light .btn-primary:hover { background: #000; }
:root.light .field-btn { background: #efefec; }
:root.light .field-btn:hover { background: #e6e6e2; }
:root.light .ph { background: #e9e9e5; }
:root.light .toast { color: #fff; }
:root.light .app[aria-checked="true"] { background: #fff; }

/* ── Появление ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Окно снизу (sheet) ───────────────────────────────── */
.sheet-root { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.sheet-root.open { visibility: visible; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .3s ease;
}
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .42s cubic-bezier(.22,.8,.2,1);
}
.sheet-root.open .sheet { transform: none; }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sheet-close {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
}
.sheet-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sheet-step { animation: reveal .35s cubic-bezier(.2,.7,.2,1) both; }
.sheet .label { margin: 22px 0 10px; }
.sheet .label:first-child { margin-top: 0; }

@media (min-width: 600px) {
  .sheet { bottom: 50%; border-radius: 18px; border-bottom: 1px solid var(--line);
           transform: translateY(calc(50% + 24px)); opacity: 0; transition: transform .38s cubic-bezier(.22,.8,.2,1), opacity .25s; }
  .sheet-root.open .sheet { transform: translateY(50%); opacity: 1; }
  .sheet-grip { display: none; }
}

/* Тарифы */
.plans { display: grid; gap: 8px; }
.plan {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; text-align: left;
  width: 100%; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.plan:active { transform: scale(.99); }
.plan[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.plan[disabled] { cursor: default; opacity: .55; }
.plan-name { font-weight: 550; font-size: 16px; }
.plan-price { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; text-align: right; }
.plan-meta { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
.plan-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 11px; font-weight: 600; color: var(--text-2); vertical-align: 2px; }

/* Способы оплаты */
.methods { display: grid; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; transition: border-color .15s;
}
.method[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.method-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); }
.method-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.method-name { font-weight: 550; }
.method-note { font-size: 13px; color: var(--text-2); }
.radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: border .15s; }
[aria-checked="true"] > .radio { border: 5px solid var(--text); }

.summary { margin: 22px 0 16px; }
.summary > div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.summary > div.total { color: var(--text); font-weight: 600; font-size: 17px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.sheet .btn-block { margin-top: 4px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Результат */
.result { text-align: center; padding: 18px 0 6px; }
.result h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.result p { color: var(--text-2); margin: 8px auto 22px; max-width: 34ch; }
.check { width: 64px; height: 64px; margin: 0 auto; }
.check circle { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.check path {
  fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s cubic-bezier(.6,.1,.3,1) forwards;
}
.check.pending circle { stroke: var(--text); stroke-dasharray: 60 200; animation: spin 1.1s linear infinite; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* QR в окне */
.qr-wrap { display: grid; place-items: center; padding: 6px 0 4px; }
.qr-wrap img { width: 240px; height: 240px; padding: 16px; background: #fff; border-radius: 14px; image-rendering: pixelated; }

/* Устройства */
.rows .dev { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rows .dev-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .dev-meta { font-size: 12px; color: var(--text-3); }
.unbind {
  flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.unbind:hover { color: var(--text); border-color: var(--text-3); }
.unbind.confirm { color: var(--bad); border-color: var(--bad); }
.rows li.leaving { opacity: 0; transform: translateX(12px); transition: opacity .25s, transform .25s; }

/* ── Окно покупки ─────────────────────────────────────── */
.modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 22px;
  border-radius: 11px; background: var(--surface); border: 1px solid var(--line);
}
.mode {
  height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.mode[aria-selected="true"] { background: var(--text); color: var(--bg); }

.stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
}
.step-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  transition: opacity .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.step-btn:active { background: var(--line); }
.step-btn[disabled] { opacity: .3; cursor: default; }
.step-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.step-value { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.step-num { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.step-unit { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fine.tight { margin-top: 8px; }
.facts.compact { margin: 0; }
.muted { color: var(--text-3); }
.sheet .notice { margin-top: 18px; }

/* ══ Мини-приложение ══════════════════════════════════════ */
.top .wordmark { background: none; border: 0; color: var(--text); padding: 0; cursor: pointer; font-family: inherit; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer;
}
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.chip[hidden] { display: none; }

.screen { display: grid; gap: 14px; animation: screen-in .38s cubic-bezier(.2,.7,.2,1) both; }
.screen.back { animation-name: screen-back; }
@keyframes screen-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes screen-back { from { opacity: 0; transform: translateX(-14px); } }
.ph-card { height: 148px; border-radius: var(--radius); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 4px 2px; }
.section-title .label { margin: 0; }

/* Карточка подписки */
.sub-card {
  display: block; width: 100%; text-align: left; padding: 20px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  font: inherit; transition: border-color .15s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.sub-card:active { transform: scale(.99); }
.sub-card:hover { border-color: var(--line-strong); }
.sub-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sub-card-name { font-weight: 550; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-card-days { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.sub-card-days b { font-size: 44px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.sub-card-days span { color: var(--text-2); }
.sub-card-meta { display: flex; gap: 16px; margin-top: 12px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; }
.sub-card .meter { margin: 14px 0 0; }

/* Пустое состояние */
.empty { text-align: center; padding: 36px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.empty p { color: var(--text-2); margin: 10px auto 22px; max-width: 32ch; }
.empty .btn { width: 100%; }
.empty .btn + .btn { margin-top: 8px; }

/* Список действий */
.menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:first-child { border-top: 0; }
.menu-item:active { background: var(--line); }
.menu-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); }
.menu-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-name { font-weight: 550; }
.menu-note { font-size: 13px; color: var(--text-2); }
.chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* История платежей */
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-row:first-child { border-top: 1px solid var(--line); }
.pay-row .left { display: flex; flex-direction: column; min-width: 0; }
.pay-row .title { font-weight: 500; }
.pay-row .date { font-size: 12px; color: var(--text-3); }
.pay-row .amount { font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.pay-row .amount.muted { color: var(--text-3); font-weight: 500; }

/* Пополнение */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-btn {
  height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer;
}
.amount-btn[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.input {
  width: 100%; height: 48px; margin-top: 8px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums;
}
.input:focus { outline: none; border-color: var(--text); }

.hero .hero-actions { margin-top: 4px; }
.balance-big { font-size: 48px; font-weight: 500; letter-spacing: -0.05em; margin: 18px 0 2px; font-variant-numeric: tabular-nums; }
.gate { text-align: center; padding: 60px 20px; }
.gate h2 { font-size: 22px; margin: 0 0 8px; }
.gate p { color: var(--text-2); margin: 0 auto 22px; max-width: 30ch; }
.btn-ico { display: inline-grid; place-items: center; }
.btn-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet .modes .mode { font-size: 12px; }

/* ── Главная v2 ───────────────────────────────────────── */
.alert-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--warn); border-radius: var(--radius);
}
.alert-card.bad { border-left-color: var(--bad); }
.alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alert-text b { font-weight: 600; }
.alert-text span { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.alert-card .btn { height: 38px; padding: 0 14px; font-size: 13px; flex: none; }

.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.list-head .label { margin: 0; }
.list-note { font-size: 12px; color: var(--text-3); }
.link-btn.small { margin: 0; font-size: 13px; text-decoration: none; color: var(--text-2); }
.link-btn.small:hover { color: var(--text); }

.sub-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.list-head + .sub-row { border-top: 0; }
.sheet .list-card .sub-row:first-child { border-top: 0; }
.sub-row:active { background: var(--line); }
.sub-row > .dot { flex: none; background: var(--ok); }
.sub-row > .dot.warn { background: var(--warn); }
.sub-row > .dot.bad { background: var(--bad); }
.sub-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sub-row-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-row-meta { font-size: 12px; color: var(--text-3); }
.sub-row-days { display: flex; align-items: baseline; gap: 3px; flex: none; font-variant-numeric: tabular-nums; }
.sub-row-days b { font-size: 20px; font-weight: 550; letter-spacing: -0.03em; }
.sub-row-days span { font-size: 12px; color: var(--text-3); }
.sub-row-days.warn b { color: var(--warn); }
.sub-row-days.bad b { color: var(--bad); }
.list-more {
  width: 100%; padding: 13px; border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
}

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; transition: transform .12s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: scale(.96); }
.tile-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-strong); }
.tile-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-label { font-size: 12px; font-weight: 550; }
.tile-badge { position: absolute; top: 8px; right: 10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.server-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 18px 16px; }
.server-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 13px; }
.server-chip .dot { background: var(--ok); }
.server-chip.off { color: var(--text-3); }
.server-chip.off .dot { background: var(--text-3); }

.note-row {
  display: flex; gap: 12px; width: 100%; padding: 14px 18px; text-align: left; border: 0; border-top: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.note-row:first-child { border-top: 0; }
.note-row > .dot { margin-top: 8px; flex: none; background: transparent; }
.note-row.unread > .dot { background: var(--text); }
.note-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.note-text b { font-weight: 550; }
.note-text span { font-size: 14px; color: var(--text-2); }
.note-text small { font-size: 12px; color: var(--text-3); }

.key-name { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); }
.key-name-ico { display: inline-grid; }
.key-name-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sheet .input { margin-top: 14px; }

/* ── Кабинет: развёрнутая подписка ─────────────────────── */
.hero.cabinet { padding: 20px; }
.switcher {
  display: inline-flex; align-items: center; gap: 8px; max-width: 70%; padding: 6px 10px 6px 10px; margin: -6px 0 0 -10px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font: inherit; cursor: pointer;
  transition: background .15s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.switcher:hover, .switcher:active { background: var(--bg); border-color: var(--line); }
.switcher > .dot { flex: none; background: var(--ok); }
.switcher > .dot.warn { background: var(--warn); }
.switcher > .dot.bad { background: var(--bad); }
.switcher-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-count { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.chev.down { width: 14px; height: 14px; stroke: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 16px; }
.stat {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.stat-value { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter.mini { height: 2px; margin: 8px 0 0; }

.qa-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer;
  transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent;
}
.qa:hover, .qa:active { background: var(--bg); color: var(--text); }
.qa-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); }
.qa-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sub-row.current { background: var(--bg); }
.sub-row.current .sub-row-name::after { content: " · на главной"; color: var(--text-3); font-weight: 500; font-size: 12px; }
.stats { grid-template-columns: 1fr 1fr; }
.stat { padding: 14px; }
.stat-value { font-size: 22px; }
.meter.mini i.muted { background: var(--line-strong); }

/* ── Пополнение Steam ──────────────────────────────────── */
.steam-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px 16px 18px;
  border-radius: var(--radius); border: 1px solid #2a3c55; text-align: left; cursor: pointer; font: inherit; color: #eef3fb;
  background: #121c2b; -webkit-tap-highlight-color: transparent; transition: transform .12s;
}
.steam-banner::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); box-shadow: 0 0 0 28px rgba(255,255,255,.025);
}
.steam-banner:active { transform: scale(.99); }
.steam-banner-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #1b2a40; border: 1px solid #2f4664; }
.steam-banner-icon svg { width: 24px; height: 24px; fill: none; stroke: #cfe0f5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.steam-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.steam-banner-text b { font-weight: 600; font-size: 16px; }
.steam-banner-text span { font-size: 12px; color: #9fb3cc; }
.steam-banner-cta { position: relative; z-index: 1; flex: none; padding: 8px 12px; border-radius: 9px; background: #eef3fb; color: #121c2b; font-size: 13px; font-weight: 600; }
:root.light .steam-banner { background: #e9f0f8; border-color: #c9d7e8; color: #13202f; }
:root.light .steam-banner-icon { background: #fff; border-color: #c9d7e8; }
:root.light .steam-banner-icon svg { stroke: #13202f; }
:root.light .steam-banner-text span { color: #4f6378; }
:root.light .steam-banner-cta { background: #13202f; color: #fff; }

/* ══ v5: премиальная доводка ═════════════════════════════ */
:root { --radius: 18px; }
.hero, .list-card, .menu, .empty, .alert-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
:root.light .hero, :root.light .list-card, :root.light .menu { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.menu-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.actions.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions.two .btn { padding: 0 10px; font-size: 13px; }

/* Оплата */
.pay-block { margin-top: 6px; }
.bal-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 22px 0 4px; padding: 14px 16px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .2s; -webkit-tap-highlight-color: transparent;
}
.bal-toggle.on { border-color: var(--text); }
.bal-toggle[disabled] { cursor: default; opacity: .85; }
.bal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bal-text b { font-weight: 600; }
.bal-text span { font-size: 13px; color: var(--text-2); }
.bal-amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.switch { width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.3,.7,.2,1); }
.bal-toggle.on .switch { background: var(--ok); }
.bal-toggle.on .switch i { transform: translateX(18px); }
.methods.dimmed { opacity: .4; pointer-events: none; }
.pay-logo { width: 44px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pay-logo img { height: 22px; width: 22px; object-fit: contain; }
.pay-logo.wide img { width: 36px; height: 14px; }
.btn-pay { height: 54px; font-size: 16px; border-radius: 14px; }

/* Поле с подсказкой-статусом */
.field-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.field-hint.ok { color: var(--ok); }
.field-hint.ok::before { content: "✓ "; }
.field-hint.bad { color: var(--bad); }
.accepts { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; font-size: 12px; color: var(--text-3); }
.accepts-logos { display: inline-flex; gap: 6px; }
.accepts-logos img { height: 20px; width: 28px; object-fit: contain; padding: 4px 6px; background: #fff; border-radius: 5px; }
.accepts-logos img.wide { width: 40px; }

/* Баннер Steam: фирменные цвета, настоящий логотип */
.steam-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 16px 18px 18px; border: 1px solid #2a475e; border-radius: var(--radius);
  background: #171a21; color: #fff; text-align: left; font: inherit; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .2s;
}
.steam-banner:active { transform: scale(.985); }
.steam-banner:hover { border-color: #66c0f4; }
.steam-banner::after { display: none; }
.steam-watermark { position: absolute; right: -34px; top: 50%; width: 150px; height: 150px; transform: translateY(-50%); opacity: .06; pointer-events: none; }
.steam-logo { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1b2838; border: 1px solid #2a475e; position: relative; z-index: 1; }
.steam-logo img { width: 26px; height: 26px; }
.steam-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.steam-banner-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.steam-banner-text span { font-size: 13px; color: #8f98a0; }
.steam-arrow { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #66c0f4; position: relative; z-index: 1; }
.steam-arrow svg { width: 14px; height: 14px; fill: none; stroke: #171a21; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root.light .steam-banner { background: #171a21; color: #fff; border-color: #2a475e; }
:root.light .steam-banner-text span { color: #8f98a0; }

/* Пробный период */
.trial-card {
  position: relative; overflow: hidden;
  padding: 22px 20px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.trial-top { display: flex; align-items: center; justify-content: space-between; }
.trial-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  color: var(--ok); background: rgba(111, 191, 139, .1); border: 1px solid rgba(111, 191, 139, .25);
}
.trial-title { margin: 16px 0 0; font-size: 26px; line-height: 1.12; font-weight: 650; letter-spacing: -0.035em; max-width: 14ch; }
.trial-sub { margin: 10px 0 18px; color: var(--text-2); font-size: 14px; max-width: 34ch; }
.trial-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.trial-fact { padding: 12px 12px 10px; display: flex; flex-direction: column; }
.trial-fact + .trial-fact { border-left: 1px solid var(--line); }
.trial-fact b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trial-fact span { font-size: 12px; color: var(--text-2); }
.trial-link {
  display: block; width: 100%; margin-top: 6px; padding: 12px 0 4px;
  background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer;
}
.trial-link:active { color: var(--text); }
.steps li.done .step-n { color: var(--ok); font-weight: 600; }
.steps li.done h3 { color: var(--text-2); }
.form-error { color: var(--bad); font-size: 14px; margin: 14px 0 0; }

/* Незавершённая оплата: можно скрыть */
.alert-card { position: relative; }
.alert-close {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer;
}
.alert-close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.alert-close:active { background: var(--line); }

/* Уведомления: действия */
.title-actions { display: inline-flex; gap: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.link-btn:active { color: var(--text); }
.link-btn.danger { color: var(--bad); }
.note-row { cursor: pointer; }
.note-del {
  flex: none; align-self: flex-start; width: 28px; height: 28px; margin: -2px -6px 0 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer;
}
.note-del svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.note-del:active { background: var(--line); color: var(--text); }

/* Канал */
.channel-gate { text-align: center; padding-top: 48px; }
.gate-logo { width: 56px; height: 56px; margin: 0 auto 22px; display: block; }
.channel-gate h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; max-width: 16ch; margin: 0 auto; }
.channel-gate p { color: var(--text-2); max-width: 32ch; margin: 12px auto 0; }
.gate-actions { display: grid; gap: 8px; margin-top: 28px; }
.gate-status { font-size: 14px; min-height: 20px; color: var(--warn) !important; }
.alert-card:has(.alert-close) { padding-right: 40px; }

/* Ожидание подключения */
.conn-rows { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; }
.conn-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, currentColor 6%, transparent); text-align: left; }
.conn-ic { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .55; animation: spin .8s linear infinite; }
.conn-row.ok .conn-ic { animation: none; opacity: 1; border: 0; background: #33c27f; position: relative; }
.conn-row.ok .conn-ic::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.conn-txt { display: grid; }
.conn-title { font-weight: 600; }
.conn-sub { font-size: 13px; opacity: .6; }

/* Партнёрская программа — сдержанный акцент «шампань», живая схема сети */
:root { --gold: #d6c29b; --gold-2: #a8936c; --gold-dim: rgba(214, 194, 155, .14); }
.pi { display: inline-grid; place-items: center; flex: none; }
.pi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pbanner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 12px;
  min-height: 104px; padding: 16px 12px 16px 18px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.3,.7,.2,1), border-color .25s;
}
.pbanner::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--gold); }
.pbanner:active { transform: scale(.985); }
.pbanner:hover { border-color: #3a3a3e; }
.pbanner-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.pbanner-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pbanner-title { font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.pbanner-title b { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.pbanner-title span { color: var(--text); font-weight: 500; }
.pbanner-sub { font-size: 13px; color: var(--text-2); }
.pbanner-art { width: 112px; height: 88px; flex: none; margin-right: -4px; }
.pbanner-go { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); }
.pbanner-go svg { width: 14px; height: 14px; }

.net { width: 100%; height: 100%; display: block; overflow: visible; }
.net-l1 { stroke: rgba(214, 194, 155, .38); stroke-width: .8; fill: none; }
.net-l2 { stroke: rgba(242, 242, 240, .12); stroke-width: .7; fill: none; }
.net .net-n2 { fill: rgba(242, 242, 240, .28); }
.net .net-n1 { fill: var(--bg); stroke: rgba(214, 194, 155, .55); stroke-width: 1; }
.net .net-n1.joined { fill: rgba(214, 194, 155, .35); }
.net .net-n1.paid { fill: var(--gold); stroke: var(--gold); }
.net .net-core { fill: var(--gold); }
.net .net-halo { fill: none; stroke: var(--gold); stroke-width: 1; }
.net .net-pulse { fill: #f4e7c8; }
.net .net-you { font: 600 8.5px Inter, sans-serif; letter-spacing: .08em; fill: #1a160f; text-anchor: middle; }
.net:not(.compact) .net-l1 { stroke-width: 1; }
@media (prefers-reduced-motion: reduce) { .net .net-pulse, .net .net-halo { display: none; } }

.phero { position: relative; padding: 22px 20px 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); overflow: hidden; }
.phero::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: var(--gold); opacity: .55; }
.phero .label { color: var(--gold); }
.phero-sum { margin: 6px 0 0; font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.phero-cap { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.phero-net { height: 190px; margin: 4px -8px 2px; }
.phero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; }
.pstat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 4px; }
.pstat + .pstat { border-left: 1px solid var(--line); padding-left: 14px; }
.pstat b { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat span { font-size: 12px; color: var(--text-2); }

.pblock { margin-top: 26px; }
.pblock > .label { margin: 0 4px 10px; }
.plink { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.plink-text { flex: 1; min-width: 0; font-size: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plink-copy { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.plink-copy:active { background: var(--line); color: var(--text); }
.pactions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.pactions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; }

.plevels { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.plevel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.plevel + .plevel { border-top: 1px solid var(--line); }
.plevel-i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.plevel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.plevel-name { font-size: 15px; }
.plevel-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.plevel-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); transform-origin: left; animation: pgrow .9s cubic-bezier(.3,.7,.2,1) both; }
.plevel-pct { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
@keyframes pgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pcalc { padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pcalc > .label { margin: 0 0 8px; }
.pcalc-out { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.pcalc-sum { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--gold); }
.pcalc-cap { font-size: 13px; color: var(--text-2); }
.prange { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 6px 0 18px; border-radius: 3px; outline: none;
  background: linear-gradient(to right, var(--gold) var(--p, 20%), var(--line-strong) var(--p, 20%)); }
.prange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.prange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); }
.pcalc .modes { margin-bottom: 4px; }

.pmethods { display: grid; gap: 8px; }
.pmethod { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.pmethod .pi svg { width: 22px; height: 22px; }
.pmethod[aria-checked="true"] { border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 1px var(--gold) inset; }
.pmethod[aria-checked="true"] .pi { color: var(--gold); }
.pnote { font-size: 13px; color: var(--text-2); margin: 10px 4px; }
#ptn-pay .amount-line { margin: 4px 0 8px; }
#ptn-pay .btn-pay { margin-top: 4px; }

.plist { border-top: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.pavatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-dim); color: var(--gold); font-size: 14px; font-weight: 600; }
.prow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-sub { font-size: 12px; color: var(--text-3); }
.ptag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--text-3); border: 1px solid var(--line); }
.ptag.on { color: var(--gold); border-color: rgba(214, 194, 155, .35); }
.ptag .pi svg { width: 12px; height: 12px; stroke-width: 2.2; }
.pdir { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text-3); }
.pdir.in { color: var(--gold); border-color: rgba(214, 194, 155, .35); }
.pdir svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pamt { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.pamt.in { color: var(--text); }
.pfine { font-size: 12px; color: var(--text-3); text-align: center; margin: 22px 12px 8px; line-height: 1.5; }
.phero, .pblock, .pbanner { min-width: 0; max-width: 100%; box-sizing: border-box; }
.phero-net { overflow: hidden; }
.phero-net .net { width: 100%; height: 100%; max-width: 100%; }
.pbanner-kicker { white-space: nowrap; font-size: 11px; letter-spacing: .1em; }
.pbanner-art { width: 96px; height: 80px; }
.amount-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 4px 0 8px; }
.amount-line .input { margin: 0; min-width: 0; }
.amount-line .btn { height: auto; padding: 0 20px; }
.pactions { grid-template-columns: 1fr 1fr; }
.pactions .btn { white-space: nowrap; padding: 0 10px; }

/* Единый стиль баннеров: акцент через --acc */
.pbanner { --acc: var(--gold); }
.pbanner::before { background: var(--acc); }
.pbanner-kicker { color: var(--acc); }
.pbanner.steam { --acc: #66c0f4; }
.pbanner.steam .pbanner-title span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sart { width: 100%; height: 100%; display: block; overflow: visible; }
.sart-ring { fill: none; stroke: rgba(102, 192, 244, .28); stroke-width: 1; stroke-dasharray: 2 4; transform-origin: 48px 40px; animation: sspin 24s linear infinite; }
.sart-disc { fill: #1b2838; stroke: rgba(102, 192, 244, .45); stroke-width: 1; }
.sart-coin { fill: #66c0f4; }
@keyframes sspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sart-ring { animation: none; } .sart-coin { display: none; } }

/* Калькулятор дохода */
.pcalc-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.pcalc-qt { font-size: 15px; color: var(--text); }
.pstep { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.pstep-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.pstep-btn:active { background: var(--line); }
.pstep-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pstep-val { min-width: 44px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.pchip { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.pchip[aria-checked="true"] { border-color: var(--gold); color: var(--text); }
.pcalc-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.pcalc-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pcalc-row span { color: var(--text-2); }
.pcalc-row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pcalc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 2px; }
.pcalc-total span { font-size: 15px; }
.pcalc-total b { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Steam: карточка-превью, поле со статусом, история */
.scard { position: relative; overflow: hidden; padding: 16px 18px 18px; margin-bottom: 18px; border-radius: 18px; background: #171d25; border: 1px solid #2a3a4c; color: #fff; }
.scard::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: #66c0f4; opacity: .6; }
.scard-mark { position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; opacity: .05; pointer-events: none; }
.scard-top { display: flex; align-items: center; gap: 10px; }
.scard-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #1b2838; border: 1px solid #2a475e; }
.scard-logo img { width: 17px; height: 17px; }
.scard-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #66c0f4; }
.scard-cap { margin: 18px 0 2px; font-size: 13px; color: #8f98a0; }
.scard-sum { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.scard-login { margin: 8px 0 0; font-size: 13px; color: #c7d5e0; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sfield { position: relative; }
.sfield .input { padding-right: 46px; }
.sfield-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.sfield-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sfield-icon.ok { background: rgba(111, 191, 139, .16); color: var(--ok); }
.sfield-icon.bad { background: rgba(226, 103, 92, .16); color: var(--bad); }
.sfield-icon .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-3); border-right-color: transparent; animation: spin .7s linear infinite; }
.sdir.ok { color: #66c0f4; border-color: rgba(102, 192, 244, .35); }
.sdir.warn { color: var(--warn); border-color: rgba(217, 164, 65, .35); }
.sdir.bad { color: var(--bad); border-color: rgba(226, 103, 92, .3); }
.field-hint.ok::before { content: none; }

/* ── Главная: плитки ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  --acc: var(--gold);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 14px 14px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.3,.7,.2,1), border-color .25s;
}
.tile::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--acc); opacity: .7; }
.tile:active { transform: scale(.97); }
.tile-steam { --acc: #66c0f4; }
.tile-art { width: 100%; height: 58px; margin-bottom: 8px; display: flex; align-items: center; }
.tile-art svg { height: 100%; width: auto; max-width: 100%; }
.tile-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tile-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── Локации с флагами ── */
.loc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 14px 6px; }
.loc-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.loc-head .label { margin: 0; }
.loc-note { font-size: 12px; color: var(--text-3); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.loc-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); min-width: 0; }
.loc-grid > .loc-item:nth-child(-n+2) { border-top: 0; }
.flag { width: 30px; height: 20px; flex: none; display: block; }
.flag svg { width: 100%; height: 100%; display: block; }
.loc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.loc-name b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-name span { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 191, 139, .12); }
.loc-item.off { opacity: .55; }
.loc-item.off .loc-dot { background: var(--text-3); box-shadow: none; }

/* ── Меню без подписей ── */
.menu.compact .menu-item { min-height: 52px; padding-top: 0; padding-bottom: 0; }
.menu-value { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-left: auto; }

/* ── Карточка подписки: показатели и график ── */
.kpis { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.kpi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); padding-left: 16px; }
.kpi-label { font-size: 12px; color: var(--text-3); }
.kpi-value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-value.warn { color: var(--warn); }
.kpi-sub { font-size: 12px; color: var(--text-2); }
.kpi-pips { display: flex; gap: 3px; margin-top: 4px; }
.kpi-pips i { width: 14px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.kpi-pips i.on { background: var(--text); }
.tchart { margin-top: 16px; }
.tchart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.tchart-total { font-size: 13px; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.tchart-bars { height: 46px; display: flex; align-items: flex-end; gap: 4px; }
.tchart-bars i { flex: 1; height: var(--h, 6%); min-height: 3px; border-radius: 3px; background: rgba(242, 242, 240, .2); transform-origin: bottom; animation: tbar .6s cubic-bezier(.3,.7,.2,1) both; }
.tchart-bars i.today { background: var(--text); }
.tchart-bars i.none { background: transparent; border: 1px dashed var(--line-strong); height: 6px; }
.tchart-bars i.ph-bar { height: 30%; background: var(--line); animation: pulse 1.4s ease-in-out infinite; }
@keyframes tbar { from { transform: scaleY(0); } }

/* ── Помощь ── */
.diag { padding: 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; }
.diag > .btn, .diag-result { grid-column: 1 / -1; }
.diag-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text); }
.diag-icon svg { width: 22px; height: 22px; }
.diag-text { display: flex; flex-direction: column; gap: 2px; align-self: center; }
.diag-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.diag-text span { font-size: 13px; color: var(--text-2); }
.diag-result:empty { display: none; }
.diag-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.diag-row b { display: block; font-weight: 500; }
.diag-row span { font-size: 12px; color: var(--text-2); }
.diag-st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.diag-st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.diag-row.ok .diag-st { background: rgba(111, 191, 139, .14); color: var(--ok); }
.diag-row.warn .diag-st { background: rgba(217, 164, 65, .14); color: var(--warn); }
.diag-row.bad .diag-st { background: rgba(226, 103, 92, .14); color: var(--bad); }
.diag-act { height: 34px; padding: 0 12px; font-size: 13px; }
.searchbox { position: relative; margin-bottom: 6px; }
.searchbox .input { padding-left: 42px; margin: 0; }
.searchbox-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.faq .disclosure:first-child { border-top: 0; }
.help-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.help-link { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.help-link > .pi { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); }
.help-link b { display: block; font-weight: 600; }
.help-link span span { font-size: 12px; color: var(--text-2); }

/* ── Онбординг ── */
.onb { position: fixed; inset: 0; z-index: 60; background: rgba(11, 11, 12, .97); display: grid; place-items: center; padding: 24px;
  animation: onb-in .3s ease both; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.onb.out { animation: onb-out .28s ease both; }
@keyframes onb-in { from { opacity: 0; } }
@keyframes onb-out { to { opacity: 0; } }
.onb-card { position: relative; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: screen-in .4s cubic-bezier(.2,.7,.2,1) both; }
.onb-skip { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; padding: 10px; cursor: pointer; }
.onb-art { width: 220px; height: 150px; margin-bottom: 26px; display: grid; place-items: center; }
.onb-art svg { width: 100%; height: 100%; overflow: visible; }
.onb-art > svg:not(.net) { fill: none; stroke: rgba(242, 242, 240, .7); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onb-art .onb-acc { stroke: var(--gold); stroke-width: 2.6; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1s .25s ease forwards; }
.onb-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.onb-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .3s, background .3s; }
.onb-dots i.on { width: 20px; background: var(--text); }
.onb-title { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.onb-text { margin: 10px 0 28px; color: var(--text-2); font-size: 15px; line-height: 1.5; max-width: 32ch; }
.loc-grid { gap: 0 10px; }
.loc-item { gap: 9px; }
.loc-name b { font-size: 13px; }
.loc-st { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.loc-st .loc-dot { width: 5px; height: 5px; box-shadow: none; }
.tchart { margin: 16px 0 20px; }
.tchart-bars i.none { border: 0; height: 3px; min-height: 3px; background: var(--line-strong); opacity: .6; }
.flag { width: 28px; height: 19px; }
.onb-skip { z-index: 2; }
.tchart-empty { align-self: center; width: 100%; text-align: center; font-size: 12px; color: var(--text-3); }

/* Плитки: без анимаций — крупный полупрозрачный знак на всю плитку */
.tile { overflow: hidden; min-height: 132px; justify-content: flex-end; padding: 14px 15px 15px; }
.tile-art { display: none; }
.tile-mark { position: absolute; right: -18%; bottom: -26%; width: 92%; height: auto; opacity: .09; pointer-events: none; }
.tile-mark.rub { right: -6%; bottom: -16%; width: 74%; }
.tile-mark.rub svg { width: 100%; height: auto; display: block; fill: none; stroke: var(--gold); stroke-width: 15; stroke-linecap: butt; stroke-linejoin: miter; opacity: 1.35; }
.tile-steam .tile-mark { opacity: .08; }
.tile-badge { position: absolute; left: 15px; top: 15px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02); }
.tile-badge img { width: 19px; height: 19px; }
.tile-badge-rub svg { width: 15px; height: 17px; display: block; fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: butt; stroke-linejoin: miter; }
.tile-earn .tile-badge { border-color: rgba(214, 194, 155, .35); }
.tile-steam .tile-badge { border-color: rgba(102, 192, 244, .35); }
.tile-title, .tile-sub { position: relative; z-index: 1; }


/* ── Премиальная основа ─────────────────────────────────── */
/* 10. Глубина: фон → карточка → лист снизу; тонкий внутренний блик сверху */
:root { --surface-2: #17171a; --hi: inset 0 1px 0 rgba(255, 255, 255, .035); }
body { background: var(--bg); }
.hero, .list-card, .loc, .menu, .tile, .pcalc, .plevels, .phero, .diag, .plink, .alert-card, .trial-card, .empty, .scard, .pbanner, .help-link {
  box-shadow: var(--hi);
}
.sheet { background: var(--surface-2); border-color: var(--line-strong); box-shadow: 0 -12px 40px rgba(0, 0, 0, .45), var(--hi); }
.sheet .input, .sheet .method, .sheet .bal-toggle, .sheet .amount-btn { background: #1b1b1e; }
.sheet-backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* 1. Единый отклик на касание */
.btn, .menu-item, .qa, .tile, .mode, .pmethod, .amount-btn, .pchip, .help-link, .plink-copy, .switcher, .chip, .sub-row, .method, .bal-toggle,
.pstep-btn, .tab, .note-row, .loc-item, .app {
  transition: transform .16s cubic-bezier(.3,.7,.2,1), background-color .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:not(:disabled):active, .menu-item:active, .qa:active, .mode:active, .pmethod:active, .amount-btn:active, .pchip:active, .help-link:active,
.plink-copy:active, .switcher:active, .chip:active, .sub-row:active, .method:active, .bal-toggle:active, .pstep-btn:active, .tab:active,
.note-row:active, .app:active { transform: scale(.97); }
.tile:active { transform: scale(.96); }

/* 8. Иконки — одна толщина и одна геометрия во всём приложении */
svg [class], .ico svg, .qa-icon svg, .menu-item svg, .pi svg, .diag-st svg, .pdir svg, .sfield-icon svg { vector-effect: none; }
.ico svg, .qa-icon svg, .menu-item > svg, .menu-item .ico svg, .pi svg, .help-link svg, .chip svg {
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Панель вкладок ── */
.page { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
body.no-tabs .page { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
body.no-tabs .tabbar { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0 auto; max-width: 560px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 15, .86); border-top: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0 5px; border: 0; background: none;
  color: var(--text-3); font: inherit; font-size: 11px; letter-spacing: .01em; cursor: pointer; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab svg.tab-rub { width: 20px; height: 23px; stroke-width: 11; stroke-linecap: butt; stroke-linejoin: miter; }
.tab.on { color: var(--text); }
.tab.on svg { stroke-width: 1.9; }
.tab.on svg.tab-rub { stroke: var(--gold); stroke-width: 12; }
.subs-list .sub-row:first-child { border-top: 0; }

/* ── 6. Пустые состояния ── */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 16px 22px; }
.empty-art { width: 170px; height: 116px; margin-bottom: 14px; }
.empty-art svg { width: 100%; height: 100%; fill: none; stroke: rgba(242, 242, 240, .55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.empty-art .onb-acc { stroke: var(--gold); stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s .2s ease forwards; }
.empty-state h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.empty-state p { margin: 8px 0 18px; color: var(--text-2); font-size: 14px; max-width: 30ch; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state .btn { min-width: 200px; }

/* ── 5. Оплата прошла ── */
.success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 4px; }
.success-mark { width: 92px; height: 92px; margin-bottom: 18px; }
.success-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sm-ring { stroke: var(--line-strong); stroke-width: 2; }
.sm-draw { stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); transform-origin: 48px 48px; animation: draw .7s .05s cubic-bezier(.4,0,.2,1) forwards; }
.sm-check { stroke: var(--ok); stroke-width: 4; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .55s cubic-bezier(.3,.7,.2,1) forwards; }
.success-title { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.success-rows { width: 100%; margin: 20px 0 6px; border-top: 1px solid var(--line); }
.success-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.success-rows span { color: var(--text-2); }
.success-rows b { font-weight: 600; text-align: right; }
.success-note { margin: 12px 0 22px; color: var(--text-2); font-size: 13px; }

/* ── 7. Заставка ── */
.splash { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: onb-in .4s ease both; }
.splash-logo { width: 64px; height: 64px; border-radius: 18px; animation: splash-in .7s cubic-bezier(.2,.7,.2,1) both; }
.splash-word { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; animation: splash-in .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.splash-line { width: 72px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.splash-line i { display: block; width: 40%; height: 100%; background: var(--text); border-radius: 2px; animation: splash-run 1.1s ease-in-out infinite; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes splash-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
body.no-tabs .top { visibility: hidden; }
.tab { letter-spacing: 0; }

/* Калькулятор: ввод количества и три периода */
.pcount-input { width: 64px; height: 40px; border: 0; background: transparent; color: var(--text); text-align: center;
  font: inherit; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.pchips { grid-template-columns: repeat(5, 1fr); }
.pcalc-periods { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.pcalc-periods > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pcalc-periods span { font-size: 12px; color: var(--text-2); }
.pcalc-periods b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcalc-periods .main { border-color: rgba(214, 194, 155, .45); background: var(--gold-dim); }
.pcalc-periods .main b { color: var(--gold); }

/* Шапка партнёрки: крот с деньгами */
.phero-art { height: 196px; margin: 6px -6px 2px; }
.earn-art, .earn-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ea-coin { animation: ea-drop .5s cubic-bezier(.2,.8,.25,1.15) both; }
.ea-note { animation: ea-fade .5s ease both; }
.ea-friend { animation: ea-fade .5s ease both; }
.ea-link { fill: none; stroke: rgba(214, 194, 155, .35); stroke-width: 1.2; stroke-dasharray: 3 4; }
@keyframes ea-drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes ea-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ea-coin, .ea-note, .ea-friend { animation: none; } }
.pcalc-periods { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pcalc-periods > div { flex-direction: row; justify-content: space-between; align-items: baseline; border: 0; border-radius: 0; padding: 13px 14px; }
.pcalc-periods > div + div { border-top: 1px solid var(--line); }
.pcalc-periods span { font-size: 14px; }
.pcalc-periods b { font-size: 17px; overflow: visible; }
.pcalc-periods .main { background: var(--gold-dim); }
.pcalc-periods .main span { color: var(--text); }
.pcalc-periods .main b { font-size: 26px; letter-spacing: -0.03em; }

/* Заставка: крот покачивается, тень дышит в такт */
.splash-mole { position: relative; width: 112px; height: 144px; display: block; animation: splash-in .6s cubic-bezier(.2,.7,.2,1) both; }
.splash-mole img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 92%; animation: mole-bob 1.6s ease-in-out .5s infinite; }
.splash-shadow { position: absolute; left: 50%; bottom: 2px; width: 74px; height: 10px; margin-left: -37px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(3px); animation: mole-shadow 1.6s ease-in-out .5s infinite; }
@keyframes mole-bob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-7px) rotate(-2.5deg); } 60% { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes mole-shadow { 0%, 100% { transform: scaleX(1); opacity: .55; } 30% { transform: scaleX(.82); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .splash-mole img, .splash-shadow { animation: none; } }
/* Онбординг с кротом */
.onb-art-earn { width: 300px; height: 184px; }
/* Пустые состояния: человечки */
.empty-art svg circle { fill: none; }
.empty-mole { width: 108px; height: 132px; margin-bottom: 12px; }
.empty-mole img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }

/* QR приглашения */
.pactions.three { grid-template-columns: 1.25fr 1fr auto; }
.btn-icon { width: 48px; padding: 0; display: inline-grid; place-items: center; }
.btn-icon .pi svg { width: 20px; height: 20px; }
.pqr-text { text-align: center; color: var(--text-2); font-size: 14px; margin: 16px auto 18px; max-width: 30ch; }

/* Фирменный QR */
.pqr { position: relative; width: 268px; margin: 8px auto 0; padding: 14px 14px 0; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px rgba(214,194,155,.35), 0 0 0 7px rgba(214,194,155,.06), 0 18px 40px rgba(0,0,0,.45); }
.pqr-code svg { display: block; width: 100%; height: auto; }
.pqr-code .qr-pupil { fill: #5c4a2a; }
.pqr-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 6px 0; padding: 11px 0 13px; border-top: 1px solid #ecebe6; }
.pqr-brand { font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: #0d0d0f; }
.pqr-note { white-space: nowrap; font-size: 12.5px; color: #8b877d; letter-spacing: .01em; }
.pqr-plain { width: 252px; padding: 12px; }

/* ── Колесо фортуны ──────────────────────────────────────── */
.btn-gold { background: linear-gradient(180deg, #e9d8b0, #c9ad7c); border-color: #d6c29b; color: #17130b; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 24px rgba(214, 194, 155, .18); }
.btn-gold:hover { background: linear-gradient(180deg, #f0e1bd, #d2b789); border-color: #e2cfa6; }
.linkish { border: 0; background: none; padding: 0; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; }

.tile-sub.on { color: var(--gold); }

.wheel-head { padding: 6px 4px 0; text-align: center; }
.wheel-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.wheel-head .sub { margin-top: 6px; }
.wheel-stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px 0 8px; }
.wheel-glow { position: absolute; inset: -8% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214, 194, 155, .16), rgba(214, 194, 155, .05) 55%, transparent 75%); }
.wheel-wrap { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.wheel-disc { position: absolute; inset: 0; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .65)); }
.wheel-svg { display: block; width: 100%; height: 100%; font-family: "Inter", sans-serif; }
.wheel-rot { transform-origin: 200px 200px; will-change: transform; }
.wseg { transition: filter .4s; }
.wseg.win { animation: wseg-win 1.1s ease-in-out 3; }
@keyframes wseg-win { 50% { filter: brightness(1.9) saturate(1.2); } }
.wstud { fill: #fff3d6; opacity: .5; }
.wstud:nth-child(odd) { opacity: .95; filter: drop-shadow(0 0 3px rgba(255, 236, 190, .9)); }
.wheel-wrap.spinning .wstud { animation: wstud .9s linear infinite; animation-delay: calc(var(--d) * -45ms); }
@keyframes wstud { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.wheel-pointer { position: absolute; left: 50%; top: -5.5%; width: 10%; transform: translateX(-50%); transform-origin: 50% 34%; z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.wheel-pointer svg { display: block; width: 100%; height: auto; }
.wheel-pointer.flick { animation: wflick .16s ease-out; }
@keyframes wflick { 40% { transform: translateX(-50%) rotate(-14deg); } }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 32%; height: 32%; transform: translate(-50%, -50%); border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wheel-hub:active:not([disabled]) { transform: translate(-50%, -50%) scale(.96); }

.wheel-cta { display: grid; gap: 8px; padding: 6px 0 0; }
.wheel-go { height: 54px; font-size: 16px; }
.wheel-note { margin: 0; text-align: center; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wheel-block { padding-top: 26px; }
.wheel-bhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.wheel-bhead .label { margin: 0; }
.wheel-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wkind { display: grid; gap: 2px; padding: 13px 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.wkind b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; }
.wkind span:last-child { font-size: 12px; color: var(--text-2); }
.wkind-ico, .whist-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); }
.wkind-ico svg, .whist-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.wkind-cash .wkind-ico, .whist-ico.wkind-cash { color: #e9d8b0; border-color: rgba(214, 194, 155, .45); background: rgba(214, 194, 155, .08); }
.wkind-balance .wkind-ico, .whist-ico.wkind-balance { color: var(--gold); }
.wkind-days .wkind-ico, .whist-ico.wkind-days { color: #f2f2f0; }
.wkind-coupon .wkind-ico, .whist-ico.wkind-coupon { color: #cfc6b4; }

.whist, .wprize { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.whist + .whist, .wprize + .wprize { border-top: 1px solid var(--line); }
.whist.tap { cursor: pointer; }
.whist.dim { opacity: .55; }
.whist-main { display: grid; min-width: 0; flex: 1; }
.whist-main b { font-size: 14px; font-weight: 600; }
.whist-main span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whist-at { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.wprize-name { flex: 1; font-size: 14px; }
.wprize-tier { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.wprize-tier.t0 { color: #17130b; background: linear-gradient(180deg, #f1e2bd, #c9ad7c); border-color: transparent; }
.wprize-tier.t1 { color: var(--gold); border-color: rgba(214, 194, 155, .5); }
.wprize-tier.t2 { color: #d8d2c6; }

.wheel-feed { display: grid; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.wfeed { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; }
.wfeed + .wfeed { border-top: 1px solid var(--line); }
.wfeed-ava { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--text-2); }
.wfeed-name { color: var(--text-2); flex: 1; min-width: 0; letter-spacing: .04em; }
.wfeed-prize { font-weight: 600; white-space: nowrap; }
.wfeed-prize.gold { color: var(--gold); }
.wheel-fine { text-align: center; margin: 22px 8px 4px; }

/* Окно выигрыша */
.wwin { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 2px; margin: 4px 0 0; padding: 30px 16px 26px;
  border-radius: 20px; border: 1px solid var(--line-strong); background: radial-gradient(120% 90% at 50% 0%, #1c1b19, #111112 70%); }
.wwin.gold { border-color: rgba(214, 194, 155, .55); background: radial-gradient(120% 90% at 50% 0%, #2a2418, #121110 70%); }
.wwin-rays { position: absolute; left: 50%; top: 46%; width: 420px; height: 420px; transform: translate(-50%, -50%); pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(214, 194, 155, .12) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 72%); mask: radial-gradient(closest-side, #000 20%, transparent 72%);
  animation: wrays 24s linear infinite; }
@keyframes wrays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wwin-kicker { position: relative; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.wwin-big { position: relative; font-size: 64px; line-height: 1.05; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  animation: wpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.wwin.gold .wwin-big { background: linear-gradient(180deg, #fbf0d4, #c9ad7c); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes wpop { from { transform: scale(.6); opacity: 0; } }
.wwin-unit { position: relative; font-size: 15px; color: var(--text-2); }
.wwin-text { text-align: center; color: var(--text-2); font-size: 14px; margin: 14px auto 12px; max-width: 32ch; }
.wwin-code { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 14px; padding: 13px 16px;
  border: 1px dashed rgba(214, 194, 155, .55); border-radius: 12px; background: rgba(214, 194, 155, .05); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.wwin-copy { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--gold); }

/* ── Панель вкладок: колесо по центру, край панели поднимается волной ── */
.tabbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px minmax(0, 1fr) minmax(0, 1fr); padding-top: 26px; background: none; border-top: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.tabbar > .tab { position: relative; z-index: 1; pointer-events: auto; min-width: 0; }
@media (max-width: 374px) { .tabbar > .tab { font-size: 10px; } }
.tabbar-bg { position: absolute; inset: 0; pointer-events: none; }
.tabbar-bg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tabbar-bg .fill { fill: #0e0e0f; }
.tabbar-bg .edge { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.tab-wheel { position: relative; justify-content: flex-start; color: var(--text-2); }
.tab-wheel .fab { position: absolute; left: 50%; top: -20px; width: 52px; height: 52px; transform: translateX(-50%); display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle at 38% 30%, #232327, #0b0b0c 70%);
  box-shadow: 0 0 0 1.5px rgba(214, 194, 155, .55), 0 10px 22px rgba(0, 0, 0, .55), 0 0 24px rgba(214, 194, 155, .14);
  transition: transform .2s cubic-bezier(.3, .7, .2, 1), box-shadow .25s; }
.tab-wheel .fab svg { width: 42px; height: 42px; stroke: none; }
.tab-wheel:active .fab { transform: translateX(-50%) scale(.94); }
.tab-wheel.on { color: var(--gold); }
.tab-wheel.on .fab { box-shadow: 0 0 0 2px #d6c29b, 0 10px 22px rgba(0, 0, 0, .55), 0 0 30px rgba(214, 194, 155, .3); }
.tab-wheel.on .fab svg { stroke: none; }
.tab-wheel > span:last-child { margin-top: 27px; }
.fab-dot { position: absolute; left: calc(50% + 15px); top: -18px; width: 10px; height: 10px; border-radius: 50%;
  background: #e9d8b0; box-shadow: 0 0 0 2.5px #0b0b0c, 0 0 10px rgba(233, 216, 176, .8); z-index: 1; }

/* Колесо недоступно: подсказка и покупка в один тап */
.wheel-wrap.locked .wheel-disc { filter: saturate(.55) brightness(.62) drop-shadow(0 22px 40px rgba(0, 0, 0, .65)); }
.wheel-wrap.locked .wheel-hub::after { content: ""; position: absolute; inset: 30%; border-radius: 50%;
  background: no-repeat center/60% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6c29b' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E"), #0b0b0c;
  box-shadow: 0 0 0 1.5px rgba(214, 194, 155, .55); }
.wheel-lock { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 18px; text-align: center; border-radius: 20px;
  border: 1px solid rgba(214, 194, 155, .35); background: radial-gradient(120% 80% at 50% 0%, #1d1a14, #111112 70%); }
.wheel-lock.nudge { animation: wnudge .45s ease; }
@keyframes wnudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.wheel-lock-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; border: 1px solid rgba(214, 194, 155, .45); background: rgba(214, 194, 155, .07); }
.wheel-lock-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wheel-lock b { font-size: 17px; letter-spacing: -.01em; margin-top: 4px; }
.wheel-lock p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 32ch; }
.wheel-lock-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 8px; }
.wheel-lock-perks span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); }
.wheel-lock .btn { width: 100%; }

/* Подписка отключена за отписку от канала */
.cg-note { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(226, 103, 92, .4); background: rgba(226, 103, 92, .06); }
.cg-note b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.cg-note p { margin: 0 0 6px; font-size: 13.5px; color: var(--text-2); }

@media (max-width: 374px) { .qa-row > * { min-width: 0; } .qa-row { font-size: 11px; } .qa-row * { letter-spacing: 0; } }

/* ── Сайт: шапка, вход, профиль, установка ──────────────── */
.top-left, .top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-back { width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; border: 0; background: none; color: var(--text); cursor: pointer; }
.top-back[hidden], .avatar[hidden] { display: none; }
.top-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(214, 194, 155, .45);
  background: var(--surface-2); color: var(--gold); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
html[data-standalone] .top { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }

.login { display: grid; justify-items: center; gap: 12px; max-width: 360px; margin: 0 auto; padding: 8vh 4px 24px; text-align: center; }
.login-logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(214, 194, 155, .35), 0 16px 40px rgba(0, 0, 0, .55); }
.login h1 { margin: 12px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.login .sub { margin: 0 0 14px; max-width: 30ch; }
.btn-tg { display: flex; align-items: center; justify-content: center; gap: 10px; background: #2aabee; border-color: #2aabee; color: #fff; font-weight: 600; text-decoration: none; }
.btn-tg:hover { background: #38b4f2; border-color: #38b4f2; }
.btn-tg svg { width: 20px; height: 20px; }
.btn-tg.off { opacity: .5; pointer-events: none; }
.login-status { margin: 0; min-height: 20px; font-size: 13px; color: var(--text-2); }
.login-or { width: 100%; display: flex; align-items: center; gap: 12px; margin: 6px 0; color: var(--text-3); font-size: 12px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-email { width: 100%; display: grid; gap: 8px; }

.pf-head { display: flex; align-items: center; gap: 14px; padding: 6px 4px 4px; }
.pf-ava { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #26262a, #0d0d0f 75%);
  box-shadow: 0 0 0 1.5px rgba(214, 194, 155, .55); color: var(--gold); font-size: 26px; font-weight: 650; }
.pf-name { min-width: 0; }
.pf-name h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-name .sub { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-stat { display: grid; gap: 2px; padding: 14px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pf-stat b { font-size: 19px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pf-stat span { font-size: 12px; color: var(--text-2); }
.pf-label { margin: 10px 4px -4px; }
.pf-info { cursor: default; }
.pf-info.tap { cursor: pointer; }
.pf-info .menu-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.pf-sess { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.pf-sess + .pf-sess { border-top: 1px solid var(--line); }
.pf-sess > div { display: grid; min-width: 0; }
.pf-sess b { font-size: 14px; font-weight: 600; }
.pf-sess span { font-size: 12px; color: var(--text-2); }
.pf-sess .btn { flex: none; height: 34px; padding: 0 12px; font-size: 13px; }

.pwa-perks { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; }
.pwa-perks li { position: relative; padding-left: 18px; }
.pwa-perks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.pwa-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.pwa-steps li { counter-increment: s; position: relative; padding: 2px 0 2px 38px; display: grid; }
.pwa-steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(214, 194, 155, .45); color: var(--gold); font-size: 13px; font-weight: 600; }
.pwa-steps b { font-size: 14px; font-weight: 600; }
.pwa-steps span { font-size: 12.5px; color: var(--text-2); }
.pwa-ic { display: inline-flex; vertical-align: -3px; }
.pwa-ic svg { width: 17px; height: 17px; fill: none; stroke: #4aa3ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwa-actions { display: grid; gap: 8px; }

/* ── Экран входа ─────────────────────────────────────────── */
body:has(.login) .page { padding-bottom: 0; }
body:has(.login) .top { display: none; }
.login { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; max-width: 420px; min-height: 100dvh; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 6px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.login-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 420px at 50% 22%, rgba(214, 194, 155, .2), transparent 70%), radial-gradient(700px 400px at 50% 110%, rgba(214, 194, 155, .07), transparent 70%), #0b0b0c; }
.login > *:not(.login-bg) { animation: login-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.login > *:nth-child(3) { animation-delay: .05s; } .login > *:nth-child(4) { animation-delay: .12s; } .login > *:nth-child(5) { animation-delay: .18s; }
.login > *:nth-child(6) { animation-delay: .24s; } .login > *:nth-child(7) { animation-delay: .3s; } .login > *:nth-child(n+8) { animation-delay: .36s; }
@keyframes login-in { from { opacity: 0; transform: translateY(14px); } }
.login-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.login-brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(214, 194, 155, .35); }
.login-art { position: relative; flex: none; display: block; width: min(52vw, 210px); height: min(52vw, 210px); margin: 26px 0 22px; }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.login-halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214, 194, 155, .28);
  box-shadow: 0 0 0 16px rgba(214, 194, 155, .035), 0 0 0 34px rgba(214, 194, 155, .02), 0 0 70px rgba(214, 194, 155, .16) inset; }
.login h1 { margin: 0; font-size: clamp(28px, 8.4vw, 36px); line-height: 1.08; font-weight: 750; letter-spacing: -.04em; }
.login h1 span { display: block; }
.login h1 em { display: block; font-style: normal; background: linear-gradient(180deg, #f8ecd0, #c3a671); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.login-sub { margin: 10px 0 14px; max-width: 32ch; color: var(--text-2); font-size: 15px; }
.login-flags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.login-flags .flag { width: 22px; height: 15px; }
.login-flags > span:last-child { margin-left: 3px; }
.login-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
.login-chips span { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(214, 194, 155, .3); background: rgba(214, 194, 155, .06); color: #e3d4b1; font-size: 12px; }
.login-main { height: 56px; font-size: 16px; border-radius: 15px; background: linear-gradient(180deg, #37b4f2, #1f96d8); border-color: #2aabee; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 30px rgba(42, 171, 238, .28); }
.login-main:hover { background: linear-gradient(180deg, #45bcf6, #27a0e2); }
.login-bot { width: 100%; display: grid; gap: 8px; }
.login-bot:empty { display: none; }
.login-alt { margin-top: 12px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.login-error { width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(226, 103, 92, .4); background: rgba(226, 103, 92, .07); color: #f0a9a2; font-size: 13px; }
.login .btn-tg { display: flex; }
.login .login-or { margin: 18px 0 12px; }

/* ── Профиль ─────────────────────────────────────────────── */
.avatar { padding: 0; overflow: hidden; }
.avatar-in { width: 100%; height: 100%; display: grid; place-items: center; }
.avatar-in img, .pf-ava img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.pf-hero { position: relative; overflow: hidden; display: grid; justify-items: center; padding: 26px 16px 20px; text-align: center; border-radius: 22px; border: 1px solid rgba(214, 194, 155, .3);
  background: linear-gradient(180deg, #1b1913, #121213 62%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.pf-hero-glow { position: absolute; left: 50%; top: -90px; width: 340px; height: 240px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(214, 194, 155, .3), transparent); }
.pf-ring { position: relative; width: 104px; height: 104px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #f6e9c9, #a98c5a, #eedcb3, #8c7145, #f6e9c9); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 34px rgba(214, 194, 155, .2); }
.pf-ava { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 3px solid #141312; background: radial-gradient(circle at 38% 30%, #2a2a2f, #0d0d0f 75%); color: var(--gold); font-size: 38px; font-weight: 650; }
.pf-title { position: relative; margin: 14px 0 0; font-size: 25px; font-weight: 720; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pf-handle { position: relative; margin: 2px 0 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.pf-badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.pf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 12px; }
.pf-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.pf-badge.ok { color: #a7dbb9; border-color: rgba(111, 191, 139, .4); } .pf-badge.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pf-badge.warn { color: #e8c98a; border-color: rgba(217, 164, 65, .4); } .pf-badge.warn i { background: var(--warn); }
.pf-badge.bad { color: #f0a9a2; border-color: rgba(226, 103, 92, .4); } .pf-badge.bad i { background: var(--bad); }
.pf-id { position: relative; margin-top: 10px; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 11.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pf-cap { font-size: 12px; color: var(--text-2); }
.pf-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); }
.pf-sub-text { display: grid; min-width: 0; }
.pf-sub-text b { font-size: 20px; font-weight: 680; letter-spacing: -.02em; }
.pf-sub .btn { flex: none; height: 42px; padding: 0 18px; }
.pf-card { position: relative; overflow: hidden; display: grid; padding: 18px; border-radius: 20px; border: 1px solid rgba(214, 194, 155, .4);
  background: linear-gradient(135deg, #2a2418 0%, #15130f 46%, #1f1b13 100%); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 200, .1); }
.pf-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(214, 194, 155, .13); box-shadow: 0 0 0 32px rgba(214, 194, 155, .03); pointer-events: none; }
.pf-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pf-card-brand { font-weight: 700; letter-spacing: -.02em; color: #e8d8b4; }
.pf-card-chip { width: 34px; height: 25px; border-radius: 6px; background: linear-gradient(135deg, #f1e0b8, #a98c5a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.pf-card-sum { font-size: 36px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff6e0, #cdb283); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-card-foot { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-card-btn { height: 38px; padding: 0 14px; border-radius: 11px; border: 0; background: linear-gradient(180deg, #e9d8b0, #c9ad7c); color: #17130b; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pf-card-btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pf-card-out { margin-left: auto; display: grid; justify-items: end; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.pf-card-out span { font-size: 11px; color: var(--text-2); }
.pf-card-out b { font-size: 14px; color: #e8d8b4; }
.pf-note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; border: 1px dashed rgba(214, 194, 155, .45); background: rgba(214, 194, 155, .05); color: #e3d4b1; font-size: 13px; }
.pf-note .icon, .pf-note span:first-child { flex: none; }
.pf-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-num { display: grid; justify-items: center; gap: 1px; padding: 13px 4px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pf-num b { font-size: 19px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pf-num span { font-size: 11.5px; color: var(--text-2); }
.pf-ok { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(111, 191, 139, .16); margin-left: 8px; }
.pf-ok svg { width: 11px; height: 11px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Рассылка как в боте */
.bc-img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.bc-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.bc-text a { color: #5db8ff; }
.bc-text blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(214, 194, 155, .07); }
.bc-text code, .bc-text pre { font-family: ui-monospace, monospace; font-size: 13px; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 1px 5px; }
.bc-text pre { padding: 8px 10px; overflow-x: auto; }
.bc-date { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
.bc-btns { display: grid; gap: 8px; margin-top: 14px; }
.bc-row { display: flex; gap: 8px; }

/* Партнёрка: две ссылки */
.plink-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.plink-tab { height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.plink-tab.on { background: linear-gradient(180deg, #e9d8b0, #c9ad7c); color: #17130b; }
.plink-note { margin: 8px 2px 0; font-size: 12.5px; color: var(--text-2); }
.plink-stats { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 13px; overflow: hidden; }
.plink-sr { display: grid; grid-template-columns: 1fr repeat(3, minmax(0, 1fr)) 1.1fr; gap: 4px; align-items: center; padding: 10px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.plink-sr + .plink-sr { border-top: 1px solid var(--line); }
.plink-sr.head { padding: 8px 12px; background: var(--surface-2); font-size: 10.5px; color: var(--text-3); }
.plink-sr > span { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plink-sr b { font-weight: 600; }
.login-invite { margin: 0 0 12px; padding: 7px 14px; border-radius: 999px; background: rgba(214, 194, 155, .12); border: 1px solid rgba(214, 194, 155, .45); color: #f0e0ba; font-size: 13px; font-weight: 600; }
