/* ============================================
   Angel Travels Cab — App Layout v2
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: radial-gradient(ellipse at 30% 20%, #1a3a60 0%, #060d18 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

/* ---- Phone frame ---- */
.prototype-stage {
  width: var(--phone-width);
  max-width: 100%;
  height: min(calc(100vh - 32px), var(--phone-height));
  background: var(--color-surface);
  border-radius: 48px;
  box-shadow:
    0 30px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Dynamic island */
.prototype-stage::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 30;
  pointer-events: none;
}

/* Status bar strip */
.status-bar {
  height: 44px;
  background: var(--color-surface-elevated);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--space-6) var(--space-1);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  z-index: 20;
  transition: background var(--dur-base), color var(--dur-base);
}
.status-bar-time { letter-spacing: 0.02em; }
.status-bar-icons { display: flex; gap: 4px; align-items: center; font-size: 0.7rem; }

/* Dark status bar variant */
.status-bar-dark {
  background: transparent;
  color: rgba(255,255,255,0.9);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
}

/* ---- Screen stack ---- */
.screen-stack {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: var(--color-surface);
}
.screen.active { display: flex; }

#splash.screen {
  background: transparent;
}

/* Screens that start with dark hero need no status bar offset */
.screen-dark-top .screen-header {
  background: transparent;
  border: none;
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4);
  padding-bottom: calc(var(--nav-height) + var(--space-6));
}
.screen-scroll-no-nav {
  padding-bottom: var(--space-8);
}

/* ---- Screen header ---- */
.screen-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-elevated);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-height);
}
.screen-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  flex: 1;
  color: var(--color-primary);
}
.screen-header-right { margin-left: auto; }

/* ---- Splash — Flutter / Material-style brand + sheet (matches app tokens) ---- */
.splash-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.splash-hero {
  flex: 0 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-10);
  background: var(--grad-hero);
  background-size: 100% 100%;
  position: relative;
  animation: splash-hero-in 0.55s var(--ease-out) both;
}
.splash-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(10, 22, 40, 0.35));
  pointer-events: none;
}

@keyframes splash-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.splash-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 22px 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.splash-logo-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(198, 160, 53, 0.55);
  background: #1976d2;
}

/* Real logo image — circle-cropped to the angel emblem area */
.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* shift viewport to show just the circular angel emblem at left of the pill logo */
  object-position: 10% center;
  display: block;
}

.splash-logo-word {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.splash-company {
  margin: var(--space-4) 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.splash-tagline-ref {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent-soft);
}

/* Bottom sheet — content */
.splash-sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) var(--space-5) calc(var(--space-8) + var(--safe-bottom));
  background: var(--color-surface);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  margin-top: calc(var(--space-4) * -1);
  position: relative;
  z-index: 2;
  box-shadow: 0 -12px 40px rgba(12, 35, 64, 0.1);
  animation: splash-sheet-in 0.5s var(--ease-spring) 0.08s both;
}

@keyframes splash-sheet-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-border-strong);
  margin: var(--space-2) auto var(--space-4);
  opacity: 0.85;
}

.splash-slogan {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-align: center;
}

.splash-pan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) auto 0;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: var(--color-accent-bg);
  border: 1px solid rgba(198, 160, 53, 0.45);
  box-shadow: var(--shadow-xs);
}

.splash-pan-badge .icon {
  color: var(--color-accent);
  font-size: 18px;
}

.splash-support-card {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.splash-support-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.splash-support-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.splash-support-icon .icon {
  font-size: 22px;
  color: var(--color-primary);
}

.splash-support-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.splash-support-sub {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--color-text-faint);
}

.splash-support-247 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-align: center;
}

.splash-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.splash-cta {
  min-height: 54px;
  font-size: var(--fs-body);
  gap: var(--space-2);
}

.splash-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.splash-helpline {
  flex: 1 1 auto;
  min-width: 0;
}

.splash-email {
  flex: 0 1 auto;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(12, 35, 64, 0.25);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.splash-email:hover {
  color: var(--color-accent);
  border-bottom-color: rgba(198, 160, 53, 0.45);
}

/* ---- Hero block (inside screens) ---- */
.hero-block {
  background: var(--grad-hero);
  color: #fff;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}
.hero-block::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: rgba(198,160,53,0.1);
  border-radius: 50%;
}
.hero-block h2 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-tight);
}
.hero-block p { margin: 0; opacity: 0.82; font-size: var(--fs-small); }
.hero-block .hero-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.hero-meta-item { font-size: var(--fs-caption); opacity: 0.72; }
.hero-meta-item strong { display: block; font-size: var(--fs-small); color: var(--color-accent-soft); }

/* ---- Role selection ---- */
.role-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.role-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 88px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-surface-elevated);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-fast);
  text-align: left;
}
.role-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}
.role-card:active { transform: scale(0.98); }
.role-card-icon {
  font-size: 2.25rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.role-card-body { flex: 1; }
.role-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.role-card-desc {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.role-card-arrow { font-size: 1.25rem; opacity: 0.4; }

/* ---- Google Maps iframe embed ---- */
.map-embed-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
}
.map-embed-wrap--nearby { height: 200px; }
.map-embed-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-embed-gps-btn {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--fs-caption);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.map-embed-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
  animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50%       { transform: translate(-50%, -115%); }
}

/* ---- Location inputs card (step 2) ---- */
.location-inputs-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Each location row: icon | field | action */
.loc-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.loc-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.loc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-icon--origin {
  background: rgba(198,160,53,0.14);
  color: var(--color-accent);
}
.loc-icon--dest {
  background: rgba(25,118,210,0.12);
  color: var(--color-primary);
}
.loc-vline {
  width: 2px;
  height: 0; /* height set by swap row */
  background: var(--color-border);
}

/* Swap row between pickup and destination */
.loc-swap-row {
  display: flex;
  align-items: center;
  padding: 2px 0;
  gap: 0;
}
.loc-vline-mid {
  width: 2px;
  height: 14px;
  background: var(--color-border);
  margin: 0 auto;
  display: block;
  flex-shrink: 0;
  /* align under icon column */
  margin-left: 17px;
  margin-right: 0;
}
.loc-swap-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.loc-swap-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Field inside each row */
.loc-field {
  flex: 1;
  min-width: 0;
}
.loc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 3px;
}
.loc-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  padding: 0;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}
.loc-input::placeholder { color: var(--color-text-muted); font-weight: 400; }

/* GPS action button */
.loc-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: rgba(25,118,210,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s;
}
.loc-action-btn:hover {
  background: rgba(25,118,210,0.16);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
}
.loc-action-btn--ghost {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

/* ---- Stop remove button ---- */
.stop-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-danger);
  flex-shrink: 0;
  margin-top: 24px;
  transition: background 0.15s;
}
.stop-remove-btn:hover { background: var(--color-danger-bg); }

/* ---- Nearby drivers map overlay ---- */
.nearby-map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nearby-driver-dot {
  position: absolute;
  animation: driverFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.nearby-driver-dot:nth-child(2) { animation-delay: 0.8s; }
.nearby-driver-dot:nth-child(3) { animation-delay: 1.6s; }
@keyframes driverFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.nearby-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}
.nearby-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb, 25,118,210), 0.2);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* ---- Map placeholder ---- */
.map-placeholder {
  background: var(--grad-map);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}
.map-placeholder-sm  { height: 130px; }
.map-placeholder-md  { height: 180px; }
.map-placeholder-lg  { height: 220px; }
.map-placeholder-icon { font-size: 2rem; opacity: 0.6; }
.map-placeholder .map-pin {
  position: absolute;
  font-size: 1.75rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  filter: drop-shadow(0 2px 4px rgba(12,35,64,0.2));
}
.map-gps-btn {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: var(--color-surface-elevated);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Bottom navigation (MD3 NavigationBar) ---- */
.bottom-nav[hidden] { display: none !important; }
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--space-1) calc(var(--space-1) + var(--safe-bottom));
  background: var(--color-surface-elevated);
  border-top: 1px solid var(--color-border);
  z-index: 10;
  box-shadow: 0 -2px 16px rgba(12,35,64,0.07);
}
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-family: var(--font-body);
  cursor: pointer;
  padding: var(--space-1) 0;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
/* nav-pill wraps icon + label for the active indicator */
.bottom-nav button .nav-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 64px;
  padding: 4px 0 4px;
  border-radius: 16px;
  transition: background var(--dur-fast);
}
.bottom-nav button.active .nav-pill {
  background: rgba(12,35,64,0.1);
}
.bottom-nav button .nav-icon-wrap {
  color: var(--color-text-muted);
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  line-height: 1;
}
.bottom-nav button.active .nav-icon-wrap { color: var(--color-primary); transform: scale(1.05); }
.bottom-nav button .nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: color var(--dur-fast);
  line-height: 1;
}
.bottom-nav button.active .nav-label { color: var(--color-primary); }

/* ---- Staff hint (auth links) ---- */
.staff-hint {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.staff-hint button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: var(--font-body);
}

/* ---- Avatar edit overlay ---- */
.avatar-edit-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.avatar-edit-overlay:hover { background: rgba(0,0,0,0.6); }
.avatar-edit-overlay[hidden] { display: none !important; }

/* ---- Booking confirmation success ---- */
.success-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 8px 32px rgba(39,174,96,0.35), 0 0 0 8px rgba(39,174,96,0.1);
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
}
.success-circle::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(39,174,96,0.2);
  animation: successRing 1.2s ease-out 0.3s both;
}
.success-circle .icon { font-size: 52px; color: #fff; }
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes successRing {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ---- Approval status banner ---- */
.status-banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}
.status-banner-pending  { background: var(--color-warning-bg); border: 1.5px solid var(--color-warning); }
.status-banner-approved { background: var(--color-success-bg); border: 1.5px solid var(--color-success); }
.status-banner-rejected { background: var(--color-danger-bg);  border: 1.5px solid var(--color-danger); }
.status-banner-icon { flex-shrink: 0; line-height: 1; padding-top: 2px; color: inherit; }
.status-banner-body { flex: 1; }
.status-banner-title { font-weight: 700; font-size: var(--fs-body); margin-bottom: 2px; }
.status-banner-desc  { font-size: var(--fs-small); opacity: 0.85; }

/* ---- Quantity stepper (passengers count) ---- */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface-elevated);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.qty-btn:hover { border-color: var(--color-accent); }
.qty-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  color: var(--color-primary);
}

/* ---- Admin quick-action list ---- */
.quick-action {
  display: flex;
  align-items: center;
  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);
}
.quick-action:hover { border-color: var(--color-accent-soft); box-shadow: var(--shadow-soft); }
.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.qa-amber { background: var(--color-warning-bg); }
.qa-blue  { background: var(--color-info-bg); }
.qa-green { background: var(--color-success-bg); }
.qa-red   { background: var(--color-danger-bg); }
.quick-action-body { flex: 1; }
.quick-action-title { font-weight: 700; font-size: var(--fs-body); color: var(--color-text); }
.quick-action-desc  { font-size: var(--fs-caption); color: var(--color-text-muted); margin-top: 1px; }
.quick-action-arrow { opacity: 0.35; font-size: 1.1rem; }


/* ---- Screen slide-in transition ---- */
.screen-enter { animation: screenSlideIn 0.26s cubic-bezier(0.4,0,0.2,1) both; }
@keyframes screenSlideIn {
  from { transform: translateX(32px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---- Role card icon gradient backgrounds ---- */
.role-card:nth-child(1) .role-card-icon { background: var(--grad-hero); }
.role-card:nth-child(2) .role-card-icon { background: var(--grad-accent); }

/* ---- Quick-action icon size (for Material Symbol icons inside) ---- */
.quick-action-icon { font-size: 1.25rem; }
.quick-action-icon .icon { color: inherit; }
.qa-amber .icon { color: var(--color-warning); }
.qa-blue  .icon { color: var(--color-info); }
.qa-green .icon { color: var(--color-success); }
.qa-red   .icon { color: var(--color-danger); }

/* ---- Stat card icon color ---- */
.stat-card:nth-child(1) .stat-card-icon .icon { color: var(--color-warning); }
.stat-card:nth-child(2) .stat-card-icon .icon { color: var(--color-primary); }
.stat-card:nth-child(3) .stat-card-icon .icon { color: var(--color-info); }
.stat-card:nth-child(4) .stat-card-icon .icon { color: var(--color-danger); }

/* ---- Input field — subtle polish ---- */
.input::placeholder { color: var(--color-text-muted); opacity: 0.6; }

/* ---- Driver / User avatar initials ---- */
.driver-avatar {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Proto-overview scroll fix ---- */
#prototype-overview .screen-scroll { padding: 0; }

/* ---- Responsive ---- */
@media (max-width: 420px) {
  body { padding: 0; }
  .prototype-stage {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
  }
  .prototype-stage::before { display: none; }
  .status-bar { display: none; }
}
