/* =====================================================================
   VanWala.net — Design system (mobile-first)
   Red = brand / action, White = calm surfaces, Navy ink = text,
   Green only for "safe / done" confirmations.
   ===================================================================== */
:root {
  --brand-50: #fff3f3; --brand-100: #ffe1e2; --brand-200: #ffc4c6; --brand-300: #ff9ea2; --brand-400: #f8646b;
  --brand-500: #ef3a43; --brand-600: #e3242e; --brand-700: #bf1922; --brand-800: #96141b; --brand-900: #5e0c11;
  --green-50: #ecfdf3; --green-100: #d1fadf; --green-500: #22b45c; --green-600: #16954a; --green-700: #0f6d33;
  --amber-50: #fffbeb; --amber-400: #ffb020; --amber-500: #f59e0b; --amber-700: #b45309;
  --red-50: #fef2f2; --red-500: #dc2626; --red-700: #b91c1c;
  --navy-50: #f3f5f9; --navy-100: #e3e8f1; --navy-700: #24304a; --navy-900: #0d1526;
  --ink: #0d1526; --ink-2: #39435a; --muted: #737c8f; --line: #ebedf2; --line-2: #f2f3f6;
  --bg: #f7f7f9; --card: #ffffff;
  --primary: var(--brand-600); --primary-dark: var(--brand-700); --accent: var(--green-500);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05);
  --shadow: 0 6px 20px rgba(13, 21, 38, .07);
  --shadow-lg: 0 20px 50px rgba(13, 21, 38, .12);
  --shadow-red: 0 10px 24px rgba(227, 36, 46, .28);
  --sidebar-w: 268px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.public { background: #fff; }
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.lucide { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: var(--brand-100); color: var(--brand-900); }

.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-danger { color: var(--red-700) !important; }
.text-success { color: var(--green-600) !important; }
.text-brand { color: var(--primary) !important; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap-sm { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.inline-form { display: inline; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--card); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; min-height: 44px;
  font: 700 14.5px/1.2 var(--font); color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: 12px; cursor: pointer; transition: .18s ease; text-align: center; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--fg); }
.btn:active { transform: none; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { --bg: var(--primary); --fg: #fff; --bd: var(--primary); box-shadow: var(--shadow-red); }
.btn-primary:hover { --bg: var(--primary-dark); --bd: var(--primary-dark); box-shadow: 0 12px 28px rgba(227, 36, 46, .34); }
/* secondary solid (confirm / accept / approve) — navy ink keeps the palette red + white */
.btn-success { --bg: var(--navy-900); --fg: #fff; --bd: var(--navy-900); }
.btn-success:hover { --bg: #1d2840; --bd: #1d2840; }
.btn-danger { --bg: #fff; --fg: var(--red-700); --bd: #f5b5b5; }
.btn-danger:hover { --bg: var(--red-50); }
.btn-warning { --bg: var(--amber-500); --fg: #fff; --bd: var(--amber-500); }
.btn-outline { --bg: #fff; --fg: var(--primary); --bd: var(--brand-200); }
.btn-outline:hover { --bg: var(--brand-50); --bd: var(--brand-300); }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--ink-2); }
.btn-ghost:hover { --bg: var(--brand-50); --fg: var(--primary); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--primary); --bd: #fff; }
.btn-glass { --bg: rgba(255,255,255,.14); --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn-glass:hover { --bg: rgba(255,255,255,.24); --fg: #fff; }
.btn-pill { border-radius: 999px; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn-xl { padding: 18px 30px; min-height: 64px; font-size: 19px; border-radius: 18px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink-2); border-radius: 12px; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--brand-50); color: var(--primary); }
.link-btn { border: 0; background: none; color: var(--primary); font: 700 13px var(--font); cursor: pointer; padding: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.req::after { content: ' *'; color: var(--primary); }
.form-control, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=month], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; min-height: 46px; font: 500 15px var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: .15s; appearance: none; }
textarea { min-height: 96px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737c8f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(227, 36, 46, .12); }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red-500); }
.field-error { color: var(--red-700); font-size: 12.5px; margin-top: 5px; display: block; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 5px; display: block; }
.input-icon { position: relative; }
.input-icon > .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > input, .input-icon > select { padding-left: 42px; }
.input-icon .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; background: #fff; }
.chip-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
input[type=file] { font: 500 13px var(--font); }
input[type=file]::file-selector-button { font: 700 13px var(--font); padding: 7px 12px; margin-right: 10px; border-radius: 9px; border: 1.5px solid var(--brand-200); background: var(--brand-50); color: var(--primary); cursor: pointer; }

/* ---------- Alerts / badges ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.alert span { flex: 1; }
.alert-success { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.alert-error, .alert-danger { background: var(--red-50); color: var(--red-700); border-color: #fecaca; }
.alert-warning { background: var(--amber-50); color: var(--amber-700); border-color: #fde68a; }
.alert-info { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-100); }
.alert-close { background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 2px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-success { background: var(--green-50); color: var(--green-700); }
.badge-warning { background: var(--amber-50); color: var(--amber-700); }
.badge-info { background: var(--navy-50); color: var(--navy-700); }
.badge-danger { background: var(--red-50); color: var(--red-700); }
.badge-muted { background: var(--line-2); color: var(--ink-2); }
.badge-verified { background: var(--green-500); color: #fff; }
.badge-brand { background: var(--primary); color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 0; }
.card-title .lucide { color: var(--primary); }
.card-body { padding: 18px; }
.card-body.p-0 { padding: 0; }
.card-footer { padding: 14px 18px; border-top: 1px solid var(--line-2); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid > .card { margin-bottom: 0; }

/* stat cards */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); min-width: 0; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: var(--brand-50); opacity: .7; }
.stat > * { position: relative; z-index: 1; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); }
.stat-icon.green { background: var(--green-50); color: var(--green-600); }
.stat-icon.amber { background: var(--amber-50); color: var(--amber-700); }
.stat-icon.red { background: var(--primary); color: #fff; }
.stat-value { font-size: 22px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #fafafb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fffafa; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-user strong { display: block; }
.cell-user small { color: var(--muted); }

/* mobile: tables → stacked cards */
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .table.stack td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; text-align: left; flex-shrink: 0; }
  .table.stack td.cell-full { display: block; text-align: left; }
  .table.stack td.cell-full::before { display: none; }
  .table.stack .actions { justify-content: flex-end; }
}

/* ---------- Misc components ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--brand-100); }
.avatar-text { display: inline-grid; place-items: center; color: var(--brand-700); font-weight: 800; background: linear-gradient(135deg, var(--brand-100), #ffeede); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .lucide { color: var(--brand-300); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); font-size: 17px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h2 { font-size: 22px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.tabs a:hover { border-color: var(--brand-200); color: var(--primary); }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-red); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters > * { flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 18px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); background: #fff; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: #fffafa; }
.list-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); flex-shrink: 0; }
.list-icon.green { background: var(--green-50); color: var(--green-600); }
.list-icon.amber { background: var(--amber-50); color: var(--amber-700); }
.list-icon.red { background: var(--primary); color: #fff; }
.list-title { font-weight: 700; display: block; }
.list-sub { color: var(--muted); font-size: 13px; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); border-radius: 99px; transition: width .3s; }

/* status stepper: Waiting → Picked Up → On the Way → Dropped Off */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative; margin: 6px 0 4px; }
.step { text-align: center; position: relative; padding-top: 4px; }
.step::before { content: ''; position: absolute; top: 24px; left: -50%; right: 50%; height: 4px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step-dot { position: relative; z-index: 1; width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--muted); transition: .3s; }
.step-label { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.step-time { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.step.done .step-dot { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.step.done::before { background: var(--green-500); }
.step.active::before { background: linear-gradient(90deg, var(--green-500), var(--primary)); }
.step.done .step-label { color: var(--green-700); }
.step.active .step-dot { background: var(--primary); border-color: var(--brand-200); color: #fff; animation: pulse 1.8s infinite; }
.step.active .step-label { color: var(--primary); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 36, 46, .35); } 50% { box-shadow: 0 0 0 10px rgba(227, 36, 46, 0); } }

.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(227, 36, 46, .6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(227, 36, 46, .55); } 70% { box-shadow: 0 0 0 9px rgba(227, 36, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 36, 46, 0); } }

/* maps */
.map { width: 100%; height: 340px; border-radius: var(--radius); border: 1px solid var(--line); background: #eef0f3; z-index: 0; }
.map-lg { height: 460px; }
.map-sm { height: 240px; }
.van-marker { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(227, 36, 46, .5); }
.pin-marker { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: var(--shadow); }
.pin-green { background: var(--green-500); } .pin-red { background: var(--primary); } .pin-amber { background: var(--amber-500); }
.map-search { display: flex; gap: 8px; margin-bottom: 8px; }
.map-search input { flex: 1; }

/* upload tiles */
.upload-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.upload-tile { border: 1.5px dashed var(--brand-200); border-radius: var(--radius); padding: 16px; background: #fffafa; display: flex; flex-direction: column; gap: 10px; }
.upload-tile.done { border-style: solid; border-color: var(--green-100); background: var(--green-50); }
.upload-tile.rejected { border-style: solid; border-color: #fecaca; background: var(--red-50); }
.upload-tile-head { display: flex; align-items: center; gap: 10px; }
.upload-tile-head .list-icon { width: 38px; height: 38px; }
.upload-tile input[type=file] { font-size: 13px; width: 100%; }
.upload-preview { border-radius: 10px; overflow: hidden; background: #000; max-height: 200px; }
.upload-preview img, .upload-preview video { width: 100%; max-height: 200px; object-fit: cover; }
.doc-media { border-radius: 12px; overflow: hidden; background: #14161c; aspect-ratio: 16/10; display: grid; place-items: center; }
.doc-media img, .doc-media video { width: 100%; height: 100%; object-fit: contain; }

/* driver cards */
.driver-card { display: flex; flex-direction: column; overflow: hidden; transition: .2s; }
.driver-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.driver-cover { height: 160px; background: linear-gradient(135deg, var(--brand-100), #fff1e6); position: relative; overflow: hidden; }
.driver-cover img { width: 100%; height: 100%; object-fit: cover; }
.driver-cover .badge { position: absolute; top: 12px; left: 12px; }
.driver-info { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.driver-head { display: flex; align-items: center; gap: 12px; margin-top: -42px; }
.driver-head .avatar { border: 4px solid #fff; box-shadow: var(--shadow); }
.driver-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 13px; }
.driver-meta span { display: inline-flex; align-items: center; gap: 5px; }
.driver-meta .lucide { color: var(--primary); }
.rating { color: var(--amber-500); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rating .lucide { fill: currentColor; }

/* bid cards */
.bid { display: grid; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.bid:last-child { border-bottom: 0; }
.bid-amount { font-size: 22px; font-weight: 800; color: var(--primary); }
.fee-note { font-size: 12px; color: var(--muted); }

/* passenger rows (driver trip) */
.pax { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.pax-head { display: flex; align-items: center; gap: 12px; }
.pax-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pax.status-picked_up, .pax.status-on_the_way { border-color: var(--brand-200); box-shadow: 0 0 0 3px var(--brand-50); }
.pax.status-dropped_off { background: var(--green-50); border-color: var(--green-100); }
.pax.status-absent { opacity: .65; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .t-dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); }
.timeline .t-dot.green { background: var(--green-50); color: var(--green-600); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-end; justify-content: center; background: rgba(13, 21, 38, .5); padding: 0; }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); animation: up .2s ease; border-top: 4px solid var(--primary); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.modal-head h3 .lucide { color: var(--primary); }
.modal-body { padding: 18px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* toast */
.toast-stack { position: fixed; z-index: 2000; right: 12px; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: #fff; color: var(--ink); padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-left: 4px solid var(--primary); animation: up .25s ease; }
.toast .t-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); display: grid; place-items: center; flex-shrink: 0; color: var(--primary); }
.toast strong { display: block; font-size: 14px; }
.toast p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.toast a { color: var(--primary); font-size: 13px; font-weight: 700; }

/* permission card (notifications + location) */
.perm-sheet { position: fixed; z-index: 1800; left: 12px; right: 12px; bottom: 12px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; transform: translateY(130%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.perm-sheet.open { transform: none; opacity: 1; }
.perm-head { display: flex; gap: 12px; align-items: flex-start; }
.perm-head strong { display: block; font-size: 15.5px; }
.perm-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.perm-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); flex-shrink: 0; }
.perm-close { width: 34px; height: 34px; margin: -6px -6px 0 0; }
.perm-actions { display: grid; gap: 8px; }
.perm-actions .btn { width: 100%; }
.perm-later { justify-self: center; color: var(--muted); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 500; }
.dropdown.open .dropdown-menu { display: block; animation: up .15s ease; }
.dropdown-menu > a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.dropdown-menu > a:hover { background: var(--brand-50); color: var(--primary); }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.dropdown-foot { justify-content: center; border-top: 1px solid var(--line-2); border-radius: 0 0 10px 10px !important; color: var(--primary) !important; font-size: 13px !important; }
.notif-menu { width: min(370px, calc(100vw - 24px)); padding: 0; right: -60px; }
.notif-list { max-height: 380px; overflow: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.notif-item:hover { background: #fffafa; color: var(--ink); }
.notif-item.unread { background: var(--brand-50); }
.notif-item .n-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--primary); border: 1px solid var(--brand-100); flex-shrink: 0; }
.notif-item strong { display: block; font-size: 13.5px; }
.notif-item p { margin: 2px 0; font-size: 13px; color: var(--ink-2); }
.notif-item time { font-size: 11.5px; color: var(--muted); }
.notif-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { display: block; width: 62px; height: auto; }
.brand-name { font-family: 'Lexend', var(--font); font-weight: 700; font-size: 27px; letter-spacing: -.02em; color: #0d1730; line-height: 1; }
.brand-name i { font-style: normal; color: #fbb90f; }
.brand-name span { color: #f0203a; }
.brand-sm .brand-mark svg { width: 50px; }
.brand-sm .brand-name { font-size: 22px; }
/* on coloured backgrounds the logo sits on a white chip so its colours stay true */
.brand-light { background: #fff; border-radius: 14px; padding: 8px 14px; }
.auth-logo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); }

/* =====================================================================
   Dashboard shell (white sidebar, red active state)
   ===================================================================== */
.dash-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--line); color: var(--ink-2); display: flex; flex-direction: column; z-index: 900; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(13, 21, 38, .45); z-index: 850; display: none; }
.sidebar.open + .sidebar-backdrop { display: block; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 14px 14px 18px; }
.sidebar-close { color: var(--ink-2); }
.sidebar-role { margin: 0 16px 10px; padding: 9px 12px; border-radius: 10px; background: var(--brand-50); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; color: var(--brand-700); }
.side-nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: .15s; }
.side-nav a .lucide { color: var(--muted); transition: .15s; }
.side-nav a span { flex: 1; }
.side-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.side-nav a:hover .lucide { color: var(--primary); }
.side-nav a.active { background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); color: #fff; box-shadow: var(--shadow-red); }
.side-nav a.active .lucide { color: #fff; }
.nav-badge { font-style: normal; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.side-nav a.active .nav-badge { background: #fff; color: var(--primary); }
.side-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.sidebar-help { margin: 12px 16px 18px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-600), var(--brand-400)); display: flex; gap: 10px; align-items: center; color: #ffe3e4; font-size: 13px; }
.sidebar-help strong { display: block; color: #fff; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 700; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-title { font-size: 18px; font-weight: 800; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px; border-radius: 12px; cursor: pointer; font-family: var(--font); color: var(--ink); }
.user-chip:hover { background: var(--brand-50); }
.user-chip-text { display: none; text-align: left; line-height: 1.2; }
.user-chip-text small { color: var(--muted); font-size: 12px; }
.content { padding: 16px; flex: 1; width: 100%; max-width: 1400px; }
.dash-footer { padding: 16px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* red hero banner inside dashboards */
.welcome { background: linear-gradient(120deg, var(--brand-700), var(--brand-600) 45%, var(--brand-400)); color: #fff; border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-red); }
.welcome::before { content: ''; position: absolute; right: -40px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.09); }
.welcome::after { content: ''; position: absolute; right: 120px; top: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07); }
.welcome h2 { margin: 0; font-size: 22px; color: #fff; }
.welcome p { margin: 4px 0 0; opacity: .92; }
.welcome > * { position: relative; z-index: 1; }

/* =====================================================================
   Public site
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; display: none; flex-direction: column; gap: 4px; box-shadow: var(--shadow-lg); }
.site-nav.open { display: flex; }
.site-nav > a { padding: 12px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.site-nav > a:hover { background: var(--brand-50); color: var(--primary); }
.nav-cta { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.nav-cta .btn { flex: 1; }
.nav-login { font-weight: 700; color: var(--ink); padding: 10px 12px; }
.flash-wrap { padding-top: 16px; position: relative; z-index: 5; }

/* hero — photo background + phone mock-up */
.hero { position: relative; overflow: hidden; padding: 34px 0 30px; background: #fff; }
.hero-bg { position: absolute; left: 0; right: 0; top: 0; height: 660px; background: url(../img/hero-bg.jpg) 14% 100% / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.15) 64%, rgba(255,255,255,0) 86%, #fff 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #fff; color: var(--brand-700); font-weight: 700; font-size: 13px; border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm); }
.eyebrow .lucide { color: var(--primary); }
.hero h1 { font-size: clamp(38px, 8vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 18px 0 14px; color: var(--navy-900); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-segments { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: clamp(18px, 3vw, 24px); color: #6c7484; font-weight: 500; margin-bottom: 26px; }
.hero-segments i { width: 1.5px; height: 22px; background: #b9bfca; display: inline-block; }
.hero .lead { font-size: 16.5px; color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; align-items: center; }
.btn-hero { padding: 18px 34px; min-height: 64px; font-size: 20px; border-radius: 999px; gap: 12px; }
.btn-hero .lucide { transition: transform .2s; }
.btn-hero:hover .lucide { transform: translateX(4px); }
.hero-photo-space { height: 210px; }
.hero-photo { display: none; }

.hero-visual { display: grid; gap: 18px; justify-items: center; }
.phone { width: 300px; max-width: 100%; background: #fff; border-radius: 44px; padding: 12px; border: 3px solid #1b1f2a; box-shadow: 0 30px 60px rgba(13,21,38,.22), inset 0 0 0 7px #2a2f3b; position: relative; }
.phone-screen { border-radius: 32px; overflow: hidden; background: #fff; position: relative; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 4px; font-size: 11px; font-weight: 700; color: var(--ink); }
.phone-status .bars { display: flex; gap: 4px; align-items: center; }
.phone-status .bars i { display: inline-block; width: 14px; height: 7px; border-radius: 2px; background: var(--ink); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #1b1f2a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-title { display: flex; align-items: center; gap: 12px; padding: 10px 18px 12px; font-weight: 800; font-size: 17px; }
.phone-map { height: 300px; position: relative; background: #eef0f2; }
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-sheet { position: relative; margin: -26px 10px 10px; background: #fff; border-radius: 20px; box-shadow: 0 -6px 24px rgba(13,21,38,.08); padding: 14px; z-index: 1; }
.phone-driver { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.phone-driver strong { display: block; font-size: 15px; }
.phone-driver small { color: var(--muted); font-size: 12px; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.mini-steps::before { content: ''; position: absolute; top: 12px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.mini-step { position: relative; z-index: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--muted); }
.mini-step b { width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: #e9ebef; color: #9aa1ae; border: 3px solid #fff; }
.mini-step.on b { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.mini-step.on { color: var(--primary); }

.hero-cards { display: grid; gap: 14px; width: 100%; max-width: 420px; }
.glass-card { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.alert-card { display: flex; gap: 12px; align-items: center; }
.alert-card strong { display: block; font-size: 15px; }
.alert-card div > span { color: var(--muted); font-size: 13px; }
.alert-card .ac-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ac-red { background: var(--brand-50); color: var(--primary); }
.ac-green { background: var(--green-500); color: #fff; }
.alert-card.done { background: linear-gradient(90deg, #f0fbf4, #fff); }
.route-card h4 { font-size: 16px; margin: 2px 0 10px; }
.route-row { display: grid; grid-template-columns: 62px 38px 1fr 24px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.route-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.route-row time { font-size: 13px; color: var(--muted); font-weight: 600; }
.route-row strong { display: block; font-size: 14px; line-height: 1.2; }
.route-row small { font-size: 12px; color: var(--muted); }
.route-row .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; }
.kid { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; object-fit: cover; box-shadow: 0 2px 6px rgba(13,21,38,.12); }
.kid-school { background: var(--brand-50); color: var(--primary); box-shadow: none; }

/* hero phone animation states (driven by initHeroDemo in app.js) */
.mini-step b, .mini-step { transition: background .3s, color .3s, box-shadow .3s; }
.mini-step.done b { background: var(--green-500); color: #fff; }
.mini-step.done { color: var(--green-700); }
.hero-cards .alert-card { transition: opacity .45s ease, transform .45s ease, box-shadow .45s ease; }
.hero-cards .alert-card.wait { opacity: .45; transform: scale(.97); box-shadow: var(--shadow-sm); }
.hero-cards .alert-card.pop { animation: cardPop .6s ease; }
@keyframes cardPop { 0% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
.pin-ping { opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.pin-ping.on { animation: pinPing 1.1s ease-out 2; }
@keyframes pinPing { 0% { opacity: .55; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.4); } }

.section { padding: 64px 0; }
.section-alt { background: #fff7f7; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kicker::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--primary); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: .2s; display: block; color: var(--ink); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: var(--ink); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); margin-bottom: 16px; }
.feature-icon.green { background: var(--primary); color: #fff; box-shadow: var(--shadow-red); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; }
.step-card { position: relative; padding-top: 34px; }
.step-num { position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-red); }
.status-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 920px; margin: 0 auto; }
.flow-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-align: center; font-weight: 700; }
.flow-item .feature-icon { margin: 0 auto 10px; }
.split { display: grid; gap: 32px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-list .lucide { color: var(--primary); margin-top: 2px; }
.photo-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; min-height: 300px; background: url(../img/hero-bg.jpg) 20% 80% / cover no-repeat; }
.photo-card .glass-card { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand-600) 55%, var(--brand-400)); color: #fff; border-radius: 28px; padding: 44px 24px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-red); }
.cta-band::after { content: ''; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 5vw, 38px); color: #fff; }
.cta-band p { opacity: .92; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; transition: .15s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary .lucide { color: var(--primary); transition: .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .lucide { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); }

.site-footer { background: linear-gradient(160deg, #c81d27 0%, #8f1018 100%); color: #ffdfe0; padding: 56px 0 22px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: flex; gap: 6px; align-items: center; color: #ffdfe0; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about { margin-top: 14px; font-size: 14px; max-width: 360px; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; padding: 0; }
.social a:hover { background: #fff; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 30px; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-bottom .lucide { color: #fff; fill: #fff; }

/* auth pages */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 30px 16px 60px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.82)), url(../img/hero-bg.jpg) center / cover no-repeat; }
.auth-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 20px; border-top: 5px solid var(--primary); }
.auth-card.wide { max-width: 660px; }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick label { border: 2px solid var(--line); border-radius: 16px; padding: 16px 14px; cursor: pointer; text-align: center; margin: 0; transition: .15s; }
.role-pick label .lucide { margin: 0 auto 6px; color: var(--primary); display: block; }
.role-pick label small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.role-pick input:checked + label { border-color: var(--primary); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(227, 36, 46, .08); }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .status-flow { grid-template-columns: repeat(4, 1fr); }
  .modal { align-items: center; padding: 20px; }
  .modal-box { border-radius: 22px; }
  .toast-stack { left: auto; width: 380px; }
  .perm-sheet { left: 20px; right: auto; bottom: 20px; width: 400px; }
  .perm-actions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .perm-actions .btn { padding: 10px 12px; font-size: 13.5px; }
  .auth-card { padding: 34px 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .bid { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content { padding: 24px; }
  .user-chip-text { display: block; }
  .welcome { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 30px; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .map { height: 400px; }
  .map-lg { height: 540px; }
  .notif-menu { right: 0; }
  .hero-visual { grid-template-columns: auto minmax(0, 1fr); align-items: start; justify-items: stretch; }
  .hero-bg { height: 720px; }
  .hero-photo-space { height: 300px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .upload-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar { transform: none; }
  .sidebar-backdrop, .sidebar-close, .menu-btn { display: none !important; }
  .dash-main { margin-left: var(--sidebar-w); }
  .topbar { padding: 12px 24px; }
  .content { padding: 28px; }
  .site-nav { position: static; display: flex !important; flex-direction: row; align-items: center; background: none; border: 0; box-shadow: none; padding: 0; gap: 18px; }
  .site-nav > a { padding: 8px 10px; font-size: 15.5px; font-weight: 500; }
  .site-nav > a:hover { background: none; }
  .nav-cta { margin: 0 0 0 26px; }
  .nav-cta .btn { padding: 13px 28px; font-size: 16px; border-radius: 16px; }
  .nav-toggle { display: none; }
  .section { padding: 96px 0; }

  /* desktop hero = exactly one screen tall, photo behind the translucent header (like the design comp).
     The photo is fitted to the hero HEIGHT, so the van (45%–90% of the photo's height, left side)
     is always whole on screen; text + phone are sized in vh so they stay above the van. */
  .hero { --hh: max(640px, 100vh); margin-top: -76px; padding: calc(76px + 2vh) 0 4vh; min-height: var(--hh); }
  .hero-bg { inset: 0; height: auto; background: #fff; isolation: isolate; }
  .hero-bg::before { content: ''; position: absolute; inset: -30px; z-index: 0; background: url(../img/hero-bg.jpg) right bottom / cover no-repeat; filter: blur(22px); opacity: .55; }
  .hero-photo { display: block; position: absolute; inset: 0; z-index: 1; background: url(../img/hero-bg.jpg) left bottom / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--hh) * 1.778 - 180px), transparent calc(var(--hh) * 1.778));
            mask-image: linear-gradient(90deg, #000 calc(var(--hh) * 1.778 - 180px), transparent calc(var(--hh) * 1.778)); }
  .hero-bg::after { z-index: 2; background:
      radial-gradient(ellipse 55% 42% at 22% 26%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%),
      linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.4) 24%, rgba(255,255,255,0) 44%, rgba(255,255,255,0) 94%, #fff 100%),
      linear-gradient(90deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.35) 74%, rgba(255,255,255,.6) 100%); }
  /* the hero uses a wider container than the rest of the page so the headline and phone can both be large */
  .hero > .container { max-width: 1520px; padding: 0 clamp(16px, 3vw, 48px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
  /* size the headline to the copy column so "Vans for Every Journey" stays on one line */
  .hero-copy { container-type: inline-size; max-width: none; }
  .hero h1 { font-size: min(88px, 9.6cqi, 7.8vh); margin: 2vh 0 1.4vh; }
  .hero-segments { font-size: clamp(17px, 2.7vh, 27px); margin-bottom: 2.4vh; }
  .hero-segments i { height: 2.4vh; }
  .btn-hero { min-height: clamp(50px, 6.8vh, 68px); padding: 0 clamp(26px, 3.6vh, 38px); font-size: clamp(16px, 2.2vh, 21px); }
  .hero-photo-space { display: none; }
  .hero-visual { grid-template-columns: 300px 290px; gap: 22px; align-items: center; }
  .phone { width: 300px; transform: rotate(3deg); }
  .phone-map { height: 290px; }
  .hero-cards { max-width: none; }
}
@media (min-width: 1360px) {
  .hero-visual { grid-template-columns: 345px 330px; gap: 28px; }
  .phone { width: 345px; }
  .phone-map { height: 340px; }
  .phone-title { font-size: 19px; }
  .phone-driver strong { font-size: 17px; }
  .mini-step { font-size: 11px; }
  .alert-card { padding: 16px 18px; }
  .alert-card strong { font-size: 16.5px; }
  .alert-card .ac-ic { width: 48px; height: 48px; }
  .route-card h4 { font-size: 18px; }
  .route-row { grid-template-columns: 70px 44px 1fr 26px; padding: 10px 0; }
  .route-row strong { font-size: 15.5px; }
  .route-row time { font-size: 14px; }
  .kid { width: 44px; height: 44px; }
  .route-row .ok { width: 24px; height: 24px; }
}
/* shorter laptop screens: shrink the phone + cards just enough that the whole composition fits one screen */
@media (min-width: 1024px) and (max-height: 860px) { .eyebrow { display: none; } .hero-visual { zoom: .92; } }
@media (min-width: 1024px) and (max-height: 760px) { .hero-visual { zoom: .82; } .hero h1 { font-size: min(88px, 9.6cqi, 7.2vh); } .hero-segments { margin-bottom: 1.8vh; } }
@media (min-width: 1024px) and (max-height: 680px) { .hero-visual { zoom: .74; } }
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .pax-actions { grid-template-columns: 1fr; }
  .brand-name { font-size: 21px; }
  .brand-mark svg { width: 46px; }
}
@media print {
  .sidebar, .topbar, .dash-footer, .btn, .filters { display: none !important; }
  .dash-main { margin: 0 !important; }
}
