/* Shinpu VPN — тёмная тема, градиенты, стекло, анимации. Без внешних шрифтов и CDN (CSP: self). */
:root {
  --bg: #06060d;
  --bg2: #0c0c18;
  --text: #ecebf5;
  --muted: #9b9ab3;
  --dim: #6c6b86;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .035);
  --glass2: rgba(255, 255, 255, .06);
  --violet: #7c5cff;
  --blue: #4f7cff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --grad: linear-gradient(120deg, var(--violet), var(--blue) 40%, var(--cyan) 70%, var(--pink));
  --radius: 20px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.6 "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(124, 92, 255, .45); }

/* ---------- живой фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::after { /* сетка */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob.b1 { width: 560px; height: 560px; background: var(--violet); top: -160px; left: -120px; animation: float1 22s var(--ease) infinite alternate; }
.blob.b2 { width: 480px; height: 480px; background: var(--cyan); top: 20%; right: -160px; opacity: .35; animation: float2 26s var(--ease) infinite alternate; }
.blob.b3 { width: 520px; height: 520px; background: var(--pink); bottom: -220px; left: 30%; opacity: .3; animation: float3 30s var(--ease) infinite alternate; }
@keyframes float1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes float2 { to { transform: translate(-160px, 120px) scale(.9); } }
@keyframes float3 { to { transform: translate(-140px, -120px) scale(1.1); } }

/* ---------- раскладка ---------- */
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(460px, 100% - 32px); margin: 0 auto; }
main { padding: 32px 0 80px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.spacer { flex: 1; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: 14px; }
.mt { margin-top: 24px; }
.mt2 { margin-top: 48px; }

/* ---------- шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 6, 13, .55); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); background-size: 200% 200%; animation: shift 8s linear infinite; display: grid; place-items: center; box-shadow: 0 0 24px rgba(124, 92, 255, .6); }
.logo-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: .25s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--glass2); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- кнопки ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--glass2); color: var(--text); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { border: 0; background: var(--grad); background-size: 200% 200%; animation: shift 6s linear infinite; box-shadow: 0 10px 30px -8px rgba(124, 92, 255, .7); }
.btn.primary:hover { box-shadow: 0 14px 40px -6px rgba(79, 124, 255, .8); }
.btn.primary::after { /* блик */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
  animation: shine 3.8s var(--ease) infinite;
}
.btn.danger { border-color: rgba(251, 113, 133, .35); color: var(--red); background: rgba(251, 113, 133, .07); }
.btn.danger:hover { background: rgba(251, 113, 133, .14); }
.btn.sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { --h: 56px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
@keyframes shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- карточки ---------- */
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
}
.card.spot::before { /* подсветка за курсором */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .16), transparent 60%);
}
.card.spot:hover::before { opacity: 1; }
.card.glow { border: 1px solid transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; }
.card h2, .card h3 { margin: 0 0 6px; letter-spacing: -.02em; }
.card h3 { font-size: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .15)); border: 1px solid var(--line);
}
.icon svg { width: 22px; height: 22px; stroke: #fff; }

/* ---------- текст ---------- */
h1, h2 { letter-spacing: -.035em; line-height: 1.08; }
.grad { background: var(--grad); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 8s linear infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 4px; }

/* ---------- лендинг ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin: 22px 0 18px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero p.lead { margin-inline: auto; } .hero .row { justify-content: center; } }

.orb-wrap { position: relative; aspect-ratio: 1; width: min(460px, 100%); margin: 0 auto; }
.orb {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0, #b9a8ff 8%, var(--violet) 30%, #2a1f73 62%, #0b0b1f 80%);
  box-shadow: 0 0 80px rgba(124, 92, 255, .55), inset -30px -40px 80px rgba(0, 0, 0, .55);
  animation: bob 7s ease-in-out infinite;
}
.orb::after { /* меридианы */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .07) 22px 23px);
  mask-image: radial-gradient(circle, #000 60%, transparent 71%);
  animation: spin-bg 14s linear infinite;
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.ring.r1 { inset: 6%; animation: spin 26s linear infinite; }
.ring.r2 { inset: -2%; border-style: dashed; border-color: rgba(34, 211, 238, .22); animation: spin 40s linear infinite reverse; }
.ring .sat { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.ring.r2 .sat { background: var(--pink); box-shadow: 0 0 18px var(--pink); top: auto; bottom: 12%; left: 4%; }
.chip-float {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: rgba(12, 12, 24, .7); border: 1px solid var(--line); backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.chip-float.c1 { top: 10%; left: -4%; }
.chip-float.c2 { bottom: 16%; right: -6%; animation-delay: -2s; }
.chip-float.c3 { bottom: 2%; left: 10%; animation-delay: -4s; }
.chip-float i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-bg { to { background-position: 230px 0; } }
@keyframes bob { 50% { transform: translateY(-12px); } }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.stats-strip > div { background: rgba(10, 10, 20, .75); padding: 26px 20px; text-align: center; }
.stats-strip b { display: block; font-size: 32px; letter-spacing: -.03em; }
.stats-strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.section { padding: 80px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 14px 0 12px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.steps { counter-reset: s; }
.step { padding-top: 64px; }
.step::after { counter-increment: s; content: "0" counter(s); position: absolute; top: 20px; left: 28px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.price { display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 40px 28px; }
.price .big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 4px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
a.faq-link { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 18px 4px; font-weight: 600; font-size: 17px; color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a.faq-link small { color: var(--muted); font-weight: 400; font-size: 14px; }
a.faq-link::after { content: "↗"; margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .3s var(--ease), color .2s; }
a.faq-link:hover { color: var(--violet); }
a.faq-link:hover::after { transform: translate(3px, -3px); color: inherit; }
details.faq p { color: var(--muted); margin: 12px 0 0; animation: fade .4s var(--ease); }
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--dim); font-size: 14px; margin-top: 60px; }

/* ---------- формы ---------- */
.auth { padding: 6vh 0; }
.auth .card { padding: 36px; }
.auth h1 { font-size: 32px; margin: 0 0 6px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 18px 0 8px; font-weight: 500; }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28); color: var(--text); font-family: inherit; font-size: 16px; outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); background: rgba(0, 0, 0, .4); }
.input.code { text-align: center; font-size: 28px; letter-spacing: .5em; font-weight: 700; height: 64px; padding-left: .5em; }
.input.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meter { height: 5px; border-radius: 9px; background: var(--glass2); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 9px; transition: width .4s var(--ease), background .4s; }
.meter-label { font-size: 13px; margin-top: 6px; color: var(--dim); min-height: 20px; }
.alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.alt a { color: var(--text); font-weight: 600; border-bottom: 1px solid rgba(124, 92, 255, .6); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { flex: 1; min-width: 0; }

/* ---------- уведомления ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--glass2); animation: slide .5s var(--ease); font-size: 15px; }
.flash.ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.flash.err { border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.flash.warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.flash::before { content: "●"; font-size: 10px; margin-top: 6px; }
.flash.ok::before { color: var(--green); } .flash.err::before { color: var(--red); } .flash.warn::before { color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 40px); opacity: 0; padding: 12px 20px; border-radius: 14px; background: rgba(20, 20, 36, .92); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-weight: 600; z-index: 100; transition: .4s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- кабинет ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); margin: 18px 0 26px; }
.tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: .25s var(--ease); }
.tabs a.on { background: var(--glass2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.status { display: flex; gap: 28px; align-items: center; }
@media (max-width: 640px) { .status { flex-direction: column; text-align: center; } }
.ring-progress { position: relative; width: 150px; height: 150px; flex: none; }
.ring-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-progress .track { stroke: var(--glass2); }
.ring-progress .bar { stroke: url(#g); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring-progress .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-progress .val b { font-size: 38px; letter-spacing: -.04em; line-height: 1; }
.ring-progress .val span { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--glass2); }
.badge.ok { color: var(--green); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.badge.off { color: var(--muted); }
.badge.bad { color: var(--red); border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }
.badge.adm { color: #c4b5fd; border-color: rgba(124, 92, 255, .4); background: rgba(124, 92, 255, .12); }
.qr { width: 190px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px rgba(124, 92, 255, .5); }
.qr img { width: 100%; height: auto; }
.sub-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 720px) { .sub-grid { grid-template-columns: 1fr; justify-items: center; } }
.app-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.app-tabs button { padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer; font-family: inherit; font-weight: 500; font-size: 14px; transition: .25s var(--ease); }
.app-tabs button.on { color: var(--text); background: var(--glass2); border-color: rgba(124, 92, 255, .5); }
.app-pane { display: none; animation: fade .4s var(--ease); }
.app-pane.on { display: block; }
.app-pane ol { margin: 0; padding-left: 20px; color: var(--muted); }
.app-pane li { margin: 6px 0; }
.app-pane li b { color: var(--text); }
.empty { text-align: center; padding: 48px 28px; }
.empty .icon { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 20px; }
.empty .icon svg { width: 30px; height: 30px; }

/* ---------- таблица ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--dim); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 14px 12px; }
td { padding: 14px; border-top: 1px solid var(--line); }
tr.click { cursor: pointer; transition: background .2s; }
tr.click:hover { background: var(--glass); }
.kpi b { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips input { display: none; }
.chips label { margin: 0; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; color: var(--muted); font-weight: 600; transition: .2s var(--ease); }
.chips input:checked + label { color: var(--text); border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .14); }
.log { font-size: 14px; }
.log div { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.log time { color: var(--dim); flex: none; width: 130px; }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
.fade-in { animation: fade .7s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }
.err-code { font-size: clamp(90px, 18vw, 180px); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.faq-wrap { width: min(760px, 100% - 32px); margin: 0 auto; }
.big-icon { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 20px; } .big-icon svg { width: 30px; height: 30px; }
.logo, .chip-float { white-space: nowrap; }
.search { display: flex; gap: 10px; }
.search .input { flex: 1; }
@media (max-width: 520px) { .nav .wrap { gap: 10px; } .logo { font-size: 17px; } .chip-float { font-size: 12px; padding: 8px 10px; } .chip-float.c2 { right: 0; } .chip-float.c1 { left: 0; } }

/* ===== v2: фиксы и новые блоки ===== */
.chip-float svg { width: 16px; height: 16px; flex: none; stroke: currentColor; }
.chip-float.c2 svg { color: var(--amber); } .chip-float.c3 svg { color: var(--cyan); }
.hero > div:first-child { position: relative; z-index: 2; }
.orb-wrap { z-index: 1; }
@media (max-width: 1100px) { .chip-float.c1 { left: 0; } .chip-float.c2 { right: 0; } }

footer .foot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
footer a { color: var(--muted); transition: color .2s; } footer a:hover { color: var(--text); }

.link { color: var(--text); font-weight: 600; border-bottom: 1px solid rgba(124, 92, 255, .6); }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; min-height: 18px; }
.hint.bad { color: var(--red); } .hint.good { color: var(--green); }
.field { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; transition: color .25s; }
.field-icon svg { width: 18px; height: 18px; }
.field:focus-within .field-icon { color: #b9a8ff; }
.input.with-icon { padding-left: 44px; }
.input.with-toggle { padding-right: 48px; }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.toggle-pw:hover { color: var(--text); background: var(--glass2); }
.toggle-pw svg { width: 18px; height: 18px; }
.toggle-pw.on { color: #b9a8ff; }
.grid.tight { gap: 14px; }
.meter-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); height: 0; overflow: hidden; }
.meter-row.show { opacity: 1; transform: none; height: 22px; }
.meter-row .meter { flex: 1; margin: 0; }
.meter-row .meter-label { margin: 0; min-height: 0; width: 70px; text-align: right; }
.meter-label:empty { display: none; }

.auth-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; max-width: 1020px; margin: 0 auto; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: rgba(10, 10, 20, .5); }
.auth-split .auth-form { border-radius: 0; border: 0; padding: 44px; background: rgba(12, 12, 24, .82); }
.auth-side { position: relative; padding: 44px; overflow: hidden; background: radial-gradient(120% 80% at 0% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, .22), transparent 60%), rgba(8, 8, 18, .6); }
.auth-side-inner { position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(28px, 3vw, 38px); margin: 18px 0 26px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; align-items: center; }
.perks b { display: block; } .perks span:not(.icon) { color: var(--muted); font-size: 14px; }
.auth-orb { position: absolute; width: 340px; height: 340px; right: -110px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0, #b9a8ff 8%, var(--violet) 32%, #241a63 64%, transparent 72%); filter: blur(1px); opacity: .75; animation: bob 8s ease-in-out infinite; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-split .auth-form { padding: 30px 22px; } }

.nick-form { display: flex; gap: 8px; align-items: center; }
.nick-form .input { height: 44px; width: 220px; }
@media (max-width: 640px) { .nick-form { width: 100%; } .nick-form .input { flex: 1; width: auto; } }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.seg a { padding: 6px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: .2s; }
.seg a.on { background: var(--glass2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.usage { height: 8px; border-radius: 9px; background: var(--glass2); overflow: hidden; margin-top: 12px; min-width: 80px; }
.usage i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--grad); transition: width 1.2s var(--ease); }
.usage i.warn { background: linear-gradient(90deg, var(--amber), var(--red)); }
td .usage { margin: 0; }
.w-bar { width: 22%; }

.traffic-kpi > div { padding: 4px 0; }
.traffic-kpi b { display: block; font-size: 26px; letter-spacing: -.03em; }

.chart { margin-top: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-down { background: linear-gradient(#22d3ee, #4f7cff); } .lg-up { background: linear-gradient(#f472b6, #7c5cff); }
.chart svg { width: 100%; height: auto; max-height: 320px; overflow: visible; }
.chart .grid-line { stroke: rgba(255, 255, 255, .06); stroke-dasharray: 3 5; }
.chart .base-line { stroke: rgba(255, 255, 255, .14); }
.chart .grid-label, .chart .x-label { fill: var(--dim); font-size: 10px; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--ease) both; }
.chart .bar rect:not(.hit) { transition: filter .2s, opacity .2s; }
.chart .bar .hit { fill: transparent; }
.chart svg:hover .bar:not(:hover) rect:not(.hit) { opacity: .55; }
.chart .bar:hover rect:not(.hit) { filter: brightness(1.25) drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }
.chart-foot { margin-top: 8px; font-size: 13px; }
.chart-empty { padding: 40px 10px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.chart-tip { position: fixed; z-index: 120; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: rgba(16, 16, 30, .95); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -120%); transition: opacity .15s; white-space: nowrap; }
.chart-tip.show { opacity: 1; }
@keyframes grow { from { transform: scaleY(0); } }
.alert-card { border-color: rgba(251, 191, 36, .35); background: linear-gradient(135deg, rgba(251, 191, 36, .07), transparent 60%), var(--glass); }
.warn-icon { background: linear-gradient(135deg, rgba(251, 191, 36, .3), rgba(251, 113, 133, .2)); }
.ip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-list .badge { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ===== тарифы ===== */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .45); box-shadow: 0 30px 70px -25px rgba(124, 92, 255, .55); }
.plan.featured { border: 1px solid transparent; background: linear-gradient(rgba(14, 12, 30, .92), rgba(14, 12, 30, .92)) padding-box, var(--grad) border-box; transform: translateY(-8px); }
.plan.featured:hover { transform: translateY(-14px); }
.plan.best { background: linear-gradient(160deg, rgba(34, 211, 238, .10), transparent 45%), var(--glass); }
.plan.chosen { box-shadow: 0 0 0 2px rgba(124, 92, 255, .8), var(--shadow); }
.plan-glow { position: absolute; inset: -40% -20% auto; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(124, 92, 255, .45), transparent); filter: blur(20px); animation: bob 6s ease-in-out infinite; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-title { font-weight: 700; font-size: 17px; color: var(--muted); }
.plan-tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; color: #fff; background: var(--grad); background-size: 200% 200%; animation: shift 6s linear infinite; white-space: nowrap; }
.plan-tag.soft { background: rgba(52, 211, 153, .14); color: var(--green); border: 1px solid rgba(52, 211, 153, .3); animation: none; }
.plan.best .plan-tag { background: linear-gradient(120deg, var(--cyan), var(--green)); }
.plan-price { display: flex; align-items: flex-start; gap: 4px; line-height: 1; margin-top: 6px; }
.plan-price .amount { font-size: 54px; font-weight: 800; letter-spacing: -.05em; }
.plan.featured .plan-price .amount, .plan.best .plan-price .amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .cur { font-size: 22px; font-weight: 700; margin-top: 6px; color: var(--muted); }
.plan-sub { display: flex; align-items: baseline; gap: 10px; min-height: 24px; color: var(--muted); font-size: 15px; }
.plan-sub .per b { color: var(--text); }
.plan-sub .old { text-decoration: line-through; color: var(--dim); font-size: 14px; }
.plan-save { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--green); padding: 6px 10px; border-radius: 10px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .2); }
.plan-save svg { width: 14px; height: 14px; }
.plan-save.muted-save { color: var(--muted); background: var(--glass2); border-color: var(--line); }
.plan-features { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; flex: 1; }
.plan-features li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); }
.plan-features li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 6px; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .25)); }
.plan-features li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-btn { margin-top: 8px; }
.ghost-done { cursor: default; color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.ghost-done:hover { transform: none; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 4px; }
.order-card .row { align-items: center; }
.chosen-plan { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .35); font-size: 14px; }
.chosen-plan svg { width: 16px; height: 16px; color: var(--amber); }
form.inline { display: inline-block; margin-left: 6px; }

/* ===== v4: цифры, прокси, запомнить меня ===== */
.plan-price { align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .amount { font-size: 52px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding-right: 2px; }
.plan-price .cur { font-size: 26px; margin-top: 0; font-weight: 700; color: var(--text); opacity: .8; }
.plan-price .for { flex-basis: 100%; font-size: 13px; color: var(--dim); margin-top: 6px; }
.plan-sub { font-variant-numeric: tabular-nums; }
.plan-tag { letter-spacing: .01em; }
.tg-icon { background: linear-gradient(135deg, rgba(34, 158, 217, .45), rgba(34, 211, 238, .2)); }
.small-qr { grid-template-columns: 1fr auto; gap: 18px; }
.small-qr .qr { width: 150px; padding: 10px; }
@media (max-width: 720px) { .small-qr { grid-template-columns: 1fr; } }
.ext-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; }
.ext-grid code, .copy-mini code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); word-break: break-all; }
.copy-mini { display: flex; gap: 8px; align-items: center; }
.copy-mini .btn { --h: 32px; padding: 0 10px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; cursor: pointer; color: var(--muted); font-size: 15px; user-select: none; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); display: grid; place-items: center; transition: .2s var(--ease); flex: none; }
.check-row input:checked + .check-box { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(124, 92, 255, .5); }
.check-row input:checked + .check-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-row input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(124, 92, 255, .4); }
.plan-title { white-space: nowrap; }
.plan-top { min-height: 28px; }
.plan-price .disc { align-self: center; margin-left: 6px; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 99px; color: var(--green); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.ext-grid code { justify-self: start; }
.small-qr .copy-field .input { font-size: 12px; }
/* выравнивание карточек: одинаковая высота каждой строки */
.plan.featured, .plan.featured:hover { transform: none; }
.plan.featured:hover { transform: translateY(-6px); }
.plan-top { height: 30px; min-height: 0; }
.plan-price { height: 62px; margin-top: 4px; flex-wrap: nowrap; align-items: center; }
.plan-price .for { display: none; }
.plan-for { height: 18px; font-size: 13px; color: var(--dim); margin-top: -6px; }
.plan-sub { height: 24px; min-height: 0; }
.plan-save { height: 32px; box-sizing: border-box; }

/* ---------- фиксы 2026-12-02 ---------- */
/* якоря (#features и т.д.) не прячутся под липкую шапку */
html { scroll-padding-top: 84px; }
/* ничего не вылезает вбок на телефоне (вращающиеся кольца, размытые пятна) */
html, body { overflow-x: clip; }
main { overflow-x: clip; }
/* спутники ровно на своих орбитах */
.ring .sat { top: 0; left: 50%; transform: translate(-50%, -50%); }
.ring.r2 .sat { top: auto; bottom: 14.645%; left: 14.645%; transform: translate(-50%, 50%); }

/* ---------- тарифы: слайдер со стрелками на телефоне ---------- */
.plans-slider { position: relative; }
.slide-btn, .slide-dots { display: none; }
@media (max-width: 600px) {
  .plans-slider .plans {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 14px 7% 18px; margin: 0 -20px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .plans-slider .plans::-webkit-scrollbar { display: none; }
  .plans-slider .plan { flex: 0 0 86%; scroll-snap-align: center; }
  .plans-slider .plan.reveal { opacity: 1; transform: none; }
  .plans-slider .plan-glow { display: none; }
  .plans-slider .plan { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgba(14, 12, 30, .72); box-shadow: none; }
  .plans-slider .plan:hover, .plans-slider .plan.featured:hover { transform: none; }
  .slide-btn {
    display: grid; place-items: center; position: absolute; top: 46%; z-index: 3; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 12, 30, .8); color: var(--text); cursor: pointer;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
    transition: opacity .25s, transform .2s var(--ease);
  }
  .slide-btn svg { width: 18px; height: 18px; stroke: currentColor; }
  .slide-btn.prev { left: -8px; } .slide-btn.prev svg { transform: rotate(180deg); }
  .slide-btn.next { right: -8px; }
  .slide-btn:active { transform: scale(.92); }
  .slide-btn[disabled] { opacity: 0; pointer-events: none; }
  .slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .slide-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: width .3s var(--ease), background .3s; }
  .slide-dots span.on { width: 22px; background: var(--grad); }
}
