:root {
  --bg: #f3f6f4;
  --card: #ffffff;
  --text: #17211d;
  --muted: #5f6d67;
  --line: #dfe5e2;
  --brand: #0f6b4f;
  --green: #1f9d55;
  --amber: #c98a0b;
  --red: #c8412d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
.wrap { max-width: 460px; margin: 0 auto; padding: 20px 16px 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; }
.head h1 { margin: 0; font-size: 19px; }
.head p { margin: 2px 0 0; font-size: 14px; }

.card { background: var(--card); border-radius: 14px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.card.center { text-align: center; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.15); }
#cid { text-transform: uppercase; letter-spacing: 0.04em; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.error { color: var(--red); font-size: 14px; min-height: 1.2em; margin: 8px 0; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none; font: inherit; font-weight: 600; font-size: 16px; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; margin-top: 10px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:disabled { opacity: 0.6; cursor: wait; }
.btn.link { border: 0; background: none; color: var(--brand); font-weight: 500; font-size: 14px; }

.who { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.name { font-weight: 650; font-size: 17px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; color: #fff; white-space: nowrap; }
.pill.GREEN { background: var(--green); } .pill.AMBER { background: var(--amber); } .pill.RED { background: var(--red); }
.owed { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 16px; }
.owed strong { font-size: 26px; font-variant-numeric: tabular-nums; }

.naira-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.naira-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.15); }
.naira-input span { padding-left: 14px; font-size: 18px; color: var(--muted); }
.naira-input input { border: 0; box-shadow: none !important; padding-left: 6px; font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.quick button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.quick button.on { border-color: var(--brand); background: #e8f3ee; color: var(--brand); }

.big-icon { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 10px; display: grid; place-items: center; font-size: 32px; color: #fff; }
.big-icon.ok { background: var(--green); } .big-icon.wait { background: var(--amber); } .big-icon.bad { background: var(--red); }
#step-result h2 { margin: 0 0 6px; font-size: 20px; }

.warning { background: #fff7e3; border: 1px solid #f0dca4; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 16px; line-height: 1.45; }
.foot { text-align: center; margin-top: 14px; }
