:root { --bg:#0f172a; --card:#1e293b; --line:#334155; --txt:#e2e8f0; --muted:#94a3b8; --acc:#22c55e; --acc2:#3b82f6; --warn:#f59e0b; --err:#ef4444; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--txt); }
.wrap { max-width:720px; margin:0 auto; padding:16px; }
.nav { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); margin-bottom:20px; }
.brand { font-weight:700; font-size:18px; color:var(--txt); text-decoration:none; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:16px; }
h1 { font-size:22px; margin:0 0 12px; } h2 { font-size:18px; margin:0 0 10px; }
.muted { color:var(--muted); font-size:13px; }
label { display:block; margin:12px 0 4px; font-size:14px; }
input[type=text], input[type=number], input[type=url], select, textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid var(--line); background:#0b1220; color:var(--txt); font-size:15px; }
textarea { min-height:90px; font-family:monospace; font-size:12px; }
.btn { display:inline-block; background:var(--acc); color:#04120a; border:0; padding:11px 18px; border-radius:8px; font-weight:700; font-size:15px; cursor:pointer; text-decoration:none; }
.btn:hover { filter:brightness(1.1); }
.btn.small { padding:6px 12px; font-size:13px; }
.btn.ghost { background:transparent; color:var(--txt); border:1px solid var(--line); }
.btn.blue { background:var(--acc2); color:#fff; }
.btn.warn { background:var(--warn); color:#1a1005; }
.btn.red { background:var(--err); color:#fff; }
.alert { padding:12px; border-radius:8px; margin-bottom:14px; font-size:14px; }
.alert.err { background:#3b1215; border:1px solid var(--err); }
.alert.ok { background:#0f2e1a; border:1px solid var(--acc); }
.alert.info { background:#12233d; border:1px solid var(--acc2); }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; }
.badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700; }
.badge.pending { background:#3a2c10; color:var(--warn); }
.badge.paid { background:#0f2e1a; color:var(--acc); }
.badge.expired, .badge.cancelled { background:#2a2f3a; color:var(--muted); }
.qrbox { text-align:center; }
.qrbox img { background:#fff; padding:10px; border-radius:12px; max-width:280px; width:100%; }
.kv { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed var(--line); font-size:14px; }
.kv b { font-variant-numeric:tabular-nums; }
.total { font-size:22px; font-weight:800; color:var(--acc); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; }
.stat .n { font-size:24px; font-weight:800; }
.stat .l { font-size:12px; color:var(--muted); }
code.inline { background:#0b1220; padding:2px 6px; border-radius:4px; font-size:13px; }
pre.code { background:#0b1220; padding:12px; border-radius:8px; overflow:auto; font-size:12px; border:1px solid var(--line); }
.tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.tabs a { padding:8px 14px; border-radius:8px; background:var(--card); border:1px solid var(--line); color:var(--txt); text-decoration:none; font-size:14px; }
.tabs a.on { background:var(--acc2); border-color:var(--acc2); color:#fff; }
.center { text-align:center; }
.big-otp { font-size:40px; letter-spacing:12px; text-align:center; font-weight:800; }
.countdown { font-size:28px; font-weight:800; color:var(--warn); }
