:root {
  color-scheme: dark;
  --bg: #080d1a;
  --bg-2: #0d1430;
  --surface: rgba(18, 27, 56, 0.76);
  --surface-strong: rgba(25, 37, 78, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f4f7ff;
  --muted: #aeb9dc;
  --muted-2: #7f8bb1;
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(138, 165, 255, 0.35);
  --primary: #7e9cff;
  --primary-strong: #5b78ff;
  --primary-soft: rgba(126, 156, 255, 0.16);
  --success: #35d08a;
  --success-soft: rgba(53, 208, 138, 0.15);
  --danger: #ff6f9d;
  --danger-soft: rgba(255, 111, 157, 0.14);
  --warning: #ffbf5b;
  --warning-soft: rgba(255, 191, 91, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
html,
body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(82, 116, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(91, 120, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 70%);
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.94; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.18; letter-spacing: -0.02em; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.main-content {
  display: grid;
  gap: 24px;
  padding: 32px 0 56px;
}

.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.muted { color: var(--muted); }
.text-small { font-size: 12px; }
.compact-grid { margin-top: 0; }
.inline-form { display: inline-flex; margin: 0; }

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 23, 0.72);
  backdrop-filter: blur(16px);
}

.site-header { position: sticky; top: 0; padding: 14px 0; }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; padding: 20px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #071024;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #dbe5ff, #7e9cff 55%, #5b78ff);
  box-shadow: 0 12px 28px rgba(96, 130, 255, 0.24);
}
.brand__copy { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 20px; font-weight: 850; letter-spacing: -0.02em; }
.brand__tagline { color: var(--muted); font-size: 13px; }

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.08);
}

.card,
.section-shell,
.premium-card,
.mini-card,
.mini-plan,
.result-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.058), rgba(255,255,255,0.024));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card,
.section-shell { border-radius: var(--radius-lg); padding: 28px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border-color: rgba(126, 156, 255, 0.16);
  background:
    radial-gradient(circle at 12% 8%, rgba(126,156,255,.20), transparent 21rem),
    linear-gradient(135deg, rgba(18, 27, 56, 0.96), rgba(8, 13, 28, 0.9));
}
.hero--premium { position: relative; }
.hero--premium::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -150px;
  border-radius: 999px;
  background: rgba(126, 156, 255, 0.13);
  filter: blur(8px);
}
.hero__content,
.hero__panel { position: relative; z-index: 1; }
.hero__panel { display: flex; align-items: center; }
.hero h1 { margin: 16px 0 18px; max-width: 11ch; }
.hero p { color: var(--muted); font-size: 18px; max-width: 62ch; }

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-brand-lockup__image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #050505;
  box-shadow: 0 18px 40px rgba(0,0,0,0.34);
}
.hero-brand-lockup__text { display: flex; flex-direction: column; gap: 8px; }
.hero-brand-lockup__title { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  color: #afc1ff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(126,156,255,.24);
  border-radius: 999px;
  color: #dce5ff;
  background: rgba(126,156,255,.105);
  font-size: 13px;
  font-weight: 700;
}
.hero-actions { margin-top: 24px; }

.mini-card {
  width: 100%;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(126,156,255,.18), transparent 50%),
    rgba(19, 28, 58, .78);
}
.mini-card__label { margin-bottom: 14px; color: #c2cfff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mini-list { margin: 0; padding-left: 18px; color: var(--muted); }
.mini-list li + li { margin-top: 10px; }
.mini-list--check { list-style: none; padding-left: 0; }
.mini-list--check li { position: relative; padding-left: 28px; }
.mini-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #071024;
  background: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.section-shell { display: grid; gap: 22px; }
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .8fr);
  gap: 22px;
  align-items: end;
}
.section-header h2 { margin: 8px 0 0; }
.section-header p { margin: 0; }
.section-label { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }

.steps-grid-premium,
.plans-grid-premium,
.info-docs-grid,
.grid-2,
.grid-3,
.plan-grid {
  display: grid;
  gap: 18px;
}
.steps-grid-premium,
.plans-grid-premium,
.grid-3,
.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-docs-grid,
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.premium-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(126,156,255,.08), rgba(255,255,255,.025));
}
.premium-card h3 { margin-bottom: 10px; }
.premium-card p { margin-bottom: 0; color: var(--muted); }
.premium-card--featured { border-color: var(--line-strong); transform: translateY(-4px); }
.premium-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #071024;
  background: linear-gradient(135deg, #e9efff, #99b2ff);
  font-size: 12px;
  font-weight: 850;
}
.premium-card__index,
.premium-card__topline { color: #9fb4ff; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.premium-card__days { margin-top: 10px; font-size: 34px; font-weight: 900; letter-spacing: -0.04em; }
.premium-card__title { margin-top: 8px; color: var(--muted); min-height: 42px; }
.premium-card__price { margin-top: 16px; font-size: 22px; font-weight: 900; }
.info-doc-text { color: var(--muted); }

.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
}
.info-strip h2 { margin: 8px 0 10px; }
.info-strip__timeline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.timeline-point {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.timeline-point--active { color: var(--text); border-color: rgba(53,208,138,.34); background: var(--success-soft); }
.timeline-line { height: 2px; background: var(--line); }
.timeline-line--active { background: linear-gradient(90deg, rgba(53,208,138,.3), rgba(53,208,138,.7)); }

.auth-card { max-width: 540px; margin: 0 auto; }
.form-stack,
.form-inline,
.action-row,
.actions { display: flex; gap: 12px; }
.form-stack { flex-direction: column; }
.form-stack--edit { margin-top: 12px; }
.form-inline { align-items: center; flex-wrap: wrap; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.action-row,
.actions { align-items: center; flex-wrap: wrap; }
.actions { margin-top: 18px; }
.form-stack label,
.form-inline input,
.form-stack input,
.form-stack select { width: 100%; }
label span { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5, 9, 20, 0.72);
  color: var(--text);
  outline: none;
}
input:focus,
select:focus { border-color: rgba(126,156,255,.78); box-shadow: 0 0 0 4px rgba(126,156,255,.11); }
select option { background: #0d1430; color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(126,156,255,.36);
  border-radius: 15px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(91, 120, 255, .24);
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.btn--danger { background: var(--danger-soft); border-color: rgba(255,111,157,.38); color: #ffc1d4; box-shadow: none; }
.btn--warning { background: linear-gradient(180deg, #ffd38b, #ffad39); border-color: rgba(255,191,91,.5); color: #231709; }
.btn--attention { background: linear-gradient(180deg, #9ab7ff, #5b86ff); border-color: rgba(173,196,255,.45); box-shadow: 0 16px 34px rgba(83,120,255,.30); }
.btn--small { min-height: 38px; padding: 0 12px; border-radius: 13px; font-size: 14px; }
.btn--large { min-height: 54px; padding: 0 22px; font-size: 16px; }

.flash {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.flash--success { background: var(--success-soft); border-color: rgba(53,208,138,.28); }
.flash--error { background: var(--danger-soft); border-color: rgba(255,111,157,.28); }

.data-list { display: grid; gap: 0; margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-list div:first-child { padding-top: 0; }
.data-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; text-align: right; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 800; }
tbody tr:hover { background: rgba(255,255,255,.025); }
code,
.code-block {
  display: inline-block;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  padding: 8px 10px;
  border-radius: 12px;
}
.code-block { display: block; overflow: auto; }

.badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: #d8def6;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.badge--success,
.status-chip--success { background: var(--success-soft); color: #93f0c1; border-color: rgba(53,208,138,.32); }
.badge--danger,
.status-chip--danger { background: var(--danger-soft); color: #ffc1d4; border-color: rgba(255,111,157,.32); }
.badge--info { background: var(--primary-soft); color: #c4d0ff; border-color: rgba(126,156,255,.32); }

.empty-state {
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.025);
}

.plain-list { margin: 0; padding-left: 20px; color: var(--muted); }
.plain-list li + li { margin-top: 8px; }
.footer-title { font-weight: 850; margin-bottom: 4px; }
.footer-text { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.plan-card { display: block; position: relative; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card__body,
.mini-plan {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.plan-card input:checked + .plan-card__body {
  border-color: rgba(126,156,255,.78);
  background: rgba(126,156,255,.11);
  box-shadow: 0 0 0 1px rgba(126,156,255,.22) inset;
}
.plan-card__days,
.mini-plan__days { font-size: 20px; font-weight: 900; }
.plan-card__title,
.mini-plan__title { color: var(--muted); min-height: 42px; }
.plan-card__price,
.mini-plan__price { margin-top: auto; font-weight: 850; }
.provider-card--disabled { opacity: 0.55; cursor: not-allowed; }

.password-field { position: relative; }
.password-field input { padding-right: 116px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  cursor: pointer;
}
.password-toggle__icon { width: 18px; height: 18px; flex: 0 0 18px; }
.password-toggle__icon--hide { display: none; }
.password-field--visible .password-toggle__icon--show { display: none; }
.password-field--visible .password-toggle__icon--hide { display: inline-block; }
.password-toggle__label { font-size: 12px; font-weight: 800; white-space: nowrap; }

.result-shell { display: grid; place-items: center; min-height: 54vh; }
.result-card {
  width: min(760px, 100%);
  text-align: center;
  padding: 42px 32px;
  border-radius: var(--radius-lg);
}
.result-card__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
}
.result-shell--success .result-card__icon { background: var(--success-soft); color: #93f0c1; border: 1px solid rgba(53,208,138,.28); }
.result-shell--error .result-card__icon { background: var(--danger-soft); color: #ffc1d4; border: 1px solid rgba(255,111,157,.28); }
.result-card p { max-width: 58ch; margin: 0 auto 24px; }
.actions--centered { justify-content: center; }

.payment-hero,
.payment-action-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  gap: 22px;
  align-items: center;
  border-color: rgba(126,156,255,.2);
  background:
    radial-gradient(circle at top left, rgba(126,156,255,.18), transparent 42%),
    linear-gradient(180deg, rgba(19, 28, 58, .94), rgba(9, 14, 30, .96));
}
.payment-hero h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 50px); }
.payment-hero__note {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(126,156,255,.22);
  background: rgba(126,156,255,.09);
}
.payment-hero__note p { margin: 8px 0 0; color: var(--muted); }
.payment-action-banner__eyebrow { display: inline-block; margin-bottom: 10px; color: #afc1ff; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.payment-action-banner h2 { margin: 0 0 10px; font-size: 28px; }
.payment-action-banner p { margin: 0; color: var(--muted); }
.payment-action-banner__form { display: flex; justify-content: flex-end; }
.inline-form--spaced { margin-top: 10px; }

.renewal-list { display: grid; gap: 12px; }
.renewal-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}
.renewal-item--allowed { border-color: rgba(53,208,138,.28); background: rgba(53,208,138,.075); }
.renewal-item--blocked { opacity: .82; }
.renewal-item__main { display: grid; gap: 4px; }
.renewal-item__hint { color: var(--muted-2); max-width: 78ch; }
.pay-card { display: grid; gap: 22px; }

.turnstile-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.turnstile-box .cf-turnstile { min-height: 65px; }
.hp-field { position:absolute!important; left:-10000px!important; top:auto!important; width:1px!important; height:1px!important; overflow:hidden!important; opacity:0!important; pointer-events:none!important; }

details summary { cursor: pointer; color: #c9d5ff; font-weight: 800; }

@media (max-width: 920px) {
  .hero,
  .payment-hero,
  .payment-action-banner,
  .section-header,
  .info-strip { grid-template-columns: 1fr; }
  .steps-grid-premium,
  .plans-grid-premium,
  .grid-2,
  .grid-3,
  .plan-grid,
  .info-docs-grid { grid-template-columns: 1fr; }
  .premium-card--featured { transform: none; }
  .payment-action-banner__form { justify-content: stretch; }
  .payment-action-banner__form .btn { width: 100%; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1120px); }
  .main-content { padding: 20px 0 36px; gap: 18px; }
  .card,
  .section-shell { padding: 20px; border-radius: 22px; }
  .site-header .container,
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__tagline { font-size: 12px; }
  .nav { width: 100%; }
  .hero { padding: 22px; }
  .hero h1 { max-width: none; }
  .hero-brand-lockup { align-items: flex-start; }
  .hero-brand-lockup__image { width: 74px; height: 74px; border-radius: 20px; }
  .hero-brand-lockup__title { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .data-list div { flex-direction: column; gap: 4px; }
  .data-list dd { text-align: left; }
  .renewal-item { flex-direction: column; }
  .info-strip__timeline { grid-template-columns: 1fr; }
  .timeline-line { min-height: 28px; width: 2px; justify-self: center; }
  .password-field input { padding-right: 106px; }
  .password-toggle { min-height: 36px; padding: 0 8px; }
  .password-toggle__label { font-size: 11px; }
}
