/* NK Sports Accounts: green #166534 and white (ARK, 4 Dec 2026) */
:root { --g: #166534; --g2: #14532D; --ink: #111; --mute: #555; --line: #E2E2E2; --ground: #F4F4F2;
        --ok: #1D4ED8; --okbg: #EFF6FF; --wait: #9A3412; --waitbg: #FFF7ED; --bad: #B91C1C; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.phone { max-width: 520px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; background: var(--ground); }
@media (min-width: 560px) { .phone { box-shadow: 0 0 0 1px var(--line); } }

.bar { background: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.bar .logo { height: 26px; width: auto; }
.bar .title { font-size: 18px; font-weight: 800; flex: 1; }
.iconbtn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.who { min-width: 44px; height: 40px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--g); background: #fff; color: var(--g); font-weight: 700; font-size: 14px; }

.strip { background: var(--g); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.strip span { display: flex; align-items: center; gap: 6px; }
.strip.off { background: #3F3F3F; }
.monthwarn { background: #FEF3C7; border-bottom: 2px solid #B45309; padding: 12px 16px; display: flex; gap: 10px; font-size: 14px; color: #78350F; }
.monthwarn svg { flex: none; margin-top: 2px; color: #92400E; }

.pad { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card.list { padding: 4px 14px; gap: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row.gap { justify-content: flex-start; } .wrap { flex-wrap: wrap; }
.sub { font-size: 13px; color: var(--mute); }
.okcard, .waitcard { flex-direction: row; align-items: center; gap: 12px; }
.okcard { color: var(--ok); } .okcard b { color: #1E3A8A; }
.waitcard { background: var(--waitbg); border: 1.5px solid #C2410C; color: var(--wait); } .waitcard b, .waitcard .sub { color: #7C2D12; }

.bigbtn { background: var(--g); color: #fff; border-radius: 14px; padding: 20px; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.bigbtn:active { background: var(--g2); }
.bigbtn .big { display: block; font-size: 20px; font-weight: 800; } .bigbtn .small { display: block; font-size: 13px; color: #DCFCE7; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; color: var(--ink); }
.tile svg { color: var(--g); }

.tabs { background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 12px; color: var(--mute); }
.tabs a.on { color: var(--g); font-weight: 700; }

.sec { font-size: 13px; font-weight: 700; color: #444; margin: 6px 0 0; letter-spacing: .02em; }
.sec.bad { color: var(--wait); }
.li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 46px; border-bottom: 1px solid #EEE; font-size: 14px; }
.li:last-child { border-bottom: 0; }
.refused { border: 1.5px solid var(--bad); }
.refused .li { border: 0; min-height: 0; }
.why { font-size: 13px; color: #7F1D1D; }
.ghost { min-height: 44px; padding: 0 14px; border: 1.5px solid #BDBDBD; background: #fff; border-radius: 10px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; color: var(--ink); }
.ghost.strong { border: 2px solid var(--g); color: var(--g); }
.ghost:disabled { opacity: .6; }
.primary { min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--g); color: #fff; font-weight: 700; font-size: 17px; }

.signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: #fff; }
.signin .biglogo { height: 80px; width: auto; }
.signin h1 { margin: 0; font-size: 26px; font-weight: 800; }
.signin p { margin: 0; color: #333; }
.warntext { color: var(--wait); font-size: 14px; font-weight: 600; }

/* ── sale bill (step 2) ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.salebill { padding-bottom: 96px; }
.step { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 2px var(--g); }
.step h2 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; color: var(--g); }
.step label { font-size: 13px; font-weight: 600; color: #333; }
.stepdone { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; background: #fff; border: 0; border-radius: 12px; text-align: left; color: var(--ink); }
.stepdone .n, .step .n { font-size: 18px; color: var(--g); }
.stepdone .t { flex: 1; font-size: 15px; }
.stepdone .ed { font-size: 13px; color: var(--g); font-weight: 700; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; min-height: 64px; padding: 10px 12px; border: 1.5px solid #CFCFCF; border-radius: 12px; background: #fff; color: var(--ink); }
.choice.wide { width: 100%; }
.choice.on { border: 2.5px solid var(--g); background: #F0FDF4; }
.in { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #BDBDBD; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.in:focus { outline: 3px solid #86EFAC; border-color: var(--g); }
.in.qty { width: 64px; text-align: center; } .in.rate { width: 96px; text-align: right; } .in.amt { width: 120px; text-align: right; }
.card.list .li.pick { width: 100%; background: none; border: 0; border-bottom: 1px solid #EEE; text-align: left; color: var(--ink); padding: 6px 0; }
.duepill { background: var(--waitbg); color: var(--wait); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.picked { background: #F0FDF4; border-radius: 10px; padding: 10px 12px; }
.q { margin: 4px 0 0; font-size: 15px; }
.newc { display: flex; flex-direction: column; gap: 8px; }
.line { border-top: 1px solid #EEE; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.qb { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid #BDBDBD; background: #fff; font-size: 22px; font-weight: 700; color: var(--g); }
.x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: #777; font-size: 18px; }
.sub.lo, .lo { color: var(--bad); font-weight: 600; }
.seg { display: inline-flex; border: 1.5px solid #BDBDBD; border-radius: 10px; overflow: hidden; }
.seg button { min-width: 52px; min-height: 46px; border: 0; background: #fff; font-weight: 700; font-size: 16px; color: var(--ink); }
.seg button.on { background: var(--g); color: #fff; }
.sumline { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #F6F6F4; border-radius: 10px; font-size: 14px; }
.sumline.big { font-size: 17px; } .sumline.warn { background: var(--waitbg); color: var(--wait); } .sumline.ok { background: #F0FDF4; color: var(--g); }
.accts { display: grid; grid-template-columns: 1fr; gap: 6px; }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acct label { font-size: 15px; font-weight: 600; }
.acct.due { border-top: 1px dashed #CCC; padding-top: 8px; align-items: flex-start; flex-direction: column; }
.fill { min-height: 44px; padding: 0 10px; border: 1.5px dashed var(--g); border-radius: 10px; background: #fff; color: var(--g); font-weight: 700; font-size: 13px; }
.tick { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 44px; }
.tick input { width: 22px; height: 22px; }
.primary.sm { min-height: 46px; font-size: 15px; }
.savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.savebar > div { display: flex; flex-direction: column; }
.savebar b { font-size: 20px; }
.okline { display: flex; align-items: center; gap: 8px; color: var(--g); font-size: 15px; }
.receipt .rl { font-size: 14px; padding: 4px 0; border-bottom: 1px solid #F0F0F0; }
.receipt .rl.t { border-top: 1px solid #DDD; } .receipt .rl.tot { font-weight: 800; font-size: 16px; }
.primary.wa { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.row.gap > a.ghost { flex: 1; justify-content: center; }
