/* Gola — black & white ride-hailing UI */
:root {
    --black: #000;
    --white: #fff;
    --g50: #f6f6f6;
    --g100: #eeeeee;
    --g200: #e2e2e2;
    --g300: #cbcbcb;
    --g400: #afafaf;
    --g500: #757575;
    --g600: #545454;
    --g700: #333333;
    --green: #05944f;
    --green-bg: #e6f2ed;
    --red: #e11900;
    --red-bg: #ffefed;
    --blue: #276ef1;
    --blue-bg: #eff3fe;
    --amber: #ffc043;
    --amber-bg: #fff6e0;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 16px rgba(0, 0, 0, .12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .16);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.h3 { font-size: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--g200); margin: 16px 0; }
code { background: var(--g100); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--g600); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.bold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 64px; }
.container.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 0; cursor: pointer;
    font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; line-height: 1.2;
    transition: background .15s, transform .05s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--g700); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--g100); }
.btn-gray { background: var(--g100); color: var(--black); }
.btn-gray:hover { background: var(--g200); }
.btn-outline { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1px var(--g300); }
.btn-outline:hover { background: var(--g50); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #037a40; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red-soft { background: var(--red-bg); color: var(--red); }
.btn-pill { border-radius: 999px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.link { background: none; border: 0; padding: 0; color: var(--black); text-decoration: underline; cursor: pointer; font-weight: 500; }
.link-plain { text-decoration: none; }
.link-plain:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: 6px; }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
    border: 2px solid transparent; background: var(--g100); outline: none; transition: border-color .15s, background .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--black); background: var(--white); }
.input.error, .select.error { border-color: var(--red); background: var(--red-bg); }
.field-error { color: var(--red); font-size: .8125rem; margin-top: 4px; }
.field-hint { color: var(--g600); font-size: .8125rem; margin-top: 4px; }
.select { appearance: none; 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='black' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--black); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.file-input { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px dashed var(--g300); border-radius: var(--radius); background: var(--g50); }
.file-input input { flex: 1; min-width: 0; font-size: .875rem; }
.file-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--g200); }
.pin-input { letter-spacing: .6em; font-size: 1.75rem; font-weight: 700; text-align: center; padding-left: .6em; }

/* ---------- Alerts, badges, chips ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9375rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-bg); color: #03582f; }
.alert-error { background: var(--red-bg); color: #a41300; }
.alert-info { background: var(--blue-bg); color: #174291; }
.alert-warning { background: var(--amber-bg); color: #6b4a00; }
.alert a { color: inherit; font-weight: 600; }
.flash-stack { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 3000; width: min(560px, calc(100% - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: drop-in .3s ease; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--g100); color: var(--g700); white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: #8a5a00; }
.badge-black { background: var(--black); color: var(--white); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--g100); border: 0; font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip:hover { background: var(--g200); }
.chip.active { background: var(--black); color: var(--white); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--g200); color: var(--black); font-weight: 600; object-fit: cover; flex-shrink: 0; }
.avatar.dark { background: var(--black); color: var(--white); }

/* ---------- Cards, tables ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--g200); padding: 24px; }
.card.flat { border: 0; background: var(--g50); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--g600); padding: 10px 12px; border-bottom: 1px solid var(--g200); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--g50); }
.table .num { text-align: right; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: .9375rem; }
.kv dt { color: var(--g600); }
.kv dd { margin: 0; font-weight: 500; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--g100); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--g50); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.list-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--g100); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--g600); }
.empty .icon { color: var(--g400); margin-bottom: 8px; }
.bill-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9375rem; }
.bill-row.total { border-top: 1px solid var(--g200); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.0625rem; }
.bill-row.discount { color: var(--green); }

/* ---------- Site header (black top bar) ---------- */
.topbar { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 1000; }
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 8px; }
.logo { font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; color: inherit; margin-right: 24px; line-height: 1; }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-link { color: var(--white); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .9375rem; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.top-link:hover, .top-link.active { background: #282828; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-right .btn-white { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .9375rem; }
.menu-btn { display: none; }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--white); color: var(--black);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 1100;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--radius); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: .9375rem; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--g100); }
.dropdown-head { padding: 12px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--g100); margin-bottom: 4px; }
.mobile-nav { display: none; }

/* ---------- Home ---------- */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 3.25rem; margin-bottom: 24px; }
.hero-sub { font-size: 1rem; color: var(--g600); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.hero-art { border-radius: var(--radius-lg); overflow: hidden; background: var(--g50); }
.hero-art img { width: 100%; }
.loc-form { max-width: 480px; }
.loc-fields { position: relative; }
.loc-field { position: relative; margin-bottom: 12px; }
.loc-field .input { padding-left: 44px; padding-right: 44px; height: 56px; }
.loc-dot, .loc-square { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--black); z-index: 2; pointer-events: none; }
.loc-dot { border-radius: 50%; background: #22b14c; box-shadow: 0 0 0 2px #111; }
.loc-square { background: #e53935; box-shadow: 0 0 0 2px #111; }
.loc-line { position: absolute; left: 22px; top: 34px; bottom: 34px; width: 2px; background: var(--black); z-index: 1; }
.loc-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.loc-btn:hover { background: var(--g200); }
.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); z-index: 1200; max-height: 360px; overflow-y: auto; padding: 6px;
}
.suggest-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius); cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: var(--g100); }
.suggest-item .list-icon { width: 36px; height: 36px; }
.suggest-main { font-weight: 500; font-size: .9375rem; }
.suggest-sub { font-size: .8125rem; color: var(--g600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-note { padding: 10px; font-size: .8125rem; color: var(--g600); }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.section { padding: 64px 0; }
.section.gray { background: var(--g50); }
.section-title { font-size: 2.25rem; margin-bottom: 32px; }
.suggest-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-card { background: var(--g100); border-radius: var(--radius-lg); padding: 20px; display: flex; justify-content: space-between; gap: 12px; text-decoration: none; min-height: 140px; transition: background .15s; }
.s-card:hover { background: var(--g200); }
.s-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.s-card p { font-size: .875rem; color: var(--g600); margin-bottom: 12px; }
.s-card .btn { min-height: 32px; font-size: .875rem; padding: 0 14px; border-radius: 999px; }
.s-card img { width: 110px; height: 80px; object-fit: contain; align-self: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: 2.5rem; margin-bottom: 16px; }
.split p { color: var(--g700); margin-bottom: 24px; }
.art-box { border-radius: var(--radius-lg); overflow: hidden; background: var(--g100); }
.feature-list { display: grid; gap: 24px; }
.feature { display: flex; gap: 16px; }
.feature .list-icon { background: var(--black); color: var(--white); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature p { font-size: .9375rem; color: var(--g600); margin: 0; }
.reserve-box { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); max-width: 440px; }
.reserve-box .input-group { margin-bottom: 16px; }
.app-band { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.app-band p { color: var(--g300); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band strong { display: block; font-size: 2rem; letter-spacing: -.03em; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: 2.5rem; }
.faq details { border-bottom: 1px solid var(--g200); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--g700); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.375rem; margin-top: 32px; }
.prose p, .prose li { color: var(--g700); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: 64px 0 32px; margin-top: 64px; }
.footer .logo { font-size: 1.5rem; display: inline-block; margin-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
.footer h4 { font-size: 1.0625rem; margin-bottom: 16px; font-weight: 600; }
.footer-cols a { display: block; color: var(--g300); text-decoration: none; padding: 5px 0; font-size: .9375rem; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--g400); font-size: .8125rem; border-top: 1px solid #222; padding-top: 24px; }
.footer-bottom a { color: var(--g300); }
.powered { color: var(--g300); }
.powered strong { color: var(--white); }

/* ---------- Auth pages ---------- */
.auth-body { background: var(--white); min-height: 100vh; }
.auth-top { background: var(--black); color: var(--white); height: 64px; display: flex; align-items: center; padding: 0 24px; }
.auth-top .logo { margin: 0; }
.auth-top .top-link { margin-left: auto; }
.auth-wrap { padding: 48px 16px; }
.auth-box { max-width: 400px; margin: 0 auto; }
.auth-box.wide { max-width: 640px; }
.auth-box h1 { font-size: 1.75rem; margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .9375rem; color: var(--g600); }
.auth-alt a { color: var(--black); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--g500); font-size: .8125rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--g200); }
.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--g200); }
.steps span.on { background: var(--black); }
.form-section { padding: 24px 0; border-bottom: 1px solid var(--g200); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 1.125rem; margin-bottom: 4px; }
.form-section > p { color: var(--g600); font-size: .875rem; }
.vt-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vt-pick label { border: 2px solid var(--g200); border-radius: var(--radius); padding: 10px 8px; text-align: center; cursor: pointer; font-size: .8125rem; font-weight: 500; }
.vt-pick img { height: 40px; margin: 0 auto 4px; object-fit: contain; }
.vt-pick input { position: absolute; opacity: 0; }
.vt-pick label:has(input:checked) { border-color: var(--black); background: var(--g50); }

/* ---------- Map layouts (book, trip, driver) ---------- */
.map-page { display: grid; grid-template-columns: 440px 1fr; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.map-panel { overflow-y: auto; padding: 24px; border-right: 1px solid var(--g200); background: var(--white); position: relative; z-index: 2; }
.map-area { position: relative; }
.map-area .map { position: absolute; inset: 0; }
.map { background: #e8eae6; z-index: 1; }
.map-float { position: absolute; z-index: 500; }
.map-hint { top: 16px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 8px 16px; border-radius: 999px; font-size: .875rem; box-shadow: var(--shadow); white-space: nowrap; }
.map-locate { right: 16px; bottom: 24px; background: var(--white); width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.panel-title { font-size: 1.75rem; margin-bottom: 20px; }
.panel-section { padding: 16px 0; border-top: 1px solid var(--g100); }
.panel-sticky { position: sticky; bottom: -24px; background: var(--white); padding: 16px 0 24px; margin-bottom: -24px; border-top: 1px solid var(--g100); }
.leaflet-container { font-family: var(--font); background: #eceef4; }
.leaflet-control-attribution { font-size: 10px !important; }

/* map markers: pins on a stick (pickup green, dropoff red, stops numbered), live location dot, top-down cars */
.pin { width: 26px; height: 42px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pin-head { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #111; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #111; flex-shrink: 0; }
.pin-pickup .pin-head { background: #22b14c; box-shadow: inset 0 0 0 3px #fff; }
.pin-drop .pin-head { background: #e53935; box-shadow: inset 0 0 0 3px #fff; }
.pin-stop .pin-head { background: #fff; }
.pin-stick { width: 3px; height: 16px; background: #111; border-radius: 0 0 2px 2px; }
.mk-label { background: var(--black); color: var(--white); padding: 6px 10px; border-radius: 8px; font-size: .8125rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 6px)); position: absolute; left: 50%; top: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mk-car { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; transition: transform .8s linear; }
.mk-car svg { filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: #2f80ed; border: 3px solid var(--white); box-shadow: 0 0 0 7px rgba(47,128,237,.22), 0 1px 4px rgba(0,0,0,.3); }

/* location inputs inside the panel */
.trip-inputs { position: relative; background: var(--g100); border-radius: var(--radius-lg); padding: 6px; margin-bottom: 16px; }
.trip-inputs .loc-field { margin: 0; }
.trip-inputs .loc-field + .loc-field { border-top: 1px solid var(--g200); }
.trip-inputs .input { background: transparent; height: 52px; border-radius: 10px; }
.trip-inputs .input:focus { background: var(--white); }
.trip-inputs .loc-line { top: 32px; bottom: 32px; left: 28px; }
.trip-inputs .loc-dot, .trip-inputs .loc-square { left: 24px; }
.when-row { display: flex; gap: 8px; margin-bottom: 16px; }
.when-row .select { flex: 0 0 auto; width: auto; min-height: 40px; padding: 6px 36px 6px 14px; border-radius: 999px; font-weight: 500; font-size: .875rem; }
.when-row .input { min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: .875rem; }

/* ride options */
.options-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 8px; }
.options-head h3 { margin: 0; font-size: 1.25rem; }
.ride-opts { display: flex; flex-direction: column; gap: 4px; }
.ride-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-lg); border: 2px solid transparent; cursor: pointer; background: none; width: 100%; text-align: left; }
.ride-opt:hover { background: var(--g50); }
.ride-opt.selected { border-color: var(--black); }
.ride-opt img { width: 72px; height: 48px; object-fit: contain; flex-shrink: 0; }
.ride-opt .opt-name { font-weight: 600; font-size: 1.0625rem; display: flex; align-items: center; gap: 6px; }
.ride-opt .opt-seats { font-weight: 500; font-size: .8125rem; display: inline-flex; align-items: center; gap: 2px; }
.ride-opt .opt-sub { font-size: .8125rem; color: var(--g600); }
.ride-opt .opt-price { text-align: right; font-weight: 600; font-size: 1.0625rem; white-space: nowrap; }
.ride-opt .opt-price s { display: block; color: var(--g500); font-weight: 400; font-size: .8125rem; }
.ride-opt .opt-desc { display: none; font-size: .8125rem; color: var(--g600); }
.ride-opt.selected .opt-desc { display: block; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pay-row .select { min-height: 40px; padding: 6px 36px 6px 12px; flex: 1; }
.promo-msg { font-size: .8125rem; margin-top: 6px; }
.promo-msg.ok { color: var(--green); }
.promo-msg.bad { color: var(--red); }
.trip-meta { display: flex; gap: 16px; font-size: .875rem; color: var(--g600); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--g100) 25%, var(--g50) 50%, var(--g100) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-lg); height: 68px; margin-bottom: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* trip (rider) */
.status-head h1 { font-size: 1.625rem; margin-bottom: 4px; }
.status-head p { color: var(--g600); margin: 0; }
.search-bar-anim { height: 4px; background: var(--g100); border-radius: 4px; overflow: hidden; margin: 20px 0; position: relative; }
.search-bar-anim::after { content: ""; position: absolute; left: -40%; width: 40%; top: 0; bottom: 0; background: var(--black); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { to { left: 100%; } }
.pulse { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(0,0,0,.18); transform: translate(-50%, -50%); animation: pulse 2s ease-out infinite; pointer-events: none; }
@keyframes pulse { from { transform: translate(-50%, -50%) scale(.2); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.driver-card { display: flex; gap: 16px; align-items: center; padding: 16px 0; }
.driver-card .plate { display: inline-block; background: var(--g100); padding: 4px 10px; border-radius: 6px; font-weight: 700; letter-spacing: .04em; font-size: 1.0625rem; }
.driver-card .veh-img { width: 96px; height: 60px; object-fit: contain; }
.pin-box { display: flex; align-items: center; justify-content: space-between; background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 14px 18px; margin: 8px 0 16px; }
.pin-box strong { font-size: 1.75rem; letter-spacing: .3em; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.action-grid .btn { flex-direction: column; gap: 4px; min-height: 68px; font-size: .8125rem; padding: 8px; }
.route-list { position: relative; padding-left: 28px; margin: 8px 0; }
.route-list::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--black); }
.route-stop { position: relative; padding: 6px 0; }
.route-stop::before { content: ""; position: absolute; left: -26px; top: 12px; width: 10px; height: 10px; background: var(--black); }
.route-stop.pickup::before { border-radius: 50%; }
.route-stop .main { font-weight: 600; }
.route-stop .sub { font-size: .8125rem; color: var(--g600); }
.stars { display: flex; gap: 6px; justify-content: center; margin: 12px 0; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2.5rem; color: var(--g300); cursor: pointer; line-height: 1; transition: color .1s, transform .1s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--black); }
.stars label:active { transform: scale(.9); }
.tip-opts { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.tip-opts input { position: absolute; opacity: 0; }
.tip-opts label { padding: 10px 18px; border-radius: 999px; background: var(--g100); cursor: pointer; font-weight: 500; }
.tip-opts input:checked + label { background: var(--black); color: var(--white); }
.fare-big { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.timeline li { display: flex; justify-content: space-between; padding: 6px 0; color: var(--g600); }
.timeline li strong { color: var(--black); font-weight: 500; }

/* rides history */
.trip-row { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius-lg); text-decoration: none; }
.trip-row:hover { background: var(--g50); }
.trip-row img { width: 72px; height: 48px; object-fit: contain; }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.wallet-hero { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 28px; }
.wallet-hero .fare-big { color: var(--white); }
.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.amount-chips button { flex: 1; }

/* ---------- Driver panel ---------- */
.drv-body { background: var(--white); }
.drv-top { background: var(--black); color: var(--white); height: 64px; position: sticky; top: 0; z-index: 1000; }
.drv-top .topbar-inner { padding: 0 20px; }
.drv-top .logo small { font-size: .875rem; font-weight: 500; color: var(--g400); letter-spacing: 0; margin-left: 6px; }
.drv-nav { display: flex; gap: 4px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: #282828; }
.online-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g500); }
.online-pill.on { background: var(--green); }
.online-pill.on::before { background: var(--white); }
.go-btn { width: 100%; min-height: 64px; font-size: 1.25rem; font-weight: 700; border-radius: 999px; }
.go-online { background: var(--blue); color: var(--white); }
.go-online:hover { background: #1e5ad1; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat-tile { background: var(--g50); border-radius: var(--radius); padding: 12px; }
.stat-tile strong { display: block; font-size: 1.25rem; }
.stat-tile span { font-size: .75rem; color: var(--g600); }
.offer-card { border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); padding: 20px; margin-bottom: 12px; border: 2px solid var(--black); animation: drop-in .3s ease; }
.offer-card .offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.offer-card .offer-amt { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.offer-timer { height: 4px; background: var(--g100); border-radius: 4px; overflow: hidden; margin: 12px 0; }
.offer-timer span { display: block; height: 100%; background: var(--black); width: 100%; transition: width 1s linear; }
.waiting { text-align: center; padding: 32px 0; }
.waiting .radar { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--g100); position: relative; display: flex; align-items: center; justify-content: center; }
.waiting .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--black); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.trip-step { background: var(--g50); border-radius: var(--radius-lg); padding: 16px; margin: 12px 0; }
.big-action { min-height: 60px; font-size: 1.125rem; font-weight: 700; border-radius: var(--radius-lg); }
.collect { text-align: center; padding: 24px; border-radius: var(--radius-lg); background: var(--green-bg); color: #03582f; margin: 12px 0; }
.collect .fare-big { color: var(--black); }
.earn-hero { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.earn-hero .muted { color: var(--g400); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin-top: 16px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; font-size: .75rem; color: var(--g400); }
.bars span.bar { width: 100%; background: #3a3a3a; border-radius: 4px 4px 0 0; min-height: 2px; }
.bars div.today span.bar { background: var(--white); }
.doc-thumb { width: 100%; max-width: 260px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--g100); border: 1px solid var(--g200); }

/* ---------- Admin ---------- */
.admin-body { background: var(--g50); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--black); color: var(--white); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side a.logo { display: block; padding: 0 12px; margin: 0 0 24px; font-size: 1.75rem; color: var(--white); }
.admin-side a.logo:hover { background: none; }
.admin-side .side-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; color: var(--g300); background: none; border: 0; border-radius: var(--radius); font-size: .9375rem; font-weight: 500; cursor: pointer; }
.admin-side .side-btn:hover { background: #1c1c1c; color: var(--white); }
.admin-side .logo small { font-size: .75rem; color: var(--g400); font-weight: 500; letter-spacing: 0; display: block; margin-top: 4px; }
.admin-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--g300); text-decoration: none; border-radius: var(--radius); font-size: .9375rem; font-weight: 500; }
.admin-side a:hover { background: #1c1c1c; color: var(--white); }
.admin-side a.active { background: var(--white); color: var(--black); }
.admin-side .count { margin-left: auto; background: var(--red); color: var(--white); border-radius: 999px; font-size: .6875rem; padding: 1px 7px; }
.admin-side hr { border-color: #222; }
.admin-main { padding: 32px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.75rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--g200); }
.kpi span { font-size: .8125rem; color: var(--g600); }
.kpi strong { display: block; font-size: 1.75rem; letter-spacing: -.03em; margin-top: 4px; }
.kpi small { color: var(--g600); }
.admin-map { height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--g200); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters .input, .filters .select { min-height: 40px; padding: 6px 12px; width: auto; background-color: var(--white); border: 1px solid var(--g200); }
.filters .select { padding-right: 36px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.inline-form { display: inline; }
.mini-input { width: 100px; min-height: 36px; padding: 4px 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .container { padding: 0 32px; }
    .hero h1 { font-size: 2.5rem; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero-grid, .split, .app-band { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse > :first-child { order: 0; }
    .suggest-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-cols, .stat-band { grid-template-columns: repeat(2, 1fr); }
    .top-links { display: none; }
    .menu-btn { display: inline-flex; }
    .mobile-nav.open { display: block; background: var(--black); padding: 8px 16px 16px; border-top: 1px solid #222; }
    .mobile-nav a { display: block; color: var(--white); text-decoration: none; padding: 12px 0; font-size: 1.125rem; font-weight: 500; }
    .map-page { grid-template-columns: 1fr; grid-template-rows: 42vh auto; height: auto; }
    .map-area { order: -1; height: 42vh; position: sticky; top: 64px; }
    .map-panel { border-right: 0; border-radius: 16px 16px 0 0; margin-top: -16px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); min-height: 58vh; }
    .panel-sticky { position: sticky; bottom: 0; margin: 0 -24px -24px; padding: 12px 24px 16px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
    .admin-side .logo { width: 100%; margin-bottom: 8px; }
    .admin-side hr { display: none; }
    .admin-main { padding: 20px 16px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.75rem; }
    .hero { padding: 32px 0 48px; }
    .hero h1 { font-size: 2.25rem; }
    .section { padding: 48px 0; }
    .section-title, .split h2, .page-head h1 { font-size: 1.75rem; }
    .suggest-cards, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .s-card { min-height: 120px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .app-band { padding: 28px; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi strong { font-size: 1.375rem; }
    .top-right .hide-sm, .hide-sm { display: none !important; }
    .map-panel { padding: 20px 16px; }
    .panel-sticky { margin: 0 -16px -20px; padding: 12px 16px 16px; }
    .card { padding: 18px; }
    .vt-pick { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trip chat ---------- */
.chat-sheet { position: fixed; right: 24px; bottom: 24px; width: 380px; height: min(560px, calc(100vh - 100px)); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 2500; display: flex; flex-direction: column; overflow: hidden; }
.chat-sheet[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--g100); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--g50); }
.chat-note { font-size: .75rem; color: var(--g600); text-align: center; padding: 8px; }
.chat-quick { padding: 8px 12px 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; }
.chat-form .input { min-height: 44px; }
.msg { display: flex; flex-direction: column; max-width: 80%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.msg .bubble { padding: 9px 13px; border-radius: 16px; font-size: .9375rem; line-height: 1.35; word-wrap: break-word; }
.msg.mine .bubble { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.msg.theirs .bubble { background: var(--white); border: 1px solid var(--g200); border-bottom-left-radius: 4px; }
.msg-time { font-size: .6875rem; color: var(--g500); margin-top: 2px; }
.has-badge { position: relative; }
.dot-badge { position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: var(--white); font-size: .6875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.action-grid.four { grid-template-columns: repeat(4, 1fr); }
.action-grid .dropdown .btn { width: 100%; height: 100%; }
.action-grid .dropdown-menu { right: auto; left: 50%; transform: translateX(-50%); min-width: 240px; }
.route-stop.via::before { width: 8px; height: 8px; left: -25px; background: var(--white); border: 2px solid var(--black); }
.stop-field .loc-square { width: 8px; height: 8px; left: 25px; background: var(--white); border: 2px solid var(--black); }
.add-stop { margin: -8px 0 16px; }
.guest-box { background: var(--g50); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 16px; }
.guest-box .grid { gap: 8px; }
.guest-box .input { background: var(--white); min-height: 44px; }
@media (max-width: 600px) {
    .chat-sheet { right: 0; left: 0; bottom: 0; width: auto; height: 85vh; border-radius: 16px 16px 0 0; }
    .action-grid.four { grid-template-columns: repeat(2, 1fr); }
}
