:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.18);
  --ok: #5ddea5;
  --danger: #ff6b7a;
  --radius: 14px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Syne", "DM Sans", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) #0a0a0a;
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: #0a0a0a; }
html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  border: 2px solid #0a0a0a;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(88, 60, 160, 0.28), transparent 60%),
    var(--bg);
  line-height: 1.5;
  overflow-x: clip;
}
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.nav-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 70;
  background: #0a0a0a;
  border-bottom-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.country-sheet-open { overflow: hidden; }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.bg-waves {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-20 120 C 180 40, 320 220, 520 140 S 860 40, 1100 160 S 1400 260, 1600 180'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-40 280 C 160 200, 360 360, 560 280 S 900 160, 1140 300'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-30 480 C 200 400, 380 560, 600 470 S 940 360, 1220 500'/%3E%3C/svg%3E");
  background-size: cover;
  z-index: 0;
}

.site-header, .site-footer, main { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    backdrop-filter 0.2s ease,
    -webkit-backdrop-filter 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.visually-hidden,
.amung-track {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}
.logo-ne {
  display: inline-flex;
  align-items: baseline;
  font-family: "Montserrat", var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.08em;
  line-height: 0.88;
}
.logo-n {
  position: relative;
  z-index: 2;
  color: #fff;
  filter: drop-shadow(2px 0 0 rgba(0, 0, 0, 0.55));
  margin-right: -0.22em;
}
.logo-e {
  position: relative;
  z-index: 1;
  color: #fff;
}
.logo-proxy {
  margin-top: 0.22em;
  font-family: "Montserrat", var(--font), sans-serif;
  font-weight: 300;
  font-size: 0.42rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #fff;
  text-transform: uppercase;
}

.logo-mark--hero {
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 0 48px rgba(120, 90, 220, 0.28));
}
.logo-mark--hero .logo-ne {
  font-size: clamp(4.2rem, 14vw, 7rem);
  letter-spacing: -0.1em;
}
.logo-mark--hero .logo-n {
  margin-right: -0.2em;
  filter: drop-shadow(4px 0 0 rgba(0, 0, 0, 0.5));
}
.logo-mark--hero .logo-proxy {
  margin-top: 0.35em;
  font-size: clamp(0.7rem, 2.4vw, 1.15rem);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  font-weight: 300;
}

.nav-public { justify-self: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-list a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.nav-list a.active { color: #fff; }
.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}
.nav-login {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
}
.nav-login:hover { color: #fff; }
.btn-nav { padding: 0.5rem 1rem; font-size: 0.88rem; }

.balance-chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 222, 165, 0.35);
  background: rgba(93, 222, 165, 0.08);
  white-space: nowrap;
}
.balance-chip:hover { color: #fff; border-color: rgba(93, 222, 165, 0.55); }

.cabinet-menu { position: relative; }
.cabinet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cabinet-toggle:hover,
.cabinet-menu.is-open .cabinet-toggle {
  border-color: rgba(124,108,255,0.55);
  background: var(--accent-soft);
}
.cabinet-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.cabinet-menu.is-open .cabinet-chevron {
  transform: rotate(225deg) translateY(-1px);
}
.cabinet-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 180px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 18, 0.96);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  animation: dropIn 0.16s ease;
  z-index: 60;
}
.cabinet-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.cabinet-dropdown a:hover,
.cabinet-dropdown a.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.cabinet-sep {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}
.cabinet-sep a { color: var(--danger); }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: 0.15s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.98);
  animation: dropIn 0.18s ease;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
  display: grid;
  gap: 0.2rem;
}
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}
.mobile-nav-list a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.mobile-sep {
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-public { display: none; }
  .nav-burger { display: inline-flex; }
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    padding: 0.45rem 0;
    min-height: var(--header-h);
  }
  .balance-chip { display: none; }
  .cabinet-menu { display: none; }
  .nav-login,
  .btn-nav { display: none; }
  .hero {
    padding: 2.25rem 0 1.5rem;
  }
  .hero-hostes { padding-top: 1.75rem; }
  main { padding: 1.5rem 0 3.5rem; }
  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: #0a0a0a;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) #0a0a0a;
  }
  .mobile-nav::-webkit-scrollbar { width: 8px; }
  .mobile-nav::-webkit-scrollbar-track { background: #0a0a0a; }
  .mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
  }
  .mobile-nav-list {
    padding: 0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  }
  .mobile-nav-list a {
    padding: 0.65rem 0.85rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
}
.btn:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 24px var(--accent-soft);
}
.btn-primary {
  background: linear-gradient(180deg, rgba(124,108,255,0.35), rgba(124,108,255,0.12));
  border-color: rgba(124,108,255,0.55);
}
.btn-ghost { color: var(--muted); }

main { padding: 2.5rem 0 4rem; }

.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero p {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-enter-item {
  animation: heroRise 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

.section-title {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
}
.tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tile .price { margin-top: 0.85rem; color: #fff; font-weight: 600; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: rgba(255,255,255,0.02);
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.meta strong { color: #fff; font-weight: 600; }

label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}
input, select {
  width: 100%;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: rgba(124,108,255,0.7);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.row-2[hidden],
#buy-gb-row[hidden],
#buy-isp-row[hidden],
#buy-iso-wrap[hidden],
#buy-auto-renew[hidden],
#cfg-period-wrap[hidden],
#cfg-gb-wrap[hidden],
#cfg-fixed-period[hidden],
#cfg-count-wrap[hidden],
.gb-stepper[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
}

.alert {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-ok { border-color: rgba(93,222,165,0.4); color: var(--ok); }
.alert-err { border-color: rgba(255,107,122,0.45); color: var(--danger); }
.alert-info { color: var(--muted); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.muted { color: var(--muted); }

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: #0a0a0a;
}
.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem 1.75rem;
  align-items: start;
}
@media (max-width: 800px) {
  .footer-shell { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-shell { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand-block { max-width: 22rem; }
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
}
.footer-logo .logo-mark { transform: scale(0.92); transform-origin: left center; }
.footer-lead {
  margin: 0 0 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}
.footer-tag-mtproto {
  color: rgba(168, 200, 255, 0.95) !important;
  border-color: rgba(120, 160, 220, 0.45) !important;
}
.footer-col-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-sep { opacity: 0.5; }
.turnstile-wrap { margin-top: 1rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 0.55rem 0 0; }
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
}
.check input { width: auto; }
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.presets button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.presets button:hover { border-color: rgba(255,255,255,0.35); }

.auth-panel { max-width: 420px; margin: 0 auto; }

.configurator { margin-top: 0.5rem; }
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.cfg-span { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .cfg-grid { grid-template-columns: 1fr; }
}
.section-subtitle {
  margin: 1.75rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.cfg-gb { display: grid; gap: 0.55rem; }
.cfg-gb-hint { margin: 0; font-size: 0.85rem; min-height: 1.2em; }
.gb-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.gb-stepper input {
  width: 4.5rem;
  text-align: center;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.45rem 0.35rem;
  font: inherit;
}
.gb-step {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
}
.gb-step:hover { border-color: rgba(255,255,255,0.35); }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: rgba(255,255,255,0.35); }
.chip.active {
  border-color: rgba(124,108,255,0.7);
  background: var(--accent-soft);
}
.chip-mtproto {
  border-color: rgba(120, 160, 220, 0.4);
  color: rgba(200, 220, 255, 0.95);
}
.chip-mtproto.active {
  border-color: rgba(120, 170, 240, 0.75);
  background: rgba(80, 120, 180, 0.18);
}
.product-badge {
  display: inline-block;
  margin: -0.35rem 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 200, 255, 0.95);
}
.tile-mtproto h3 {
  color: rgba(210, 225, 255, 0.98);
}
.cfg-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.cfg-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
@keyframes priceNudge {
  from { opacity: 0.4; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.cfg-price.is-updating {
  animation: priceNudge 0.28s ease;
}
.proxy-box {
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre;
  color: #e8e8e8;
}
.proxy-format-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1rem;
}
.proxy-format-bar label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.proxy-format-bar select {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
}
.proxy-cred-next {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.proxy-cred-title {
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
}
.proxy-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
}
.proxy-field-wide {
  grid-column: 1 / -1;
}
.proxy-field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.proxy-field-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
}
.proxy-field-val {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 0.55rem 0.7rem;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #e8e8e8;
  overflow-x: auto;
  white-space: nowrap;
}
.btn-copy {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}
.proxy-rotate {
  margin-top: 0.85rem;
}
.proxy-rotate-help {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 40rem;
}
.proxy-rotate-help strong {
  color: var(--text);
  font-weight: 600;
}
.proxy-traffic {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}
.traffic-meter {
  min-width: 12rem;
  max-width: 22rem;
  margin: 0.35rem 0 0.15rem;
}
.traffic-meter-sm {
  margin: 0 0 0.75rem;
  max-width: 100%;
}
.traffic-meter-table {
  min-width: 7.5rem;
  max-width: 11rem;
  margin: 0;
}
.traffic-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.traffic-meter-head strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.traffic-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.traffic-meter-table .traffic-bar {
  height: 6px;
}
.traffic-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b5cff, #9b8cff);
  transition: width 0.35s ease;
}
.proxy-rotate-edit {
  margin-top: 0.25rem;
}
.proxy-rotate-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.proxy-rotate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.55rem;
}
.proxy-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
@media (max-width: 640px) {
  .proxy-fields { grid-template-columns: 1fr; }
}
.format-option {
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hero-hostes { padding-top: 2.5rem; }

.pay-section-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
}
.pay-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-card:hover { border-color: rgba(255,255,255,0.28); }
.pay-card.is-selected {
  border-color: #3ddc84;
  background: rgba(61, 220, 132, 0.06);
}
.pay-card-letter {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1c1c1c;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}
.pay-card-body { flex: 1 1 auto; min-width: 0; }
.pay-card-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}
.pay-card-blurb {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}
.pay-card-check {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
.pay-card.is-selected .pay-card-check {
  border-color: #3ddc84;
  background: #3ddc84;
  box-shadow: inset 0 0 0 2px #121212;
}
.pay-crypto {
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121212;
  padding: 0.75rem 0.85rem 0.9rem;
}
.pay-crypto summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  list-style: none;
  color: rgba(220, 230, 255, 0.95);
}
.pay-crypto summary::-webkit-details-marker { display: none; }
.pay-crypto summary::after {
  content: " ▾";
  color: var(--muted);
  font-weight: 400;
}
.pay-crypto[open] summary::after { content: " ▴"; }
.topup-min-hint {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.85rem;
}

.country-picker {
  position: relative;
}
.country-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}
.country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}
.country-picker.is-open .country-trigger {
  border-color: rgba(124,108,255,0.65);
}
.country-trigger-body {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}
.country-chevron::after {
  content: "▾";
  color: var(--muted);
}
.country-picker.is-open .country-chevron::after { content: "▴"; }
.country-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  max-height: 360px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.3rem;
}
.country-picker.is-open .country-list {
  display: flex;
}
.country-list[hidden] {
  display: none !important;
}
.country-search-wrap {
  padding: 0.25rem 0.25rem 0.4rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.country-search {
  width: 100%;
  margin: 0;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 0.45rem 0.6rem;
}
.country-options {
  overflow: auto;
  flex: 1 1 auto;
  max-height: 300px;
  padding-top: 0.25rem;
}
.country-empty {
  padding: 0.75rem 0.6rem;
  font-size: 0.9rem;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.country-option:hover,
.country-option.is-selected {
  background: rgba(255,255,255,0.06);
}
.country-flag {
  font-size: 1.15rem;
  line-height: 1;
  width: 1.4rem;
  flex: 0 0 auto;
}
.country-name {
  flex: 1;
  min-width: 0;
}
.country-stock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
  flex: 0 0 auto;
}
.stock-high { color: #3ddc84; }
.stock-mid { color: #f0a24b; }
.stock-low { color: #ef5350; }
.stock-none { color: #1a1a1a; text-shadow: 0 0 0 #666; background: #111; border-radius: 4px; padding: 0 0.25rem; color: #444; }

.support-fab {
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.support-fab:hover {
  background: var(--accent-soft);
  border-color: rgba(124, 108, 255, 0.35);
  color: #fff;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
}
.table-scroll .table {
  min-width: 520px;
}

@media (max-width: 640px) {
  .support-fab {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
  .country-picker.is-open {
    z-index: 45;
  }
  .country-picker.is-open .country-list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 70dvh;
    z-index: 41;
    border-radius: 16px 16px 0 0;
    padding: 0.55rem 0.45rem calc(0.55rem + env(safe-area-inset-bottom));
    animation: dropIn 0.18s ease;
  }
  .country-options {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .chip-row {
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .chip {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
  .cfg-price {
    font-size: 1.45rem;
  }
  .panel {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-enter-item {
    opacity: 1;
    transform: none;
  }
}

body.auth-open { overflow: hidden; }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
  visibility: hidden;
}
.auth-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.auth-overlay.is-open .auth-backdrop { opacity: 1; }

.auth-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 0.5rem));
  max-height: min(90dvh, 720px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  overflow: hidden;
}
.auth-overlay.is-open .auth-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-brand {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
  padding: 1.35rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(88, 60, 160, 0.32), transparent 65%),
    #0b0b0d;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200' viewBox='0 0 600 200'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-20 40 C 80 10, 160 70, 260 45 S 420 10, 520 50 S 640 80, 720 55'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-30 95 C 90 60, 180 130, 290 100 S 450 55, 560 110'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M-20 155 C 100 120, 200 180, 310 150 S 470 110, 620 165'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}
.logo-mark--auth {
  position: relative;
  z-index: 1;
  margin: 0 auto 0.85rem;
}
.logo-mark--auth .logo-ne {
  font-size: 2.35rem;
  letter-spacing: -0.09em;
}
.logo-mark--auth .logo-proxy {
  margin-top: 0.28em;
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
}
.auth-brand-slogan {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 18rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.auth-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.02);
}
.auth-sheet-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.auth-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.auth-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.9rem 1.15rem 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem;
  flex: 0 0 auto;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.auth-tab.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.auth-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.15rem calc(1.6rem + env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) #101010;
}
.auth-sheet-body::-webkit-scrollbar { width: 8px; }
.auth-sheet-body::-webkit-scrollbar-track { background: #101010; }
.auth-sheet-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.auth-sheet-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }
.auth-panel {
  max-width: none;
  margin: 0;
  animation: authPanelIn 0.28s ease both;
}
.auth-panel[hidden] { display: none !important; }
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-field {
  position: relative;
  margin-bottom: 0.75rem;
  opacity: 1;
  transform: none;
}
.auth-sheet.is-stagger .auth-panel.is-active .auth-field {
  animation: authFieldIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--af, 0) * 0.055s + 0.05s);
}
@keyframes authFieldIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-field > input:not([type="checkbox"]) {
  width: 100%;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 2.75rem 0.85rem 2.75rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field > input:not([type="checkbox"]):focus {
  outline: none;
  border-color: rgba(124, 108, 255, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}
.auth-pass-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.auth-pass-toggle:hover,
.auth-pass-toggle.is-on { color: #fff; }

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.auth-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem !important;
  height: 1.15rem !important;
  max-width: 1.15rem !important;
  min-width: 1.15rem;
  padding: 0 !important;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101010;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-consent input[type="checkbox"]::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  transform: scale(0);
  transition: transform 0.12s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.auth-consent input[type="checkbox"]:checked {
  background: rgba(124, 108, 255, 0.35);
  border-color: rgba(124, 108, 255, 0.75);
}
.auth-consent input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.auth-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-consent a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-consent a:hover { color: #a79bff !important; }

.auth-actions { margin-top: 1rem; }
.auth-actions .btn,
.auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 650;
}

.turnstile-wrap { margin: 0.35rem 0 0.15rem; }

@media (max-width: 640px) {
  .auth-sheet {
    width: min(100%, calc(100vw - 1.5rem));
  }
  .auth-brand {
    padding: 1.1rem 1rem 1rem;
  }
  .logo-mark--auth .logo-ne {
    font-size: 2rem;
  }
  .auth-brand-slogan {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-backdrop,
  .auth-sheet,
  .auth-tab,
  .auth-panel,
  .auth-field {
    transition: none !important;
    animation: none !important;
  }
  .auth-sheet {
    transform: none;
    opacity: 0;
  }
  .auth-overlay.is-open .auth-sheet {
    opacity: 1;
    transform: none;
  }
  .lp-pulse,
  .home-ambient {
    animation: none !important;
  }
}

/* Home conversion hero */
body.page-home .bg-waves { display: none; }

.home-hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
  overflow: hidden;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  box-shadow: none;
}
.home-hero-inner .logo-mark--hero {
  align-items: center;
}
.home-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(88, 60, 160, 0.34), transparent 62%),
    radial-gradient(ellipse 45% 35% at 15% 80%, rgba(124, 108, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(88, 60, 160, 0.12), transparent 50%);
  animation: homeAmbientDrift 18s ease-in-out infinite alternate;
}
.home-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.16;
}
.home-waves-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: homeWaveDrift 28s linear infinite;
}
.home-waves-svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
  animation: homeWaveFloat 14s ease-in-out infinite alternate;
}
@keyframes homeAmbientDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.03); }
}
@keyframes homeWaveDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes homeWaveFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 1.2%, 0); }
}
.home-hero h1 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}
.home-hero h1.home-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: none;
  font-family: "Montserrat", var(--font), sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.home-hero-title-main {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  background: linear-gradient(180deg, #ffffff 30%, #cfc8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 640px) {
  .home-hero-title-main { white-space: nowrap; }
}
.home-hero-title-types {
  font-size: clamp(0.95rem, 2.1vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #8f7dff 0%, #c4b8ff 50%, #8f7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(124, 108, 255, 0.35));
}
.home-hero > .home-hero-inner > p,
.home-hero p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: center;
}
.hero-cta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.home-cta-primary {
  min-width: 12rem;
  min-height: 3rem;
}
.home-cta-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.hero-cta .home-cta-jobs {
  min-width: 12rem;
}

.home-jobs-actions {
  margin: 0 0 1.15rem;
}
.home-jobs-panel[hidden] {
  display: none;
}
.home-jobs-panel:not([hidden]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-jobs-more {
  margin-top: 1rem;
}
.home-jobs-panel.is-open {
  animation: home-jobs-in 0.35s ease;
}
@keyframes home-jobs-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-jobs-panel.is-open { animation: none; }
}

.home-why {
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.home-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-why-card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.home-why-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 108, 255, 0.12);
}
.home-why-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.home-why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.home-section {
  margin-top: 2.5rem;
}
.home-section-lead {
  margin: -0.35rem 0 1.25rem;
  max-width: 40rem;
}
.home-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.home-type-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 7rem;
  flex: 1 1 14rem;
  max-width: 22rem;
}
.home-type-blurb {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}
.home-type-item.is-mtproto strong {
  color: #9b8cff;
}
.home-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.home-steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1rem 2.75rem;
  border-bottom: 1px solid var(--line);
}
.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(124, 108, 255, 0.16);
  color: #9b8cff;
}
.home-faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.home-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq details p {
  margin: 0.65rem 0 0.25rem;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .home-ambient,
  .home-waves-track,
  .home-waves-svg {
    animation: none !important;
  }
}
@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    padding: 1.5rem 1rem 2.5rem;
  }
  .home-hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
  }
  .home-hero h1.home-hero-title { font-size: inherit; gap: 0.45rem; }
  .home-hero-title-main { font-size: clamp(1.75rem, 8.5vw, 2.35rem); }
  .home-hero-title-types { font-size: 0.85rem; letter-spacing: 0.05em; }
  .home-waves { opacity: 0.12; }
  .home-waves-track { animation-duration: 40s; }
  .home-why-grid { grid-template-columns: 1fr; }
  .home-jobs-panel:not([hidden]) { grid-template-columns: 1fr; }
  .home-why-card { padding: 1.15rem 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta-main { flex-direction: column; align-items: stretch; }
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}
@media (max-width: 400px) {
  .home-hero h1 { font-size: 1.65rem; }
  .home-hero-title-main { font-size: 1.65rem; }
}

