:root {
    --primary: #E53935;
    --primary-dark: #B71C1C;
    --primary-light: #FFCDD2;
    --secondary: #FFA000;
    --secondary-light: #FFF9C4;
    --accent: #FF6F00;
    --bg: #FFF8F5;
    --bg2: #F5F5F5;
    --white: #FFFFFF;
    --text: #212121;
    --text2: #757575;
    --text3: #BDBDBD;
    --success: #43A047;
    --warning: #FB8C00;
    --info: #1E88E5;
    --danger: #E53935;
    --shadow: 0 4px 20px rgba(229, 57, 53, 0.15);
    --shadow2: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --gradient: linear-gradient(135deg, #E53935 0%, #FF6F00 100%);
    --gradient2: linear-gradient(135deg, #FFA000 0%, #FF6F00 100%);
    --max-width: 480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bg2);
    color: var(--text);
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    background-color: var(--bg);
}

a { text-decoration: none; color: inherit; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--gradient);
    padding: 16px 20px 60px;
    position: relative;
    overflow: hidden;
}
.topbar::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0; right: 0;
    height: 60px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 30px 30px 0 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-logo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}
.topbar-logo span {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}


.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.topbar-greeting {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}
.topbar-greeting strong {
    color: white;
    font-size: 18px;
    display: block;
    font-weight: 700;
}

/* ===== SALDO CARD ===== */
.saldo-card {
    margin: 0 20px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    margin-top: -20px;
}
.saldo-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.saldo-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.saldo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topup-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== LAYANAN GRID ===== */
.section { padding: 24px 20px 8px; }
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.service-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.service-card:hover, .service-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 10px;
}
.service-icon.motor { background: linear-gradient(135deg, #FFCDD2, #EF9A9A); }
.service-icon.mobil { background: linear-gradient(135deg, #FFF9C4, #FFF176); }
.service-name { font-size: 12px; font-weight: 600; color: var(--text); }
.service-card.service-disabled {
    opacity: 0.55;
    filter: grayscale(0.8);
    cursor: not-allowed;
    background: #F8F9FA;
    border: 1.5px dashed #CBD5E1;
    pointer-events: none;
    box-shadow: none;
    transform: none !important;
}
.service-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.service-picker-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
}
.admin-service-preview {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 6px;
    background: white;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}
.admin-service-preview-img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    display: block;
}

/* ===== ORDER CARD ===== */
.order-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow2);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.order-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-code { font-size: 12px; color: var(--text2); }
.order-route {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-date { font-size: 11px; color: var(--text3); margin-top: 2px; }
.order-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* ===== STATUS BADGE ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge-pending  { background: #FFF3E0; color: #E65100; }
.badge-accepted { background: #E3F2FD; color: #1565C0; }
.badge-on_the_way { background: #E8F5E9; color: #2E7D32; }
.badge-delivered { background: #E8F5E9; color: #2E7D32; }
.badge-completed { background: #E8F5E9; color: #1B5E20; }
.badge-cancelled { background: #FFEBEE; color: #B71C1C; }
.badge-paid      { background: #E8F5E9; color: #2E7D32; }
.badge-unpaid    { background: #FFF3E0; color: #E65100; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: white;
    display: flex;
    padding: 10px 0 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
    border-radius: 20px 20px 0 0;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    color: var(--text3);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-item span { font-size: 22px; line-height: 1; }
.nav-item.active { color: var(--primary); }
.nav-item.active span { filter: drop-shadow(0 2px 4px rgba(229,57,53,0.4)); }

/* ===== FORMS ===== */
.page-container {
    min-height: 100vh;
    padding-bottom: 80px;
}

.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    margin: 20px;
    box-shadow: var(--shadow2);
}

.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #F0F0F0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #FAFAFA;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(229,57,53,0.08);
}
.form-control::placeholder { color: var(--text3); }

textarea.form-control { resize: vertical; min-height: 80px; }

select.form-control { cursor: pointer; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 44px; }
.input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text3);
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(229,57,53,0.35);
}
.btn-secondary {
    background: var(--gradient2);
    color: white;
    box-shadow: 0 6px 20px rgba(255,160,0,0.35);
}
.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-danger {
    background: linear-gradient(135deg, #B71C1C, #E53935);
    color: white;
}
.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    width: auto;
    display: inline-block;
    border-radius: 10px;
}

/* ===== ALERT ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #43A047; }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #E53935; }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid #FFA000; }
.alert-info    { background: #E3F2FD; color: #1565C0; border-left: 4px solid #1E88E5; }

/* ===== AUTH PAGES ===== */
.auth-header {
    background: var(--gradient);
    padding: 50px 24px 80px;
    text-align: center;
    position: relative;
}
.auth-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0; right: 0;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
}
.auth-logo {
    width: 140px;
    height: 52px;
    object-fit: fill;
    margin: 0 auto 12px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.auth-title { font-size: 28px; font-weight: 800; color: white; }
.auth-subtitle { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 6px; }
.auth-body { padding: 20px 24px; padding-top: 60px; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text2);
}
.auth-footer a { color: var(--primary); font-weight: 700; }

/* ===== HERO (Landing) ===== */
.hero {
    background: var(--gradient);
    padding: 50px 24px 90px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '🚗';
    position: absolute;
    right: -10px;
    bottom: 30px;
    font-size: 120px;
    opacity: 0.15;
    transform: rotate(-15deg);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0; right: 0;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
}
.hero-logo {
    width: 160px;
    height: 58px;
    object-fit: fill;
    margin: 0 auto 16px;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-title { font-size: 32px; font-weight: 900; color: white; line-height: 1.2; }
.hero-subtitle { color: rgba(255,255,255,0.85); margin-top: 10px; font-size: 15px; }
.hero-body { padding: 20px 24px; padding-top: 60px; }

/* ===== LAYANAN CARDS (Landing) ===== */
.feature-list { list-style: none; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 14px;
    color: var(--text);
}
.feature-list li:last-child { border: none; }
.feature-list .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ===== ORDER FORM ===== */
.layanan-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.layanan-option {
    border: 2px solid #F0F0F0;
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.layanan-option.active {
    border-color: var(--primary);
    background: #FFF5F5;
}
.layanan-option input { display: none; }
.layanan-option .icon { font-size: 28px; display: block; margin-bottom: 4px; }
.layanan-option .name { font-size: 12px; font-weight: 600; }
.layanan-option .price { font-size: 11px; color: var(--primary); font-weight: 700; }

/* ===== PRICE ESTIMATE ===== */
.price-estimate {
    background: linear-gradient(135deg, #FFF8F5, #FFF3F0);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}
.price-row:last-child { margin-bottom: 0; border-top: 1px dashed #FFCDD2; padding-top: 10px; margin-top: 6px; }
.price-total { font-weight: 800; font-size: 18px; color: var(--primary); }

/* ===== DRIVER CARD ===== */
.driver-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow2);
    display: flex;
    align-items: center;
    gap: 14px;
}
.driver-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.driver-name { font-size: 16px; font-weight: 700; }
.driver-info { font-size: 12px; color: var(--text2); }
.driver-rating { color: var(--secondary); font-size: 13px; font-weight: 600; }

/* ===== PROFILE ===== */
.profile-header {
    background: var(--gradient);
    padding: 40px 20px 70px;
    position: relative;
    text-align: center;
}
.profile-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0; right: 0;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
}
.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 12px;
    border: 4px solid rgba(255,255,255,0.7);
    position: relative;
    cursor: pointer;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.profile-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: white;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}
.profile-avatar-badge:hover {
    transform: scale(1.1);
}
.profile-name { font-size: 22px; font-weight: 800; color: white; }
.profile-phone { font-size: 14px; color: rgba(255,255,255,0.8); }

.topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.topbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-stretch-container {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
}
.logo-stretch {
    width: 100%;
    height: 60px;
    object-fit: fill;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}


.menu-list { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow2); }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
    transition: background 0.15s;
}
.menu-item:last-child { border: none; }
.menu-item:active { background: #FFF5F5; }
.menu-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.menu-text { flex: 1; font-size: 15px; font-weight: 500; }
.menu-arrow { color: var(--text3); font-size: 18px; }

/* ===== PAYMENT ===== */
.payment-option {
    border: 2px solid #F0F0F0;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    background: white;
}
.payment-option.active {
    border-color: var(--primary);
    background: #FFF5F5;
}
.payment-option input { display: none; }
.payment-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.payment-text .name { font-size: 15px; font-weight: 700; }
.payment-text .desc { font-size: 12px; color: var(--text2); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text2); }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.back-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white; cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.page-header-title { font-size: 18px; font-weight: 700; color: white; }

/* ===== STEP INDICATOR ===== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    gap: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.step-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #F0F0F0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text3);
}
.step.active .step-circle { background: var(--gradient); color: white; }
.step.done .step-circle { background: var(--success); color: white; }
.step-label { font-size: 10px; color: var(--text3); }
.step.active .step-label, .step.done .step-label { color: var(--text); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: #F0F0F0; margin: 0 4px; margin-bottom: 14px; }
.step-line.done { background: var(--success); }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
    background: linear-gradient(135deg, #E8F5E9, #F3E5F5);
    border-radius: var(--radius-sm);
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
    border: 2px dashed #BDBDBD;
    margin-bottom: 16px;
    font-size: 40px;
}
.map-placeholder p { font-size: 13px; color: var(--text2); }

/* ===== SPINNER ===== */
.spinner-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
}
.spinner-overlay.show { display: flex; }
.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { color: white; font-size: 15px; font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 40px;
    width: 100%;
    max-width: var(--max-width);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-handle {
    width: 40px; height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 0 auto 20px;
}
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ===== DIVIDER ===== */
.divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text3); font-size: 13px;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: #F0F0F0;
}

/* ===== FLOATING ACTION ===== */
.fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: 0 6px 20px rgba(229,57,53,0.4);
    cursor: pointer;
    z-index: 50;
    border: none;
}

/* ===== SCROLL TABS ===== */
.tab-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 20px 16px;
    scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--text2);
    border: none;
    box-shadow: var(--shadow2);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.tab-chip.active { background: var(--gradient); color: white; }

/* ===== UTILS ===== */
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); font-size: 13px; }
.fw-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.pb-nav { padding-bottom: 90px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== MAP & ROUTE STYLING ===== */
.map-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow2);
    margin-bottom: 20px;
    position: relative;
}
.map-container {
    height: 280px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid #E0E0E0;
}
.map-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.map-mode-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #E0E0E0;
    background: white;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.map-mode-btn.active-pickup {
    border-color: #E53935;
    background: #FFEBEE;
    color: #C62828;
}
.map-mode-btn.active-dest {
    border-color: #2E7D32;
    background: #E8F5E9;
    color: #1B5E20;
}
.map-gps-btn {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid #E0E0E0;
    background: white;
    color: var(--info);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.map-gps-btn:hover {
    background: #E3F2FD;
    border-color: var(--info);
}
.map-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.map-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    border: 1.5px solid #E0E0E0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.map-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
.map-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text2);
}
.map-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
    border: 1px solid #EEEEEE;
}
.map-search-item {
    padding: 10px 14px;
    font-size: 12px;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
    line-height: 1.4;
}
.map-search-item:hover {
    background: #FFF5F5;
    color: var(--primary);
}
.route-badge {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(30,136,229,0.25);
}
.custom-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 2px solid white;
}
.pin-pickup { background: #E53935; }
.pin-dest { background: #2E7D32; }

/* ===== DRIVER RADAR MAP MARKERS ===== */
.driver-map-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: white;
    border: 2.5px solid white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}
.driver-map-pin:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}
.driver-map-pin.motor {
    background: #FFF1F0;
    border-color: #E53935;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}
.driver-map-pin.mobil {
    background: #E0F2FE;
    border-color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}
.driver-map-pin.kurir {
    background: #ECFDF5;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.driver-pin-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* User Pulsing Location Marker */
.user-live-pin {
    width: 18px;
    height: 18px;
    background: #2563EB;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
}
.user-live-pin::after {
    content: '';
    position: absolute;
    top: -8px; left: -8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #2563EB;
    animation: user-pulse 1.8s infinite ease-out;
}
@keyframes user-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Radar Filter Pills */
.driver-filter-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #E2E8F0;
    background: white;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.driver-filter-btn.active {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    body { box-shadow: 0 0 40px rgba(0,0,0,0.1); }
    .bottom-nav { left: 50%; }
}

