:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;

    --primary-color: var(--primary);
    --bs-primary-rgb: 37, 99, 235;
    --primary-hover: #1d4ed8;
    --secondary-color: var(--secondary);
    --success-color: #16A34A;
    --danger-color: #DC2626;
    --warning-color: #FACC15;
    --info-color: var(--secondary);
    --light-bg: var(--bg);
    --dark-bg: #020617;
    --white: #ffffff;

    --sidebar-width: 280px;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-text: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-hover-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-speed: 0.3s;
    --border-radius: 20px;
    --card-bg: var(--white);
    --card-border: rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);

    --font-family-base: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.6;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #16A34A 0%, #22c55e 100%);
    --gradient-danger: linear-gradient(135deg, #DC2626 0%, #ef4444 100%);
    --gradient-warning: linear-gradient(135deg, #FACC15 0%, #fbbf24 100%);
    --gradient-info: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

html[data-ui-style="minimal"],
:root[data-ui-style="minimal"],
body[data-ui-style="minimal"] {
    --primary: #2563eb;
    --primary-color: #2563eb;
    --accent: #f59e0b;
    --border-radius: 12px;
    --card-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    --card-hover-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(15, 23, 42, 0.08);
    --card-border: rgba(15, 23, 42, 0.08);
    --bg: #f3f6fb;
    --sidebar-bg: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

html[data-ui-style="glass"],
:root[data-ui-style="glass"],
body[data-ui-style="glass"] {
    --primary: #7c3aed;
    --primary-color: #7c3aed;
    --accent: #f59e0b;
    --border-radius: 20px;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    --card-hover-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.22);
    --card-border: rgba(15, 23, 42, 0.06);
    --bg: #f7f9fc;
    --sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

html[data-ui-style="contrast"],
:root[data-ui-style="contrast"],
body[data-ui-style="contrast"] {
    --primary: #0ea5e9;
    --primary-color: #0ea5e9;
    --accent: #22c55e;
    --border-radius: 10px;
    --card-shadow: 0 1px 0 rgba(15, 23, 42, 0.10), 0 10px 24px rgba(15, 23, 42, 0.12);
    --card-hover-shadow: 0 2px 0 rgba(15, 23, 42, 0.16), 0 16px 40px rgba(15, 23, 42, 0.18);
    --glass-bg: rgba(255, 255, 255, 1);
    --glass-border: rgba(15, 23, 42, 0.14);
    --card-border: rgba(15, 23, 42, 0.14);
    --bg: #ffffff;
    --text: #0b1220;
    --muted: #475569;
    --sidebar-bg: linear-gradient(180deg, #020617 0%, #0b1220 100%);
}

[data-theme="dark"][data-ui-style="minimal"],
[data-theme="dark"][data-ui-style="glass"],
[data-theme="dark"][data-ui-style="contrast"],
html[data-theme="dark"][data-ui-style="minimal"],
html[data-theme="dark"][data-ui-style="glass"],
html[data-theme="dark"][data-ui-style="contrast"],
:root[data-theme="dark"][data-ui-style="minimal"],
:root[data-theme="dark"][data-ui-style="glass"],
:root[data-theme="dark"][data-ui-style="contrast"] {
    --bg: #0b1220;
    --white: #111a2b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --glass-bg: rgba(17, 26, 43, 0.88);
    --glass-border: rgba(255, 255, 255, 0.10);
    --card-border: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --white: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --sidebar-bg: #020617;
    --sidebar-text: #e0e0e0;
    --secondary-color: #94a3b8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: var(--bg);
    color: var(--text);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    direction: rtl;
    margin: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Metric Circles for Dashboard */
.metric-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.metric-circle:hover {
    transform: scale(1.05);
}

.metric-circle .metric-value {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

#occupancy-rate {
    background: var(--gradient-success);
}

#satisfaction-rate {
    background: var(--gradient-warning);
}

/* Enhanced Dashboard Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: slideInUp 0.5s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Quick Actions Enhancement */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* Performance Metrics Enhancement */
.progress-modern {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: var(--gradient-primary);
    transition: width 1s ease-out;
    animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
    from { width: 0 !important; }
}

/* Enhanced Chart Container */
.chart-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-speed);
}

.chart-container:hover {
    box-shadow: var(--card-hover-shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chart-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.chart-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chart-option-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--card-border);
    background: transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: var(--transition-speed);
    cursor: pointer;
}

.chart-option-btn:hover {
    background: var(--light-bg);
}

.chart-option-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--card-border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Badge Enhancement */
.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Analytics Cards */
.analytics-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-speed);
    border: 1px solid var(--card-border);
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.analytics-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.25rem;
}

.analytics-content {
    flex: 1;
}

.analytics-label {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.analytics-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 0.25rem;
}

/* Top Cars List */
.top-cars-list {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--card-border);
}

.top-car-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-speed);
}

.top-car-item:last-child {
    border-bottom: none;
}

.top-car-item:hover {
    background: var(--light-bg);
    margin: 0 -1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    border-radius: 0.5rem;
}

.car-rank {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.car-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.car-count {
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

/* Enhanced Button Groups */
.btn-group .btn {
    transition: var(--transition-speed);
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

.btn-group .btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

/* Enhanced Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Notification System */
.notification-toast {
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-hover-shadow);
    backdrop-filter: blur(10px);
}

/* Enhanced Search Results */
.search-highlight {
    background: yellow;
    padding: 2px 4px;
    border-radius: 3px;
    animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
    from { background: yellow; }
    to { background: transparent; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .analytics-card {
        flex-direction: column;
        text-align: center;
    }
    
    .analytics-icon {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    .top-car-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .car-rank {
        margin-left: 0;
    }
    
    .metric-circle {
        width: 60px;
        height: 60px;
    }
    
    .metric-circle .metric-value {
        font-size: 1rem;
    }
}

/* Enhanced Search Modern */
.search-modern {
    position: relative;
    max-width: 300px;
}

.search-modern .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-modern input {
    padding-right: 40px;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    transition: var(--transition-speed);
}

.search-modern input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
}

/* Generic layout helpers (used by homepage and admin) */
.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.section { padding: calc(var(--space-2xl) + 0.75rem) 0; }
.section.muted { background-color: #f1f3f5; }
[data-theme="dark"] .section.muted { background-color: #181818; }
.bg-light { background-color: #f8fafc; }
[data-theme="dark"] .bg-light { background-color: #0f172a; }

.grid { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { 
    .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
    .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.offers-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.offers-grid .card img {
    height: 180px;
    object-fit: cover;
}

.offer-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.offer-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background-color: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.08);
    color: #1d4ed8;
}

.offer-discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    background-color: rgba(245, 158, 11, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

.offer-text {
    min-height: 2.4em;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.offer-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.12);
}

.muted-text {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Landing page header+hero */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 5000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body { padding-top: 84px; }

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--primary-color);
    min-width: 0;
    flex: 0 0 auto;
}

.brand span {
    white-space: nowrap;
}

.brand i { font-size: 1.5rem; }

.brand-logo {
    height: 44px;
    width: auto;
    max-width: 140px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 6px 14px rgba(2, 6, 23, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.nav-link {
    font-size: 0.92rem;
    color: #343a40;
    text-decoration: none;
    position: relative;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover { color: var(--primary-color); }
.nav-link.active {
    color: var(--primary-color);
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .brand span {
        display: none;
    }
}

@supports not (gap: 1rem) {
    .actions > :not(:first-child) {
        margin-inline-start: 0.75rem;
    }
}

@media (max-width: 768px) {
    body:not([data-theme]) {
        padding-top: 76px;
    }

    .header-bar {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
    }

    .nav,
    .actions {
        display: none;
        width: 100%;
    }

    .header.open .nav,
    .header.open .actions {
        display: flex;
    }

    .header.open .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 1rem;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
    }

    .header.open {
        max-height: 100vh;
        overflow-y: auto;
    }

    .header.open .nav-link {
        width: 100%;
        padding: 0.5rem 0;
    }

    .header.open .actions a {
        width: 100%;
        justify-content: center;
    }

    .header.open .actions {
        margin-top: 0.5rem;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero-wrap {
        gap: 1.75rem;
    }

    .brand-logo {
        height: 36px;
        max-width: 120px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    border: 2px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.2);
}
.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.3);
}
.btn.outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn.outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.btn.outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.btn.outline-white:hover {
    background-color: #fff;
    color: var(--primary-color);
}
.btn.secondary { background-color: #e2e8f0; color: #0f172a; }
.btn.lg { padding: 0.8rem 2rem; font-size: 1.1rem; }

    /* ==========================================================================
       Hero Section Improvements
       ========================================================================== */
    .hero {
        position: relative;
        isolation: isolate;
        padding: 10rem 0 6rem;
        background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&q=80&w=1920') center/cover;
        color: #fff;
        min-height: 85vh;
        display: flex;
        align-items: center;
    }

    .home-slideshow {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: auto;
    }

    .home-slideshow-track {
        position: absolute;
        inset: 0;
    }

    .home-slideshow-slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transform: scale(1.03);
        transition: opacity 700ms ease, transform 900ms ease;
        filter: saturate(1.05);
    }

    .home-slideshow-slide.is-active {
        opacity: 1;
        transform: scale(1);
    }

    .home-slideshow::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--home-slide-overlay-color, transparent);
        opacity: var(--home-slide-overlay-opacity, 0);
        z-index: 1;
        pointer-events: none;
    }

    .home-slideshow::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--home-slide-overlay-gradient, linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)));
        z-index: 2;
        pointer-events: none;
    }

    .home-slideshow-dots {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 24px;
        display: inline-flex;
        gap: 8px;
        z-index: 2;
        pointer-events: auto;
    }

    .home-slideshow-dot {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.55);
        background: rgba(255,255,255,0.18);
        padding: 0;
        cursor: pointer;
    }

    .home-slideshow-dot.is-active {
        background: rgba(255,255,255,0.85);
        border-color: rgba(255,255,255,0.85);
    }

    .hero > .container {
        position: relative;
        z-index: 1;
    }

    .hero-wrap {
        display: grid;
        gap: 3rem;
    }

    @media (min-width: 992px) {
        .hero-wrap {
            grid-template-columns: 1fr 400px;
            align-items: center;
        }
    }

    .hero-text h1 {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
        font-weight: 800;
    }

    .text-primary-light { color: #60a5fa; }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 700;
        color: #fff;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        margin-bottom: 1.5rem;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .hero-subtitle {
        color: #e2e8f0;
        margin-bottom: 2rem;
        font-size: 1.15rem;
        max-width: 600px;
        line-height: 1.8;
    }

    .hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 500px;
    }

    .hero-stat {
        padding: 1rem;
        border-radius: 16px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        text-align: center;
    }

    .hero-stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
    .hero-stat-label { font-size: 0.85rem; color: #cbd5e1; }

    .hero-card {
        background: rgba(255,255,255,0.95);
        border: 1px solid rgba(255,255,255,0.55);
        border-radius: 22px;
        box-shadow: 0 28px 60px -18px rgba(2, 6, 23, 0.35);
        padding: 1.75rem;
        color: var(--text);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hero-card-title {
        font-weight: 800;
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
        color: var(--text);
        text-align: right;
    }

    .hero-card-head {
        margin-bottom: 1rem;
    }

    .hero-card-head .hero-card-title {
        margin-bottom: 0.35rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .hero-card-subtitle {
        font-size: 0.9rem;
        color: rgba(51, 65, 85, 0.85);
        line-height: 1.6;
    }

    .hero-form-grid {
        display: grid;
        gap: 0.9rem;
        margin-top: 0.75rem;
    }

    .hero-input {
        position: relative;
    }

    .hero-input > i {
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(100, 116, 139, 0.9);
        pointer-events: none;
        font-size: 0.95rem;
    }

    .hero-input .form-control,
    .hero-input .form-select {
        padding-right: 2.5rem;
        border-radius: 12px;
        border-color: rgba(148,163,184,0.55);
        background: #fff;
    }

    .hero-input .form-control[type="date"]{
        direction: rtl;
        text-align: right;
        padding-right: 3rem;
    }

    .hero-input .form-control[type="date"]::-webkit-calendar-picker-indicator{
        opacity: 0.9;
        cursor: pointer;
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-card-cta{
        width: 100%;
        margin-top: 0.6rem;
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        box-shadow: 0 14px 30px -18px rgba(99,102,241,0.65);
    }

    @media (min-width: 768px){
        .hero-form-grid{
            grid-template-columns: 1fr;
        }
    }

.calc label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: var(--muted);
}

.calc input,
.calc select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    background-color: var(--bg);
}

.hero-card .calc input,
.hero-card .calc select {
    background: #fff;
    border-color: rgba(148,163,184,0.55);
}

.hero-card .calc input:focus,
.hero-card .calc select:focus {
    outline: none;
    border-color: rgba(99,102,241,0.55);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.hero-card .calc input[type="date"]{
    direction: rtl;
    text-align: right;
    padding-right: 2.4rem;
}

.hero-card .calc input[type="date"]::-webkit-calendar-picker-indicator{
    opacity: 0.85;
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
}

.calc-result {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-head h2 {
    font-size: 1.4rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.input {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.card-body p {
    font-size: 0.92rem;
    color: #6c757d;
}

.price {
    font-weight: 700;
    margin: 0.75rem 0 1rem;
    font-size: 1.05rem;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.car-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pricing-grid {
    align-items: stretch;
}

/* Pricing */
.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--card-border);
    position: relative;
    transition: all 0.3s;
}
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
}
.pricing-card.popular::before {
    content: "الأكثر طلباً";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}
.pricing-header h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.pricing-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 2rem; }
.pricing-amount { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1;}
.pricing-unit { font-size: 1rem; color: var(--muted); font-weight: 600;}
.pricing-list { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.pricing-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.95rem;}
.pricing-list li i { color: #10b981; font-size: 1.1rem;}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    position: relative;
}
.testimonial-card i.fa-quote-right {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 3rem;
    color: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.05);
}
.stars { color: #f59e0b; margin-bottom: 1rem; font-size: 0.9rem;}
.testimonial-text { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; font-style: italic;}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-info h6 { margin: 0 0 0.2rem 0; font-weight: 800; font-size: 1rem;}
.author-info p { margin: 0; font-size: 0.8rem; color: var(--muted);}

/* Footer */
.footer { background: #020617; color: #cbd5e1; padding: 4rem 0 2rem; border-top: 4px solid var(--primary-color);}
.footer-main { display: grid; gap: 3rem; margin-bottom: 3rem;}
@media (min-width: 992px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 1rem;}
.footer-brand i { color: var(--primary-color); }
.footer-desc { font-size: 0.95rem; line-height: 1.8; color: #94a3b8; margin-bottom: 1.5rem;}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

[data-theme="dark"] .footer-logo {
    background: rgba(17, 26, 43, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-col h4 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.8rem; }
.footer-list a { color: #94a3b8; text-decoration: none; transition: color 0.3s; }
.footer-list a:hover { color: #fff; }
.footer-list i { margin-left: 0.5rem; color: var(--primary-color); width: 20px; text-align: center;}

.footer-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-payments span { padding: 0.4rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); font-size: 0.85rem;}

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem;}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20bd5a; color: #fff;}
@media (max-width: 768px) { .whatsapp-float { bottom: 80px; left: 20px; width: 50px; height: 50px; font-size: 1.5rem;} }

.policy-page {
    padding-top: 120px;
    padding-bottom: 60px;
}

.policy-hero {
    padding: 2.5rem 0 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb, 37, 99, 235), 0.16), transparent 55%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.06), transparent 65%);
}

[data-theme="dark"] .policy-hero {
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb, 37, 99, 235), 0.22), transparent 55%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 65%);
}

.policy-hero-inner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--border-radius) + 6px);
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
}

.policy-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.08);
    border: 1px solid rgba(var(--bs-primary-rgb, 37, 99, 235), 0.14);
}

.policy-hero-title {
    font-weight: 900;
    font-size: 2.25rem;
    margin: 1rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.policy-hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0 0 1.25rem;
}

.policy-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.policy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
}

.policy-meta-item i {
    color: var(--primary-color);
}

.policy-content {
    padding-top: 1.5rem;
}

.policy-toc {
    position: sticky;
    top: 95px;
    border: 1px solid var(--card-border);
    border-radius: calc(var(--border-radius) + 2px);
    background: var(--white);
}

.policy-toc-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    margin: 0 0 1rem;
}

.policy-toc-title i {
    color: var(--primary-color);
}

.policy-toc-links .list-group-item {
    border: none;
    padding: 0.6rem 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
}

.policy-toc-links .list-group-item:hover {
    color: var(--text);
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.06);
}

.policy-toc-index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.10);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.policy-card {
    border: 1px solid var(--card-border);
    border-radius: calc(var(--border-radius) + 2px);
    background: var(--white);
}

.policy-card-body {
    padding: 2rem;
}

.policy-section {
    scroll-margin-top: 120px;
}

.policy-section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.policy-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.10);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.policy-section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.policy-section-subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.policy-paragraph {
    color: var(--muted);
    line-height: 1.9;
    margin: 0.75rem 0 1rem;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.policy-list li {
    padding: 0.85rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
    line-height: 1.9;
}

.policy-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.26);
    margin: 1.75rem 0;
}

.policy-table {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.policy-table thead th {
    background: rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid var(--card-border);
    color: var(--text);
    font-weight: 900;
}

.policy-table tbody td {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text);
}

[data-theme="dark"] .policy-table thead th {
    background: rgba(255, 255, 255, 0.06);
}

.policy-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.10);
    color: var(--primary-color);
    font-weight: 900;
    white-space: nowrap;
}

.policy-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.policy-contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.08);
}

.policy-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.10);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.policy-contact-label {
    font-weight: 900;
    margin-bottom: 0.1rem;
}

.policy-contact-value {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .policy-toc { position: relative; top: 0; }
}

@media (max-width: 575.98px) {
    .policy-hero-inner { padding: 1.5rem 1.25rem; }
    .policy-hero-title { font-size: 1.75rem; }
    .policy-card-body { padding: 1.25rem; }
}

.table.custom-table td:last-child,
.table.custom-table th:last-child {
    text-align: center;
    white-space: nowrap;
}

.booking-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.image-upload-card {
    border: 1px dashed #ced4da;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.image-upload-preview {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.box {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    inset-inline-start: -40%;
    top: -40%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at top, rgba(59,130,246,0.12), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.box-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.list {
    padding-right: 1.25rem;
    margin: 0;
}

.list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.auth-layout {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.14), transparent 55%),
        radial-gradient(circle at bottom left, rgba(16,185,129,0.12), transparent 55%),
        #f3f4f6;
}

[data-theme="dark"] .auth-layout {
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.4), transparent 55%),
        radial-gradient(circle at bottom left, rgba(16,185,129,0.3), transparent 55%),
        #020617;
}

.auth-card {
    max-width: 480px;
    margin-inline: auto;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-card-subtitle {
    font-size: 0.95rem;
}

.page-main {
    padding: 4rem 0 3rem;
}

@media (max-width: 767.98px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 0.95rem;
    }
    .section {
        padding: 3rem 0;
    }

    .hero-wrap {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .card,
    .box {
        border-radius: 14px;
    }
    .hero-card {
        padding: 1.25rem 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn.lg {
        width: 100%;
    }
}

/* Step Journey */
.steps-journey { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps-journey { grid-template-columns: repeat(3, 1fr); } }

.step-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
    position: relative;
}
.step-card:hover { transform: translateY(-10px); }

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.step-card h4 { margin-bottom: 0.75rem; font-weight: 800; font-size: 1.2rem;}
.step-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6;}

/* Offers Grid */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}
.section-head h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem;}
.section-head p { color: var(--muted); font-size: 1.1rem; margin:0;}

.offers-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offers-grid { grid-template-columns: repeat(3, 1fr); } }

.car-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.3);
}
.car-card-img-wrapper { position: relative; height: 220px; overflow: hidden;}
.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.car-card:hover img { transform: scale(1.05); }

.car-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}
.badge-primary { background: var(--primary-color); }
.badge-success { background: #10b981; }
.badge-dark { background: #0f172a; }

.car-card-body { padding: 1.5rem; }
.car-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.car-title-row h4 { font-weight: 800; font-size: 1.25rem; margin:0; }
.car-price { color: var(--primary-color); font-weight: 800; font-size: 1.2rem; }
.car-price small { color: #64748b; font-size: 0.8rem; font-weight: 600; }

.car-desc { color: #64748b; font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.6; }

.car-specs { display: flex; gap: 1rem; margin-bottom: 1.5rem; color: #475569; font-size: 0.85rem; font-weight: 600;}
.car-specs span { display: inline-flex; align-items: center; gap: 0.4rem; background: #f1f5f9; padding: 0.4rem 0.8rem; border-radius: 10px;}

/* Trust / Why Us */
.trust-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.trust-item { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; background: #fff; border-radius: 20px; border: 1px solid #f1f5f9; transition: all 0.3s;}
.trust-item:hover { border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.05);}
.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.trust-content h5 { margin-bottom: 0.5rem; font-weight: 800; font-size: 1.1rem; color: #0f172a;}
.trust-content p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.6;}

/* FAQ Accordion */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 16px; margin-bottom: 1rem; border: 1px solid #e2e8f0; overflow: hidden; }
.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: right;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.02); }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-item.active .faq-answer { padding-bottom: 1.5rem; max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-color);}

/* Payment Tabs refined */
.payment-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.payment-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-tab-btn i {
    font-size: 1.5rem;
}

.payment-tab-btn.active {
    border-color: var(--primary-color);
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.04);
    color: var(--primary-color);
}

/* Booking Step 3 Refinements */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.payment-method-item {
    cursor: pointer;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.payment-method-item.active {
    border-color: var(--primary-color);
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.04);
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
}

.payment-method-item i {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.payment-method-item .method-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.payment-details-card {
    border: 1px solid #edf2f7 !important;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.bg-light-primary { background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1); }
.bg-light-danger { background: rgba(239, 68, 68, 0.1); }
.bg-light-info { background: rgba(6, 182, 212, 0.1); }

.booking-summary-card {
    background: #f8fafc;
    border: 1px solid #edf2f7 !important;
    position: sticky;
    top: 2rem;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, #e2e8f0, transparent);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    color: #64748b;
}

.document-upload-card {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fbfcfe;
}

.document-upload-card:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.doc-preview-img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling - Enhanced Modern Design */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1025;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.26);
    background-clip: padding-box;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

.sidebar-collapse-toggle {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.25rem 0.55rem;
    border-radius: 12px;
    opacity: 0.9;
}

.sidebar-collapse-toggle:hover {
    opacity: 1;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
    position: relative;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid transparent;
    position: relative;
    font-weight: 500;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 0.75rem;
}

.sidebar-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: right 0.5s ease;
}

.sidebar-menu li a:hover::before {
    right: 100%;
}

.sidebar-menu li a i {
    margin-left: 1rem;
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb, 37, 99, 235), 0.22), rgba(var(--bs-primary-rgb, 37, 99, 235), 0.10));
    color: #fff;
    border-right-color: var(--primary-color);
    transform: translateX(-4px);
}

.sidebar-menu li a:hover i, .sidebar-menu li.active a i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.sidebar.is-collapsed {
    width: 84px;
}

.sidebar.is-collapsed .sidebar-header {
    padding: 1.2rem 0.75rem;
}

.sidebar.is-collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.is-collapsed .sidebar-brand h3,
.sidebar.is-collapsed .sidebar-header p {
    display: none;
}

.sidebar.is-collapsed .sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.sidebar.is-collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 0.95rem 0.5rem;
    border-right-width: 0;
}

.sidebar.is-collapsed .sidebar-menu li a span {
    display: none;
}

.sidebar.is-collapsed .sidebar-menu li a i {
    margin-left: 0;
    width: auto;
    font-size: 1.35rem;
}

.sidebar.is-collapsed .sidebar-footer a,
.sidebar.is-collapsed .sidebar-footer button {
    font-size: 0;
    padding: 0.65rem;
}

.sidebar.is-collapsed .sidebar-footer i {
    font-size: 1rem;
}

.sidebar.is-collapsed .sidebar-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 2rem;
    transition: all var(--transition-speed);
    overflow-y: auto;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
    z-index: 1010;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open {
    overflow: hidden;
}

body.sidebar-open .admin-layout > .position-fixed {
    pointer-events: none;
}

.admin-layout > .position-fixed .btn.btn-link,
.admin-layout > .position-fixed .btn.btn-link.text-dark,
.admin-layout > .position-fixed .btn.btn-link.text-decoration-none {
    color: var(--text) !important;
}

.admin-layout > .position-fixed .btn.btn-link:hover,
.admin-layout > .position-fixed .btn.btn-link:focus {
    color: var(--primary-color) !important;
}

/* Dashboard Cards - Modern Glass Morphism */
.stat-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stat-card .stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover .stat-icon {
    transform: rotate(10deg) scale(1.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card h6 {
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dashboard-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: calc(var(--border-radius) - 6px);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-speed);
}

body[data-theme="dark"] .dashboard-alert-item {
    background: rgba(17, 26, 43, 0.55);
}

.dashboard-alert-item + .dashboard-alert-item {
    margin-top: 0.75rem;
}

.dashboard-alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
}

.dashboard-alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.35rem;
    flex: 0 0 auto;
}

.dashboard-alert-title {
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.dashboard-alert-time {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.admin-main-header {
    transition: all var(--transition-speed);
}

.admin-main-header.is-collapsed {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.admin-main-header.is-collapsed #section-title {
    font-size: 1.05rem;
}

.admin-main-header.is-collapsed p {
    display: none !important;
}

@media (max-width: 991.98px) {
    .admin-main-header #sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .admin-main-header #sidebar-toggle {
        display: none !important;
    }
}

/* Enhanced Header */
header.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Table Design */
.modern-table {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.modern-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.modern-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-table tbody tr:hover {
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.05);
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .modern-table tbody tr:hover {
        transform: none;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

/* Animated Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Notification System */
.notification-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--gradient-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--bs-primary-rgb, 37, 99, 235), 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart Container */
.chart-container {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

#mainChart {
    height: 300px !important;
    max-height: 300px;
}

#pieChart {
    height: 220px !important;
    max-height: 220px;
}

#revenue-chart {
    height: 160px !important;
    max-height: 160px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.chart-options {
    display: flex;
    gap: 0.5rem;
}

.chart-option-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--card-border);
    background: var(--white);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-option-btn:hover,
.chart-option-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Progress Bars */
.progress-modern {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-modern .progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
    0% { width: 0%; }
}

.progress-modern .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Search Box Modern */
.search-modern {
    position: relative;
    max-width: 400px;
}

.search-modern input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-modern input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
}

.search-modern .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .admin-layout > .position-fixed {
        left: 0.75rem !important;
        top: 0.75rem !important;
        gap: 0.75rem !important;
        z-index: 1030;
    }
    
    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    #dashboard-section {
        min-height: auto;
        padding: 1rem;
    }
}

.sidebar-menu li a i {
    margin-left: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.sidebar-menu li a:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Card Hover Effects */
.card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow) !important;
}

.card img {
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.08);
}

/* Table Row Hover */
.custom-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

[data-theme="dark"] .custom-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Button Pulse Effect */
.btn-primary {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 1; }
    20% { transform: scale(25, 25); opacity: 1; }
    100% { opacity: 0; transform: scale(40, 40); }
}

/* Close Button Styles */
.btn-close {
    background: none;
    border: none;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: var(--text);
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background: rgba(220, 38, 38, 0.1);
}

.btn-close:focus {
    opacity: 1;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-close-white {
    color: white;
}

.btn-close-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Close Button Enhancement */
.modal-header .btn-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.modal-header .btn-close:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1) rotate(90deg);
}

/* Toast Close Button Enhancement */
.toast .btn-close {
    font-size: 12px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.toast .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Button Close Icon */
.btn-close::before {
    content: '×';
    font-weight: 300;
    line-height: 1;
}

/* Enhanced Button States */
.btn-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Accessibility Enhancements */
.btn-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    opacity: 1;
}

/* Dark Theme Support */
[data-theme="dark"] .btn-close {
    color: var(--sidebar-text);
}

[data-theme="dark"] .btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-close-white:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Re-adding deleted classes */
.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.custom-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: none;
}

.custom-table thead {
    background-color: rgba(0,0,0,0.02);
}

[data-theme="dark"] .custom-table thead {
    background-color: rgba(255,255,255,0.05);
}

.custom-table th {
    padding: 1.25rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

.custom-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.custom-table th.sortable::after {
    content: '⇅';
    font-size: 0.7rem;
    margin-right: 0.35rem;
    opacity: 0.4;
}

.custom-table th.sortable.sorted-asc::after {
    content: '↑';
    opacity: 0.9;
}

.custom-table th.sortable.sorted-desc::after {
    content: '↓';
    opacity: 0.9;
}

.custom-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-layout .card.admin-card:hover {
    transform: none;
}

#users-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: rgba(0,0,0,0.02);
}

[data-theme="dark"] #users-table thead th {
    background-color: rgba(255,255,255,0.05);
}

#users-table tbody tr.table-active {
    background-color: rgba(13, 110, 253, 0.06);
}

[data-theme="dark"] #users-table tbody tr.table-active {
    background-color: rgba(13, 110, 253, 0.14);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148,163,184,0.6);
    background-color: var(--white);
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    border-color: rgba(255,255,255,0.2);
    background-color: #050608;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.16);
}

/* Booking Steps */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

[data-theme="dark"] .step-progress::before {
    background: #343a40;
}

.step-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: bold;
    position: relative;
    transition: all 0.3s;
}

[data-theme="dark"] .step-item {
    border-color: #343a40;
}

.step-item::after {
    content: attr(title);
    position: absolute;
    top: 55px;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.step-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.15);
}

.step-item.active::after {
    color: var(--primary-color);
}

.step-item.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

/* Document Preview */
.document-upload-card {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.document-upload-card:hover {
    border-color: var(--primary-color);
}

.doc-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#offer-modal .modal-dialog {
    max-width: 720px;
}

#offer-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

#offer-modal .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb, 37, 99, 235), 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#offer-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

#offer-modal .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f8fafc 100%);
}

#offer-modal .modal-body form {
    animation: fadeIn 0.35s ease-out;
}

#offer-modal .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

#offer-modal .btn-sm.btn-outline-secondary {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    color: #4b5563;
    border-color: rgba(148, 163, 184, 0.7);
    background-color: rgba(248, 250, 252, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

#offer-modal .btn-sm.btn-outline-secondary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.3);
}

#offer-modal .form-text.small {
    color: #6b7280;
}

#offer-modal .image-upload-card {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] #offer-modal .modal-content {
    background: #020617;
}

[data-theme="dark"] #offer-modal .modal-header {
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.3), transparent 55%),
        linear-gradient(180deg, #020617 0%, #020617 100%);
}

[data-theme="dark"] #offer-modal .modal-body {
    background: radial-gradient(circle at top left, rgba(var(--bs-primary-rgb, 37, 99, 235), 0.16), transparent 55%);
}

[data-theme="dark"] #offer-modal .btn-sm.btn-outline-secondary {
    background-color: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

/* Follow-up Section */
.follow-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.follow-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.follow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.1);
    border-color: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.2);
}

.follow-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.3);
    transition: transform 0.4s ease;
}

.follow-step:hover .follow-icon {
    transform: scale(1.1) rotate(5deg);
}

.follow-step h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.follow-step p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Cars Section Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.car-card {
    transition: all var(--transition-speed);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-image {
    transition: transform 0.3s ease;
}

.hover-lift {
    transition: all var(--transition-speed);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.search-modern {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
}

.search-modern:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-modern input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding-right: 2rem;
    color: var(--text);
}

.search-modern input::placeholder {
    color: var(--muted);
}

.btn-modern {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 2px dashed var(--glass-border);
}

.progress-modern {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-modern .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent), var(--primary-color));
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-speed);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-gradient-to-top {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* List View Styles */
.list-group .car-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    margin-bottom: 0;
    border-radius: 0;
}

.list-group .car-item:last-child {
    border-bottom: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .search-modern {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Dropdown Styles */
.dropdown-menu {
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all var(--transition-speed);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-content {
        max-height: calc(100vh - 1.5rem);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-body {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.booking-copy {
    cursor: pointer;
    font-weight: 700;
}

.booking-copy:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.booking-car-thumb {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.booking-timeline {
    display: grid;
    gap: 0.9rem;
}

.booking-timeline-step {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0.75rem;
    align-items: start;
    position: relative;
}

.booking-timeline-step::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 18px;
    bottom: -18px;
    width: 2px;
    background: rgba(148, 163, 184, 0.35);
}

.booking-timeline-step:last-child::before {
    display: none;
}

.booking-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
    margin-top: 2px;
}

.booking-timeline-title {
    font-weight: 800;
    color: var(--text);
}

.booking-timeline-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.booking-timeline-step.completed .booking-timeline-dot {
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.85);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.16);
}

.booking-timeline-step.current .booking-timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb, 37, 99, 235), 0.22);
}

.booking-timeline-step.completed::before,
.booking-timeline-step.current::before {
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.28);
}

@media (max-width: 575.98px) {
    .booking-car-thumb {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}

/* Smooth Scrolling & Section Transitions */
html {
    scroll-behavior: smooth;
}

/* Custom Selection Color */
::selection {
    background: rgba(var(--bs-primary-rgb, 37, 99, 235), 0.2);
    color: var(--primary-color);
}

/* Glassmorphism for floating elements */
.glass-effect {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Responsive Padding Fixes */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .admin-layout {
        overflow-x: hidden;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .glass-card {
        padding: 0.6rem !important;
    }
}

@media (max-width: 575.98px) {
    .step-progress {
        margin-bottom: 2.5rem;
    }
    
    .step-item::after {
        display: none;
    }
    
    .admin-layout {
        overflow-x: hidden;
    }
}

/* Sticky booking bar for mobile */
@media (max-width: 767.98px) {
    .sticky-booking-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        color: #f9fafb;
        padding: 0.6rem 1rem;
        z-index: 50;
        box-shadow: 0 -4px 16px rgba(15,23,42,0.35);
    }
    .sticky-booking-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        max-width: 1140px;
        margin-inline: auto;
    }
    .sticky-booking-bar span {
        font-size: 0.85rem;
        color: #e5e7eb;
    }
    .sticky-booking-bar .btn {
        flex-shrink: 0;
    }
    body {
        padding-bottom: 3.2rem;
    }
}
