:root { --brand: #0b2440; --accent: #f5c400; --ink: #1a2230; --muted: #4a5565; --line: #e1e6ec; --ok: #1d7a4a; --bad: #b42318; --link: #0b5cad; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: #f4f6f9; color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-size: 16px; -webkit-tap-highlight-color: transparent; }
.top { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px; }
.top img { height: 30px; width: auto; }
.top span { font-size: 14px; color: #c9d5e6; }
main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.foot { text-align: center; font-size: 12px; color: #6b7280; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; line-height: 1.55; }
.muted { color: var(--muted); font-size: 14.5px; }
.small { font-size: 13px; color: #5b6676; }
label { font-size: 14px; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text] { height: 50px; border: 1px solid #c3cbd6; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 17px; background: #fff; color: var(--ink); }
input.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: 6px; text-transform: uppercase; text-align: center; }
input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(11,92,173,.18); }
button { font: inherit; cursor: pointer; }
.btn { min-height: 50px; border-radius: 8px; border: 1px solid transparent; font-size: 16px; font-weight: 600; padding: 0 18px; }
.btn.pri { background: var(--brand); color: #fff; }
.btn.sec { background: #fff; color: var(--ink); border-color: #c3cbd6; font-weight: 500; }
.btn.bad { background: #fff; color: var(--bad); border-color: #e7b4ae; }
.btn:disabled { opacity: .55; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.steps { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; }
.steps li { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0f2f5; font-size: 14.5px; line-height: 1.5; }
.steps li:last-child { border-bottom: 0; }
.steps b { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.status { display: flex; align-items: center; gap: 12px; }
.dot { flex: none; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.dot.ok { background: #e6f4ec; } .dot.warn { background: #fff4d6; } .dot.bad { background: #fdecec; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { color: #5b6676; } .kv dd { margin: 0; font-weight: 500; word-break: break-all; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nums button { min-height: 72px; border-radius: 10px; border: 1.5px solid #c3cbd6; background: #fff; font-size: 30px; font-weight: 700; color: var(--brand); font-family: ui-monospace, Menlo, Consolas, monospace; }
.nums button:active { background: #eef3f9; }
.timer { height: 4px; background: #e8edf3; border-radius: 2px; overflow: hidden; }
.timer div { height: 4px; background: var(--link); transition: width 1s linear; }
.err { color: var(--bad); font-size: 14.5px; }
.okmsg { color: var(--ok); font-size: 14.5px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.tag.approved { color: var(--ok); border-color: #a9d8bd; } .tag.denied { color: var(--bad); border-color: #e7b4ae; } .tag.expired, .tag.pending { color: #5b6676; border-color: #d1d5db; }
a { color: var(--link); }
.bignum { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 88px; font-weight: 700; line-height: 1; color: var(--brand);
  text-align: center; letter-spacing: 6px; padding: 18px 0; border: 1.5px solid #c3cbd6; border-radius: 12px; background: #f8fafc; }
.status h1 { font-size: 21px; }
.tag.sms { color: #8a5a00; border-color: #f0d59a; }
.top b { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.top b:empty { display: none; }
