:root {
  --bg: #0B0B0B;
  --panel: #161616;
  --panel2: #1f1f1f;
  --line: #2c2c2c;
  --text: #ffffff;
  --muted: #a3a3a3;
  --yellow: #F0ED5E;
  --green: #5ee08a;
  --amber: #ffb347;
  --red: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--yellow); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 1100px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 34px; }
.wordmark { font-family: Anton, Impact, sans-serif; font-size: 24px; letter-spacing: .5px; line-height: 1; }
.wordmark .i { position: relative; }
.wordmark .i::after { content: "✦"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); color: var(--yellow); font-size: 11px; }
.sub { color: var(--yellow); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }

nav.admin { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #111; }
nav.admin a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
nav.admin a.on, nav.admin a:hover { color: var(--bg); background: var(--yellow); }
nav.admin .badge { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

h1, h2, h3 { margin: 0 0 12px; }
h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 34px; letter-spacing: .5px; line-height: 1.1; }
h2 { font-size: 18px; }
p.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; }
.card.hl { border-color: var(--yellow); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); border-color: transparent; }
input[type=file] { padding: 10px; }
input[type=checkbox] { width: auto; margin-right: 6px; }
.check { display: flex; align-items: center; color: var(--text); font-weight: 500; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 10px; border: 0; background: var(--yellow); color: var(--bg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid #4a2222; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; min-width: 140px; }
.mt { margin-top: 14px; }

.flash { padding: 12px 14px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.flash.ok { background: #13301e; color: #b8f5cc; border: 1px solid #1f5a35; }
.flash.err { background: #3a1616; color: #ffc6c6; border: 1px solid #6a2626; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.active { background: #13301e; color: var(--green); }
.pill.expiring { background: #3a2a10; color: var(--amber); }
.pill.expired, .pill.rejected { background: #3a1616; color: var(--red); }
.pill.unpaid, .pill.pending { background: #2e2c0c; color: var(--yellow); }
.pill.cancelled { background: #222; color: var(--muted); }
.pill.verified { background: #13301e; color: var(--green); }

.big-status { text-align: center; padding: 26px 18px; }
.big-status .days { font-family: Anton, Impact, sans-serif; font-size: 64px; line-height: 1; color: var(--yellow); }
.big-status .days.bad { color: var(--red); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text); display: block; }
.stat .n { font-family: Anton, Impact, sans-serif; font-size: 40px; line-height: 1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stat.y .n { color: var(--yellow); }
.stat.a .n { color: var(--amber); }
.stat.r .n { color: var(--red); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #141414; }
.table-wrap { overflow-x: auto; }
.plate { font-family: ui-monospace, Menlo, monospace; background: #fff; color: #000; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 13px; }

.qr { background: #fff; border-radius: 14px; padding: 14px; display: block; width: 100%; max-width: 300px; margin: 6px auto; }
.amount { font-family: Anton, Impact, sans-serif; font-size: 44px; color: var(--yellow); text-align: center; line-height: 1.1; }
.ref { font-family: ui-monospace, Menlo, monospace; font-size: 18px; background: var(--panel2); border: 1px dashed var(--yellow); padding: 8px 12px; border-radius: 8px; display: inline-block; letter-spacing: 1px; }
ol.steps { padding-left: 20px; color: var(--muted); }
ol.steps li { margin: 6px 0; }
.proof { max-width: 160px; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pay-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
@media (max-width: 640px) { .pay-row { grid-template-columns: 1fr; } .hide-sm { display: none; } }
footer { text-align: center; color: #666; font-size: 12px; padding: 24px 16px; }
.row > .pill, .row > form.inline { flex: 0 0 auto; min-width: 0; }
.wordmark, .btn { white-space: nowrap; }
@media (max-width: 420px) { .sub { font-size: 10px; letter-spacing: 1px; } header.top { padding: 12px; } }
