/* =========================================================================
   AnyTime Taxi — Portal Beta stylesheet (Jul 28 2026)
   External CSS for portal_beta.html. Dark theme, mobile-first, bottom nav.
   ========================================================================= */

/* --- Base --- */
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#0e0e0e;color:#f0f0f0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;min-height:100vh;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
a{color:#00d664;text-decoration:none}
.hidden{display:none!important}

/* --- Layout shell --- */
#app{min-height:100vh;display:flex;flex-direction:column}
html{scroll-padding-bottom:80px;scroll-padding-top:60px}
.main{flex:1;max-width:600px;width:100%;margin:0 auto;padding:16px 16px 80px}
.section.active{padding-bottom:80px}
#section-auth{padding-bottom:80px}
/* When the push banner is visible (fixed above nav ~62px + banner ~130px),
   add extra bottom padding so content isn't hidden behind the banner. */
body.has-push-banner .section.active{padding-bottom:210px}
body.has-push-banner #section-auth{padding-bottom:210px}

/* --- Topbar --- */
.topbar{background:#111;border-bottom:1px solid #222;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100}
.topbar .brand{font-weight:700;font-size:1.05rem;color:#fff;letter-spacing:0.3px}
.topbar .brand span{color:#00d664}
.topbar .avatar-btn{width:36px;height:36px;border-radius:50%;background:#00d664;color:#000;border:none;font-weight:700;font-size:0.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform 0.15s}
.topbar .avatar-btn:active{transform:scale(0.92)}

/* --- Bottom nav --- */
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#111;border-top:1px solid #222;display:flex;z-index:100;max-width:600px;margin:0 auto;padding-bottom:env(safe-area-inset-bottom, 0px)}
.bottom-nav button{flex:1;background:none;border:none;color:#666;padding:10px 0 12px;font-size:0.65rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;transition:color 0.15s;font-family:inherit}
.bottom-nav button .nav-icon{font-size:1.4rem;line-height:1}
.bottom-nav button.active{color:#00d664}
.bottom-nav button:active{color:#00d664}

/* --- Sections --- */
.section{display:none;animation:fadeIn 0.2s ease}
.section.active{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

/* --- Cards --- */
.card{background:#161616;border:1px solid #262626;border-radius:12px;padding:18px;margin-bottom:16px}
.card h2{margin:0 0 14px;font-size:1.1rem;color:#fff;border-bottom:1px solid #262626;padding-bottom:10px}
.section-heading{font-size:0.85rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;margin:18px 0 10px}

/* --- Inputs --- */
.input-group{margin-bottom:14px}
.input-group label{display:block;font-size:0.78rem;color:#aaa;margin-bottom:5px;text-transform:uppercase;letter-spacing:0.5px}
.input-group input,.input-group select,.input-group textarea{width:100%;background:#0e0e0e;border:1px solid #2a2a2a;border-radius:8px;color:#fff;padding:11px 12px;font-size:0.95rem;font-family:inherit;transition:border-color 0.15s,box-shadow 0.15s}
.input-group input:focus,.input-group select:focus,.input-group textarea:focus{outline:none;border-color:#00d664;box-shadow:0 0 0 2px rgba(0,214,100,0.15)}
.input-group input::placeholder,.input-group textarea::placeholder{color:#555}
.input-group input:disabled{opacity:0.5;cursor:not-allowed}
.input-group textarea{resize:vertical;min-height:60px}

/* --- Native date/time pickers (dark theme tweaks) --- */
input[type="date"],input[type="time"]{
  color-scheme:dark;
  -webkit-appearance:none;
  appearance:none;
  min-height:44px;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator{
  filter:invert(0.8);
  cursor:pointer;
}
#schedule-group,#return-time-group{margin-top:4px}

/* --- Google PlaceAutocompleteElement (new Web Component API) --- */
#book-pickup-mount:empty,#book-dropoff-mount:empty::before{content:'Loading…';display:block;color:#555;padding:11px 12px;font-size:0.95rem}
.pac-el{--gm-3pac-input-background:#0e0e0e;--gm-3pac-input-color:#fff;--gm-3pac-input-border-color:#2a2a2a;--gm-3pac-input-focus-border-color:#00d664}
#book-pickup-mount input,#book-dropoff-mount input{width:100%;background:#0e0e0e;border:1px solid #2a2a2a;border-radius:8px;color:#fff;padding:11px 12px;font-size:0.95rem;font-family:inherit;transition:border-color 0.15s,box-shadow 0.15s}
#book-pickup-mount input:focus,#book-dropoff-mount input:focus{outline:none;border-color:#00d664;box-shadow:0 0 0 2px rgba(0,214,100,0.15)}
#book-pickup-mount input::placeholder,#book-dropoff-mount input::placeholder{color:#555}
/* Style the Google Places autocomplete dropdown */
.pac-container{background:#1a1a1a;border:1px solid #2a2a2a;border-radius:0 0 8px 8px;box-shadow:0 4px 12px rgba(0,0,0,0.4);z-index:10000}
.pac-item{color:#ccc;padding:8px 12px;font-size:0.9rem;cursor:pointer}
.pac-item:hover,.pac-item-selected{background:#2a2a2a;color:#00d664}
.pac-item-query{color:#fff}
.pac-icon{filter:invert(1) opacity(0.6)}
.pac-matched{color:#00d664;font-weight:600}

/* --- Buttons --- */
.btn{display:inline-block;background:#00d664;color:#000;border:none;border-radius:8px;padding:12px 20px;font-size:0.95rem;font-weight:600;cursor:pointer;width:100%;text-align:center;margin-top:8px;transition:opacity 0.15s,transform 0.1s;font-family:inherit}
.btn:active{transform:scale(0.98)}
.btn:disabled{opacity:0.5;cursor:not-allowed}
.btn-primary{background:#00d664;color:#000}
.btn-secondary{background:#1f1f1f;color:#fff;border:1px solid #333}
.btn-danger{background:#d32f2f;color:#fff}
.btn-link{background:none;color:#aaa;text-decoration:underline;font-weight:400;padding:8px}
.btn-large{padding:14px 20px;font-size:1rem;margin-top:14px}

/* --- Toggle pills (return, W&R, auto-receipt, marketing) --- */
.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;margin-bottom:8px}
.toggle-label{font-size:0.78rem;color:#aaa;text-transform:uppercase;letter-spacing:0.5px;font-family:inherit}
.toggle-pill{background:#1f1f1f;color:#888;border:1px solid #333;border-radius:20px;padding:6px 16px;font-size:0.8rem;cursor:pointer;font-family:inherit;transition:all 0.15s}
.toggle-pill[data-state="on"]{background:#00d664;color:#000;border-color:#00d664}
/* Greyed-out/disabled toggle (when the other option is selected). The whole
   row is dimmed + the button is non-interactive. */
.toggle-row.disabled{opacity:0.4;pointer-events:none}

/* --- Sliding switch (book-tab yes/no toggles) ---
   Standard iOS/Android-style toggle. Pill track stays fixed shape/size;
   only the knob position animates. Knob is brand green (#00d664).
   OFF state: knob on the LEFT, "No" label visible in light grey on the
              RIGHT side of the track (in the empty grey space).
   ON  state: knob slides to the RIGHT, "Yes" label appears in dark on the
              LEFT side of the track (in the now-green space). "No" hides.
   The button's own textContent is hidden (setSwitch() only flips data-state).
   Markup: <button class="toggle-pill toggle-switch" data-state="off"><span class="ts-knob"/></button> */
.toggle-pill.toggle-switch{
  position:relative;width:64px;height:30px;padding:0;border-radius:30px;
  font-size:0;color:transparent;overflow:hidden;
  background:#2a2a2a;border:1px solid #333;
  transition:background 0.2s,border-color 0.2s;
  flex-shrink:0;
}
.toggle-pill.toggle-switch[data-state="on"]{
  background:#00d664;border-color:#00d664;
}
/* "No" label — sits on the RIGHT side of the track (in the grey space next
   to the knob when off). Light grey. Fades out when on (knob covers that area). */
.toggle-pill.toggle-switch::before{
  content:"No";position:absolute;right:9px;top:50%;transform:translateY(-50%);
  font-size:0.7rem;font-weight:700;color:#999;font-family:-apple-system,sans-serif;
  pointer-events:none;transition:opacity 0.15s;z-index:1;
}
.toggle-pill.toggle-switch[data-state="on"]::before{opacity:0}
/* "Yes" label — sits on the LEFT side of the track. Hidden when off
   (knob covers it). Fades in dark when on. */
.toggle-pill.toggle-switch::after{
  content:"Yes";position:absolute;left:8px;top:50%;transform:translateY(-50%);
  font-size:0.7rem;font-weight:700;color:#000;font-family:-apple-system,sans-serif;
  pointer-events:none;transition:opacity 0.15s;z-index:1;opacity:0;
}
.toggle-pill.toggle-switch[data-state="on"]::after{opacity:1}
/* Knob — green circle, fixed size. Only `left` animates (3px ↔ 37px). */
.toggle-pill.toggle-switch .ts-knob{
  position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;
  background:#00d664;box-shadow:0 1px 3px rgba(0,0,0,0.4);
  transition:left 0.2s cubic-bezier(0.4,0,0.2,1);
  pointer-events:none;z-index:2;
}
.toggle-pill.toggle-switch[data-state="on"] .ts-knob{left:37px}

/* --- Date/time fields with overlay placeholder ---
   Native <input type="date"> and type="time"> don't honor the placeholder
   attribute reliably across browsers. This wraps the input in a positioned
   container and overlays a grey "Date"/"Time" label that hides when the
   input has a value (toggled via JS .has-value class on the input). */
.dt-field{position:relative;display:flex;align-items:center}
.dt-field input{width:100%;padding:10px 12px;background:#1f1f1f;border:1px solid #333;border-radius:8px;color:#f0f0f0;font-size:0.95rem;font-family:inherit;min-height:44px}
.dt-field input:focus{outline:none;border-color:#00d664}
.dt-field input::-webkit-calendar-picker-indicator{filter:invert(0.7);cursor:pointer;opacity:0.6}
.dt-placeholder{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  color:#666;font-size:0.95rem;pointer-events:none;transition:opacity 0.15s;
}
.dt-field input.has-value + .dt-placeholder{opacity:0}

/* --- Receipt month select + Generate button (Wallet tab) ---
   Fixed widths so the row looks even + professional. Both elements get
   matching height + border-radius so they're perfectly inline-aligned. */
.receipt-month-select{
  flex:0 0 130px;width:130px;max-width:130px;
  padding:12px 12px;background:#1f1f1f;color:#f0f0f0;
  border:1px solid #333;border-radius:8px;font-size:0.95rem;
  font-family:inherit;cursor:pointer;min-height:44px;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23888' d='M6 9L1 4h10z'/></svg>");
  background-repeat:no-repeat;background-position:right 10px center;padding-right:30px;
}
.receipt-month-select:focus{outline:none;border-color:#00d664}
.receipt-month-select:disabled{opacity:0.5}
.receipt-generate-btn{
  flex:0 0 130px;width:130px;max-width:130px;
  white-space:nowrap;margin-top:0;min-height:44px;
}

/* --- On/Off variant of the sliding switch (wallet tab toggles) ---
   Same track + knob as the Yes/No book-tab switches, but labels read
   "Off"/"On". The pseudo-element content is overridden here. */
.toggle-pill.toggle-switch.toggle-onoff::before{content:"Off"}
.toggle-pill.toggle-switch.toggle-onoff::after{content:"On"}

/* --- Collapsible year/month cascade (trips history + loyalty history) ---
   Used for both the trips history (year → month → trips) and the loyalty
   history (year → month → ledger rows). Default state: collapsed. */
.cascade-header{
  display:flex;align-items:center;justify-content:space-between;
  background:#1a1a1a;border:1px solid #2a2a2a;border-radius:8px;
  padding:10px 14px;margin-top:8px;cursor:pointer;font-size:0.85rem;
  color:#ddd;font-weight:600;user-select:none;
}
.cascade-header:hover{border-color:#00d664}
.cascade-header .arrow{color:#888;transition:transform 0.2s;font-size:0.7rem}
.cascade-header.open .arrow{transform:rotate(90deg)}
.cascade-body{display:none;padding-left:8px}
.cascade-body.open{display:block}
.cascade-header.sub{background:#161616;border-color:#222;padding:8px 12px;font-size:0.8rem;font-weight:500;color:#aaa;margin-top:4px}
.cascade-header.sub:hover{border-color:#00d664}
.cascade-item{padding:8px 0;border-bottom:1px solid #1f1f1f}
.cascade-item:last-child{border-bottom:none}

/* --- Wide segmented toggle (ASAP vs Schedule) --- */
.wide-toggle{display:flex;gap:4px;background:#1a1a1a;border:1px solid #2a2a2a;border-radius:10px;padding:4px;width:100%}
.wide-toggle-btn{flex:1;background:transparent;color:#888;border:none;border-radius:7px;padding:12px 8px;font-size:0.9rem;font-weight:600;cursor:pointer;font-family:inherit;transition:all 0.15s;text-align:center}
.wide-toggle-btn.active{background:#00d664;color:#000}
.wide-toggle-btn:active{transform:scale(0.98)}

/* --- Auth section --- */
.auth-wrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}
.auth-logo{font-weight:800;font-size:1.8rem;color:#fff;margin-bottom:24px;letter-spacing:0.5px}
.auth-logo span{color:#00d664}
.auth-card{background:#161616;border:1px solid #262626;border-radius:12px;padding:24px;max-width:380px;width:100%}
.auth-card h1{font-size:1.3rem;color:#fff;margin-bottom:8px}
.auth-subtitle{color:#888;font-size:0.9rem;margin-bottom:18px}
.auth-status{color:#aaa;font-size:0.85rem;margin-top:10px;min-height:1rem}
.auth-status.success{color:#00d664}
.auth-status.error{color:#f44336}
.auth-help{color:#666;font-size:0.75rem;margin-top:16px;line-height:1.5}
.name-option{background:#1a1a1a;border:1px solid #2a2a2a;border-radius:8px;padding:14px;margin-bottom:8px;cursor:pointer;transition:border-color 0.15s}
.name-option:hover,.name-option:active{border-color:#00d664}
.name-option .name{color:#fff;font-weight:600}
.name-option .phone{color:#888;font-size:0.8rem;margin-top:2px}

/* --- Turnstile --- */
.turnstile-box{min-height:65px;margin-bottom:12px;display:flex;justify-content:center}

/* --- Home: empty state --- */
.empty-state{text-align:center;padding:40px 20px}
.home-cta{text-align:center;padding:30px 20px;margin-top:8px;border-top:1px solid #1f1f1f}
.empty-icon{font-size:3rem;margin-bottom:12px}
.empty-state h2,.home-cta h2{color:#fff;font-size:1.3rem;margin-bottom:6px}
.empty-state p,.home-cta p{color:#888;font-size:0.9rem;margin-bottom:20px}

/* --- Home: business closure banner (Jul 31 2026, Pitfall #140) --- */
.closure-banner{display:flex;align-items:flex-start;gap:12px;background:linear-gradient(135deg,#3a2a0f,#4a3520);border:1px solid #FF9800;border-radius:12px;padding:14px 16px;margin-bottom:16px;position:relative}
.closure-banner.hidden{display:none!important}
.closure-banner-icon{font-size:1.5rem;line-height:1.2;flex-shrink:0}
.closure-banner-body{flex:1;min-width:0}
.closure-banner-title{color:#FFD54F;font-weight:700;font-size:1rem;margin-bottom:4px}
.closure-banner-sub{color:#FFCC80;font-size:0.85rem;line-height:1.4}
.closure-banner-close{background:transparent;border:none;color:#FFD54F;font-size:1.6rem;line-height:1;cursor:pointer;padding:0 4px;flex-shrink:0;opacity:0.7;transition:opacity 0.15s}
.closure-banner-close:hover{opacity:1}

/* --- Home: current job card --- */
.current-job{background:#161616;border:1px solid #333;border-radius:12px;padding:16px;margin-bottom:16px}
.current-job .status-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.current-job .status-badge{background:#00d664;color:#000;padding:4px 12px;border-radius:12px;font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;flex-shrink:0}
.current-job .status-badge.assigned{background:#1565C0;color:#fff}
.current-job .status-badge.enroute{background:#FF9800;color:#000}
.current-job .status-badge.atpickup{background:#00d664;color:#000}
.current-job .status-badge.pob{background:#9C27B0;color:#fff}
/* Jul 29 2026 — redesigned job header: pickup → dropoff (left) + status pill (right), one line */
.current-job .job-header-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.current-job .job-route-inline{display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow:hidden}
.current-job .job-route-inline .route-addr{font-size:0.9rem;color:#ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46%}
.current-job .job-route-inline .route-addr.pickup-addr{color:#00d664}
.current-job .job-route-inline .route-addr.dropoff-addr{color:#f44336}
.current-job .job-route-inline .route-arrow{color:#888;display:flex;align-items:center;flex-shrink:0}
.current-job .job-route{margin-bottom:12px}
.current-job .job-route .point{display:flex;align-items:center;gap:8px;padding:4px 0}
.current-job .job-route .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.current-job .job-route .dot.pickup{background:#00d664}
.current-job .job-route .dot.dropoff{background:#f44336}
.current-job .job-route .addr{font-size:0.9rem;color:#ddd}
.current-job .job-time{color:#aaa;font-size:0.85rem;margin-bottom:12px}
.current-job .driver-info{background:#0e0e0e;border-radius:8px;padding:12px;margin-bottom:12px;display:flex;align-items:center;gap:12px}
.current-job .driver-vehicle-single{color:#fff;font-weight:600;font-size:0.95rem;letter-spacing:0.2px}
/* Map — centered in its box; only rendered for En Route. Wrapped in .map-wrap
   so the vehicle pill can overlay on top of the map (sibling, not child). */
.current-job .map-wrap{position:relative;margin:0 auto 12px;max-width:320px;width:100%}
.current-job .map-container{border-radius:8px;overflow:hidden;margin:0 auto 12px;background:#0e0e0e;aspect-ratio:1/1;max-width:320px;max-height:280px;width:100%}
.current-job .map-container iframe,.current-job .map-container > div{width:100%;height:100%;border:0;display:block}
/* Jul 30 2026 — slick black pill overlay on top of the map showing the vehicle
   details in the brand green (#00d664). Positioned absolute, top centre of the
   map wrap. Pointer-events:none so it doesn't block map gestures (though the
   map itself has gestureHandling:'none'). */
.current-job .map-vehicle-pill{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,0.82);color:#00d664;font-weight:600;font-size:0.82rem;letter-spacing:0.2px;padding:7px 14px;border-radius:999px;white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 8px rgba(0,0,0,0.45);border:1px solid rgba(0,214,100,0.25);z-index:5;pointer-events:none;font-family:'Inter','Montserrat',system-ui,-apple-system,sans-serif}
/* Jul 30 2026 — Tracking waiting state (driver > 15 min away). Shown in the
   .map-container slot so the layout doesn't jump when the driver crosses the
   threshold. Dark themed to match the map background.
   Jul 30 2026 (second pass) — pad-top so the content clears the vehicle pill
   (the pill is position:absolute top:10px inside .map-wrap, sibling of the
   map container; without this padding the "Driver on the way" title is
   hidden behind the pill). */
.current-job .tracking-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;padding:48px 20px 20px;text-align:center;background:#0e0e0e;color:#fff}
.current-job .tracking-waiting .tracking-waiting-icon{margin-bottom:12px;opacity:0.9}
.current-job .tracking-waiting .tracking-waiting-title{font-size:1.05rem;font-weight:700;color:#fff;margin-bottom:6px}
.current-job .tracking-waiting .tracking-waiting-eta{font-size:1rem;color:#00d664;font-weight:600;margin-bottom:4px}
.current-job .tracking-waiting .tracking-waiting-sub{font-size:0.78rem;color:#888;line-height:1.4}
.current-job .status-message{font-size:0.85rem;color:#aaa;text-align:center;margin-bottom:12px}
.current-job .status-message.enroute-msg{color:#FF9800}
/* At Pickup — "Your driver is outside" arrival message */
.current-job .arrival-message{background:#0e0e0e;border:1px solid #00d664;border-radius:12px;padding:18px 16px;margin-bottom:12px;text-align:center}
.current-job .arrival-message .arrival-icon{display:flex;justify-content:center;margin-bottom:10px}
.current-job .arrival-message .arrival-text{color:#00d664;font-size:1.15rem;font-weight:700;margin-bottom:6px}
.current-job .arrival-message .arrival-detail{color:#ddd;font-size:0.92rem;line-height:1.4}
.current-job .arrival-message .arrival-wait-note{color:#FF9800;font-size:0.85rem;font-weight:600;margin-top:10px;line-height:1.4}
/* POB — "Enjoy your trip" with a taxi-in-motion animation */
.current-job .pob-message{background:#0e0e0e;border:1px solid #9C27B0;border-radius:12px;padding:22px 16px;margin-bottom:12px;text-align:center;overflow:hidden;position:relative}
.current-job .pob-message .pob-animation{position:relative;height:56px;margin-bottom:12px;overflow:hidden}
/* Jul 30 2026 — POB taxi animation fixes:
   (a) taxi faces RIGHT: the 🚕 emoji faces left on most platforms, so we flip
       it horizontally with scaleX(-1) on the .taxi-emoji-flip wrapper.
   (b) starts from the LEFT edge: the move animation starts at translateX(-100%)
       (fully off the left edge) and ends at translateX(100%) (off the right
       edge), so the taxi enters from the left and exits to the right.
   The structure is: .taxi-emoji-move (handles the horizontal travel via
   translateX) > .taxi-emoji-flip (handles the horizontal flip via scaleX) >
   the 🚕 emoji (handles the vertical bounce via translateY).
   Splitting transforms across nested elements avoids the CSS limitation that
   multiple animations on one element can't each control a different transform
   function without overwriting each other. */
.current-job .pob-message .taxi-emoji-move{display:inline-block;position:relative;z-index:2;animation:pob-taxi-move 4s linear infinite}
.current-job .pob-message .taxi-emoji-flip{display:inline-block;transform:scaleX(-1);transform-origin:center}
.current-job .pob-message .taxi-emoji{font-size:38px;line-height:56px;display:inline-block;animation:pob-taxi-bounce 0.6s ease-in-out infinite alternate}
.current-job .pob-message .road-line{position:absolute;left:0;right:0;bottom:8px;height:4px;background:repeating-linear-gradient(90deg,#444 0 20px,transparent 20px 36px);animation:pob-road-scroll 0.5s linear infinite;z-index:1}
.current-job .pob-message .pob-text{color:#ce93d8;font-size:1.2rem;font-weight:700}
@keyframes pob-taxi-bounce{from{transform:translateY(0)}to{transform:translateY(-5px)}}
@keyframes pob-taxi-move{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
@keyframes pob-road-scroll{from{background-position:0 0}to{background-position:-36px 0}}
.current-job .job-actions{display:flex;gap:8px}
.current-job .job-actions .btn{flex:1;margin-top:0}

/* --- Quick book chips --- */
.trip-chip{background:#161616;border:1px solid #2a2a2a;border-radius:10px;padding:14px 16px;margin-bottom:10px;cursor:pointer;transition:border-color 0.15s,background 0.15s}
.trip-chip:hover{border-color:#3a3a3a}
.trip-chip:active{border-color:#00d664;background:#1a1f1a}
.trip-chip-route{display:flex;align-items:center;gap:8px;font-size:0.88rem;line-height:1.3}
.trip-chip-addr{color:#e0e0e0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trip-chip-arrow{color:#00d664;font-size:0.85rem;flex-shrink:0;font-weight:700}

/* --- Fare estimate --- */
.fare-estimate{display:none;background:#0e0e0e;border:1px solid #2a2a2a;border-radius:8px;padding:14px;margin:12px 0}
.fare-estimate.has-data{display:block;border-color:#00d664}
.fare-estimate .fare-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.fare-estimate .fare-amount{font-size:1.5rem;font-weight:700;color:#00d664}
.fare-estimate .fare-detail{color:#888;font-size:0.8rem}
.fare-estimate .fare-badge{display:inline-block;background:#00d664;color:#000;padding:2px 8px;border-radius:4px;font-size:0.7rem;font-weight:600;margin-left:6px}
.fare-estimate .fare-note{color:#666;font-size:0.75rem;margin-top:6px;font-style:italic}

/* --- Scroll hint (book form) --- */
.scroll-hint{display:none;text-align:center;color:#00d664;font-size:0.85rem;padding:8px 0 4px;animation:bounce 1.4s infinite}
.scroll-hint.show{display:block}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* --- Home quick links + info strip --- */
.home-quick-links{display:flex;gap:10px;justify-content:center;margin-top:18px}
.home-quick-link{flex:1;max-width:120px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;background:#141414;border:1px solid #2a2a2a;border-radius:10px;color:#ddd;text-decoration:none;font-size:0.8rem;transition:border-color 0.15s,transform 0.1s}
.home-quick-link span:first-child{font-size:1.3rem}
.home-quick-link:active{transform:scale(0.96);border-color:#00d664}
.home-info-strip{display:flex;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid #1f1f1f}
.home-info-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px}
.home-info-num{font-size:1.2rem;font-weight:700;color:#00d664}
.home-info-lbl{font-size:0.68rem;color:#666;text-transform:uppercase;letter-spacing:0.5px;text-align:center}

/* --- Book status --- */
.book-status{margin-top:10px;font-size:0.85rem;min-height:1rem}
.book-status.success{color:#00d664}
.book-status.error{color:#f44336}
.booking-confirmation{background:#0e0e0e;border:1px solid #00d664;border-radius:8px;padding:14px;margin-top:12px}
.booking-confirmation h3{color:#00d664;margin-bottom:6px}

/* --- Trips --- */
.filter-chips{display:flex;gap:6px;margin-bottom:16px;overflow-x:auto;padding-bottom:4px}
.chip{background:#1a1a1a;color:#888;border:1px solid #2a2a2a;border-radius:16px;padding:6px 14px;font-size:0.8rem;cursor:pointer;white-space:nowrap;font-family:inherit;transition:all 0.15s}
.chip.active{background:#00d664;color:#000;border-color:#00d664}
.trip-item{background:#161616;border:1px solid #262626;border-radius:10px;padding:14px;margin-bottom:8px}
.trip-item .trip-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:8px}
.trip-item .trip-time{color:#aaa;font-size:0.78rem}
.trip-item .trip-status{font-size:0.7rem;padding:2px 8px;border-radius:10px;font-weight:600;text-transform:uppercase}
.trip-item .trip-status.Completed{background:#1b5e20;color:#a5d6a7}
.trip-item .trip-status.Cancelled{background:#4a1010;color:#ef9a9a}
.trip-item .trip-status.Assigned,.trip-item .trip-status.En\ Route,.trip-item .trip-status.At\ Pickup,.trip-item .trip-status.POB{background:#0d47a1;color:#90caf9}
.trip-item .trip-status.Pending,.trip-item .trip-status.Waiting\ Approval{background:#4a4a10;color:#fff59d}
.trip-item .trip-status.Scheduled,.trip-item .trip-status.Offer\ Sent{background:#4a3a10;color:#ffe082}
.trip-item .trip-route{color:#fff;font-size:0.9rem;margin-bottom:4px}
.trip-item .trip-fare{color:#888;font-size:0.8rem}
.trip-item .trip-actions{display:flex;gap:6px;margin-top:10px}
.trip-item .trip-actions .btn{flex:1;margin-top:0;font-size:0.8rem;padding:8px 12px}

/* --- Receipts --- */
.rcp-year-header{background:#0e0e0e;border:1px solid #2a2a2a;border-radius:6px;padding:10px 12px;cursor:pointer;margin-top:12px;display:flex;justify-content:space-between;align-items:center}
.rcp-year-header .arrow{transition:transform 0.2s}
.rcp-year-header.open .arrow{transform:rotate(90deg)}
.rcp-year-body{display:none;padding-left:8px}
.rcp-year-body.open{display:block}
.receipt-item{background:#161616;border:1px solid #262626;border-radius:6px;padding:10px 12px;margin-top:6px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:border-color 0.15s}
.receipt-item:hover{border-color:#00d664}
.receipt-item .r-label{color:#ddd;font-size:0.85rem}
.receipt-item .r-meta{color:#888;font-size:0.75rem}
.receipt-item .r-download{color:#00d664;font-size:0.8rem}

/* --- Wallet --- */
.loyalty-balance{text-align:center;padding:16px 0}
.loyalty-balance .amount{font-size:2.5rem;font-weight:700;color:#00d664}
.loyalty-balance .label{color:#aaa;font-size:0.85rem;margin-top:4px}
.loyalty-opt-explain{font-size:0.78rem;color:#888;line-height:1.4;margin:8px 0 0;padding:0 4px}
.loyalty-history-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #1f1f1f}
.loyalty-history-item:last-child{border-bottom:none}
.loyalty-history-item .lhi-label{color:#ddd;font-size:0.85rem}
.loyalty-history-item .lhi-meta{color:#666;font-size:0.72rem}
.loyalty-history-item .lhi-amount{font-weight:600;font-size:0.9rem}
.loyalty-history-item .lhi-amount.credit{color:#00d664}
.loyalty-history-item .lhi-amount.debit{color:#f44336}

/* --- Saved cards --- */
.saved-card{background:#1a1a1a;border:1px solid #2a2a2a;border-radius:8px;padding:14px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}
.saved-card .card-brand{font-weight:600;color:#fff;font-size:0.9rem}
.saved-card .card-last4{color:#888;font-size:0.8rem;margin-top:2px}
.saved-card .card-exp{color:#666;font-size:0.72rem}
.saved-card .card-remove{color:#f44336;background:none;border:none;cursor:pointer;font-size:0.8rem;padding:6px}
.card-waitlist{background:#0e0e0e;border:1px dashed #444;border-radius:8px;padding:20px;text-align:center}
.card-waitlist h3{color:#fff;font-size:1rem;margin-bottom:8px}
.card-waitlist p{color:#888;font-size:0.85rem;margin-bottom:14px;line-height:1.5}

/* --- Stripe Elements --- */
.StripeElement{background:#0e0e0e;border:1px solid #2a2a2a;border-radius:8px;padding:12px;color:#fff}
.StripeElement--focus{border-color:#00d664;box-shadow:0 0 0 2px rgba(0,214,100,0.15)}

/* --- Profile drawer --- */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:200;opacity:0;transition:opacity 0.2s}
.overlay.show{opacity:1}
.profile-drawer{position:fixed;top:0;right:0;bottom:0;width:300px;max-width:85vw;background:#111;border-left:1px solid #222;z-index:201;transform:translateX(100%);transition:transform 0.25s;display:flex;flex-direction:column}
.profile-drawer.show{transform:translateX(0)}
.drawer-header{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #222}
.drawer-avatar{width:40px;height:40px;border-radius:50%;background:#00d664;color:#000;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.drawer-name{color:#fff;font-weight:600;font-size:0.95rem}
.drawer-phone{color:#888;font-size:0.78rem}
.drawer-close{background:none;border:none;color:#888;font-size:1.2rem;cursor:pointer;margin-left:auto;padding:4px}
.drawer-body{flex:1;padding:16px;overflow-y:auto}
.drawer-item{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #1a1a1a;color:#ddd;font-size:0.9rem;text-decoration:none}
.drawer-item:active{color:#00d664}
.drawer-about{color:#555;font-size:0.75rem;border-bottom:none;font-style:italic;margin-top:auto}
.drawer-body .btn-danger{margin-top:24px}
/* Jul 30 2026 — small button variant for the profile drawer's test-push +
   enable-push buttons. Sits full-width but with less padding than .btn so
   the drawer doesn't get tall. */
.btn-small{padding:8px 14px;font-size:0.82rem;margin-top:6px;width:100%}
.drawer-notif{border-bottom:none;padding-bottom:4px}


/* --- Map picker overlay --- */
.map-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.8);z-index:300;display:flex;align-items:flex-end}
.map-overlay.show{display:flex}
.map-sheet{background:#111;border-radius:16px 16px 0 0;width:100%;max-width:600px;margin:0 auto;height:70vh;display:flex;flex-direction:column}
.map-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #222}
.map-sheet-header h3{color:#fff;font-size:1rem}
.map-sheet-header button{background:none;border:none;color:#888;font-size:1.2rem;cursor:pointer}
.map-sheet-footer{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #222}
.map-sheet-footer .btn{flex:1;margin-top:0}

/* --- Modals --- */
.modal{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center}
.modal.show{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.7)}
.modal-card{position:relative;background:#161616;border:1px solid #2a2a2a;border-radius:12px;padding:24px;max-width:380px;width:90%;z-index:1}
.modal-card h3{color:#fff;font-size:1.1rem;margin-bottom:10px}
.modal-card p{color:#aaa;font-size:0.9rem;margin-bottom:16px;line-height:1.5}
.modal-card #modal-buttons,#card-decline-buttons{display:flex;gap:8px;flex-wrap:wrap}
.modal-card #modal-buttons .btn,#card-decline-buttons .btn{flex:1;min-width:120px;margin-top:0}

/* --- Install banner --- */
.install-banner{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);background:#161616;border:1px solid #00d664;border-radius:10px;padding:10px 14px;display:flex;align-items:center;gap:10px;max-width:560px;width:90%;z-index:90;font-size:0.8rem}
.install-banner span{color:#ddd;flex:1}

/* --- Flight suggestions --- */
#flight-suggestions{background:#0e0e0e;border:1px solid #2a2a2a;border-radius:8px;margin-top:-8px;margin-bottom:14px;max-height:200px;overflow-y:auto}
.flight-suggestion{padding:10px 12px;cursor:pointer;border-bottom:1px solid #1a1a1a;font-size:0.85rem}
.flight-suggestion:last-child{border-bottom:none}
.flight-suggestion:hover,.flight-suggestion:active{background:#1a1a1a}
.flight-suggestion .fs-flight{color:#fff;font-weight:600}
.flight-suggestion .fs-route{color:#888;font-size:0.75rem;margin-top:2px}

/* --- Responsive --- */
@media (min-width:601px){
  .bottom-nav{border-left:1px solid #222;border-right:1px solid #222}
}
@media (max-width:360px){
  .bottom-nav button{font-size:0.6rem}
  .bottom-nav button .nav-icon{font-size:1.2rem}
  .fare-estimate .fare-amount{font-size:1.3rem}
}

/* --- Spinner --- */
.spinner{width:24px;height:24px;border:3px solid #333;border-top-color:#00d664;border-radius:50%;animation:spin 0.8s linear infinite;margin:20px auto}
@keyframes spin{to{transform:rotate(360deg)}}

/* --- Toast --- */
.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#161616;border:1px solid #00d664;color:#fff;padding:10px 18px;border-radius:8px;font-size:0.85rem;z-index:500;animation:toastIn 0.25s ease;max-width:90%;text-align:center}
.toast.error{border-color:#f44336}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}

/* --- Loading overlay (initial auth check) --- */
.loading-overlay{position:fixed;inset:0;background:#0e0e0e;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;gap:12px}
.loading-overlay p{color:#666;font-size:0.85rem}

/* --- Install gate (push browser users to install the PWA before auth) --- */
.install-gate{position:fixed;inset:0;background:#0e0e0e;z-index:9998;overflow-y:auto}
.install-gate-inner{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 20px 80px}
.install-logo{font-weight:800;font-size:1.8rem;color:#fff;margin-bottom:24px;letter-spacing:0.5px}
.install-logo span{color:#00d664}
.install-gate-card{background:#161616;border:1px solid #262626;border-radius:14px;padding:28px 24px;max-width:380px;width:100%;text-align:center}
.install-icon-big{font-size:3rem;line-height:1;margin-bottom:10px}
.install-gate-card h1{font-size:1.35rem;color:#fff;margin-bottom:8px}
.install-gate-sub{color:#888;font-size:0.92rem;margin-bottom:18px;line-height:1.4}
.install-step{background:#1f1f1f;border:1px solid #2a2a2a;border-radius:10px;padding:12px 14px;margin:10px 0;text-align:left;display:flex;gap:12px;align-items:flex-start}
.install-step-num{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#00d664;color:#000;font-weight:700;font-size:0.85rem;display:flex;align-items:center;justify-content:center}
.install-step-body{flex:1;font-size:0.88rem;color:#ddd;line-height:1.4}
.install-step-body strong{color:#fff}
.install-step-body .ios-share-hint{display:inline-flex;align-items:center;gap:4px;color:#fff;font-weight:600}
.install-step-body .ios-share-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;background:#0a84ff;color:#fff;border-radius:5px;font-size:0.9rem}
.install-step-body .ios-share-icon svg{width:14px;height:14px;fill:#fff}
.install-gate-hint{color:#666;font-size:0.82rem;margin-top:16px;line-height:1.4}
.install-gate-hint strong{color:#aaa}
.install-gate-skip{margin-top:14px;color:#555!important;font-size:0.78rem;text-decoration:underline;text-align:center;display:block;margin-left:auto;margin-right:auto}
.install-gate-skip:hover{color:#888!important}

/* --- Push notification banners --- */
/* Push banners fixed above bottom nav so they don't push content.
   The .section.active padding-bottom (120px) gives content clearance. */
.push-banner{position:fixed;bottom:62px;left:8px;right:8px;background:#1a3320;border:1px solid #2a5a2a;border-radius:10px;padding:14px;margin:0 auto;max-width:584px;text-align:center;z-index:99;box-shadow:0 -2px 12px rgba(0,0,0,0.4)}
.push-banner span{color:#cfeacf;font-size:0.85rem;display:block;margin-bottom:8px}
.push-banner.ios{background:#332a1a;border-color:#5a4a2a}
.push-banner.ios span{color:#eacfaa}
.push-banner .btn{width:auto;padding:8px 16px;margin-top:4px;font-size:0.85rem}

/* --- In-app push banner (Jul 30 2026) — shown when PWA is in foreground
   and the OS suppresses the system notification. Forwarded from the SW's
   push handler via postMessage. --- */
.push-inapp-banner{position:fixed;top:12px;left:8px;right:8px;max-width:584px;margin:0 auto;background:#1a2332;border:1px solid #2a3a4a;border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:12px;z-index:100;box-shadow:0 4px 16px rgba(0,0,0,0.5);cursor:pointer;transform:translateY(-120%);transition:transform 0.3s ease;opacity:0}
.push-inapp-banner.show{transform:translateY(0);opacity:1}
.push-inapp-icon{font-size:1.6rem;flex-shrink:0}
.push-inapp-content{flex:1;min-width:0}
.push-inapp-title{font-weight:600;color:#f0f0f0;font-size:0.9rem;margin-bottom:2px}
.push-inapp-body{color:#bbdefb;font-size:0.82rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* --- No-show fee blurb --- */
#book-noshow-blurb{font-size:0.75rem;color:#aaa;padding:8px 10px;background:#0e0e0e;border:1px solid #2a2a2a;border-radius:6px;margin-top:6px}
#book-noshow-blurb strong{color:#f0f0f0}
.noshow-fee-text{line-height:1.4}

/* --- Loyalty history --- */
.loyalty-history{margin-top:14px}
.loyalty-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #1a1a1a}
.loyalty-row:last-child{border-bottom:none}
.loy-row-amount{font-weight:600;min-width:60px;font-size:0.9rem}
.loyalty-row.credit .loy-row-amount{color:#00d664}
.loyalty-row.debit .loy-row-amount{color:#f44336}
.loy-row-detail{flex:1}
.loy-row-trip{color:#ddd;font-size:0.82rem;margin-bottom:2px}
.loy-row-date{color:#666;font-size:0.72rem}

/* --- Book status styled box (Pitfall #98) --- */
.book-status.has-data{padding:10px 12px;border-radius:6px;margin-top:8px;font-size:0.85rem;min-height:18px}
.book-status.info{background:#1a2332;color:#bbdefb;border:1px solid #2a3a4a}
.book-status.success{background:#1a3320;color:#cfeacf;border:1px solid #2a5a2a}
.book-status.error{background:#3a1a1a;color:#ffcccc;border:1px solid #5a2a2a}

/* --- Flight status indicator + hint --- */
#flight-status-indicator{font-size:0.8rem;margin-top:4px;padding:4px 0}
.flight-hint{font-size:0.75rem;color:#888;margin-top:4px}

/* --- Booking confirmation banner --- */
.booking-confirmation{background:#1a3320;border:1px solid #2a5a2a;border-radius:10px;padding:14px;margin-top:12px;text-align:center;animation:toastIn 0.3s ease}
.booking-confirmation h3{color:#00d664;margin-bottom:6px}
.booking-confirmation p{color:#cfeacf;font-size:0.85rem}
