:root {
  --navy: #0B2A6B; --navy2: #081c4a; --orange: #FF6A00; --orange2: #ff8a2b;
  --bg: #ffffff; --card: #f4f6fb; --line: #e3e7f0; --text: #101828; --muted: #667085;
  --ok: #12a150; --bad: #d92d20; --warn: #b54708; --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #dfe5f1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
h3 { margin: 4px 0 6px; font-size: 20px; } h4 { margin: 14px 0 6px; font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pad { padding: 18px 8px; }
.grow { flex: 1; min-width: 0; } .wide { width: 100%; } .neg { color: var(--bad); } .pos { color: var(--ok); }

#map { position: fixed; inset: 0; z-index: 0; }
.leaflet-container { font: inherit; background: #dfe5f1; }
.pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); font-size: 18px; }
.pin.me span { background: #fff; border: 3px solid #2e6cff; font-size: 12px; }
.pin.drv span { background: var(--navy); border: 2px solid #fff; }

.fab { position: fixed; z-index: 500; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.25); font-size: 22px; color: var(--navy); }
.fab i { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #d92d20; color: #fff; font: 700 12px/16px system-ui, sans-serif; text-align: center; border: 2px solid #fff; display: none; font-style: normal; }
.fab.loc { left: auto; right: 10px; top: calc(110px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; font-size: 22px; z-index: 450; }
#popup { position: fixed; z-index: 1400; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -150%); width: min(94vw, 440px); background: #fff; color: var(--navy); border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.3); border-left: 6px solid var(--orange); display: grid; gap: 2px; transition: transform .25s; cursor: pointer; }
#popup.show { transform: translate(-50%, 0); }
#popup b { font-size: 15px; } #popup span { font-size: 13px; color: #444; }
.brand-mini { position: fixed; z-index: 400; top: calc(18px + env(safe-area-inset-top, 0px)); left: 70px; height: 40px; background: rgba(255,255,255,.92); padding: 3px 6px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }

#sheet { position: fixed; z-index: 450; left: 0; right: 0; bottom: 0; max-height: 78dvh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + var(--safe-b)); box-shadow: 0 -6px 24px rgba(11,42,107,.22); overscroll-behavior: contain; overflow-x: hidden; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 10px; }
@media (min-width: 700px) { #sheet { left: 16px; right: auto; width: 440px; bottom: 16px; border-radius: 22px; max-height: calc(100dvh - 32px); } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 74px; padding: 8px 8px; border-radius: 14px; background: var(--card); font-size: 12px; font-weight: 600; border: 2px solid transparent; }
.chip span { font-size: 22px; }
.chip.on { border-color: var(--orange); background: #fff4ea; color: var(--navy); }

.field { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 0 10px; margin: 6px 0; }
.field input { flex: 1; border: 0; background: none; outline: none; padding: 13px 4px; min-width: 0; }
.field .icon { font-size: 20px; color: var(--navy); padding: 6px; }
.prefix { font-weight: 700; color: var(--navy); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .dot.green { background: var(--ok); } .dot.orange { background: var(--orange); }
.results { list-style: none; margin: 0 0 6px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.results li { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.results li:last-child { border-bottom: 0; } .results li:active { background: var(--card); }

input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; margin: 5px 0; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
.field input { border: 0; margin: 0; }
input.mini { padding: 10px; margin: 0; text-align: center; }
.req .wide { margin-top: 8px; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 2px; }
.pin-in { text-align: center; font-size: 26px; letter-spacing: 8px; font-weight: 700; }

.primary, .ghost, .danger { padding: 13px 16px; border-radius: 14px; font-weight: 700; text-align: center; display: inline-block; }
.primary { background: var(--orange); color: #fff; } .primary:active { background: var(--orange2); }
.ghost { background: var(--card); color: var(--navy); }
.danger { background: #fdeceb; color: var(--bad); }
.sos { background: var(--bad); color: #fff; padding: 13px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 1px; }
.big { width: 100%; padding: 16px; font-size: 17px; margin-top: 10px; }
.primary.small, .ghost.small, .danger.small { padding: 9px 12px; font-size: 13px; border-radius: 11px; }
.link { display: inline-block; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .row > * { flex: 1; } .row .ghost, .row .sos, .row .primary, .row .danger { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--card); font-size: 26px; color: var(--navy); font-weight: 700; }

.quote { text-align: center; margin-top: 8px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0; }
.price { font-size: 30px; font-weight: 800; color: var(--navy); min-width: 160px; }
.big-price { font-size: 34px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.pills { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.pill { padding: 9px 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; border: 2px solid transparent; }
.pill.on { border-color: var(--navy); background: #eaf0ff; color: var(--navy); }
.card-in { background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.card-in h4 { margin-top: 2px; }

.route-line { display: grid; gap: 4px; background: var(--card); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.route-line.small { font-size: 13px; margin: 6px 0; padding: 8px 10px; }
.offer, .req, .hist { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 10px 12px; border-radius: 14px; margin: 8px 0; }
.req, .hist { display: block; }
.hist.unread { border-left: 4px solid var(--orange); }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.av { position: relative; overflow: hidden; }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.big { width: 52px; height: 52px; font-size: 22px; }
.plate { background: #ffe9a8; border: 2px solid #111; border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.price-tag { background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.status-bar { padding: 10px 12px; border-radius: 12px; font-weight: 700; text-align: center; background: #eaf0ff; color: var(--navy); margin-bottom: 8px; }
.status-bar.s-arrived { background: #fff4ea; color: #b54708; } .status-bar.s-in_progress { background: #e6f7ee; color: var(--ok); }
.pin-box { text-align: center; background: #fff4ea; border: 2px dashed var(--orange); border-radius: 14px; padding: 8px; margin: 8px 0; }
.pin-box.alt { background: #eaf0ff; border-color: var(--navy); }
.pin { font-size: 36px; font-weight: 800; letter-spacing: 10px; color: var(--navy); padding-left: 10px; }
.ok-box { background: #e6f7ee; color: #0c6b38; padding: 10px 12px; border-radius: 12px; margin: 8px 0; font-weight: 600; }
.warn-box { background: #fdeceb; color: #b42318; border: 1px solid #f7c1bb; font-weight: 600; padding: 10px 12px; border-radius: 12px; margin: 8px 0; }
.warn-box b, .warn-box strong { color: #b42318; }
.demo-box { background: #eaf0ff; padding: 8px 12px; border-radius: 12px; margin: 8px 0; text-align: center; }
.linklike { color: var(--orange); font-weight: 800; font-size: 18px; text-decoration: underline; }
.big-emoji { font-size: 46px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.star { font-size: 38px; color: #cfd5e3; } .star.on { color: #f5a300; }
.pulse { width: 54px; height: 54px; border-radius: 50%; background: var(--orange); margin: 6px auto 10px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.wallet-card { background: linear-gradient(135deg, var(--navy), #1a47a8); color: #fff; border-radius: 16px; padding: 14px; text-align: center; margin: 8px 0; }
.wallet-card .big-price { color: #fff; } .wallet-card .muted { color: #cdd8f5; }
.wallet-chip { background: var(--card); padding: 9px 12px; border-radius: 999px; font-weight: 700; color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 8px 0; }
.stats div { background: var(--card); border-radius: 12px; padding: 8px 4px; } .stats b { display: block; font-size: 15px; } .stats span { font-size: 11px; color: var(--muted); }
.line { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tag { padding: 2px 8px; border-radius: 999px; background: #eaf0ff; font-weight: 600; font-size: 12px; }
.tag.t-completed { background: #e6f7ee; color: #0c6b38; } .tag.t-expired, .tag.t-cancelled_by_rider, .tag.t-cancelled_by_driver { background: #fdeceb; color: var(--bad); }
.tips { padding-left: 18px; line-height: 1.6; font-size: 14px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc { display: grid; place-items: center; gap: 2px; min-height: 92px; background: var(--card); border: 2px dashed var(--line); border-radius: 14px; font-size: 13px; text-align: center; cursor: pointer; overflow: hidden; position: relative; }
.doc.done { border-style: solid; border-color: var(--ok); } .doc img { width: 100%; height: 70px; object-fit: cover; } .doc span { padding-bottom: 6px; }

#drawer { position: fixed; inset: 0; z-index: 800; pointer-events: none; }
#drawer .scrim { position: absolute; inset: 0; background: rgba(8,28,74,.5); opacity: 0; transition: opacity .2s; }
#drawer-body { position: absolute; top: 0; bottom: 0; left: 0; width: min(310px, 84vw); background: #fff; transform: translateX(-100%); transition: transform .22s; padding: calc(16px + env(safe-area-inset-top, 0px)) 0 20px; overflow-y: auto; }
#drawer.open { pointer-events: auto; } #drawer.open .scrim { opacity: 1; } #drawer.open #drawer-body { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 8px 18px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 20px; text-align: left; font-size: 16px; font-weight: 600; }
.menu-item span { width: 26px; text-align: center; font-size: 20px; } .menu-item:active { background: var(--card); }
.badge { margin-left: auto; background: var(--orange); color: #fff; font-style: normal; border-radius: 999px; padding: 1px 8px; font-size: 12px; }

#modal { position: fixed; inset: 0; z-index: 900; background: rgba(8,28,74,.55); display: none; place-items: center; padding: 18px; }
#modal.open { display: grid; } .modal-card { background: #fff; border-radius: 20px; padding: 18px; width: min(420px, 100%); }
#toast { position: fixed; z-index: 1000; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; max-width: min(92vw, 440px); font-size: 14px; transition: transform .25s; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
#toast.show { transform: translate(-50%, 0); } #toast.err { background: var(--bad); } #toast.ok { background: var(--ok); }

#auth { position: fixed; inset: 0; z-index: 950; background: linear-gradient(160deg, #fff 0%, #eef3ff 100%); display: none; overflow-y: auto; }
#auth.open { display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(420px, 100%); }
.auth-logo { display: block; width: min(150px, 45%); margin: 0 auto 8px; }

/* login tabs and profile link forms */
.seg { display: flex; gap: 4px; background: #eef1f6; border-radius: 12px; padding: 4px; margin: 4px 0 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 600; color: #4a5568; }
.seg button.on { background: #fff; color: #14213d; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.stack { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
#auth input[type="email"], .stack input { width: 100%; }

/* typed fare, courier modes, calls, legal text */
.price-box { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 160px; }
.price-box span { font-size: 14px; font-weight: 700; color: var(--muted, #667085); }
.price-in { font-size: 30px; font-weight: 800; color: var(--navy, #0B2A6B); width: 150px; text-align: center; border: 0; border-bottom: 2px solid var(--orange, #FF6A00); background: transparent; padding: 2px 0; border-radius: 0; }
.price-in:focus { outline: none; border-bottom-color: var(--navy, #0B2A6B); }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.mode { border: 1.5px solid #e3e7f0; background: #fff; border-radius: 12px; padding: 8px 2px; display: grid; justify-items: center; gap: 2px; font: inherit; font-size: 13px; font-weight: 600; color: #14213d; }
.mode span { font-size: 22px; } .mode small { font-size: 11px; color: #667085; font-weight: 600; }
.mode.on { border-color: #FF6A00; background: #fff4ec; }
#callbox { position: fixed; inset: 0; background: rgba(8, 20, 50, .72); display: none; align-items: center; justify-content: center; z-index: 1200; }
#callbox.open { display: flex; }
.call-card { background: #fff; border-radius: 22px; padding: 26px 22px; width: min(330px, 88vw); text-align: center; display: grid; gap: 10px; }
.call-card h3 { margin: 0; }
.call-av { width: 84px; height: 84px; border-radius: 50%; background: #0B2A6B; color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; margin: 0 auto; }
.call-av.ring { animation: callpulse 1.2s infinite; } .call-av.live { box-shadow: 0 0 0 6px #12a15033; }
@keyframes callpulse { 0% { box-shadow: 0 0 0 0 #ff6a0099; } 100% { box-shadow: 0 0 0 22px #ff6a0000; } }
.legal h4 { margin: 16px 0 4px; } .legal p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.chev { margin-left: auto; font-style: normal; color: #98a2b3; }

.chat-list { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow-y: auto; padding: 4px 2px; }
.msg { align-self: flex-start; max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #eef1f6; color: #15181b; word-break: break-word; }
.msg.me { align-self: flex-end; background: #0B2A6B; color: #fff; }
.msg small { display: block; opacity: 0.65; font-size: 11px; margin-top: 2px; }
.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff6a00; color: #fff; font-size: 12px; font-weight: 800; text-align: center; }

/* Install bar */
.installbar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); z-index: 700; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; color: var(--text); border-color: var(--line); border: 1px solid rgba(0,0,0,.12); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.installbar img { border-radius: 10px; flex: none; }
.installbar .installtext { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.installbar .installtext span { opacity: .75; }
.installbar button { flex: none; width: auto; }

.termsbox{display:flex;gap:8px;align-items:flex-start;margin:12px 0;font-size:13px;color:var(--muted,#666);text-align:left}.termsbox input{margin-top:3px;width:18px;height:18px;flex:none}

.nbadge{display:inline-block;background:#efe9ff;color:#4b2bb0;border:1px solid #cdbff5;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.vbadge{display:inline-block;background:#e6f6ec;color:#0a7a3b;border:1px solid #b9e3c8;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:700;vertical-align:middle}

.row.wrapit{flex-wrap:wrap}.row.wrapit>*{flex:1 1 30%;text-align:center}.sos.wide{display:block;width:100%;margin-top:10px;padding:14px}

/* v20: call screen above everything, foldable trip panel, tidy tiles */
#callbox{z-index:1200!important}
#toast{z-index:1300}
button.grab{display:block;border:0;padding:0;height:5px;width:44px;margin:2px auto 12px;position:relative;background:var(--line);border-radius:3px}
button.grab::after{content:"";position:absolute;inset:-14px -48px}
.trip-min{display:none;align-items:center;gap:6px}
#sheet.min{max-height:none;overflow:visible;padding-bottom:calc(10px + var(--safe-b))}
#sheet.min .trip-full{display:none}
#sheet.min .trip-min{display:flex}
.min-status{font-weight:800;font-size:13px;color:var(--ok)}.min-status.s-accepted{color:var(--navy)}.min-status.s-arrived{color:var(--warn)}
.min-who{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-btn{position:relative;flex:none;width:44px;height:44px;border-radius:50%;background:var(--card);font-size:20px;color:var(--navy);display:grid;place-items:center}
.mini-btn.safe{background:#e6f7ee}
.mini-btn i{position:absolute;top:-2px;right:-2px;background:var(--orange);color:#fff;border-radius:999px;font-size:11px;font-style:normal;padding:0 5px;font-weight:800}
.trip-card{display:flex;align-items:center;gap:12px;background:var(--card);padding:12px;border-radius:16px;margin:8px 0}
.fare-line{padding:2px 4px;font-size:14px}.fare-line b{font-size:18px;color:var(--navy)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px;margin:12px 0}
.tile{position:relative;display:grid;justify-items:center;align-content:center;gap:2px;padding:11px 4px;min-height:68px;border-radius:14px;background:var(--card);font-size:12px;font-weight:700;color:var(--navy);text-align:center}
.tile span{font-size:22px;line-height:1.1}.tile small{font-size:11px;font-weight:600;color:var(--muted)}
.tile.safe{background:#e6f7ee;color:#0a6b38}.tile.bad{background:#fdeceb;color:var(--bad)}
.tile .badge-n{position:absolute;top:4px;right:8px}
.sos.wide{margin-top:4px}
.report-cta{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff4ea;border:1px solid #ffd9b8;border-radius:14px;padding:12px;margin:8px 0}
.report-cta>span{font-size:24px}.report-cta>div{flex:1}
.card-in details summary{cursor:pointer;list-style:none}.card-in details summary::-webkit-details-marker{display:none}
details.card-in summary{cursor:pointer}

.tipbox{background:#fff8e6;border:1px solid #f3dd9b;color:#5c4a00;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:13px;line-height:1.45}
.langbar{display:flex;justify-content:center;gap:4px;margin:0 auto 10px;width:fit-content;background:var(--card);border-radius:999px;padding:3px}.langbar button{padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700;color:var(--muted)}.langbar button.on{background:var(--navy);color:#fff}
.termsbox a{color:#0b5fd1;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:6px 1px}
.termsbox a:active{color:var(--orange)}
.termsbox span{line-height:1.7}

.offer-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, #e3e6ee); border-radius: 14px; margin: 8px 0; background: #fff; }
.offer-top { display: flex; align-items: center; gap: 10px; }
.offer-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.offer-eta { background: #eef4ff; border-radius: 10px; padding: 8px 10px; font-size: .92rem; }
.offer-card .row { display: flex; gap: 8px; }

/* Payment confirmation screen. Blends with the app background, no card shadow behind the logo. */
#payconfirm { position: fixed; inset: 0; z-index: 1200; background: var(--bg); overflow-y: auto; display: grid; place-items: center; padding: 22px 16px calc(22px + var(--safe-b)); animation: pcIn .3s both; }
#payconfirm .pc-wrap { width: min(100%, 470px); }
#payconfirm .pc-logo { display: block; width: min(70%, 260px); height: auto; margin: 0 auto 16px; background: transparent; }
#payconfirm .pc-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 24px 22px; text-align: center; }
#payconfirm .pc-card:before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--navy) 0 58%, var(--orange) 58% 100%); }
#payconfirm .pc-kicker { font-size: 11px; letter-spacing: .16em; font-weight: 800; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; }
#payconfirm h1 { font-size: 26px; line-height: 1.15; margin: 0 0 9px; color: var(--navy); letter-spacing: -.03em; }
#payconfirm .pc-sub { margin: 0 auto 20px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 320px; }
#payconfirm .pc-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; margin-bottom: 5px; }
#payconfirm .pc-amount { font-size: 33px; font-weight: 850; letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
#payconfirm .pc-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,161,80,.14); position: relative; animation: pcPop .55s .2s cubic-bezier(.2,1.5,.4,1) both; }
#payconfirm .pc-icon:before { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(18,161,80,.3); border-radius: 50%; animation: pcRing 1.1s .4s ease-out both; }
#payconfirm .pc-icon svg { width: 42px; height: 42px; stroke: var(--ok); stroke-width: 4.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#payconfirm .pc-icon path { stroke-dasharray: 52; stroke-dashoffset: 52; animation: pcDraw .55s .6s ease forwards; }
#payconfirm .pc-receipt { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 4px; text-align: left; background: var(--bg); }
#payconfirm .pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#payconfirm .pc-head strong { font-size: 12px; color: var(--navy); }
#payconfirm .pc-head span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: rgba(18,161,80,.14); border-radius: 99px; padding: 6px 9px; font-weight: 800; }
#payconfirm .pc-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 12px; }
#payconfirm .pc-row span:first-child { color: var(--muted); }
#payconfirm .pc-row span:last-child { color: var(--text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
#payconfirm .pc-done { margin-top: 20px; width: 100%; }
#payconfirm .pc-btns { display: flex; gap: 10px; margin-top: 20px; }
#payconfirm .pc-btns button { flex: 1; margin: 0; width: auto; font-size: 15px; padding-left: 4px; padding-right: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
#payconfirm .pc-share { background: #fff; color: #12295a; border: 2px solid #12295a; font-weight: 800; }
#payconfirm .pc-secure { margin: 14px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
#payconfirm .pc-spin { width: 52px; height: 52px; border: 4px solid var(--line); border-top-color: var(--orange); border-radius: 50%; margin: 8px auto 22px; animation: pcSpin .8s linear infinite; }
#payconfirm .pc-fail { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 18px; background: rgba(217,45,32,.12); color: var(--bad); display: grid; place-items: center; font-size: 40px; }
.pc-confetti { position: fixed; top: -15px; width: 8px; height: 12px; z-index: 1250; pointer-events: none; animation: pcFall var(--dur) linear forwards; opacity: .95; }
@keyframes pcSpin { to { transform: rotate(360deg); } }
@keyframes pcDraw { to { stroke-dashoffset: 0; } }
@keyframes pcPop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pcRing { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pcIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcFall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { #payconfirm *, #payconfirm *:before, .pc-confetti { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
#payconfirm .pc-spin.small { width: 26px; height: 26px; border-width: 3px; margin: 16px auto 8px; }
#payconfirm .pc-copy { padding: 4px 10px; margin-left: 6px; }
#payconfirm .pc-close { margin-top: 12px; }
#payconfirm .pc-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdeceb; border: 1px solid #f7c1bb; color: #b42318; font-size: 13px; line-height: 1.5; text-align: left; font-weight: 700; }
input[type="datetime-local"] { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--card); color: var(--text); margin: 4px 0; }
.tag.t-scheduled { background: #fff3e6; color: #a34a00; }

.reasons { display: grid; margin: 8px 0 12px; max-height: 60vh; overflow-y: auto; }
.reason { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: #fff; color: #12295a; border: 0; border-bottom: 1px solid #e3e8f0; border-radius: 0; padding: 12px 4px; font-size: 16px; font-weight: 700; width: 100%; }
.reason span { font-size: 22px; color: #12295a; }
.reason:active { background: #f1f5fb; }

.waitbox { background: #fff7e8; border: 2px solid #f06400; border-radius: 16px; padding: 12px 14px; margin: 10px 0; text-align: center; }
.waitbox .w-label { font-weight: 800; color: #12295a; font-size: 14px; }
.waitbox .w-time { font-size: 34px; font-weight: 900; color: #12295a; line-height: 1.2; font-variant-numeric: tabular-nums; }
.waitbox.over { background: #fdeceb; border-color: #c62828; }
.waitbox.over .w-time, .waitbox.over .w-label { color: #c62828; }

.lang-line { font-size: 12px; color: #4b5a73; margin-top: 2px; }
.langs { margin: 10px 0; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lang-chip { border: 2px solid #c7d0dc; background: #fff; color: #12295a; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.lang-chip.on { background: #12295a; border-color: #12295a; color: #fff; }
