:root,
html.theme-dark {
  --bg: #0b0f17;
  --bg-card: #121826;
  --bg-card-hover: #161f30;
  --text: #e8edf5;
  --text-muted: #8b95a8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(18, 24, 38, 0.72);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --input-bg: #0b0f17;
  --landing-accent: #5fe7ff;
  --landing-accent-dim: rgba(95, 231, 255, 0.12);
  --grid-line: rgba(255, 255, 255, 0.025);
  --orb-1: rgba(95, 231, 255, 0.14);
  --orb-2: rgba(59, 130, 246, 0.1);
  --control-bg: rgba(8, 12, 20, 0.55);
  --control-active: rgba(255, 255, 255, 0.1);
  --thumb-bg: #1a2332;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

html.theme-light {
  --bg: #e8edf5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  --input-bg: #f1f5f9;
  --landing-accent: #0284c7;
  --landing-accent-dim: rgba(2, 132, 199, 0.12);
  --grid-line: rgba(15, 23, 42, 0.06);
  --orb-1: rgba(2, 132, 199, 0.15);
  --orb-2: rgba(37, 99, 235, 0.1);
  --control-bg: #e2e8f0;
  --control-active: #ffffff;
  --thumb-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.theme-dark,
html.theme-light {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat__value {
  font-weight: 600;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: #0e1420;
}

.section__title {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: center;
}

.section__subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.25);
}

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-card__flag {
  font-size: 1.8rem;
}

.server-card__name {
  font-weight: 600;
}

.server-card__status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.server-card__status--soon {
  color: #fbbf24;
}

.plan {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan h3 {
  margin-bottom: 8px;
}

.plan__price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.plan li {
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.plan li::before {
  content: '✓ ';
  color: #4ade80;
}

.plan__cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}

.plan__cta--disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}

.footer__inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__note {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    gap: 16px;
  }
}

.nav-link {
  color: var(--accent) !important;
  font-weight: 600;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section--cta {
  padding: 64px 0 80px;
}

.cta-box {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.cta-box h2 {
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.step-card {
  position: relative;
  padding-top: 48px;
}

.step-num {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Auth & cabinet */
.auth-page,
.cabinet-page {
  padding: 48px 16px 80px;
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.auth-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn--block {
  width: 100%;
  margin-top: 8px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #1f1f1f;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
}

.btn--google:hover {
  background: #f5f5f5;
}

.btn--telegram {
  background: #229ed9;
  color: #fff;
  text-decoration: none;
  text-align: center;
  display: block;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}

.btn--telegram:hover {
  background: #1a8bc4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert--success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hint--muted {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
}

.key-card,
.setup-card,
.renew-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.key-stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.key-stat__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.key-stat__value--ok { color: #4ade80; }
.key-stat__value--warn { color: #fbbf24; }

.key-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.key-input {
  flex: 1;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  resize: vertical;
}

.key-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setup-steps {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.setup-steps li {
  margin-bottom: 10px;
}

.setup-steps a {
  color: var(--accent);
}

.setup-card h2,
.renew-card h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.loading-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.cabinet-page h1 {
  margin-bottom: 8px;
}

@media (min-width: 560px) {
  .key-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .key-row .btn {
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .key-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Landing page ── */
.landing-page {
  --landing-accent: var(--landing-accent);
  --landing-accent-dim: var(--landing-accent-dim);
  overflow-x: hidden;
}

.page-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--control-bg);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.lang-switch__btn svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.lang-switch__btn.is-active {
  opacity: 1;
  background: var(--control-active);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lang-switch__btn:hover:not(.is-active) {
  opacity: 0.85;
}

.theme-toggle {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.theme-toggle__track {
  display: block;
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--control-bg);
  border: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--thumb-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.theme-toggle.is-light .theme-toggle__thumb {
  transform: translateX(22px);
}

.theme-toggle__icon {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: opacity 0.3s ease, transform 0.35s ease, color 0.3s ease;
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.7);
  color: #f59e0b;
}

.theme-toggle.is-light .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.7);
}

.theme-toggle.is-light .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle.is-light .theme-toggle__track {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
}

html.theme-dark .theme-toggle:not(.is-light) .theme-toggle__track {
  background: rgba(8, 12, 20, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .theme-toggle:not(.is-light) .theme-toggle__thumb {
  background: #1a2332;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html.theme-dark .theme-toggle:not(.is-light) .theme-toggle__icon--moon {
  color: #94a3b8;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.landing-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.landing-bg__orb--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
}

.landing-bg__orb--2 {
  width: 400px;
  height: 400px;
  bottom: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
}

.landing-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}

.landing-header {
  background: rgba(11, 15, 23, 0.6);
}

.logo--svg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo__text span {
  color: var(--landing-accent);
}

.landing-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

.landing-brand-name {
  margin: -20px 0 0;
  font-size: clamp(1.7rem, 4.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
}

.landing-brand-link {
  font-weight: 800;
  color: var(--text);
}

.landing-brand-name span,
.landing-brand-accent {
  background: linear-gradient(135deg, #5fe7ff 0%, #3b9eff 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  font-weight: 800;
}

html.theme-light .landing-brand-name {
  color: #0f172a;
}

html.theme-light .landing-brand-link {
  color: #0f172a;
}

html.theme-light .landing-brand-accent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-trial {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--landing-accent);
  background: var(--landing-accent-dim);
  border: 1px solid rgba(95, 231, 255, 0.22);
}

.landing-trial--compact {
  margin-bottom: 12px;
  font-size: 0.78rem;
  padding: 6px 12px;
}

.landing-hero {
  padding: 48px 0 72px;
}

.landing-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.landing-hero__logo {
  position: relative;
  width: clamp(100px, 22vw, 140px);
  height: clamp(100px, 22vw, 140px);
}

.landing-hero__logo .logo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: landing-float 6s ease-in-out infinite;
}

.logo-svg--light {
  display: none;
}

html.theme-light .logo-svg--dark {
  display: none;
}

html.theme-light .logo-svg--light {
  display: block;
}

html.theme-light .landing-hero__logo {
  filter: drop-shadow(0 4px 16px rgba(2, 132, 199, 0.2));
}

.landing-hero__glass {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(24px, 4vw, 32px) clamp(20px, 4vw, 28px);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  animation: landing-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.landing-hero__glass h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  color: var(--text);
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px auto 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  background: rgba(95, 231, 255, 0.06);
  border: 1px dashed rgba(95, 231, 255, 0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

html.theme-light .trial-badge {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.35);
}

.trial-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--landing-accent-dim);
  color: var(--landing-accent);
  flex-shrink: 0;
}

.trial-badge__icon svg {
  width: 16px;
  height: 16px;
}

.trial-badge__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trial-badge__highlight {
  color: var(--landing-accent);
  font-weight: 700;
}

.landing-hero__glass .auth-forms {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing-hero__glass .auth-form label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.landing-hero__glass .auth-form__field--plain {
  margin-bottom: 12px;
}

.landing-hero__glass .auth-form__field--plain input {
  margin-top: 0;
}

.landing-hero__glass .auth-form input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 13px 15px;
  border-radius: 12px;
}

.landing-hero__glass .auth-divider {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.auth-alt {
  margin-top: 2px;
}

.auth-alt .auth-divider {
  margin: 18px 0 14px;
}

.auth-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.auth-social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--control-bg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.auth-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.auth-social-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.auth-social-btn--google {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

html.theme-dark .auth-social-btn--google {
  background: rgba(255, 255, 255, 0.96);
}

.auth-social-btn--telegram {
  background: linear-gradient(145deg, #2aabee 0%, #229ed9 100%);
  border-color: rgba(34, 158, 217, 0.45);
  color: #fff;
}

.auth-social-btn--telegram svg {
  width: 24px;
  height: 24px;
}

.landing-hero__glass .btn--google {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 13px 16px;
}

.landing-hero__glass .btn--landing {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
}

.landing-hero__glass .btn--ghost {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.landing-hero__glass .hint {
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-check-email {
  text-align: center;
  padding: 4px 0 2px;
}

.auth-check-email__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.auth-check-email__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.auth-check-email__text strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

.auth-check-email__hint {
  margin: 0 0 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.landing-hero__text {
  margin-bottom: 20px;
  min-height: 168px;
}

.landing-hero__text .landing-hero__lead {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  min-height: 3.2em;
}

.auth-back:hover {
  color: var(--landing-accent);
  border-color: rgba(95, 231, 255, 0.22);
  background: rgba(95, 231, 255, 0.06);
}

.landing-hero__glass--auth .landing-hero__text {
  margin-bottom: 20px;
}

.landing-hero__glass--auth h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.auth-forms {
  min-height: 240px;
}

.btn--landing.btn--block {
  justify-content: center;
  margin-top: 8px;
}

.landing-h1-accent {
  background: linear-gradient(135deg, #5fe7ff 0%, #3b9eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero__text {
  margin-bottom: 24px;
  min-height: 168px;
}

.landing-hero__text .landing-hero__lead {
  margin-top: 14px;
  margin-bottom: 0;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  min-height: 3.2em;
}

.landing-hero__lead {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 28px;
}

.landing-servers {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-servers__title {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.landing-servers__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.landing-servers__list span {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--landing-accent-dim);
  border: 1px solid rgba(95, 231, 255, 0.18);
}

.landing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.landing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-features li strong {
  color: var(--text);
  font-weight: 600;
}

.landing-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--landing-accent);
  opacity: 0.85;
}

.btn--landing {
  display: inline-flex;
  width: 100%;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #0b0f17;
  background: linear-gradient(135deg, #5fe7ff 0%, #3b9eff 100%);
  box-shadow: 0 4px 24px rgba(95, 231, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn--landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(95, 231, 255, 0.35);
}

.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px 0 36px;
}

@media (max-width: 480px) {
  .landing-hero {
    padding: 32px 0 48px;
  }

  .landing-hero__inner {
    gap: 28px;
  }

  .landing-hero__glass {
    border-radius: 20px;
  }
}

/* Auth on landing-style pages */
.auth-register-page {
  overflow-x: hidden;
}

.auth-page--landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px 48px;
  gap: 28px;
}

.auth-page__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.auth-page__brand svg {
  width: 72px;
  height: 72px;
  animation: landing-float 6s ease-in-out infinite;
}

.auth-page__brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-page__brand-text span {
  color: var(--landing-accent);
  letter-spacing: 0.08em;
}

.auth-card--glass {
  width: min(420px, 100%);
  margin: 0;
  padding: clamp(28px, 5vw, 36px) clamp(22px, 4vw, 32px);
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(95, 231, 255, 0.04),
    0 32px 64px rgba(0, 0, 0, 0.4);
}

.auth-card--glass h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 6px;
}

.auth-card--glass .auth-lead {
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.55;
}

.auth-card--glass .landing-trial--compact {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.auth-page__back {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-page__back:hover {
  color: var(--landing-accent);
}

.btn--landing-style {
  border: none;
  color: #0b0f17;
  background: linear-gradient(135deg, #5fe7ff 0%, #3b9eff 100%);
  box-shadow: 0 4px 20px rgba(95, 231, 255, 0.2);
  font-weight: 600;
}

.btn--landing-style:hover {
  filter: brightness(1.05);
}

html.theme-light .btn--google {
  background: #fff;
  border-color: var(--border);
  color: #1f1f1f;
}

html.theme-light .landing-hero__glass h1,
html.theme-light .auth-form label,
html.theme-light .hint {
  color: var(--text);
}

html.theme-light .landing-hero__lead,
html.theme-light .auth-divider {
  color: var(--text-muted);
}

@keyframes landing-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes landing-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
