/* ════════════════════════════════════════════
   Gentle Journey Driver App  —  styles.css
   Simple, bold, thumb-friendly dark design
════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

:root {
  --green:      hsl(152, 55%, 40%);
  --green-d:    hsl(152, 55%, 30%);
  --green-glow: hsla(152, 55%, 40%, 0.22);
  --gold:       hsl(43, 92%, 52%);
  --red:        hsl(3, 72%, 55%);
  --blue:       hsl(217, 70%, 52%);

  --bg:         hsl(220, 18%, 9%);
  --card:       hsl(220, 15%, 13%);
  --card2:      hsl(220, 13%, 17%);
  --raised:     hsl(220, 12%, 21%);
  --border:     hsla(220, 20%, 100%, 0.07);

  --txt:        hsl(220, 15%, 92%);
  --txt2:       hsl(220, 10%, 60%);
  --txt3:       hsl(220, 8%,  40%);
  --muted:      hsl(220, 8%,  45%);  /* Fix: was used throughout but never defined */

  --nav-h:  68px;
  --top-h:  60px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; }
body {
  font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: hsl(210, 20%, 93%);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* ── Phone Simulator Frame ───────────────── */
.phone-simulator {
  width: 480px;
  height: 900px;
  border-radius: 40px;
  border: 12px solid #1a2130;
  background: var(--bg);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.07),
    0 30px 80px rgba(0,0,0,.45),
    0 10px 30px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: #1a2130;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1000;
}

.phone-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* On real phones/small screens — fill the viewport */
@media (max-width: 520px) {
  body { padding: 0; background: var(--bg); align-items: stretch; }
  .phone-simulator {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .phone-notch { display: none; }
}

/* ── Screens ─────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.hidden { display: none !important; }
.screen.active { display: block; }

/* ── SPLASH ──────────────────────────────── */
#screen-splash {
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.splash-center {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.splash-logo  { font-size: 3.5rem; }
.splash-brand { font-size: 1.6rem; font-weight: 900; color: var(--txt); }
.splash-tag   { font-size: 0.85rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; }
.splash-ring  {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-top: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOGIN PAGE ──────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 0 24px 40px;
  max-width: 420px;
  margin: 0 auto;
}
.login-top {
  text-align: center;
  padding: 48px 0 28px;
}
.login-logo  { font-size: 2.8rem; }
.login-title { font-size: 1.5rem; font-weight: 900; color: var(--txt); margin-top: 8px; }
.login-sub   { font-size: 0.82rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.login-stage { display: flex; flex-direction: column; gap: 0; }
.login-stage.hidden { display: none !important; }

.stage-label {
  font-size: 0.78rem; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; margin-bottom: 14px;
}

/* Driver cards */
.driver-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.driver-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.driver-card:active { transform: scale(0.97); border-color: var(--green); }
.dc-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.dc-info { flex: 1; }
.dc-name { font-size: 0.95rem; font-weight: 800; color: var(--txt); }
.dc-sub  { font-size: 0.75rem; color: var(--txt2); margin-top: 2px; }
.dc-arr  { color: var(--txt3); }
.dc-pill {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 0.04em;
}
.p-approved { background: hsla(152,55%,40%,0.18); color: var(--green); }
.p-pending  { background: hsla(43,92%,52%,0.18);  color: var(--gold);  }
.p-rejected { background: hsla(3,72%,55%,0.18);   color: var(--red);   }

.btn-ghost {
  background: none; border: 1.5px dashed var(--border);
  border-radius: var(--r-md); color: var(--txt2);
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  padding: 13px; cursor: pointer; width: 100%;
  text-align: center; transition: border-color 0.15s, color 0.15s;
  margin-top: 4px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-ghost.small { font-size: 0.78rem; padding: 10px; margin-top: 8px; border: none; }

/* PIN */
.pin-who {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px;
}
.pin-who-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.pin-who-name { font-size: 0.95rem; font-weight: 800; }

.pin-dots {
  display: flex; justify-content: center; gap: 14px; margin-bottom: 20px;
}
.pd {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--txt3);
  transition: all 0.15s;
}
.pd.on  { background: var(--green); border-color: var(--green); transform: scale(1.1); }
.pd.err { background: var(--red);   border-color: var(--red);   animation: shake 0.3s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.pin-pad {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 14px;
}
.pk {
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--card); color: var(--txt);
  font-family: inherit; font-size: 1.5rem; font-weight: 700;
  min-height: 62px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.1s; user-select: none;
}
.pk:active { background: var(--green); border-color: var(--green); transform: scale(0.93); }
.pk-alt { font-size: 0.8rem; font-weight: 700; color: var(--txt2); background: var(--card2); }

.pin-error {
  background: hsla(3,72%,55%,0.12); color: hsl(3,72%,65%);
  border: 1px solid hsla(3,72%,55%,0.25);
  border-radius: 10px; padding: 10px 14px;
  text-align: center; font-size: 0.83rem; font-weight: 600;
  margin-bottom: 12px;
}

/* Register form */
.reg-heading { font-size: 1.25rem; font-weight: 900; margin-bottom: 6px; }
.reg-note    { font-size: 0.8rem; color: var(--txt2); line-height: 1.5; margin-bottom: 20px; }
.reg-pin-label {
  font-size: 0.78rem; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; margin: 16px 0 10px;
}
.reg-error {
  background: hsla(3,72%,55%,0.12); color: hsl(3,72%,65%);
  border: 1px solid hsla(3,72%,55%,0.25);
  border-radius: 10px; padding: 10px 14px;
  text-align: center; font-size: 0.83rem; font-weight: 600; margin: 8px 0;
}

.field { margin-bottom: 12px; }
.field label, .field-label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.field input, .field textarea, .select-input {
  width: 100%; background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  color: var(--txt); font-family: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 12px 14px; outline: none; appearance: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .select-input:focus { border-color: var(--green); }
.field textarea { resize: vertical; min-height: 80px; }
.select-input { margin-bottom: 12px; }

.btn-primary {
  display: block; width: 100%; padding: 15px;
  background: var(--green); border: none; border-radius: var(--r-md);
  color: white; font-family: inherit; font-size: 1rem; font-weight: 800;
  cursor: pointer; margin-top: 10px; margin-bottom: 10px;
  transition: all 0.15s;
}
.btn-primary:active { transform: scale(0.97); background: var(--green-d); }

/* ── Global button active/disabled states ── */
button { cursor: pointer; transition: transform 0.1s, opacity 0.1s; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.96); opacity: 0.85; }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-danger {
  display: block; width: 100%; padding: 14px;
  background: hsla(3,72%,55%,0.1); border: 1.5px solid hsla(3,72%,55%,0.25);
  border-radius: var(--r-md); color: var(--red);
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; margin-bottom: 40px;
}

/* ── PENDING ─────────────────────────────── */
.pending-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px;
  max-width: 400px; margin: 0 auto;
}
.pending-icon { font-size: 3.5rem; margin-bottom: 16px; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.pending-page h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.pending-page p  { font-size: 0.85rem; color: var(--txt2); line-height: 1.6; margin-bottom: 20px; }
.pending-card {
  width: 100%; background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.pc-row { display: flex; gap: 10px; font-size: 0.88rem; font-weight: 600; text-align: left; }
.pending-checking {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--txt3); margin-bottom: 20px;
}
.mini-spin {
  width: 14px; height: 14px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}

/* ── APP SHELL ───────────────────────────── */
#screen-app { overflow: hidden; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0;
  height: var(--top-h);
  background: hsla(220, 18%, 12%, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 10;
  flex-shrink: 0;
}
.tb-left { display: flex; align-items: center; gap: 10px; }
.tb-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-d));
  border: 2px solid var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; flex-shrink: 0;
  overflow: hidden;
}
.tb-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tb-hi   { font-size: 0.68rem; color: var(--txt3); font-weight: 600; }
.tb-name { font-size: 0.9rem; font-weight: 800; line-height: 1.2; color: #ffffff; }
.tb-status {
  font-size: 0.75rem; font-weight: 800;
  background: hsla(152,55%,40%,0.18); color: var(--green);
  border: 1px solid hsla(152,55%,40%,0.3);
  padding: 6px 12px; border-radius: 20px;
  letter-spacing: 0.02em;
}

/* Departure banner */
.depart-banner {
  position: sticky; top: 0;
  background: linear-gradient(135deg, hsl(28,85%,20%), hsl(20,75%,16%));
  border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; z-index: 9;
  animation: depart-pulse 1.5s ease infinite;
  flex-shrink: 0;
}
.depart-banner.hidden { display: none !important; }
@keyframes depart-pulse { 0%,100% { border-bottom-color: var(--gold); } 50% { border-bottom-color: hsl(43,92%,72%); } }
.depart-icon { font-size: 1.5rem; }
.depart-text { flex: 1; }
.depart-text strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--gold); }
.depart-text span   { font-size: 0.75rem; color: hsl(43,40%,75%); }
.depart-close {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; color: white; width: 28px; height: 28px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Tab panels */
.tabs-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.tab-panel {
  position: absolute; inset: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: none;
}
.tab-panel.active { display: block; }

/* Home tab extra top for departure banner */
#tab-home { padding: 16px 16px 8px; }

.tab-inner { padding: 16px 16px 24px; }
.tab-title {
  font-size: 1.3rem; font-weight: 900;
  color: var(--txt); margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* ── NEXT JOB CARD (Elevated Glass Design) ───────────────────────── */
.next-job-card {
  background: linear-gradient(135deg, hsl(220, 28%, 15%), hsl(222, 35%, 10%));
  border: 1.5px solid hsla(152, 55%, 42%, 0.4);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 18px;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.next-job-card:active { transform: scale(0.985); }
.next-job-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3.5px; background: linear-gradient(90deg, var(--green), hsl(217, 85%, 55%), var(--gold));
}
.njc-label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: hsl(220, 60%, 75%); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.njc-countdown {
  background: hsla(152, 55%, 40%, 0.22); color: hsl(152, 65%, 70%);
  border: 1px solid hsla(152, 55%, 40%, 0.35);
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 800;
}
.njc-client { font-size: 1.35rem; font-weight: 900; color: #ffffff; margin-bottom: 4px; letter-spacing: -0.01em; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.njc-time   { font-size: 0.9rem; font-weight: 800; color: var(--green); margin-bottom: 12px; }
.njc-route  {
  background: hsla(220, 20%, 20%, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px 14px; margin-bottom: 14px;
  font-size: 0.84rem; color: hsl(220, 20%, 82%); line-height: 1.6;
  backdrop-filter: blur(8px);
}
.njc-from { display: flex; gap: 8px; align-items: flex-start; }
.njc-to   { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding-top: 8px; border-top: 1px solid hsla(255,255,255,0.08); }
.njc-care {
  font-size: 0.72rem; font-weight: 700; color: hsl(220,40%,75%);
  background: hsla(0,0%,100%,0.08); border-radius: 8px;
  padding: 4px 10px; display: inline-block; margin-bottom: 14px;
}
.njc-btns { display: flex; gap: 10px; margin-bottom: 4px; }
.btn-navigate {
  flex: 1; padding: 14px;
  background: linear-gradient(135deg, hsl(217, 75%, 52%), hsl(220, 70%, 42%)); border: none; border-radius: var(--r-md);
  color: white; font-family: inherit; font-size: 0.9rem; font-weight: 800;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-navigate:active { transform: scale(0.96); }
.btn-start {
  flex: 1; padding: 14px;
  background: linear-gradient(135deg, hsl(142, 60%, 40%), hsl(162, 55%, 32%)); border: none; border-radius: var(--r-md);
  color: white; font-family: inherit; font-size: 0.9rem; font-weight: 800;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-start:active { transform: scale(0.96); }
.btn-complete {
  flex: 1; padding: 14px;
  background: linear-gradient(135deg, hsl(43, 92%, 52%), hsl(38, 90%, 42%)); border: none; border-radius: var(--r-md);
  color: hsl(43, 95%, 10%); font-family: inherit; font-size: 0.9rem; font-weight: 900;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

/* No job card */
.no-job-card {
  background: hsl(220, 16%, 13%); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl); padding: 32px 20px; text-align: center;
  margin-bottom: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.njc-empty-icon { font-size: 2.8rem; margin-bottom: 12px; }
.njc-empty-title { font-size: 1.05rem; font-weight: 800; color: var(--txt); margin-bottom: 6px; }
.njc-empty-sub   { font-size: 0.82rem; color: var(--txt2); line-height: 1.5; }

/* ── QUICK STATS ─────────────────────────── */
.qs-row { display: flex; gap: 10px; margin-bottom: 20px; }
.qs-tile {
  flex: 1; background: hsl(220, 16%, 13%); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.qs-tile.accent {
  background: linear-gradient(135deg, hsla(152, 55%, 40%, 0.18), hsla(162, 50%, 30%, 0.12));
  border: 1px solid hsla(152, 55%, 40%, 0.35);
}
.qs-num { font-size: 1.25rem; font-weight: 900; color: #ffffff; letter-spacing: -0.01em; }
.qs-lbl { font-size: 0.65rem; font-weight: 800; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── SECTION HEAD ────────────────────────── */
.section-head {
  font-size: 0.75rem; font-weight: 800; color: var(--txt3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ── JOB LIST / CARDS (Elevated Design) ────────────────────── */
.job-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  background: hsl(220, 16%, 13%); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px; overflow: hidden;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border-left: 4.5px solid #16a34a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.job-card:active { transform: scale(0.975); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.job-card.j-now    { border-color: var(--green); border-left-color: var(--green); box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25); }
.job-card.j-soon   { border-color: hsla(217, 70%, 52%, 0.4); }
.job-card.j-done   { opacity: 0.75; }
.job-card.j-cancel { opacity: 0.55; }
.job-card.urgent { border-left-color: #dc2626; }
.job-card.soon   { border-left-color: #d97706; }

/* Urgency dot */
.urgency-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Care level badges */
.care-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.care-badge.ride      { background: #dbeafe; color: #1d4ed8; }
.care-badge.companion { background: #fef3c7; color: #92400e; }
.care-badge.support   { background: #ede9fe; color: #5b21b6; }

.jc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.jc-time   { font-size: 0.85rem; font-weight: 800; color: var(--green); }
.jc-status {
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 4px 10px; border-radius: 20px;
}
.s-confirmed  { background: hsla(217,70%,52%,0.2); color: hsl(217,80%,75%); border: 1px solid hsla(217,70%,52%,0.3); }
.s-en-route   { background: hsla(43,92%,52%,0.2);  color: var(--gold); border: 1px solid hsla(43,92%,52%,0.3); }
.s-in-transit { background: hsla(280,55%,50%,0.2); color: hsl(280,65%,75%); border: 1px solid hsla(280,55%,50%,0.3); }
.s-completed  { background: hsla(152,55%,40%,0.2); color: var(--green); border: 1px solid hsla(152,55%,40%,0.3); }
.s-cancelled  { background: hsla(3,72%,55%,0.2);   color: var(--red); border: 1px solid hsla(3,72%,55%,0.3); }
.s-pending    { background: hsla(43,92%,52%,0.2);  color: var(--gold); border: 1px solid hsla(43,92%,52%,0.3); }
.s-support    { background: hsla(270,50%,50%,0.2); color: hsl(270,60%,75%); border: 1px solid hsla(270,50%,50%,0.3); }
.s-upcoming   { background: hsla(217,70%,52%,0.2); color: hsl(217,80%,75%); border: 1px solid hsla(217,70%,52%,0.3); }

.jc-body { padding: 8px 16px 14px; }
.jc-client  { font-size: 1rem; font-weight: 800; color: #ffffff; margin-bottom: 6px; letter-spacing: -0.01em; }
.jc-address { font-size: 0.8rem; color: var(--txt2); line-height: 1.5; }
.jc-meta    { font-size: 0.75rem; color: var(--txt3); margin-top: 8px; display: flex; gap: 14px; align-items: center; }
.jc-pay     { font-weight: 800; color: var(--green); font-size: 0.84rem; }
.jc-hours   { font-size: 0.75rem; color: var(--txt3); }
.njc-pay-row { font-size: 0.86rem; font-weight: 800; color: var(--green); margin-bottom: 12px; }

/* Empty state action buttons */
.empty-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.btn-secondary {
  flex: 1; padding: 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--raised); color: var(--txt2);
  font-family: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--card); }

/* ── SEGMENTS (Sleek Pill Controller) ────────────────────────────── */
.seg-ctrl {
  display: flex; gap: 4px; background: hsl(220, 15%, 11%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px; padding: 5px;
  margin-bottom: 16px;
}
.seg {
  flex: 1; padding: 9px 4px; border: none; border-radius: 10px;
  background: transparent; color: var(--txt3);
  font-family: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer;
  transition: all 0.15s ease;
}
.seg.active {
  background: linear-gradient(135deg, hsl(142, 55%, 38%), hsl(162, 50%, 32%));
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

/* ── NAVIGATE ────────────────────────────── */
.loc-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 12px;
}
.loc-icon { font-size: 1.3rem; }
.loc-info { flex: 1; }
.loc-label { font-size: 0.68rem; font-weight: 700; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.loc-val   { font-size: 0.85rem; font-weight: 600; color: var(--txt); }
.loc-refresh {
  background: var(--raised); border: 1px solid var(--border);
  border-radius: 8px; color: var(--txt2); font-size: 1.1rem;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.map-wrap {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  min-height: 200px; background: var(--card); margin-bottom: 12px;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--txt3); font-size: 0.82rem; font-weight: 600;
}
.map-placeholder span:first-child { font-size: 2rem; }

.route-info {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px;
}
.route-info.hidden { display: none !important; }
.ri-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.ri-row span   { color: var(--txt2); font-weight: 600; }
.ri-row strong { color: var(--txt); font-weight: 800; }

.map-btns { display: flex; flex-direction: column; gap: 10px; }
.map-btns.hidden { display: none !important; }
.btn-map {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border: none; border-radius: var(--r-md);
  font-family: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.btn-map:active { transform: scale(0.97); }
.btn-map.google { background: hsl(220,65%,50%); color: white; }
.btn-map.apple  { background: hsl(0,0%,22%); color: white; }
.btn-map.waze   { background: hsl(44,90%,44%); color: white; }

/* Mapbox GL Overrides */
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { display: none !important; }
.mapboxgl-map { background: var(--card); }
#screen-navigate.active { display: flex !important; }
#nav-map { flex: 1; width: 100%; min-height: 0; }

.driver-nav-chevron {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ── EARNINGS ────────────────────────────── */
.earn-hero {
  background: linear-gradient(135deg, hsl(43,80%,28%), hsl(30,70%,22%));
  border-radius: var(--r-xl); padding: 24px; text-align: center; margin-bottom: 14px;
}
.earn-hero-label { font-size: 0.72rem; font-weight: 700; color: hsla(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.earn-hero-num   { font-size: 2.4rem; font-weight: 900; color: white; }

.earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.earn-box {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.eb-icon { font-size: 1.3rem; }
.eb-val  { font-size: 1.1rem; font-weight: 900; color: var(--txt); }
.eb-lbl  { font-size: 0.7rem; font-weight: 700; color: var(--txt3); }

.earn-trip-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 8px;
}
.et-info {}
.et-client { font-size: 0.88rem; font-weight: 700; color: var(--txt); }
.et-date   { font-size: 0.72rem; color: var(--txt3); margin-top: 2px; }
.et-amount { font-size: 1rem; font-weight: 900; color: var(--green); }
.et-pay    { text-align: right; flex-shrink: 0; }
.et-hrs    { font-size: 0.72rem; color: var(--txt3); margin-top: 2px; }
.et-mins   { font-size: 0.72rem; color: var(--txt3); margin-top: 2px; }

/* ── PROFILE ─────────────────────────────── */
.prof-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 20px; }
.prof-av {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; border: 3px solid var(--green);
  overflow: hidden;
}
.prof-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prof-status {
  font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 20px;
  background: hsla(152,55%,40%,0.18); color: var(--green);
}

/* Availability */
.avail-section {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 16px;
}
.avail-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; font-weight: 800; color: var(--txt2);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}
.avail-save-note { font-size: 0.7rem; color: var(--green); font-weight: 700; }
.avail-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.avail-day-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border: 1.5px solid var(--border);
  border-radius: 10px; background: var(--card2); cursor: pointer;
  transition: all 0.15s; min-height: 56px; justify-content: center;
}
.avail-day-btn.on  { border-color: var(--green); background: hsla(152,55%,40%,0.18); }
.avail-day-btn.has-job { border-color: hsl(220,65%,45%); background: hsla(220,65%,45%,0.15); }
.ad-name { font-size: 0.58rem; font-weight: 700; color: var(--txt3); text-transform: uppercase; }
.ad-num  { font-size: 0.9rem; font-weight: 800; color: var(--txt); }
.ad-dot  { width: 5px; height: 5px; border-radius: 50%; }
.avail-day-btn.on .ad-dot    { background: var(--green); }
.avail-day-btn.has-job .ad-dot { background: hsl(220,65%,55%); }

/* Change PIN section */
.change-pin-section {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 16px; margin: 16px 0 0;
}
.cp-head {
  font-size: 0.78rem; font-weight: 800; color: var(--txt2);
  text-transform: uppercase; letter-spacing: 0.05em;
  text-align: center; margin-bottom: 14px;
}
.cp-hint { font-size: 0.72rem; color: var(--txt3); text-align: center; margin-top: 8px; }

/* ── BOTTOM NAV ──────────────────────────── */
.bottom-nav {
  position: sticky; bottom: 0;
  height: var(--nav-h); background: var(--card);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px; padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 10;
  flex-shrink: 0;
  margin-top: auto;
}
.bn-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; background: none; border: none; padding: 8px 4px;
  cursor: pointer; position: relative; transition: all 0.15s;
}
.bn-icon { font-size: 1.25rem; line-height: 1; transition: transform 0.15s; }
.bn-lbl  { font-size: 0.6rem; font-weight: 700; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.15s; }
.bn-btn.active .bn-lbl  { color: var(--green); }
.bn-btn.active .bn-icon { transform: translateY(-2px); }

.bn-badge {
  position: absolute; top: 4px; right: calc(50% - 14px);
  background: var(--red); color: white;
  font-size: 0.58rem; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.bn-badge.hidden { display: none !important; }

.bn-center { margin-top: -10px; }
.bn-center-pill {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(220,65%,48%), hsl(250,60%,40%));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px hsla(220,65%,48%,0.4);
}

/* ── JOB SHEET (bottom drawer) ───────────── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: hsla(220,18%,5%,0.82);
  backdrop-filter: blur(4px);
  z-index: 100; display: flex; align-items: flex-end;
}
.sheet-overlay.hidden { display: none !important; }
.sheet {
  width: 100%; background: var(--card);
  border-radius: 24px 24px 0 0; padding: 0 20px 40px;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle {
  width: 38px; height: 4px; background: var(--txt3);
  border-radius: 2px; margin: 14px auto 16px;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.sheet-head h3 { font-size: 1.05rem; font-weight: 800; }
.sheet-close {
  width: 30px; height: 30px; background: var(--raised);
  border: none; border-radius: 8px; color: var(--txt2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.sheet-body { display: flex; flex-direction: column; gap: 0; }

/* Sheet rows */
.sr {
  display: flex; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid hsla(220,20%,100%,0.04);
  font-size: 0.88rem; align-items: flex-start;
}
.sr-label { font-weight: 700; color: var(--txt3); min-width: 90px; flex-shrink: 0; }
.sr-val   { color: var(--txt); font-weight: 500; flex: 1; }
.sheet-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sheet-btns .btn-primary, .sheet-btns .btn-navigate { margin: 0; }

/* Status change buttons in sheet */
.status-bar {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.btn-status {
  flex: 1; padding: 12px 8px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--raised); color: var(--txt2);
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s; min-width: 90px;
}
.btn-status:active { transform: scale(0.96); }
.btn-status.s-en-route   { background: hsla(43,92%,52%,0.15);  border-color: hsla(43,92%,52%,0.4);  color: var(--gold); }
.btn-status.s-in-transit { background: hsla(220,65%,50%,0.15); border-color: hsla(220,65%,50%,0.4); color: hsl(220,65%,70%); }
.btn-status.s-completed  { background: hsla(152,55%,40%,0.15); border-color: hsla(152,55%,40%,0.4); color: var(--green); }
.btn-status.s-cancelled  { background: hsla(3,72%,55%,0.12);   border-color: hsla(3,72%,55%,0.3);   color: var(--red); }

/* ── TOASTS ──────────────────────────────── */
.toasts {
  position: fixed; bottom: calc(var(--nav-h) + 10px);
  left: 12px; right: 12px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--raised); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--txt);
  box-shadow: 0 4px 20px hsla(0,0%,0%,0.5);
  animation: toastIn 0.25s var(--ease);
  pointer-events: auto;
}
.toast.ok  { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.inf { border-left: 3px solid var(--blue); }
@keyframes toastIn { from { transform: translateY(16px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* ── EMPTY STATE ─────────────────────────── */
.empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 20px; gap: 8px; color: var(--txt3); text-align: center;
}
.empty-icon  { font-size: 2.2rem; }
.empty-title { font-size: 0.9rem; font-weight: 800; color: var(--txt2); }
.empty-sub   { font-size: 0.78rem; line-height: 1.5; }

/* ══════════════════════════════════════════════
   TERMS & CONDITIONS — REGISTRATION CARD WIDGET
══════════════════════════════════════════════ */
.tc-agree-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--card2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  margin: 6px 0 4px; transition: border-color 0.3s, background 0.3s;
}
.tc-agree-wrap.tc-wrap-done {
  border-color: hsla(152, 55%, 40%, 0.5);
  background: hsla(152, 55%, 40%, 0.07);
}
.tc-agree-icon { font-size: 1.6rem; flex-shrink: 0; }
.tc-agree-info { flex: 1; min-width: 0; }
.tc-agree-title { font-size: 0.88rem; font-weight: 700; color: var(--txt); }
.tc-agree-sub   { font-size: 0.73rem; color: var(--txt3); margin-top: 2px; }

.tc-read-btn {
  flex-shrink: 0;
  background: var(--green); color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 9px 14px; font-size: 0.8rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px hsla(152, 55%, 40%, 0.35);
}
.tc-read-btn:hover  { background: var(--green-d); }
.tc-read-btn:active { transform: scale(0.95); }
.tc-read-btn.tc-agreed-btn {
  background: hsla(152, 55%, 40%, 0.2);
  color: var(--green); box-shadow: none; cursor: default;
}

/* Pulse animation when T&Cs not accepted and submit is hit */
@keyframes tcPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 2px 12px hsla(152,55%,40%,0.35); }
  30%       { transform: scale(1.06); box-shadow: 0 4px 20px hsla(152,55%,40%,0.7); }
  60%       { transform: scale(0.97); }
}
.tc-read-btn.tc-pulse { animation: tcPulse 0.6s ease 2; }

.tc-agreed-banner {
  background: hsla(152, 55%, 40%, 0.12);
  border: 1px solid hsla(152, 55%, 40%, 0.3);
  border-radius: var(--r-sm); padding: 9px 14px;
  font-size: 0.8rem; font-weight: 700; color: var(--green);
  text-align: center; margin-bottom: 2px;
}

/* ══════════════════════════════════════════════
   TERMS & CONDITIONS MODAL
══════════════════════════════════════════════ */
.tc-modal {
  position: fixed; inset: 0; z-index: 500;
  background: hsla(220, 18%, 5%, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  animation: tcModalIn 0.25s var(--ease);
}
.tc-modal.hidden { display: none; }
@keyframes tcModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tc-modal-inner {
  width: 100%; max-height: 96vh;
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex; flex-direction: column;
  animation: tcSheetUp 0.3s var(--ease);
  overflow: hidden;
}
@keyframes tcSheetUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tc-modal-title { font-size: 1rem; font-weight: 800; color: var(--txt); }
.tc-modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--raised); border: none; color: var(--txt2);
  font-size: 0.9rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.tc-modal-close:hover { background: var(--card2); }

/* Sticky agree bar — always visible below header */
.tc-sticky-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px;
  background: hsla(152, 55%, 40%, 0.1);
  border-bottom: 1px solid hsla(152, 55%, 40%, 0.25);
  flex-shrink: 0;
}
.tc-sticky-hint { font-size: 0.72rem; color: var(--txt3); flex: 1; }
.tc-sticky-agree {
  background: var(--green); color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 9px 16px; font-size: 0.8rem; font-weight: 800;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 12px hsla(152, 55%, 40%, 0.4);
  transition: background 0.2s, transform 0.15s;
}
.tc-sticky-agree:active { transform: scale(0.96); }

/* Scrollable content body */
.tc-modal-body {
  flex: 1; overflow-y: auto; padding: 20px 20px 8px;
  -webkit-overflow-scrolling: touch;
}

/* Bottom action buttons */
.tc-modal-actions {
  padding: 14px 20px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.tc-big-agree {
  font-size: 1rem !important;
  padding: 16px !important;
  box-shadow: 0 4px 20px hsla(152, 55%, 40%, 0.45) !important;
}

/* Meta line */
.tc-meta {
  font-size: 0.72rem; color: var(--txt3); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* Individual T&C sections */
.tc-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tc-section:last-of-type { border-bottom: none; }

.tc-section h3 {
  font-size: 0.92rem; font-weight: 800; color: var(--txt);
  margin-bottom: 10px;
}
.tc-section h4 {
  font-size: 0.82rem; font-weight: 700; color: hsl(152, 55%, 65%);
  margin: 14px 0 6px;
}
.tc-section p { font-size: 0.8rem; color: var(--txt2); line-height: 1.6; margin-bottom: 8px; }
.tc-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.tc-section li { font-size: 0.79rem; color: var(--txt2); line-height: 1.5; }
.tc-section strong { color: var(--txt); }
.tc-section em { color: var(--txt3); font-style: italic; }

/* Callout boxes */
.tc-callout {
  border-radius: var(--r-sm); padding: 12px 14px;
  margin: 10px 0; border-left: 3px solid;
}
.tc-own-vehicle {
  background: hsla(217, 70%, 52%, 0.08);
  border-color: hsla(217, 70%, 52%, 0.4);
}
.tc-own-vehicle .tc-callout-head { color: hsl(217, 70%, 72%); }
.tc-franchise {
  background: hsla(43, 92%, 52%, 0.08);
  border-color: hsla(43, 92%, 52%, 0.4);
}
.tc-franchise .tc-callout-head { color: var(--gold); }
.tc-required {
  background: hsla(3, 72%, 55%, 0.08);
  border-color: hsla(3, 72%, 55%, 0.4);
}
.tc-required .tc-callout-head { color: hsl(3, 72%, 75%); }

.tc-callout-head {
  font-size: 0.8rem; font-weight: 800;
  margin-bottom: 8px;
}
.tc-callout ul { padding-left: 16px; }
.tc-callout p  { font-size: 0.78rem; margin-bottom: 0; }

/* Tip note */
.tc-note {
  font-size: 0.78rem; color: var(--txt3);
  background: var(--raised); border-radius: var(--r-sm);
  padding: 10px 12px; margin: 10px 0;
}

/* Academy section highlight */
.tc-academy {
  background: hsla(152, 55%, 40%, 0.05);
  border: 1px solid hsla(152, 55%, 40%, 0.2);
  border-radius: var(--r-md); padding: 16px;
  margin-bottom: 20px;
}
.tc-academy-badge {
  display: inline-block;
  background: hsla(152, 55%, 40%, 0.15);
  border: 1px solid hsla(152, 55%, 40%, 0.35);
  color: var(--green); border-radius: 20px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 800;
  margin-bottom: 8px;
}

/* Footer */
.tc-footer {
  font-size: 0.72rem; color: var(--txt3);
  text-align: center; padding: 12px 0 4px;
  border-top: 1px solid var(--border); margin-top: 8px;
}

/* ══════════════════════════════════════════════
   JOBS TAB HEADER + LOG TRIP BUTTON
══════════════════════════════════════════════ */
.jobs-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.btn-log-trip {
  background: var(--raised); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 12px;
  font-size: 0.78rem; font-weight: 700; color: var(--green);
  font-family: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-log-trip:hover { background: var(--card2); border-color: var(--green); }

/* Wider seg-ctrl for 4 tabs */
.seg-ctrl-wide { gap: 4px; }
.seg-ctrl-wide .seg { font-size: 0.73rem; padding: 7px 8px; }

/* ══════════════════════════════════════════════
   JOB OFFER BANNER
══════════════════════════════════════════════ */
.offer-card {
  background: hsla(43, 92%, 52%, 0.08);
  border: 1.5px solid hsla(43, 92%, 52%, 0.35);
  border-radius: var(--r-md); padding: 14px 16px;
  margin-bottom: 12px;
  animation: offerPulse 2s ease-in-out infinite;
}
@keyframes offerPulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(43,92%,52%,0); }
  50%       { box-shadow: 0 0 0 6px hsla(43,92%,52%,0.1); }
}
.offer-badge {
  font-size: 0.72rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.offer-client {
  font-size: 1rem; font-weight: 800; color: var(--txt);
  margin-bottom: 2px;
}
.offer-time { font-size: 0.8rem; color: var(--txt3); margin-bottom: 8px; }
.offer-route {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.79rem; color: var(--txt2); margin-bottom: 8px;
}
.offer-arrow { color: var(--txt3); }
.offer-pay {
  font-size: 0.8rem; font-weight: 700; color: var(--green);
  margin-bottom: 10px;
}
.offer-btns { display: flex; gap: 10px; }
.btn-accept {
  flex: 1; padding: 11px; border: none; border-radius: var(--r-sm);
  background: var(--green); color: #fff;
  font-family: inherit; font-size: 0.85rem; font-weight: 800;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-accept:active { transform: scale(0.96); }
.btn-decline {
  flex: 1; padding: 11px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--raised); color: var(--txt2);
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn-decline:hover { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════════════════════
   AVAILABLE JOBS CARDS
══════════════════════════════════════════════ */
.avail-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s, transform 0.15s;
}
.avail-card:hover { border-color: var(--green); transform: translateY(-1px); }
.avail-time { font-size: 0.72rem; color: var(--txt3); font-weight: 600; margin-bottom: 4px; }
.avail-client { font-size: 0.95rem; font-weight: 800; color: var(--txt); margin-bottom: 8px; }
.avail-route { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.avail-leg {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--txt2);
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.avail-dot.from { background: var(--green); }
.avail-dot.to   { background: var(--blue); }
.avail-care {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--raised); border-radius: 20px;
  padding: 3px 10px; color: var(--txt3); margin-bottom: 6px;
}
.avail-pay { font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.btn-take {
  width: 100%; padding: 11px; border: 1.5px solid var(--green);
  border-radius: var(--r-sm); background: hsla(152,55%,40%,0.1);
  color: var(--green); font-family: inherit; font-size: 0.85rem;
  font-weight: 800; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-take:hover  { background: var(--green); color: #fff; }
.btn-take:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════
   LOG TRIP MODAL
══════════════════════════════════════════════ */
.lt-modal {
  position: fixed; inset: 0; z-index: 500;
  background: hsla(220, 18%, 5%, 0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  animation: tcModalIn 0.25s var(--ease);
}
.lt-modal.hidden { display: none; }

.lt-modal-inner {
  width: 100%; max-height: 94vh;
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex; flex-direction: column;
  animation: tcSheetUp 0.3s var(--ease); overflow: hidden;
}
.lt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lt-modal-title { font-size: 1rem; font-weight: 800; color: var(--txt); }
.lt-modal-body  { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }

.lt-note {
  font-size: 0.78rem; color: var(--txt3);
  background: var(--raised); border-radius: var(--r-sm);
  padding: 10px 12px; margin-bottom: 16px;
}
.lt-row { display: flex; gap: 10px; }
.lt-row .field { flex: 1; }

.lt-pay-preview {
  background: hsla(152, 55%, 40%, 0.08);
  border: 1px solid hsla(152, 55%, 40%, 0.25);
  border-radius: var(--r-sm); padding: 12px 14px;
  margin: 8px 0 14px;
}
.lt-pay-preview:empty { display: none; }
.lt-pay-row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; font-weight: 700; color: var(--green);
}
.lt-pay-sub { font-size: 0.72rem; color: var(--txt3); margin-top: 3px; }

/* ── Pay calc inside log/book modals ──────── */
.lt-pay-calc {
  background: hsla(152, 55%, 40%, 0.12);
  border: 1px solid hsla(152, 55%, 40%, 0.3);
  border-radius: var(--r-sm);
  color: var(--green);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 8px 0 4px;
}
.lt-pay-calc strong { font-weight: 900; }

/* ── Jobs header button group ─────────────── */
.jobs-header-btns { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── Book Job button ──────────────────────── */
.btn-book-job {
  background: hsl(217, 70%, 40%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.btn-book-job:hover { background: hsl(217, 70%, 50%); }

/* ── Driver status toggle pill ────────────── */
#tb-status { cursor: pointer; user-select: none; }
#tb-status:active { opacity: 0.75; }

/* ── Admin message toast ──────────────────── */
.admin-msg-toast {
  position: fixed;
  top: 72px; left: 12px; right: 12px;
  background: hsl(217, 60%, 22%);
  border: 1px solid hsl(217, 70%, 42%);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--r-md);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: slideDown 0.3s var(--ease);
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.amt-icon { font-size: 1.5rem; flex-shrink: 0; }
.amt-body { flex: 1; font-size: 0.88rem; }
.amt-body strong { font-weight: 800; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.amt-text { color: hsl(220, 10%, 80%); line-height: 1.4; }
.amt-close {
  background: none; border: none; color: hsl(220,10%,60%);
  font-size: 1rem; cursor: pointer; padding: 2px 4px; flex-shrink: 0;
}
.amt-close:hover { color: #fff; }

/* ── select-input inside modals ───────────── */
.lt-modal-body .select-input {
  width: 100%;
  background: var(--card2);
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ── Avg trip earnings box ────────────────── */
#e-avg-trip { color: var(--gold); }

/* ── Topbar logout button ─────────────────── */
.tb-logout {
  background: none;
  border: 1.5px solid hsla(0, 70%, 60%, 0.4);
  border-radius: 8px;
  color: hsl(0, 70%, 65%);
  font-size: 1rem;
  line-height: 1;
  padding: 5px 9px;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.tb-logout:hover, .tb-logout:active {
  background: hsla(0, 70%, 50%, 0.18);
  border-color: hsl(0, 70%, 60%);
}

/* ── Profile Sign Out button ──────────────── */
.btn-signout {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: hsla(0, 70%, 50%, 0.12);
  border: 1.5px solid hsla(0, 70%, 50%, 0.35);
  border-radius: var(--r-md);
  color: hsl(0, 70%, 65%);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-signout:hover { background: hsla(0, 70%, 50%, 0.22); }

/* -- Address Autocomplete ------------------------------- */
.ac-field { position: relative; }
.ac-dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  max-height: 220px; overflow-y: auto;
}
.ac-dropdown:empty { display: none; }
.ac-item {
  padding: 10px 14px; font-size: 0.83rem; cursor: pointer;
  border-bottom: 1px solid var(--border); color: var(--txt);
  line-height: 1.4;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--card2); }
.ac-loading, .ac-empty { padding: 10px 14px; font-size: 0.8rem; color: var(--muted); }

/* -- Funding Buttons ----------------------------------- */
.fund-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.fund-btn {
  flex: 1; min-width: 0; padding: 8px 6px;
  background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--muted); font-size: 0.78rem;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all 0.15s; text-align: center; white-space: nowrap;
}
.fund-btn.active {
  background: hsla(217,80%,50%,0.15);
  border-color: hsl(217,80%,55%);
  color: hsl(217,80%,65%);
}
.fund-btn:hover:not(.active) { border-color: var(--muted); }

/* -- Fare Calculator Box ------------------------------- */
.fare-box {
  background: hsla(152,50%,35%,0.08);
  border: 1.5px solid hsla(152,50%,40%,0.25);
  border-radius: var(--r-md); padding: 14px 16px;
  margin: 12px 0;
}
.fare-box-hd {
  font-size: 0.88rem; font-weight: 700; color: var(--green);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.fare-rates { font-size: 0.73rem; color: var(--muted); font-weight: 500; }
.fare-lines {
  font-size: 0.83rem; line-height: 1.7; color: var(--txt2);
  min-height: 22px; margin-bottom: 10px;
}
.fare-lines strong { color: var(--txt); }

/* Discount row */
.disc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.disc-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.disc-btn {
  padding: 5px 11px; border-radius: 8px;
  background: var(--card2); border: 1.5px solid var(--border);
  color: var(--muted); font-size: 0.78rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.disc-btn.active {
  background: hsla(35,90%,55%,0.18);
  border-color: hsl(35,90%,60%);
  color: hsl(35,90%,65%);
}
.disc-btn:hover:not(.active) { border-color: var(--muted); }

/* Totals */
.fare-total-row { margin: 4px 0; }
.fare-grand {
  font-size: 1.15rem; font-weight: 800; color: var(--green);
  display: inline-block;
}
.fare-fund-row {
  font-size: 0.8rem; color: var(--txt2); margin-top: 6px;
  line-height: 1.5;
}
.fare-fund-row strong { color: var(--txt); }

/* -- Modal action row ---------------------------------- */
.modal-action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-quote {
  padding: 12px 16px; border-radius: var(--r-md);
  background: hsla(262,70%,55%,0.14); border: 1.5px solid hsla(262,70%,55%,0.35);
  color: hsl(262,70%,72%); font-size: 0.88rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background 0.15s;
}
.btn-quote:hover { background: hsla(262,70%,55%,0.22); }

/* -- En Route Notification Modal ----------------------- */
.ntf-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom,0);
}
.ntf-modal {
  background: var(--card); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 520px; max-height: 88vh;
  overflow-y: auto; padding-bottom: 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ntf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.ntf-title { font-size: 1rem; font-weight: 800; color: var(--txt); }
.ntf-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card2); border: none; cursor: pointer;
  font-size: 1rem; color: var(--muted); line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ntf-modal-body { padding: 16px 20px; }

.ntf-stage {
  font-size: 0.95rem; font-weight: 700; color: var(--green);
  background: hsla(152,50%,40%,0.12); border: 1.5px solid hsla(152,50%,40%,0.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.ntf-contacts {
  background: var(--card2); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px;
}
.ntf-contact-row { display: flex; gap: 8px; font-size: 0.83rem; }
.ntf-label { color: var(--muted); min-width: 90px; font-weight: 600; }
.ntf-val   { color: var(--txt); word-break: break-all; }

.ntf-textarea {
  width: 100%; min-height: 110px; padding: 12px;
  background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--txt); font-size: 0.84rem;
  font-family: inherit; line-height: 1.5; resize: vertical;
  margin-top: 6px; box-sizing: border-box;
}
.ntf-textarea:focus { outline: none; border-color: var(--green); }

.ntf-btns {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.ntf-sms {
  flex: 1; padding: 13px 10px; border-radius: 12px; border: none;
  background: hsl(152,60%,32%); color: #fff; font-weight: 700;
  font-size: 0.88rem; font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}
.ntf-sms:hover { background: hsl(152,60%,28%); }
.ntf-sms-ec { background: hsl(217,70%,45%); }
.ntf-sms-ec:hover { background: hsl(217,70%,40%); }
.ntf-email {
  flex: 1; padding: 13px 10px; border-radius: 12px; border: none;
  background: hsl(262,65%,50%); color: #fff; font-weight: 700;
  font-size: 0.88rem; font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}
.ntf-email:hover { background: hsl(262,65%,44%); }
.ntf-skip {
  padding: 13px 16px; border-radius: 12px;
  background: var(--card2); border: 1.5px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 0.85rem;
  font-family: inherit; cursor: pointer;
}
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }

/* ── SOS Button ──────────────────────────────────────────────── */
.sos-btn {
  background: hsl(0,65%,38%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .2s;
  flex-shrink: 0;
}
.sos-btn:active { opacity: .8; }

/* ── Availability Toggle ─────────────────────────────────────── */
.avail-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.07);
}
.avail-toggle-label { font-size: .9rem; font-weight: 700; color: white; }
.avail-toggle-sub   { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.avail-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.avail-switch input { opacity: 0; width: 0; height: 0; }
.avail-knob {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.15); border-radius: 28px; transition: .3s;
}
.avail-knob:before {
  content: ''; position: absolute;
  width: 22px; height: 22px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .3s;
}
.avail-switch input:checked + .avail-knob { background: hsl(142,55%,38%); }
.avail-switch input:checked + .avail-knob:before { transform: translateX(22px); }

/* ── Care Card in Job Sheet ──────────────────────────────────── */
.care-card {
  background: hsl(0,28%,12%);
  border: 1px solid hsl(0,45%,28%);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.care-card-title {
  font-size: .72rem; font-weight: 800;
  color: hsl(0,70%,65%);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 10px;
}
.care-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.care-row:last-child { border-bottom: none; }
.care-label { font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 600; flex-shrink: 0; }
.care-val   { font-size: .82rem; color: white; font-weight: 600; text-align: right; }

/* ── Trip Notes in Job Sheet ─────────────────────────────────── */
.trip-notes-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.trip-notes-label {
  font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.45); margin-bottom: 8px;
}
.trip-note-textarea {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: 12px; color: white; font-size: .85rem;
  resize: vertical; min-height: 90px; font-family: inherit;
  box-sizing: border-box; outline: none; line-height: 1.5;
}
.trip-note-textarea:focus { border-color: var(--green); }
.btn-save-note {
  margin-top: 10px; width: 100%; padding: 13px;
  background: hsl(142,55%,30%); color: white; border: none;
  border-radius: 10px; font-weight: 700; cursor: pointer;
  font-size: .85rem; font-family: inherit;
}

/* ── Status flow button colours ─────────────────────────────── */
.btn-status.s-en-route   { background: hsl(220,60%,38%); }
.btn-status.s-in-transit { background: hsl(43,70%,38%); }
.btn-status.s-support    { background: hsl(270,50%,38%); }
.btn-status.s-completed  { background: hsl(142,55%,30%); }
.btn-status.s-cancelled  { background: hsl(0,55%,33%); }

/* ── SOS in Topbar ───────────────────────────────────────────── */
.sos-topbar {
  background: hsl(0,70%,40%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  animation: sos-pulse 3s ease-in-out infinite;
  transition: opacity 0.15s;
}
.sos-topbar:active { opacity: 0.8; }
@keyframes sos-pulse {
  0%,100% { box-shadow: 0 2px 10px rgba(200,30,30,.4); }
  50%      { box-shadow: 0 2px 18px rgba(200,30,30,.75); }
}

/* ── Profile Earnings Strip ──────────────────────────────────── */
.prof-earn-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.pes-tile {
  flex: 1;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--border);
}
.pes-tile.pes-accent { background: hsl(142,50%,14%); border-color: hsl(142,40%,25%); }
.pes-val { font-size: 1.2rem; font-weight: 900; color: white; }
.pes-tile.pes-accent .pes-val { color: hsl(142,60%,55%); }
.pes-lbl { font-size: .68rem; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ── Job card status left borders ────────────────────────────── */
.job-card { border-left: 4px solid transparent; }
.job-card.j-now  { border-left-color: hsl(43,80%,55%); }
.job-card.j-soon { border-left-color: hsl(220,60%,55%); }
.job-card.j-done { border-left-color: hsl(142,50%,40%); }
.job-card.j-cancel { border-left-color: hsl(0,50%,40%); }

/* Pull-to-refresh */
.ptr-spin .ptr-spinner { animation: ptr-rotate 0.7s linear infinite; }
@keyframes ptr-rotate { to { transform: rotate(360deg); } }

/* ── MESSAGES TAB ────────────────────────────────────────── */
.msg-thread {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
}
.msg-empty {
  color: var(--txt3);
  font-size: .85rem;
  text-align: center;
  padding: 20px 0;
}
.msg-bubble {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 14px;
}
.msg-sent {
  align-self: flex-end;
  background: hsl(142,50%,26%);
  border-bottom-right-radius: 4px;
}
.msg-reply {
  align-self: flex-start;
  background: var(--card2);
  border-bottom-left-radius: 4px;
}
.msg-reply-from {
  font-size: .68rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.msg-text { font-size: .88rem; color: var(--txt); line-height: 1.5; }
.msg-meta { font-size: .65rem; color: var(--txt3); margin-top: 5px; }
.msg-sent-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.msg-delete-btn {
  background: none; border: none; cursor: pointer; font-size: 14px;
  padding: 0; opacity: 0.35; color: #ef4444; flex-shrink: 0;
  transition: opacity 0.2s;
}
.msg-delete-btn:hover { opacity: 1; }


/* Quick send grid */
.msg-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.msg-quick-big {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  width: 100%;
}
.msg-quick-big:active {
  background: hsl(142,50%,20%);
  border-color: var(--green);
  transform: scale(0.97);
}
.mqb-icon { font-size: 1.4rem; flex-shrink: 0; }
.mqb-text {
  font-size: .82rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
}

/* Textarea */
.msg-textarea {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  color: var(--txt);
  font-family: inherit;
  font-size: .95rem;
  resize: none;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
  display: block;
}
.msg-textarea:focus { border-color: var(--green); }
.msg-textarea::placeholder { color: var(--txt3); }

/* Big send button */
.msg-send-btn-big {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
}
.msg-send-btn-big:active { background: var(--green-d); transform: scale(0.98); }


/* ══════════════════════════════════════════════════════════════
   DRIVER ALERT SYSTEM + UI SCALE-UP OVERRIDES
   Big, clear, readable — thumb-friendly for working drivers
══════════════════════════════════════════════════════════════ */

/* ── Base font scale ── */
html { font-size: 17px; }

/* ── Next job card ── */
.njc-client   { font-size: 1.6rem !important; }
.njc-time     { font-size: 1.15rem !important; font-weight: 900 !important; }
.njc-countdown{ font-size: 0.88rem !important; padding: 5px 13px !important; }
.njc-label    { font-size: 0.75rem !important; }
.njc-route    { font-size: 0.9rem !important; padding: 12px 14px !important; line-height: 1.6 !important; }
.njc-care     { font-size: 0.78rem !important; padding: 5px 12px !important; margin-bottom: 16px !important; }
.btn-navigate { padding: 18px !important; font-size: 1rem !important; }
.btn-start    { padding: 18px !important; font-size: 1rem !important; }
.btn-complete { padding: 18px !important; font-size: 1rem !important; }

/* ── Job list cards ── */
.job-list  { gap: 14px !important; }
.jc-head   { padding: 14px 16px 8px !important; }
.jc-body   { padding: 6px 16px 16px !important; }
.jc-client { font-size: 1.12rem !important; font-weight: 900 !important; }
.jc-time   { font-size: 0.95rem !important; font-weight: 800 !important; }
.jc-address{ font-size: 0.88rem !important; line-height: 1.5 !important; }
.jc-meta   { font-size: 0.82rem !important; margin-top: 8px !important; }
.jc-status { font-size: 0.68rem !important; padding: 4px 10px !important; }

/* ── Status buttons ── */
.btn-status {
  padding: 16px 10px !important;
  font-size: 0.9rem !important;
  min-height: 56px !important;
  border-radius: var(--r-md) !important;
}

/* ── Sheet ── */
.sheet-head h3 { font-size: 1.2rem !important; }
.sheet-close   { width: 36px !important; height: 36px !important; }
.sr            { font-size: 0.95rem !important; padding: 14px 0 !important; }
.sr-label      { min-width: 100px !important; font-size: 0.88rem !important; }
.sr-val        { font-size: 0.95rem !important; }

/* ── Topbar ── */
.topbar  { height: 68px !important; }
.tb-name { font-size: 1rem !important; }
.tb-hi   { font-size: 0.78rem !important; }
.tb-av   { width: 42px !important; height: 42px !important; font-size: 1.1rem !important; }

/* ── Bottom nav ── */
.bottom-nav { height: 82px !important; }
.bn-icon    { font-size: 1.5rem !important; }
.bn-lbl     { font-size: 0.72rem !important; }

/* ── Earnings ── */
.earn-hero-num { font-size: 2.8rem !important; }
.eb-val        { font-size: 1.2rem !important; }
.tab-title     { font-size: 1.4rem !important; }

/* ── Topbar right-side icons ── */
.tb-right { display: flex; align-items: center; gap: 8px; }

.bell-btn {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: white;
  width: 40px; height: 40px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: background 0.2s; flex-shrink: 0;
}
.bell-btn:active { background: rgba(255,255,255,0.18); }
.bell-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: white;
  font-size: 0.58rem; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--card);
}
.bell-badge.hidden { display: none !important; }

.jm-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: rgba(255,255,255,0.5);
  width: 40px; height: 40px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.2s; flex-shrink: 0;
}
.jm-btn.jm-active {
  background: hsla(43,92%,52%,0.2);
  border-color: hsla(43,92%,52%,0.45);
  color: var(--gold);
}

/* ── Countdown Strip ── */
.countdown-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; flex-shrink: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: background 0.4s, border-color 0.4s;
}
.countdown-strip.hidden { display: none !important; }
.countdown-strip.cs-green {
  background: linear-gradient(135deg, hsl(152,45%,12%), hsl(160,40%,10%));
  border-bottom-color: var(--green);
}
.countdown-strip.cs-amber {
  background: linear-gradient(135deg, hsl(43,60%,14%), hsl(35,55%,11%));
  border-bottom-color: var(--gold);
  animation: cs-amber-pulse 2s ease infinite;
}
.countdown-strip.cs-red {
  background: linear-gradient(135deg, hsl(3,65%,16%), hsl(0,55%,12%));
  border-bottom-color: var(--red);
  animation: cs-red-pulse 1.2s ease infinite;
}
.countdown-strip.cs-overdue {
  background: hsl(3,70%,14%);
  border-bottom-color: var(--red);
  animation: cs-overdue-flash 0.8s ease infinite;
}
@keyframes cs-amber-pulse  { 0%,100%{border-bottom-color:var(--gold);}50%{border-bottom-color:hsl(43,92%,72%);} }
@keyframes cs-red-pulse    { 0%,100%{border-bottom-color:var(--red);}50%{border-bottom-color:hsl(3,90%,72%);} }
@keyframes cs-overdue-flash{ 0%,100%{background:hsl(3,70%,14%);}50%{background:hsl(3,70%,20%);} }

.cs-icon     { font-size: 1.7rem; flex-shrink: 0; }
.cs-body     { flex: 1; min-width: 0; }
.cs-headline { font-size: 1rem; font-weight: 900; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-sub      { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.55); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-timer    { font-size: 1.6rem; font-weight: 900; color: white; font-variant-numeric: tabular-nums; flex-shrink: 0; text-align: right; min-width: 48px; }

/* ── Full-Screen Alert Takeover ── */
.alert-fullscreen {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
}
.alert-fullscreen.hidden { display: none !important; }
.af-card {
  width: 100%; max-width: 480px;
  border-radius: 28px 28px 0 0;
  padding: 36px 24px 56px;
  animation: slideUp 0.35s cubic-bezier(0.34,1.3,0.64,1);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.af-card.af-green { background: linear-gradient(160deg, hsl(152,55%,14%), hsl(160,50%,9%));  border-top: 4px solid var(--green); }
.af-card.af-red   { background: linear-gradient(160deg, hsl(3,65%,16%),   hsl(0,55%,10%));   border-top: 4px solid var(--red); }
.af-card.af-amber { background: linear-gradient(160deg, hsl(43,65%,14%),  hsl(35,55%,9%));   border-top: 4px solid var(--gold); }
.af-icon     { font-size: 3.8rem; line-height: 1; }
.af-headline { font-size: 2.2rem; font-weight: 900; color: white; line-height: 1.15; }
.af-body     { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.72); line-height: 1.55; max-width: 320px; }
.af-dismiss {
  width: 100%; padding: 22px;
  border: none; border-radius: 16px;
  font-family: inherit; font-size: 1.1rem; font-weight: 900;
  cursor: pointer; transition: all 0.15s; margin-top: 8px;
}
.af-dismiss:active { transform: scale(0.97); }
.af-dismiss.af-green-btn { background: var(--green); color: white; }
.af-dismiss.af-red-btn   { background: var(--red);   color: white; }
.af-dismiss.af-amber-btn { background: var(--gold);  color: hsl(43,92%,10%); }
.af-secondary {
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; padding: 8px; margin-top: -8px;
}

/* ── Alert Inbox ── */
.alert-inbox-overlay {
  position: fixed; inset: 0; z-index: 750;
  background: hsla(220,18%,5%,0.82); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end;
}
.alert-inbox-overlay.hidden { display: none !important; }
.alert-inbox {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--card); border-radius: 24px 24px 0 0;
  padding: 0 20px 44px; max-height: 76vh; overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34,1.3,0.64,1);
}
.ai-handle { width: 38px; height: 4px; background: var(--txt3); border-radius: 2px; margin: 14px auto 16px; }
.ai-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.ai-header h3  { font-size: 1.2rem; font-weight: 900; }
.ai-clear-btn  { background: none; border: none; color: var(--txt3); font-size: 0.85rem; font-family: inherit; cursor: pointer; font-weight: 600; }
.ai-empty      { display: flex; flex-direction: column; align-items: center; padding: 36px 20px; gap: 10px; color: var(--txt3); text-align: center; }
.ai-empty-icon { font-size: 2.8rem; }
.ai-empty-lbl  { font-size: 0.9rem; font-weight: 700; }
.ai-item       { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid hsla(220,20%,100%,0.04); align-items: flex-start; }
.ai-dot        { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.ai-dot.new-job{ background: var(--green); }
.ai-dot.depart { background: var(--red); }
.ai-dot.warning{ background: var(--gold); }
.ai-dot.info   { background: var(--blue); }
.ai-text       { flex: 1; }
.ai-title      { font-size: 0.95rem; font-weight: 800; color: var(--txt); }
.ai-desc       { font-size: 0.84rem; color: var(--txt2); margin-top: 3px; line-height: 1.4; }
.ai-time       { font-size: 0.72rem; color: var(--txt3); font-weight: 600; flex-shrink: 0; margin-top: 3px; }

/* ── Route auto-calc status indicator ── */
.route-calc-status {
  font-size: 0.72rem; font-weight: 700;
  color: var(--green); margin-left: 4px;
  transition: color 0.2s;
}
.route-calc-status.calculating { color: var(--gold); }
.route-calc-status.error       { color: var(--red); }

/* ── Time-Critical Job Badge ────────────────────────────────── */
.tc-badge {
  background: hsl(0,65%,32%);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: sos-pulse 2.5s ease-in-out infinite;
}

/* ── Appointment Warning Block (job sheet) ────────────────────── */
.appt-warning {
  background: hsl(0,60%,16%);
  border: 2px solid hsl(0,65%,45%);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.aw-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.aw-title  { font-size: 1.1rem; font-weight: 900; color: hsl(0,75%,72%); letter-spacing: 0.02em; }
.aw-time   { font-size: 1.35rem; font-weight: 900; color: white; margin-bottom: 4px; }
.aw-sub    { font-size: 0.82rem; color: hsl(0,50%,72%); font-weight: 600; }

/* ── Weekly Schedule Editor ─────────────────────────────────── */
.sched-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.sched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 4px;
}
.sched-sub {
  font-size: .72rem;
  color: var(--txt3);
  margin-bottom: 14px;
}
.sched-save-note {
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
}
.sched-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.sched-row:last-child { border-bottom: none; }
.sched-day-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--txt2);
}
.sched-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sched-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.sched-toggle input { opacity: 0; width: 0; height: 0; }
.sched-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--raised);
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.sched-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: transform .2s;
}
.sched-toggle input:checked + .sched-toggle-slider { background: var(--green); }
.sched-toggle input:checked + .sched-toggle-slider::before { transform: translateX(20px); }
.sched-times {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sched-time-input {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--txt);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 8px;
  font-family: inherit;
  cursor: pointer;
  width: 88px;
}
.sched-time-sep { color: var(--txt3); font-weight: 700; font-size: .8rem; }
.sched-off-label { font-size: .75rem; color: var(--txt3); font-weight: 600; }
.sched-save-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--green-d), var(--green));
  border: none;
  border-radius: var(--r-md);
  color: white;
  font-size: .9rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--green-glow);
  transition: opacity .2s;
}
.sched-save-btn:active { opacity: .85; }

/* ══════════════════════════════════════════════
   JOURNEY TIMELINE (job sheet)
══════════════════════════════════════════════ */
.journey-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #f9fafb;
  border-radius: 12px;
  margin: 12px 0;
  gap: 0;
  overflow-x: auto;
}
.jt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.35;
  transition: opacity 0.3s;
  min-width: 52px;
}
.jt-step.done { opacity: 0.7; }
.jt-step.active { opacity: 1; }
.jt-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.jt-step.done .jt-icon { background: #d1fae5; }
.jt-step.active .jt-icon { background: #1a4a2e; font-size: 1rem; }
.jt-label {
  font-size: 0.55rem;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
  max-width: 52px;
}
.jt-step.active .jt-label { color: #1a4a2e; font-weight: 700; }
.jt-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin-bottom: 16px;
  min-width: 8px;
  max-width: 24px;
  transition: background 0.3s;
}
.jt-line.done { background: #86efac; }

/* ══════════════════════════════════════════════
   GPS STATUS INDICATOR
══════════════════════════════════════════════ */
@keyframes gpsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.gps-dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a;
  animation: gpsPulse 1.5s ease-in-out infinite;
}
.gps-dot-off { background: #dc2626; animation: none; }

/* ══════════════════════════════════════════════
   CHAT BUBBLES (Messages tab)
══════════════════════════════════════════════ */
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.87rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}
.msg-bubble.sent {
  background: #1a4a2e;
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.msg-bubble.received {
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.msg-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.msg-row.sent { align-items: flex-end; }
.msg-row.received { align-items: flex-start; }
.msg-time {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-top: 3px;
  padding: 0 4px;
}

/* ══════════════════════════════════════════════
   EARNINGS SUMMARY CARD
══════════════════════════════════════════════ */
.earn-summary-card {
  display: flex;
  background: linear-gradient(135deg, #1a4a2e, #2d6a42);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 14px 0;
  gap: 0;
  color: white;
}
.esc-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.esc-val {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.esc-label {
  font-size: 0.68rem;
  opacity: 0.8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.esc-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 8px;
}

/* ══════════════════════════════════════════════
   NAVIGATE TO PICKUP BUTTON
══════════════════════════════════════════════ */
.nav-to-pickup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1d4ed8;
  color: white;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin: 8px 0;
  transition: all 0.15s;
}
.nav-to-pickup-btn:active { transform: scale(0.97); background: #1e40af; }

/* ══════════════════════════════════════════════
   1-TAP QUICK ACTIONS & CARE BADGES
══════════════════════════════════════════════ */
.quick-status-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.btn-quick-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
  font-family: inherit;
}
.btn-quick-action:active { transform: scale(0.96); }
.btn-quick-omw {
  background: linear-gradient(135deg, hsl(217, 85%, 48%), hsl(220, 80%, 40%));
  color: white;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}
.btn-quick-arrived {
  background: linear-gradient(135deg, hsl(142, 65%, 38%), hsl(155, 60%, 30%));
  color: white;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}
.care-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.care-badge-wheelchair {
  background: hsla(217, 80%, 50%, 0.18);
  color: hsl(217, 90%, 70%);
  border: 1px solid hsla(217, 80%, 50%, 0.35);
}
.care-badge-doortodoor {
  background: hsla(270, 70%, 50%, 0.18);
  color: hsl(270, 85%, 75%);
  border: 1px solid hsla(270, 70%, 50%, 0.35);
}
.care-badge-strict {
  background: hsla(0, 75%, 50%, 0.18);
  color: hsl(0, 85%, 72%);
  border: 1px solid hsla(0, 75%, 50%, 0.35);
}


