* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #F5F6FA;
  color: #171A2C;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-mid { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: #141833; }
.site-header-inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 4px; }
.brand img { height: 40px; display: block; }
.header-actions { display: flex; gap: 8px; }
.header-nav { display: flex; gap: 18px; align-items: center; }
.header-nav a { color: #C8CAD9; font-size: 13px; font-weight: 700; }
.header-nav a:hover { color: #FFB020; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 15px;
}
.icon-btn.whatsapp { background: #1FBE7A; }

/* ---------- Hero ---------- */
.hero { background: #141833; padding-bottom: 46px; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; padding: 28px 24px 0; }
.eyebrow {
  display: inline-block; background: rgba(255,176,32,0.15); color: #FFB020;
  font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.5px; }
.hero p.sub { color: #9BA0BC; font-size: 15.5px; margin: 0 0 22px; }
.hero-stats { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero-stats .stat-num { color: #fff; font-size: 18px; font-weight: 800; }
.hero-stats .stat-label { color: #8B8FA3; font-size: 12px; }

/* ---------- Cards / sections ---------- */
.card { background: #fff; border-radius: 14px; border: 1px solid #ECEDF3; padding: 18px; }
.section { max-width: 1080px; margin: 56px auto 0; padding: 0 24px; }
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.section-heading .eyebrow2 { font-size: 12.5px; font-weight: 700; color: #0E8388; margin-bottom: 6px; }
.section-heading h2 { font-size: 27px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.4px; }
.section-heading p { font-size: 14px; color: #666A7C; margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Search form ---------- */
.search-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 14px 40px rgba(20,24,51,0.14); }
.search-card.compact { border-radius: 12px; padding: 16px; box-shadow: none; border: 1px solid #ECEDF3; }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-btn {
  border: 1.5px solid #ECEDF3; background: #fff; color: #666A7C;
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.toggle-btn.active { border-color: #FFB020; background: #FFF7E8; color: #8A5A00; }
.form-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; }
.field { flex: 1; min-width: 170px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: #8B8FA3; letter-spacing: 0.3px; margin-bottom: 4px; }
.field .input-box { display: flex; align-items: center; gap: 8px; background: #F5F6FA; border-radius: 10px; padding: 9px 10px; }
.field .input-box input, .field .input-box select { border: none; outline: none; background: transparent; width: 100%; font-size: 14px; font-weight: 600; color: #171A2C; font-family: inherit; }
.field-note { font-size: 11px; margin-top: 4px; font-weight: 600; }
.field-note.ok { color: #0E8388; }
.field-note.warn { color: #C0362C; }
.swap-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid #ECEDF3; background: #F5F6FA;
  display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 22px; font-size: 15px;
}
.search-submit {
  background: #FFB020; color: #141833; border: none; padding: 13px 26px; border-radius: 10px;
  font-size: 14.5px; font-weight: 800; cursor: pointer; margin-top: 22px;
}
.distance-pill {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: #FFF7E8; color: #8A5A00;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.manual-distance-box { margin-top: 14px; background: #FFF3F0; border: 1px solid #F3D3CB; border-radius: 10px; padding: 10px 14px; }
.manual-distance-box .msg { font-size: 12.5px; color: #8A3B24; font-weight: 700; margin-bottom: 8px; }
.manual-distance-box input { width: 100px; border: 1px solid #ECEDF3; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 700; }
.form-error { color: #C0362C; font-size: 13px; margin-top: 10px; font-weight: 600; }
.trust-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 18px 0 8px; }
.trust-row span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #666A7C; font-weight: 600; }

/* ---------- Vehicle cards ---------- */
.vehicle-card { background: #fff; border-radius: 14px; border: 1px solid #ECEDF3; padding: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.vehicle-icon { width: 76px; height: 76px; border-radius: 12px; background: #141833; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 30px; }
.badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.3px; }
.badge.teal { color: #0E8388; background: #E3F4F1; }
.badge.blue { color: #185FA5; background: #E6F1FB; }
.badge.amber { color: #854F0B; background: #FAEEDA; }
.vehicle-meta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; color: #666A7C; }
.vehicle-price { text-align: right; min-width: 150px; }
.vehicle-price .strike { font-size: 12px; color: #B3B6C4; text-decoration: line-through; }
.vehicle-price .final { font-size: 24px; font-weight: 800; color: #171A2C; }
.vehicle-price .off { font-size: 11.5px; color: #0E8388; font-weight: 700; }
.btn-primary {
  background: #141833; color: #fff; border: none; padding: 9px 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-block;
}
.btn-amber {
  background: #FFB020; color: #141833; border: none; padding: 13px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 800; cursor: pointer; width: 100%; text-align: center; display: block;
}
.btn-outline { border: 1px solid #ECEDF3; background: #fff; color: #666A7C; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.category-tabs { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 10px; border: 1px solid #ECEDF3; flex-wrap: wrap; }
.category-tabs a { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: #666A7C; }
.category-tabs a.active { background: #141833; color: #fff; }

/* ---------- Forms (checkout, auth) ---------- */
.text-field { flex: 1 1 200px; min-width: 180px; }
.text-field label { display: block; font-size: 11px; font-weight: 600; color: #8B8FA3; margin-bottom: 4px; }
.text-field .input-box { display: flex; align-items: center; gap: 8px; background: #F5F6FA; border-radius: 10px; padding: 10px 12px; }
.text-field .input-box input, .text-field .input-box textarea { border: none; outline: none; background: transparent; width: 100%; font-size: 14.5px; font-weight: 600; color: #171A2C; font-family: inherit; }
.text-field .err { color: #C0362C; font-size: 11.5px; margin-top: 4px; font-weight: 600; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #141833; margin-top: 60px; padding: 40px 24px 24px; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.site-footer .brand-blurb { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.site-footer p, .site-footer div.item { color: #8B8FA3; font-size: 12.5px; margin-bottom: 6px; line-height: 1.6; }
.site-footer .bottom { max-width: 1080px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); color: #6C7092; font-size: 11.5px; text-align: center; }
.site-footer .bottom a { text-decoration: underline; }

/* ---------- Admin / driver auth pages ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #141833; padding: 24px; }
.auth-box { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 380px; }
.auth-box .logo-wrap { text-align: center; margin-bottom: 20px; }
.auth-box h1 { font-size: 19px; font-weight: 800; text-align: center; margin: 0 0 4px; }
.auth-box p.sub { text-align: center; color: #666A7C; font-size: 13px; margin: 0 0 22px; }
.auth-box label { display: block; font-size: 12px; font-weight: 700; color: #666A7C; margin-bottom: 5px; }
.auth-box input { width: 100%; border: 1.5px solid #ECEDF3; border-radius: 9px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; font-family: inherit; }
.auth-box button { width: 100%; background: #141833; color: #fff; border: none; padding: 12px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; }
.auth-error { background: #FDECEA; color: #C0362C; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.auth-hint { background: #F5F6FA; padding: 9px 12px; border-radius: 8px; font-size: 11.5px; color: #666A7C; margin-top: 14px; text-align: center; }

/* ---------- Dashboard (admin & driver) ---------- */
.dash-header { background: #141833; padding: 16px 24px; }
.dash-header-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dash-header .who { color: #C8CAD9; font-size: 13px; }
.dash-header a.logout { color: #FFB020; font-size: 13px; font-weight: 700; }
.dash-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 60px; }
.dash-wrap h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.dash-wrap p.lead { font-size: 13.5px; color: #666A7C; margin: 0 0 18px; }
.save-note { background: #E3F4F1; color: #0E5B54; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 9px; margin-bottom: 14px; }
.pricing-row { background: #fff; border: 1px solid #ECEDF3; border-radius: 14px; padding: 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pricing-row .vicon { width: 52px; height: 52px; border-radius: 10px; background: #141833; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.pricing-fields { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.pricing-fields .pf { text-align: center; }
.pricing-fields .pf label { display: block; font-size: 10.5px; font-weight: 700; color: #9296A8; margin-bottom: 4px; }
.pricing-fields .pf input[type=number] { width: 88px; border: 1px solid #ECEDF3; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 700; text-align: center; }
.pricing-fields .pf input[disabled] { background: #F5F6FA; opacity: .45; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ECEDF3; border-radius: 12px; overflow: hidden; }
table.data-table th { text-align: left; background: #F5F6FA; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #8B8FA3; padding: 10px 12px; }
table.data-table td { padding: 12px; border-top: 1px solid #F1F2F7; font-size: 13px; vertical-align: top; }
.status-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-pill.unassigned { background: #FDECEA; color: #C0362C; }
.status-pill.assigned { background: #E6F1FB; color: #185FA5; }
.status-pill.completed { background: #E3F4F1; color: #0E8388; }
select.assign-select { border: 1px solid #ECEDF3; border-radius: 8px; padding: 7px 8px; font-size: 12.5px; font-family: inherit; }
.tabs-nav { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs-nav a { padding: 9px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid #ECEDF3; color: #666A7C; }
.tabs-nav a.active { background: #141833; color: #fff; border-color: #141833; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border-radius: 12px; border: 1px solid #ECEDF3; overflow: hidden; margin-bottom: 10px; }
.faq-item summary { padding: 14px 16px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .a { padding: 0 16px 16px; font-size: 13px; color: #666A7C; line-height: 1.6; }

/* ---------- Misc ---------- */
.confirm-box { max-width: 640px; margin: 0 auto; padding: 50px 24px 60px; text-align: center; }
.confirm-check { width: 64px; height: 64px; border-radius: 50%; background: #E3F4F1; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #0E8388; }
.row-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F1F2F7; font-size: 13px; }
.row-line:last-child { border-bottom: none; }
.row-line .label { color: #9296A8; }
.row-line .value { font-weight: 700; text-align: right; }
.empty-box { background: #fff; border-radius: 14px; border: 1px dashed #DBDDE8; padding: 50px 20px; text-align: center; color: #9296A8; }
