/* ============================================================================
   judi-confirm — mobile-first, ~340px column, flat, no gradients/shadows.
   Brand orange #F05423 (from logo). Header black. Darker orange for text.
   ============================================================================ */
:root{
  /* Pop-A-Lock brand — sampled from popalock.com (not guessed) */
  --orange:#FF5100;      /* primary CTA orange */
  --orange-2:#FF7800;    /* secondary orange */
  --orange-dk:#CC4100;   /* pressed / link text */
  --orange-dk2:#A33400;  /* deep accent text */
  --dark:#24282C;        /* brand dark (their footer tone) */
  --ink:#1D252D;         /* brand near-black for body text */
  --muted:#7a7a7a;
  --line:#e6e6e6;
  --bg:#f6f6f6;
  --card:#ffffff;
  --ok:#2e7d32;
  --col:340px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);color:var(--ink);
  font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* header */
/* Header is WHITE on purpose: the real Pop-A-Lock logo is transparent with
   black elements (the key badge outline and "LOCKSMITH"), which disappear on a
   dark background. White + an orange rule matches popalock.com's own header. */
.hdr{
  background:#fff;display:flex;align-items:center;justify-content:center;position:relative;
  padding:12px;padding-top:calc(12px + env(safe-area-inset-top));
  border-bottom:3px solid var(--orange);
}
.logo{height:46px;width:auto;display:block}
.test-badge{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  background:var(--orange);color:#fff;font-weight:800;font-size:11px;letter-spacing:.06em;
  padding:2px 7px;border-radius:4px;
}

/* layout column */
.wrap{max-width:var(--col);margin:0 auto;padding:18px 16px 40px}
.loading{color:var(--muted);text-align:center;padding:40px 0}
.errbox{background:#fff3f0;border:1px solid #f3c9bf;color:var(--orange-dk2);border-radius:10px;padding:14px;margin-top:10px}

/* status */
.status-title{font-size:22px;line-height:1.2;margin:2px 0 4px;font-weight:800}
.status-sub{color:var(--muted);margin:0 0 16px;font-size:14px}

/* tracker */
.tracker{position:relative;margin:6px 2px 4px}
.tracker-line{position:absolute;left:18px;right:18px;top:11px;height:4px;background:var(--line);border-radius:2px}
.tracker-fill{height:100%;width:0;background:var(--orange);border-radius:2px;transition:width .5s ease}
.tracker-dots{position:relative;display:flex;justify-content:space-between}
.tk{display:flex;flex-direction:column;align-items:center;width:25%;text-align:center}
.tk .dot{width:22px;height:22px;border-radius:50%;background:#fff;border:3px solid var(--line);z-index:1;transition:.3s}
.tk.complete .dot{background:var(--orange);border-color:var(--orange)}
.tk.complete .dot::after{content:"✓";color:#fff;font-size:12px;font-weight:800;line-height:16px;display:block}
.tk.active .dot{border-color:var(--orange);background:#fff;animation:pulse 1.4s infinite}
.tk .lbl{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.15}
.tk.complete .lbl,.tk.active .lbl{color:var(--ink);font-weight:600}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(240,84,35,.45)}70%{box-shadow:0 0 0 8px rgba(240,84,35,0)}100%{box-shadow:0 0 0 0 rgba(240,84,35,0)}}

/* refresh line */
.refresh{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin:14px 0 4px}
.spin{width:12px;height:12px;border:2px solid var(--line);border-top-color:var(--orange);border-radius:50%;display:inline-block}
.spin.go{animation:sp .7s linear}
@keyframes sp{to{transform:rotate(360deg)}}

/* eta band */
.eta-band{display:flex;align-items:center;justify-content:space-between;background:var(--dark);color:#fff;border-radius:12px;padding:14px 16px;margin:10px 0 4px}
.eta-name{font-weight:800;font-size:17px}
.eta-unit{color:#bbb;font-size:13px}
.eta-min{font-size:30px;font-weight:800;color:var(--orange);line-height:1}
.eta-min small{font-size:12px;color:#bbb;margin-left:3px;font-weight:600}

/* details */
.details{background:var(--card);border:1px solid var(--line);border-radius:12px;margin:16px 0;overflow:hidden}
.row{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row .k{color:var(--muted);font-size:13px;flex:0 0 40%}
.row .v{font-weight:600;text-align:right;flex:1;min-width:0;word-break:break-word}
.addr-row{flex-direction:column;align-items:stretch}
.addr-row .k{text-align:left;margin-bottom:4px}
.addr-row .v{text-align:left;display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.edit-link{background:none;border:0;color:var(--orange-dk);font-weight:700;font-size:13px;padding:0;cursor:pointer;white-space:nowrap}
.addr-edit{margin-top:10px}
#addrInput{width:100%;padding:11px 12px;border:2px solid var(--orange);border-radius:9px;font-size:16px;outline:none}
.suggest{list-style:none;margin:6px 0 0;padding:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.suggest li{padding:11px 12px;border-bottom:1px solid var(--line);font-size:14px;cursor:pointer}
.suggest li:last-child{border-bottom:0}
.suggest li:active,.suggest li.hi{background:#fff3f0}
.addr-hint{color:var(--muted);font-size:12px;margin:8px 2px 0}
.addr-hint.warn{color:var(--orange-dk2)}

/* battery teaser */
.battery-teaser{background:#fff7f4;border:1px solid #f3c9bf;border-radius:12px;padding:14px;margin:4px 0 16px}
.bt-head{font-weight:800;color:var(--orange-dk2)}
.bt-body{font-size:13px;color:#5a5a5a;margin:6px 0 12px}

/* buttons */
.btn-primary{display:block;width:100%;background:var(--orange);color:#fff;border:0;border-radius:11px;padding:15px;font-size:17px;font-weight:800;cursor:pointer}
.btn-primary:active{background:var(--orange-dk)}
.btn-primary:disabled{opacity:.5}
.btn-ghost{display:block;width:100%;background:#fff;color:var(--orange-dk);border:2px solid var(--orange);border-radius:11px;padding:12px;font-size:15px;font-weight:800;cursor:pointer}
.btn-text{display:block;width:100%;background:none;border:0;color:var(--muted);padding:12px;font-size:15px;cursor:pointer;margin-top:6px}

/* footer */
.footer{text-align:center;color:var(--muted);font-size:13px;margin-top:20px}
.footer a{color:var(--orange-dk);font-weight:700;text-decoration:none}

/* battery modal (bottom sheet) */
.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:20}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;background:#fff;border-radius:18px 18px 0 0;
  padding:10px 18px calc(24px + env(safe-area-inset-bottom));max-width:var(--col);margin:0 auto;
  transform:translateY(100%);transition:transform .28s ease}
.sheet.open{transform:translateY(0)}
.sheet-handle{width:40px;height:4px;background:var(--line);border-radius:2px;margin:6px auto 14px}
.sheet-loading{color:var(--muted);text-align:center;padding:24px 0}
.sheet-title{font-size:18px;margin:0 0 10px;font-weight:800}
.bat-price{font-size:40px;font-weight:800;color:var(--orange);line-height:1}
.bat-cur{font-size:22px;vertical-align:top;margin-right:1px}
.bat-type{font-weight:600;margin-top:6px}
.bat-warranty{color:var(--muted);font-size:13px;margin:2px 0 16px}

.hidden,[hidden]{display:none !important}
