/* ============================================================
   MiTaxi Driver App v2.0 - Professional Dark Theme
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #FBBF24;
    --primary-dark: #F59E0B;
    --primary-light: #FDE68A;
    --primary-alpha: rgba(251, 191, 36, 0.12);
    --bg: #0F172A;
    --surface: #1E293B;
    --surface-2: #334155;
    --surface-3: #3F4F67;
    --border: #475569;
    --border-light: #334155;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --success: #22C55E;
    --success-dark: #16A34A;
    --success-alpha: rgba(34, 197, 94, 0.12);
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --danger-alpha: rgba(239, 68, 68, 0.12);
    --info: #3B82F6;
    --info-dark: #2563EB;
    --info-alpha: rgba(59, 130, 246, 0.12);
    --warning: #F59E0B;
    --warning-alpha: rgba(245, 158, 11, 0.12);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.5;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

a { color: var(--primary); text-decoration: none; }

/* Prevent iOS zoom on inputs */
@media screen and (max-width: 768px) {
    input[type="text"], input[type="tel"], input[type="number"],
    input[type="date"], select, textarea {
        font-size: 16px;
    }
}

/* ============================================================
   SCREENS
   ============================================================ */
.screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    flex-direction: column;
    background: var(--bg);
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.screen.active { display: flex; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    min-height: 56px;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}
.top-bar-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.top-bar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    color: var(--text);
}
.top-bar-btn:hover { background: var(--surface-2); }
.top-bar-btn svg { width: 22px; height: 22px; }
.top-bar-left, .top-bar-right { width: 40px; flex-shrink: 0; }

/* Notification button */
.notif-btn { position: relative; }
.notif-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(16px + var(--safe-top));
    left: 16px; right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #166534; color: #BBF7D0; border: 1px solid #22C55E33; }
.toast-error { background: #7F1D1D; color: #FECACA; border: 1px solid #EF444433; }
.toast-info { background: #1E3A5F; color: #BFDBFE; border: 1px solid #3B82F633; }
.toast-warning { background: #713F12; color: #FED7AA; border: 1px solid #F59E0B33; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   AUTH SCREEN
   ============================================================ */
.auth-screen {
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--bg) 0%, var(--surface) 100%);
}
.auth-container {
    width: 100%;
    max-width: 400px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 48px;
}
.auth-logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo-icon svg { width: 72px; height: 72px; }
.auth-logo-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}
.auth-logo-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeIn 0.3s ease; }
.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.auth-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color var(--transition);
}
.phone-input-group:focus-within { border-color: var(--primary); }
.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    white-space: nowrap;
    border-right: 1px solid var(--border-light);
}
.phone-flag { display: flex; align-items: center; }
.phone-flag svg { border-radius: 2px; }
.phone-input-group input {
    flex: 1;
    padding: 14px 12px;
    font-size: 17px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    letter-spacing: 1px;
}
.phone-input-group input::placeholder { color: var(--text-muted); }

/* OTP */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}
.otp-container input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.otp-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}
.otp-single-wrap {
    margin: 24px 0;
}
.otp-code-field {
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.otp-code-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}
.otp-code-field::placeholder {
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
}
.otp-timer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
}
.resend-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; height: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: var(--info-dark); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    opacity: 0.8;
}
.btn-ghost-danger:hover { background: var(--danger-alpha); opacity: 1; }

/* Button loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-label .required { color: var(--danger); }
.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-grid.triple {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 14px;
}
.checkbox-item.active {
    border-color: var(--primary);
    background: var(--primary-alpha);
    color: var(--primary);
}
.checkbox-item input { display: none; }

/* Radio group */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.radio-item {
    flex: 1 1 auto;
    min-width: 70px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 13px;
}
.radio-item.active {
    border-color: var(--primary);
    background: var(--primary-alpha);
    color: var(--primary);
}
.radio-item input { display: none; }

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface-2);
    border-radius: 13px;
    transition: background var(--transition);
}
.switch-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch-slider { background: var(--success); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.toggle-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.toggle-label { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   ONBOARDING / STEPPER
   ============================================================ */
.onboarding-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 0 8px;
}
.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    transition: all var(--transition);
}
.stepper-step.active .stepper-circle {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
.stepper-step.done .stepper-circle {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.stepper-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.stepper-step.active .stepper-label { color: var(--primary); }
.stepper-step.done .stepper-label { color: var(--success); }
.stepper-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background var(--transition);
}
.stepper-line.active { background: var(--primary); }
.stepper-line.done { background: var(--success); }

.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: fadeIn 0.3s ease; }

.step-header {
    text-align: center;
    margin-bottom: 24px;
}
.step-icon { margin: 0 auto 12px; }
.step-icon svg { width: 48px; height: 48px; color: var(--primary); }
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-secondary); }
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.upload-card {
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.upload-card.has-file { border-style: solid; border-color: var(--success); }
.upload-preview {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow: hidden;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.upload-icon svg { width: 32px; height: 32px; }
.upload-text { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.upload-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.upload-btn:hover { background: var(--surface-2); }

/* ============================================================
   DASHBOARD - YANDEX PRO STYLE
   ============================================================ */
.dash-map {
    position: absolute;
    top: 0; left: 0; right: 0;
    bottom: 60px; /* tab bar uchun joy */
    z-index: 1;
}


/* Bottom sheet */
.dash-bottom-sheet {
    position: absolute;
    bottom: 60px; /* tab bar uchun */
    left: 0; right: 0;
    z-index: 100;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    padding: 14px 16px 10px;
    box-shadow: 0 -2px 16px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash-goals {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 12px;
    font-size: 13px; color: var(--text-secondary);
    cursor: pointer;
}
.dash-online-row {
    display: flex; align-items: center; gap: 12px;
}
.dash-status-indicator {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.online-big-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #0F172A;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.online-big-btn:active { transform: scale(0.97); opacity: 0.9; }
.online-big-btn.active {
    background: rgba(34,197,94,.15);
    color: #22C55E;
    border: 2px solid #22C55E;
}
.alert.compact { padding: 8px 12px; font-size: 12px; margin: 0; border-radius: 10px; }

/* ============================================================
   BOTTOM TAB BAR - Yandex Pro style
   ============================================================ */
.bottom-tabs {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    height: calc(60px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.tab-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 0;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 10px; font-weight: 500;
    cursor: pointer;
    position: relative;
    min-width: 60px;
    transition: color .15s;
}
.tab-item svg { transition: color .15s; }
.tab-item.active { color: var(--primary); }
.tab-item.active svg { stroke: var(--primary); }
.tab-badge {
    position: absolute;
    top: 2px; right: 8px;
    min-width: 16px; height: 16px;
    background: #EF4444;
    color: #fff;
    border-radius: 8px;
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Burilish ko'rsatma paneli */
.nav-direction-bar {
    position: absolute;
    top: calc(10px + var(--safe-top));
    left: 10px; right: 10px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1a73e8;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    color: #fff;
}
.nav-dir-dist {
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    min-width: 60px;
}
.nav-dir-text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    line-height: 1.3;
}

/* GPS ruxsat banneri */
.gps-perm-banner {
    position: absolute;
    top: calc(12px + var(--safe-top));
    left: 14px; right: 14px;
    z-index: 150;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    font-size: 13px; font-weight: 500; color: var(--text);
}
.gps-perm-banner button {
    margin-left: auto;
    padding: 6px 14px;
    background: var(--primary);
    color: #0F172A;
    border: none; border-radius: 8px;
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Qidiruv pulsatsiyasi */
.searching-pulse {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none;
}
.pulse-ring {
    width: 120px; height: 120px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulseExpand 2s ease-out infinite;
    position: absolute;
}
.pulse-ring.delay { animation-delay: 1s; }
@keyframes pulseExpand {
    0% { width: 60px; height: 60px; opacity: 0.7; margin-left: -30px; margin-top: -30px; }
    100% { width: 180px; height: 180px; opacity: 0; margin-left: -90px; margin-top: -90px; }
}
.pulse-text {
    position: relative;
    top: 30px;
    background: var(--surface);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px; font-weight: 600;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    white-space: nowrap;
}

/* ============================================================
   INLINE OFFER & ORDER (Dashboard bottom sheet ichida)
   ============================================================ */
.offer-inline, .order-inline, .order-completed-inline { padding: 2px 0; }

/* Offer */
.oi-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.oi-price { font-size: 22px; font-weight: 800; color: var(--primary); flex: 1; }
.oi-meta { display: flex; gap: 6px; }
.oi-class { padding: 3px 10px; background: var(--primary-dim); color: var(--primary); border-radius: 8px; font-size: 11px; font-weight: 600; }
.oi-dist { font-size: 12px; color: var(--text-secondary); }
.oi-countdown { width: 36px; height: 36px; border-radius: 50%; background: rgba(239,68,68,.1); color: #EF4444; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.oi-pass { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.oi-route { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.oi-route-point { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.oi-route-point span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.oi-dot.green { background: #22C55E; }
.oi-dot.red { background: #EF4444; border-radius: 2px; }
.oi-actions { display: flex; gap: 10px; }
.oi-reject { flex: 0 0 auto; padding: 14px 20px; border: 1.5px solid rgba(239,68,68,.3); background: rgba(239,68,68,.08); color: #EF4444; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
.oi-accept { flex: 1; padding: 14px 20px; border: none; background: var(--primary); color: #0F172A; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
.oi-reject:active, .oi-accept:active { opacity: 0.8; transform: scale(0.97); }

/* Active order */
.oli-status { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.oli-pass-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.oli-pass-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-dim); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.oli-pass-info { flex: 1; min-width: 0; }
.oli-pass-name { font-size: 15px; font-weight: 600; }
.oli-price { font-size: 12px; color: var(--text-secondary); }
.oli-call { width: 40px; height: 40px; border-radius: 50%; background: #22C55E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.oli-route { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.oli-route-point { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.oli-route-point span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oli-actions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.order-action-btn { width: 100%; padding: 14px; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; color: #fff; }
.order-action-btn:active { opacity: 0.85; transform: scale(0.97); }
.order-action-btn.arriving { background: #3B82F6; }
.order-action-btn.starting { background: #22C55E; }
.order-action-btn.completing { background: var(--primary); color: #0F172A; }
.order-cancel-btn { width: 100%; padding: 10px; border: 1px solid rgba(239,68,68,.2); background: none; color: #EF4444; border-radius: 10px; font-size: 13px; cursor: pointer; }
.oli-nav-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.oli-nav-btn:active { opacity: 0.8; }
.oli-nav-btn svg { color: var(--primary); }

/* Completed */
.order-completed-inline { text-align: center; padding: 10px 0; }
.oci-check { margin-bottom: 8px; }
.oci-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.oci-price { font-size: 28px; font-weight: 800; color: var(--primary); }

/* Transport trip card */
.transport-trip-card {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.transport-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.transport-action-btn:active { opacity: 0.8; transform: scale(0.97); }
.transport-action-btn.go { background: var(--primary); color: #0F172A; }
.transport-action-btn.arrive { background: #22C55E; color: #fff; }

/* Notifications full screen */
.notif-full-content {
    flex: 1; overflow-y: auto; padding: 8px 16px;
    padding-bottom: calc(80px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

/* Eski dashboard-content saqlab qolish (boshqa ekranlar uchun) */
.dashboard-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* Driver Header */
.driver-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.driver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}
.driver-info { flex: 1; min-width: 0; }
.driver-name {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.driver-park {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.driver-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.driver-rating svg { width: 18px; height: 18px; }

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
    border: 1px solid var(--border-light);
}
.balance-card:active { transform: scale(0.98); }
.balance-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.balance-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.balance-progress-wrap { margin-bottom: 2px; }
.balance-progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.balance-progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.balance-progress-fill.low { background: var(--danger); }
.balance-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.balance-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
}
.balance-arrow svg { width: 16px; height: 16px; color: var(--text-muted); }

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-warning {
    background: var(--warning-alpha);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.alert-danger {
    background: var(--danger-alpha);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Status Toggle Card */
.status-toggle-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background var(--transition);
}
.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px var(--success); }
    50% { box-shadow: 0 0 12px var(--success); }
}
.status-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Online Toggle */
.online-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}
.online-toggle:hover { border-color: var(--text-muted); }
.online-toggle.active {
    background: var(--success-alpha);
    border-color: var(--success);
    color: var(--success);
}
.online-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.online-toggle-track {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: var(--surface-3);
    position: relative;
    transition: background var(--transition);
    flex-shrink: 0;
}
.online-toggle.active .online-toggle-track { background: var(--success); }
.online-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.online-toggle-thumb svg { width: 14px; height: 14px; color: var(--surface-3); }
.online-toggle.active .online-toggle-thumb {
    transform: translateX(24px);
}
.online-toggle.active .online-toggle-thumb svg { color: var(--success); }
.online-toggle-text { font-weight: 700; font-size: 15px; }
.toggle-disabled-msg {
    margin-top: 10px;
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

/* Route Banner */
.route-banner {
    background: var(--info-alpha);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.route-banner-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.route-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--info);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
.route-banner-label { font-size: 11px; color: var(--info); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.route-banner-text { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-banner-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    flex-shrink: 0;
    margin-left: 10px;
    transition: background var(--transition-fast);
}
.route-banner-close:hover { background: var(--danger-alpha); }
.route-banner-close svg { width: 14px; height: 14px; }

/* Route Mode Button */
.route-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.route-mode-btn:hover { border-color: var(--primary); color: var(--primary); }
.route-mode-btn svg { width: 20px; height: 20px; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.stat-icon {
    margin: 0 auto 6px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--info-alpha);
}
.stat-icon svg { width: 18px; height: 18px; color: var(--info); }
.stat-icon.earnings { background: var(--success-alpha); }
.stat-icon.earnings svg { color: var(--success); }
.stat-icon.commission { background: var(--danger-alpha); }
.stat-icon.commission svg { color: var(--danger); }
.stat-icon.rating { background: var(--primary-alpha); }
.stat-icon.rating svg { color: var(--primary); }
.stat-value { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Active Order Banner */
.active-order-banner {
    background: var(--success-alpha);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.active-order-banner:active { transform: scale(0.98); }
.aob-left { display: flex; align-items: center; gap: 12px; }
.aob-left svg { width: 24px; height: 24px; color: var(--success); }
.aob-title { font-size: 14px; font-weight: 700; color: var(--success); }
.aob-sub { font-size: 12px; color: var(--text-secondary); }
.aob-arrow svg { width: 16px; height: 16px; color: var(--text-muted); }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.quick-action:hover { border-color: var(--primary); color: var(--primary); }
.qa-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-alpha);
}
.qa-icon svg { width: 20px; height: 20px; color: var(--primary); }
.qa-icon.earnings { background: var(--success-alpha); }
.qa-icon.earnings svg { color: var(--success); }
.qa-icon.docs { background: var(--info-alpha); }
.qa-icon.docs svg { color: var(--info); }
.qa-icon.profile { background: var(--surface-2); }
.qa-icon.profile svg { color: var(--text-secondary); }

/* ============================================================
   OFFER OVERLAY
   ============================================================ */
.offer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.offer-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.offer-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 20px calc(20px + var(--safe-bottom));
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Countdown Circle */
.offer-countdown-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}
.offer-countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.offer-countdown-bg {
    fill: none;
    stroke: var(--surface-2);
    stroke-width: 6;
}
.offer-countdown-ring {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}
.offer-countdown-ring.urgent { stroke: var(--danger); }
.offer-countdown-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 800;
}

/* Offer Price */
.offer-price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.offer-class-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-alpha);
    color: var(--primary);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Offer Passenger */
.offer-passenger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.offer-passenger svg { width: 16px; height: 16px; color: var(--text-secondary); }
.offer-pass-name { font-weight: 600; }
.offer-pass-rating { color: var(--primary); font-weight: 700; }

/* Offer Route */
.offer-route {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
}
.offer-route-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.offer-route-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.offer-route-dot.pickup { background: var(--success); }
.offer-route-dot.dest { background: var(--danger); }
.offer-route-info { flex: 1; min-width: 0; }
.offer-route-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.offer-route-addr { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-distance-badge {
    padding: 3px 8px;
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.offer-route-line {
    width: 2px;
    height: 20px;
    background: var(--border);
    margin-left: 5px;
    margin: 4px 0 4px 5px;
}

/* Offer Actions */
.offer-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
}
.offer-btn {
    border-radius: var(--radius-lg);
    font-size: 16px;
}
.offer-btn svg { width: 20px; height: 20px; }
.offer-accept-btn { animation: pulse-btn 1.5s ease-in-out infinite; }
@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ============================================================
   ACTIVE ORDER
   ============================================================ */
.order-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* Progress Bar */
.order-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.order-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ops-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.order-progress-step.active .ops-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-alpha);
}
.order-progress-step.done .ops-dot {
    background: var(--success);
    border-color: var(--success);
}
.ops-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.order-progress-step.active .ops-label { color: var(--primary); }
.order-progress-step.done .ops-label { color: var(--success); }
.ops-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 7px 6px 0;
    transition: background var(--transition);
}
.ops-line.done { background: var(--success); }

/* Passenger Card */
.passenger-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}
.pass-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.pass-info { flex: 1; min-width: 0; }
.pass-name { font-weight: 700; font-size: 15px; }
.pass-rating-row { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--primary); }
.pass-rating-row svg { width: 14px; height: 14px; }
.pass-call-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}
.pass-call-btn:hover { background: var(--success-dark); }
.pass-call-btn svg { width: 20px; height: 20px; color: #fff; }

/* Navigate Button */
.navigate-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: var(--info-alpha);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-align: left;
}
.navigate-btn:hover { background: rgba(59, 130, 246, 0.18); }
.navigate-btn > svg:first-child { width: 24px; height: 24px; color: var(--info); flex-shrink: 0; }
.nav-btn-info { flex: 1; min-width: 0; }
.nav-btn-label { font-size: 11px; color: var(--info); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.nav-btn-addr { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btn-arrow svg { width: 16px; height: 16px; color: var(--text-muted); }

/* Order Route Card */
.order-route-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}
.orc-point { display: flex; align-items: flex-start; gap: 12px; }
.orc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}
.orc-dot.pickup { background: var(--success); }
.orc-dot.dest { background: var(--danger); }
.orc-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.orc-addr { font-size: 14px; font-weight: 600; }
.orc-line {
    width: 2px;
    height: 16px;
    background: var(--border);
    margin-left: 4px;
    margin: 4px 0 4px 4px;
}

/* Order Chips */
.order-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.order-chip {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.chip-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.chip-value { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* Order Actions */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

/* ============================================================
   COMPLETED SCREEN
   ============================================================ */
.completed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.completed-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.completed-check svg { width: 40px; height: 40px; color: var(--success); }
.completed-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.completed-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.completed-price { font-size: 36px; font-weight: 800; color: var(--success); margin-bottom: 24px; }
.completed-route {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 360px;
}
.cr-point { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cr-dot.pickup { background: var(--success); }
.cr-dot.dest { background: var(--danger); }
.cr-line { width: 2px; height: 16px; background: var(--border); margin: 4px 0 4px 3px; }

/* ============================================================
   EARNINGS SCREEN
   ============================================================ */
.earnings-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* Period Tabs */
.period-tabs {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}
.period-tab {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
}
.period-tab.active {
    background: var(--primary);
    color: var(--bg);
}

/* Earnings Summary */
.earnings-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.es-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.es-total { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.es-row {
    display: flex;
    align-items: center;
    justify-content: center;
}
.es-item { flex: 1; }
.es-item-val { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.es-item-label { font-size: 11px; color: var(--text-muted); }
.es-divider { width: 1px; height: 32px; background: var(--border-light); }

/* Section Title */
.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Trip List */
.trip-list { display: flex; flex-direction: column; gap: 8px; }
.trip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.trip-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-alpha);
    flex-shrink: 0;
}
.trip-icon svg { width: 18px; height: 18px; color: var(--success); }
.trip-info { flex: 1; min-width: 0; }
.trip-route { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-time { font-size: 12px; color: var(--text-muted); }
.trip-price { font-size: 15px; font-weight: 700; white-space: nowrap; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 14px; }

/* ============================================================
   BALANCE SCREEN
   ============================================================ */
.balance-screen-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}
.balance-hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.bh-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.bh-value { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.bh-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
}
.bh-status.ok { background: var(--success-alpha); color: var(--success); }
.bh-status.low { background: var(--danger-alpha); color: var(--danger); }
.bh-status svg { width: 14px; height: 14px; }

/* Balance Info Grid */
.balance-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.bi-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--border-light);
}
.bi-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.bi-value { font-size: 16px; font-weight: 700; }
.bi-value.highlight { color: var(--primary); }
.bi-value.danger { color: var(--danger); }
.bi-value.small { font-size: 14px; }

/* Operations List */
.operations-list { display: flex; flex-direction: column; gap: 6px; }
.op-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.op-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.op-icon.topup { background: var(--success-alpha); }
.op-icon.topup svg { color: var(--success); }
.op-icon.deduct { background: var(--danger-alpha); }
.op-icon.deduct svg { color: var(--danger); }
.op-icon svg { width: 16px; height: 16px; }
.op-info { flex: 1; min-width: 0; }
.op-desc { font-size: 14px; font-weight: 600; }
.op-date { font-size: 12px; color: var(--text-muted); }
.op-amount { font-size: 15px; font-weight: 700; white-space: nowrap; }
.op-amount.positive { color: var(--success); }
.op-amount.negative { color: var(--danger); }

/* ============================================================
   DOCUMENTS SCREEN
   ============================================================ */
.docs-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}
.docs-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}
.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.doc-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: border-color var(--transition-fast);
}
.doc-card.approved { border-color: var(--success); }
.doc-card.rejected { border-color: var(--danger); }
.doc-card.pending { border-color: var(--warning); }
.doc-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.doc-preview img { width: 100%; height: 100%; object-fit: cover; }
.doc-preview svg { width: 32px; height: 32px; color: var(--text-muted); }
.doc-info { padding: 10px 12px; }
.doc-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.doc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.doc-status.approved { background: var(--success-alpha); color: var(--success); }
.doc-status.rejected { background: var(--danger-alpha); color: var(--danger); }
.doc-status.pending { background: var(--warning-alpha); color: var(--warning); }
.doc-status.none { background: var(--surface-2); color: var(--text-muted); }
.doc-status svg { width: 10px; height: 10px; }
.doc-upload-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.doc-upload-btn:hover { background: var(--surface-2); }
.doc-required-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ============================================================
   PROFILE EDIT SCREEN
   ============================================================ */
.profile-content {
    flex: 1;
    padding: 0 16px 16px;
    overflow-y: auto;
    padding-bottom: calc(80px + var(--safe-bottom));
}
.profile-header {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 8px;
}
.profile-name-big { font-size: 22px; font-weight: 800; margin-top: 10px; }

/* Yandex uslubidagi profil */
.prof-role-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
.prof-role-badge { padding: 4px 14px; background: var(--primary-dim); color: var(--primary); border-radius: 12px; font-size: 13px; font-weight: 600; }

.prof-stat-cards { display: flex; gap: 8px; margin-bottom: 16px; }
.prof-sc {
    flex: 1; padding: 14px 10px; background: var(--surface-2); border-radius: 14px;
    text-align: center; position: relative;
}
.prof-sc-val { font-size: 20px; font-weight: 800; color: var(--text); }
.prof-sc-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.prof-sc-icon { position: absolute; bottom: 8px; right: 8px; opacity: 0.6; }

.prof-info-card {
    background: var(--surface-2); border-radius: 14px; padding: 14px 16px;
    margin-bottom: 8px; cursor: pointer;
}
.prof-info-card:active { opacity: 0.8; }
.pic-row { display: flex; align-items: center; gap: 10px; }
.pic-row svg { color: var(--text-secondary); flex-shrink: 0; }
.pic-label { flex: 1; font-size: 14px; font-weight: 500; }
.pic-value { font-size: 14px; font-weight: 600; color: var(--text); }
.pic-arrow { flex-shrink: 0; opacity: 0.3; }

.prof-section-title { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }

.prof-vehicle-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface-2); border-radius: 14px; padding: 16px;
    margin-bottom: 8px;
}
.pvc-info { flex: 1; }
.pvc-name { font-size: 15px; font-weight: 600; }
.pvc-details { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pvc-plate {
    display: inline-block; margin-top: 6px; padding: 3px 10px;
    border: 1.5px solid var(--border); border-radius: 6px;
    font-size: 13px; font-weight: 700; font-family: monospace;
}
.pvc-img { flex-shrink: 0; width: 80px; }
.pvc-img svg { width: 80px; height: 50px; }

.prof-menu-list { display: flex; flex-direction: column; gap: 2px; }
.prof-menu-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--surface-2); border-radius: 12px;
    cursor: pointer; font-size: 14px; font-weight: 500;
}
.prof-menu-item:first-child { border-radius: 12px 12px 2px 2px; }
.prof-menu-item:last-child { border-radius: 2px 2px 12px 12px; }
.prof-menu-item:active { opacity: 0.8; }
.prof-menu-item svg:first-child { color: var(--text-secondary); flex-shrink: 0; }
.prof-menu-item span { flex: 1; }
.pmi-badge {
    padding: 2px 8px; background: var(--primary-dim); color: var(--primary);
    border-radius: 8px; font-size: 11px; font-weight: 700;
}
.pmi-value { font-size: 13px; color: var(--primary); font-weight: 600; }

/* Tariflar ekrani */
.tariffs-content { flex: 1; padding: 16px; overflow-y: auto; padding-bottom: calc(80px + var(--safe-bottom)); }
.tariffs-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.tariffs-list { display: flex; flex-direction: column; gap: 2px; }
.tariff-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--surface-2); border-radius: 12px;
}
.tariff-item:first-child { border-radius: 12px 12px 2px 2px; }
.tariff-item:last-child { border-radius: 2px 2px 12px 12px; }
.tariff-icon { width: 48px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tariff-icon svg { max-width: 48px; max-height: 28px; }
.tariff-info { flex: 1; }
.tariff-name { font-size: 14px; font-weight: 600; }
.tariff-desc { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.tariff-unavail { font-size: 11px; color: var(--danger); margin-top: 1px; }
.tariff-toggle {
    position: relative; width: 48px; height: 28px; border-radius: 14px;
    background: var(--surface-3); border: none; cursor: pointer;
    flex-shrink: 0; transition: background .2s;
}
.tariff-toggle.active { background: var(--primary); }
.tariff-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.tariff-toggle.active::after { transform: translateX(20px); }
.tariff-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.profile-phone { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   NOTIFICATIONS PANEL
   ============================================================ */
.notif-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    padding-top: calc(16px + var(--safe-top));
    border-bottom: 1px solid var(--border-light);
}
.notif-panel-header h3 { font-size: 17px; font-weight: 700; }
.notif-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    transition: background var(--transition-fast);
}
.notif-panel-close:hover { background: var(--danger-alpha); }
.notif-panel-close svg { width: 16px; height: 16px; }
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.notif-item {
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
}
.notif-item.unread { border-color: var(--primary); background: var(--primary-alpha); }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-body { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   ROUTE SETUP MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 150;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    transition: background var(--transition-fast);
}
.modal-close:hover { background: var(--danger-alpha); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body {
    padding: 0 20px 20px;
    padding-bottom: calc(20px + var(--safe-bottom));
}

/* Route Inputs */
.route-input-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.route-dots-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 0;
}
.ri-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ri-dot.from { background: var(--success); }
.ri-dot.to { background: var(--danger); }
.ri-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: var(--border);
}
.route-inputs-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.route-input-group { position: relative; }
.route-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}
.route-input:focus { border-color: var(--primary); }
.route-input::placeholder { color: var(--text-muted); }
.route-suggestions {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: var(--shadow-lg);
}
.route-suggestions.visible { display: block; }
.route-suggestion {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}
.route-suggestion:last-child { border-bottom: none; }
.route-suggestion:hover { background: var(--surface-2); }

/* Route Options */
.route-option { margin-bottom: 16px; }
.route-option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.route-option-val { color: var(--primary); }

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-sm);
}
.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--surface);
}

/* Duration Buttons */
.duration-btns { display: flex; gap: 8px; }
.duration-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.duration-btn.active {
    border-color: var(--primary);
    background: var(--primary-alpha);
    color: var(--primary);
}

/* ============================================================
   SIDE MENU
   ============================================================ */
.side-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.side-menu-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--surface);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
}
.side-menu.open { transform: translateX(0); }

.menu-header {
    padding: 24px 20px 16px;
    padding-top: calc(24px + var(--safe-top));
    border-bottom: 1px solid var(--border-light);
}
.menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--primary);
    margin-bottom: 10px;
}
.menu-info { margin-bottom: 6px; }
.menu-name { font-size: 16px; font-weight: 700; }
.menu-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}
.menu-rating-row svg { width: 14px; height: 14px; }
.menu-park {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 8px;
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    display: inline-block;
    margin-top: 4px;
}

.menu-nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-align: left;
}
.menu-item:hover, .menu-item.active {
    background: var(--surface-2);
    color: var(--text);
}
.menu-item.active { color: var(--primary); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-alpha); }
.mi-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mi-icon svg { width: 20px; height: 20px; }
.menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}
.menu-footer {
    padding: 16px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================================
   PROFILE SCREEN - FULL PROFILE
   ============================================================ */
/* Avatar wrap with camera button */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
}
.profile-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-alpha);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto;
    border: 3px solid var(--primary);
    overflow: hidden;
}
.profile-avatar-lg.has-image {
    background: var(--surface-2);
    border-color: var(--primary);
}
.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-avatar-camera {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.profile-avatar-camera:hover { background: var(--primary-dark); }
.profile-avatar-camera svg { width: 16px; height: 16px; }
.profile-avatar-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
/* Large rating display on profile */
.profile-rating-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.profile-rating-lg svg { width: 24px; height: 24px; color: var(--primary); }
.profile-rating-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Profile stats row */
.profile-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 10px;
    margin-bottom: 14px;
}
.profile-stat {
    flex: 1;
    text-align: center;
}
.profile-stat-val {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}
.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.profile-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* Profile balance mini card */
.profile-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 10px;
}
.pbc-label {
    font-size: 12px;
    color: var(--text-muted);
}
.pbc-amount {
    font-size: 18px;
    font-weight: 800;
}
.pbc-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
}
.pbc-status svg { width: 14px; height: 14px; }
.pbc-ok {
    background: var(--success-alpha);
    color: var(--success);
}
.pbc-low {
    background: var(--danger-alpha);
    color: var(--danger);
}

/* Profile docs row */
.profile-docs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}
.profile-docs-row svg { width: 18px; height: 18px; color: var(--info); flex-shrink: 0; }

/* Profile park info card */
.profile-park-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    position: relative;
}
.ppc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--info-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppc-icon svg { width: 20px; height: 20px; color: var(--info); }
.ppc-info { min-width: 0; }
.ppc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.3px; }
.ppc-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppc-right { text-align: right; }
.ppc-comm-label { font-size: 11px; color: var(--text-muted); }
.ppc-comm-val { font-size: 16px; font-weight: 800; color: var(--primary); }
.ppc-min-row {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}

/* ============================================================
   DASHBOARD PARK BADGES
   ============================================================ */
.driver-park-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.driver-park-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--info);
    background: var(--info-alpha);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}
.driver-park-badge svg { flex-shrink: 0; }
.driver-comm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

/* ============================================================
   AVATAR WITH IMAGE (dashboard, menu)
   ============================================================ */
.driver-avatar.has-image,
.menu-avatar.has-image {
    padding: 0;
    overflow: hidden;
    background: var(--surface-2);
}
.driver-avatar.has-image img,
.menu-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================================
   VEHICLE CLASS RADIO WITH DESCRIPTIONS
   ============================================================ */
.vc-radio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
}
.vc-radio-label {
    font-size: 13px;
    font-weight: 700;
}
.vc-radio-desc {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.radio-item.vc-radio.active .vc-radio-desc {
    color: var(--primary);
    opacity: 0.8;
}

/* ============================================================
   OFFER - DELIVERY & CLASS BADGES
   ============================================================ */
.offer-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.offer-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--info-alpha);
    color: var(--info);
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.offer-delivery-badge svg { flex-shrink: 0; }
.offer-receiver-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.offer-receiver-info svg { color: var(--text-muted); flex-shrink: 0; }

/* Vehicle class colors on offer badge */
.offer-class-start { background: var(--surface-2); color: var(--text-secondary); }
.offer-class-economy { background: var(--primary-alpha); color: var(--primary); }
.offer-class-comfort { background: var(--success-alpha); color: var(--success); }
.offer-class-business { background: #7C3AED20; color: #A78BFA; }
.offer-class-minivan { background: var(--info-alpha); color: var(--info); }
.offer-class-delivery { background: var(--warning-alpha); color: var(--warning); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-xs);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================================ */
@media (min-width: 600px) {
    .dashboard-content,
    .order-content,
    .earnings-content,
    .balance-screen-content,
    .profile-content,
    .docs-content,
    .onboarding-content {
        max-width: 540px;
        margin: 0 auto;
    }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-actions { grid-template-columns: repeat(4, 1fr); }
    .auth-container { max-width: 420px; }
}

@media (min-width: 900px) {
    .dashboard-content,
    .order-content,
    .earnings-content,
    .balance-screen-content,
    .profile-content,
    .docs-content,
    .onboarding-content {
        max-width: 640px;
    }
    .offer-sheet {
        max-width: 480px;
        border-radius: var(--radius-xl);
        margin-bottom: 20px;
    }
    .modal-sheet {
        max-width: 480px;
        border-radius: var(--radius-xl);
        margin-bottom: 20px;
    }
}

/* ============================================================
   NAVIGATION MAP
   ============================================================ */
.nav-map-container {
    width: 100%;
    height: 45vh;
    min-height: 240px;
    max-height: 400px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: height 0.3s ease;
}
.nav-map-container.collapsed {
    height: 0 !important;
    min-height: 0 !important;
    margin-bottom: 0;
    border: none;
}
.nav-eta-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 13px;
    color: var(--text);
}
.nav-eta-badge .eta-value {
    font-weight: 700;
    color: var(--primary);
}
.nav-eta-badge .eta-dist {
    color: var(--text-secondary);
    font-size: 12px;
}

.nav-map-container .leaflet-container {
    background: var(--bg) !important;
}

.nav-map-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-map-center {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-map-center:active,
.nav-map-toggle:active {
    transform: scale(0.9);
}

/* ============================================================
   SCROLLBAR (Desktop)
   ============================================================ */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
        background: var(--surface-2);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--border); }
}
