﻿/* ============================================================
   CUTE | كيوت — App Design System v2
   Mobile-first, RTL-first, Warm & Premium ride-hailing UI.
   ============================================================ */

/* ---------- CSS Variables (Branding) ---------- */
:root {
  --cute-primary: #B9F20D;
  --cute-primary-hover: #A8DC0C;
  --cute-primary-soft: #f6ff99;
  --cute-primary-dark: #8AB800;

  --cute-bg: #F7F6F1;
  --cute-surface: #FFFFFF;
  --cute-surface-soft: #F1F0EB;
  --cute-text: #121212;
  --cute-muted: #6D6D6D;
  --cute-border: #E7E5DF;

  --cute-success: #22C55E;
  --cute-success-soft: #E2F8EA;
  --cute-warning: #F59E0B;
  --cute-warning-soft: #FFF3D6;
  --cute-danger: #EF4444;
  --cute-danger-soft: #FDE6E6;
  --cute-info: #3B82F6;
  --cute-info-soft: #DBEAFE;

  --cute-radius-xl: 30px;
  --cute-radius-lg: 24px;
  --cute-radius-md: 18px;
  --cute-radius-sm: 12px;
  --cute-radius-pill: 999px;

  --cute-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --cute-shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --cute-shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --cute-font: "Cairo", "Tajawal", "Inter", system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--cute-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cute-text);
  background: var(--cute-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.cute-h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.cute-h2 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.cute-h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.cute-h4 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.cute-body { font-size: 16px; font-weight: 400; }
.cute-body-sm { font-size: 14px; font-weight: 400; }
.cute-caption { font-size: 12px; font-weight: 500; color: var(--cute-muted); }
.cute-price-lg { font-size: 36px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cute-price-md { font-size: 24px; font-weight: 700; line-height: 1; }
.cute-price-sm { font-size: 18px; font-weight: 700; }
.cute-bold { font-weight: 700; }
.cute-semibold { font-weight: 600; }
.cute-muted { color: var(--cute-muted); }
.cute-center { text-align: center; }
.cute-dir-rtl { direction: rtl; }
.cute-dir-ltr { direction: ltr; }

/* ---------- Layout Utilities ---------- */
.cute-flex { display: flex; }
.cute-flex-col { display: flex; flex-direction: column; }
.cute-flex-center { display: flex; align-items: center; justify-content: center; }
.cute-flex-between { display: flex; align-items: center; justify-content: space-between; }
.cute-items-center { align-items: center; }
.cute-gap-4 { gap: 4px; }
.cute-gap-6 { gap: 6px; }
.cute-gap-8 { gap: 8px; }
.cute-gap-10 { gap: 10px; }
.cute-gap-12 { gap: 12px; }
.cute-gap-16 { gap: 16px; }
.cute-gap-20 { gap: 20px; }
.cute-flex-1 { flex: 1; }
.cute-hidden { display: none !important; }

/* ---------- CUTE Button (Primary CTA) ---------- */
.cute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  border: none;
  border-radius: var(--cute-radius-md);
  background: var(--cute-primary);
  color: var(--cute-text);
  font-family: var(--cute-font);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cute-btn:active { transform: scale(.97); background: var(--cute-primary-hover); }
.cute-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cute-btn-sm { height: 48px; font-size: 16px; border-radius: var(--cute-radius-sm); }
.cute-btn-outline {
  background: transparent;
  border: 2px solid var(--cute-border);
  color: var(--cute-text);
}
.cute-btn-outline:active { background: var(--cute-surface-soft); }
.cute-btn-danger { background: var(--cute-danger); color: #fff; }
.cute-btn-ghost { background: transparent; color: var(--cute-muted); }
.cute-btn-ghost:active { background: var(--cute-surface-soft); }

/* ---------- Circle Action Button ---------- */
.cute-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cute-surface);
  border: none;
  box-shadow: var(--cute-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  color: var(--cute-text);
  font-size: 22px;
  flex-shrink: 0;
}
.cute-circle-btn:active { transform: scale(.92); }
.cute-circle-btn svg, .cute-circle-btn img { width: 24px; height: 24px; }

/* ---------- Card ---------- */
.cute-card {
  background: var(--cute-surface);
  border-radius: var(--cute-radius-lg);
  box-shadow: var(--cute-shadow-sm);
  overflow: hidden;
}

/* ---------- Bottom Sheet ---------- */
.cute-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--cute-surface);
  border-radius: var(--cute-radius-xl) var(--cute-radius-xl) 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,.12);
  z-index: 700;
  max-height: 85vh;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
  padding-bottom: calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.cute-sheet-collapsed { transform: translateY(calc(100% - 80px)); }
.cute-sheet-expanded { transform: translateY(0); }

.cute-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: var(--cute-radius-pill);
  background: var(--cute-border);
  margin: 10px auto 0;
}
.cute-sheet-pad { padding: 16px 20px; }

/* ---------- Search Box ---------- */
.cute-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 68px;
  padding: 0 20px;
  background: var(--cute-surface-soft);
  border-radius: var(--cute-radius-lg);
  border: none;
  font-size: 18px;
  color: var(--cute-text);
  transition: background .15s;
}
.cute-search-box::placeholder { color: var(--cute-muted); font-weight: 500; }
.cute-search-box:focus { outline: none; background: var(--cute-border); }
.cute-search-box svg { width: 22px; height: 22px; color: var(--cute-muted); flex-shrink: 0; }

/* ---------- Address Fields (From / To) ---------- */
.cute-address-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--cute-surface-soft);
  border: none;
  border-radius: var(--cute-radius-md);
  text-align: start;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--cute-font);
}
.cute-address-field:active { background: var(--cute-border); }
.cute-address-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cute-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  position: absolute;
  top: 8px;
}
.cute-address-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--cute-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.cute-address-value.placeholder { color: var(--cute-muted); font-weight: 500; }

/* ---------- Route Top Card ---------- */
.cute-route-card {
  position: absolute;
  top: calc(12px + var(--safe-top));
  left: 16px; right: 16px;
  z-index: 600;
  background: var(--cute-surface);
  border-radius: var(--cute-radius-lg);
  box-shadow: var(--cute-shadow-md);
  padding: 16px 18px;
}
.cute-route-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}
.cute-route-row + .cute-route-row { border-top: 1px solid var(--cute-surface-soft); }
.cute-route-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.cute-route-dot-pickup { background: var(--cute-primary); }
.cute-route-dot-dest { background: var(--cute-danger); }
.cute-route-text { flex: 1; font-size: 15px; font-weight: 500; min-width: 0; }
.cute-route-text span { display: block; font-size: 12px; color: var(--cute-muted); font-weight: 400; }
.cute-route-eta { font-size: 14px; color: var(--cute-muted); font-weight: 600; white-space: nowrap; }

/* ---------- Service Tile ---------- */
.cute-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cute-service-tile {
  background: var(--cute-surface-soft);
  border-radius: var(--cute-radius-lg);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background .15s;
  border: 2px solid transparent;
}
.cute-service-tile:active { background: var(--cute-border); }
.cute-service-tile.active { border-color: var(--cute-primary); background: var(--cute-primary-soft); }
.cute-service-tile .tile-icon { font-size: 28px; }
.cute-service-tile .tile-label { font-size: 14px; font-weight: 700; }
.cute-service-tile .tile-sub { font-size: 12px; color: var(--cute-muted); }

/* ---------- Ride Option Card (selected vehicle) ---------- */
.cute-ride-card {
  background: var(--cute-surface);
  border: 2px solid var(--cute-border);
  border-radius: var(--cute-radius-xl);
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s;
}
.cute-ride-card.active { border-color: var(--cute-primary); }
.cute-ride-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cute-ride-card-icon { font-size: 36px; flex-shrink: 0; }
.cute-ride-card-info { flex: 1; }
.cute-ride-card-name { font-size: 17px; font-weight: 700; }
.cute-ride-card-meta { font-size: 13px; color: var(--cute-muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cute-ride-card-desc { font-size: 13px; color: var(--cute-muted); margin-top: 4px; }
.cute-ride-card-price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.cute-ride-card-price .currency { font-size: 12px; font-weight: 500; color: var(--cute-muted); }

/* ---------- Ride Row (compact option) ---------- */
.cute-ride-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cute-surface-soft);
  cursor: pointer;
}
.cute-ride-row:last-child { border-bottom: none; }
.cute-ride-row-icon { font-size: 28px; flex-shrink: 0; }
.cute-ride-row-info { flex: 1; }
.cute-ride-row-name { font-size: 15px; font-weight: 600; }
.cute-ride-row-meta { font-size: 12px; color: var(--cute-muted); display: flex; align-items: center; gap: 6px; }
.cute-ride-row-price { font-size: 16px; font-weight: 700; }
.cute-ride-row-price .currency { font-size: 11px; font-weight: 500; color: var(--cute-muted); }

/* ---------- Price Selector ---------- */
.cute-price-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
}
.cute-price-minus, .cute-price-plus {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cute-surface);
  box-shadow: var(--cute-shadow-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s;
  font-size: 28px;
  font-weight: 300;
  color: var(--cute-text);
  flex-shrink: 0;
}
.cute-price-minus:active, .cute-price-plus:active { transform: scale(.9); }
.cute-price-value {
  text-align: center;
  min-width: 120px;
}
.cute-price-value .amount {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cute-price-value .currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--cute-muted);
  display: block;
  margin-top: 2px;
}
.cute-price-recommended {
  text-align: center;
  font-size: 13px;
  color: var(--cute-muted);
  margin-top: 4px;
}

/* ---------- Toggle Switch ---------- */
.cute-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.cute-toggle input { display: none; }
.cute-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--cute-border);
  border-radius: var(--cute-radius-pill);
  transition: background .2s;
}
.cute-toggle input:checked + .cute-toggle-track { background: var(--cute-primary); }
.cute-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cute-surface);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s;
}
.cute-toggle input:checked ~ .cute-toggle-thumb { transform: translateX(22px); }

/* ---------- Status Pill ---------- */
.cute-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--cute-radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.cute-pill-success { background: var(--cute-success-soft); color: var(--cute-success); }
.cute-pill-warning { background: var(--cute-warning-soft); color: var(--cute-warning); }
.cute-pill-danger { background: var(--cute-danger-soft); color: var(--cute-danger); }
.cute-pill-info { background: var(--cute-info-soft); color: var(--cute-info); }
.cute-pill-muted { background: var(--cute-surface-soft); color: var(--cute-muted); }
.cute-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cute-pill.pulse .dot { animation: cutePulse 1.2s infinite; }

/* ---------- Driver Card ---------- */
.cute-driver-card {
  background: var(--cute-surface);
  border-radius: var(--cute-radius-lg);
  padding: 16px;
  box-shadow: var(--cute-shadow-sm);
}
.cute-driver-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cute-driver-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cute-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.cute-driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cute-driver-name { font-size: 16px; font-weight: 700; }
.cute-driver-rating { font-size: 13px; color: var(--cute-muted); display: flex; align-items: center; gap: 4px; }
.cute-driver-vehicle { font-size: 13px; color: var(--cute-muted); margin-top: 4px; }
.cute-driver-price { font-size: 22px; font-weight: 700; }

/* ---------- Recent Place Item ---------- */
.cute-place-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
}
.cute-place-item + .cute-place-item { border-top: 1px solid var(--cute-surface-soft); }
.cute-place-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cute-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--cute-muted);
}
.cute-place-text { flex: 1; min-width: 0; }
.cute-place-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cute-place-addr { font-size: 12px; color: var(--cute-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Map ---------- */
.cute-map-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40vh;
  min-height: 280px;
  z-index: 1;
}
.cute-map-container.route-map { height: 45vh; }
#map, .cute-map { width: 100%; height: 100%; }
.leaflet-container { font-family: var(--cute-font); }
.leaflet-popup-content-wrapper { border-radius: var(--cute-radius-sm); }
.leaflet-control-zoom a { color: var(--cute-text) !important; }

/* ---------- CUTE Map Markers ---------- */
.cute-marker-pickup {
  width: 36px; height: 36px;
  background: var(--cute-text);
  border-radius: 50%;
  border: 3px solid var(--cute-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.cute-marker-dest {
  width: 36px; height: 36px;
  background: var(--cute-danger);
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.cute-marker-driver {
  width: 40px; height: 40px;
  background: var(--cute-primary);
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.cute-marker-gps {
  width: 16px; height: 16px;
  background: var(--cute-info);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cute-gps-accuracy {
  width: 40px; height: 40px;
  background: rgba(59,130,246,.15);
  border-radius: 50%;
  border: 2px solid rgba(59,130,246,.3);
  transform: translate(-12px, -12px);
}

/* ---------- Floating Map Controls ---------- */
.cute-map-control {
  position: absolute;
  z-index: 500;
}
.cute-menu-btn {
  position: absolute;
  top: calc(18px + var(--safe-top));
  left: 16px;
  z-index: 500;
}
.cute-gps-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 500;
}
.cute-back-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 500;
}

/* ---------- Bottom Sheet Pickup Card (floating on map) ---------- */
.cute-pickup-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  background: var(--cute-surface);
  border-radius: var(--cute-radius-md);
  box-shadow: var(--cute-shadow-md);
  padding: 12px 16px;
  min-width: 55%;
  max-width: 65%;
  pointer-events: none;
}
.cute-pickup-card .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cute-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cute-pickup-card .name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ---------- Search Overlay ---------- */
.cute-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--cute-bg);
  z-index: 800;
  display: none;
  flex-direction: column;
}
.cute-search-overlay.open { display: flex; }
.cute-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 16px 14px;
  background: var(--cute-surface);
}
.cute-search-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: var(--cute-surface-soft);
  border: none;
  border-radius: var(--cute-radius-sm);
  font-size: 16px;
  color: var(--cute-text);
}
.cute-search-input:focus { outline: none; }
.cute-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}
.cute-search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cute-surface-soft);
  cursor: pointer;
}
.cute-search-result:active { background: var(--cute-surface-soft); }

/* ---------- Activity Bottom Sheet States ---------- */
.cute-sheet-searching {
  text-align: center;
  padding: 40px 20px;
}
.cute-sheet-searching .spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--cute-surface-soft);
  border-top-color: var(--cute-primary);
  border-radius: 50%;
  animation: cuteSpin .8s linear infinite;
  margin: 0 auto 16px;
}
.cute-sheet-searching .text { font-size: 16px; font-weight: 600; color: var(--cute-text); }
.cute-sheet-searching .sub { font-size: 14px; color: var(--cute-muted); margin-top: 4px; }

/* ---------- Auto Accept Row ---------- */
.cute-auto-accept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--cute-surface-soft);
}
.cute-auto-accept-text { font-size: 14px; font-weight: 500; color: var(--cute-muted); flex: 1; margin-right: 12px; }

/* ---------- Action Bar (fixed bottom) ---------- */
.cute-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 800;
  background: var(--cute-surface);
  padding: 12px 20px calc(16px + var(--safe-bottom));
  box-shadow: 0 -2px 20px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cute-action-bar .cute-btn { flex: 1; }
.cute-action-bar .cute-filter-btn {
  width: 56px; height: 56px;
  border-radius: var(--cute-radius-md);
  background: var(--cute-surface-soft);
  border: 1px solid var(--cute-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--cute-text);
}

/* ---------- Skeleton Loading ---------- */
.cute-skeleton {
  background: linear-gradient(90deg, var(--cute-surface-soft) 25%, var(--cute-border) 50%, var(--cute-surface-soft) 75%);
  background-size: 200% 100%;
  animation: cuteShimmer 1.5s infinite;
  border-radius: var(--cute-radius-sm);
}
@keyframes cuteShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Animations ---------- */
@keyframes cuteSpin { to { transform: rotate(360deg); } }
@keyframes cutePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes cuteSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cuteFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cute-anim-slide-up { animation: cuteSlideUp .3s ease forwards; }
.cute-anim-fade-in { animation: cuteFadeIn .25s ease forwards; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cute-map-container { height: 45vh; min-height: 360px; }
  .cute-sheet { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .cute-sheet-collapsed { transform: translateX(-50%) translateY(calc(100% - 80px)); }
  .cute-sheet-expanded { transform: translateX(-50%) translateY(0); }
  .cute-action-bar { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: var(--cute-radius-lg) var(--cute-radius-lg) 0 0; }
  .cute-route-card { max-width: 448px; left: 50%; right: auto; transform: translateX(-50%); }
  .cute-btn { max-width: 360px; }
}
@media (min-width: 1024px) {
  .cute-map-container { height: 55vh; }
}

/* ---------- Hidden utility ---------- */
.cute-flex-hide { display: none; }

/* ============================================================
   Backward Compatibility — legacy class names used by
   existing Passenger pages (Offers, ActiveTrip, Trips, Profile)
   and Admin/Driver pages.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: var(--cute-radius-pill);
  font-family: var(--cute-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--cute-primary); color: var(--cute-text); }
.btn-pink { background: var(--cute-danger); color: #fff; }
.btn-red { background: var(--cute-danger); color: #fff; }
.btn-outline { background: transparent; color: var(--cute-text); border: 2px solid var(--cute-border); }
.btn-ghost { background: transparent; color: var(--cute-muted); }
.btn-soft-green { background: var(--cute-success-soft); color: var(--cute-success); }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 12px; border-radius: var(--cute-radius-pill); line-height: 1; }

.card {
  background: var(--cute-surface);
  border-radius: var(--cute-radius-lg);
  box-shadow: var(--cute-shadow-sm);
  padding: 18px;
  border: 1px solid var(--cute-surface-soft);
}
.card-flush { padding: 0; overflow: hidden; }

.sheet {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  background: var(--cute-surface);
  border-radius: var(--cute-radius-lg) var(--cute-radius-lg) 0 0;
  box-shadow: var(--cute-shadow-lg);
  padding: 10px 18px calc(18px + var(--safe-bottom));
  z-index: 40;
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.sheet.open { transform: translateY(0); }
.sheet-grab {
  width: 44px; height: 5px; border-radius: var(--cute-radius-pill);
  background: var(--cute-border); margin: 6px auto 14px;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(247,246,241,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cute-surface-soft);
}
.appbar .brand {
  display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px;
  color: var(--cute-text); text-decoration: none;
}
.appbar .brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--cute-text); display: grid; place-items: center; color: var(--cute-primary); font-weight: 900; }
.appbar .spacer { flex: 1; }

.tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: var(--cute-surface);
  border-top: 1px solid var(--cute-surface-soft);
  padding: 6px 8px calc(6px + var(--safe-bottom));
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cute-border);
  text-decoration: none;
  border-radius: 12px;
  transition: color .12s, background .12s;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .tab .t-ico { font-size: 20px; line-height: 1; }
.tabbar .tab.active { color: var(--cute-text); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  background: var(--cute-text); flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--cute-surface-soft); border-top-color: var(--cute-primary);
  animation: cuteSpin .7s linear infinite;
}
.loader-block { display: grid; place-items: center; padding: 40px; }

.text-muted { color: var(--cute-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.page-pad { padding: 16px; }
.page-pad-bottom { padding-bottom: calc(90px + var(--safe-bottom)); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--cute-surface-soft);
  border-radius: var(--cute-radius-sm);
  font-family: var(--cute-font);
  font-size: 15px;
  color: var(--cute-text);
  background: var(--cute-surface);
  transition: border-color .12s, box-shadow .12s;
  appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cute-primary);
  box-shadow: 0 0 0 4px var(--cute-primary-soft);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--cute-muted); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(18,18,18,.5); z-index: 60; display: none; align-items: flex-end; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 460px; background: var(--cute-surface); border-radius: var(--cute-radius-lg) var(--cute-radius-lg) 0 0; padding: 24px 20px calc(24px + var(--safe-bottom)); max-height: 86vh; overflow: auto; }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }

.price { font-weight: 700; font-size: 20px; color: var(--cute-text); }
.price .cur { font-size: 13px; font-weight: 700; color: var(--cute-muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--cute-radius-pill); font-size: 12px; font-weight: 700; }
.pill-green { background: var(--cute-success-soft); color: var(--cute-success); }
.pill-amber { background: var(--cute-warning-soft); color: var(--cute-warning); }
.pill-red { background: var(--cute-danger-soft); color: var(--cute-danger); }

.divider { height: 1px; background: var(--cute-surface-soft); margin: 14px 0; }

.map-wrap { position: relative; width: 100%; height: 100%; min-height: 320px; }
.map { width: 100%; height: 100%; }

/* ---------- Login / Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 22px; background: linear-gradient(160deg, var(--cute-primary-soft), var(--cute-surface) 40%); }
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo .logo {
  width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 22px;
  background: var(--cute-text);
  color: var(--cute-primary); font-size: 34px; font-weight: 900; display: grid; place-items: center;
  box-shadow: var(--cute-shadow-md);
}
.auth-logo .brand-name { font-weight: 900; font-size: 26px; }
.auth-links { text-align: center; margin-top: 12px; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--cute-surface-soft); border-radius: var(--cute-radius-pill); padding: 5px; margin-bottom: 22px;
}
.seg button {
  padding: 11px; border: none; border-radius: var(--cute-radius-pill); background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 14px; color: var(--cute-muted); transition: all .15s;
}
.seg button.active { background: var(--cute-surface); color: var(--cute-primary); box-shadow: var(--cute-shadow-sm); }
