/* ride/ride.css - 🚖 叫車 App：配色、字款跟主網站（暖米色底、深紅主色、Noto Sans HK） */
:root {
  --bg: #f7f5f0; --card: #fff; --line: #ddd6ca; --line2: #efeae1; --soft: #f3f0ea;
  --ink: #0f172a; --ink2: #3a3532; --sub: #57534e;
  --red: #b91c1c; --red-h: #991b1b; --red-2: #dc2626; --red-50: #fef2f2; --red-100: #fee2e2;
  --ok: #059669; --ok-50: #ecfdf5; --amber: #d97706; --amber-50: #fffbeb; --wa: #25d366; --night: #1c1917;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .9, .25, 1);
  --shadow: 0 8px 24px rgba(28, 25, 23, .12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { font-family: "Noto Sans HK", -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", sans-serif; color: var(--ink); background: #ebe6dc; -webkit-font-smoothing: antialiased; touch-action: manipulation; line-height: 1.45; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.num, .en { font-family: "Plus Jakarta Sans", "Noto Sans HK", sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- 地圖 ---------- */
#map { position: fixed !important; inset: 0; width: 100%; height: 100%; height: 100dvh; background: #ebe6dc; }
#map-skel { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #ebe6dc; transition: opacity .5s; overflow: hidden; }
#map-skel i { position: absolute; background: #f6f2ea; border-radius: 8px; }
#map-skel i:nth-child(1) { left: -10%; top: 30%; width: 120%; height: 14px; transform: rotate(-12deg); }
#map-skel i:nth-child(2) { left: 30%; top: -10%; width: 14px; height: 120%; transform: rotate(18deg); }
#map-skel i:nth-child(3) { left: -10%; top: 58%; width: 120%; height: 10px; transform: rotate(8deg); }
#map-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); animation: skel 1.4s linear infinite; }
body.map-ready #map-skel { opacity: 0; }
@keyframes skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 頂部 ---------- */
.topbar { position: fixed; z-index: 20; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; }
.topbar > * { pointer-events: auto; }
.topbar.away { transform: translateY(-140%); opacity: 0; }
.fab { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; position: relative; transition: transform .15s var(--ease), background .2s, color .2s; color: var(--ink); }
.fab:active { transform: scale(.92); }
.fab svg { width: 21px; height: 21px; }
.fab.flat { box-shadow: none; background: var(--soft); width: 38px; height: 38px; font-size: 22px; line-height: 1; }
.fab .dot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-2); border: 2px solid #fff; }
.fab.lang span { font-weight: 800; font-size: 13px; }
.brand { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); text-decoration: none; margin-right: auto; max-width: 230px; }
.brand img { border-radius: 50%; flex: none; }
.brand span { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.brand b { font-weight: 900; font-size: 16px; color: var(--red); letter-spacing: .02em; }
.brand em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ink2); }
body:not(.v-home) #brand { pointer-events: none; }
.topbar.root #btn-back { display: none; }

.side-fabs { position: fixed; z-index: 15; right: 12px; display: flex; flex-direction: column; gap: 10px; bottom: calc(var(--sheet-h, 300px) + 14px); transition: bottom .38s var(--ease), opacity .25s; }
.side-fabs.away { opacity: 0; pointer-events: none; }
#btn-traffic .r { fill: #ef4444; stroke: none; } #btn-traffic .y { fill: #f59e0b; stroke: none; } #btn-traffic .g { fill: #22c55e; stroke: none; }
#btn-traffic[aria-pressed="false"] circle { opacity: .4; }
#btn-traffic[aria-pressed="true"] { background: var(--night); color: #fff; }
.fab.ai { background: linear-gradient(135deg, #b91c1c, #f59e0b); color: #fff; }
.fab.ai::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(185, 28, 28, .35); animation: aiPulse 2.4s ease-out infinite; }
@keyframes aiPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
#ai-tip { position: fixed; z-index: 16; right: 66px; top: calc(122px + var(--safe-t)); max-width: min(290px, calc(100vw - 90px)); background: var(--night); color: #fff; border-radius: 14px; padding: 10px 30px 10px 12px; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow); animation: viewIn .4s var(--ease) both; }
#ai-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
#ai-tip button { position: absolute; top: 4px; right: 6px; color: #fff; opacity: .7; font-size: 18px; width: 22px; height: 22px; }
#ai-tip::after { content: ""; position: absolute; right: -6px; top: 16px; border: 6px solid transparent; border-right: 0; border-left-color: var(--night); }

/* ---------- 地圖中間 pin ---------- */
#pin { position: fixed; z-index: 12; left: 50%; top: 40%; transform: translate(-50%, -100%); pointer-events: none; }
#pin .head { width: 38px; height: 38px; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 8px 20px rgba(28, 25, 23, .3); display: grid; place-items: center; transition: transform .2s var(--ease); }
#pin.drop .head { background: var(--night); border-radius: 10px; }
#pin .head i { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
#pin .stem { width: 4px; height: 16px; background: var(--red); margin: -2px auto 0; border-radius: 0 0 3px 3px; transition: transform .2s var(--ease); }
#pin.drop .stem { background: var(--night); }
#pin .shadow { width: 14px; height: 5px; border-radius: 50%; background: rgba(28, 25, 23, .28); margin: 2px auto 0; transition: transform .2s var(--ease), opacity .2s; }
#pin.lift .head, #pin.lift .stem { transform: translateY(-12px); }
#pin.lift .shadow { transform: scale(1.6); opacity: .5; }
#pin-label { position: fixed; z-index: 13; left: 50%; transform: translate(-50%, -100%); background: #fff; padding: 7px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; max-width: 78vw; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow); pointer-events: none; transition: opacity .2s; }
#pin-label.dim { opacity: .55; }

/* ---------- 底部面板 ---------- */
#sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 66px - var(--safe-t)); background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(28, 25, 23, .16); display: flex; flex-direction: column; transform: translateY(105%); will-change: transform; }
#sheet.anim { transition: transform .42s var(--ease), height .38s var(--ease); }
#sheet.hgt { transition: height .36s var(--ease), transform .42s var(--ease); overflow: hidden; }
@media (max-width: 719px) {
  #sheet[data-view="options"] { max-height: 64dvh; }
  #sheet[data-view="pin"] { max-height: 40dvh; }
  #sheet[data-view="track"] { max-height: 54dvh; }
  #sheet[data-view="home"] { max-height: 64dvh; }   /* 進度畫面：上面留大半畫面睇架車 */
}
.grab { padding: 10px 0 6px; flex: none; cursor: grab; touch-action: none; }
.grab i { display: block; width: 40px; height: 5px; border-radius: 3px; background: #d6cfc2; margin: 0 auto; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px calc(16px + var(--safe-b)); flex: 1; min-height: 0; }
#sheet.peek .sheet-body { overflow: hidden; }
@media (min-width: 720px) {
  #sheet { left: 16px; right: auto; width: 420px; bottom: 16px; border-radius: 24px; max-height: calc(100dvh - 88px); }
  .grab { display: none; }
  .sheet-body { padding-top: 14px; padding-bottom: 16px; }
  .side-fabs { bottom: 24px !important; }
}

.view { animation: viewIn .38s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.stagger > * { animation: viewIn .45s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; } .stagger > *:nth-child(4) { animation-delay: .12s; }
.stagger > *:nth-child(5) { animation-delay: .16s; } .stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(7) { animation-delay: .24s; }
h2.title { font-size: 24px; font-weight: 900; margin: 4px 2px 12px; letter-spacing: -.01em; }
.muted { color: var(--sub); font-size: 14.5px; }
.err { color: var(--red-2); font-size: 14px; font-weight: 700; margin: 8px 2px; }
.ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink2); }
.ic svg { width: 18px; height: 18px; }
.emo { font-size: 17px; line-height: 1; }

/* 首頁 */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mode button { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.mode button:active { transform: scale(.97); }
.mode button svg { width: 24px; height: 24px; flex: none; color: var(--sub); }
.mode button span { display: flex; flex-direction: column; min-width: 0; }
.mode button b { font-size: 17px; font-weight: 900; }
.mode button small { font-size: 13.5px; color: var(--sub); margin-top: 1px; }
.mode button.on { border-color: var(--red); background: var(--red-50); }
.mode button.on svg, .mode button.on b { color: var(--red); }
.where { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); font-size: 16px; font-weight: 700; color: var(--sub); text-align: left; box-shadow: 0 2px 8px rgba(28,25,23,.05); }
.where:active { background: var(--soft); }
.where svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
.where > span:first-of-type { flex: 1; }
.where .when { flex: none; font-size: 12.5px; font-weight: 800; color: var(--red); background: var(--red-50); padding: 5px 9px; border-radius: 10px; }
.pickup-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px 4px; font-size: 15px; }
.pickup-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px var(--red-100); }
.pickup-row .dot.drop { background: var(--night); border-radius: 3px; box-shadow: none; }
.pickup-row .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); font-weight: 600; }
.pickup-row button { color: var(--red); font-weight: 800; font-size: 13.5px; padding: 6px 2px; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 2px; padding: 4px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; white-space: nowrap; }
.chip:active { background: var(--soft); }
.chip.saved { border-color: #fcd34d; background: var(--amber-50); }
.list { margin-top: 6px; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 2px; text-align: left; border-bottom: 1px solid var(--line2); }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--soft); }
.row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .t b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .go { color: var(--red); font-weight: 800; font-size: 14.5px; flex: none; }
.active-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 16px; background: var(--night); color: #fff; text-align: left; }
.active-card .ic { background: rgba(255,255,255,.12); color: #fff; }
.active-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.active-card b { font-size: 16px; }
.active-card span { font-size: 14px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-card .arr { font-size: 20px; opacity: .8; }

/* 輸入欄 */
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.field > span { font-size: 14px; font-weight: 800; color: var(--ink2); }
.field input, .field textarea, .field select, .inrow input { width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 70px; resize: none; line-height: 1.5; }
.field input:focus, .field textarea:focus, .inrow input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .field { margin-top: 0; min-width: 0; }
.phone { display: flex; gap: 8px; }
.phone select { flex: none; width: 104px; min-height: 48px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; padding: 0 8px; font-size: 16px; }
.phone input { flex: 1; min-width: 0; }

/* 按鈕 */
.btn { width: 100%; min-height: 54px; border-radius: 16px; background: var(--night); color: #fff; font-size: 17.5px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s var(--ease), opacity .2s, background .2s; padding: 0 16px; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.red { background: var(--red); box-shadow: 0 8px 20px rgba(185, 28, 28, .28); }
.btn.red:not(:disabled):hover { background: var(--red-h); }
.btn.ghost { background: transparent; color: var(--ink2); min-height: 44px; font-size: 15.5px; font-weight: 800; box-shadow: none; }
.btn.line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-size: 16px; min-height: 48px; }
.btn.wa { background: var(--wa); color: #fff; font-size: 16px; min-height: 48px; }
.btn svg { width: 19px; height: 19px; }
.btn .price { font-family: "Plus Jakarta Sans", sans-serif; }
.cta { position: sticky; bottom: calc(-16px - var(--safe-b)); margin: 14px -16px calc(-16px - var(--safe-b)); padding: 18px 16px calc(16px + var(--safe-b)); background: linear-gradient(rgba(247,245,240,0), var(--bg) 18px); display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.cta .need { text-align: center; font-size: 14px; color: var(--amber); font-weight: 700; min-height: 0; }
.cta .need:empty { display: none; }
@media (min-width: 720px) { .cta { bottom: -16px; margin-bottom: -16px; padding-bottom: 16px; } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
.spin.dark { border-color: rgba(15,23,42,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 揀車：行程 */
.stops { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 12px; position: relative; }
.tr { display: flex; align-items: center; gap: 12px; min-height: 44px; position: relative; }
.tr + .tr { border-top: 1px solid var(--line2); }
.tr .d { width: 11px; height: 11px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 3px var(--red-100); }
.tr .d.s { background: var(--amber); box-shadow: 0 0 0 3px #fef3c7; }
.tr .d.e { background: var(--night); border-radius: 3px; box-shadow: none; }
.tr .p { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 0; }
.tr .p small { display: block; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.tr .edit { color: var(--red); font-weight: 800; font-size: 14.5px; padding: 6px 0 6px 6px; flex: none; }
.tr .rm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); flex: none; }
.tr .rm svg { width: 15px; height: 15px; }
.addstop { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 800; font-size: 14.5px; padding: 8px 0 10px; border-top: 1px solid var(--line2); width: 100%; }
.addstop svg { width: 15px; height: 15px; }
.eta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.eta-row > div { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 10px; display: flex; flex-direction: column; min-width: 0; }
.eta-row b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; line-height: 1.15; }
.eta-row span { font-size: 13px; color: var(--sub); font-weight: 700; margin-top: 1px; }
.eta-row .sk { height: 20px; width: 60%; }
.route-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--sub); font-weight: 600; margin: 4px 2px 0; }
.notice { margin-top: 10px; background: var(--amber-50); border: 1px solid #fde68a; color: #78350f; border-radius: 13px; padding: 10px 12px; font-size: 14px; line-height: 1.55; }
.notice a { color: var(--red); font-weight: 800; }

/* 車型卡 */
.cars { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.car { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px; background: #fff; border: 2px solid var(--line); text-align: left; width: 100%; transition: border-color .2s, background .2s, transform .15s; position: relative; }
.car:active { transform: scale(.985); }
.car img { width: 78px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--soft); }
.car .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.car .t b { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.car .t b i { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); padding: 1px 6px; border-radius: 6px; }
.car .t span { font-size: 13.5px; color: var(--sub); margin-top: 2px; line-height: 1.35; }
.car .t .why { color: var(--amber); font-weight: 700; }
.car .pr { text-align: right; flex: none; }
.car .pr b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 21px; font-weight: 800; display: block; }
.car .pr small { font-size: 12.5px; color: var(--sub); }
.car.on { border-color: var(--red); background: var(--red-50); }
.car.off { opacity: 1; }
.car.off .pr b { text-decoration: line-through; }
.car.skel { pointer-events: none; }
.sk { display: inline-block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #efeae1 25%, #f7f3ec 50%, #efeae1 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.car.skel .l1 { width: 90px; } .car.skel .l2 { width: 140px; margin-top: 6px; } .car.skel .l3 { width: 46px; height: 18px; }
.vnote { margin-top: 8px; background: var(--amber-50); border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 9px 11px; font-size: 14px; font-weight: 700; line-height: 1.5; }

.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 800; color: var(--ink2); min-width: 0; }
.opt svg { width: 19px; height: 19px; }
.opt span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.on { border-color: var(--ink); background: var(--soft); color: var(--ink); }
.opt.warn { border-color: #fcd34d; background: var(--amber-50); color: #92400e; }
.opt.good { border-color: #a7f3d0; background: var(--ok-50); color: #065f46; }
.panel { margin-top: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; animation: viewIn .3s var(--ease) both; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { padding: 9px 6px; border-radius: 9px; font-size: 13.5px; font-weight: 800; color: var(--sub); }
.seg button.on { background: #fff; color: var(--red); box-shadow: 0 2px 6px rgba(28,25,23,.1); }
.panel .hint { font-size: 13.5px; color: var(--sub); line-height: 1.55; margin-top: 8px; }
.step { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.step + .step { border-top: 1px solid var(--line2); }
.step > span:first-child { display: flex; flex-direction: column; font-size: 16px; font-weight: 800; }
.step small { font-size: 13px; color: var(--sub); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 19px; font-weight: 900; line-height: 1; display: grid; place-items: center; }
.stepper button:active { background: var(--soft); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 20px; text-align: center; font-weight: 800; font-size: 17px; font-family: "Plus Jakarta Sans", sans-serif; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.stages button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 4px; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.stages button b { font-size: 15px; }
.stages button small { font-size: 12.5px; color: var(--sub); }
.stages button.on { border-color: var(--red); background: var(--red-50); }
.stages button.on b { color: var(--red); }
.who-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px 0; width: 100%; text-align: left; }
.who-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who-row .t b { font-size: 16px; }
.who-row .t span { font-size: 14px; color: var(--sub); }
.who-row .go { color: var(--red); font-weight: 800; font-size: 14.5px; }

/* 航班卡（同訂車頁一樣） */
.qk-fgo { margin-top: 8px; }
.qk-fcard { margin-top: 10px; border-radius: 16px; background: rgba(236,253,245,.9); border: 1px solid #A7F3D0; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qk-fhead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #A7F3D0; }
.qk-fico { width: 30px; height: 30px; border-radius: 50%; background: #059669; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.qk-fname { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.qk-fname span { font-size: 13px; font-weight: 900; color: #064E3B; }
.qk-fname b { font-size: 17px; font-weight: 900; color: #022C22; letter-spacing: .5px; }
.qk-fbadge { flex-shrink: 0; font-size: 11px; font-weight: 900; background: #059669; color: #fff; padding: 3px 10px; border-radius: 999px; }
.qk-froute { background: rgba(255,255,255,.95); border: 1px solid #D1FAE5; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.qk-froute > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qk-froute > div + div { border-top: 1px solid #ECFDF5; padding-top: 6px; }
.qk-fl { color: #78716C; font-weight: 800; }
.qk-froute b { color: #1C1917; font-weight: 900; }
.qk-fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qk-fgrid2 > div { background: rgba(255,255,255,.9); border: 1px solid #D1FAE5; border-radius: 12px; padding: 9px 10px; }
.qk-fgrid2 small { display: block; font-size: 10.5px; font-weight: 800; color: #78716C; }
.qk-fgrid2 b { display: block; margin-top: 3px; font-size: 13px; font-weight: 900; color: #064E3B; }
.qk-fgrid2 b.qk-feta { font-size: 18px; color: #B91C1C; }
.qk-fgrid2 b.qk-feta em { font-style: normal; font-size: 12px; white-space: nowrap; }
.qk-fst { display: block; margin-top: 2px; font-size: 11.5px; color: #475569; font-weight: 700; }
.qk-fok { display: flex; gap: 8px; background: rgba(209,250,229,.7); color: #022C22; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; }
.qk-fnf { margin-top: 10px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 16px; padding: 12px 14px; font-size: 12.5px; color: #78350F; line-height: 1.6; }
.qk-fnf-h { font-weight: 900; color: #92400E; margin-bottom: 6px; }
.qk-fnf p { margin: 0 0 4px; }
.qk-fnf-ok { display: flex; gap: 6px; margin-top: 6px; background: rgba(255,255,255,.8); border: 1px solid #FDE68A; border-radius: 12px; padding: 8px 10px; color: #1C1917; }

/* 驗證碼 */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.otp div { height: 56px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif; font-size: 24px; font-weight: 800; transition: border-color .15s; }
.otp div.f { border-color: var(--ink2); }
.otp div.cur { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.otp input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; }
.otp.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.linkbtn { color: var(--red); font-weight: 800; font-size: 14.5px; padding: 8px 2px; }
.linkbtn:disabled { color: var(--sub); }
.otp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.revcode { margin-top: 12px; text-align: center; font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: .3em; background: #fff; border: 1.5px dashed var(--line); border-radius: 14px; padding: 10px; }

/* 實時進度 */
.status-hero { display: flex; align-items: center; gap: 14px; padding: 12px 2px 8px 6px; }
.radar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; position: relative; }
.radar svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: .35; animation: radar 2s ease-out infinite; }
.radar::after { animation-delay: 1s; }
.radar.done { background: var(--ok); } .radar.done::before, .radar.done::after { display: none; }
.radar.bad { background: #94a3b8; } .radar.bad::before, .radar.bad::after { display: none; }
@keyframes radar { from { transform: scale(1); opacity: .35; } to { transform: scale(1.45); opacity: 0; } }
.status-hero h3 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.3; }
.status-hero p { margin: 3px 0 0; font-size: 14.5px; color: var(--sub); line-height: 1.45; }
.steps { display: flex; gap: 4px; margin: 10px 0 4px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.steps i.done { background: var(--red); }
.steps i.cur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: skel 1.4s linear infinite; }
.step-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.step-lbl span.on { color: var(--red); }
.plate-card { margin-top: 12px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; }
.plate { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .08em; background: #fcd34d; color: #111; border: 2.5px solid #111; border-radius: 8px; padding: 4px 10px; flex: none; }
.plate-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14.5px; color: var(--sub); }
.plate-card .t b { color: var(--ink); font-size: 16px; }
.plate-card .call { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.plate-card .call svg { width: 20px; height: 20px; }
.plate-card .pc-img { width: 104px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: #F1F5F9; border: 1px solid var(--line); }
.plate-card .pc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plate-card .pc-mid .t { width: 100%; }
@media (max-width: 380px) { .plate-card .pc-img { width: 86px; height: 60px; } .plate-card { gap: 10px; } }
.kv { margin-top: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 12px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; }
.kv > div + div { border-top: 1px solid var(--line2); }
.kv span { color: var(--sub); font-weight: 700; flex: none; }
.kv b { text-align: right; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-row .btn { white-space: nowrap; font-size: 15.5px; padding: 0 10px; }
.rq { margin-top: 10px; font-size: 14px; background: var(--amber-50); border: 1px solid #fde68a; border-radius: 12px; padding: 9px 11px; color: #78350f; }
.rq.ok { background: var(--ok-50); border-color: #a7f3d0; color: #065f46; }

/* 搜尋 */
#search { position: fixed; z-index: 40; inset: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateY(100%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s .38s; }
#search.on { transform: none; visibility: visible; transition: transform .38s var(--ease); }
@media (min-width: 720px) { #search { left: 16px; right: auto; width: 420px; top: 16px; bottom: 16px; border-radius: 24px; box-shadow: var(--shadow); } }
.s-head { padding: calc(10px + var(--safe-t)) 16px 8px; background: #fff; border-bottom: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 6px 18px rgba(28,25,23,.06); }
@media (min-width: 720px) { .s-head { padding-top: 14px; border-radius: 24px 24px 20px 20px; } }
.s-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.s-top h3 { margin: 0; font-size: 19px; font-weight: 900; }
.s-inputs { display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 26px; }
.s-in { position: relative; display: flex; align-items: center; }
.s-in::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.s-in.stop::before { background: var(--amber); box-shadow: 0 0 0 3px #fef3c7; }
.s-in.drop::before { background: var(--night); border-radius: 2px; box-shadow: none; }
.s-in:not(:last-child)::after { content: ""; position: absolute; left: -16px; top: calc(50% + 9px); height: 26px; border-left: 2px dotted #cfc7b8; }
.s-in input { width: 100%; height: 46px; border-radius: 13px; border: 1.5px solid transparent; background: var(--soft); padding: 0 40px 0 13px; font-size: 16px; font-weight: 600; outline: none; }
.s-in input:focus { border-color: var(--red); background: #fff; }
.s-in .clr, .s-in .rm { position: absolute; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; color: #a8a29e; }
.s-in .clr svg, .s-in .rm svg { width: 18px; height: 18px; }
.s-in input:placeholder-shown ~ .clr { display: none; }
.s-in.stop input { padding-right: 72px; }
.s-in.stop .clr { right: 38px; }
.s-add { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 26px; color: var(--red); font-weight: 800; font-size: 14.5px; padding: 4px 0; }
.s-add svg { width: 16px; height: 16px; }
.s-body { flex: 1; overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.s-sec { font-size: 13px; font-weight: 800; color: var(--sub); margin: 14px 2px 2px; letter-spacing: .04em; }
.s-body .row .ic.red { background: var(--red-50); color: var(--red); }
.s-body mark { background: none; color: var(--red); font-weight: 900; }
.s-empty { text-align: center; color: var(--sub); font-size: 14.5px; padding: 26px 10px; line-height: 1.6; }
.s-google { text-align: right; font-size: 10.5px; color: #a8a29e; padding: 6px 2px; }

/* 選單 + AI 面板 */
#menu, #aip, #pxc { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s .35s; }
#menu.on, #aip.on, #pxc.on { visibility: visible; transition: none; }
.scrim { position: absolute; inset: 0; background: rgba(28,25,23,.42); opacity: 0; transition: opacity .3s; }
#menu.on .scrim, #aip.on .scrim, #pxc.on .scrim { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding-top: var(--safe-t); }
#menu.on .drawer { transform: none; }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.d-head b { font-size: 19px; font-weight: 900; }
.d-body { flex: 1; overflow-y: auto; padding: 0 16px calc(20px + var(--safe-b)); }
.m-prof { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; text-decoration: none; }
.m-prof .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; }
.m-prof .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-prof .t b { font-size: 16.5px; }
.m-prof .t span { font-size: 14px; color: var(--sub); }
.m-sec { font-size: 13px; font-weight: 800; color: var(--sub); margin: 16px 2px 6px; letter-spacing: .04em; }
.m-list { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 12px; }
.m-list .row { text-decoration: none; }
.aip-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .38s var(--ease); max-height: 86dvh; display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
#aip.on .aip-panel, #pxc.on .aip-panel { transform: none; }
@media (min-width: 720px) { .aip-panel { left: 50%; right: auto; width: 460px; bottom: 50%; border-radius: 24px; transform: translate(-50%, 60%); opacity: 0; transition: transform .35s var(--ease), opacity .25s; } #aip.on .aip-panel, #pxc.on .aip-panel { transform: translate(-50%, 50%); opacity: 1; } }
.aip-body { padding: 0 16px 16px; overflow-y: auto; }
.aip-body textarea { width: 100%; min-height: 92px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 12px; font-size: 16px; line-height: 1.5; resize: none; outline: none; }
.aip-body textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.aip-ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.aip-ex button { font-size: 14px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-align: left; }
.aip-got { margin-top: 12px; }

#toast { position: fixed; z-index: 60; left: 50%; top: calc(66px + var(--safe-t)); transform: translate(-50%, -20px); background: var(--night); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- 可讀性：提示字、揀唔到嘅車 ---------- */
input::placeholder, textarea::placeholder { color: #8a837b; opacity: 1; }
.car.off { background: #f6f3ee; border-style: dashed; }
.car.off img { filter: grayscale(1); opacity: .6; }
.car.off .t b, .car.off .pr b { color: #8a837b; }
.car .t .why { color: #b45309; font-weight: 800; }
.s-in input:placeholder-shown { font-weight: 500; }

/* ---------- 首頁行程卡（上車 + 落車） ---------- */
.trip-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 2px 6px 2px 14px; box-shadow: 0 2px 10px rgba(28,25,23,.05); position: relative; }
.trip-card::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 40px; border-left: 2px dotted #c9c1b3; }
.tc-row { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.tc-row + .tc-row { border-top: 1px solid var(--line2); }
.tc-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px var(--red-100); position: relative; z-index: 1; }
.tc-row .dot.drop { background: var(--night); border-radius: 3px; box-shadow: 0 0 0 4px #fff; }
.tc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 0; }
.tc-main small { font-size: 13px; color: var(--sub); font-weight: 700; }
.tc-main b { font-size: 17px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.tc-main b.ph { color: #8a837b; font-weight: 700; }
.tc-main span { font-size: 13.5px; color: var(--sub); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tc-gps { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--ink); display: grid; place-items: center; flex: none; transition: background .2s, color .2s, transform .15s; }
.tc-gps:active { transform: scale(.92); }
.tc-gps svg { width: 22px; height: 22px; }
.tc-gps.on { background: var(--red-50); color: var(--red); }
.tc-ic { width: 46px; display: grid; place-items: center; color: var(--ink); flex: none; }
.tc-ic svg { width: 22px; height: 22px; }
.tc-row .when { flex: none; font-size: 13px; font-weight: 800; color: var(--red); background: var(--red-50); padding: 6px 10px; border-radius: 10px; }
.chip.add { border-style: dashed; color: var(--ink2); }
/* 揀車頁上車行 + 搜尋格嘅 GPS 掣 */
.tgps { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink2); background: var(--soft); flex: none; margin-left: 4px; }
.tgps svg { width: 18px; height: 18px; }
.s-in .sgps { position: absolute; right: 6px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--red); background: var(--red-50); }
.s-in .sgps svg { width: 19px; height: 19px; }
.s-in.has-gps input { padding-right: 82px; }
.s-in.has-gps .clr { right: 44px; }

/* ---------- 長按地圖選單 ---------- */
.press { position: fixed; z-index: 35; transform: translate(-50%, -100%) scale(.9); opacity: 0; pointer-events: none; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(28,25,23,.22); padding: 10px; width: 236px; transition: opacity .18s, transform .22s var(--ease); }
.press.on { opacity: 1; transform: translate(-50%, -100%) scale(1); pointer-events: auto; }
.press::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.pm-addr { font-size: 14px; font-weight: 700; color: var(--ink2); padding: 2px 4px 8px; display: flex; gap: 6px; align-items: center; line-height: 1.4; }
.pm-addr .spin { width: 14px; height: 14px; }
.pm-btns { display: grid; gap: 6px; }
.pm-btns button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--soft); font-size: 15.5px; font-weight: 800; text-align: left; }
.pm-btns button:active { background: var(--line2); }
.pm-btns .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); flex: none; }
.pm-btns .dot.drop { background: var(--night); border-radius: 3px; }

/* ---------- 🚖 司機實時動畫 ---------- */
.drv { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 50; will-change: transform; }
.drv-in { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; animation: drvIn .5s var(--ease) both; }
@keyframes drvIn { from { opacity: 0; transform: scale(.4); } }
.drv-car { width: 48px; height: 48px; display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(28,25,23,.35)); transition: transform .35s linear; }
.drv-car svg { width: 40px; height: 40px; }
.drv-eta { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); background: var(--night); color: #fff; font-family: "Plus Jakarta Sans", "Noto Sans HK", sans-serif; font-size: 13.5px; font-weight: 800; padding: 5px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 4px 12px rgba(28,25,23,.25); }
.drv-eta::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--night); }
.pulse { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; }
.pulse i, .pulse b { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; }
.pulse b { background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(28,25,23,.3); left: -11px; top: -11px; width: 22px; height: 22px; }
.pulse i { background: rgba(185, 28, 28, .35); animation: ripple 2.2s ease-out infinite; }
.pulse i + i { animation-delay: 1.1s; }
.pulse.ok b { background: var(--ok); }
.pulse.ok i { background: rgba(5, 150, 105, .35); }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.follow { position: fixed; z-index: 16; left: 14px; bottom: calc(var(--sheet-h, 300px) + 14px); display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 800; box-shadow: var(--shadow); transition: bottom .38s var(--ease); }
@media (min-width: 720px) { .follow { left: 452px; bottom: 24px; } }
/* 頂部通知卡 */
.push { position: fixed; z-index: 55; left: 12px; right: 12px; top: calc(8px + var(--safe-t)); display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 13px 16px; box-shadow: 0 14px 34px rgba(28,25,23,.22); transform: translateY(-130%); transition: transform .45s var(--ease); cursor: pointer; }
.push.on { transform: none; }
.push.dark { background: var(--night); color: #fff; }
.push.ok { background: #065f46; color: #fff; }
.push .pi { font-size: 26px; line-height: 1; flex: none; }
.push .pt { display: flex; flex-direction: column; min-width: 0; }
.push .pt b { font-size: 17px; font-weight: 900; }
.push .pt span { font-size: 14px; opacity: .85; margin-top: 1px; }
@media (min-width: 720px) { .push { left: 50%; right: auto; width: 420px; margin-left: -210px; } }
/* 評分 */
.rate { margin-top: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.rate > b { font-size: 16.5px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.stars button, .stars span { font-size: 36px; line-height: 1; color: #d6cfc2; transition: transform .15s, color .15s; }
.stars button:active { transform: scale(.85); }
.stars .on { color: #f59e0b; }
.rate textarea { width: 100%; min-height: 70px; margin: 8px 0 10px; border-radius: 13px; border: 1.5px solid var(--line); padding: 10px 12px; font-size: 16px; resize: none; outline: none; }
.rate.done p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink2); line-height: 1.55; }

/* ---------- 🔠 大字模式（同會員中心共用設定；地圖唔放大） ---------- */
html.font-lg .sheet-body, html.font-lg .s-head, html.font-lg .s-body, html.font-lg .d-body, html.font-lg .aip-body, html.font-lg .push, html.font-lg .press { zoom: 1.1; }
html.font-xl .sheet-body, html.font-xl .s-head, html.font-xl .s-body, html.font-xl .d-body, html.font-xl .aip-body, html.font-xl .push, html.font-xl .press { zoom: 1.22; }

.press.below { transform: translate(-50%, 0) scale(.9); }
.press.below.on { transform: translate(-50%, 0) scale(1); }
.press.below::after { bottom: auto; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #fff; }
/* 路況、AI 掣擺右上角（頂部 bar 下面），唔會同底部面板撞 */
.top-fabs { position: fixed; z-index: 15; right: 12px; top: calc(66px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; transition: opacity .25s; }
.top-fabs.away { opacity: 0; pointer-events: none; }
.side-fabs.cramped { opacity: 0; pointer-events: none; }

/* 👤 會員中心掣：黃色膠囊（同主網站導航列一樣），喺地圖上面好突出 */
.fab.member { width: auto; padding: 0 14px 0 11px; border-radius: 22px; gap: 6px; display: inline-flex; align-items: center; background: #facc15; color: #1c1917; box-shadow: 0 6px 16px rgba(234, 179, 8, .45), 0 1px 0 #eab308 inset; font-weight: 900; font-size: 15px; white-space: nowrap; }
.fab.member svg { width: 19px; height: 19px; }
.fab.member:hover { background: #fde047; }
.fab.member .dot { top: -2px; right: -2px; }
/* 細屏：品牌條收埋「優質6人的士」幾隻字，留位俾會員中心掣 */
@media (max-width: 400px) {
  .brand .bn { display: none; }
  .brand { flex: 0 1 auto; padding-right: 12px; }
  .brand em { font-size: 15px; font-weight: 900; color: var(--red); }
}

/* 📲 加到主畫面小彈窗 */
.a2hs { position: fixed; z-index: 34; left: 12px; right: 12px; bottom: calc(var(--sheet-h, 300px) + 12px); background: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(28,25,23,.25); padding: 12px 12px 12px 12px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease), bottom .38s var(--ease); }
.a2hs.on { opacity: 1; transform: none; pointer-events: auto; }
.a2hs-row { display: flex; align-items: center; gap: 12px; }
.a2hs img { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 2px 6px rgba(28,25,23,.2); }
.a2hs .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a2hs .t b { font-size: 15.5px; font-weight: 900; }
.a2hs .t span { font-size: 13.5px; color: var(--sub); line-height: 1.4; }
.a2hs .go { flex: none; background: var(--red); color: #fff; font-weight: 900; font-size: 14.5px; padding: 10px 14px; border-radius: 12px; }
.a2hs .x { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.a2hs-steps { margin: 10px 0 2px; padding: 10px 12px; background: var(--soft); border-radius: 12px; display: grid; gap: 8px; font-size: 14.5px; font-weight: 700; }
.a2hs-steps div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a2hs-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 900; display: grid; place-items: center; flex: none; }
.a2hs-steps svg { width: 20px; height: 20px; color: #2563eb; vertical-align: -4px; }
.a2hs-steps .k { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.a2hs-arrow { position: fixed; z-index: 70; left: 50%; bottom: calc(6px + var(--safe-b)); margin-left: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: none; place-items: center; font-size: 18px; box-shadow: 0 6px 16px rgba(185,28,28,.45); animation: a2bounce 1s ease-in-out infinite; }
.a2hs-arrow.on { display: grid; }
@keyframes a2bounce { 50% { transform: translateY(8px); } }
@media (min-width: 720px) { .a2hs { display: none; } }

/* 🎙️ AI 語音 */
.v-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; }
.v-langs button { padding: 9px 4px; border-radius: 9px; font-size: 15px; font-weight: 800; color: var(--sub); }
.v-langs button.on { background: #fff; color: var(--red); box-shadow: 0 2px 6px rgba(28,25,23,.1); }
.v-langs button:disabled { opacity: .6; }
.v-mic-wrap { display: flex; flex-direction: column; align-items: center; padding: 16px 0 4px; }
.v-mic { position: relative; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #b91c1c, #ea580c); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(185,28,28,.4); transition: transform .15s; }
.v-mic:active { transform: scale(.94); }
.v-mic svg { width: 36px; height: 36px; position: relative; z-index: 1; }
.v-mic i { position: absolute; inset: 0; border-radius: 50%; background: rgba(234,88,12,.35); opacity: 0; }
.v-mic.on i { animation: vRing 1.6s ease-out infinite; }
.v-mic.on i + i { animation-delay: .8s; }
@keyframes vRing { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.v-hint { margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--ink2); display: flex; align-items: center; gap: 8px; text-align: center; }
.v-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.v-wave b { width: 3px; height: 6px; border-radius: 2px; background: var(--red); animation: vWave 1s ease-in-out infinite; }
.v-wave b:nth-child(2) { animation-delay: .15s; } .v-wave b:nth-child(3) { animation-delay: .3s; } .v-wave b:nth-child(4) { animation-delay: .45s; } .v-wave b:nth-child(5) { animation-delay: .6s; }
@keyframes vWave { 50% { height: 18px; } }
.v-live { margin-top: 10px; min-height: 26px; max-width: 100%; font-size: 17px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.5; }
.v-sub { margin-top: 2px; font-size: 13px; color: var(--sub); }
.drv.stale .drv-car { opacity: .55; filter: grayscale(.6) drop-shadow(0 4px 6px rgba(28,25,23,.25)); }
.drv.stale .drv-eta { opacity: .75; }
.drv-in.bounce { animation: drvBounce .9s var(--ease); }
@keyframes drvBounce { 0% { transform: translateY(0); } 30% { transform: translateY(-14px); } 55% { transform: translateY(0); } 72% { transform: translateY(-6px); } 100% { transform: translateY(0); } }

/* 👥🧳 人數行李卡 + 落單前確認 */
.pax-card { margin-top: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 12px; }
.pax-card.fresh { border-color: #fcd34d; box-shadow: 0 0 0 3px #fef3c7; }
.pax-card .step > span:first-child { font-size: 15.5px; }
.pax-hint { margin: 8px 0 6px; background: var(--amber-50); border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.opts.two { grid-template-columns: 1fr 1fr; }
.pxc-q { font-size: 16px; font-weight: 900; margin: 12px 2px 8px; }
.pxc-q small { font-size: 12.5px; color: var(--sub); font-weight: 600; margin-left: 4px; }
.pxc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pxc-chips button { min-width: 48px; height: 46px; padding: 0 12px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 800; transition: background .15s, border-color .15s, transform .12s; }
.pxc-chips button:active { transform: scale(.94); }
.pxc-chips button.on { background: var(--red); border-color: var(--red); color: #fff; }
#pxc-ok { flex-wrap: wrap; line-height: 1.3; padding: 8px 14px; }
.pxc-sw { display: block; width: 100%; font-size: 12.5px; font-weight: 700; opacity: .9; }

/* 🔗 多車同行 */
.bundle-head { margin-top: 12px; font-size: 14.5px; font-weight: 900; color: var(--ink2); }
.plate-card.bc { margin-top: 8px; position: relative; padding-left: 14px; }
.bc-n { width: 24px; height: 24px; border-radius: 50%; background: var(--night); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; flex: none; }
.bc-1 .bc-n { background: #1d4ed8; } .bc-2 .bc-n { background: #7c3aed; }
.plate.pend { background: var(--soft); border-color: var(--line); color: var(--sub); font-size: 15px; letter-spacing: 0; }
.bc-me { font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.bc-st { color: var(--red); font-weight: 800; white-space: nowrap; }
.drv-c1 .drv-car svg rect:first-child { fill: #1d4ed8; }
.drv-c2 .drv-car svg rect:first-child { fill: #7c3aed; }

/* 🚦 路況格 */
.eta-row .traffic b { font-family: "Noto Sans HK", sans-serif; font-size: 16px; font-weight: 900; line-height: 1.3; }
.eta-row .traffic.ok b { color: #15803d; }
.eta-row .traffic.slow b { color: #b45309; }
.eta-row .traffic.jam b { color: #b91c1c; }
/* ✅ 預約承諾 */
.promise { margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; background: #f0fdf4; border: 1.5px solid #bbf7d0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.5; color: #14532d; }
.promise b { font-weight: 900; }
.promise span { color: #3f6212; font-weight: 600; }
/* ✏️ 屋企／公司：撳筆仔即改地址 */
.chip.has-edit { padding: 0; gap: 0; overflow: hidden; }
.chip.has-edit .chip-main { display: flex; align-items: center; gap: 6px; padding: 10px 6px 10px 15px; font: inherit; background: none; border: 0; color: inherit; }
.chip.has-edit .chip-edit { padding: 10px 13px 10px 8px; font-size: 14px; background: none; border: 0; border-left: 1.5px solid #fcd34d; line-height: 1; }
.chip.has-edit .chip-main:last-child { padding-right: 15px; }
/* 🚗 混能按錶：價錢位顯示文字 */
.car .pr b.mt { font-family: "Noto Sans HK", sans-serif; font-size: 16px; font-weight: 900; white-space: nowrap; }
.car .pr b.mt + small { max-width: 112px; text-align: right; line-height: 1.3; white-space: normal; }

/* 📍 機場上車點選擇／鎖定上車點 */
.pk-spot { padding: 4px 0 10px 22px; }
.pk-spot small { display: block; font-size: 12.5px; font-weight: 800; color: var(--sub); margin-bottom: 6px; }
.pk-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 900; font-size: 14.5px; color: var(--ink); min-height: 52px; }
.pk-seg button em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--sub); }
.pk-seg button.on { border-color: var(--red); background: #fef2f2; box-shadow: 0 0 0 2px rgba(185,28,28,.12); }
.pk-seg button.on em { color: var(--red); }
.pk-lock { margin: 0 0 8px 22px; font-size: 13px; font-weight: 800; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 6px 10px; }

/* 🏁 多車同行：每部車自己嘅目的地同車費（目的地唔同先顯示） */
.bc .bc-dest{width:100%;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;margin-top:5px;padding-top:5px;border-top:1px dashed rgba(0,0,0,.12);font-size:13px;font-weight:700;color:#334155;line-height:1.4}
.bc .bc-dest span{min-width:0;overflow-wrap:anywhere}
.bc .bc-fare{margin-left:auto;color:#059669;font-weight:900;white-space:nowrap}
