/* ==========================================================================
   SQUAD VPN — design system
   Dark / black / violet. No frameworks, no build step.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #07060a;
  --bg-soft: #0b0910;
  --surface: #100d17;
  --surface-2: #15111f;
  --surface-3: #1b1627;

  --line: rgba(168, 85, 247, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(168, 85, 247, 0.38);

  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --pink: #e879f9;

  --text: #f5f2fb;
  --text-dim: #b8b0c9;
  --text-mute: #7d748f;

  --ok: #34d399;
  --danger: #f87171;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.18), 0 24px 70px -30px rgba(124, 58, 237, 0.75);
  --shadow-card: 0 20px 50px -32px rgba(0, 0, 0, 0.9);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background: violet glows + particle field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(800px 500px at 88% 4%, rgba(168, 85, 247, 0.09), transparent 62%),
    radial-gradient(700px 700px at 50% 110%, rgba(91, 33, 182, 0.10), transparent 65%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 24%, rgba(0, 0, 0, 0.68) 100%);
  opacity: 0.85;
}

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.8;
}

img, svg { display: block; max-width: 100%; }

/* hidden всегда важнее display из компонентов (.btn, .auth-form и т.д.) */
[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; border: 0; background: none; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(168, 85, 247, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: #2a2138 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a2138;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3b2f52; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; position: relative; }
.section--tight { padding-block: 64px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple));
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 16px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.lead {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.65;
}

.text-gradient {
  background: linear-gradient(100deg, #fff 10%, var(--purple-bright) 55%, var(--violet) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-mute); }
.small { font-size: 13.5px; }

/* ---------- buttons ---------- */
.btn {
  --btn-h: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #6d28d9 100%);
  box-shadow: 0 10px 30px -12px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.btn--soft {
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.btn--soft:hover { background: rgba(168, 85, 247, 0.2); }

.btn--danger {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn--danger:hover { background: rgba(248, 113, 113, 0.16); }

.btn--block { width: 100%; }
.btn--sm { --btn-h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { --btn-h: 54px; padding: 0 30px; font-size: 15.5px; }

.btn[disabled],
.btn.is-disabled { opacity: 0.55; pointer-events: none; }

.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.logo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(150deg, #a855f7, #6d28d9 65%, #4c1d95);
  box-shadow: 0 6px 22px -6px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: none;
}
.logo__mark svg { width: 19px; height: 19px; }
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0.7;
}
.logo__suffix { color: var(--purple-bright); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 6, 10, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  color: var(--text);
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 55;
  padding: 18px 24px 26px;
  background: rgba(9, 7, 14, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 80px;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(168, 85, 247, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.badge__dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
  font-size: 9px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.65;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 13px;
}
.hero__note svg { color: var(--ok); flex: none; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-mute);
}

/* hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 68%);
  filter: blur(28px);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.14);
  animation: spin 26s linear infinite;
  border-top-color: rgba(192, 132, 252, 0.5);
  border-left-color: rgba(168, 85, 247, 0.05);
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-card {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(30, 23, 44, 0.94), rgba(14, 11, 21, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.status-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.status-card__timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--text-mute);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.status-card__server {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-block: 20px;
}
.status-card__server .flag {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  font-size: 20px;
  flex: none;
}
.status-card__server strong { display: block; font-size: 15.5px; }
.status-card__server span { font-size: 12.5px; color: var(--text-mute); }

.toggle {
  margin-left: auto;
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #241c33;
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease);
  flex: none;
}
.toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6b7280;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.toggle.is-on {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-color: transparent;
  box-shadow: 0 0 18px -2px rgba(168, 85, 247, 0.6);
}
.toggle.is-on span { transform: translateX(22px); background: #fff; }

.status-card__ip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.status-card__ip span { display: block; font-size: 11.5px; color: var(--text-mute); }
.status-card__ip strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.1);
}
.wave i {
  flex: 1;
  min-height: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--purple-bright), rgba(124, 58, 237, 0.35));
  animation: wave 1.6s ease-in-out infinite alternate;
}
@keyframes wave {
  from { height: 12%; opacity: 0.55; }
  to { height: 100%; opacity: 1; }
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(21, 17, 31, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px #000;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.float-chip--1 { top: 8%; right: -2%; }
.float-chip--2 { bottom: 12%; left: -4%; animation-delay: -3s; }

/* ---------- logos / trust ---------- */
.trust {
  padding-block: 26px;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 34px;
}
.trust__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.trust__item svg { color: var(--purple); flex: none; }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(21, 17, 31, 0.9), rgba(12, 10, 18, 0.9));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.feature:hover::after { opacity: 1; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 20px;
  color: var(--purple-bright);
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.22), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- pricing ---------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 26px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}
.billing__btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mute);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.billing__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.9);
}
.billing__save {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 46px;
}

.plan--trial {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  padding: 22px 28px;
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(20, 16, 29, 0.94) 55%),
    rgba(16, 13, 23, 0.92);
  border-color: var(--line-strong);
}
.plan--trial:hover { transform: translateY(-3px); }
.plan--trial .plan__badge {
  position: static;
  transform: none;
  padding: 5px 11px;
  color: #f3e8ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.trial-card__body { flex: 1; min-width: 220px; }
.plan--trial .plan__desc { min-height: 0; margin-top: 4px; }
.plan--trial .plan__price { margin: 0 0 0 auto; }
.plan--trial .plan__value { font-size: 34px; }
.trial-card__btn { flex: none; }

@media (max-width: 780px) {
  .plan--trial { flex-direction: column; align-items: flex-start; }
  .plan--trial .plan__price { margin: 0; }
  .trial-card__btn { width: 100%; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 16, 29, 0.92), rgba(10, 8, 15, 0.94));
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.plan:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(28, 20, 43, 0.97), rgba(13, 10, 20, 0.98)) padding-box,
    linear-gradient(160deg, rgba(168, 85, 247, 0.9), rgba(124, 58, 237, 0.25) 40%, rgba(168, 85, 247, 0.65)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 90px -50px rgba(124, 58, 237, 0.95);
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(600px 200px at 50% 0%, rgba(168, 85, 247, 0.16), transparent 70%);
  pointer-events: none;
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a0b2e;
  background: linear-gradient(100deg, #e9d5ff, #c084fc);
  box-shadow: 0 8px 22px -10px rgba(192, 132, 252, 0.9);
}

.plan__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan__desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-mute);
  min-height: 40px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}
.plan__value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__currency { font-size: 20px; font-weight: 600; color: var(--text-dim); }
.plan__period { font-size: 13.5px; color: var(--text-mute); }
.plan__note {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--purple-bright);
  font-weight: 600;
}

.plan__list {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text-dim);
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan__list svg {
  flex: none;
  margin-top: 4px;
  color: var(--purple);
}
.plan__list li.is-off { color: var(--text-mute); opacity: 0.65; }
.plan__list li.is-off svg { color: var(--text-mute); }

.plan .btn { margin-top: auto; }

.pricing__foot {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}
.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 16px;
  display: block;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq__item[open] { border-color: var(--line-strong); background: rgba(168, 85, 247, 0.05); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 650;
  font-size: 15px;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 300;
  color: var(--purple-bright);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body {
  padding: 0 22px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(168, 85, 247, 0.28), transparent 70%),
    linear-gradient(160deg, #1a1226, #0c0912);
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 60px 120px -70px rgba(124, 58, 237, 0.9);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta h2 { position: relative; font-size: clamp(26px, 3.4vw, 40px); }
.cta p { position: relative; margin: 14px auto 0; max-width: 520px; color: var(--text-dim); }
.cta .btn { position: relative; margin-top: 30px; }

/* ---------- footer ---------- */
.footer {
  padding-block: 56px 34px;
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer__about { max-width: 300px; }
.footer__about p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.65;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  padding-block: 6px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--purple-bright); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer__bottom .demo-tag {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--purple-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Forms / auth
   ========================================================================== */
.field { display: grid; gap: 7px; }
.field__label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-dim);
}
.field__control { position: relative; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6b6279; }
.input:hover { border-color: rgba(168, 85, 247, 0.28); }
.input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
}
.input.is-invalid { border-color: rgba(248, 113, 113, 0.7); }
.input--password { padding-right: 48px; }

.field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-mute);
}
.field__toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.field__error {
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.checkbox input:checked {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: transparent;
}
.checkbox input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.checkbox a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 2px; }

.form-alert {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
.form-alert.is-visible { display: flex; }
.form-alert--ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

/* auth layout */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 20% 20%, rgba(124, 58, 237, 0.4), transparent 62%),
    radial-gradient(600px 500px at 80% 90%, rgba(168, 85, 247, 0.24), transparent 65%),
    #0a0810;
  border-right: 1px solid var(--line);
}
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 40% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, #000, transparent 78%);
  pointer-events: none;
}
.auth__aside > * { position: relative; z-index: 1; }
.auth__quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 460px;
  margin-top: auto;
}
.auth__points { display: grid; gap: 14px; margin-top: 34px; }
.auth__points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--text-dim);
}
.auth__points svg { color: var(--purple-bright); flex: none; }

.auth__main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  position: relative;
}
.auth__card {
  width: 100%;
  max-width: 430px;
  animation: rise 0.6s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.auth__head h1 {
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.03em;
}
.auth__head p { margin-top: 10px; color: var(--text-mute); font-size: 14px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  margin: 28px 0 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}
.tabs__btn {
  padding: 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mute);
  transition: color 0.2s, background 0.2s;
}
.tabs__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 18px -8px rgba(124, 58, 237, 0.9);
}

.auth-form { display: grid; gap: 16px; }
.auth-form .btn { margin-top: 6px; }
.auth__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
}
.auth__foot a { color: var(--purple-bright); font-weight: 650; }

.verify { text-align: center; animation: rise 0.45s var(--ease) both; }
.verify__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: var(--purple-bright);
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.22), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.verify h2 { font-size: 24px; }
.verify > p { margin: 10px 0 22px; color: var(--text-mute); font-size: 13.5px; line-height: 1.6; }
.verify > p strong { color: var(--text); word-break: break-all; }
.verify .auth-form { text-align: left; }
.verify__code {
  height: 58px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 12px;
  padding-left: 16px;
}
.verify__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
#verify-hint { margin-top: 10px; }
.verify__actions .btn { white-space: nowrap; }

.pending-plan {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(168, 85, 247, 0.16), rgba(124, 58, 237, 0.06));
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--text-dim);
}
.pending-plan.is-visible { display: flex; }
.pending-plan strong { color: var(--text); }

/* password strength */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}
.strength i {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}
.strength[data-level="1"] i:nth-child(-n + 1) { background: #f87171; }
.strength[data-level="2"] i:nth-child(-n + 2) { background: #fbbf24; }
.strength[data-level="3"] i:nth-child(-n + 3) { background: #a855f7; }
.strength[data-level="4"] i { background: #34d399; }

/* ==========================================================================
   Profile / dashboard
   ========================================================================== */
.dash {
  padding-top: calc(var(--header-h) + 44px);
  padding-bottom: 70px;
  min-height: 100vh;
}
.dash__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}
.dash__title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.dash__sub { margin-top: 8px; color: var(--text-mute); font-size: 14px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}
.user-chip__name { font-size: 13.5px; font-weight: 700; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #a855f7, #6d28d9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: none;
}
.avatar--lg { width: 62px; height: 62px; font-size: 22px; border-radius: 18px; }

.dash__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(21, 17, 31, 0.92), rgba(11, 9, 16, 0.95));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}
.card--glow {
  border-color: rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(168, 85, 247, 0.14), transparent 70%),
    linear-gradient(175deg, rgba(24, 18, 36, 0.95), rgba(11, 9, 16, 0.96));
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card__hint { font-size: 12px; color: var(--text-mute); }

.account { display: flex; align-items: center; gap: 18px; }
.account__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.account__email { margin-top: 4px; font-size: 13.5px; color: var(--text-mute); word-break: break-all; }

.kv { display: grid; gap: 12px; margin-top: 22px; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv__key { color: var(--text-mute); }
.kv__val { font-weight: 650; text-align: right; }

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.sub-plan {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-plan__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sub-plan__price { font-size: 14px; color: var(--text-mute); margin-top: 4px; }

.progress {
  margin-top: 22px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
  transition: width 0.8s var(--ease);
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-mute);
}

.pay-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  font-size: 12.5px;
  color: var(--text-dim);
}
.pay-pending__spinner {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.3);
  border-top-color: var(--purple-bright);
  animation: spin 0.9s linear infinite;
}
.pay-pending .btn { margin-left: 0; flex: none; }
.pay-pending #pay-cancel { margin-left: auto; }

.key-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--line-strong);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--purple-bright);
  overflow-x: auto;
  white-space: nowrap;
}
.key-box code { flex: 1; }

.sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-link__input {
  height: 44px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--purple-bright);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex: none;
}
.icon-btn:hover { color: var(--purple-bright); border-color: var(--line-strong); background: rgba(168, 85, 247, 0.12); }

.devices { display: grid; gap: 10px; }
.device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.device__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-bright);
  flex: none;
}
.device__name { font-size: 13.5px; font-weight: 650; }
.device__meta { font-size: 11.5px; color: var(--text-mute); }
.device__remove {
  margin-left: auto;
  color: var(--text-mute);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.device__remove:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.1); }
.device--empty {
  justify-content: center;
  color: var(--text-mute);
  font-size: 13px;
  border-style: dashed;
  padding-block: 20px;
}

.add-device {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.add-device .input { height: 42px; }
.add-device .btn { --btn-h: 42px; }

.empty-state { text-align: center; padding: 8px 0 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* modal dialog */
dialog.modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(175deg, #17121f, #0b0910);
  color: var(--text);
  box-shadow: 0 60px 140px -50px #000;
  overflow: auto;
}
dialog.modal::backdrop {
  background: rgba(4, 3, 7, 0.75);
  backdrop-filter: blur(6px);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(18, 14, 26, 0.96);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.modal__head h3 { font-family: var(--font-display); font-size: 17px; }
.modal__body { padding: 24px 26px 28px; }
.modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.modal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* checkout (оплата) */
#checkout-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.checkout-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkout-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.checkout-plan:hover { border-color: var(--line-strong); }
.checkout-plan.is-selected {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35);
}
.checkout-plan__name { font-weight: 750; font-size: 14px; }
.checkout-plan__devices { font-size: 11.5px; color: var(--text-mute); }
.checkout-plan__price {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.checkout-plan.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.checkout-plan.is-locked:hover { border-color: var(--line-soft); }
.checkout-plan__flag {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.checkout-note {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 12.5px;
  line-height: 1.5;
}
.checkout-note--ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
}
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.checkout-bar .billing { margin: 0; }
.checkout-methods {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}
.checkout-method {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-mute);
  transition: color 0.2s, background 0.2s;
}
.checkout-method.is-active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.checkout-promo {
  margin-top: 18px;
}
.checkout-promo__label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}
.checkout-promo__row {
  display: flex;
  gap: 8px;
}
.checkout-promo__row .input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}
.checkout-promo__status {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-mute);
}
.checkout-promo__status.is-ok { color: #6ee7b7; }
.checkout-promo__status.is-error { color: #fca5a5; }
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text-dim);
}
.checkout-total strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
#checkout-pay { margin-top: 16px; }

/* toast */
.toast-wrap {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(24, 19, 34, 0.97);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -20px #000;
  font-size: 13.5px;
  font-weight: 600;
  animation: toast-in 0.35s var(--ease) both;
  backdrop-filter: blur(12px);
}
.toast.is-out { animation: toast-out 0.25s var(--ease) forwards; }
.toast svg { flex: none; margin-top: 2px; color: var(--purple-bright); }
.toast--ok svg { color: var(--ok); }
.toast--error svg { color: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

/* reveal on scroll: скрываем только когда JS точно работает */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { min-height: 400px; order: 2; }
  .hero { padding-top: calc(var(--header-h) + 52px); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
  .dash__grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__actions .btn--ghost { display: none; }
  .burger { display: grid; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .checkout-plans { grid-template-columns: 1fr; }
  .checkout-bar { align-items: stretch; flex-direction: column; }
  .checkout-methods { justify-content: center; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding-inline: 18px; }
  .section { padding-block: 66px; }
  .features { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .stats { gap: 22px; }
  .cta { padding: 44px 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dash__top { align-items: flex-start; flex-direction: column; }
  .user-chip { width: 100%; justify-content: space-between; padding-right: 6px; }
  .header__actions .user-chip { display: none; }
  .card { padding: 20px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .auth__main { padding: 28px 18px 60px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
