/* Peanut VPN — тема «Пульт»: тёмный графит, панели с тонкими линиями, моноширинные подписи,
   прямые углы, янтарный акцент, много плавной анимации. Шрифты системные (Segoe UI / San Francisco / Roboto
   и Consolas / SF Mono) — ничего не скачивается.
   В первую очередь под телефоны: кнопки от 44px, окна снизу, отступы под вырезы экрана.
   Вся анимация выключается, если в системе включено «уменьшить движение». */
:root {
  color-scheme: dark;
  --bg: #0a0b0d; --panel: #101215; --panel-2: #15181c; --panel-3: #1a1e23; --bar-bg: #13161a;
  --line: #22262c; --line-2: #2f343b;
  --text: #e7e9ec; --muted: #8b919b; --faint: #5b616b;
  --accent: #f2a93b; --accent-2: #ffc46b; --accent-dim: rgba(242, 169, 59, .1); --ok: #3fcf8e; --bad: #f26d5b;
  --ease: cubic-bezier(.16, 1, .3, 1);          /* мягкое торможение в конце */
  --spring: cubic-bezier(.34, 1.56, .64, 1);    /* лёгкий «пружинный» перелёт */
  --gutter: 20px; --maxw: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, Menlo, "Liberation Mono", monospace;
  --bar: #0a0b0d;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.has-sheet { overflow: hidden; }
html.has-sheet body { position: fixed; left: 0; right: 0; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: 0 5px; }
.hl { color: var(--accent) !important; }
.dim { color: var(--muted); }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--muted); font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.label-line::after { content: ""; width: 48px; height: 1px; background: var(--accent); transform-origin: left; }
.led { position: relative; width: 7px; height: 7px; flex: none; background: var(--ok); }
.led::after { content: ""; position: absolute; inset: 0; background: var(--ok); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top);
  background: rgba(10, 11, 13, .55); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.top.is-scrolled { background: rgba(10, 11, 13, .9); border-bottom-color: var(--line); box-shadow: 0 12px 32px -24px #000; }
.top-in { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 14px/1 var(--mono); letter-spacing: .08em; }
.brand i { font-style: normal; color: var(--accent); margin: 0 1px; display: inline-block; transition: transform .5s var(--spring); }
.mark { width: 18px; height: 18px; flex: none; fill: var(--accent); transition: transform .6s var(--spring); }
@media (hover: hover) {
  .brand:hover .mark { transform: rotate(-14deg) scale(1.12); }
  .brand:hover i { transform: rotate(18deg); }
}
.crumb { color: var(--faint); font: 500 13px var(--mono); }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; color: var(--muted); text-decoration: none;
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-btn {
  position: relative; padding: 8px 12px; background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .3s;
}
.nav-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-btn:hover { color: var(--text); }
.nav-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.top-in > .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .nav + .btn { margin-left: 8px; } }

/* ---------- кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 0;
  background: none; color: var(--text); font: 600 14px/1.2 var(--font); letter-spacing: .01em;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background-color .3s var(--ease), background-size .5s var(--ease), color .3s, border-color .3s,
    box-shadow .4s var(--ease), transform .4s var(--spring), opacity .3s;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-main { background: var(--accent); border-color: var(--accent); color: #0d0900; }
.btn-out, .btn-ghost {
  background-color: var(--panel);
  background-image: linear-gradient(var(--panel-3), var(--panel-3)); background-repeat: no-repeat; background-size: 0% 100%;
}
@media (hover: hover) {
  .btn-main:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 10px 30px -12px rgba(242, 169, 59, .7); }
  .btn-out:hover, .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background-size: 100% 100%; }
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn.is-loading { opacity: .85; pointer-events: none; }
.btn.is-loading::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 2px; background: currentColor;
  animation: loadbar 1s var(--ease) infinite;
}
.btn svg { width: 16px; height: 16px; flex: none; }
/* блик, который иногда пробегает по главной кнопке */
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-130%);
}
.ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; pointer-events: none; }

/* ---------- панели ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px;
  background: var(--bar-bg); border-bottom: 1px solid var(--line);
  color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.bar-dots { display: flex; gap: 5px; }
.bar-dots i { width: 7px; height: 7px; background: var(--line-2); }
/* уголки-«захват» при наведении на карточку */
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 7px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.05);
  --c: var(--accent); --l: 14px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat;
  transition: opacity .35s var(--ease), transform .7s var(--ease);
}
@media (hover: hover) { .frame:hover::before { opacity: 1; transform: none; } }

/* полоса прочитанного сверху (там, где браузер умеет анимацию от прокрутки) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 7; height: 2px; pointer-events: none;
    background: var(--accent); transform-origin: left; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
}

/* сетка-пространство (canvas рисует скрипт; без скрипта — обычная сетка фоном) */
.warp { position: absolute; inset: 0; z-index: -2; display: block; pointer-events: none; }
.has-warp { background-image: none !important; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* сетка гаснет к краям */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 110% at 50% 25%, transparent 45%, var(--bg) 100%);
}
.hero-in { position: relative; display: grid; gap: 32px; padding-top: 44px; padding-bottom: 48px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(48px, 13vw, 96px); line-height: .95; font-weight: 800; letter-spacing: -0.05em; }
.h1-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.h1-line { display: inline-block; }
.hero-art { position: relative; }
.spec { will-change: transform; }
.h1-mask + .h1-mask .h1-line {
  background: linear-gradient(100deg, var(--text) 20%, var(--accent) 45%, var(--accent-2) 55%, var(--text) 80%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 28px; max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spec { overflow: hidden; }
.spec::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(transparent, rgba(242, 169, 59, .07), transparent);
  transform: translateY(-100px); opacity: 0;
}
.kv { position: relative; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.kv div:last-child { border-bottom: 0; }
@media (hover: hover) { .kv div:hover { background: rgba(255, 255, 255, .02); } }
.kv dt { color: var(--muted); font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kv dd { margin: 0; font: 500 13px/1.6 var(--mono); text-align: right; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding-top: 104px; padding-bottom: 104px; }
}
@media (max-width: 560px) { .actions .btn { flex: 1 1 100%; } }

/* ---------- разделы ---------- */
.sec { padding: 64px 0 0; }
@media (min-width: 900px) { .sec { padding-top: 112px; } }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 6.5vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; max-width: 700px; }

/* тарифы — панели, сомкнутые в одну таблицу */
.plans { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex; flex-direction: column; padding: 22px; background: var(--panel);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.plan > * { position: relative; z-index: 1; }
@media (hover: hover) { .plan:hover { background: #13161a; } }
.plan.is-best { background: var(--panel-2); }
.plan.is-best::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #fff3d6, var(--accent-2), var(--accent));
  background-size: 300% 100%;
}
.plan-id { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 18px; color: var(--faint); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.plan-id b { color: var(--accent); font-weight: 600; }
.plan h3 { margin: 0 0 6px; color: var(--muted); font-size: 15px; font-weight: 500; }
.price { margin: 0 0 18px; font: 600 46px/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .cur { margin-left: 8px; color: var(--muted); font-size: 22px; }
.plan-kv { margin: 0 0 20px; border-top: 1px solid var(--line); }
.plan-kv div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font: 13px var(--mono); }
.plan-kv dt { color: var(--muted); }
.plan-kv dd { margin: 0; }
.plan .btn { margin-top: auto; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px 32px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before {
  content: "+"; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font: 500 12px/1 var(--mono);
}
.sub-note { margin: 18px 0 0; color: var(--faint); font-size: 14px; }

/* шаги */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 24px 20px; background: var(--panel); transition: background-color .5s var(--ease); }
.steps li > * { position: relative; z-index: 1; }
@media (hover: hover) { .steps li:hover { background: #13161a; } }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.step-id { display: block; margin-bottom: 18px; color: var(--accent); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.steps b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); }

/* таблица серверов */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 14px; text-align: left; background: var(--bar-bg); border-bottom: 1px solid var(--line); color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.table td { padding: 15px 14px; border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease), padding-left .45s var(--ease); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { width: 72px; font-weight: 600; }
@media (hover: hover) {
  .table tbody tr:hover td { background: var(--panel-2); }
  .table tbody tr:hover td:first-child { padding-left: 20px; }
}
@media (max-width: 400px) { .table th:last-child, .table td:last-child { display: none; } }
.note { margin: 18px 0 0; color: var(--muted); max-width: 700px; }

/* вопросы */
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 17px 56px 17px 16px; cursor: pointer; list-style: none; font-weight: 600;
  transition: color .3s, padding-left .45s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { color: var(--accent); padding-left: 22px; } }
.faq summary::after, .how > summary::after, .how-more > summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); font: 15px/1 var(--mono);
  transition: transform .5s var(--spring), border-color .3s, color .3s, background-color .3s;
}
.faq details[open]:not(.is-closing) > summary::after,
.how[open]:not(.is-closing) > summary::after,
.how-more[open]:not(.is-closing) > summary::after { content: "−"; transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }
.det-body p { margin: 0; padding: 0 16px 18px; color: var(--muted); max-width: 760px; }

/* подвал */
.foot { margin-top: 112px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 13px; }
.foot-in a, .foot-link { color: var(--muted); transition: color .3s; }
.foot-link { padding: 0; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.foot-in a:hover, .foot-link:hover { color: var(--accent); }

/* кнопка поддержки — всегда под рукой в правом нижнем углу */
.help-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 8;
  overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 0; height: 48px; padding: 0 13px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font: 600 13px var(--font); cursor: pointer;
  box-shadow: 0 18px 40px -18px #000; touch-action: manipulation;
  transition: border-color .3s, color .3s, opacity .4s var(--ease), transform .5s var(--ease);
}
.help-fab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: square; }
.help-fab span { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .55s var(--ease), opacity .35s, margin-left .55s var(--ease); }
@media (hover: hover) {
  .help-fab:hover { border-color: var(--accent); color: var(--accent); }
  .help-fab:hover span, .help-fab:focus-visible span { max-width: 140px; opacity: 1; margin-left: 10px; }
}
.help-fab:focus { outline: none; }
.help-fab:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
html.has-sheet .help-fab { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 560px) {
  .help-fab { width: 48px; padding: 0; justify-content: center; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.help-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.help-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; }
.help-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* ---------- окна ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .72); overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sheet-box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; overflow-x: hidden; padding: 24px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: inset 0 2px 0 var(--accent), 0 40px 80px -30px #000;
  overscroll-behavior: contain;
}
@media (max-width: 560px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-box {
    max-width: none; max-height: 92vh; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 22px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
}
.sheet-box:focus { outline: none; }
.sheet-box h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.sheet-box p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.sheet-box p.label { margin-bottom: 10px; font-size: 11px; }
.sheet-box .btn + .btn { margin-top: 10px; }
.sheet-sub { margin: 0 0 18px !important; }
.sheet-cancel { margin-top: 14px; }
.code { margin: 0 0 20px; padding: 16px 0; background: var(--bg); border: 1px solid var(--line-2); text-align: center; color: var(--accent); font: 600 34px/1.2 var(--mono); letter-spacing: .34em; text-indent: .34em; }
.status { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 16px 0 6px !important; font: 12px var(--mono) !important; letter-spacing: .04em; color: var(--muted) !important; }
.status:empty { display: none; }
.status::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--accent); }
.status.is-error { color: #ffb4a8 !important; }
.status.is-error::before { background: var(--bad); }
.status.is-done { color: var(--ok) !important; }
.status.is-done::before { background: var(--ok); }

/* вкладки «Почта / Telegram» — янтарная плашка переезжает под выбранную */
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 18px; padding: 3px; background: var(--bg); border: 1px solid var(--line-2); }
.tab {
  position: relative; z-index: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  background: none; border: 0; color: var(--muted); font: 600 14px var(--font); cursor: pointer; touch-action: manipulation;
  transition: color .4s var(--ease);
}
.tab[aria-selected="true"] { color: #0d0900; }
.tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.tab:focus { outline: none; }
.tab:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }
.tab-ink { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--accent); transition: transform .55s var(--ease); }
.tabs[data-active="tg"] .tab-ink { transform: translateX(100%); }

/* поле ввода */
.field { display: block; margin: 0 0 14px; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.field input {
  width: 100%; height: 52px; padding: 0 14px; margin: 0;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; outline: none;
  color: var(--text); font: 500 16px var(--font); -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: #0c0d10; }
.field.is-ok input { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(63, 207, 142, .14); }
.code-input { height: 62px !important; text-align: center; font: 600 28px var(--mono) !important; letter-spacing: .5em; text-indent: .5em; }
.link-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.link-btn {
  padding: 10px 0; background: none; border: 0; color: var(--muted); font: 500 13px var(--font); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color .3s, text-decoration-color .3s;
}
.link-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }
.link-btn[aria-disabled="true"] { color: var(--faint); text-decoration: none; pointer-events: none; }

.methods { display: grid; gap: 1px; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); }
.method {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0 16px;
  background: var(--panel-2); border: 0; color: var(--text); font: 600 15px var(--font); text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding-left .45s var(--ease);
}
@media (hover: hover) { .method:hover { background: #1b1f24; box-shadow: inset 2px 0 0 var(--accent); padding-left: 22px; } }
.method:active { background: #1f242a; }
.method:focus { outline: none; }
.method:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.method[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.method-sum { color: var(--accent); font: 600 14px var(--mono); white-space: nowrap; }
.amount { margin: 0 0 18px !important; color: var(--text) !important; font: 600 40px/1 var(--mono) !important; letter-spacing: -0.04em; }
.amount-done { color: var(--accent) !important; }
.qr { display: block; width: 200px; height: 200px; margin: 0 auto 18px; padding: 8px; background: #fff; }
.qr-note { text-align: center; font-size: 12px !important; }
@media (hover: none) and (pointer: coarse) { .qr, .qr-note { display: none; } }
.demo-note { margin: 0 0 18px !important; padding: 10px 12px; background: var(--accent-dim); border-left: 2px solid var(--accent); color: var(--text) !important; font-size: 13px !important; }
.fine { margin: 14px 0 16px !important; color: var(--faint) !important; font-size: 12px !important; }
.done-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border: 1px solid var(--ok); color: var(--ok); background: rgba(63, 207, 142, .08); }
.done-mark svg { width: 28px; height: 28px; }
.done-mark::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--ok); opacity: 0; pointer-events: none; }
.spark { position: absolute; z-index: 5; width: 8px; height: 8px; background: var(--accent); pointer-events: none; }
.spark.is-ok { background: var(--ok); }
.spark.is-light { background: #fff3d6; width: 6px; height: 6px; }

/* ---------- кабинет: слева аккаунт, справа ключи и оплата ---------- */
.cab { position: relative; padding-top: 24px; }
.cab > .wrap { position: relative; z-index: 1; }
.cab-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 680px; z-index: 0; isolation: isolate; pointer-events: none;
  background-image: linear-gradient(#1c1f24 1px, transparent 1px), linear-gradient(90deg, #1c1f24 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent);
}
.loading { padding: 8px 0 32px; }
.loading-text { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font: 13px var(--mono); }
.loading.is-error .led, .loading.is-error .led::after { background: var(--bad); }
.loading.is-error .skel { display: none; }
.skel { display: grid; gap: 16px; }
.skel-side, .skel-main { display: grid; gap: 10px; align-content: start; }
.skel i {
  display: block; height: 16px;
  background: linear-gradient(90deg, var(--panel) 0%, var(--panel-3) 45%, var(--panel) 90%); background-size: 220% 100%;
}
.skel-side i:first-child { height: 140px; }
.skel-side i:nth-child(2) { width: 70%; }
.skel-side i:nth-child(3) { width: 45%; }
.skel-main i { height: 110px; }
@media (min-width: 960px) { .skel { grid-template-columns: 320px 1fr; gap: 32px; } }

.cab-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .cab-grid { grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
  .side { position: sticky; top: 82px; }
}
.state-in { padding: 18px; }
.cab-name { margin: 0 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.acct { margin: -8px 0 16px; color: var(--faint); font: 12px var(--mono); overflow-wrap: anywhere; }
.state-main { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.dot { position: relative; width: 8px; height: 8px; flex: none; background: var(--ok); }
.dot::after { content: ""; position: absolute; inset: 0; background: inherit; }
.dot.is-warn { background: var(--accent); }
.dot.is-bad { background: var(--bad); }
.dot.is-bad::after { display: none; }
.state-sub { margin: 6px 0 16px; color: var(--muted); font: 12px/1.6 var(--mono); }
.days { margin: 0 0 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.days b { font: 600 56px/1 var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.days span { margin-left: 10px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.days.is-warn b { color: var(--accent); }
.days-bar { margin-top: 14px; height: 4px; background: var(--line); overflow: hidden; }
.days-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 1.6s var(--ease) .2s; }
.block + .block { margin-top: 44px; }
.block h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.sub { margin: 0 0 18px; color: var(--muted); }
.plans + .sub { margin: 14px 0 0; font-size: 13px; }

.devices { display: grid; gap: 12px; }
.dev { background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: border-color .5s var(--ease); }
.dev > * { position: relative; z-index: 1; }
@media (hover: hover) { .dev:hover { border-color: var(--line-2); } }
.dev-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bar-bg); border-bottom: 1px solid var(--line); }
.dev-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line-2); color: var(--accent); transition: transform .6s var(--spring), border-color .4s; }
@media (hover: hover) { .dev:hover .dev-ico { transform: rotate(-8deg) scale(1.08); border-color: var(--accent); } }
.dev-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.dev-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.dev-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.dev-name { font-weight: 650; font-size: 16px; }
.dev-mine { padding: 1px 6px; border: 1px solid var(--accent); color: var(--accent); font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dev-state { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.dev-state::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.key { display: flex; margin: 14px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .4s var(--ease), box-shadow .5s var(--ease); }
.key:hover { border-color: var(--faint); }
.key:has(.is-done) { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(63, 207, 142, .1); }
.key-url {
  flex: 1 1 auto; min-width: 0; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 12px/44px var(--mono); color: var(--muted); background: none; border: 0; user-select: all; -webkit-user-select: all;
}
.key-url::before { content: "$ "; color: var(--accent); }
.key-copy { flex: none; min-height: 44px; border: 0; border-left: 1px solid var(--line-2); background-color: var(--panel-2); }
.key-copy svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--spring); }
.key-copy.is-done { color: var(--ok); }
.key-copy.is-done svg { transform: scale(1.2) rotate(-8deg); }
@media (max-width: 380px) { .key { flex-wrap: wrap; } .key-copy { width: 100%; border-left: 0; border-top: 1px solid var(--line-2); } }

.how { border-top: 1px solid var(--line); }
.how > summary {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 48px 0 14px; cursor: pointer; list-style: none;
  color: var(--text); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: color .3s, background-color .3s;
}
.how > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .how > summary:hover { color: var(--accent); background: rgba(255, 255, 255, .015); } }
.how > summary::after { right: 14px; }
.how-body { padding: 4px 14px 16px; }
.how-steps { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.how-steps li { counter-increment: h; position: relative; padding: 14px 0 14px 40px; border-top: 1px dashed var(--line-2); }
.how-steps li:first-child { border-top: 0; }
.how-steps li::before { content: counter(h, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--accent); font: 600 13px var(--mono); }
.how-steps p { margin: 0 0 10px; color: var(--muted); }
.how-steps p:last-child { margin-bottom: 0; }
.how-steps b { color: var(--text); font-weight: 600; }
.how-steps .btn { margin: 2px 0 10px; }
.how-steps li > .btn:last-child { margin-bottom: 0; }
.how-alt { font-size: 13px; color: var(--faint) !important; }
.how-more { margin-top: 6px; border: 1px solid var(--line); background: var(--bg); }
.how-more > summary { position: relative; padding: 13px 48px 13px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; transition: color .3s; }
.how-more > summary::-webkit-details-marker { display: none; }
.how-more > summary:hover { color: var(--accent); }
.how-more > summary::after { right: 12px; }
.how-more > p { margin: 0; padding: 0 14px 12px; color: var(--muted); font-size: 14px; }
.how-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
@media (max-width: 480px) { .how-steps .btn, .how-btns .btn { width: 100%; } }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; transform: translate(-50%, 0);
  max-width: calc(100% - 32px); padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: inset 2px 0 0 var(--accent), 0 20px 40px -20px #000;
  color: var(--text); font: 12px var(--mono); letter-spacing: .04em; text-align: center;
}
@media (max-width: 360px) { :root { --gutter: 16px; } .crumb { display: none; } }

/* =====================================================================
   АНИМАЦИЯ. Всё ниже работает только если в системе не просили «уменьшить движение».
   Скрытое до появления — только при метке .js (её ставит boot.js), чтобы без скрипта всё было видно.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* плавный переход между страницами (Chrome, Edge, Safari 18+) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }

  /* появление при прокрутке */
  .js [data-reveal]:not(.is-in), .js [data-stagger] > :not(.is-in) { opacity: 0; }
  .js [data-reveal].is-in { animation: rv-up 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal="lines"].is-in { animation: none; }
  .js [data-reveal="lines"].is-in .h1-line { animation: line-up 1.25s var(--ease) .05s backwards; }
  .js [data-reveal="lines"].is-in .h1-mask + .h1-mask .h1-line {
    animation: line-up 1.25s var(--ease) .17s backwards, text-sheen 7s var(--ease) 2s infinite;
  }
  .js [data-reveal="scale"].is-in { animation-name: rv-scale; animation-duration: 1.3s; animation-delay: .25s; }
  .js [data-reveal="left"].is-in { animation-name: rv-left; }
  .js [data-stagger] > .is-in { animation: rv-up .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 95ms + 60ms); }
  .js tbody[data-stagger] > .is-in { animation-name: rv-fade-left; }
  .js .hero [data-reveal].is-in:nth-child(2) { animation-delay: .08s; }
  .js .hero [data-reveal].is-in:nth-child(3) { animation-delay: .2s; }
  .js .hero [data-reveal].is-in:nth-child(4) { animation-delay: .32s; }
  .js .top { animation: top-in 1s var(--ease) backwards; }

  /* «печать» значений в панели параметров */
  .js .kv > .is-in dd { animation: type .8s steps(16) backwards; animation-delay: calc(var(--i, 0) * 95ms + 450ms); }
  .js .kv > .is-in dt { animation: rv-fade 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 95ms + 300ms); }

  /* живые мелочи */
  .hero:not(.has-warp) { animation: grid-drift 26s linear infinite; }
  .h1-mask + .h1-mask .h1-line { animation: text-sheen 7s var(--ease) infinite 2s; }
  @supports (animation-timeline: scroll()) {
    /* при прокрутке панель уходит быстрее текста — первый экран получает глубину */
    .hero-text { animation: par-text linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .hero-art { animation: par-art linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  }
  .spec::after { animation: scan 7s var(--ease) infinite 2.2s; }
  .led::after, .dot:not(.is-bad)::after { animation: ping 2.2s var(--ease) infinite; }
  .bar-dots i { animation: dots 2.4s steps(1) infinite; }
  .bar-dots i:nth-child(2) { animation-delay: .8s; }
  .bar-dots i:nth-child(3) { animation-delay: 1.6s; }
  .btn-shine::after { animation: shine 6s var(--ease) infinite 2.4s; }
  .plan.is-best::after { animation: sweep 4s linear infinite; }
  .is-in .label-line::after, .label-line.is-in::after { animation: grow 1.2s var(--ease) .35s backwards; }
  .steps > .is-in::after { animation: step-line 1.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 260ms + 450ms); }
  .dev-state::before { animation: blink-soft 2.4s ease-in-out infinite; }
  .status::before { animation: blink 1s steps(2) infinite; }
  .status.is-error::before, .status.is-done::before { animation: none; }
  .skel i { animation: shimmer 1.5s linear infinite; }

  /* окна: фон проявляется, окно мягко выезжает, содержимое — следом */
  .sheet { opacity: 0; transition: opacity .4s var(--ease); }
  .sheet.is-open { opacity: 1; }
  .sheet.is-closing { opacity: 0; transition-duration: .32s; }
  .sheet-box { opacity: 0; transform: translateY(30px) scale(.96); transition: transform .65s var(--ease), opacity .4s var(--ease); }
  .sheet.is-open .sheet-box { opacity: 1; transform: none; }
  .sheet.is-closing .sheet-box { opacity: 0; transform: translateY(18px) scale(.98); transition-duration: .32s; }
  .sheet.is-open .sheet-box > * { animation: rv-up .7s var(--ease) backwards; }
  .sheet.is-open .sheet-box > :nth-child(2) { animation-delay: .05s; }
  .sheet.is-open .sheet-box > :nth-child(3) { animation-delay: .1s; }
  .sheet.is-open .sheet-box > :nth-child(4) { animation-delay: .15s; }
  .sheet.is-open .sheet-box > :nth-child(5) { animation-delay: .2s; }
  .sheet.is-open .sheet-box > :nth-child(n+6) { animation-delay: .25s; }
  .view-in { animation: view-in .6s var(--ease) backwards; }
  .view-in > * { animation: rv-up .7s var(--ease) backwards; }
  .view-in > :nth-child(2) { animation-delay: .05s; }
  .view-in > :nth-child(3) { animation-delay: .1s; }
  .view-in > :nth-child(n+4) { animation-delay: .15s; }
  .code.is-in { animation: code-in .8s var(--ease) backwards; }
  #pay-done:not([hidden]) .done-mark { animation: pop .7s var(--spring) backwards; }
  #pay-done:not([hidden]) .done-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) .3s forwards; }
  #pay-done:not([hidden]) .done-mark::after { animation: ring 1.2s var(--ease) .3s; }
  .js .help-fab { animation: fab-in .9s var(--ease) 1.4s backwards; }
  .js .help-fab svg { animation: fab-nudge 1.1s var(--ease) 7s; }
  .toast { opacity: 0; transform: translate(-50%, 18px) scale(.97); transition: transform .5s var(--ease), opacity .35s var(--ease); }
  .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
}
@media print {
  .js [data-reveal], .js [data-stagger] > * { opacity: 1 !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@keyframes rv-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes rv-scale { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.94); } }
@keyframes rv-left { from { opacity: 0; transform: translate3d(-30px, 0, 0); } }
@keyframes rv-fade-left { from { opacity: 0; transform: translate3d(-16px, 0, 0); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes top-in { from { opacity: 0; transform: translateY(-100%); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } }
@keyframes grid-drift { to { background-position: 48px 48px, 48px 48px; } }
@keyframes fab-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fab-nudge { 20% { transform: rotate(-12deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.1); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes par-text { to { transform: translateY(40px); opacity: .35; } }
@keyframes par-art { to { transform: translateY(-70px); } }
@keyframes text-sheen { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@keyframes scan { 0% { transform: translateY(-100px); opacity: 0; } 8% { opacity: 1; } 55% { transform: translateY(520px); opacity: 1; } 56%, 100% { transform: translateY(520px); opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes dots { 0% { background: var(--accent); } 33% { background: var(--line-2); } }
@keyframes shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
@keyframes sweep { to { background-position: -300% 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes step-line { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .35; } }
@keyframes blink-soft { 50% { opacity: .3; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes view-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes code-in { from { opacity: 0; letter-spacing: .9em; filter: blur(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }

/* QR подписки в карточке устройства (кабинет открыт на компьютере — сканируешь телефоном) */
.dev-qr-body { display: grid; justify-items: center; gap: 10px; padding: 12px 14px 16px; }
.dev-qr-img { display: block; width: 220px; height: 220px; padding: 10px; background: #fff; }
.dev-qr-body .how-alt { max-width: 340px; margin: 0; text-align: center; }

/* сколько устройств занято из лимита подписки */
.devcount { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; }
.devcount b { color: var(--text); }
.devcount.is-full b:first-child { color: var(--accent); }

/* серверы — только у владельца */
.srv td:first-child { width: auto; }
.srv-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.srv-role { margin-top: 4px; color: var(--faint); font-size: 12px; font-weight: 400; }

/* поддержка на сайте: переписка в окне «Поддержка» */
.chat { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin: 0 0 16px; overscroll-behavior: contain; }
.msg { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-2); }
.msg-sup { background: var(--accent-dim); border-color: var(--accent); }
.msg-who { display: block; margin-bottom: 4px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.msg-sup .msg-who { color: var(--accent); }
.sheet-box .msg-text { margin: 0; color: var(--text); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-time { display: block; margin-top: 4px; color: var(--faint); font: 500 10px var(--mono); }
.field textarea {
  display: block; width: 100%; min-height: 104px; padding: 12px 14px; margin: 0; resize: vertical;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; outline: none;
  color: var(--text); font: 500 15px/1.45 var(--font); -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.field textarea::placeholder { color: var(--faint); }
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: #0c0d10; }
.help-fab.has-new::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--accent); }

/* способы входа в аккаунт (почта ↔ Telegram) в кабинете */
.logins { display: grid; gap: 4px; margin: 2px 0 14px; }
.login-row { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.login-kind { flex: none; width: 72px; color: var(--faint); font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.login-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--mono); font-size: 12px; }
.login-val.is-none { color: var(--faint); }
.login-row .link-btn { flex: none; padding: 4px 0; color: var(--accent); text-decoration-color: var(--accent-dim); }
