:root {
  --bg: #f3f4f8; --card: #fff; --text: #111827; --muted: #6b7280; --line: #e5e7eb;
  --accent: #4f46e5; --accent-soft: #eef2ff; --ok: #059669; --bad: #dc2626;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d12; --card: #151821; --text: #e5e7eb; --muted: #9ca3af; --line: #262a36; --accent: #818cf8; --accent-soft: #1e1b4b; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
.box { width: 100%; max-width: 400px; }
.head { text-align: center; margin-bottom: 18px; }
.logo { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; }
.head h1 { margin: 0; font-size: 22px; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 9px; font-weight: 500; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
input, select { width: 100%; padding: 13px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.code { text-align: center; font-size: 22px; letter-spacing: 4px; text-transform: uppercase; font-family: ui-monospace, Consolas, monospace; }
button { font: inherit; cursor: pointer; }
.btn { width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; }
.plans { display: grid; gap: 8px; }
.plan { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-align: left; }
.plan.on { border-color: var(--accent); background: var(--accent-soft); }
.plan small { display: block; color: var(--muted); }
.plan b { font-size: 17px; }
.msg { text-align: center; font-size: 14px; min-height: 1.2em; margin: 10px 0 0; }
.msg.err { color: var(--bad); }
.big { text-align: center; padding: 8px 0; }
.big .amount { font-size: 40px; font-weight: 700; }
.big .sub { color: var(--muted); font-size: 14px; }
.okmark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 10px; font-size: 28px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 2px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
.rates { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
