:root {
  --bg: #0e0f13;
  --panel: #171920;
  --line: #2a2d38;
  --text: #f1f1f4;
  --muted: #a3a6b4;
  --accent: #f2b33d;
  --accent-text: #1a1406;
  --bad: #ff7a6b;
  --good: #7fd69a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
header { border-bottom: 1px solid var(--line); padding: 14px 16px; }
header a { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 20px 0; }
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: .95rem; }
input { width: 100%; font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
button, .button { display: inline-block; font: inherit; font-weight: 700; padding: 14px 22px; margin-top: 16px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: default; }
.price { font-size: 1.6rem; font-weight: 700; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: .12em; font-weight: 700; word-break: break-all; margin: 8px 0 16px; }
.error { color: var(--bad); }
.ok { color: var(--good); }
.events { list-style: none; padding: 0; margin: 0; }
.events li { border-top: 1px solid var(--line); padding: 14px 0; }
.events li:first-child { border-top: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 200px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .06em; }
.codes { margin: 8px 0 0; padding-left: 2.2em; }
.codes li { padding: 4px 0; }
.tools button { margin-right: 12px; }
.free .panel { margin-top: 12px; }
[hidden] { display: none !important; }
