* { 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; }
* { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.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: 10px; align-items: center; }
.nav-btn {
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.nav-btn-customer { background: rgba(14,131,136,0.16); color: #5FD4D8; border-color: rgba(95,212,216,0.3); }
.nav-btn-customer:hover { background: #0E8388; color: #fff; }
.nav-btn-driver { background: rgba(255,176,32,0.15); color: #FFB020; border-color: rgba(255,176,32,0.35); }
.nav-btn-driver:hover { background: #FFB020; color: #141833; }
.fleet-card { display: flex; flex-direction: column; height: 100%; }
.fleet-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid #F1F2F7; }
.fleet-actions .btn-primary { margin-left: auto; white-space: nowrap; }
.icon-btn-sm { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.icon-btn-sm.call { background: #141833; }
.icon-btn-sm.whatsapp { background: #1FBE7A; }
.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 {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20,24,51,0.94) 0%, rgba(20,24,51,0.88) 55%, rgba(20,24,51,0.97) 100%),
    url('../img/hero-vehicles.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding-bottom: 46px;
}
.hero-inner { position: relative; 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; box-shadow: 0 1px 2px rgba(20,24,51,0.03); }
.grid .card:hover, .vehicle-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,24,51,0.09); border-color: #E3E5F0; }
.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; }

/* CSS-only One Way / Round Trip tabs — the radios ARE the trip_type field */
.tt-radio { display: none; }
.tt-tabs-header { display: flex; gap: 0; border-bottom: 2px solid #ECEDF3; margin-bottom: 18px; }
.tt-tab-label {
  flex: 1; text-align: center; padding: 12px 8px; font-weight: 700; font-size: 14px; color: #9296A8;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tt-tab-label:hover { color: #666A7C; }
#tt-one:checked ~ .tt-tabs-header label[for="tt-one"],
#tt-round:checked ~ .tt-tabs-header label[for="tt-round"] { color: #141833; border-bottom-color: #FFB020; }
.return-date-field { display: none; }
#tt-round:checked ~ .form-row .return-date-field { display: block; }
.round-trip-note { display: none; font-size: 12px; color: #666A7C; margin-top: 10px; background: #F5F6FA; border-radius: 8px; padding: 8px 12px; }
#tt-round:checked ~ .round-trip-note { display: block; }

.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-primary:hover { background: #232A4D; transform: translateY(-1px); }
.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-amber:hover { background: #FFC04D; }
.btn-outline { border: 1px solid #ECEDF3; background: #fff; color: #666A7C; padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-outline:hover { border-color: #FFB020; color: #8A5A00; }
.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:hover { background: #F5F6FA; }
.category-tabs a.active { background: #141833; color: #fff; }
.category-tabs a.active:hover { background: #141833; }

/* ---------- 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; flex-direction: column; 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; }

/* Color-coded auth themes: teal for customers, amber for drivers, navy (default) for admin */
.auth-shell.theme-customer { background: linear-gradient(160deg, #0E8388 0%, #0B5F63 100%); }
.auth-shell.theme-customer .auth-box input:focus { outline: none; border-color: #0E8388; box-shadow: 0 0 0 3px rgba(14,131,136,0.15); }
.auth-shell.theme-customer .auth-box button { background: #0E8388; }
.auth-shell.theme-customer .auth-box button:hover { background: #0B6E72; }
.auth-shell.theme-customer .auth-hint a { color: #0E8388 !important; }
.auth-shell.theme-driver { background: linear-gradient(160deg, #FFB020 0%, #C97800 100%); }
.auth-shell.theme-driver .auth-box input:focus { outline: none; border-color: #FFB020; box-shadow: 0 0 0 3px rgba(255,176,32,0.2); }
.auth-shell.theme-driver .auth-box button { background: #141833; }
.auth-shell.theme-driver .auth-box button:hover { background: #232A4D; }
.auth-shell.theme-driver .auth-hint a { color: #C97800 !important; }
.auth-back-link { text-align: center; margin-top: 18px; }
.auth-back-link a {
  display: inline-block; background: #fff; color: #141833; font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.auth-back-link a:hover { background: #F5F6FA; transform: translateY(-1px); }

/* ---------- 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; box-shadow: 0 1px 2px rgba(20,24,51,0.03); }
.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; box-shadow: 0 1px 2px rgba(20,24,51,0.03); }
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; }
.dash-layout { display: flex; gap: 24px; align-items: flex-start; margin-top: 20px; }
.dash-sidebar {
  display: flex; flex-direction: column; gap: 4px; width: 230px; flex-shrink: 0;
  background: #fff; border: 1px solid #ECEDF3; border-radius: 12px; padding: 10px;
  position: sticky; top: 20px;
}
.dash-sidebar a { padding: 10px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #666A7C; }
.dash-sidebar a.active { background: #141833; color: #fff; }
.dash-sidebar a:hover:not(.active) { background: #F5F6FA; }
.dash-content { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: row; overflow-x: auto; position: static; }
}

/* ---------- 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; }

/* ---------- Admin shell: sidebar + topbar (multi-page admin panel) ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #F3F4F8; }
.admin-sidebar {
  width: 250px; flex-shrink: 0; background: #141833; color: #C8CAD9;
  display: flex; flex-direction: column; padding: 22px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand { padding: 0 22px 20px; }
.admin-sidebar-label { padding: 0 22px 16px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; color: #6B71A0; text-transform: uppercase; }
.admin-nav-group { margin-bottom: 20px; padding: 0 14px; }
.admin-nav-group-label { padding: 0 10px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: #565C88; text-transform: uppercase; }
.admin-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: #B7BCE3; margin-bottom: 3px; border-left: 3px solid transparent;
}
.admin-nav-link svg { flex-shrink: 0; opacity: 0.85; }
.admin-nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-nav-link:hover svg { opacity: 1; }
.admin-nav-link.active { background: rgba(255,176,32,0.14); color: #FFB020; font-weight: 700; border-left-color: #FFB020; }
.admin-nav-link.active svg { opacity: 1; }
.admin-sidebar-footer { margin-top: auto; padding: 18px 22px 0; font-size: 11px; color: #565C88; line-height: 1.7; border-top: 1px solid rgba(255,255,255,0.06); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid #ECEDF3; padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  position: sticky; top: 0; z-index: 5;
}
.admin-breadcrumb { font-size: 13px; color: #9296A8; font-weight: 600; }
.admin-topbar-right { display: flex; align-items: center; gap: 14px; }
.admin-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: #141833; color: #FFB020;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.admin-topbar-right .who-wrap { display: flex; align-items: center; gap: 9px; }
.admin-topbar-right .who { font-size: 13px; font-weight: 700; color: #171A2C; }
.admin-topbar-right .logout {
  font-size: 12.5px; font-weight: 700; color: #C0362C; padding: 6px 13px; border-radius: 999px; border: 1px solid #F3D3CB;
}
.admin-topbar-right .logout:hover { background: #FDECEA; }
.admin-content { padding: 26px 28px 60px; max-width: 1400px; }
.admin-page-title { font-size: 23px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.2px; }
.admin-page-sub { font-size: 13px; color: #666A7C; margin: 0 0 24px; max-width: 720px; line-height: 1.6; }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .admin-sidebar-brand, .admin-sidebar-label, .admin-sidebar-footer { display: none; }
  .admin-nav-group { padding: 0 4px; margin-bottom: 0; display: flex; gap: 4px; }
  .admin-nav-group-label { display: none; }
  .admin-nav-link { border-left: none; border-bottom: 3px solid transparent; padding: 8px 10px; }
  .admin-nav-link.active { border-left-color: transparent; border-bottom-color: #FFB020; }
  .admin-content { padding: 18px 16px 40px; }
}

/* ---------- Stat cards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
  background: #fff; border: 1px solid #ECEDF3; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(20,24,51,0.03); display: flex; flex-direction: column; gap: 10px;
}
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #9296A8; text-transform: uppercase; }
.stat-card .stat-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card .stat-num { font-size: 30px; font-weight: 800; color: #171A2C; line-height: 1; }

/* ---------- Top pickup/drop area widgets ---------- */
.top-areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 26px; }
.top-areas-card { background: #fff; border: 1px solid #ECEDF3; border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,24,51,0.03); }
.top-areas-card .top-areas-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; }
.top-areas-card .top-areas-heading .icon-chip { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-areas-card h3 { font-size: 14.5px; font-weight: 700; margin: 0; }
.top-areas-card .sub { font-size: 11.5px; color: #9296A8; margin: 4px 0 14px; }
.top-areas-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F5F6FA; font-size: 13px; }
.top-areas-row:last-child { border-bottom: none; }
.top-areas-row .rank {
  width: 20px; height: 20px; border-radius: 6px; background: #F5F6FA; color: #8A5A00;
  font-size: 11px; font-weight: 800; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.top-areas-row .name { flex: 1; color: #3A3D4D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-areas-row .count { font-weight: 700; color: #171A2C; flex-shrink: 0; background: #F5F6FA; border-radius: 999px; padding: 2px 10px; font-size: 12px; }

/* ---------- Filter bar ---------- */
.filter-bar { background: #fff; border: 1px solid #ECEDF3; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,24,51,0.03); }
.filter-bar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .search-field { position: relative; flex: 1 1 240px; min-width: 200px; }
.filter-bar .search-field svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9296A8; pointer-events: none; }
.filter-bar .search-field input { width: 100%; padding-left: 34px !important; }
.filter-bar input[type=text], .filter-bar input[type=date], .filter-bar select {
  border: 1px solid #E4E6EF; border-radius: 9px; padding: 9px 13px; font-size: 13px; font-family: inherit; color: #171A2C;
  height: 38px; box-sizing: border-box; background: #fff;
}
.filter-bar input[type=text]:focus, .filter-bar input[type=date]:focus, .filter-bar select:focus { border-color: #FFB020; outline: none; }
.filter-count { font-size: 12.5px; color: #666A7C; font-weight: 600; margin: 0 0 12px; }

/* ---------- Data table polish ---------- */
table.data-table td { vertical-align: middle; }
table.data-table tbody tr { transition: background-color .12s ease; }
table.data-table tbody tr:hover { background: #FAFAFD; }
.row-actions { display: flex; align-items: center; gap: 4px; }
.row-actions a, .row-actions button {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; flex-shrink: 0;
}
.row-actions a:hover, .row-actions button:hover { background: #F0F1F6; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #666A7C; }
.pagination a { border: 1px solid #ECEDF3; background: #fff; }
.pagination a:hover { border-color: #FFB020; color: #8A5A00; }
.pagination span.current { background: #141833; color: #fff; }
.pagination span.ellipsis { color: #B3B6C4; border: none; }

/* ---------- Extra status pills for the trip lifecycle ---------- */
.status-pill.started { background: #F1E9FB; color: #6B3FA0; }
.status-pill.cancelled { background: #EEF0F4; color: #666A7C; text-decoration: line-through; }

