:root {
  --bg: #0b0a12; --bg-2: #110f1b; --card: #15121f; --card-2: #1c1829; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --text: #f6f4fc; --muted: #a29db8; --accent: #ffe14d; --ink: #15131f; --violet: #7c5cff; --pink: #ff4d8d; --cyan: #3df2ff; --ok: #5be3a0; --danger: #ff6474;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 Heebo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: Rubik, Heebo, sans-serif; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.todo { background: #ffe14d; color: #15131f; padding: 0 6px; border-radius: 5px; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 16px; font-weight: 800; font-size: 17px; text-decoration: none; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); background: #251f37; }
.btn.primary { background: var(--accent); color: var(--ink); border-color: transparent; box-shadow: 0 10px 40px rgba(255,225,77,.25), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn.primary:hover { background: #fff07a; box-shadow: 0 14px 50px rgba(255,225,77,.35); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11,10,18,.72); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { font: 800 25px Rubik, sans-serif; text-decoration: none; letter-spacing: .2px; direction: ltr; display: inline-flex; align-items: center; gap: 9px; }
.logo span { color: var(--accent); margin-inline-start: -9px; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: url(/assets/favicon.svg) center/cover; }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .login { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; }
.nav-cta .login:hover { color: var(--text); }
.nav-cta .btn { padding: 10px 18px; font-size: 15px; border-radius: 12px; }

/* Forms (checkout, login) */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; display: grid; place-items: start center; padding: 40px 16px 70px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.form-card { width: min(470px, 100%); }
.form-card h1 { font-size: 30px; margin-bottom: 8px; }
.form-card .lead { color: var(--muted); margin-bottom: 22px; font-size: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field small { color: var(--muted); font-weight: 400; }
.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text); font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,225,77,.12); }
.input.bad { border-color: var(--danger); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); }
.msg { min-height: 22px; font-size: 14px; margin: -4px 0 14px; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--ok); }
.form-foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.form-foot a { color: var(--text); font-weight: 700; }
.code-boxes { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 8px 0 18px; }
.code-boxes input { width: 52px; height: 62px; text-align: center; font: 800 26px Rubik, sans-serif; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); outline: none; }
.code-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,225,77,.12); }
.linkish { background: none; border: 0; color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }

.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps div { flex: 1; font-size: 12px; color: var(--muted); font-weight: 700; }
.steps div::before { content: ''; display: block; height: 5px; border-radius: 5px; background: var(--line-2); margin-bottom: 8px; transition: background .3s; }
.steps div.on { color: var(--text); }
.steps div.on::before { background: var(--accent); }
.steps div.done::before { background: var(--ok); }

.summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 22px; }
.summary .ic { width: 46px; height: 46px; border-radius: 13px; background: url(/assets/favicon.svg) center/cover; flex: none; }
.summary b { display: block; }
.summary small { color: var(--muted); font-size: 13px; }
.summary .was { font-size: 15px; font-weight: 700; color: var(--muted); }
.field .hint { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.send-to { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.send-to b { color: var(--accent); }
.tip { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.summary .price { margin-inline-start: auto; font: 800 24px Rubik, sans-serif; white-space: nowrap; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.secure svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Legal */
.legal { width: min(820px, 100%); }
.legal h1 { font-size: 36px; margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: #d6d2e6; font-size: 16px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: 6px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .copy { margin-inline-start: auto; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
}
@media (max-width: 480px) {
  .card { padding: 22px 18px; border-radius: 22px; }
  .code-boxes input { width: 44px; height: 56px; font-size: 22px; }
  .nav-cta .login { font-size: 14px; padding: 8px 4px; }
  .summary { flex-wrap: wrap; }
  .summary .price { width: 100%; margin: 4px 0 0; text-align: start; font-size: 22px; }
  .foot a { padding: 10px 0; }
}
