/* Taxi Yami passenger + driver app */
html, body { height: 100%; }
body { background: var(--navy-900); overscroll-behavior-y: none; }
/* Phones: the app fills the screen exactly (tab bar and map panels stay put, content scrolls inside). */
body { overflow: hidden; position: fixed; inset: 0; }
.shell { position: relative; max-width: 440px; margin: 0 auto; height: 100vh; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.desk-hint { display: none; }
/* Desktop / laptop: show the app inside a phone frame so it can be previewed on a big screen. */
@media (min-width: 520px) and (hover: hover) and (pointer: fine) {
  body { position: static; overflow: auto; background: radial-gradient(1200px 600px at 20% 0%, #1552B5 0%, var(--navy-900) 60%); }
  .shell { margin: 20px auto; border-radius: 34px; box-shadow: 0 0 0 10px #0B1220, 0 0 0 12px #2A3345, 0 30px 80px rgba(0,0,0,.45); height: calc(100vh - 40px); height: calc(100dvh - 40px); max-height: 900px; max-width: 420px; }
  .desk-hint { display: block; position: fixed; left: 20px; bottom: 16px; color: #CADCFC; font-size: 13px; max-width: 260px; line-height: 1.4; }
  .desk-hint b { color: #fff; }
}
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.boot { flex: 1; display: grid; place-items: center; background: var(--navy); color: #fff; }
.boot .wordmark { font-size: 44px; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar .wordmark { font-size: 24px; }
.topbar .title { font-family: var(--serif); font-weight: 700; font-size: 19px; flex: 1; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 15px; }

.screen { padding: 16px 16px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px -4px; }
.section-title h3 { font-size: 18px; }
.section-title a { font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---------- bottom tab bar ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: flex; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted-2); text-decoration: none; padding: 4px 0; background: none; border: 0; cursor: pointer; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--navy); }
.tab.book { position: relative; top: -18px; }
.tab.book .fab { width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,193,7,.55); border: 4px solid #fff; }
.tab.book .fab svg { width: 26px; height: 26px; }
.tab.book span { margin-top: -2px; color: var(--ink); }

/* ---------- auth ---------- */
.auth { flex: 1; display: flex; flex-direction: column; background: var(--navy); }
.auth-hero { color: #fff; padding: calc(40px + env(safe-area-inset-top)) 24px 60px; position: relative; overflow: hidden; }
.auth-hero .wordmark { font-size: 52px; }
.auth-hero p { color: #CADCFC; margin-top: 10px; font-size: 15px; }
.auth-hero .eyebrow { margin-bottom: 14px; display: block; }
.auth-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255,193,7,.14); }
.auth-card { flex: 1; background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -26px; padding: 22px 20px 30px; position: relative; z-index: 1; }
.seg { display: flex; background: #E3E7EE; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.seg button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.demo-hint { display: flex; align-items: center; gap: 10px; background: var(--yellow-100); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 14px; }
.demo-hint code { font-family: var(--mono); font-size: 12px; }
.demo-hint .btn { margin-left: auto; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; }
.auth-foot button { background: none; border: 0; color: var(--navy); font-weight: 700; cursor: pointer; padding: 0; }
.admin-link { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 26px; text-decoration: none; }
.admin-link:hover { color: var(--navy); }
.err-box { background: var(--red-100); color: #9B2424; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }

/* ---------- wallet card ---------- */
.wallet-card { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); }
.wallet-card::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 28px solid rgba(255,193,7,.16); }
.wallet-card .eyebrow { color: var(--yellow); }
.wallet-card .bal { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 4px 0 16px; letter-spacing: -.02em; }
.wallet-card .bal small { font-size: 22px; opacity: .85; }
.wallet-card .actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.wallet-card .actions .btn { flex: 1; }
.wallet-card .btn-glass { background: rgba(255,255,255,.14); color: #fff; }

.greet { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 4px 2px 0; }
.greet-sub { color: var(--muted); margin: 2px 2px 0; font-size: 14px; }

.where-to { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); cursor: pointer; border: 0; width: 100%; text-align: left; }
.where-to .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; flex: none; }
.where-to .ic svg { width: 22px; height: 22px; }
.where-to strong { display: block; font-size: 17px; font-family: var(--serif); }
.where-to span { font-size: 13px; color: var(--muted); }

.active-banner { display: flex; align-items: center; gap: 12px; background: var(--yellow); color: var(--ink); border-radius: 16px; padding: 14px 16px; text-decoration: none; box-shadow: 0 6px 18px rgba(255,193,7,.4); cursor: pointer; border: 0; width: 100%; text-align: left; }
.active-banner svg { width: 26px; height: 26px; flex: none; }
.active-banner strong { display: block; }
.active-banner span { font-size: 13px; }
.active-banner .go { margin-left: auto; font-weight: 800; }

/* ---------- lists ---------- */
.list { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; background: #fff; width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.li:last-child { border-bottom: 0; }
.li:active { background: #F7F9FC; }
.li .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--navy); }
.li .ic svg { width: 20px; height: 20px; }
.li .ic.in { background: var(--green-100); color: var(--green); }
.li .ic.out { background: #EEF0F3; color: var(--ink); }
.li .ic.y { background: var(--yellow-100); color: #9A6B00; }
.li .main { flex: 1; min-width: 0; }
.li .main strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .main span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .end { text-align: right; flex: none; }
.li .end strong { display: block; font-size: 15px; }
.li .end span { font-size: 12px; color: var(--muted); }
.amt-in { color: var(--green); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }

.route-item .main strong { font-family: var(--serif); font-size: 16px; }
.route-item .fare { background: var(--yellow-100); color: var(--ink); font-weight: 800; padding: 6px 10px; border-radius: 10px; font-size: 15px; }

/* search */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; flex: 1; padding: 14px 0; font-size: 16px; background: none; }

/* ---------- top-up ---------- */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 4px; font-weight: 800; cursor: pointer; font-size: 15px; }
.chip.on { border-color: var(--navy); background: var(--tint); color: var(--navy); }
.paycard { position: relative; height: 190px; border-radius: 18px; padding: 20px; color: #fff; background: linear-gradient(125deg, #1A1D24 0%, #2B3140 55%, #0D47A1 140%); box-shadow: var(--shadow-lg); overflow: hidden; }
.paycard::before { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,193,7,.18); }
.paycard .chipimg { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #F6D365, #C9A227); }
.paycard .brand { position: absolute; right: 20px; top: 20px; font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: .02em; }
.paycard .pnum { font-family: var(--mono); font-size: 20px; letter-spacing: .12em; margin-top: 26px; white-space: nowrap; }
.paycard .prow { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.paycard .prow small { display: block; opacity: .6; font-size: 9px; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); background: #fff; border-radius: 12px; padding: 12px; border: 1px dashed var(--tint-2); }
.secure-note svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }

/* processing / success overlay */
.overlay { position: absolute; inset: 0; z-index: 60; background: rgba(8,46,107,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.proc { background: #fff; border-radius: 22px; padding: 28px 24px; width: 100%; max-width: 340px; text-align: center; box-shadow: var(--shadow-lg); }
.proc .spinner { width: 46px; height: 46px; border-width: 5px; margin: 0 auto 16px; }
.proc h3 { font-size: 20px; margin-bottom: 6px; }
.proc-steps { text-align: left; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.proc-steps div { display: flex; gap: 10px; align-items: center; color: var(--muted-2); }
.proc-steps div.done { color: var(--ink); }
.proc-steps div.done i { background: var(--green); border-color: var(--green); }
.proc-steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; }
.proc-steps i svg { width: 11px; height: 11px; }
.success-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.success-ic svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }

.voucher-art { background: repeating-linear-gradient(135deg, var(--yellow) 0 18px, #FFCA2C 18px 36px); border-radius: 18px; padding: 22px; color: var(--ink); position: relative; box-shadow: 0 8px 22px rgba(255,193,7,.35); }
.voucher-art h3 { font-size: 26px; }
.voucher-art .amt { font-family: var(--serif); font-size: 44px; font-weight: 700; }
.voucher-art::before, .voucher-art::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); transform: translateY(-50%); }
.voucher-art::before { left: -11px; } .voucher-art::after { right: -11px; }

/* ---------- map screens ---------- */
.mapview { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; background: var(--bg); }
.mapview .map { flex: 1; min-height: 240px; z-index: 1; }
.map-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 10; display: flex; gap: 10px; align-items: flex-start; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.panel { background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(16,24,40,.12); padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); position: relative; z-index: 5; margin-top: -22px; max-height: 64%; overflow-y: auto; }
.panel.tall { max-height: 72%; }
.panel .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: -6px auto 12px; }

.ab { position: relative; padding-left: 34px; }
.ab .stop { position: relative; padding: 4px 0 10px; }
.ab .stop::before { content: ""; position: absolute; left: -27px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-100); }
.ab .stop.b::before { background: var(--navy); box-shadow: 0 0 0 4px var(--tint); border-radius: 4px; }
.ab .stop:first-child::after { content: ""; position: absolute; left: -21px; top: 24px; bottom: -6px; border-left: 2px dashed var(--muted-2); }
.ab .stop small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ab .stop strong { font-family: var(--serif); font-size: 18px; }
.ab .swap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px; }
.stat small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat strong { font-size: 17px; }
.fare-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.fare-row .big { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.bal-line { font-size: 13px; color: var(--muted); text-align: right; }
.bal-line b { color: var(--ink); }
.warn { background: var(--yellow-100); color: #7A5600; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }

/* trip status */
.status-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.status-head h2 { font-size: 22px; }
.status-head p { color: var(--muted); font-size: 14px; }
.radar { width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; display: grid; place-items: center; }
.radar svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--yellow); animation: radar 2s ease-out infinite; }
.radar::after { animation-delay: 1s; }
@keyframes radar { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--yellow); border-radius: 3px; transition: width 1s linear; }
.bar.green > i { background: var(--green); }
.bar.navy > i { background: var(--navy); }

.taxi-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 12px; margin: 12px 0; }
.taxi-card .plate { background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 10px; font-family: var(--mono); font-weight: 800; letter-spacing: .06em; font-size: 15px; white-space: nowrap; }
.taxi-card .who { flex: 1; min-width: 0; }
.taxi-card .who strong { display: block; }
.taxi-card .who span { font-size: 13px; color: var(--muted); display: block; }
.code-box { background: var(--navy); color: #fff; border-radius: 18px; padding: 16px; text-align: center; }
.code-box small { display: block; color: var(--tint-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.code-digits { display: flex; justify-content: center; gap: 10px; margin: 10px 0 6px; }
.code-digits span { width: 52px; height: 62px; border-radius: 12px; background: #fff; color: var(--navy); font-family: var(--mono); font-weight: 800; font-size: 34px; display: grid; place-items: center; }
.code-box p { font-size: 13px; color: var(--tint-2); }

.receipt { text-align: center; }
.receipt h2 { font-size: 24px; margin-bottom: 4px; }
.split-list { text-align: left; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.split-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.split-row i { width: 12px; height: 12px; border-radius: 4px; }
.split-row .sub { grid-column: 2 / 4; margin-top: -6px; font-size: 12px; color: var(--muted); }
.splitbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.splitbar i { display: block; height: 100%; }

/* ---------- driver ---------- */
.drv-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 10; display: flex; gap: 10px; }
.drv-status { flex: 1; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.drv-status .who { flex: 1; min-width: 0; }
.drv-status .who strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-status .who span { font-size: 12px; color: var(--muted); display: block; }
.switch { position: relative; width: 58px; height: 32px; border-radius: 16px; background: #D5DAE1; border: 0; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 29px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--bg); border-radius: 12px; padding: 10px; }
.kpi small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.kpi strong { font-size: 18px; }
.target { background: var(--bg); border-radius: 14px; padding: 12px; margin-top: 10px; }
.target .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.target .top b { font-size: 14px; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.code-input { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.code-input input { width: 56px; height: 64px; text-align: center; font-family: var(--mono); font-size: 30px; font-weight: 800; border: 2px solid var(--line); border-radius: 12px; outline: none; }
.code-input input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13,71,161,.12); }
.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(27,175,122,.5); } 50% { box-shadow: 0 0 0 10px rgba(27,175,122,0); } }

/* incoming offer */
.offer-wrap { position: absolute; inset: 0; z-index: 80; background: rgba(8,46,107,.62); display: flex; align-items: flex-end; animation: fadeIn .2s ease; }
.offer { background: #fff; width: 100%; border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: slideUp .3s cubic-bezier(.2,1.2,.4,1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.offer-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.offer-head h2 { font-size: 24px; }
.ring { width: 60px; height: 60px; position: relative; flex: none; margin-left: auto; }
.ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.offer .fare-big { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.offer .btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 16px; }

/* driver settings sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 70; background: rgba(8,46,107,.5); display: flex; align-items: flex-end; animation: fadeIn .2s; }
.sheet { background: #fff; width: 100%; border-radius: 24px 24px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; background: #fff; width: 100%; text-align: left; }
.opt.on { border-color: var(--navy); background: var(--tint); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted-2); flex: none; }
.opt.on .dot { border: 6px solid var(--navy); }
.opt strong { display: block; }
.opt span { font-size: 13px; color: var(--muted); }
.vet { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vet span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--green-100); color: #12805A; }
.vet span.bad { background: var(--red-100); color: var(--red); }

/* ================= App Two: pickup zones ================= */
.zone-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.wait-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #12805A; background: var(--green-100); padding: 3px 8px; border-radius: 999px; margin-top: 4px; white-space: nowrap; }
.wait-chip svg { width: 13px; height: 13px; }
.wait-chip.low { color: #7A5600; background: var(--yellow-100); }
.wait-chip.none { color: var(--muted); background: #EEF0F3; }
.li .end .wait-chip { display: inline-flex; }

/* count bubbles on the map */
.zmk { position: relative; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--ink); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28); font-family: var(--sans); }
.zmk.l0 { background: #D5DAE1; color: var(--muted); }
.zmk.l1 { background: #FFE08A; }
.zmk.l2 { background: var(--yellow); }
.zmk.l3 { background: var(--green); color: #fff; }
.zmk.sel { box-shadow: 0 0 0 4px var(--navy), 0 3px 10px rgba(0,0,0,.28); }
.zmk small { position: absolute; top: 100%; margin-top: 3px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.95); color: var(--ink); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F6FD6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,111,214,.25), 0 2px 6px rgba(0,0,0,.3); }

/* pickup point cards */
.pt-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; width: 100%; text-align: left; cursor: pointer; margin-bottom: 8px; }
.pt-card.on { border-color: var(--navy); background: var(--tint); }
.pt-card .cnt { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; line-height: 1; }
.pt-card .cnt small { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pt-card .cnt.l0 { background: #EEF0F3; color: var(--muted); }
.pt-card .cnt.l1 { background: var(--yellow-100); color: #7A5600; }
.pt-card .cnt.l2 { background: var(--yellow); color: var(--ink); }
.pt-card .cnt.l3 { background: var(--green); color: #fff; }
.pt-card .main { flex: 1; min-width: 0; }
.pt-card .main strong { display: block; font-family: var(--serif); font-size: 16px; }
.pt-card .main span { display: block; font-size: 13px; color: var(--muted); }
.pt-card .go { flex: none; }
.taxi-chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.taxi-chip svg { width: 14px; height: 14px; }

/* queue status */
.queue-big { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 16px; padding: 14px; margin: 12px 0; }
.queue-big .n { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; color: var(--navy); }
.queue-big p { font-size: 14px; color: var(--muted); }
.queue-big p b { color: var(--ink); }
.walk { display: flex; gap: 12px; align-items: center; background: var(--yellow-100); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.walk svg { width: 26px; height: 26px; flex: none; color: #9A6B00; }
.walk b { display: block; }
.demo-link { display: block; width: 100%; background: none; border: 1.5px dashed var(--tint-2); color: var(--navy); border-radius: 12px; padding: 10px; font-weight: 700; cursor: pointer; margin-top: 8px; font-size: 14px; }
.incoming { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.incoming .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; flex: none; }
.incoming .ic svg { width: 22px; height: 22px; }
.incoming b { display: block; }
.incoming span { font-size: 13px; color: var(--tint-2); }
.incoming .eta { margin-left: auto; text-align: right; font-weight: 800; font-size: 18px; }
.incoming .eta small { display: block; font-size: 11px; color: var(--tint-2); font-weight: 600; }

/* driver */
.route-pick { flex: 1; min-width: 0; appearance: none; border: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230D47A1' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 34px 10px 12px; font-weight: 800; color: var(--navy); font-size: 14px; }
.drv-top2 { position: absolute; top: calc(72px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 10; display: flex; gap: 10px; }
.seats { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.seats .bar { flex: 1; height: 10px; border-radius: 5px; }
.seats b { font-size: 18px; white-space: nowrap; }
.board-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 8px 0 4px; }
.board-row input { width: min(52px, 13vw); height: 58px; text-align: center; font-family: var(--mono); font-size: 28px; font-weight: 800; border: 2px solid var(--line); border-radius: 12px; outline: none; }
.board-row input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(13,71,161,.12); }
.board-row .btn { height: 58px; padding: 0 14px; }
.boarded { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.boarded span { font-size: 12px; font-weight: 700; background: var(--green-100); color: #12805A; padding: 3px 8px; border-radius: 8px; }
.boarded span.sim { background: #EEF0F3; color: var(--muted); }
.pt-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pt-row:last-child { border-bottom: 0; }
.pt-row strong { display: block; }
.pt-row span { font-size: 12px; color: var(--muted); }
.pt-row .n { font-weight: 800; font-size: 18px; text-align: right; }
.pt-row .n small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.worth { color: #12805A; font-weight: 800; }

.panel.drv-panel { max-height: 56%; }

/* ---------- small phones (≤ 380px wide, e.g. iPhone SE / many Androids) ---------- */
@media (max-width: 380px) {
  .screen { padding-left: 12px; padding-right: 12px; gap: 12px; }
  .auth-hero .wordmark { font-size: 44px; }
  .wallet-card .bal { font-size: 34px; }
  .panel { padding-left: 14px; padding-right: 14px; }
  .stats, .kpis { gap: 6px; }
  .stat strong, .kpi strong { font-size: 15px; }
  .code-digits span { width: 46px; height: 56px; font-size: 30px; }
  .code-input input { width: 50px; height: 58px; }
  .fare-row .big, .offer .fare-big { font-size: 26px; }
  .chips { gap: 6px; }
  .chip { font-size: 14px; }
  .offer .btns { grid-template-columns: 1fr 1.6fr; }
}
/* Short screens (e.g. iPhone SE, or a phone with the keyboard open) */
@media (max-height: 700px) {
  .panel { max-height: 70%; }
  .auth-hero { padding-bottom: 44px; }
  .auth-hero p { display: none; }
}
button, a, input, select, label { touch-action: manipulation; }
/* Sheets and pop-ups never taller than the screen — they scroll instead */
.sheet, .offer { max-height: 88%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.topbar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 380px) { .topbar .title { font-size: 17px; } .drv-status .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ================= Taxi Yami: ride for someone else ================= */
.coming-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: 999px; margin-top: 4px; white-space: nowrap; }
.who-box { background: var(--bg); border-radius: 16px; padding: 12px; margin-top: 8px; }
.who-box .seg { margin-bottom: 0; }
.who-box .row { gap: 8px; }
.btn-wa { background: #25D366; color: #fff; margin-top: 12px; }
.btn-wa svg { width: 20px; height: 20px; }
.share-preview { white-space: pre-wrap; font-size: 13px; line-height: 1.45; background: #E7F8EE; border-radius: 12px 12px 12px 2px; padding: 10px 12px; color: var(--ink); max-height: 170px; overflow-y: auto; border: 1px solid #CDEFD9; }
.tk-status { display: flex; gap: 12px; align-items: center; background: var(--yellow-100); border-radius: 16px; padding: 12px 14px; }
.tk-status svg { width: 26px; height: 26px; flex: none; color: #9A6B00; }
.tk-status b { display: block; }
.tk-status span { font-size: 13px; color: var(--muted); }
.tk-status.ok { background: var(--green-100); }
.tk-status.ok svg { color: var(--green); }
.tk-status.off { background: #EEF0F3; }
.tk-status.off svg { color: var(--muted); }
#tk { display: flex; flex-direction: column; gap: 14px; }

/* driver: multi-stop trips and today's trips */
.sec-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin: 14px 0 6px; }
.sec-h .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.drop-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drop-row:last-of-type { border-bottom: 0; }
.drop-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--navy); flex: none; }
.drop-row .ic.first { background: var(--navy); color: #fff; }
.drop-row .ic svg { width: 18px; height: 18px; }
.drop-row .m { flex: 1; min-width: 0; }
.drop-row .m strong { display: block; }
.drop-row .m span { font-size: 13px; color: var(--muted); }
.drop-row > b { font-size: 18px; }
.trip-list { display: grid; gap: 2px; }
.trip-li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trip-li:last-child { border-bottom: 0; }
.trip-li .t { font-weight: 800; font-size: 14px; color: var(--navy); width: 44px; flex: none; }
.trip-li .m { flex: 1; min-width: 0; }
.trip-li .m strong { display: block; font-size: 14px; line-height: 1.3; }
.trip-li .m span { font-size: 12px; color: var(--muted); }
.tpill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--tint); color: var(--navy); white-space: nowrap; }
.tpill.completed { background: var(--green-100); color: #0F7A55; }
.tpill.departed { background: var(--yellow-100); color: #8A6100; }

/* live: forms in sheets, legal links, verification */
.ok-box { background: var(--green-100); color: #0F6B4A; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: none; }
.check a { font-weight: 700; }
.auth-foot a { font-weight: 700; }

/* ---- Help & support ---- */
.avatar.dot { position: relative; }
.avatar.dot::after { content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.help-cta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--ink); text-decoration: none; margin-bottom: 12px; }
.help-cta .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.help-cta .ic svg { width: 20px; height: 20px; }
.help-cta > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.help-cta span { font-size: 13px; color: var(--muted); }
.help-cta > svg { width: 18px; height: 18px; transform: rotate(180deg); color: var(--muted); }
.help-hero { display: flex; gap: 14px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.help-hero .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.help-hero .ic svg { width: 22px; height: 22px; }
.help-hero h3 { font-size: 20px; margin-bottom: 4px; }
.help-hero p { color: var(--tint-2); }
.help-other { margin-top: 18px; text-align: center; line-height: 1.6; }
.li.unread strong { font-weight: 800; }
.newdot { font-size: 11px; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 7px; font-weight: 800; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; min-height: 50vh; }
.chat-top, .chat-sys { text-align: center; padding: 4px 0; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble span { display: block; margin-top: 4px; opacity: .7; font-size: 11px; }
.chat-in { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); max-width: 480px; margin: 0 auto; }
.chat-in textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; font-family: inherit; }
.chat-in .btn { width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: none; }
.chat-in .btn svg { transform: rotate(180deg); }
.chat-in.hidden { display: none; }
.stars { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.stars button { border: 0; background: none; font-size: 26px; color: #C8CFDA; cursor: pointer; padding: 0 2px; }
.stars button.on { color: #E6A700; }
@media (min-width: 701px) { .chat-in { position: sticky; max-width: none; } }
.wallet-card.owe { background: linear-gradient(135deg, #8E1B1B 0%, #5A0F0F 100%); }
.wallet-card.owe .eyebrow { color: #FFD6D6; }

/* inside the Android / iOS app */
.native .desk-hint, .native .install-tip, .native #installBanner { display: none !important; }

.app-ver { text-align: center; padding: 12px 0 0; font-size: 12px; } .app-ver a { color: var(--navy); font-weight: 700; }

/* ---------- driver: my usual trips (pickup point + drop-off) ---------- */
.usual { margin-top: 6px; }
.usual-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.usual-row .m { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.usual-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow-100); color: #9A6B00; flex: none; }
.usual-row .ic svg { width: 18px; height: 18px; }
.usual-row .t { min-width: 0; }
.usual-row strong { display: block; font-size: 15px; line-height: 1.25; }
.usual-row small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.usual-x { width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.usual-x svg { width: 16px; height: 16px; }
.usual-x:hover, .usual-x:active { background: var(--red-100); color: var(--red); }
.usual-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px 12px; border: 1.5px dashed #B9C6DD; border-radius: 12px; background: #F7F9FD; color: var(--navy); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.usual-add svg { width: 18px; height: 18px; }
.usual-add:active { background: var(--tint); }
.us-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin: 4px 0 10px; }
.us-step > span { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 13px; flex: none; }
.us-step.done { font-weight: 600; background: var(--green-100); border-radius: 12px; padding: 8px 10px; }
.us-step.done > span { background: var(--green); color: #fff; }
.us-step.done > div { flex: 1; min-width: 0; }
.us-step .link { border: 0; background: none; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; padding: 4px; }
.us-search { margin-bottom: 8px; box-shadow: none; border: 1.5px solid var(--line); }
.us-search input { padding: 11px 0; }
.us-list { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.us-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.us-opt .t { flex: 1; min-width: 0; }
.us-opt strong { display: block; font-size: 15px; }
.us-opt small { display: block; font-size: 12.5px; color: var(--muted); }
.us-opt .chev { font-size: 22px; color: var(--muted-2); line-height: 1; }
.us-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted-2); flex: none; }
.us-opt.on { border-color: var(--navy); background: var(--tint); }
.us-opt.on .radio { border: 6px solid var(--navy); }

/* ---------- passenger home: book for myself / for someone else ---------- */
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 18px; }
.book-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 0; border-radius: 18px; padding: 16px 14px 15px; cursor: pointer; font: inherit; box-shadow: var(--shadow); min-height: 150px; transition: transform .12s ease; }
.book-btn:active { transform: scale(.98); }
.book-btn .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; }
.book-btn .ic svg { width: 23px; height: 23px; }
.book-btn strong { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.book-btn span:last-child { font-size: 13px; line-height: 1.35; }
.book-btn.me { background: var(--yellow); color: var(--ink); }
.book-btn.me .ic { background: rgba(255,255,255,.55); color: var(--ink); }
.book-btn.me span:last-child { color: #5E4600; }
.book-btn.other { background: var(--navy); color: #fff; }
.book-btn.other .ic { background: rgba(255,255,255,.14); color: var(--yellow); }
.book-btn.other span:last-child { color: rgba(255,255,255,.78); }
@media (max-width: 340px) { .book-row { grid-template-columns: 1fr; } .book-btn { min-height: 0; } }
.for-other { display: flex; gap: 12px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.for-other > svg { width: 22px; height: 22px; flex: none; color: var(--yellow); margin-top: 2px; }
.for-other strong { display: block; font-size: 15px; }
.for-other span { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; line-height: 1.35; }

/* ---------- drivers' own pickup spots (learned from real pickups) ---------- */
.zmk.spot { border: 3px dashed var(--navy); }
.zmk.spot small { color: var(--navy); }
.spot-chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #EEF0F3; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.spot-chip svg { width: 14px; height: 14px; }
.spot-chip.on { color: #12805A; background: var(--green-100); }
.spots-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.spots-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--navy); font-size: 17px; flex: none; }
.spots-row .t { flex: 1; min-width: 0; }
.spots-row strong { display: block; font-size: 15px; }
.spots-row small { display: block; font-size: 12.5px; color: var(--muted); }
.spots-row small b { color: #12805A; }
.spots-row .chev { font-size: 22px; color: var(--muted-2); }
.sp-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-row:last-child { border-bottom: 0; }
.sp-row .m strong { display: block; font-size: 15px; }
.sp-row .m small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sp-row .m small.ok { color: #12805A; font-weight: 600; }
.sp-row .m small.warn { color: #9A6B00; font-weight: 600; }
.sp-row .a { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.sp-row .a .usual-x { margin-left: auto; }
.sp-row.off .m strong { color: var(--muted); }
.sp-row .m small.shared { display: inline-flex; align-items: center; gap: 5px; color: var(--navy); font-weight: 700; }
.sp-row .m small.shared svg { width: 14px; height: 14px; }

/* ---- people on the way to a pickup point (driver map) & picking up on the road ---- */
.mk-walk { width: 30px; height: 30px; border-radius: 50%; background: #7C4DFF; color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); animation: walkPulse 2s infinite; }
.mk-walk svg { width: 17px; height: 17px; }
.mk-walk.old { background: #A796E8; animation: none; }
.mk-walk-label { position: absolute; top: 31px; left: 50%; transform: translateX(-50%); background: #5B33D6; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
@keyframes walkPulse { 0% { box-shadow: 0 0 0 0 rgba(124,77,255,.45), 0 2px 8px rgba(0,0,0,.3); } 70% { box-shadow: 0 0 0 12px rgba(124,77,255,0), 0 2px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 0 rgba(124,77,255,0), 0 2px 8px rgba(0,0,0,.3); } }
.walk-sum { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #F1ECFF; border: 1.5px solid #D9CCFF; border-radius: 14px; padding: 10px 12px; margin: 10px 0 6px; cursor: pointer; font: inherit; color: var(--ink); }
.walk-sum .ic { width: 36px; height: 36px; border-radius: 50%; background: #7C4DFF; color: #fff; display: grid; place-items: center; flex: none; }
.walk-sum .ic svg { width: 20px; height: 20px; }
.walk-sum .t { flex: 1; min-width: 0; }
.walk-sum strong { display: block; font-size: 15px; }
.walk-sum small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.walk-sum .chev { font-size: 22px; color: #7C4DFF; }
.code-link { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 1.5px dashed var(--line); border-radius: 12px; padding: 9px 12px; margin: 6px 0 4px; color: var(--navy); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.code-link svg { width: 16px; height: 16px; flex: none; }
.incoming.alt { background: var(--tint); color: var(--ink); }
.incoming.alt span { color: var(--muted); }

/* ---- passenger on board: distance to their stop ---- */
.ride-left { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.ride-left > div { background: var(--tint); border-radius: 14px; padding: 10px 12px; }
.ride-left b { display: block; font-size: 26px; font-family: var(--serif); color: var(--navy); line-height: 1.1; }
.ride-left small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ride-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 12px; }
.ride-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #1BAF7A); border-radius: 999px; transition: width .6s; }
.ride-stops { display: grid; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.ride-stops > div { display: flex; align-items: center; gap: 10px; }
.ride-stops .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 3px solid var(--navy); background: #fff; }
.ride-stops .dot.to { background: var(--navy); }
.mk-dest { font-size: 14px; background: #fff !important; }
.dest-tip { font-weight: 700; font-size: 12px; }

/* Driver approval checklist */
.appr { background: #fff; border: 1.5px solid var(--yellow-100); border-radius: 16px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.appr-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.appr-h svg { width: 26px; height: 26px; flex: none; color: #9A6B00; }
.appr-h b { display: block; font-size: 17px; }
.appr-h span { display: block; font-size: 13.5px; color: #7A5600; font-weight: 600; margin-top: 2px; }
.appr-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.appr-sec span { text-transform: none; letter-spacing: 0; font-weight: 700; color: #9A6B00; }
.appr-sec span.ok { color: var(--green); }
.appr-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.appr-row i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 13px; background: #E3E7EE; color: var(--muted); }
.appr-row.approved i, .appr-row.ticked i { background: var(--green-100); color: #0F7A55; }
.appr-row.pending i { background: var(--tint); color: var(--navy); }
.appr-row.rejected i, .appr-row.expired i { background: #FBE3E3; color: var(--red); }
.appr-row strong { display: block; font-size: 14.5px; }
.appr-row span { display: block; font-size: 13px; color: var(--muted); }
.appr-row em { display: block; font-style: normal; font-size: 12.5px; color: #7A5600; font-weight: 700; margin-top: 2px; }
.appr-row.rejected span, .appr-row.expired span { color: var(--red); font-weight: 600; }
.appr-next { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* Map compass (shows once the map is rotated with two fingers; tap = north up) */
.compass-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(16,24,40,.2); display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: transform .15s; }
.compass-btn svg { width: 24px; height: 24px; }
.compass-btn.on { display: inline-flex; }
.leaflet-control-container .leaflet-top.leaflet-right { top: calc(64px + env(safe-area-inset-top)); }
/* the driver screen has two cards across the top, so its compass sits below them */
.drv-view .leaflet-control-container .leaflet-top.leaflet-right { top: calc(132px + env(safe-area-inset-top)); }

/* Driver panel minimised to a one-line summary */
.pmin { display: none; width: 100%; border: 0; background: var(--tint); border-radius: 14px; padding: 10px 12px; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; margin-bottom: 4px; }
.pmin-chev { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transform: rotate(90deg); }
.pmin-chev svg { width: 16px; height: 16px; }
.pmin-t { flex: 1; min-width: 0; }
.pmin-t strong { display: block; font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmin-t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pmin-hint { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); animation: pmin-bob 1.6s ease-in-out infinite; }
.pmin-hint svg { width: 16px; height: 16px; transform: rotate(90deg); }
.pmin-hint em { font-style: normal; }
@keyframes pmin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.panel.drv-panel { transition: max-height .3s ease; }
.panel.drv-panel.min { max-height: 112px; overflow: hidden; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.panel.drv-panel.min > *:not(.grab):not(.pmin) { display: none; }
.panel.drv-panel.min .pmin { display: flex; }
