/* Pay Confirm — dark emerald family, the green light is the hero. */
* { box-sizing: border-box; }
:root {
  --bg: #0e1b16; --card: #16261f; --line: #2a4034; --ink: #e8e8e8; --dim: #9fb8ad;
  --emerald: #1f5c4a; --emerald-hi: #4ade80; --gold: #c9a227; --red: #b3261e; --red-soft: #e59a9a;
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, sans-serif; line-height: 1.55; }
header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 800; letter-spacing: 1.5px; font-size: 17px; }
.brand span { color: var(--emerald-hi); }
.pill { background: rgba(74, 222, 128, .12); color: var(--emerald-hi); border: 1px solid rgba(74, 222, 128, .35);
  font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 90px; }
h1 { font-size: 24px; margin: 8px 0 4px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin: 22px 0 8px; }
.sub { color: var(--dim); font-size: 14px; margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin: 12px 0 6px; }
input, select { width: 100%; padding: 13px; border-radius: 9px; border: 1px solid var(--line); background: #0c1512; color: var(--ink); font-size: 16px; }
input:focus { outline: 2px solid var(--emerald-hi); }
button.btn { width: 100%; padding: 15px; margin-top: 14px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; background: var(--emerald); color: #fff; }
button.btn:active { transform: scale(.99); }
button.btn.gold { background: var(--gold); color: #1a1a1a; }
button.btn.small { width: auto; padding: 9px 14px; font-size: 13px; margin: 4px 6px 0 0; display: inline-block; }
button.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); }
nav { position: fixed; bottom: 0; left: 0; right: 0; background: #0a1410; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 8px 0 10px; }
nav button { background: none; border: 0; color: var(--dim); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 10px; }
nav button.on { color: var(--emerald-hi); border-bottom: 2px solid var(--emerald-hi); }
section.screen { display: none; }
section.screen.on { display: block; }
.ref-big { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 800; color: var(--gold); text-align: center; letter-spacing: 2px; margin: 10px 0; }
.amt-big { font-size: 32px; font-weight: 800; text-align: center; margin: 6px 0 2px; }
.status-line { text-align: center; color: var(--dim); font-size: 14px; min-height: 22px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.check:last-child { border-bottom: 0; }
.check .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--dim); flex: 0 0 auto; margin-top: 1px; }
.check.pass .dot { border-color: var(--emerald-hi); background: var(--emerald-hi); }
.check.fail .dot { border-color: var(--red); background: var(--red); }
.check.pass .c-detail, .check.fail .c-detail { display: block; }
.c-detail { color: var(--dim); font-size: 12px; display: none; }
.c-title { font-weight: 600; }
/* THE GREEN LIGHT */
#green-screen { text-align: center; padding: 34px 16px; border-radius: 16px; background: linear-gradient(160deg, #0d3a2a, #0e5c3f); border: 1px solid #2f7a58; display: none; }
#green-screen.on { display: block; animation: pop .45s ease; }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.g-badge { font-size: 40px; font-weight: 900; letter-spacing: 4px; color: #b8ffd9; }
.g-sub { color: #c9f5dd; font-size: 13px; letter-spacing: 1px; }
.g-amt { font-size: 38px; font-weight: 900; color: #fff; margin: 12px 0 2px; }
.g-method { display: inline-block; margin: 10px 0; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.g-method.safe { background: rgba(184, 255, 217, .15); color: #b8ffd9; border: 1px solid rgba(184,255,217,.4); }
.g-method.caution { background: rgba(201, 162, 39, .18); color: #ffe9a3; border: 1px solid rgba(201,162,39,.5); }
.g-note { font-size: 12.5px; color: #d7f2e4; max-width: 380px; margin: 4px auto 8px; }
/* autopsy */
#autopsy { display: none; border-color: #7a2e2e; background: #2a1717; }
#autopsy.on { display: block; }
.a-title { color: var(--red-soft); font-weight: 800; letter-spacing: 1px; }
.a-row { background: #3a2020; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.a-cause { font-weight: 700; color: #f3c2c2; }
.a-action { color: #e5c8c8; font-size: 13px; margin-top: 3px; }
.rule { text-align: center; color: var(--red-soft); font-weight: 800; letter-spacing: 1px; margin-top: 12px; }
/* misc */
.receipt { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; font-size: 13.5px; }
.receipt .sig { color: var(--dim); font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.lesson { margin-bottom: 14px; }
.lesson h3 { margin: 0 0 4px; font-size: 15px; color: var(--emerald-hi); }
.lesson p { margin: 0; color: var(--dim); font-size: 14px; }
.testbox { border: 1px dashed var(--gold); border-radius: 12px; padding: 14px; margin: 18px 0; }
.testbox .t-head { color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.testbox .t-sub { color: var(--dim); font-size: 12px; margin: 4px 0 8px; }
.toast { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1a1a;
  font-weight: 700; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 86%; }
.toast.on { opacity: 1; }
footer { text-align: center; color: #5b7268; font-size: 11.5px; padding: 14px 16px 90px; }
