/* ============================================
   Angel Travels Cab — Component Library v2
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              opacity var(--dur-fast);
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(12,35,64,0.28);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(12,35,64,0.36); }

.btn-accent {
  background: var(--grad-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(198,160,53,0.30);
}
.btn-accent:hover { box-shadow: 0 6px 24px rgba(198,160,53,0.40); }

.btn-secondary {
  background: var(--color-surface-elevated);
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  min-height: 44px;
  padding: 0 var(--space-3);
}
.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 2px solid var(--color-danger);
}
.btn-block { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Daily cancel / reject limits (ride detail screens) */
.cancel-limit-hint {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.4;
  text-align: center;
}

/* ---- Toggle switch ---- */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--color-border);
  border-radius: 28px;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.btn-sm { min-height: 36px; font-size: var(--fs-small); padding: 0 var(--space-4); }

/* ---- Cards ---- */
.card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}
.card-compact { padding: var(--space-3); }
.card-dark {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}
.card-accent {
  background: var(--color-accent-bg);
  border-color: var(--color-accent-soft);
}

/* ---- Chips / Filter pills ---- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  border: 2px solid var(--color-border);
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.chip.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  color: var(--color-primary);
}
.chip:active { transform: scale(0.97); }

/* ---- Vehicle type cards ---- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.vehicle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-surface-elevated);
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  text-align: center;
}
.vehicle-card .v-icon { font-size: 2rem; line-height: 1; }
.vehicle-card .v-name {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text);
}
.vehicle-card .v-cap {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}
.vehicle-card.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-bg);
  box-shadow: 0 0 0 3px rgba(198,160,53,0.2);
}

/* ---- Field / Input ---- */
.field-label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.input-group {
  position: relative;
  margin-bottom: var(--space-4);
}
.input-group .input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.input-group .input { padding-left: 44px; }

.input,
.select-like {
  width: 100%;
  min-height: 50px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-surface-elevated);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(198,160,53,0.18);
}
textarea.input {
  min-height: 88px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  line-height: var(--lh-body);
}

/* ---- Stepper (booking progress) ---- */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.stepper-connector {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
}
.stepper-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  transition: background var(--dur-base), width var(--dur-base);
}
.stepper-dot.done {
  background: var(--color-accent);
  opacity: 0.6;
}
.stepper-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-pending  { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-success  { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger   { background: var(--color-danger-bg);  color: var(--color-danger); }
.badge-info     { background: var(--color-info-bg);    color: var(--color-info); }
.badge-live     { background: var(--color-live-bg);    color: var(--color-live); }
.badge-live::before { content: "●"; font-size: 0.5rem; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ---- List rows ---- */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.list-row:hover { border-color: var(--color-accent-soft); box-shadow: var(--shadow-soft); }
.list-row:active { transform: scale(0.995); }
.list-row-left { flex: 1; min-width: 0; }
.list-row-title {
  font-weight: 700;
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-meta {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ---- Route pill ---- */
.route-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.route-pill--full {
  justify-content: center;
  gap: var(--space-2);
  overflow: hidden;
}
.route-pill-place {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.route-pill .route-arrow { opacity: 0.5; margin: 0 2px; }

/* ---- Fare table ---- */
.fare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-3);
}
.fare-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--color-border);
}
.fare-table td:last-child { text-align: right; font-weight: 600; }
.fare-table tr:last-child td { border-bottom: none; font-weight: 700; font-size: var(--fs-body); }
.fare-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 2px solid var(--color-border); }
.fare-total-label { font-weight: 700; font-size: var(--fs-small); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fare-total-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-primary); }

/* ---- Star rating (Material Symbols) ---- */
.star-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-4) 0;
}
.star {
  cursor: pointer;
  color: var(--color-border);
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  user-select: none;
  line-height: 1;
}
.star .icon { font-size: 32px; display: block; }
.star.active { color: var(--color-accent); transform: scale(1.12); }
.star:hover { color: var(--color-accent-soft); }

/* ---- Subscription plan cards ---- */
.plan-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  background: var(--color-surface-elevated);
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  position: relative;
}
.plan-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(198,160,53,0.2);
}
.plan-card .plan-badge {
  position: absolute;
  top: -10px;
  right: var(--space-4);
}
.plan-name { font-size: var(--fs-title); font-weight: 700; color: var(--color-primary); }
.plan-price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--color-accent); margin: var(--space-2) 0; }
.plan-desc { font-size: var(--fs-small); color: var(--color-text-muted); }

/* ---- Driver card (in nearby drivers) ---- */
.driver-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.driver-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(198,160,53,0.18);
}
.driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.driver-info { flex: 1; min-width: 0; }
.driver-name { font-weight: 700; font-size: var(--fs-body); }
.driver-meta { font-size: var(--fs-small); color: var(--color-text-muted); margin-top: 2px; }
.driver-eta { text-align: right; flex-shrink: 0; }
.driver-eta-min { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--color-primary); }
.driver-eta-label { font-size: var(--fs-caption); color: var(--color-text-muted); }

/* ---- Info row ---- */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--color-text-muted); font-weight: 600; }
.info-row-value { font-weight: 700; color: var(--color-text); text-align: right; }

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.stat-card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.stat-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.stat-card--clickable:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}
.stat-card--clickable:active {
  transform: scale(0.98);
}
.stat-card--clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.stat-card-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-primary); line-height: 1; }
.stat-card-label { font-size: var(--fs-caption); color: var(--color-text-muted); margin-top: var(--space-1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card-icon {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.7;
}

/* ---- Section header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ---- Segment control ---- */
.segment {
  display: flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: var(--space-4);
}
.segment button {
  flex: 1;
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.segment button.active,
.segment .segment-btn--active {
  background: var(--color-surface-elevated);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

/* Notifications: horizontal scroll on narrow widths so all tabs stay tappable */
.segment.segment--notif {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: var(--space-3);
}
.segment.segment--notif::-webkit-scrollbar { display: none; }
.segment.segment--notif .segment-btn {
  flex: 1 1 auto;
  min-width: 72px;
  white-space: nowrap;
}

/* Notification list sections (hide when tab filter leaves them empty) */
.notif-section--hidden { display: none !important; }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--color-border); margin: var(--space-4) 0; }
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--space-4) 0;
}
.divider-label::before,
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-3); opacity: 0.4; }
.empty-state h3 { margin: 0 0 var(--space-2); font-size: var(--fs-title); color: var(--color-text); }
.empty-state p { margin: 0; font-size: var(--fs-small); }

/* ---- Trust strip ---- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
}
.trust-strip a { color: var(--color-primary); text-decoration: none; font-weight: 700; }

/* ---- Toolbar / dual actions ---- */
.toolbar-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.toolbar-actions .btn { flex: 1; }

/* ---- Schedule choice vertical stack (step 6) ---- */
.schedule-choice-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.schedule-choice-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.schedule-choice-btn:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 25,118,210), 0.04);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.schedule-choice-btn--now { border-color: var(--color-accent); }
.schedule-choice-btn--now .schedule-choice-label { color: var(--color-accent); }
.schedule-choice-btn--later { border-color: var(--color-primary); }
.schedule-choice-btn--later .schedule-choice-label { color: var(--color-primary); }
.schedule-choice-label {
  font-weight: 700;
  font-size: var(--fs-body);
}
.schedule-choice-sub {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ---- Pickup stops UI ---- */
.stops-list { margin-top: var(--space-3); }
.stop-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.stop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface-elevated);
  flex-shrink: 0;
}
.stop-dot.origin { background: var(--color-accent); border-color: var(--color-accent); }
.stop-dot.extra  { background: var(--color-info); border-color: var(--color-info); }
.stop-dot.dest   { background: var(--color-primary); border-color: var(--color-primary); }
.stop-connector {
  width: 2px;
  height: 20px;
  background: var(--color-border);
  margin-left: 5px;
  flex-shrink: 0;
}
.stop-input-wrap { flex: 1; }

/* ---- Alert / notice ---- */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.alert-info    { background: var(--color-info-bg);    color: var(--color-info); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-icon    { font-size: 1rem; flex-shrink: 0; }

/* =============================================
   MATERIAL SYMBOLS icon utilities
   ============================================= */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}
.icon-xs  { font-size: 16px; }
.icon-sm  { font-size: 20px; }
.icon-md  { font-size: 28px; }
.icon-lg  { font-size: 40px; }
.icon-xl  { font-size: 56px; }
.icon-2xl { font-size: 72px; }
.icon-nav { font-size: 22px; display: block; margin-bottom: 2px; }
.icon-primary { color: var(--color-primary); }
.icon-accent  { color: var(--color-accent); }
.icon-muted   { color: var(--color-text-muted); }
.icon-white   { color: #fff; }
.icon-success { color: var(--color-success); }
.icon-danger  { color: var(--color-danger); }

/* Status bar icons */
.status-bar-icons .icon { font-size: 13px; }

/* =============================================
   PROTOTYPE OVERVIEW — Entry gateway (Flutter-style)
   ============================================= */
.proto-overview-header {
  text-align: center;
  padding: var(--space-8) var(--space-5) var(--space-6);
  background: var(--grad-hero);
  color: #fff;
  position: relative;
}
.proto-overview-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(245, 243, 238, 0.95));
  pointer-events: none;
}
/* Real logo on overview entry screen — circle-cropped angel emblem */
.proto-overview-logo {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 10% center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(198, 160, 53, 0.55);
  position: relative;
  z-index: 1;
}

.proto-overview-entry-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.proto-overview-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.proto-overview-sub {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
  max-width: 300px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

/* Entry cards — icon stack + CTA (role gateway) */
.proto-role-section {
  padding: var(--space-4) var(--space-4);
  background: var(--color-surface);
}
.proto-role-section--last {
  padding-bottom: var(--space-8);
}

.proto-entry-card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-5) var(--space-5);
  text-align: center;
}

.proto-entry-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}
.proto-entry-icon .icon {
  font-size: 52px;
  line-height: 1;
}
.proto-entry-icon--passenger {
  background: linear-gradient(155deg, #0c2340 0%, #153a5f 100%);
  color: #fff;
}
.proto-entry-icon--driver {
  background: var(--grad-accent);
  color: var(--color-primary);
}
.proto-entry-icon--admin {
  background: linear-gradient(135deg, #1a6b5a, #0d9b76);
  color: #fff;
}

.proto-entry-label {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-1);
}
.proto-entry-desc {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.4;
}

.proto-entry-bullets {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  text-align: left;
}
.proto-entry-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}
.proto-entry-bullets li:last-child { margin-bottom: 0; }
.proto-entry-bullets .icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
  opacity: 0.85;
}

.proto-entry-cta {
  min-height: 52px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.login-admin-routing-hint {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
  line-height: 1.45;
}
.login-admin-routing-hint strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Legacy class names — kept for any stray references */
.proto-role-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.proto-role-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proto-role-icon-badge.user-badge   { background: var(--grad-hero); }
.proto-role-icon-badge.driver-badge { background: var(--grad-accent); }
.proto-role-icon-badge.admin-badge  { background: linear-gradient(135deg,#1a6b5a,#0d9b76); }

.proto-role-name {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 2px;
}
.proto-role-tag {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin: 0;
}

/* Mini phone frame */
.proto-phone-wrap {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.proto-phone {
  width: 110px;
  min-width: 110px;
  height: 192px;
  border-radius: 18px;
  border: 3px solid var(--color-primary);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(12,35,64,0.18);
  flex-shrink: 0;
  position: relative;
}
.proto-phone-notch {
  width: 36px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 0 0 5px 5px;
  margin: 0 auto 0;
}
.proto-phone-header {
  height: 24px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}
.proto-phone-dot {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
}
.proto-phone-dot.wide { width: 30px; background: rgba(255,255,255,0.8); }
.proto-phone-body { flex: 1; padding: 6px; overflow: hidden; }
.proto-phone-hero {
  height: 42px;
  border-radius: 8px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.proto-phone-hero.navy { background: var(--grad-hero); }
.proto-phone-hero.gold { background: var(--grad-accent); }
.proto-phone-hero.teal { background: linear-gradient(135deg,#1a6b5a,#0d9b76); }
.proto-phone-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  margin-bottom: 4px;
}
.proto-phone-bar.short { width: 60%; }
.proto-phone-bar.accent { background: var(--color-accent); width: 80%; }
.proto-phone-bar.primary { background: rgba(12,35,64,0.2); }
.proto-phone-row {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}
.proto-phone-chip {
  height: 12px;
  border-radius: 6px;
  background: var(--color-border);
  flex: 1;
}
.proto-phone-btn {
  height: 14px;
  border-radius: 7px;
  background: var(--color-primary);
  margin-top: 4px;
  width: 100%;
}
.proto-phone-btn.gold-btn { background: var(--color-accent); }

.proto-phone-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
}
.proto-phone-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  line-height: 1.3;
}
.proto-phone-feature .icon { font-size: 14px; color: var(--color-accent); flex-shrink: 0; }

/* =============================================
   ONBOARDING SWIPER
   ============================================= */
.onboard-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.onboard-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.onboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  flex-shrink: 0;
}
.onboard-skip {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
}
.onboard-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  height: 100%;
  will-change: transform;
}
.onboard-slide {
  width: calc(100% / 3);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.onboard-illustration {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  flex-shrink: 0;
}
.onboard-illustration.navy { background: var(--grad-hero); }
.onboard-illustration.gold { background: var(--grad-accent); }
.onboard-illustration.teal { background: linear-gradient(135deg,#1a6b5a,#0d9b76); }

.onboard-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  line-height: var(--lh-tight);
}
.onboard-body {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}
.onboard-footer {
  padding: var(--space-4) var(--space-6) calc(var(--space-6) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
.onboard-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}
.onboard-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-accent);
}

/* MD3 nav polish and screen transitions are defined in app.css */

/* =============================================
   TOAST / SNACKBAR
   ============================================= */
#toast-root {
  position: absolute;
  bottom: calc(var(--nav-height, 80px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 340px;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px var(--space-4);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  pointer-events: all;
  cursor: pointer;
  min-width: 260px;
  max-width: 360px;
  animation: toastSlideUp 0.3s cubic-bezier(0.4,0,0.2,1) both;
  will-change: transform, opacity;
}
.toast.toast-exit {
  animation: toastFadeOut 0.25s ease forwards;
}
@keyframes toastSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes toastFadeOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(12px); opacity: 0; }
}
.toast-success { background: #1b7a48; }
.toast-error   { background: #c0392b; }
.toast-warning { background: #a66800; }
.toast-info    { background: #1a5fa8; }
.toast-icon { flex-shrink: 0; }
.toast-msg  { flex: 1; }
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  font-weight: 300;
}
.toast-close:hover { color: #fff; }

/* =============================================
   FORM VALIDATION
   ============================================= */
.field-error {
  font-size: var(--fs-caption);
  color: var(--color-danger);
  margin-top: 4px;
  display: none;
  font-weight: 600;
  padding-left: 2px;
}
.field-error.visible { display: block; }
.input.input-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 3px rgba(209,65,57,0.14) !important;
}
.input-group.has-error .input { border-color: var(--color-danger); }

/* =============================================
   BUTTON LOADING STATE
   ============================================= */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* =============================================
   ADMIN RECORD BADGES (dynamic lists)
   ============================================= */
.record-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.record-row:last-child { border-bottom: none; }
.record-row:hover { background: rgba(12,35,64,0.03); }
.record-row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  color: #fff;
  background: var(--grad-hero);
  flex-shrink: 0;
}
.record-row-body { flex: 1; min-width: 0; }
.record-row-name { font-weight: 700; font-size: var(--fs-body); color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-row-sub  { font-size: var(--fs-caption); color: var(--color-text-muted); margin-top: 1px; }
.record-row-right { flex-shrink: 0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}
.empty-state .icon { font-size: 48px; opacity: 0.25; margin-bottom: var(--space-3); }
.empty-state-title { font-weight: 700; font-size: var(--fs-body); margin-bottom: var(--space-2); }
.empty-state-desc  { font-size: var(--fs-small); opacity: 0.7; }

/* ── Document upload list (driver signup) ── */
.doc-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  margin-top: var(--space-2);
}
.doc-section-req {
  margin-left: auto;
  font-size: var(--fs-caption);
  color: var(--color-danger);
  font-weight: 600;
}
.doc-group-label {
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
}
.doc-upload-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.doc-upload-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3);
}
.doc-upload-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-bg, #e3f2fd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.doc-upload-body {
  flex: 1;
  min-width: 0;
}
.doc-upload-name {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text);
}
.doc-upload-hint {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-badge-required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-danger);
  background: var(--color-danger-bg);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.doc-upload-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.doc-upload-btn:hover { background: var(--color-primary-bg, #e3f2fd); }
.doc-upload-btn--done {
  border-color: var(--color-success);
  color: var(--color-success);
  background: var(--color-success-bg, #e8f5e9);
}
.doc-upload-check { display: inline-flex; align-items: center; }

/* ── Pending approval screen hero ── */
.pending-hero {
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(160deg, rgba(var(--color-primary-rgb, 25,118,210),0.07) 0%, transparent 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2);
}
.pending-hero-anim { margin-bottom: var(--space-3); color: var(--color-primary); }
.pending-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.pending-hero-sub {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.pending-hero-notify {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 25,118,210),0.1);
  border-radius: 999px;
  padding: 4px 12px;
}
@keyframes pendingSpin {
  0%   { content: 'hourglass_top'; transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

/* ── Pending screen: section label ── */
.pending-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ── Document status rows (pending screen) ── */
.doc-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.doc-status-row:last-child { border-bottom: none; }
.doc-status-name {
  flex: 1;
  font-size: var(--fs-small);
  color: var(--color-text);
}

/* ── "What happens next" steps ── */
/* ── "What happens next" timeline card ── */
.wnext-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.wnext-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.wnext-step {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-1);
}
.wnext-step--last { padding-bottom: 0; }
.wnext-step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.wnext-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wnext-step-icon--done {
  background: var(--color-success);
  color: #fff;
  box-shadow: 0 3px 10px rgba(56,142,60,0.3);
}
.wnext-step-icon--active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(25,118,210,0.35);
  animation: wnextPulse 1.8s ease-in-out infinite;
}
.wnext-step-icon--pending {
  background: var(--color-surface-2, #f5f5f5);
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
}
@keyframes wnextPulse {
  0%,100% { box-shadow: 0 3px 10px rgba(25,118,210,0.35); }
  50%     { box-shadow: 0 0 0 8px rgba(25,118,210,0.1); }
}
.wnext-step-line {
  width: 2px;
  flex: 1;
  min-height: 20px;
  margin: 4px 0;
  border-radius: 2px;
}
.wnext-step--done   .wnext-step-line { background: var(--color-success); }
.wnext-step--active .wnext-step-line {
  background: repeating-linear-gradient(
    to bottom,
    var(--color-primary) 0px,
    var(--color-primary) 5px,
    transparent 5px,
    transparent 10px
  );
}
.wnext-step--pending .wnext-step-line { background: var(--color-border); }

.wnext-step-body {
  flex: 1;
  min-width: 0;
  padding-bottom: var(--space-4);
}
.wnext-step--last .wnext-step-body { padding-bottom: 0; }
.wnext-step-title {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-1);
  margin-top: 6px; /* align with icon centre */
}
.wnext-step--pending .wnext-step-title { color: var(--color-text-muted); }
.wnext-step-desc {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-2);
}
.wnext-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}
.wnext-step-tag--done {
  background: rgba(56,142,60,0.1);
  color: var(--color-success);
}
.wnext-step-tag--active {
  background: rgba(25,118,210,0.1);
  color: var(--color-primary);
}

/* ── Rejection helpline card ── */
.rejection-helpline-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-top: var(--space-3);
}
.rejection-helpline-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.rejection-helpline-desc {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-bg, #e3f2fd); }

/* ── Demo controls strip ── */
.demo-controls-strip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.demo-controls-label {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
}

/* ── Owner details card (shown when driver-only chip selected) ── */
.owner-details-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  animation: slideDown 0.28s ease;
}
.owner-details-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.owner-details-hint {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Daily motivation popup ── */
.motivation-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.motivation-backdrop--visible { opacity: 1; }

.motivation-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: min(340px, 90vw);
  background: var(--color-surface);
  border-radius: 24px;
  padding: var(--space-6) var(--space-5);
  z-index: 901;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.motivation-popup--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.motivation-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.motivation-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.motivation-body {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}
.motivation-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* ══════════════════════════════════════
   PLACES AUTOCOMPLETE DROPDOWN
   ══════════════════════════════════════ */
.places-ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.places-ac-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: background 0.12s;
}
.places-ac-item:hover,
.places-ac-item--active { background: rgba(var(--color-primary-rgb,25,118,210),0.07); }
.places-ac-icon { color: var(--color-text-muted); flex-shrink: 0; margin-top: 2px; }
.places-ac-body { display: flex; flex-direction: column; min-width: 0; }
.places-ac-main { font-size: var(--fs-small); font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.places-ac-sub  { font-size: var(--fs-caption); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════
   EXTRA STOPS (step 5)
   ══════════════════════════════════════ */
.xstop-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.xstop-card {
  display: flex;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-2);
  margin-bottom: var(--space-3);
  transition: box-shadow 0.15s;
}
.xstop-card--origin { border-color: var(--color-accent); }
.xstop-card--extra  { border-color: var(--color-primary); }
.xstop-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 2px;
}
.xstop-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.xstop-dot--origin { background: var(--color-accent); box-shadow: 0 0 0 3px rgba(198,160,53,.2); }
.xstop-dot--extra  { background: var(--color-primary); box-shadow: 0 0 0 3px rgba(25,118,210,.15); }
.xstop-vline {
  width: 2px;
  flex: 1;
  min-height: 12px;
  background: var(--color-border);
  margin-top: 4px;
}
.xstop-body { flex: 1; min-width: 0; }
.xstop-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.xstop-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}
.xstop-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  transition: background 0.14s;
}
.xstop-change-btn:hover { background: rgba(25,118,210,.1); }
.xstop-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: none;
  cursor: pointer;
  color: var(--color-danger);
  transition: background 0.14s;
}
.xstop-remove-btn:hover { background: var(--color-danger-bg); }
.xstop-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 10px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.xstop-input:focus { border-color: var(--color-primary); }
.xstop-input[readonly] { background: var(--color-surface-2); color: var(--color-text-muted); }
.xstop-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.xstop-pin-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: rgba(25,118,210,.07);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s;
}
.xstop-pin-btn:hover { background: rgba(25,118,210,.16); }
.xstop-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.xstop-actions { margin-top: var(--space-1); }
.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.btn-outline-primary:hover { background: rgba(25,118,210,.07); }

/* ══════════════════════════════════════
   ACCEPTED DRIVERS SECTION
   ══════════════════════════════════════ */
.accepted-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-success);
  background: var(--color-success-bg, #e8f5e9);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.accepted-drivers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ══════════════════════════════════════
   LIVE RIDE SCREEN
   ══════════════════════════════════════ */
.live-map-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  flex-shrink: 0;
}
.live-car-pin {
  position: absolute;
  top: 48%;
  left: 45%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  animation: carDrive 4s ease-in-out infinite;
}
.live-car-pin--driver { top: 42%; left: 52%; }
@keyframes carDrive {
  0%,100% { transform: translate(-50%,-50%); }
  50%      { transform: translate(-40%,-55%); }
}
.live-pulse {
  position: absolute;
  top: 48%; left: 45%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(25,118,210,0.2);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}
.live-badge {
  font-size: var(--fs-caption);
  animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}
.live-sheet {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-3) var(--space-4) var(--space-6);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  margin-top: -var(--radius-xl);
}
.live-sheet-pill {
  width: 40px; height: 4px;
  background: var(--color-border);
  border-radius: 99px;
  margin: 0 auto var(--space-4);
}
.live-driver-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.live-call-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.live-eta-bar {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-2);
  margin-bottom: var(--space-3);
}
.live-eta-item { flex: 1; text-align: center; }
.live-eta-value { font-weight: 700; font-size: var(--fs-title); color: var(--color-primary); }
.live-eta-label { font-size: 10px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.live-eta-divider { width: 1px; height: 32px; background: var(--color-border); }
.live-route-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.live-route-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-route-dot--origin { background: var(--color-accent); }
.live-route-dot--dest   { background: var(--color-primary); }
.live-route-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.live-route-line {
  flex: 2;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0, var(--color-border) 6px, transparent 6px, transparent 12px);
}

/* ══════════════════════════════════════
   EMERGENCY CONTACTS (multiple)
   ══════════════════════════════════════ */
.emg-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.emg-contact-input { flex: 1; margin-bottom: 0 !important; }
.emg-contact-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s;
}
.emg-contact-remove:hover { background: var(--color-danger-bg); }

/* ══════════════════════════════════════
   ADMIN TODAY KPI STRIP
   ══════════════════════════════════════ */
.today-kpi-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1565c0 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  color: #fff;
}
.today-kpi-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: var(--space-3);
}
.today-kpi-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.today-kpi-item { text-align: center; }
.today-kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.today-kpi-sub {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 3px;
}
.today-kpi-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════
   PAYMENT SCREENS
   ══════════════════════════════════════ */

/* Fare / subscription summary hero */
.pay-summary-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1565c0 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5) var(--space-4);
  text-align: center;
  color: #fff;
  margin-bottom: var(--space-4);
}
.pay-summary-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: var(--space-1);
}
.pay-summary-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.pay-summary-meta {
  font-size: var(--fs-caption);
  opacity: 0.85;
  line-height: 1.4;
}

/* Driver info row on pay-fare screen */
.pay-driver-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}

/* Pay-to admin card */
.sub-pay-to-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}
.sub-pay-to-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.sub-pay-to-name {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
}
.sub-pay-to-sub {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

/* Payment method cards */
.pay-method-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.pay-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.pay-method-card.selected {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 25,118,210), 0.06);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 25,118,210), 0.12);
}
.pay-method-label {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-text);
}
.pay-method-sub {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
}

/* Generic pay panel */
.pay-panel {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

/* UPI QR block */
.upi-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-4);
}
.upi-qr-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upi-qr-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 6px, rgba(0,0,0,0.06) 6px, rgba(0,0,0,0.06) 7px),
    repeating-linear-gradient(90deg,  transparent, transparent 6px, rgba(0,0,0,0.06) 6px, rgba(0,0,0,0.06) 7px);
}
.upi-qr-inner {
  position: relative;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

/* UPI ID copy row */
.upi-id-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.upi-id-label {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.upi-id-value {
  flex: 1;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-primary);
  word-break: break-all;
}

/* UPI app chips */
.upi-apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.upi-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 25,118,210), 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Cash instruction card */
.cash-instruction-card {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.cash-instruction-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.cash-instruction-desc {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Rejection textarea */
.rejection-area {
  background: var(--color-danger-bg);
  border: 1.5px solid var(--color-danger);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-top: var(--space-4);
  display: none;
}
.rejection-area.visible { display: block; }
.rejection-area label  { font-weight: 700; font-size: var(--fs-small); color: var(--color-danger); display: block; margin-bottom: var(--space-2); }

/* ── Field-level rejection flow ── */
.rejection-header-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-danger-bg, #FFF0F0);
  border: 1.5px solid var(--color-danger);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.rejection-header-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rejection-header-body { flex: 1; }
.rejection-header-title { font-weight: 700; font-size: var(--fs-body); color: var(--color-danger); }
.rejection-header-sub   { font-size: var(--fs-small); color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }

.rejection-fields-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.rejection-fields-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.rejection-field-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
}
.rejection-field-row:first-of-type { border-top: none; }
.rejection-field-info { flex: 1; }
.rejection-field-name { font-weight: 600; font-size: var(--fs-small); color: var(--color-text); }
.rejection-field-reason { font-size: var(--fs-caption); color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }
.rejection-field-row--fail .rejection-field-name { color: var(--color-danger); }

.rejection-resubmit-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.resubmit-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.resubmit-field-row:last-of-type { border-bottom: none; }
.resubmit-field-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
}

/* Helpline redesign (no underline) */
.rejection-helpline-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}
.rejection-helpline-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--fs-small); color: var(--color-text);
  margin-bottom: var(--space-2);
}
.rejection-helpline-desc {
  font-size: var(--fs-caption); color: var(--color-text-muted);
  line-height: 1.5; margin: 0 0 var(--space-4);
}
.helpline-btn-row {
  display: flex; gap: var(--space-3); margin-bottom: var(--space-3);
}
.helpline-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--fs-small); font-weight: 600;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
}
.helpline-btn--call { background: var(--color-primary); color: #fff; }
.helpline-btn--wa   { background: #25D366; color: #fff; }
.helpline-email-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-caption); color: var(--color-text-muted);
  text-decoration: none;
}
.helpline-email-link:hover { color: var(--color-primary); }

/* ── UPI notice row (subscription payment) ── */
.upi-notice-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: rgba(var(--color-info-rgb, 2,136,209), 0.08);
  border: 1px solid rgba(var(--color-info-rgb, 2,136,209), 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-3);
}
.upi-notice-icon {
  width: 28px; height: 28px; min-width: 28px;
  background: rgba(var(--color-info-rgb, 2,136,209), 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-info, #0288d1);
}
.upi-notice-text {
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--color-text);
}

/* ── Driver pickup detail screen ── */
.pickup-map-wrap {
  position: relative;
  height: 220px;
  background: #e0e8f0;
  overflow: hidden;
}
.pickup-map-fare-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
}
.pickup-timer-badge {
  background: var(--color-danger);
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.pickup-sheet {
  padding: var(--space-4) var(--space-4) var(--space-6);
}
.pickup-passenger-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.pickup-avatar {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.pickup-passenger-info { flex: 1; }
.pickup-passenger-name { font-weight: 700; font-size: var(--fs-body); color: var(--color-text); }
.pickup-passenger-meta { font-size: var(--fs-caption); color: var(--color-text-muted); display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-top: 2px; }
.pickup-call-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37,211,102,0.35);
}
.pickup-route-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.pickup-route-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.pickup-route-dot {
  width: 12px; height: 12px; min-width: 12px;
  border-radius: 50%;
  margin-top: 4px;
}
.pickup-route-dot--start { background: var(--color-primary); }
.pickup-route-dot--stop  { background: var(--color-warning); }
.pickup-route-dot--end   { background: var(--color-danger); }
.pickup-route-line-gap {
  margin-left: 5px; height: 18px;
  border-left: 2px dashed var(--color-border);
}
.pickup-route-text { flex: 1; }
.pickup-route-label { font-size: var(--fs-caption); color: var(--color-text-muted); }
.pickup-route-place { font-size: var(--fs-small); font-weight: 600; color: var(--color-text); }
.pickup-meta-chips {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pickup-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(var(--color-primary-rgb,25,118,210),0.08);
  color: var(--color-primary);
  font-size: var(--fs-caption); font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.pickup-action-row {
  display: flex; gap: var(--space-3);
}
.pickup-action-btn {
  flex: 1;
  padding: var(--space-3) !important;
  font-size: var(--fs-body) !important;
}

/* ── Profile hero card ── */
.profile-hero-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-4);
}

/* ── Notification bell ── */
.notif-bell-btn { position: relative; }
.notif-bell-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 17px; height: 17px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  line-height: 1;
}

/* ── Notification screen ── */
.notif-group-label {
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  position: relative;
  transition: opacity 0.2s;
}
.notif-card--unread {
  background: rgba(var(--color-primary-rgb,25,118,210),0.04);
  border-color: rgba(var(--color-primary-rgb,25,118,210),0.18);
}
.notif-icon {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notif-icon--ride   { background: rgba(var(--color-primary-rgb,25,118,210),0.12); color: var(--color-primary); }
.notif-icon--admin  { background: rgba(var(--color-warning-rgb,251,140,0),0.12);  color: var(--color-warning); }
.notif-icon--update { background: rgba(var(--color-success-rgb,56,142,60),0.12);  color: var(--color-success); }
.notif-body { flex: 1; }
.notif-title { font-weight: 700; font-size: var(--fs-small); color: var(--color-text); }
.notif-desc  { font-size: var(--fs-caption); color: var(--color-text-muted); margin-top: 2px; line-height: 1.45; }
.notif-time  { font-size: 10px; color: var(--color-text-muted); margin-top: var(--space-1); }
.notif-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── New feature / app update popup ── */
.feature-popup {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% - var(--space-8));
  max-height: 88%;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 102;
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  height: fit-content;
  top: 50%; transform: translateY(-50%);
  inset: unset;
  left: var(--space-4); right: var(--space-4);
}
.feature-popup[hidden] { display: none; }
.feature-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-3);
}
.feature-popup-badge {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb,25,118,210),0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.feature-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex; align-items: center;
  padding: 4px;
}
.feature-popup-icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
}
.feature-popup-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-4);
}
.feature-popup-list { width: 100%; margin-bottom: var(--space-5); }
.feature-popup-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-popup-item:last-child { border-bottom: none; }
.feature-popup-item-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb,25,118,210),0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-popup-item-title { font-weight: 600; font-size: var(--fs-small); color: var(--color-text); }
.feature-popup-item-sub   { font-size: var(--fs-caption); color: var(--color-text-muted); line-height: 1.4; margin-top: 2px; }
.feature-popup-cta { width: 100%; }

/* ── Blocked account screens ── */
.blocked-hero {
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(160deg, #FFF0F0 0%, var(--color-surface) 100%);
  border-bottom: 1.5px solid rgba(var(--color-danger-rgb,211,47,47),0.15);
  margin-bottom: var(--space-4);
}
.blocked-hero-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
  box-shadow: 0 4px 18px rgba(211,47,47,0.3);
}
.blocked-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-danger);
  margin-bottom: 4px;
}
.blocked-hero-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.blocked-hero-sub {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}
.blocked-reason-card {
  background: rgba(var(--color-danger-rgb,211,47,47),0.06);
  border: 1.5px solid rgba(var(--color-danger-rgb,211,47,47),0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin: 0 var(--space-4) var(--space-4);
}
.blocked-reason-label {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-caption); font-weight: 700;
  color: var(--color-danger);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.blocked-reason-text {
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.55;
}
.blocked-request-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin: 0 var(--space-4) var(--space-4);
}
.blocked-request-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--fs-body);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.blocked-request-desc {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
}
.blocked-pending-card {
  background: rgba(var(--color-info-rgb,2,136,209),0.06);
  border: 1.5px solid rgba(var(--color-info-rgb,2,136,209),0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  margin: 0 var(--space-4) var(--space-4);
  text-align: center;
}
.blocked-pending-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(var(--color-info-rgb,2,136,209),0.12);
  color: var(--color-info, #0288d1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
}
.blocked-pending-title {
  font-weight: 700; font-size: var(--fs-body);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.blocked-pending-desc {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.blocked-pending-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}
.blocked-pending-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-caption); color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}
.blocked-pending-step--done {
  color: var(--color-success);
  background: rgba(var(--color-success-rgb,56,142,60),0.08);
}
.blocked-pending-step--active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb,25,118,210),0.08);
  font-weight: 600;
}
.blocked-helpline {
  margin: 0 var(--space-4) var(--space-4);
  text-align: center;
}
.blocked-helpline-label {
  font-size: var(--fs-caption); font-weight: 700;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Login screen test account card ── */
.login-test-card {
  background: rgba(var(--color-primary-rgb,25,118,210),0.04);
  border: 1.5px solid rgba(var(--color-primary-rgb,25,118,210),0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.login-test-label {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-caption); font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.login-test-grid { display: flex; flex-direction: column; gap: 6px; }
.login-test-row {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.login-test-row--blocked {
  background: rgba(var(--color-danger-rgb,211,47,47),0.04);
  border-color: rgba(var(--color-danger-rgb,211,47,47),0.2);
}
.login-test-role {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  flex-shrink: 0;
}
.login-test-role--user   { background: rgba(var(--color-primary-rgb,25,118,210),0.12); color: var(--color-primary); }
.login-test-role--driver { background: rgba(var(--color-accent-rgb,0,150,136),0.12);   color: var(--color-accent);  }
.login-test-role--admin  { background: rgba(var(--color-warning-rgb,251,140,0),0.12);  color: var(--color-warning); }
.login-test-email {
  flex: 1;
  font-size: var(--fs-caption);
  font-family: monospace;
  color: var(--color-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.login-test-note {
  font-size: 10px; font-weight: 600;
  color: var(--color-success);
  flex-shrink: 0;
}
.login-test-note--blocked { color: var(--color-danger); }
.login-test-hint {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-3);
}
