/* CURBZ design system — hand-authored plain CSS (no build step), ported from the
   Next.js/Tailwind version's globals.css + component class usage. */

:root {
  --background: #07131e;
  --foreground: #eaf6ff;
  --panel: #0d1d2a;
  --card: #132d3a;
  --muted: #9bb3c3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #4de39a;
  --accent-strong: #1ed96a;
  --accent-soft: rgba(77, 227, 154, 0.12);
  --accent-text: #6ee7b7;
  --shadow: 0 14px 36px rgba(8, 14, 20, 0.35);
  --danger: #fca5a5;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --amber: #fcd34d;
  --amber-bg: rgba(245, 158, 11, 0.15);
  --cyan: #67e8f9;
  --cyan-bg: rgba(34, 211, 238, 0.15);
  --violet: #c4b5fd;
  --violet-bg: rgba(139, 92, 246, 0.15);
}

* { box-sizing: border-box; }

/* Author-stylesheet display rules (e.g. .btn { display: inline-flex }) otherwise beat the
   browser's default [hidden] { display: none }, making hidden buttons/steps show anyway. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; width: 100%; max-width: 100vw; }

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at top, rgba(77, 227, 154, 0.12), transparent 28%),
    linear-gradient(180deg, #07131e 0%, #0b1824 100%);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }
.icon-sm { width: 0.85em; height: 0.85em; }
.icon-lg { width: 2em; height: 2em; }
.spin { animation: curbz-spin 1s linear infinite; }
@keyframes curbz-spin { to { transform: rotate(360deg); } }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 420px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 780px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.container-xl { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.page { min-height: 100vh; padding: 1.5rem 0 4rem; }

/* Homepage animated "motion" background — evokes CURBZ moving things around */
.page-home { position: relative; overflow: hidden; }
.page-home > .container { position: relative; z-index: 1; }
.motion-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.motion-blob { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: 0.55; will-change: transform; }
.motion-blob-a {
  width: 34rem; height: 34rem; top: -12rem; left: -10rem;
  background: radial-gradient(circle, rgba(77,227,154,0.35), transparent 70%);
  animation: motion-drift-a 24s ease-in-out infinite alternate;
}
.motion-blob-b {
  width: 30rem; height: 30rem; bottom: -12rem; right: -8rem;
  background: radial-gradient(circle, rgba(103,232,249,0.28), transparent 70%);
  animation: motion-drift-b 28s ease-in-out infinite alternate;
}
.motion-blob-c {
  width: 22rem; height: 22rem; top: 30%; left: 45%;
  background: radial-gradient(circle, rgba(196,181,253,0.18), transparent 70%);
  animation: motion-drift-c 32s ease-in-out infinite alternate;
}
@keyframes motion-drift-a { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(7rem, 5rem) scale(1.15); } }
@keyframes motion-drift-b { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-6rem, -4rem) scale(1.1); } }
@keyframes motion-drift-c { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-4rem, 3rem) scale(1.2); } }

/* Diagonal "speed line" streaks that continuously slide, like motion trails */
.motion-lines {
  position: absolute; inset: -20% -20%;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 110px);
  animation: motion-lines-move 16s linear infinite;
}
@keyframes motion-lines-move { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-220px, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .motion-blob, .motion-lines { animation: none; }
}

/* Static content pages (About, FAQs, Terms, etc.) */
.static-page-body { margin-top: 1rem; }
.static-page-body h2 { font-size: 1.3rem; font-weight: 800; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.static-page-body h2:first-child { margin-top: 0; }
.static-page-body h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.4rem; color: var(--accent-text); }
.static-page-body p { margin-bottom: 0.9rem; color: #cbd5e1; line-height: 1.7; }
.static-page-body ul, .static-page-body ol { margin: 0.5rem 0 1rem 1.25rem; }
.static-page-body ul { list-style: disc; }
.static-page-body ol { list-style: decimal; }
.static-page-body li { margin-bottom: 0.4rem; color: #cbd5e1; line-height: 1.6; }
.static-page-body a { color: var(--accent-text); text-decoration: underline; }
.static-page-body .legal-note { margin-top: 1.5rem; padding: 0.85rem 1rem; border-radius: 0.85rem; border: 1px dashed var(--line-strong); font-size: 0.8rem; color: var(--muted); }

/* Site footer */
.site-footer { margin-top: 3.5rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.footer-col h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: var(--muted); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #0c1d2a, #142f3d 55%, #0b1f2a);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-weight: 900; font-size: 1.15rem;
}
.brand { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-logo-wrap {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 0.75rem; padding: 0.4rem 0.75rem; line-height: 0;
}
.brand-logo { height: 3.25rem; width: auto; display: block; }
.brand-logo-wrap.brand-logo-lg { padding: 0.85rem 1.25rem; }
.brand-logo-wrap.brand-logo-lg .brand-logo { height: 5.5rem; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; color: #e2e8f0; }
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.home-menu { position: relative; }
.home-menu summary {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 9999px;
  color: #e2e8f0; background: rgba(255,255,255,0.05); font-size: 0.8rem; font-weight: 700;
}
.home-menu summary::-webkit-details-marker { display: none; }
.home-menu summary span { display: none; }
.home-menu summary .icon { width: 1.4em; height: 1.4em; }
.home-menu[open] .navbar-links { position: absolute; z-index: 10; right: 0; top: calc(100% + 0.6rem); display: flex; flex-direction: column; align-items: stretch; min-width: 13rem; gap: 0.25rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: 1rem; background: #0b1820; box-shadow: 0 1rem 2rem rgba(0,0,0,0.35); }
.home-menu[open] .navbar-links a { padding: 0.65rem 0.75rem; border-radius: 0.6rem; }
.home-menu[open] .navbar-links a:hover { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 760px) { .home-menu[open] .navbar-links { min-width: min(13rem, calc(100vw - 2rem)); right: -0.25rem; } }

.simple-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.75rem 1.25rem; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; transition: opacity .15s, background-color .15s;
  white-space: nowrap;
}
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn-primary { background: var(--accent); color: #06281c; }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-outline { background: rgba(255,255,255,0.05); border-color: var(--line); color: #fff; }
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.btn-ghost { background: transparent; border-color: var(--line); color: #e2e8f0; }
.btn-danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #fca5a5; }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,0.22); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.pill-link {
  border-radius: 9999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  padding: 0.5rem 0.85rem; font-size: 0.75rem; font-weight: 600; color: #e2e8f0;
}

/* Cards / surfaces */
.card {
  background: rgba(19, 45, 58, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 1.5rem;
  padding: 1.25rem;
}
@media (min-width: 640px) { .card { padding: 1.5rem; } }
.card-round { border-radius: 2rem; }
.card-inset {
  border-radius: 1rem; border: 1px solid var(--line); background: rgba(2, 10, 16, 0.4); padding: 1rem;
}

/* Grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.grid-split { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid-split { grid-template-columns: 1.2fr 0.8fr; } }

/* Single-column vehicle type list on the homepage — easier to read than a cramped 2-up grid. */
.vehicle-type-grid { grid-template-columns: 1fr; max-width: 42rem; margin: 0 auto; }

/* Typography helpers */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-accent { color: var(--accent-text); }
.h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.01em; }
.h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.01em; }
.h3 { font-size: 1.25rem; font-weight: 800; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 0.75rem; } .mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 0.75rem; } .mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { display: grid; gap: 2rem; padding: 1.5rem 0 5rem; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
  border: 1px solid rgba(77,227,154,0.3); background: rgba(77,227,154,0.1);
  color: var(--accent-text); border-radius: 9999px; padding: 0.35rem 0.85rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.hero-title { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; max-width: 34rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.5rem; } }
.hero-lead { margin-top: 1.25rem; max-width: 32rem; color: #cbd5e1; font-size: 1rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  padding: 0.5rem 0.75rem; font-size: 0.85rem; color: #e2e8f0;
}

/* Sections */
.section { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { margin-top: 0.5rem; font-size: 1.85rem; font-weight: 900; }
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }

/* Badges / pills */
.badge, .status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 9999px;
  padding: 0.35rem 0.7rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-success, .status-pill { background: var(--accent-soft); color: var(--accent-text); }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-amber, .status-pill.is-estimate { background: var(--amber-bg); color: var(--amber); }

/* Forms */
.form-group { display: block; margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: #e2e8f0; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%; border-radius: 1rem; border: 1px solid var(--line); background: rgba(2,10,16,0.3);
  padding: 0.75rem 0.9rem; font-size: 0.9rem; color: #fff; outline: none;
}
/* Prevents selects from being flex-shrunk down to an unreadable sliver inside .row/.row-between
   forms — they get a real floor width, and the row wraps its sibling button below instead. */
.row .form-select, .row-between .form-select { flex: 1 1 auto; min-width: 9rem; }
.select-compact { width: auto; }
@media (min-width: 640px) { .select-compact { max-width: 14rem; } }
/* Saved-address dropdowns hold full street addresses — keep them contained to the form's
   width instead of auto-sizing to the longest option (which was overflowing the card). */
.saved-address-select { width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-textarea { min-height: 7rem; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(77,227,154,0.4); }
.form-input::placeholder, .form-textarea::placeholder { color: #64748b; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.col-span-2 { grid-column: span 2 / span 2; }
@media (max-width: 767px) { .col-span-2 { grid-column: span 1; } }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: #e2e8f0; }
.checkbox-row input { margin-top: 0.2rem; }
.upload-placeholder {
  border-radius: 1rem; border: 1px dashed var(--line-strong); background: rgba(2,10,16,0.2);
  padding: 0.75rem; font-size: 0.875rem; color: #cbd5e1;
}
.field-error { border-radius: 1rem; border: 1px solid rgba(239,68,68,0.4); background: var(--danger-bg); padding: 0.6rem 0.85rem; font-size: 0.85rem; color: var(--danger); }
.field-success { border-radius: 1rem; border: 1px solid rgba(77,227,154,0.4); background: var(--accent-soft); padding: 0.6rem 0.85rem; font-size: 0.85rem; color: var(--accent-text); }
.pin-verification-panel {
  border: 1px solid rgba(250,204,21,0.4);
  background: rgba(250,204,21,0.08);
  border-radius: 1rem;
  padding: 1rem;
}
.pin-input {
  border-color: rgba(250,204,21,0.5);
  background: rgba(15, 23, 42, 0.5);
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.pin-verification-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #fcd34d;
  line-height: 1.5;
}
.invalid-pin-banner {
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

/* Autocomplete */
.autocomplete { position: relative; }
.autocomplete-row {
  display: flex; align-items: center; gap: 0.5rem; border-radius: 1rem; border: 1px solid var(--line);
  background: rgba(2,10,16,0.3); padding: 0.75rem 0.9rem;
}
.autocomplete-row input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font-size: 0.9rem; }
.autocomplete-row input::placeholder { color: #64748b; }
.autocomplete-icon-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 0.1rem; color: #94a3b8; }
.autocomplete-icon-btn:hover { color: #fff; }
.autocomplete-icon-btn.locate { color: var(--accent-text); }
.autocomplete-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.autocomplete-list {
  position: absolute; z-index: 30; margin-top: 0.5rem; width: 100%; overflow: hidden;
  border-radius: 1rem; border: 1px solid var(--line); background: #0f2029; box-shadow: var(--shadow);
  max-height: 16rem; overflow-y: auto;
}
.autocomplete-list button {
  display: flex; width: 100%; align-items: flex-start; gap: 0.5rem; padding: 0.65rem 0.85rem;
  background: none; border: none; text-align: left; font-size: 0.875rem; color: #e2e8f0; cursor: pointer;
}
.autocomplete-list button:hover, .autocomplete-list button.is-active { background: rgba(255,255,255,0.06); }
.autocomplete-error { margin-top: 0.4rem; font-size: 0.75rem; color: var(--danger); }

/* Progress steps (wizard) */
.progress-steps { display: flex; gap: 0.5rem; border-radius: 9999px; background: rgba(2,10,16,0.5); padding: 0.5rem; margin-bottom: 1.5rem; }
.progress-step { flex: 1; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.step-circle {
  margin: 0 auto 0.35rem; display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 9999px; background: #374151; color: #e2e8f0; font-weight: 700;
}
.step-circle.is-active { background: var(--accent); color: #06281c; }
.progress-step .step-label { color: #94a3b8; }
.progress-step.is-active .step-label { color: var(--accent-text); }
@media (max-width: 480px) {
  .progress-steps { gap: 0.15rem; padding: 0.4rem; }
  .progress-step { font-size: 0.55rem; letter-spacing: 0.02em; }
  .step-circle { width: 1.6rem; height: 1.6rem; font-size: 0.75rem; margin-bottom: 0.2rem; }
}
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (max-width: 560px) {
  .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
  .wizard-actions .btn { width: 100%; }
}

/* Option buttons (service level / delivery mode) */
.option-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.5rem;
  border-radius: 1rem; border: 1px solid var(--line); background: rgba(2,10,16,0.3);
  padding: 0.6rem 0.85rem; font-size: 0.875rem; color: #e2e8f0; text-align: left; cursor: pointer;
}
.option-btn.is-active { border-color: rgba(77,227,154,0.4); background: var(--accent-soft); color: var(--accent-text); }
.option-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Summary rows */
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; font-size: 0.9rem; color: #e2e8f0; }
.summary-row .value { color: #cbd5e1; text-align: right; }
.price-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: #e2e8f0; padding: 0.35rem 0; }
.price-total { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 0.75rem; font-weight: 900; font-size: 1.05rem; color: #fff; }
.summary-block { border-radius: 1.25rem; border: 1px solid var(--line); background: rgba(2,10,16,0.3); padding: 1rem; }
.summary-block .label { margin-bottom: 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: #94a3b8; }

/* Dashboard shell */
.dash-main { min-height: 100vh; background: #020617; }
.dash-topbar {
  display: flex; flex-direction: column; gap: 1rem; border-radius: 1.5rem; border: 1px solid var(--line);
  background: rgba(15,23,42,0.8); padding: 1rem; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .dash-topbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.dash-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.dash-header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .dash-header { flex-direction: row; align-items: center; justify-content: space-between; } }
.user-pill { border-radius: 9999px; border: 1px solid rgba(77,227,154,0.3); background: var(--accent-soft); padding: 0.5rem 0.85rem; font-size: 0.9rem; color: var(--accent-text); display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.user-pill-rating { font-size: 0.8rem; opacity: 0.85; white-space: nowrap; }
.metric-card { border-radius: 1.5rem; }
.metric-label { font-size: 0.9rem; color: #cbd5e1; }
.metric-value { margin-top: 0.5rem; font-size: 1.85rem; font-weight: 900; color: #fff; }
.list-plain li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: #e2e8f0; }
.list-plain li:last-child { border-bottom: none; }
.delivery-item { border-radius: 1rem; border: 1px solid var(--line); background: rgba(2,10,16,0.3); padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.delivery-item:last-child { margin-bottom: 0; }
.delivery-item-top { display: flex; align-items: center; justify-content: space-between; }
.delivery-amount { color: var(--accent-text); font-weight: 700; }
.delivery-meta { margin-top: 0.4rem; font-size: 0.75rem; color: #94a3b8; }
.delivery-route { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }
.delivery-route-arrow { color: #64748b; }
.delivery-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem 1.5rem;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line);
}
.delivery-detail { display: flex; flex-direction: column; gap: 0.25rem; }
.delivery-detail-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; }
.delivery-detail-value { font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }
.delivery-driver-row { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: #e2e8f0; }
.queue-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.btn.is-disabled { opacity: 0.4; pointer-events: none; }

.dash-actions { display: flex; align-items: center; gap: 0.75rem; }
.notification-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 9999px; color: #e2e8f0; background: rgba(255,255,255,0.05); }
.notification-link:hover { color: var(--accent-text); border-color: rgba(77,227,154,0.45); }
.notification-count { position: absolute; top: -0.25rem; right: -0.2rem; min-width: 1.15rem; height: 1.15rem; border-radius: 9999px; background: #f87171; color: #fff; font-size: 0.65rem; font-weight: 800; line-height: 1.15rem; text-align: center; }
.dash-menu { position: relative; }
.dash-menu summary {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 9999px;
  color: #e2e8f0; background: rgba(255,255,255,0.05); font-size: 0.8rem; font-weight: 700;
}
.dash-menu summary::-webkit-details-marker { display: none; }
.dash-menu summary span { display: none; }
.dash-menu summary .icon { width: 1.4em; height: 1.4em; }
.dash-menu[open] .dash-nav { position: absolute; z-index: 10; right: 0; top: calc(100% + 0.6rem); display: flex; flex-direction: column; align-items: stretch; min-width: 13rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: 1rem; background: #0b1820; box-shadow: 0 1rem 2rem rgba(0,0,0,0.35); }
.dash-menu .dash-nav .pill-link, .dash-menu .dash-nav .btn { white-space: nowrap; }
@media (max-width: 520px) { .dash-topbar { align-items: flex-start; } .dash-actions { margin-left: auto; } .dash-menu[open] .dash-nav { right: -0.25rem; min-width: min(13rem, calc(100vw - 2rem)); } }

.messages-layout { display: grid; grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.message-contact { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem; border-radius: 0.75rem; color: #e2e8f0; font-size: 0.875rem; }
.message-contact:hover, .message-contact.is-active { background: var(--accent-soft); color: var(--accent-text); }
.message-list { display: flex; flex-direction: column; gap: 0.75rem; min-height: 16rem; max-height: 32rem; overflow-y: auto; margin: 1.5rem 0; padding: 0.25rem; }
.message-bubble { max-width: min(85%, 38rem); padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 1rem; font-size: 0.9rem; line-height: 1.5; }
.message-bubble.is-sent { align-self: flex-end; background: var(--accent-soft); color: #eafff5; border-color: rgba(77,227,154,0.25); }
.message-bubble.is-received { align-self: flex-start; background: rgba(2,10,16,0.3); color: #e2e8f0; }
.message-meta { font-size: 0.7rem; color: #94a3b8; }
.message-compose { display: flex; gap: 0.75rem; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 1rem; }
.message-compose .form-textarea { min-height: 5rem; flex: 1; }
@media (max-width: 700px) { .messages-layout { grid-template-columns: 1fr; } .messages-contacts { display: flex; gap: 0.35rem; overflow-x: auto; padding: 0.75rem; } .messages-contacts .h3 { display: none; } .message-contact { min-width: max-content; border: 1px solid var(--line); } .message-compose { flex-direction: column; align-items: stretch; } }

/* Driver job */
.stage-btn {
  display: flex; width: 100%; align-items: center; gap: 0.75rem; border-radius: 1rem; border: 1px solid var(--line);
  background: rgba(2,10,16,0.3); padding: 0.65rem 0.85rem; font-size: 0.875rem; color: #e2e8f0; text-align: left; margin-bottom: 0.6rem;
}
.stage-btn.is-current { border-color: rgba(77,227,154,0.4); background: var(--accent-soft); color: var(--accent-text); }
.stage-index { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: #374151; color: #e2e8f0; flex-shrink: 0; font-weight: 700; }
.stage-btn.is-current .stage-index { background: var(--accent); color: #06281c; }

/* CURBZ tracker (animated progress bar on the tracking page) */
.curbz-tracker { margin-bottom: 0.25rem; }
.curbz-tracker-track { position: relative; height: 0.4rem; border-radius: 9999px; background: #374151; margin: 0 1rem 1.35rem; overflow: hidden; }
.curbz-tracker-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--accent), #6ee7b7); transition: width 0.7s ease; }
.curbz-tracker-steps { display: flex; justify-content: space-between; }
.curbz-tracker-step { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.curbz-tracker-dot {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px;
  background: #374151; color: #e2e8f0; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease;
}
.curbz-tracker-dot .icon { width: 1.1em; height: 1.1em; }
.curbz-tracker-step.is-done .curbz-tracker-dot { background: var(--accent); color: #06281c; }
.curbz-tracker-step.is-current .curbz-tracker-dot { transform: scale(1.15); animation: tracker-pulse 1.6s ease-in-out infinite; }

/* Single large readout for the current step, shown below the dots instead of a tiny
   label under every bubble — much easier to read on mobile, while the dots still show
   the overall sequence and how many steps remain. */
.curbz-tracker-current { margin-top: 1.1rem; text-align: center; }
.curbz-tracker-current-label { font-size: 1.35rem; font-weight: 800; color: #fff; }
.curbz-tracker-current-sub { margin-top: 0.35rem; font-size: 0.85rem; color: #94a3b8; }
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(77,227,154,0.25); }
  50% { box-shadow: 0 0 0 9px rgba(77,227,154,0.1); }
}

.map-placeholder {
  position: relative; height: 14rem; border-radius: 1.5rem; border: 1px solid var(--line); margin-bottom: 1.5rem; overflow: hidden;
  background: radial-gradient(circle at center, rgba(77,227,154,0.18), transparent 45%), linear-gradient(180deg, rgba(19,45,58,0.85), rgba(10,20,28,0.9));
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.map-placeholder.has-map { padding: 0; }
.map-placeholder-inner { text-align: center; color: #cbd5e1; border: 1px dashed rgba(77,227,154,0.25); border-radius: 1.25rem; padding: 2rem; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tracker-map-frame { width: 100%; height: 100%; border: 0; display: block; }

/* Driver live directions (Leaflet map + OSRM route, rendered inline on driver-job.php) */
.driver-directions-map { height: 20rem; border-radius: 1.25rem; border: 1px solid var(--line); overflow: hidden; }
.directions-steps { list-style: decimal; margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.directions-steps li { font-size: 0.85rem; color: #e2e8f0; }
@media (max-width: 640px) { .driver-directions-map { height: 16rem; } }
.tracker-map-label {
  position: absolute; left: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(6,15,20,0.75); border: 1px solid var(--line); border-radius: 9999px; padding: 0.35rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; color: #e2e8f0; backdrop-filter: blur(4px);
}
.tracker-map-label .icon { color: var(--accent-text); }
.driver-avatar { width: 2.25rem; height: 2.25rem; border-radius: 9999px; object-fit: cover; border: 2px solid rgba(77,227,154,0.45); }

.footer-note { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #cbd5e1; }

.rating-stars { display: flex; gap: 0.2rem; margin-top: 0.5rem; }
.rating-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-stars label { cursor: pointer; color: #64748b; font-size: 1.7rem; line-height: 1; }
.rating-stars label:has(input:checked), .rating-stars label:has(input:checked) ~ label { color: #fbbf24; }

/* Coverage list (homepage "where we operate") */
.coverage-state-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.coverage-state-name { font-size: 1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.75rem; text-align: center; }
.coverage-city-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.coverage-city-list li {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; color: #e2e8f0;
}
.coverage-city-list .icon { color: var(--accent-text); }

/* Back to top (shared across every page via includes/layout-bottom.php) */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 9999px; border: 1px solid var(--line);
  background: var(--accent); color: #06281c; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(0.75rem); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.back-to-top .icon { width: 1.35em; height: 1.35em; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-strong); }
@media (max-width: 768px) { .back-to-top { width: 3.25rem; height: 3.25rem; right: 1rem; bottom: 1.25rem; } }

/* Mobile/tablet scaling — bump the root font-size so every rem-based size (text,
   buttons, padding, icons) scales up together for easier reading and tapping on
   phones and iPads, and keep form fields at 16px so iOS Safari doesn't auto-zoom. */
@media (max-width: 900px) {
  html { font-size: 17px; }
  .btn, .pill-link, .home-menu summary, .dash-menu summary { min-height: 44px; }
  .form-input, .form-select, .form-textarea, .autocomplete-row input { font-size: 16px; }
  .text-xs { font-size: 0.8rem; }
  .text-sm { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  html { font-size: 18px; }
  .hero-title { font-size: 2.15rem; }
  .btn { padding: 0.85rem 1.3rem; }
}
