/* ==========================================
   GabTrans - Ultra Compact Mobile App CSS
   Design: Native mobile feel (Uber/Bolt)
   Density: Maximum — tiny but readable
   ========================================== */

:root {
    --pri: #0B6E4F;
    --pri-l: #14A76C;
    --pri-d: #084C37;
    --acc: #F7B32B;
    --acc-d: #D4960E;
    --err: #DC2626;
    --ok: #16A34A;
    --warn: #F59E0B;
    --bg: #F0F1F3;
    --card: #FFFFFF;
    --dark: #0F172A;
    --t1: #1A1F2B;
    --t2: #556070;
    --t3: #8E99A8;
    --brd: #E4E7EB;
    --sh: 0 0.5px 2px rgba(0,0,0,0.06);
    --sh2: 0 2px 8px rgba(0,0,0,0.08);
    --r: 8px;
    --rs: 6px;
    --rl: 10px;
    --f: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hh: 44px;
    --bnh: 50px;
    --sw: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--f); color: var(--t1); background: var(--bg);
    line-height: 1.4; -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
    overscroll-behavior: none;
}

a { color: var(--pri); text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: 0.92rem; }

/* ==========================================
   BUTTONS — compact, pill-shaped
   ========================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 0.77rem;
    border: none; cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
    text-decoration: none; letter-spacing: 0.01em; line-height: 1.3;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--pri); color: #fff; }
.btn--primary:active { background: var(--pri-d); }
.btn--outline { background: transparent; border: 1px solid var(--brd); color: var(--t1); }
.btn--outline:active { background: var(--bg); }
.btn--success { background: var(--ok); color: #fff; }
.btn--danger { background: var(--err); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 10px 18px; font-size: 0.85rem; border-radius: var(--r); }
.btn--sm { padding: 4px 10px; font-size: 0.72rem; }
.btn--xs { padding: 3px 7px; font-size: 0.65rem; border-radius: 4px; }
.btn-text { background: none; border: none; color: var(--pri); font-weight: 600; cursor: pointer; padding: 2px 4px; font-size: 0.72rem; }

/* ==========================================
   FORMS — compact inputs
   ========================================== */
.form-group { margin-bottom: 10px; }
.form-group label {
    display: flex; align-items: center; gap: 4px;
    font-weight: 600; font-size: 0.7rem; margin-bottom: 3px;
    color: var(--t2); text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input, .form-group select, .form-group textarea, .form-select {
    width: 100%; padding: 8px 10px; border: 1px solid var(--brd); border-radius: var(--rs);
    background: var(--card); color: var(--t1); transition: border-color 0.15s;
    font-size: 0.85rem; line-height: 1.3;
}
.form-group input:focus, .form-group select:focus, .form-select:focus {
    outline: none; border-color: var(--pri); box-shadow: 0 0 0 2px rgba(11,110,79,0.08);
}
.form-group input::placeholder { color: var(--t3); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-hint { font-size: 0.62rem; color: var(--t3); margin-top: 2px; display: block; }
.form-section-title { font-size: 0.78rem; font-weight: 700; margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--brd); color: var(--t2); }
.form-card { background: var(--card); border-radius: var(--r); padding: 12px; margin-bottom: 8px; box-shadow: var(--sh); }

.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--t3); pointer-events: none; width: 14px; height: 14px; }
.input-with-icon input { padding-left: 30px; }

.file-upload {
    position: relative; display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; border: 1px dashed var(--brd); border-radius: var(--rs);
    cursor: pointer; font-size: 0.72rem;
}
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload span { color: var(--t3); }

.checkbox-label {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 0.7rem; margin: 10px 0; cursor: pointer; line-height: 1.4; color: var(--t2);
}
.checkbox-label input { margin-top: 1px; width: 14px; height: 14px; flex-shrink: 0; }
.checkbox-label a { font-weight: 600; }

/* ==========================================
   AUTH PAGES — clean login/register
   ========================================== */
.auth-body {
    background: linear-gradient(160deg, var(--pri-d), var(--pri) 60%, var(--pri-l));
    min-height: 100vh; min-height: 100dvh;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 32px 14px 14px;
}
.auth-container { width: 100%; max-width: 360px; }
.auth-card {
    background: var(--card); border-radius: var(--rl); padding: 20px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.auth-card--register { max-width: 400px; }
.auth-header { text-align: center; margin-bottom: 16px; }
.auth-header h1 { font-size: 1.15rem; font-weight: 800; margin-top: 8px; }
.auth-header p { color: var(--t2); font-size: 0.72rem; margin-top: 2px; }
.auth-logo img { border-radius: 10px; width: 40px; height: 40px; margin: 0 auto; }
.auth-footer { text-align: center; margin-top: 14px; font-size: 0.72rem; color: var(--t3); }
.auth-footer a { font-weight: 700; color: var(--pri); }

.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.role-option input { display: none; }
.role-card {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 6px; border: 1.5px solid var(--brd); border-radius: var(--r);
    cursor: pointer; transition: all 0.15s;
}
.role-card svg { width: 20px; height: 20px; }
.role-card span { font-weight: 600; font-size: 0.7rem; }
.role-option input:checked + .role-card { border-color: var(--pri); background: rgba(11,110,79,0.04); color: var(--pri); }

/* ==========================================
   APP HEADER — 44px thin native header
   ========================================== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--hh); z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 0.5px solid var(--brd);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.app-logo {
    display: flex; align-items: center; gap: 5px;
    font-weight: 800; font-size: 0.88rem; color: var(--pri);
}
.app-logo img { width: 22px; height: 22px; border-radius: 5px; }

.menu-toggle {
    background: none; border: none; width: 28px; height: 28px;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 3.5px; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--t1); border-radius: 1px; }

/* Notifications bell */
.notif-btn {
    position: relative; background: none; border: none; padding: 4px;
    cursor: pointer; color: var(--t2); display: flex; align-items: center;
}
.notif-btn svg { width: 17px; height: 17px; }
.notif-badge {
    position: absolute; top: 0; right: -1px;
    background: var(--err); color: #fff; font-size: 0.5rem; font-weight: 800;
    min-width: 13px; height: 13px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--card);
}

/* User avatar & dropdown */
.user-menu { position: relative; }
.user-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; }
.avatar-circle {
    width: 26px; height: 26px; border-radius: 50%; background: var(--pri);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.62rem;
}
.user-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--card); border-radius: var(--r); box-shadow: var(--sh2);
    min-width: 170px; display: none; overflow: hidden; z-index: 200;
    border: 0.5px solid var(--brd);
}
.user-dropdown.open { display: block; animation: fadeIn 0.12s ease; }
.dropdown-header { padding: 8px 12px; }
.dropdown-header strong { display: block; font-size: 0.75rem; }
.dropdown-header small { color: var(--t3); font-size: 0.62rem; }
.dropdown-divider { height: 0.5px; background: var(--brd); }
.dropdown-item { display: block; padding: 7px 12px; font-size: 0.73rem; color: var(--t1); transition: background 0.1s; }
.dropdown-item:active { background: var(--bg); }
.dropdown-item--danger { color: var(--err); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   SIDEBAR — slim 220px overlay
   ========================================== */
.app-sidebar {
    position: fixed; top: 0; left: calc(-1 * var(--sw)); width: var(--sw); height: 100vh; height: 100dvh;
    background: var(--card); z-index: 150; transition: left 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--sh2); display: flex; flex-direction: column;
}
.app-sidebar.open { left: 0; }
.sidebar-header {
    padding: 14px 12px; display: flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: 0.9rem; color: var(--pri);
    border-bottom: 0.5px solid var(--brd);
}
.sidebar-header img { width: 26px; height: 26px; border-radius: 6px; }
.sidebar-nav { flex: 1; padding: 8px; }
.nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--rs); color: var(--t2);
    font-weight: 500; font-size: 0.75rem; transition: all 0.12s; margin-bottom: 1px;
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-item:active, .nav-item.active { background: rgba(11,110,79,0.06); color: var(--pri); }
.sidebar-footer { padding: 10px 12px; font-size: 0.6rem; color: var(--t3); border-top: 0.5px solid var(--brd); }
.sidebar-footer a { color: var(--t3); margin-right: 6px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 140; }
.sidebar-overlay.open { display: block; }

/* ==========================================
   MAIN CONTENT — tight padding
   ========================================== */
.app-body .app-main {
    padding: calc(var(--hh) + 8px) 10px calc(var(--bnh) + 8px);
    max-width: 480px; margin: 0 auto;
}
.admin-body .app-main { max-width: 780px; padding-left: 12px; padding-right: 12px; }

/* ==========================================
   BOTTOM NAV — 50px native iOS/Android tab bar
   ========================================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--bnh);
    background: rgba(255,255,255,0.95); backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 0.5px solid var(--brd);
    display: flex; align-items: center; justify-content: space-around; z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 0.55rem; color: var(--t3); font-weight: 500;
    padding: 4px 14px; transition: color 0.12s; letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { width: 18px; height: 18px; }
.bottom-nav-item.active { color: var(--pri); }
.bottom-nav-item.active svg { stroke-width: 2.3; }
.bottom-nav-item--primary svg { color: var(--pri); }

/* ==========================================
   FLASH MESSAGES — slim toast
   ========================================== */
.flash {
    position: fixed; top: calc(var(--hh) + 4px); left: 10px; right: 10px; z-index: 300;
    padding: 8px 12px; border-radius: var(--rs); font-size: 0.72rem; font-weight: 500;
    animation: slideDown 0.2s ease; max-width: 400px; margin: 0 auto; line-height: 1.35;
}
.flash--success { background: #DCFCE7; color: #166534; border: 0.5px solid #BBF7D0; }
.flash--error { background: #FEE2E2; color: #991B1B; border: 0.5px solid #FECACA; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================
   DASHBOARD — compact cards, small text
   ========================================== */
.dashboard { padding-bottom: 8px; }
.dash-welcome h1 { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.dash-welcome p { color: var(--t2); font-size: 0.72rem; margin-top: 2px; }
.dash-welcome { margin-bottom: 12px; }

.quick-action-card {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px;
    background: linear-gradient(135deg, var(--pri), var(--pri-l)); color: #fff;
    border-radius: var(--r); margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(11,110,79,0.25);
}
.quick-action-card:active { transform: scale(0.985); }
.qa-icon svg { width: 22px; height: 22px; }
.qa-text strong { display: block; font-size: 0.78rem; font-weight: 700; }
.qa-text span { opacity: 0.8; font-size: 0.62rem; }
.quick-action-card > svg:last-child { margin-left: auto; opacity: 0.6; width: 14px; height: 14px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 6px; margin-bottom: 12px; }
.stat-card { background: var(--card); padding: 10px 8px; border-radius: var(--r); box-shadow: var(--sh); text-align: center; }
.stat-value { display: block; font-size: 1.1rem; font-weight: 800; color: var(--t1); line-height: 1.2; }
.stat-name { display: block; font-size: 0.55rem; color: var(--t3); margin-top: 1px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card--accent { border-left: 2px solid var(--acc); }
.stat-card--warning { border-left: 2px solid var(--warn); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.section-header h2 { font-size: 0.82rem; font-weight: 700; }
.link-more { font-size: 0.65rem; font-weight: 600; }

/* ==========================================
   TRIP LIST & CARDS — super compact rows
   ========================================== */
.trip-list { display: flex; flex-direction: column; gap: 4px; }
.trip-card {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 10px; background: var(--card); border-radius: var(--rs);
    box-shadow: var(--sh); color: var(--t1);
}
.trip-card:active { background: #f8f9fa; }
.trip-card--active { border-left: 2.5px solid var(--pri); }
.trip-card-left { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.trip-info { min-width: 0; }
.trip-addresses { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 0.7rem; line-height: 1.3; }
.trip-pickup, .trip-dropoff { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.trip-arrow { color: var(--t3); font-size: 0.6rem; }
.trip-date { display: block; color: var(--t3); font-size: 0.58rem; margin-top: 1px; }
.trip-card-right { text-align: right; flex-shrink: 0; }
.trip-price { display: block; font-weight: 700; font-size: 0.78rem; }

.trip-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.trip-status-dot--pending { background: var(--warn); }
.trip-status-dot--accepted, .trip-status-dot--driver_arriving { background: var(--pri-l); }
.trip-status-dot--in_progress { background: var(--pri); animation: pulse 1.5s infinite; }
.trip-status-dot--completed { background: var(--ok); }
.trip-status-dot--cancelled { background: var(--err); }

.trip-status-label {
    font-size: 0.52rem; font-weight: 700; padding: 1.5px 5px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.03em; display: inline-block; margin-top: 2px;
}
.trip-status-label--pending { background: #FEF3C7; color: #92400E; }
.trip-status-label--accepted { background: #DBEAFE; color: #1E40AF; }
.trip-status-label--in_progress { background: #D1FAE5; color: #065F46; }
.trip-status-label--completed { background: #D1FAE5; color: #065F46; }
.trip-status-label--cancelled { background: #FEE2E2; color: #991B1B; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.empty-state { text-align: center; padding: 24px 14px; color: var(--t3); }
.empty-state svg { width: 32px; height: 32px; opacity: 0.3; }
.empty-state p { margin: 6px 0; font-size: 0.72rem; }

/* ==========================================
   TRIP CREATE — compact form, small map
   ========================================== */
.trip-create { padding-bottom: 10px; }
.trip-map { width: 100%; height: 160px; border-radius: var(--r); background: #e2e8f0; }
.map-container { margin-bottom: 8px; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.address-divider { text-align: center; color: var(--t3); margin: -2px 0; }
.address-divider svg { width: 12px; height: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot--green { background: #22C55E; }
.dot--red { background: #EF4444; }

.vehicle-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.vehicle-option input { display: none; }
.vehicle-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; border: 1.5px solid var(--brd); border-radius: var(--rs);
    cursor: pointer; transition: all 0.12s; font-size: 0.68rem; font-weight: 600;
}
.vehicle-emoji { font-size: 1.1rem; line-height: 1; }
.vehicle-option input:checked + .vehicle-card { border-color: var(--pri); background: rgba(11,110,79,0.04); }

.price-input-wrapper { position: relative; }
.price-input-wrapper input { padding-right: 42px; font-size: 1rem; font-weight: 700; }
.price-suffix { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 0.65rem; font-weight: 600; }

.price-summary { background: var(--bg); border-radius: var(--rs); padding: 10px; margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.72rem; }
.summary-row--fee { color: var(--t2); font-size: 0.65rem; }
.summary-row--total { border-top: 0.5px solid var(--brd); margin-top: 4px; padding-top: 6px; font-size: 0.82rem; }
.summary-note { display: block; margin-top: 5px; font-size: 0.58rem; color: var(--t3); line-height: 1.35; }

/* ==========================================
   TRIP DETAIL / TRACKING — compact panels
   ========================================== */
.trip-map--tracking { height: 180px; }
.trip-status-bar { padding: 10px; background: var(--card); border-radius: var(--r); margin: 8px 0; box-shadow: var(--sh); }
.status-steps { display: flex; justify-content: space-between; }
.status-step {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; font-size: 0.52rem; color: var(--t3); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.step-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--brd); background: var(--bg); transition: all 0.2s; }
.status-step.done .step-dot { background: var(--pri); border-color: var(--pri); }
.status-step.done { color: var(--pri); font-weight: 700; }

.trip-info-card { background: var(--card); border-radius: var(--r); padding: 10px 12px; margin-bottom: 6px; box-shadow: var(--sh); }
.trip-route { padding: 4px 0; }
.route-point { display: flex; align-items: flex-start; gap: 7px; padding: 4px 0; }
.route-point small { font-size: 0.52rem; color: var(--t3); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.route-point p { font-size: 0.73rem; margin-top: 0; line-height: 1.3; }
.route-line { width: 1.5px; height: 12px; background: var(--brd); margin-left: 3px; }

.trip-pricing { border-top: 0.5px solid var(--brd); padding-top: 8px; margin-top: 6px; }
.pricing-row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 0.72rem; }
.pricing-row--small { font-size: 0.62rem; color: var(--t2); }
.pricing-row--total { font-size: 0.85rem; border-top: 0.5px solid var(--brd); margin-top: 4px; padding-top: 6px; }
.pricing-method { display: inline-block; margin-top: 6px; padding: 2px 8px; background: var(--bg); border-radius: 10px; font-size: 0.6rem; font-weight: 500; }

.driver-card {
    background: var(--card); border-radius: var(--r); padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--sh); margin-bottom: 6px;
}
.driver-info { display: flex; align-items: center; gap: 8px; }
.driver-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--pri);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.72rem; flex-shrink: 0;
}
.driver-details strong { display: block; font-size: 0.75rem; }
.driver-details small { display: block; color: var(--t3); font-size: 0.6rem; margin-top: 1px; line-height: 1.3; }
.driver-rating { font-size: 0.65rem; }

.driver-actions, .payment-action { margin-top: 6px; }

.waiting-indicator { text-align: center; padding: 20px 14px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--brd); border-top-color: var(--pri); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 8px; }
.spinner--small { width: 16px; height: 16px; border-width: 1.5px; }
.waiting-indicator p { font-size: 0.75rem; font-weight: 600; }
.waiting-indicator small { font-size: 0.6rem; color: var(--t3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   DRIVER DASHBOARD — compact controls
   ========================================== */
.availability-toggle { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#availLabel { font-size: 0.7rem; font-weight: 600; }
.switch { position: relative; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: #CBD5E1; border-radius: 22px; cursor: pointer; transition: 0.2s; }
.switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; left: 3px; top: 3px; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.switch input:checked + .switch-slider { background: var(--ok); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }

.request-card { background: var(--card); border-radius: var(--r); padding: 10px; margin-bottom: 6px; box-shadow: var(--sh); border-left: 2.5px solid var(--acc); }
.request-info { margin-bottom: 8px; }
.request-route { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 0.7rem; line-height: 1.3; }
.request-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.request-price { font-size: 0.88rem; font-weight: 800; color: var(--pri); }
.request-payment { font-size: 0.55rem; color: var(--t3); background: var(--bg); padding: 1px 6px; border-radius: 8px; font-weight: 500; }
.request-actions { display: flex; gap: 5px; }

/* ==========================================
   ADMIN — compact table & stats
   ========================================== */
.admin-header { background: var(--dark); border-bottom: none; }
.admin-header .app-logo { color: #fff; }
.admin-name { color: rgba(255,255,255,0.7); font-size: 0.7rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin-bottom: 16px; }
.admin-section { margin-bottom: 18px; }
.admin-section h2 { font-size: 0.85rem; margin-bottom: 8px; font-weight: 700; }
.admin-table-wrapper { overflow-x: auto; border-radius: var(--rs); box-shadow: var(--sh); -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.68rem; }
.admin-table th { background: var(--bg); padding: 6px 8px; text-align: left; font-weight: 700; font-size: 0.58rem; text-transform: uppercase; color: var(--t3); letter-spacing: 0.04em; white-space: nowrap; }
.admin-table td { padding: 6px 8px; border-top: 0.5px solid var(--brd); white-space: nowrap; }
.admin-table code { background: var(--bg); padding: 1px 4px; border-radius: 3px; font-size: 0.62rem; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-right: 2px; }

.badge { display: inline-block; padding: 1px 5px; border-radius: 8px; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.badge--driver { background: #DBEAFE; color: #1E40AF; }
.badge--user { background: #E0E7FF; color: #3730A3; }
.badge--pending { background: #FEF3C7; color: #92400E; }
.badge--accepted { background: #DBEAFE; color: #1E40AF; }
.badge--completed, .badge--paid, .badge--success, .badge--active { background: #D1FAE5; color: #065F46; }
.badge--cancelled, .badge--failed { background: #FEE2E2; color: #991B1B; }
.badge--in_progress, .badge--processing { background: #DDD6FE; color: #5B21B6; }

/* ==========================================
   NOTIFICATIONS PANEL — slim slide-in
   ========================================== */
.notif-panel {
    position: fixed; top: var(--hh); right: -280px; width: 280px; max-width: 85vw;
    height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh));
    background: var(--card); z-index: 200;
    box-shadow: -4px 0 16px rgba(0,0,0,0.08); transition: right 0.25s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.notif-panel.open { right: 0; }
.notif-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 0.5px solid var(--brd); position: sticky; top: 0; background: var(--card); z-index: 1; }
.notif-panel-header h3 { font-size: 0.82rem; }
.notif-panel-body { padding: 8px 12px; }
.notif-empty { text-align: center; padding: 20px; color: var(--t3); font-size: 0.7rem; }

/* ==========================================
   PUBLIC / LANDING — compact hero
   ========================================== */
.public-body { background: #fff; }
.public-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; max-width: 800px; margin: 0 auto; }
.public-nav { display: flex; gap: 6px; }

.hero { position: relative; padding: 40px 14px 36px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, var(--pri-d) 0%, var(--pri) 50%, var(--pri-l) 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 1; max-width: 420px; margin: 0 auto; color: #fff; }
.hero-title { font-size: 1.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero-title em { font-style: normal; color: var(--acc); }
.hero-subtitle { font-size: 0.78rem; opacity: 0.88; margin-bottom: 18px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.hero-actions .btn--outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.hero-actions .btn--outline:active { background: rgba(255,255,255,0.08); }
.hero-stats { display: flex; justify-content: center; gap: 20px; padding-top: 14px; border-top: 0.5px solid rgba(255,255,255,0.12); }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1rem; font-weight: 800; }
.stat-label { font-size: 0.52rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.03em; }

.container { max-width: 700px; margin: 0 auto; padding: 0 14px; }
.section-title { text-align: center; font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.section-sub { text-align: center; color: var(--t2); margin-bottom: 18px; font-size: 0.72rem; }

.features { padding: 30px 0; background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.step-card { background: var(--card); border-radius: var(--r); padding: 14px 10px 12px; text-align: center; box-shadow: var(--sh); position: relative; }
.step-num { position: absolute; top: -6px; left: 10px; width: 18px; height: 18px; background: var(--pri); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 800; }
.step-icon { margin-bottom: 6px; color: var(--pri); }
.step-icon svg { width: 24px; height: 24px; }
.step-card h3 { font-size: 0.75rem; font-weight: 700; margin-bottom: 3px; }
.step-card p { font-size: 0.62rem; color: var(--t2); line-height: 1.4; }

.payments-section { padding: 30px 0; }
.payment-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-method { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; background: var(--bg); border-radius: var(--r); font-weight: 600; font-size: 0.65rem; }
.pay-icon { font-size: 1.3rem; }

.cta-section { padding: 30px 0; text-align: center; background: linear-gradient(135deg, var(--pri), var(--pri-l)); color: #fff; }
.cta-section h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.cta-section p { opacity: 0.88; margin-bottom: 14px; font-size: 0.75rem; }

.public-footer { background: var(--dark); color: #94A3B8; padding: 20px 14px; }
.footer-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 0.8rem; }
.footer-brand img { width: 20px; height: 20px; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: #94A3B8; margin: 0 8px; font-size: 0.62rem; }
.footer-copy { font-size: 0.55rem; opacity: 0.6; }

.legal-page { padding: 24px 14px; max-width: 500px; margin: 0 auto; }
.legal-page h1 { font-size: 1.1rem; margin-bottom: 12px; }
.legal-page h2 { font-size: 0.85rem; margin: 16px 0 4px; }
.legal-page p { color: var(--t2); line-height: 1.55; margin-bottom: 8px; font-size: 0.72rem; }

.error-page { text-align: center; padding: 40px 14px; }
.error-page h1 { font-size: 2.5rem; font-weight: 800; color: var(--pri); }
.error-page p { font-size: 0.78rem; color: var(--t2); margin: 6px 0 16px; }

.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--rs); border: 0.5px solid var(--brd); font-size: 0.68rem; font-weight: 600; color: var(--t1); }
.page-link.active { background: var(--pri); color: #fff; border-color: var(--pri); }

.page-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }

/* ==========================================
   iOS/Android native feel
   ========================================== */
* { -webkit-tap-highlight-color: transparent; }
body { -webkit-touch-callout: none; user-select: none; }
input, textarea, select { user-select: text; }
.app-header { padding-top: env(safe-area-inset-top, 0); }
.bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0); }
.app-main { -webkit-overflow-scrolling: touch; }
.trip-list::-webkit-scrollbar, .admin-table-wrapper::-webkit-scrollbar, .notif-panel-body::-webkit-scrollbar { display: none; }

/* ==========================================
   RESPONSIVE — tablet+
   ========================================== */
@media (min-width: 768px) {
    html { font-size: 13.5px; }
    .hero-title { font-size: 2rem; }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
    .trip-map { height: 200px; }
    .trip-map--tracking { height: 240px; }
    .bottom-nav { display: none; }
    .app-body .app-main { padding-bottom: 20px; }
    .menu-toggle { display: none; }
    .stat-cards { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}

/* Hide Google Maps branding */
.gm-style-cc, .gm-style a[href*="google"], .gm-style a[href*="terms"],
.gm-style .gm-style-cc, .gmnoprint a, .gm-bundled-control .gmnoprint,
a[href^="https://maps.google.com/maps"] { display:none !important; }
.gm-style .gm-style-mtc, .gm-style .gm-fullscreen-control { display:none !important; }
