
/* ===================== DESIGN TOKENS ===================== */
:root {
    --primary: #003B5C;
    --primary-light: #E6F0F7;
    --primary-dark: #002A42;
    --accent: #C0392B;
    --accent-light: #FDEDEC;
    --success: #27AE60;
    --success-light: #E8F8F0;
    --warning: #F39C12;
    --warning-light: #FEF5E7;
    --danger: #E74C3C;
    --danger-light: #FDEDEC;
    --info: #3498DB;
    --info-light: #EBF5FB;
    --dark: #1A1A2E;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,59,92,0.06);
    --shadow-md: 0 4px 16px rgba(0,59,92,0.1);
    --shadow-lg: 0 8px 32px rgba(0,59,92,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #4A9FD4;
    --primary-light: #1A3A4A;
    --dark: #F8F9FA;
    --gray-100: #1A1A2E;
    --gray-200: #2D2D44;
    --gray-300: #3D3D5C;
    --gray-400: #5A5A7A;
    --gray-500: #8A8AAA;
    --gray-600: #A0A0C0;
    --gray-700: #C0C0D8;
    --gray-800: #E0E0F0;
    --white: #12121E;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ===================== BASE ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 12px;
    color: var(--dark);
    overflow: hidden;
}

/* ===================== PHONE FRAME ===================== */
.phone-frame {
    width: 390px;
    height: 844px;
    background: var(--white);
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 12px #2a2a2a;
    display: flex;
    flex-direction: column;
}

.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 100;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}
.status-bar > * { pointer-events: auto; }
.status-icons { display: flex; gap: 6px; align-items: center; }

.screens-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

/* ===================== SCREENS ===================== */
.screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    background: var(--gray-100);
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.screen.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

/* ===================== LOADING & TOAST ===================== */
.loading-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    gap: 16px;
}
.loading-overlay.active { display: flex; }
.spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: white;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px); } }

.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: block; opacity: 1; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0,59,92,0.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-300);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-yellow {
    background: var(--warning);
    color: var(--dark);
    box-shadow: 0 4px 16px rgba(243,156,18,0.25);
}
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    height: auto;
    padding: 12px;
}
.btn-full { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    color: var(--dark);
    transition: var(--transition);
}
.btn-icon:hover { background: var(--gray-200); }
.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ===================== INPUTS ===================== */
.input-group { width: 100%; margin-bottom: 16px; }
.input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-field {
    width: 100%;
    height: 52px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    transition: var(--transition);
}
.input-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.input-field svg { width: 20px; height: 20px; color: var(--gray-500); flex-shrink: 0; }
.input-field input, .input-field select {
    border: none; outline: none;
    font-size: 15px; color: var(--dark);
    width: 100%; background: transparent;
    font-family: inherit;
}
.input-field input::placeholder { color: var(--gray-400); }
.input-prefix { font-weight: 600; color: var(--gray-600); font-size: 15px; }
.error-text { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; font-weight: 500; }
.error-text.visible { display: block; }
.toggle-password { background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 4px; }

/* ===================== CHECKBOX & TOGGLE ===================== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}
.checkbox-label input { display: none; }
.checkmark {
    width: 20px; height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.checkbox-label input:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: 700;
}
.toggle { position: relative; width: 48px; height: 28px; cursor: pointer; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-400);
    border-radius: 14px;
    transition: var(--transition);
}
.toggle-slider::after {
    content: "";
    position: absolute;
    width: 24px; height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* ===================== AUTH ===================== */
.auth-container {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 60px;
}
.auth-logo { width: 80px; height: 80px; margin-bottom: 16px; }
.auth-brand h1 { font-size: 28px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.auth-brand p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.auth-icon {
    width: 64px; height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}
.auth-icon svg { width: 28px; height: 28px; }

.auth-tabs {
    display: flex;
    background: var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    transition: var(--transition);
}
.auth-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.auth-form.hidden { display: none; }
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.auth-link { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: none; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--gray-500);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-300);
}

.social-buttons { display: flex; gap: 12px; margin-bottom: 20px; }
.social-btn {
    flex: 1;
    height: 48px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); }

.demo-accounts { margin-top: auto; padding-top: 20px; }
.demo-accounts p { font-size: 12px; color: var(--gray-500); text-align: center; margin-bottom: 10px; }
.demo-chips { display: flex; gap: 10px; justify-content: center; }
.demo-chip {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--gray-700);
    transition: var(--transition);
}
.demo-chip:hover { border-color: var(--primary); color: var(--primary); }

.terms-label { margin-bottom: 20px; font-size: 13px; }
.terms-label a { color: var(--primary); font-weight: 600; }

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.role-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}
.role-option input { display: none; }
.role-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.role-icon { font-size: 24px; }
.role-text { font-size: 13px; font-weight: 600; color: var(--gray-700); }

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}
.otp-input {
    width: 60px;
    height: 68px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}
.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 16px;
}
.otp-timer { color: var(--gray-400); margin-left: 4px; }

.back-btn { position: absolute; top: 60px; left: 20px; z-index: 10; }

/* ===================== SPLASH ===================== */
.splash-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
.splash-logo { width: 120px; height: 120px; margin-bottom: 24px; animation: splashPulse 2s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.splash-title { font-size: 36px; font-weight: 900; color: var(--dark); letter-spacing: -1px; }
.splash-subtitle { font-size: 14px; color: var(--gray-500); margin-top: 8px; }
.splash-loader {
    width: 160px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 40px;
    overflow: hidden;
}
.splash-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    animation: splashLoad 2s ease forwards;
}
@keyframes splashLoad { 0% { width: 0%; } 50% { width: 60%; } 100% { width: 100%; } }

/* ===================== HOME SCREEN ===================== */
.home-header {
    padding: 60px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.greeting span { font-size: 13px; color: var(--gray-500); }
.greeting h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin-top: 2px; }
.notification-btn { position: relative; }
.notification-btn .badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 18px; height: 18px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.role-switcher {
    position: absolute;
    top: 50px; right: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.role-switcher:hover { transform: translateY(-1px); }
.role-switcher.courier { background: var(--warning); color: var(--dark); }

.vehicle-tabs {
    display: flex;
    padding: 0 20px;
    gap: 12px;
    margin-bottom: 16px;
}
.vehicle-tab {
    flex: 1;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gray-200);
    color: var(--gray-600);
    border: none;
    font-family: inherit;
    transition: var(--transition);
}
.vehicle-tab svg { width: 20px; height: 20px; }
.vehicle-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,59,92,0.2);
}

.booking-card {
    margin: 0 20px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.location-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.location-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.location-dot.pickup { background: var(--primary); }
.location-dot.dropoff { background: var(--accent); }
.location-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--dark);
    font-family: inherit;
    background: transparent;
    padding: 8px 0;
}
.location-input::placeholder { color: var(--gray-400); }
.location-action {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}
.location-action:hover { background: var(--primary-light); color: var(--primary); }
.location-action svg { width: 18px; height: 18px; }
.location-divider {
    width: 2px;
    height: 20px;
    background: var(--gray-300);
    margin-left: 4px;
    border-left: 2px dashed var(--gray-400);
    background: transparent;
}

.map-wrapper {
    flex: 1;
    margin: 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 200px;
}
.map-container {
    width: 100%; height: 100%;
    background: #e8e5d8;
    border-radius: var(--radius-lg);
}
.map-overlay {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 5;
}
.nearby-couriers {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-md);
}
.pulse {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(39,174,96,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}

.recent-locations {
    padding: 12px 20px;
}
.recent-locations h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 10px;
    font-weight: 700;
}
.recent-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: var(--transition);
}
.recent-item:hover { border-color: var(--primary); color: var(--primary); }
.recent-item svg { width: 16px; height: 16px; color: var(--gray-400); }

.btn-get-quote {
    margin: 0 20px 20px;
}

/* ===================== QUOTE / NEGOTIATION ===================== */
.screen-header {
    padding: 60px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.screen-header h1 { font-size: 18px; font-weight: 800; }

.quote-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.route-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.route-point {
    display: flex;
    align-items: center;
    gap: 12px;
}
.route-info { display: flex; flex-direction: column; }
.route-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
.route-address { font-size: 14px; color: var(--dark); font-weight: 600; }
.route-line {
    width: 2px;
    height: 24px;
    border-left: 2px dashed var(--gray-300);
    margin-left: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.route-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    gap: 8px;
    align-items: center;
}

.negotiation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.negotiation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.negotiation-hint { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.price-display {
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}
.price-currency { font-size: 24px; font-weight: 700; color: var(--dark); margin-top: 4px; }
.price-amount { font-size: 56px; font-weight: 900; color: var(--dark); line-height: 1; }

.price-slider-container { margin: 20px 0; }
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    background: var(--gray-200);
    outline: none;
    margin-bottom: 8px;
}
.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,59,92,0.3);
    border: 3px solid white;
}
.price-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,59,92,0.3);
    border: 3px solid white;
}

.price-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    text-align: left;
}
.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-600);
}
.breakdown-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
    font-weight: 800;
    color: var(--dark);
    font-size: 16px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.payment-method-card:hover { box-shadow: var(--shadow-md); }
.payment-method-card .payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.payment-method-card svg:first-child { width: 24px; height: 24px; color: var(--primary); }
.payment-label { display: block; font-size: 12px; color: var(--gray-500); }
.payment-value { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }

.promo-input-row {
    display: flex;
    gap: 10px;
}

.quote-actions {
    padding: 16px 20px 28px;
    display: flex;
    gap: 12px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}
.quote-actions .btn { flex: 1; }

/* ===================== SEARCHING ===================== */
.searching-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
.searching-animation { margin-bottom: 32px; }
.radar {
    width: 120px; height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: radar 2s infinite;
}
.radar-ring:nth-child(1) { width: 40px; height: 40px; animation-delay: 0s; }
.radar-ring:nth-child(2) { width: 80px; height: 80px; animation-delay: 0.5s; }
.radar-ring:nth-child(3) { width: 120px; height: 120px; animation-delay: 1s; }
@keyframes radar {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}
.radar-center {
    width: 48px; height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.radar-center img { width: 32px; height: 32px; }
.searching-container h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.searching-container p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.searching-progress {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===================== TRACKING ===================== */
.tracking-map-container {
    flex: 1;
    position: relative;
    min-height: 300px;
}
.tracking-map-container .map-container { border-radius: 0; }
.tracking-back {
    position: absolute;
    top: 60px; left: 16px;
    z-index: 10;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.tracking-panel {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px;
    margin-top: -20px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.tracking-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}
.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: var(--transition);
}
.status-step.active { opacity: 1; }
.status-step.active .status-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.status-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.status-step span { font-size: 11px; font-weight: 600; color: var(--gray-600); }
.status-line {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 8px;
    margin-bottom: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.status-line.active { background: var(--primary); }
.status-line.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary);
    animation: lineGrow 1s ease forwards;
}
@keyframes lineGrow { from { width: 0%; } to { width: 100%; } }

.courier-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.courier-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.courier-info { flex: 1; }
.courier-info h3 { font-size: 16px; font-weight: 700; }
.courier-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    font-size: 13px;
}
.rating { color: var(--warning); font-weight: 700; }
.eta { color: var(--success); font-weight: 600; }
.courier-actions { display: flex; gap: 10px; }
.btn-call { background: var(--success-light); color: var(--success); }
.btn-chat { background: var(--primary-light); color: var(--primary); }

.delivery-pin {
    text-align: center;
    padding: 16px;
    background: var(--warning-light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--warning);
}
.delivery-pin p { font-size: 13px; color: var(--gray-700); margin-bottom: 10px; }
.pin-code {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--warning);
    font-family: 'Courier New', monospace;
}

/* ===================== RATING ===================== */
.rating-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.rating-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-light);
}
.rating-container h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.rating-container > p { color: var(--gray-500); margin-bottom: 24px; }

.stars {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.star {
    width: 52px; height: 52px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-300);
    transition: var(--transition);
}
.star svg { width: 100%; height: 100%; }
.star.active { color: var(--warning); transform: scale(1.1); }
.star:hover { color: var(--warning); }

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    max-width: 300px;
}
.rating-tag {
    padding: 8px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--gray-600);
    transition: var(--transition);
}
.rating-tag.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.tip-section { margin-bottom: 32px; }
.tip-section p { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; }
.tip-buttons { display: flex; gap: 10px; justify-content: center; }
.tip-btn {
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: var(--dark);
    transition: var(--transition);
}
.tip-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ===================== CHAT ===================== */
.chat-header {
    padding: 60px 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.chat-user { display: flex; align-items: center; gap: 12px; flex: 1; }
.chat-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-user h3 { font-size: 15px; font-weight: 700; }
.online-status { font-size: 12px; color: var(--success); font-weight: 600; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray-100);
}
.chat-date {
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    margin: 8px 0;
}
.message { max-width: 75%; display: flex; flex-direction: column; gap: 4px; }
.message.sent { align-self: flex-end; }
.message.received { align-self: flex-start; }
.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.message.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.message.received .message-bubble {
    background: var(--white);
    color: var(--dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.message-time { font-size: 11px; color: var(--gray-500); }
.message.sent .message-time { text-align: right; }

.chat-input-area {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}
.chat-input {
    flex: 1;
    height: 44px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.btn-send {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.btn-send:hover { background: var(--primary-dark); }
.btn-send svg { width: 18px; height: 18px; }

/* ===================== ORDERS ===================== */
.order-filters {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    overflow-x: auto;
}
.filter-chip {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: var(--gray-600);
    white-space: nowrap;
    transition: var(--transition);
}
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.orders-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}
.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.order-id { font-size: 14px; font-weight: 800; color: var(--dark); }
.order-status {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-status.completed { background: var(--success-light); color: var(--success); }
.order-status.cancelled { background: var(--danger-light); color: var(--danger); }
.order-status.pending { background: var(--warning-light); color: var(--warning); }
.order-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-600);
}
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}
.order-price { font-size: 18px; font-weight: 800; color: var(--dark); }
.order-date { font-size: 12px; color: var(--gray-500); }
.reorder-btn {
    padding: 8px 18px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.reorder-btn:hover { background: var(--primary); color: white; }

/* ===================== PROMOS ===================== */
.promos-content { padding: 20px; overflow-y: auto; flex: 1; }
.referral-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--warning);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.referral-icon { font-size: 40px; }
.referral-text h3 { font-size: 16px; font-weight: 800; color: var(--dark); }
.referral-text p { font-size: 13px; color: var(--gray-700); margin-top: 4px; }
.referral-code-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.referral-code {
    flex: 1;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 18px;
    border: 2px dashed var(--gray-300);
    color: var(--dark);
}
.section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--dark);
}
.promo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}
.promo-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}
.promo-accent.green { background: var(--success); }
.promo-accent.blue { background: var(--primary); }
.promo-content { flex: 1; margin-left: 8px; }
.promo-content h4 { font-size: 15px; font-weight: 800; }
.promo-content p { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.promo-expiry { font-size: 11px; color: var(--gray-500); margin-top: 4px; display: block; }
.promo-emoji { font-size: 28px; }

/* ===================== PROFILE & MENU ===================== */
.profile-hero {
    padding: 80px 20px 24px;
    background: var(--primary);
    color: white;
    text-align: center;
}
.profile-avatar-lg {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin-bottom: 12px;
}
.profile-hero h2 { font-size: 22px; font-weight: 800; }
.profile-hero p { font-size: 14px; opacity: 0.9; margin-top: 4px; }

.menu-list { padding: 20px; overflow-y: auto; flex: 1; }
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-item:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.menu-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.menu-icon svg { width: 20px; height: 20px; }
.menu-icon.blue { background: var(--primary-light); color: var(--primary); }
.menu-icon.yellow { background: var(--warning-light); color: var(--warning); }
.menu-icon.green { background: var(--success-light); color: var(--success); }
.menu-icon.red { background: var(--danger-light); color: var(--danger); }
.menu-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.menu-text { flex: 1; }
.menu-text h4 { font-size: 15px; font-weight: 700; color: var(--dark); }
.menu-text p { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.menu-arrow { color: var(--gray-400); flex-shrink: 0; }

.verification-badge {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.verification-badge.pending { background: var(--warning-light); color: var(--warning); }
.verification-badge.approved { background: var(--success-light); color: var(--success); }

/* ===================== SETTINGS & CARDS ===================== */
.content-padding { padding: 20px; overflow-y: auto; flex: 1; }
.settings-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.settings-card h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row span:first-child { font-size: 15px; color: var(--dark); }
.currency-active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--success-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--success);
}

.address-card, .payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.payment-card:hover, .address-card:hover { border-color: var(--primary); }
.payment-card.active { border-color: var(--success); }
.address-icon, .payment-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.address-icon svg, .payment-icon svg { width: 20px; height: 20px; }
.address-icon.red { background: var(--danger-light); color: var(--danger); }
.address-icon.yellow { background: var(--warning-light); color: var(--warning); }
.payment-icon.green { background: var(--success-light); color: var(--success); }
.payment-icon.blue { background: var(--info-light); color: var(--info); }
.payment-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.address-info h4, .payment-info h4 { font-size: 15px; font-weight: 700; }
.address-info p, .payment-info p { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ===================== HELP & LEGAL ===================== */
.help-banner {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
}
.help-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.help-banner p { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: var(--white);
    font-family: inherit;
    text-align: left;
    color: var(--dark);
}
.faq-question svg { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

.legal-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.legal-content p { font-size: 13px; line-height: 1.8; color: var(--gray-700); margin-bottom: 16px; }
.legal-content h2 { font-size: 16px; font-weight: 800; margin: 20px 0 10px; color: var(--dark); }

/* ===================== COURIER SCREENS ===================== */
.earnings-card {
    margin-bottom: 16px;
    background: var(--success);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    box-shadow: 0 8px 24px rgba(39,174,96,0.25);
}
.earnings-label { font-size: 14px; opacity: 0.9; font-weight: 500; }
.earnings-amount { font-size: 42px; font-weight: 900; margin: 8px 0; letter-spacing: -1px; }
.earnings-period { font-size: 13px; opacity: 0.85; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 24px; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 600; }

.online-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
}

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.job-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.job-id { font-size: 14px; font-weight: 800; color: var(--dark); }
.job-badge {
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.job-badge.new { background: var(--primary-light); color: var(--primary); }
.job-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--gray-600);
}
.job-footer { display: flex; justify-content: space-between; align-items: center; }
.job-price { font-size: 18px; font-weight: 800; color: var(--dark); }
.job-meta { font-size: 12px; color: var(--gray-500); }

.earnings-summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.earnings-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.earnings-badge {
    background: var(--success-light);
    color: var(--success);
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
}
.earnings-summary-grid { display: flex; gap: 16px; }
.earnings-summary-item {
    flex: 1;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    text-align: center;
}
.commission-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--warning-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray-700);
}
.commission-notice svg { color: var(--warning); flex-shrink: 0; }

.transaction-list { display: flex; flex-direction: column; gap: 10px; }
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.transaction-item h4 { font-size: 14px; font-weight: 700; }
.transaction-item p { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.amount { font-size: 16px; font-weight: 800; }
.amount.positive { color: var(--success); }
.amount.negative { color: var(--danger); }
.amount.tip { color: var(--warning); }

/* Job Detail */
.job-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.job-detail-price { font-size: 42px; font-weight: 900; color: var(--dark); }
.job-detail-earnings { font-size: 14px; color: var(--gray-600); margin: 8px 0 16px; }
.commission-tag { font-size: 11px; color: var(--gray-500); background: var(--gray-100); padding: 2px 8px; border-radius: var(--radius-xl); }
.job-detail-breakdown { text-align: left; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.location-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.location-detail-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--gray-500); text-transform: uppercase; }
.location-detail-card p { font-size: 14px; color: var(--dark); font-weight: 600; }
.job-actions { display: flex; gap: 12px; margin-top: 8px; }
.job-actions .btn { flex: 1; }

/* Onboarding */
.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--gray-300); transition: var(--transition); }
.step-dot.active { background: var(--primary); }
.upload-box {
    width: 100%;
    height: 160px;
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    background: var(--gray-100);
    transition: var(--transition);
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-box svg { width: 40px; height: 40px; color: var(--gray-500); }
.upload-box p { font-size: 14px; color: var(--gray-600); font-weight: 600; }
.upload-status { margin-top: 8px; font-size: 13px; font-weight: 600; }
.upload-status.success { color: var(--success); }
.vehicle-selector { display: flex; gap: 12px; margin-top: 8px; }
.vehicle-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}
.vehicle-option input { display: none; }
.vehicle-option.active { border-color: var(--primary); background: var(--primary-light); }
.vehicle-option svg { width: 32px; height: 32px; color: var(--gray-600); }
.vehicle-option.active svg { color: var(--primary); }
.vehicle-option span { font-size: 13px; font-weight: 700; color: var(--gray-700); }

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 12px 0 28px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 10;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 16px;
    border: none;
    background: none;
    font-family: inherit;
    color: var(--gray-500);
    transition: var(--transition);
}
.nav-item svg { width: 24px; height: 24px; stroke-width: 2; }
.nav-item span { font-size: 11px; font-weight: 600; }
.nav-item.active { color: var(--primary); }
.nav-item:active { transform: scale(0.9); }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 2px; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.screen.active { animation: fadeIn 0.3s ease; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 420px) {
    body { padding: 0; align-items: flex-start; }
    .phone-frame {
        width: 100vw; height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}
@media (max-height: 850px) {
    .phone-frame { height: 100vh; border-radius: 0; }
}
