:root {
  color-scheme: light;
  --ink: #12332f;
  --muted: #607773;
  --paper: #f4f8f7;
  --card: #ffffff;
  --green: #007f73;
  --turquoise: #00a693;
  --turquoise-hover: #008f80;
  --turquoise-soft: #e4f7f4;
  --turquoise-subtle: #f1fbf9;
  --lime: #c9f36b;
  --line: #d7e5e2;
  --line-strong: #b7d1cc;
  --danger: #b43b4a;
  --danger-soft: #fff0f2;
  --warning: #946200;
  --warning-soft: #fff6d8;
  --success: #187a55;
  --success-soft: #e7f7ef;
  --info-soft: #eaf5ff;
  --shadow-sm: 0 4px 16px rgba(18, 51, 47, 0.06);
  --shadow: 0 18px 50px rgba(18, 51, 47, 0.10);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(circle at 12% 0%, rgba(0,166,147,.08), transparent 28rem), var(--paper); color: var(--ink); min-height: 100vh; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
input, select, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: #829692; opacity: 1; }
:focus-visible { outline: 3px solid rgba(0, 166, 147, .32); outline-offset: 3px; }
::selection { background: rgba(0, 166, 147, .2); }

.shell { width: min(100%, 1280px); margin: 0 auto; padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: 120px; height: 40px; }
.brand-product { color: var(--green); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--green); background: var(--turquoise-subtle); }
.nav-links a.active { color: white; background: var(--turquoise); box-shadow: 0 4px 12px rgba(0,166,147,.2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-bar { display: flex; align-items: center; gap: 16px; margin: -10px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.account-bar > div { display: grid; gap: 3px; margin-right: auto; }
.account-bar span { color: var(--muted); font-size: 13px; }
.auth-form { display: flex; gap: 8px; }
.auth-form input { min-width: 210px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; background: white; color: var(--ink); }
.auth-form input:focus { border-color: var(--turquoise); outline: 3px solid rgba(0,166,147,.12); }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.grid { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 22px; min-height: calc(100vh - 120px); }
.panel { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.booking-panel { padding: 28px; display: flex; flex-direction: column; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 850; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 14ch; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.048em; margin-bottom: 16px; text-wrap: balance; }
h2 { font-size: 25px; letter-spacing: -.025em; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.6; }

.field-stack { display: grid; gap: 10px; margin: 20px 0; }
.autocomplete-field { position: relative; }
.input-wrap { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; background: var(--turquoise-subtle); border: 1px solid var(--line); border-radius: 16px; padding: 5px 14px; }
.input-wrap:focus-within { border-color: var(--turquoise); background: white; box-shadow: 0 0 0 3px rgba(0,166,147,.11); }
.input-wrap span { font-size: 14px; color: var(--green); }
.input-wrap input { width: 100%; border: 0; outline: 0; background: transparent; padding: 14px 0; color: var(--ink); }
.suggestions { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 270px; overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.suggestion { width: 100%; display: grid; gap: 3px; padding: 11px 12px; border: 0; border-radius: 11px; background: white; color: var(--ink); text-align: left; }
.suggestion:hover, .suggestion:focus-visible { background: #f2f4ee; outline: none; }
.suggestion strong, .suggestion small { display: block; }
.suggestion small { color: var(--muted); }
.maps-attribution { padding: 7px 12px 5px; color: var(--muted); font-size: 12px; text-align: right; }

.vehicle-list { display: grid; gap: 10px; margin: 2px 0 18px; }
.vehicle { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: white; border-radius: 16px; padding: 12px; color: var(--ink); }
.vehicle:hover { border-color: var(--line-strong); background: var(--turquoise-subtle); }
.vehicle.selected { border: 2px solid var(--turquoise); padding: 11px; background: var(--turquoise-soft); }
.vehicle-icon { display: grid; place-items: center; width: 46px; height: 40px; border-radius: 12px; background: var(--turquoise-soft); color: var(--green); }
.vehicle strong, .vehicle small { display: block; }
.vehicle small { color: var(--muted); margin-top: 3px; }
.vehicle-price { font-weight: 850; }

.primary { border: 0; border-radius: 16px; padding: 16px 18px; background: var(--turquoise); color: white; font-weight: 850; box-shadow: 0 10px 24px rgba(0,166,147,.22); transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.primary:hover { background: var(--turquoise-hover); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(0,143,128,.25); }
.primary:disabled { opacity: .52; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary { border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; background: white; color: var(--ink); font-weight: 750; }
.secondary:hover { border-color: var(--turquoise); background: var(--turquoise-subtle); color: var(--green); }
.secondary:disabled { opacity: .55; cursor: not-allowed; }
.status-card { margin-top: 16px; padding: 17px; border: 1px solid #a8ddd5; border-radius: 16px; background: var(--turquoise-soft); color: var(--ink); }
.status-card p { margin-bottom: 5px; color: var(--green); }
.status-card strong { font-size: 18px; }
.hidden { display: none !important; }

.map { position: relative; overflow: hidden; min-height: 610px; background-color: #dfe8db; background-image: linear-gradient(30deg, rgba(255,255,255,.55) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.55) 87.5%), linear-gradient(150deg, rgba(255,255,255,.55) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.55) 87.5%), linear-gradient(30deg, rgba(255,255,255,.55) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.55) 87.5%); background-size: 90px 156px; }
.map::before, .map::after { content: ""; position: absolute; background: var(--card); box-shadow: 0 0 0 8px rgba(255,255,255,.35); border-radius: 999px; }
.map::before { width: 130%; height: 22px; left: -14%; top: 46%; transform: rotate(-13deg); }
.map::after { width: 22px; height: 120%; left: 62%; top: -10%; transform: rotate(18deg); }
.map.map-live { background: #dfe8db; }
.map.map-live::before, .map.map-live::after { display: none; }
.map-canvas { position: absolute; z-index: 1; inset: 0; }
.map-chip { position: absolute; z-index: 3; top: 20px; left: 20px; padding: 11px 14px; border-radius: 999px; background: rgba(255,254,249,.92); backdrop-filter: blur(12px); box-shadow: 0 8px 26px rgba(16,36,31,.12); font-size: 13px; font-weight: 750; }
.pin { position: absolute; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 50% 12px; transform: rotate(-45deg); background: var(--ink); color: white; box-shadow: 0 10px 22px rgba(16,36,31,.25); }
.pin span { transform: rotate(45deg); }
.pin.pickup { left: 30%; top: 30%; background: var(--lime); color: var(--ink); }
.pin.dropoff { right: 19%; bottom: 25%; }
.car-dot { position: absolute; z-index: 3; width: 44px; height: 30px; display: grid; place-items: center; border-radius: 12px; background: white; box-shadow: 0 8px 18px rgba(16,36,31,.2); }
.car-one { left: 50%; top: 25%; transform: rotate(12deg); }
.car-two { left: 42%; bottom: 23%; transform: rotate(-18deg); }
.eta-card { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 20px; padding: 17px 19px; background: rgba(255,254,249,.96); box-shadow: var(--shadow); }
.eta-card p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.eta-pill { flex: 0 0 auto; background: var(--lime); border-radius: 14px; padding: 12px 14px; font-weight: 900; }
.map-empty { display: grid; place-items: center; }
.map-message { position: relative; z-index: 3; max-width: 380px; padding: 30px; text-align: center; border-radius: 24px; background: rgba(255,254,249,.94); box-shadow: var(--shadow); }
.map-message p { margin: 0; color: var(--muted); line-height: 1.6; }
.map-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 17px; background: var(--turquoise); color: white; font-size: 25px; }

.dashboard { display: grid; gap: 18px; }
.control-app { background: linear-gradient(180deg, #eaf5f3 0, var(--paper) 24rem); }
.control-app .shell { width: min(100%, 1440px); }
.control-app .dashboard-topbar { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.control-app .panel { box-shadow: var(--shadow-sm); }
.control-app .metric { box-shadow: var(--shadow-sm); }
.control-app .metric strong { color: var(--green); }
.dashboard-topbar { margin-bottom: 8px; }
.dashboard-content { display: grid; gap: 18px; }
.access-panel { padding: 26px; }
.access-panel p { margin: 0; color: var(--muted); }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.hero-row h1 { margin-bottom: 0; }
.live { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-weight: 700; font-size: 13px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.13); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.metric span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric strong { display: block; margin-top: 12px; font-size: 34px; letter-spacing: -.04em; }
.maps-guard-card { padding: 22px; }
.maps-guard-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.maps-guard-heading h2 { margin-bottom: 8px; }
.maps-usage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.maps-usage-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.maps-usage-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.usage-track { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: var(--line); }
.usage-track span { height: 100%; margin: 0; border-radius: inherit; background: var(--green); }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.table-card { padding: 22px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:hover { background: var(--turquoise-subtle); }
.badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 800; }
.badge.review { background: #fff0c8; color: #8a5c00; }
.empty { padding: 22px; text-align: center; color: var(--muted); }

.driver-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.driver-card { padding: 24px; }
.availability { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--turquoise-soft); }
.availability-detail { margin: 3px 0 0; font-size: 13px; }
.switch { width: 54px; height: 30px; padding: 3px; border: 0; border-radius: 999px; background: var(--turquoise); }
.switch::after { content: ""; display: block; width: 24px; height: 24px; margin-left: 24px; border-radius: 50%; background: white; transition: .2s; }
.switch.off { background: #aeb8b4; }
.switch.off::after { margin-left: 0; }
.offer { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; margin-bottom: 12px; }
.offer-route { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin: 13px 0; }
.offer-route p { margin-bottom: 9px; }
.offer-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.action-row { display: flex; gap: 8px; margin-top: 16px; }
.action-row .primary { flex: 1; }
.active-offer { background: #f5faed; }
.full-width { width: 100%; }
.verification-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; }
.verification-card span { color: var(--muted); }
.section-space { margin-top: 24px; }
.ride-origin { margin: 12px 0 3px; }
.ride-destination { margin: 0; font-size: 13px; }

@media (max-width: 860px) {
  .shell { padding: 16px; }
  .nav-links a { padding: 8px 10px; font-size: 12px; }
  .grid, .driver-layout, .content-grid { grid-template-columns: 1fr; }
  .account-bar, .auth-form { align-items: stretch; flex-direction: column; }
  .auth-form input { min-width: 0; }
  .map { min-height: 420px; order: -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .maps-usage-grid { grid-template-columns: 1fr; }
  .hero-row { align-items: start; flex-direction: column; }
  .control-app .table-card { padding: 18px; }
}

@media (max-width: 540px) {
  body { padding-bottom: 76px; }
  .shell { padding: 14px; }
  .topbar { align-items: center; }
  .brand-logo { width: 104px; }
  .brand-product { font-size: 11px; }
  .nav-links { position: fixed; z-index: 50; right: 10px; bottom: 10px; left: 10px; justify-content: space-around; padding: 6px; border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 12px 38px rgba(18,51,47,.2); backdrop-filter: blur(18px); }
  .nav-links a { flex: 1; padding: 10px 5px; font-size: 11px; text-align: center; white-space: nowrap; }
  .account-bar { margin-top: 0; }
  .booking-panel { padding: 22px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 27px; }
  .map { min-height: 330px; }
  .panel { border-radius: 22px; }
  h1 { font-size: clamp(34px, 11vw, 46px); }
  .primary { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
