:root {
    /* Base Palette - Metallic Gold Definition */
    --gold-base: #B38728;
    --gold-highlight: #FBF5B7;
    --gold-shadow: #AA771C;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 51%, #FBF5B7 100%);
    --gold-text-shine: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #BF953F);

    /* Backgrounds - Request: Like Black, Dark Blue */
    --black-bg: #020617;
    /* Very Dark Navy/Black */
    --black-surface: #0f172a;
    /* Dark Navy Surface */
    --black-lighter: #1e293b;
    /* Lighter Navy Surface */

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-on-primary: #020617;

    /* Mappings to existing variables for compatibility */
    --primary: var(--gold-base);
    --primary-gradient: var(--gold-gradient);
    --primary-light: #FFD700;

    --bg-body: var(--black-bg);
    --bg-surface: var(--black-surface);
    --bg-surface-2: var(--black-lighter);
    --bg-input: var(--black-lighter);

    --border: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --glass-border: rgba(191, 149, 63, 0.3);

    /* Effects */
    --gold-glow: 0 0 15px rgba(252, 246, 186, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: var(--gold-glow);

    /* Dimensions */
    --nav-height: 65px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Status Colors */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#chatForm button {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.transaction-card {
    border: solid 1px #bf953f !important;
}

.user-card-premium {
    border: solid 1px #bf953f !important;
}

.truck-select-icon {
    display: none;
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 50% 0%, #172554 0%, #020617 80%);
    /* Dark Blue to Black Radial */
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + 25px);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--text-primary);
}

.truck-price {
    font-weight: 700;
    color: var(--gold-highlight);
    background: linear-gradient(90deg, #F0E68C, #BF953F);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------
   WALLET PREMIUM UI
   -------------------- */
.wallet-balance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    /* Larger radius */
    padding: 30px 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Subtle glow behind card */
.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.wallet-icon-top {
    color: var(--gold-base);
    font-size: 1.2rem;
    opacity: 0.8;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #F0E68C;
    font-family: 'Playfair Display', serif;
    /* Elegant font for numbers */
    background: linear-gradient(45deg, #F0E68C, #d4af37, #F0E68C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
    /* Soft gold shadow */
}

/* Action Buttons Grid */
.wallet-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-wallet-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    /* Pill/Rounded Rect */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary Action (Top Up) - Gold Gradient */
.btn-wallet-action.primary {
    background: var(--gold-gradient);
    color: var(--text-on-primary);
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.3);
    border: 1px solid transparent;
}

/* Secondary Action (History) - Glassy Dark with Gold Text */
.btn-wallet-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    /* Glassy dark */
    color: var(--gold-highlight);
    border: 1px solid rgba(191, 149, 63, 0.3);
    /* Subtle gold border */
    box-shadow: none;
}

.btn-wallet-action.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-base);
}

.btn-wallet-action:active {
    transform: scale(0.98);
}

.btn-wallet-action i {
    font-size: 1rem;
}

/* Transaction List Styling */
.transactions-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.transaction-list-premium .card {
    background: #0f1c30;
    /* Darker card bg */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.transaction-list-premium .card:hover {
    transform: translateX(5px);
    background: #13223a;
}

/* Metallic Text Utilities */
.text-gold,
h1,
h2 {
    background: var(--gold-text-shine);
    background-size: 200% auto;
    color: #B38728;
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-shadow: none;
}

h2 {
    padding-right: 15px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    color: #eada97;
}

img {
    max-width: 100%;
    display: block;
}

/* Key Component: Buttons (Metallic) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    z-index: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-on-primary);
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: 2;
}

.btn-primary:active::after {
    left: 100%;
    transition: 0s;
}

.btn-secondary {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-track {
    background: var(--bg-surface-2);
    border: 1px solid var(--gold-base);
    /* Used var instead of hardcode */
    color: var(--gold-highlight);
}

.btn-nav-grey {
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Key Component: Inputs (Clean Input) */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #FCF6BA;
    box-shadow: 0 0 10px rgba(252, 246, 186, 0.2);
    background: var(--bg-surface);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 4px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

/* Premium Input Styles (Enhanced) */
.premium-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.premium-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.premium-input-field {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(191, 149, 63, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.premium-input-field:focus-within {
    border-color: var(--gold-base);
    box-shadow: 0 0 15px rgba(179, 135, 40, 0.15);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

.premium-input-field i {
    padding: 0 15px;
    color: var(--gold-base);
    opacity: 0.7;
    font-size: 1.1rem;
    transition: all 0.3s;
    border-right: 1px solid rgba(191, 149, 63, 0.15);
    /* Separation line */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.premium-input-field:focus-within i {
    opacity: 1;
    transform: none;
    /* Removed scale to keep alignment */
    border-right-color: var(--gold-base);
}

.premium-input-field input,
.premium-input-field select {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 16px 20px !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
    margin: 0 !important;
}

/* Fix for Select Options Visibility */
.premium-input-field select option {
    background-color: var(--black-surface);
    color: var(--text-primary);
    padding: 10px;
}

/* Fix for Browser Autofill Background */
.premium-input-field input:-webkit-autofill,
.premium-input-field input:-webkit-autofill:hover,
.premium-input-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--black-surface) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.step-indicator {
    display: inline-block;
    background: rgba(179, 135, 40, 0.1);
    color: var(--gold-base);
    padding: 5px 15px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(179, 135, 40, 0.2);
}

.reg-step.hidden {
    display: none;
}

/* Specific Style for Phone Number */
.phone-prefix {
    padding: 0 12px 0 15px;
    /* Adjusted padding */
    color: var(--gold-highlight);
    font-weight: 700;
    border-right: 1px solid rgba(191, 149, 63, 0.15);
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

/* Style for Date of Birth */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(100%) saturate(500%) hue-rotate(10deg);
    cursor: pointer;
    margin-right: 12px;
}

.dob-field input[type="date"] {
    cursor: pointer;
}

/* Better Select Styling */
.premium-input-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px !important;
}

.premium-input-field::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    color: var(--gold-base);
    pointer-events: none;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Camera UI Modal Styles */
.camera-modal-content {
    background: #000 !important;
    padding: 0 !important;
}

.selfie-viewport {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.selfie-video-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selfie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.face-guide {
    width: 200px;
    height: 280px;
    border: 3px dashed rgba(191, 149, 63, 0.5);
    border-radius: 50% / 40%;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.4);
}

/* Camera Error Fallback */
.camera-error-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 30px 20px;
}

.camera-error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

#cameraErrorContainer {
    background: rgba(15, 23, 42, 0.95);
}

.modal-footer-fixed.d-flex {
    justify-content: center;
    padding: 20px;
}

/* Success Animation Step */
.success-animation {
    display: flex;
    justify-content: center;
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gold-base);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--black-surface);
    box-shadow: 0 0 30px rgba(179, 135, 40, 0.4);
    animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(179, 135, 40, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(179, 135, 40, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(179, 135, 40, 0);
    }
}

.premium-input-field.no-arrow::after {
    display: none;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(191, 149, 63, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Header */
.app-header {
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--glass-border);
}

.app-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-badge {
    background: rgba(191, 149, 149, 0.1);
    color: var(--gold-base);
    border: 1px solid rgba(191, 149, 63, 0.2);
    font-family: var(--font-body);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav */
.bottom-nav {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(191, 149, 63, 0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    /* Fixed height for compactness */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.6rem;
    /* Smaller Font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 3px;
    padding: 5px 2px;
}

.nav-item i {
    font-size: 1.1rem;
    /* Slightly smaller icon */
    margin-bottom: 0px;
    transition: transform 0.2s;
}

.nav-item.active {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item.active i {
    transform: translateY(-4px);
    filter: drop-shadow(0 5px 10px rgba(191, 149, 63, 0.3));
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections & Utils */
main {
    padding: 20px;
    padding-top: 15px;
    min-height: auto;
}

.auth-form {
    display: none !important;
    padding: 15px;
}

.auth-form.active {
    display: block !important;
    animation: fadeIn 0.3s;
}

.section {
    display: none;
    animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
    display: block;
}

section#section-help {
    padding: 15px;
    margin-left: 230px;
    margin-top: -50px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-primary {
    color: var(--gold-base);
}

.text-muted {
    color: var(--text-muted);
}

/* Service Type Selector */
.service-type-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.service-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.service-option.active {
    border-color: var(--gold-base);
    background: rgba(191, 149, 63, 0.1);
}

/* Hide default radio but keep functional */
.service-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-option input[type="radio"]:checked {
    border-color: var(--gold-base);
}

.service-option input[type="radio"]:checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--gold-base);
    border-radius: 50%;
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.service-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.service-price {
    margin-left: auto;
    /* Actually we want price below title or right aligned? 
       In HTML structure it's inside content. 
       Let's keep it under desc for better mobile view or absolute right.
    */
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}


/* Specific Modules */
/* Status Badges */
.status-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modals - Refined Centering & Style */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    justify-content: center;
    /* Horizontally center */
    align-items: center;
    /* Vertically center (Change from flex-end) */
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    /* Gold border */
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 0px;
    right: 1.5px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    background: #000000;
    border: none;
    padding: 0px;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    text-align: center;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.tab-btn.active {
    background: var(--bg-surface);
    color: #BF953F;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(191, 149, 63, 0.3);
}

/* Bidding Info Card Styles */
.bidding-info-card {
    background: rgba(179, 135, 40, 0.05);
    border: 1px solid rgba(179, 135, 40, 0.2);
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid var(--gold-base);
}

.bidding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-base);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.bidding-header i {
    font-size: 1.2rem;
}

.bidding-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bidding-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.bidding-steps li:last-child {
    margin-bottom: 0;
}

.bidding-steps li i {
    color: var(--gold-base);
    font-size: 0.9rem;
    margin-top: 3px;
}

.bidding-steps li strong {
    color: var(--gold-highlight);
    display: block;
    margin-bottom: 2px;
}

.btn-primary i.fa-broadcast-tower {
    animation: broadcast-pulse 1.5s infinite;
}

@keyframes broadcast-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Booking Items */
.booking-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

/* Map specific overrides */
/* Map specific overrides */
#mapSelectionContainer {
    background: var(--bg-body);
    width: calc(100vw - 40px) !important;
    height: calc(100vh - 216px) !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

/* Hero / Welcome Screen - Refined */
.hero-screen {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical Center */
    align-items: center;
    /* Horizontal Center */
    text-align: center;
    padding: 40px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle overlay pattern or glow if desired */
.hero-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(191, 149, 63, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: 4rem;
    /* Larger Title */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(191, 149, 63, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-text {
    max-width: 400px;
    margin: 0 auto 40px auto;
    /* Centered with margin */
    font-size: 1rem;
    color: var(--text-secondary);
}

.hero-actions {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.map-top-section {
    flex-shrink: 0;
    padding: 10px;
    background: rgba(2, 6, 23, 0.95);
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.map-viewport {
    flex-grow: 1;
    position: relative;
    width: 100%;
    min-height: 200px;
}

#googleMap {
    width: 100%;
    height: 100%;
}

/* Map Confirm Button Area */
.map-bottom-section {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    /* iPhone Home Bar safety */
    background: linear-gradient(to top, var(--black-bg), transparent);
}

/* Terms Modal Styling */
.modal-content-lg {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    /* Fit on screen */
}

.modal-body-scroll {
    overflow-y: auto;
    padding: 10px;
    /* Space for scrollbar */
    max-height: 50vh;
    /* Limit height */
    margin-bottom: 20px;
    text-align: left;
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

#legalWarningBox {
    background: rgba(239, 68, 68, 0.1);
    /* Red tint */
    border-left: 3px solid var(--danger);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #fca5a5;
    font-size: 0.9rem;
}

.terms-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.terms-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
}

.terms-list li::before {
    content: '•';
    color: var(--gold-base);
    font-weight: bold;
    margin-right: 10px;
}

/* Custom Scrollbar */
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-base);
    border-radius: 10px;
}

/* Map CROSSHAIR Overlay */
.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Perfectly centered */
    pointer-events: none;
    /* Let clicks pass through to map */
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold-base);
}

.crosshair-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.crosshair-label {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-top: 5px;
    white-space: nowrap;
}

/* Map Search Inputs (Created dynamically) */
.map-search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--gold-base);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    outline: none;
    position: relative;
    z-index: 100;
    /* Ensure above map */
}

/* Google Autocomplete Suggestions Theme */
.pac-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--gold-base);
    font-family: var(--font-body);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-top: 2px;
    z-index: 3000 !important;
    /* Must be higher than modal (2000) and map overrides */
}

.pac-item {
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px;
}

.pac-item:hover {
    background-color: var(--bg-surface-2);
}

.pac-item-query {
    color: var(--gold-base);
    /* Highlight match in gold */
    font-weight: bold;
}

.pac-matched {
    font-weight: 700;
}

/* Greeting Styles */
.greeting-title {
    font-size: 2rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    /* Gold Gradient Text */
    background: var(--gold-text-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.greeting-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Custom Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.custom-modal-box {
    background: var(--bg-surface);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #BF953F;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.custom-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-modal {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-modal-primary {
    background: var(--gold-gradient);
    color: var(--black-bg);
}

/* UI/UX Refinements - Premium Feel */

/* 1. Global Spacing & Typography Fixes */
:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
}

body {
    /* Smoother font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.owl-dots {
    display: none;
}

/* 2. Enhanced Input Experience */
.input-group {
    margin-bottom: 7.5px;
    position: relative;
    transition: transform 0.2s ease;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.input-group:focus-within label {
    color: var(--gold-base);
    /* Highlight label on focus */
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
    padding: 15px;
    /* Space for icons */
    /* padding-left: 35px; */
    border-radius: 12px;
    border: 1px solid rgba(191, 149, 63, 0.5) !important;
    /* Softer border */
    background: rgba(15, 23, 42, 0.6);
    /* Slightly transparent */
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input#topUpAmountInput {
    padding: 0px !important;
    width: 100% !important;
}

input#pickupAddress,
#dropoffAddress {
    padding-left: 35px;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
    border-color: var(--gold-base);
    box-shadow: 0 8px 15px rgba(191, 149, 63, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

/* Icons inside inputs */
.location-input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 2;
}

.input-group:focus-within .input-icon {
    color: var(--gold-base);
}

/* 3. Truck Selection Cards - Image Based */
.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Premium Select Styling */
.premium-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more visible */
    border: 1px solid rgba(191, 149, 63, 0.5);
    /* Stronger gold border */
    border-radius: 12px;
    padding: 0 15px;
    height: 52px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-select {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    appearance: none;
    padding-left: 32px;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.select-btn {
    background: var(--gold-gradient) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.3);
    width: 85%;
    margin: 10px auto;
    font-size: 0.75rem !important;
    display: none;
    /* Hidden by default (PC) */
}

@media (max-width: 991px) {
    .select-btn {
        display: block;
    }
}

/* Select2 Premium Styling */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    font-weight: 700 !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gold-base) transparent transparent transparent !important;
}

.select2-dropdown {
    background-color: #0f172a !important;
    border: 1px solid rgba(191, 149, 63, 0.4) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.select2-search--dropdown {
    padding: 10px !important;
    background: #0f172a !important;
}

.select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(191, 149, 63, 0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px !important;
}

.select2-results__option {
    padding: 12px 15px !important;
    color: #94A3B8 !important;
    font-size: 0.9rem !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: rgba(191, 149, 63, 0.2) !important;
    color: var(--gold-highlight) !important;
}

.select2-results__option[aria-selected=true] {
    background-color: rgba(191, 149, 63, 0.1) !important;
    color: #fff !important;
}

.select2-container {
    z-index: 9999 !important;
}

.premium-select option {
    background: #0f172a;
    color: #fff;
}

.select-icon {
    position: absolute;
    left: 15px;
    color: var(--gold-base);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.select-arrow {
    position: absolute;
    right: 15px;
    color: var(--gold-base);
    pointer-events: none;
    opacity: 0.7;
    font-size: 0.8rem;
    z-index: 2;
}

.truck-options {
    padding: 10px 0;
    width: 100%;
}

/* Grid for Desktop */
@media (min-width: 992px) {
    .truck-options {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        gap: 12px 15px !important;
        opacity: 1 !important;
        justify-items: center;
        align-items: start;
        width: 100%;
        margin: 0 auto;
    }

    .truck-options.owl-carousel .owl-stage-outer {
        overflow: visible !important;
        height: auto !important;
    }

    .truck-options.owl-carousel .owl-stage {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        width: 100% !important;
        transform: none !important;
        gap: 12px 15px !important;
    }

    .truck-options.owl-carousel .owl-item {
        width: auto !important;
        float: none !important;
        display: block !important;
    }

    .truck-card {
        min-height: 140px;
        padding: 12px 10px !important;
        width: 100%;
        background-size: 85% auto;
        background-position: center 35%;
    }

    .truck-qty-wrapper {
        margin-bottom: 5px;
        transform: scale(0.9);
    }

    .card {
        padding: 15px 20px;
    }

    .step-progress-bar {
        margin: 10px 0 20px 0;
    }

    .greeting-title {
        font-size: 1.6rem;
        margin-bottom: 2px;
    }

    .greeting-subtitle {
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .step-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .mb-20 {
        margin-bottom: 12px !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .truck-options.owl-carousel {
        padding: 20px 0 40px;
    }

    .owl-item {
        opacity: 0.4;
        transition: all 0.3s ease;
        transform: scale(0.85);
    }

    .owl-item.center {
        opacity: 1;
        transform: scale(1.05);
        z-index: 10;
    }

    .truck-card {
        margin: 10px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(191, 149, 63, 0.1);
    }

    .owl-item.center .truck-card {
        border-color: var(--gold-base);
        background-size: 61%;
        box-shadow: 0 0 20px rgba(191, 149, 63, 0.2);
    }
}

.truck-card {
    background-color: rgba(10, 15, 25, 0.6);
    background-image: var(--truck-img);
    background-size: 100%;
    background-position: center 30%;
    background-repeat: no-repeat;
    border: 1px solid rgba(191, 149, 63, 0.15);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Push UI to bottom */
}

.truck-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(2, 6, 23, 0.7) 100%);
    z-index: 1;
}

.truck-card>* {
    position: relative;
    z-index: 2;
}

.truck-card:hover {
    border-color: var(--gold-base);
    box-shadow: 0 10px 25px rgba(191, 149, 63, 0.2);
    transform: translateY(-5px);
    background-color: rgba(191, 149, 63, 0.05);
    background-size: 110%;
    /* Zoom effect on background */
}

.truck-card.selected {
    border-color: var(--gold-base);
    background-color: rgba(191, 149, 63, 0.1);
    box-shadow: inset 0 0 15px rgba(191, 149, 63, 0.2), 0 0 30px rgba(191, 149, 63, 0.2);
}

.truck-card h4,
.truck-card .capacity-info,
.truck-card img {
    display: none !important;
}

.truck-card .card-footer-icon {
    margin-top: auto;
    color: var(--gold-base);
    font-size: 0.8rem;
    opacity: 0.5;
}

.truck-card.selected .card-footer-icon {
    opacity: 1;
    transform: scale(1.2);
}

.truck-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    /* background: rgba(0, 0, 0, 0.6); */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    margin-top: 205px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--gold-base);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(191, 149, 63, 0.2);
}

.qty-val {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    min-width: 15px;
}

.truck-select-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--gold-base);
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.truck-card.selected .truck-select-icon {
    opacity: 1;
    transform: scale(1);
}

/* 4. Booking Wizard & Steps */
.form-step {
    display: none;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
}

/* Progress Bar */
.step-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin: 20px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(191, 149, 63, 0.5);
}

/* Step Typography */
.step-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Review Step Styles */
.review-card {
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-label {
    color: var(--text-muted);
    font-weight: 500;
}

.review-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.review-route {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-addr {
    font-size: 0.85rem;
    position: relative;
    padding-left: 15px;
}

.review-addr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: none;
}

.review-addr.pickup::before {
    background: var(--success);
}

.review-addr.dropoff::before {
    background: var(--danger);
}

.truck-cargo-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(191, 149, 63, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.truck-cargo-section h4 {
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    margin-bottom: 15px !important;
}

.truck-cargo-section h4 i {
    color: var(--gold-base);
    font-size: 1rem;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-base);
    color: var(--gold-base);
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #000;
}

/* Animation Keyframes (unchanged) */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.step-enter-next {
    animation-name: slideInRight;
}

.step-exit-next {
    animation-name: slideOutLeft;
}

.step-enter-prev {
    animation-name: slideInLeft;
}

.step-exit-prev {
    animation-name: slideOutRight;
}

/* 5. Map Modal Experience */
.custom-modal-overlay,
.modal {
    backdrop-filter: blur(8px);
    /* Stronger blur */
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

/* Map Selection Slide Up Animation */
#mapSelectionContainer {
    /* Overrides from previous step */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 90vh !important;
    /* Not full screen, sheet-like */
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(110%);
    /* Hidden state */
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    /* Smooth spring-like */
    z-index: 2000;
    display: flex !important;
    /* Force flex */
    visibility: hidden;
    /* Use visibility specifically for transitions */
}

#mapSelectionContainer.visible {
    transform: translateY(0);
    visibility: visible;
}

/* Map Close Button - Floating Bubble style */
.map-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.map-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Map Confirm Button Area */
.map-bottom-section {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    /* iPhone Home Bar safety */
}

/* 6. Pricing Estimate - Glass Card */
.price-estimate-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.price-total-row span:last-child {
    font-size: 1.5rem;
    color: var(--gold-base);
    text-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
}

/* Location Input Styling */
.location-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.location-input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    color: var(--gold-base);
    z-index: 2;
    pointer-events: none;
}

/* Adjust padding for inputs with icons */
.location-input-wrapper input {
    padding-left: 45px !important;
    padding-right: 45px !important;
}

.btn-icon-right {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--gold-base);
    cursor: pointer;
    padding: 8px;
    z-index: 2;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-right:hover {
    transform: scale(1.1);
    color: var(--gold-highlight);
}

/* Password Toggle Styling */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 5;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--gold-base);
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--gold-base);
}


/* Custom File Upload Styling */
.file-input-hidden {
    display: none;
}

.custom-file-upload {
    width: 100%;
    margin-bottom: 20px;
}

.file-upload-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(191, 149, 63, 0.05);
    /* Very subtle gold tint */
    border: 2px dashed rgba(191, 149, 63, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload-zone:hover {
    background: rgba(191, 149, 63, 0.1);
    border-color: var(--gold-base);
    transform: translateY(-2px);
}

.file-upload-zone.has-file {
    border-style: solid;
    background: rgba(16, 185, 129, 0.1);
    /* Green tint */
    border-color: var(--success);
}

.upload-icon-wrapper {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-base);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.file-upload-zone.has-file .upload-icon-wrapper {
    color: var(--success);
}

.upload-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.upload-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.upload-check-icon {
    color: var(--success);
    font-size: 1.2rem;
    animation: fadeIn 0.3s ease;
}

.mt-10 {
    margin-top: 10px;
}

/* ==========================================================================
   PREMIUM DASHBOARD UI OVERHAUL (Company, Driver, Admin)
   ========================================================================== */

/* Enhanced Card Styling */
.card,
.stat-card,
.notification-card,
.table-container {
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparent darker blue */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 149, 63, 0.2);
    /* Subtle Gold Border */
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover,
.notification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(191, 149, 63, 0.4);
}

/* Dashboard Grid Layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Stat Cards */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Driver Mode Button (Premium) */
.btn-driver-mode {
    background: rgba(191, 149, 63, 0.15);
    color: var(--gold-base);
    border: 1px solid rgba(191, 149, 63, 0.5);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-driver-mode:hover {
    background: var(--gold-base);
    color: #000;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.4);
}

/* Notification / Job Card Styling */
.notification-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-left: 4px solid var(--gold-base);
    /* Accent strip */
}

.notification-header {
    padding: 20px;
}

.notification-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-available {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-busy {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-tag-lg {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-highlight);
    text-align: right;
    margin-top: 10px;
}

.job-icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-icon-text i {
    width: 20px;
    text-align: center;
    color: var(--gold-base);
}

.action-row {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-reject {
    background: transparent;
    color: var(--text-muted);
    transition: 0.3s;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.warning-note {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #F59E0B;
    padding: 10px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    color: #ffd700;
}

/* Tables (Admin) */
.table-container {
    padding: 0;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 20px;
    color: var(--gold-base);
    font-weight: 700;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Truck List Item */
.truck-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.truck-list-item:last-child {
    border-bottom: none;
}

.truck-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(191, 149, 63, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold-base);
    margin-right: 15px;
}


/* ==========================================================================
   MODAL FIXES & LAYERING
   ========================================================================== */

/* Ensure standard modals are strictly ordered */
.modal {
    z-index: 2000;
    /* Standard Modal */
}

.modal-content {
    /* Ensure content is above backdrop */
    z-index: 2001;
}

/* Custom Overlay (Alerts/Confirms) MUST be higher than standard modals */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker backdrop for focus */
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* CRITICAL: Must be higher than all overlays including verification */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: #0f172a;
    /* Navy background */
    border: 1px solid var(--gold-base);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold-base);
}

.custom-modal-title {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.custom-modal-message {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-modal-primary {
    background: var(--gold-gradient);
    color: #000;
}

.btn-modal-primary:hover {
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.4);
}

.btn-modal-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-modal-secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* TRUCK SELECTION ITEM STYLING */
.truck-selection-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.truck-selection-item:hover {
    background: rgba(191, 149, 63, 0.15);
    border-color: var(--gold-base);
    transform: translateX(5px);
}

.truck-selection-item h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.truck-selection-item p {
    margin: 0;
}


/* ==========================================================================
   MAP SELECTION LAYOUT FIXES
   ========================================================================== */

#mapSelectionContainer {
    background: var(--bg-body);
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
    /* Ensure it's on top of everything */
}

/* Header Section (Top) */
.map-top-section {
    background: rgba(2, 6, 23, 0.95);
    /* Dark background */
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 15px;
    padding-top: env(safe-area-inset-top);
    /* Handle notch */
    /* If content is pushing up, ensure height is minimal but sufficient */
    flex-shrink: 0;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    /* Space for search bar below */
}

.map-back-btn {
    background: rgba(255, 255, 255, 0.05);
    /* Slight highlight */
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.map-back-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.map-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-base);
}

/* Map Viewport (Fill Remaining Space) */
.map-viewport {
    flex: 1;
    /* Take up all available space */
    position: relative;
    width: 100%;
    height: 100%;
    /* Ensure it fills the flex child */
}

#googleMap {
    width: 100%;
    height: 100%;
    /* Ensure no weird margins */
    margin: 0;
    padding: 0;
}

/* Bottom Action Section */
.map-bottom-section {
    position: absolute;
    /* Float over the map at the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 100%);
    pointer-events: none;
    /* Let clicks pass through area */
    display: flex;
    justify-content: center;
    z-index: 20;
}

.map-bottom-section button {
    pointer-events: auto;
    /* Re-enable for button */
    width: 100%;
    max-width: 400px;
    /* Max width for tablets */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Search Container inside Map Modal */
.search-container-wrapper input {
    background: var(--bg-input);
    /* Darker input */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-container-wrapper input:focus {
    border-color: var(--gold-base);
}

/* Hide extra map UI we don't need if relying on crosshair */
.gmnoprint,
.gm-fullscreen-control {
    display: none !important;
}


/* ==========================================================================
   MODAL & LIST ENHANCEMENTS (PREMIUM)
   ========================================================================== */

/* Activity Lists */
.booking-item-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 149, 63, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.booking-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(191, 149, 63, 0.5);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.booking-price-lg {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-highlight);
}

.booking-route-summary h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.4;
}

.booking-simple-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 5px;
}

.booking-meta-row {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-meta-item i {
    color: var(--gold-base);
}

/* Modal Details Refinements */
.detail-modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.detail-price-display {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.detail-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--gold-base);
    /* Gold labels */
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-value {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.detail-address-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.detail-address-icon {
    margin-top: 4px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.detail-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}

.detail-timeline-dot.pickup {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.detail-timeline-dot.dropoff {
    background: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.detail-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* ==========================================================================
   MAP MODAL BUTTONS (UPDATED)
   ========================================================================== */

.map-gps-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-base);
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.map-gps-btn:hover,
.map-gps-btn:active {
    background: var(--gold-base);
    color: #000;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.5);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.map-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}


/* ==========================================================================
   USE CURRENT LOCATION BUTTON (EXTENDED)
   ========================================================================== */

.map-gps-btn-extended {
    background: rgba(191, 149, 63, 0.15);
    /* Low opacity gold bg */
    color: var(--gold-base);
    /* Gold text/icon */
    border: 1px solid rgba(191, 149, 63, 0.5);
    /* Gold border */
    border-radius: 99px;
    /* Pill shape */
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-gps-btn-extended:hover,
.map-gps-btn-extended:active {
    background: var(--gold-base);
    color: #000;
    /* Black text on hover for contrast */
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.4);
}

.map-gps-btn-extended i {
    font-size: 1rem;
}

@media (max-width: 480px) {
    * {
        width: auto;
    }

    section#section-help {
        padding: 15px;
        margin-left: 0px;
        margin-top: -50px;
    }

    .map-gps-btn-extended span {
        display: none;
    }

    .map-gps-btn-extended {
        padding: 0 12px;
    }
}

/* Ensure Search Inputs take full width available under header */
.search-container-wrapper {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* ==========================================================================
   GOOGLE MAPS AUTOCOMPLETE FIXES
   ========================================================================== */

/* Ensure the Autocomplete Dropdown appears ABOVE the Map Modal */
.pac-container {
    z-index: 6000 !important;
    /* Higher than #mapSelectionContainer (5000) */
    background-color: #0f172a !important;
    /* Match App Dark Theme */
    border: 1px solid var(--gold-base);
    border-top: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    margin-top: 5px;
    border-radius: 0 0 8px 8px;
    font-family: 'Inter', sans-serif;
}

/* Style the Items in the Dropdown */
.pac-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    color: #cbd5e1;
    /* Light gray text */
    cursor: pointer;
    transition: background 0.1s;
}

.pac-item:hover,
.pac-item-selected {
    background-color: rgba(191, 149, 63, 0.15) !important;
}

/* Style the Main Text (Matched Query) */
.pac-item-query {
    color: var(--gold-base);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Style the Secondary Text (Address City/Country) */
.pac-icon {
    display: none;
    /* Hide default ugly map icons for cleaner look */
}

/* ==========================================================================
   COMPACT & SCROLLABLE MODAL STYLES (PREMIUM)
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

div#forgotPasswordModal {
    z-index: 99999;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.notification-modal-content {
    max-height: 80vh;
    padding: 0 !important;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header (Fixed) */
.modal-header-fixed {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    flex-shrink: 0;
}

/* Scrollable Body */
.modal-scrollable-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* The Blurr Effect (Bottom Gradient) */
.modal-scroll-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
}

/* Footer (Fixed) */
.modal-footer-fixed {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Close button - Integrated into header */
.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* Custom Scrollbar */
.modal-scrollable-body::-webkit-scrollbar,
.modal-content form::-webkit-scrollbar {
    width: 5px;
}

.modal-scrollable-body::-webkit-scrollbar-track,
.modal-content form::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scrollable-body::-webkit-scrollbar-thumb,
.modal-content form::-webkit-scrollbar-thumb {
    background: rgba(191, 149, 63, 0.3);
    border-radius: 10px;
}

.modal-scrollable-body::-webkit-scrollbar-thumb:hover,
.modal-content form::-webkit-scrollbar-thumb:hover {
    background: var(--gold-base);
}

/* ==========================================================================
   USER MODAL TABS & DRIVER DOCUMENTS (ADMIN)
   ========================================================================== */

/* Tab Bar in Modal Header */
.user-modal-tabs {
    display: flex;
    gap: 4px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
}

.umodal-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.umodal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.umodal-tab.active {
    background: rgba(191, 149, 63, 0.18);
    color: var(--gold-base);
    box-shadow: 0 2px 8px rgba(191, 149, 63, 0.15);
}

.umodal-tab i {
    font-size: 0.9rem;
}

/* Document Count Badge */
.doc-tab-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 2px;
    letter-spacing: 0.5px;
}

.doc-tab-badge.badge-complete {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.doc-tab-badge.badge-incomplete {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Modal Tab Pane */
.modal-tab-pane {
    animation: modalTabFadeIn 0.25s ease;
}

@keyframes modalTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Driver Status Banner */
.driver-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.driver-status-banner i {
    font-size: 1.2rem;
}

.driver-status-banner.status-pending {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.driver-status-banner.status-verified {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.driver-status-banner.status-declined {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Driver Document Grid (stacked cards) */
.driver-doc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.driver-doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.driver-doc-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(191, 149, 63, 0.2);
}

.driver-doc-card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(191, 149, 63, 0.1);
    color: var(--gold-base);
    font-size: 1.1rem;
}

.driver-doc-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.driver-doc-card-label {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-doc-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Document View Button */
.driver-doc-view-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    background: rgba(191, 149, 63, 0.08);
    color: var(--gold-base);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.driver-doc-view-btn:hover:not(:disabled) {
    background: var(--gold-base);
    color: #000;
    box-shadow: 0 4px 12px rgba(191, 149, 63, 0.3);
    transform: translateY(-1px);
}

.driver-doc-view-btn.doc-missing {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    color: rgba(239, 68, 68, 0.5);
    cursor: not-allowed;
}

.driver-doc-view-btn.doc-available {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
}

.driver-doc-view-btn.doc-available:hover {
    background: #10B981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   PREMIUM UI COMPONENTS (Buttons, Cards, Inputs)
   ========================================================================== */

/* 1. Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--black-bg);
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(191, 149, 63, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-base);
    border: 1px solid var(--gold-base);
    margin-top: 15px;
}

.btn-outline-gold:hover {
    background: rgba(191, 149, 63, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
}

.btn-white {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    font-weight: 800;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    background: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* 2. Premium Job Card (Universal) */
.premium-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(191, 149, 63, 0.15);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    border-color: rgba(191, 149, 63, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* 3. Route Visualizer Premium */
.route-visualizer {
    position: relative;
    padding-left: 28px;
    margin: 15px 0;
}

.route-visualizer::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold-base) 0%, rgba(255, 255, 255, 0.1) 50%, #fff 100%);
}

.route-node {
    position: relative;
    margin-bottom: 25px;
}

.route-node:last-child {
    margin-bottom: 0;
}

.route-node::after {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
    transition: all 0.3s;
}

.route-node.pickup::after {
    background: var(--gold-base);
    box-shadow: 0 0 10px var(--gold-base);
    width: 11px;
    height: 11px;
    left: -29px;
}

.route-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    display: block;
}

.route-address {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

/* 4. Status Badges Premium */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-gold {
    background: rgba(179, 135, 40, 0.15);
    color: var(--gold-base);
    border: 1px solid rgba(179, 135, 40, 0.2);
}

.tag-blue {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.tag-green {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 5. Detail Info Boxes */
.info-box-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box-icon {
    font-size: 1.1rem;
    color: var(--gold-base);
}

.info-box-content {
    flex: 1;
}

.info-box-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.info-box-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.flex-1 {
    flex: 1;
}

.animate-in {
    animation: slideInUp 0.4s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Page Styles */
.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
    animation: fadeIn 0.5s ease-out;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: start;
}

@media (min-width: 992px) {
    .profile-container {
        /* padding: 30px; */
    }

    .profile-grid {
        grid-template-columns: 350px 1fr;
        gap: 40px;
    }
}

.profile-header-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-avatar-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    background: var(--gold-gradient);
    padding: 3px;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-wrapper:hover {
    transform: scale(1.05);
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    background: var(--black-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--gold-base);
    overflow: hidden;
    position: relative;
}

.profile-avatar-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    border-radius: 50%;
}

.profile-avatar-wrapper:hover .profile-avatar-inner::after {
    background: rgba(0, 0, 0, 0.3);
}

.avatar-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--gold-gradient);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid var(--black-surface);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: all 0.3s;
}

.profile-avatar-wrapper:hover .avatar-edit-badge {
    transform: scale(1.1);
    background: #fff;
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--gold-highlight);
}

.profile-role-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(179, 135, 40, 0.1);
    color: var(--gold-base);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(179, 135, 40, 0.2);
}

.profile-section-title {
    font-size: 1rem;
    color: var(--gold-base);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 30px 0 15px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(179, 135, 40, 0.3), transparent);
}

.settings-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-input-item {
    margin-bottom: 20px;
}

.profile-input-item:last-child {
    margin-bottom: 0;
}

.profile-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-field-wrapper {
    position: relative;
}

.profile-field-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-base);
    opacity: 0.6;
}

.profile-field-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 15px 12px 45px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s;
}

.profile-field-wrapper input:focus {
    outline: none;
    border-color: var(--gold-base);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(179, 135, 40, 0.1);
}

.btn-profile-save {
    background: var(--gold-gradient);
    color: var(--black-bg);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-profile-save:active {
    transform: scale(0.98);
}

.profile-sidebar .card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 149, 63, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
}

.profile-sidebar h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--gold-base);
}


/* Custom Scrollbar Elegant */
.modal-scrollable-body::-webkit-scrollbar {
    width: 4px;
}

.modal-scrollable-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-scrollable-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, transparent, var(--gold-base), transparent);
    border-radius: 10px;
}

.modal-scrollable-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-base);
}

/* Notifications */
.notification-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(179, 135, 40, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.notification-item.unread {
    background: rgba(179, 135, 40, 0.05);
    border-left: 3px solid var(--gold-base);
    padding-left: 13px;
    /* Compensate for border */
}

.notif-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s;
    border: 1px solid rgba(239, 68, 68, 0.2);
    z-index: 5;
}

.notification-item:hover .notif-delete-btn {
    opacity: 1;
}

.notif-delete-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(179, 135, 40, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(179, 135, 40, 0.15);
}

.notif-content {
    flex: 1;
    padding-right: 25px;
    /* Space for unread dot/delete button */
}

.notif-title {
    font-weight: 700;
    color: var(--gold-highlight);
    font-size: 1rem;
    margin-bottom: 4px;
}

.notif-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
}

.header-actions {
    display: flex;
    align-items: center;
}

.notif-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Tracking Stepper */
.tracking-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 25px;
    padding: 0 5px;
}

.tracking-stepper::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.track-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 20%;
}

.track-step .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.track-step.active .dot {
    background: var(--gold-base);
    border-color: var(--gold-highlight);
    box-shadow: 0 0 15px var(--gold-base);
    transform: scale(1.2);
}

.track-step.done .dot {
    background: var(--gold-base);
    border-color: var(--gold-base);
}

.track-step .label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.track-step.active .label {
    color: var(--gold-highlight);
}

.track-step.done .label {
    color: var(--text-primary);
}

.driver-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold-base);
    border: 1px solid rgba(179, 135, 40, 0.3);
}

.btn-action-round {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-base);
    color: var(--black-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.3);
    transition: transform 0.2s;
}

.btn-action-round:active {
    transform: scale(0.9);
}

.pulse-dot {
    background: #10B981;
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Unified Header Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 100;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: auto;
}

.user-profile-icon {
    font-size: 1.8rem;
    color: var(--gold-base);
    transition: transform 0.2s;
    cursor: pointer;
}

.user-profile:active .user-profile-icon {
    transform: scale(0.9);
}

/* Hotfix for Modal Scrolling */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* -------------------------------------------------------------------------- */
/*                               The Search Bar Fixed Styles                  */
/* -------------------------------------------------------------------------- */
.search-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-input-wrapper input {
    padding-left: 40px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.premium-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darker contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-search-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--gold-base);
    outline: none;
    box-shadow: 0 0 15px rgba(179, 135, 40, 0.15);
}

.premium-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.users-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--gold-base);
    color: #000;
    border-color: var(--gold-base);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/*                               DESKTOP OPTIMIZATIONS                        */
/* -------------------------------------------------------------------------- */

@media (min-width: 1024px) {

    /* Sidebar Navigation */
    .bottom-nav {
        top: 0;
        left: 0;
        bottom: 0;
        width: 220px;
        /* Compact Width */
        height: auto;
        border-top: none;
        border-right: 1px solid rgba(191, 149, 63, 0.2);
        display: flow;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        /* Reduced top padding */
        padding-left: 12px;
        padding-right: 12px;
        grid-template-columns: unset;
        gap: 8px;
        /* Reduced gap */
        z-index: 1000;
        /* Ensure on top */
        background: #020617;
        /* Solid background */
    }

    .nav-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 16px;
        /* Reduced padding */
        border-radius: 12px;
        font-size: 0.9rem;
        /* Slightly smaller font */
        width: 100%;
        gap: 12px;
    }

    .nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0;
        width: 24px;
        text-align: center;
    }

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-item.active {
        background: rgba(191, 149, 63, 0.1);
        border: 1px solid rgba(191, 149, 63, 0.2);
    }

    .nav-item.active span {
        background: var(--gold-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Logo for Sidebar */
    .bottom-nav::before {
        content: "RORO";
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Playfair Display', serif;
        font-weight: 800;
        font-size: 2rem;
        /* Adjusted logo size */
        background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 51%, #FBF5B7 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        /* Reduced logo container height */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Main Content Area */
    body {
        padding-bottom: 0;
    }

    main {
        margin-left: 220px;
        /* Updated margin */
        padding: 30px;
        max-width: 1600px;
        margin-right: auto;
    }

    #section-wallet {
        /* margin-left: 220px; */
    }

    /* Header adjustments */
    .app-header {
        position: sticky;
        top: 0;
        left: 0;
        /* Header stays in flow but padding handled by main? No, header is outside main usually */
        width: calc(100% - 220px);
        /* Updated width */
        margin-left: 220px;
        /* Updated margin */
        padding: 0 40px;
        height: 70px;
        background: rgba(2, 6, 23, 0.9);
    }

    .app-header .app-logo-container {
        display: none;
        /* Hide header logo */
    }

    /* Grid Layouts */
    .admin-grid,
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
    }

    .stat-card-premium:nth-child(3) {
        grid-column: span 2;
    }

    .user-grid,
    #jobsList {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Transaction List - Grid on Desktop */
    .transaction-list-premium {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Modals */
    .modal-content {
        max-width: 600px;
    }
}

@media (min-width: 1600px) {
    .user-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   TOP UP & PAYMENT INTEGRATION STYLES
   ========================================================================== */

.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(191, 149, 63, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-method-card:hover {
    background: rgba(191, 149, 63, 0.08);
    border-color: var(--gold-base);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    background: rgba(191, 149, 63, 0.15);
    border-color: var(--gold-base);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.2);
}

.payment-method-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.payment-method-icon.gcash {
    background: #007DFE;
    color: #fff;
}

.payment-method-icon.maya {
    background: #000;
    color: #fff;
}

.payment-method-icon.card {
    background: #f8f9fa;
    color: #1a1f2c;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.payment-method-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.payment-method-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
}

.payment-method-card.selected .payment-method-check {
    background: var(--gold-base);
    border-color: var(--gold-base);
    color: #000;
}

.top-up-amount-display {
    text-align: center;
    padding: 30px 0;
    background: rgba(191, 149, 63, 0.05);
    border-radius: 20px;
    border: 1px dashed rgba(191, 149, 63, 0.3);
    margin-bottom: 25px;
}

.top-up-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-base);
    font-weight: 700;
    margin-bottom: 5px;
}

.top-up-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* PayMongo/Maya Checkout Simulator */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-bg);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.processing-overlay.active {
    display: flex;
}

.payment-loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(191, 149, 63, 0.1);
    border-left-color: var(--gold-base);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

.payment-status-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 10px;
}

.payment-status-msg {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

/* Email Verification Overlay */
.verification-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.verification-box {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.verification-icon-header {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(179, 135, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--gold-base);
    font-size: 2rem;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--gold-base);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.otp-input-large {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    width: 100%;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 15px;
    color: var(--gold-highlight);
    font-weight: 800;
}

.verification-box .btn {
    font-weight: 800;
    letter-spacing: 1px;
}

/* --------------------
   BOOKING CHAT UI
   -------------------- */
#chatMessagesContainer {
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-base) rgba(0, 0, 0, 0.1);
    scroll-behavior: smooth;
}

#chatMessagesContainer::-webkit-scrollbar {
    width: 4px;
}

#chatMessagesContainer::-webkit-scrollbar-thumb {
    background: rgba(179, 135, 40, 0.4);
    border-radius: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 8px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 2px;
}

.chat-bubble.me {
    align-self: flex-end;
    background: var(--gold-gradient);
    color: #000;
    border-radius: 15px 15px 0px 15px;
    font-weight: 500;
}

.chat-bubble.them {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 15px 15px 15px 0px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 10px;
    padding: 0 5px;
    opacity: 0.7;
}

.chat-bubble.me+.chat-time {
    text-align: right;
    align-self: flex-end;
}

.chat-bubble.them+.chat-time {
    text-align: left;
    align-self: flex-start;
}

.chat-spinner {
    font-size: 1.5rem;
    color: var(--gold-base);
}

/* Profile Picture Enhancements */
.user-profile-trigger {
    transition: all 0.3s;
}

.user-profile-trigger:hover {
    border-color: var(--gold-base) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(191, 149, 63, 0.3);
}

.header-avatar-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==========================================
   TRACKING UI REFACTOR (STUNNING & COMPACT)
   ========================================== */

/* Shipment Selector Groups */
.shipment-group {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 149, 63, 0.25) !important;
    padding: 6px 12px !important;
    border-radius: 14px !important;
    margin-right: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.shipment-selector-item {
    padding: 6px 10px !important;
    border-radius: 10px !important;
    min-width: 90px !important;
    flex: 0 0 90px !important;
    text-align: center;
}

.shipment-selector-item.active {
    background: var(--gold-gradient) !important;
    color: var(--text-on-primary) !important;
    border-color: transparent !important;
    box-shadow: 0 0 10px rgba(179, 135, 40, 0.4);
}

.shipment-selector-item.active * {
    color: var(--text-on-primary) !important;
}

/* Floating Driver Info Panel */
.driver-floating-panel {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    padding: 15px 20px;
    z-index: 10;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.4);
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFade {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Compact Status Stepper */
.compact-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 5px;
  position: relative;
}

.compact-stepper .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.compact-stepper .step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.compact-stepper .step.active .step-dot {
  background: var(--gold-base);
  box-shadow: 0 0 8px var(--gold-base);
  transform: scale(1.3);
}

.compact-stepper .step.done .step-dot {
  background: var(--gold-base);
}

.compact-stepper .step-line {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.compact-stepper .step:last-child .step-line {
  display: none;
}

.compact-stepper .step-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
  text-align: center;
}

.compact-stepper .step.active .step-label {
  color: var(--gold-highlight);
}

/* Tracking Card Customizations */
.tracking-header-compact {
  padding: 5px 0 10px;
}

.driver-info-flex-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.driver-avatar-compact {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(191,149,63,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-base);
  border: 1px solid rgba(191,149,63,0.2);
}

.driver-text-compact h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--gold-highlight);
}

.driver-text-compact p {
  font-size: 0.75rem;
  margin: 2px 0 0;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  .driver-actions-row-compact {
    display: flex;
    gap: 6px !important;
  }
  .driver-actions-row-compact .btn {
    padding: 8px 4px !important;
    font-size: 0.65rem !important;
    height: auto !important;
    border-radius: 10px !important;
  }
  .tracking-header h2 {
    font-size: 1.3rem !important;
  }
}