:root {
  --bg: #050a14;
  --bg-elev: #0a1020;
  --bg-card: #0d1528;
  --bg-soft: #111b30;
  --line: #1a2740;
  --text: #eef4ff;
  --muted: #8b9bb8;
  --neon: #00b8ff;
  --neon-2: #0090ff;
  --neon-ink: #040810;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(0, 184, 255, 0.16), transparent 55%),
    radial-gradient(700px 360px at 90% 8%, rgba(40, 100, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 40%, #040810 100%);
  min-height: 100vh;
  padding-bottom: 88px;
}

a { color: var(--neon); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  backdrop-filter: blur(14px);
  background: rgba(5, 10, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--neon);
  display: grid;
  place-items: center;
  transition: border-color .15s, background .15s, color .15s;
}
.icon-btn:hover {
  border-color: rgba(0, 184, 255, 0.45);
  background: rgba(0, 184, 255, 0.1);
  color: #8ed4ff;
}
.icon-btn.lang { width: auto; padding: 0 12px; font-size: 13px; font-weight: 600; }
.icon-btn:disabled { opacity: 0.45; cursor: default; }

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

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  padding: 28px 8px 8px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 184, 255, 0.12);
  color: var(--neon);
  font-size: 13px;
  font-weight: 600;
}
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 38ch;
}
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d8d8;
  font-size: 14px;
}
.badges span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(0, 184, 255, 0.1);
  border: 1px solid rgba(0, 184, 255, 0.28);
  color: var(--neon);
}

.checkout-card {
  background: linear-gradient(180deg, #0f1525 0%, #0a1020 100%);
  border: 1px solid #1a2740;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  background: #080f1a;
  padding: 6px;
  border-radius: 14px;
}
.tab {
  border: 0;
  border-radius: 10px;
  padding: 12px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.tab.is-active {
  background: var(--neon);
  color: var(--neon-ink);
}
.tab:disabled { opacity: 0.4; cursor: not-allowed; }

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
  font-size: 13px;
  color: #cfcfcf;
  font-weight: 600;
}
.hint-link {
  border: 0;
  background: none;
  color: var(--neon);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
}

#login, #customAmount {
  width: 100%;
  border: 1px solid #1a2740;
  background: #070d18;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 14px;
  outline: none;
}
#login:focus, #customAmount:focus {
  border-color: rgba(0, 184, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.12);
}

.tip {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 184, 255, 0.08);
  color: #8ed4ff;
  font-size: 12px;
  line-height: 1.45;
}

.chip-row, .amount-grid {
  display: grid;
  gap: 8px;
}
.chip-row { grid-template-columns: repeat(4, 1fr); }
.amount-grid { grid-template-columns: repeat(3, 1fr); }

.chip, .amt {
  border: 1px solid #1a2740;
  background: #0a1020;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 13px;
  transition: border-color .15s, background .15s, color .15s;
}
.chip.is-on, .amt.is-on {
  background: rgba(0, 184, 255, 0.14);
  border-color: rgba(0, 184, 255, 0.55);
  color: var(--neon);
}
.amt.other { font-size: 12px; }

.custom-amount { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; color: #cfcfcf; }
.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.custom-row span {
  min-width: 40px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.steam-preview {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #070d18;
  border: 1px solid #1a2740;
}
.steam-name { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.steam-sum { font-size: 18px; font-weight: 700; margin-top: 2px; }

.totals {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.totals dd { margin: 0; color: var(--text); font-weight: 600; }
.totals .pay {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #1a2740;
  color: var(--text);
  font-size: 15px;
}
.totals .pay dd { color: var(--neon); font-size: 18px; }

.sbp-note, .safe-note {
  margin: 8px 0 0;
  color: #7f7f7f;
  font-size: 12px;
}

.buy {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
  background: linear-gradient(180deg, var(--neon) 0%, var(--neon-2) 100%);
  color: var(--neon-ink);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.buy:hover { filter: brightness(1.04); }
.buy:disabled { opacity: 0.55; cursor: wait; }

.form-msg {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.form-msg.ok { background: rgba(0, 184, 255, 0.12); color: #8ed4ff; }
.form-msg.err { background: rgba(255, 107, 107, 0.12); color: #ffb0b0; }

.how, .faq {
  margin-top: 56px;
}
.how h2, .faq h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.how-grid article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.how-grid b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(0, 184, 255, 0.14);
  color: var(--neon);
  margin-bottom: 12px;
}
.how-grid h3 { margin: 0 0 8px; font-size: 16px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.guarantee {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 184, 255, 0.25);
  background: linear-gradient(90deg, rgba(0, 184, 255, 0.08), transparent 70%);
}
.guarantee h3 { margin: 0 0 6px; font-size: 16px; }
.guarantee p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item button::after {
  content: "+";
  color: var(--neon);
  font-size: 18px;
  line-height: 1;
}
.faq-item.open button::after { content: "−"; }
.faq-item .ans {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.faq-item.open .ans { display: block; }

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 22px 0 8px;
  border-top: 1px solid #152038;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}
.footer p { margin: 0 0 8px; }
.footer .legal-entity {
  line-height: 1.45;
  font-size: 12px;
  color: #7a7a7a;
}
.legal-page {
  max-width: 680px;
  padding: 28px 0 64px;
  line-height: 1.55;
}
.legal-page h1 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.legal-page p { color: var(--muted); }

.mobile-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 14, 26, 0.92);
  border: 1px solid #1a2740;
  backdrop-filter: blur(12px);
}
.mobile-nav a {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 12px;
}
.mobile-nav a.is-on {
  background: rgba(0, 184, 255, 0.14);
  color: var(--neon);
}

@media (max-width: 920px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 8px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav { display: grid; }
}

@media (max-width: 560px) {
  .page { width: calc(100% - 20px); }
  .chip-row { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
}
