/* ============================================================
   Syazaf Car Rental - Main CSS (Mobile-First, Android Style)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1B4FED;
    --primary-dark: #1240CC;
    --primary-light: #EEF3FF;
    --secondary: #1E293B;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --bg-light: #F8FAFF;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --shadow: 0 4px 24px rgba(27,79,237,0.08);
    --shadow-lg: 0 8px 40px rgba(27,79,237,0.15);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    /* Mobile viewport */
    --max-mobile: 430px;
    --bottom-nav-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #EEF3FF;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   Mobile Wrapper
   ============================================================ */
.app-wrapper {
    max-width: var(--max-mobile);
    margin: 0 auto;
    background: var(--bg-light);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

.app-screen {
    padding-bottom: calc(var(--bottom-nav-h) + 10px);
}

/* ============================================================
   Top Navigation Bar
   ============================================================ */
.top-bar {
    background: var(--primary);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.top-bar.white {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.top-bar.white .top-bar-title { color: var(--text-primary); }
.top-bar.white .btn-icon { color: var(--text-secondary); }

.top-bar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.top-bar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: scale(1.05);
}

.btn-icon.dark {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================================
   Bottom Navigation
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-mobile);
    height: var(--bottom-nav-h);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.nav-item.active i,
.nav-item.active span {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-center-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-center-btn a {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27,79,237,0.4);
    transform: translateY(-10px);
    transition: all 0.3s;
}

.nav-center-btn a i {
    color: #fff;
    font-size: 1.3rem;
}

.nav-indicator {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
}

.nav-item.active .nav-indicator {
    opacity: 1;
}

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 60%, #1E40AF 100%);
    padding: 20px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-search {
    background: #fff;
    border-radius: var(--radius);
    padding: 4px 4px 4px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

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

.hero-search i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-search .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-search .btn-search:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-content {
    padding: 20px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   Category Filter Pills
   ============================================================ */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(27,79,237,0.3);
}

/* ============================================================
   Car Cards
   ============================================================ */
.cars-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cars-scroll::-webkit-scrollbar { display: none; }

.car-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

/* Horizontal card (for popular section) */
.car-card.horizontal {
    min-width: 200px;
    flex-shrink: 0;
}

.car-card.horizontal .car-card-img {
    height: 130px;
}

/* Vertical card (for list page) */
.car-card.vertical {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: var(--radius);
}

.car-card.vertical .car-card-img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.car-card.vertical .car-card-body {
    flex: 1;
    padding: 12px;
}

.car-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.car-card:hover .car-card-img {
    transform: scale(1.03);
}

.car-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.car-card-body {
    padding: 14px;
}

.car-card-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.car-card-price span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.car-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.car-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.car-meta-item i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: #EF4444;
    transform: scale(1.1);
}

.car-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.car-rating .reviews {
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================================
   Cards Grid (for list page)
   ============================================================ */
.cars-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary-app {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(27,79,237,0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary-app::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.btn-primary-app:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,79,237,0.45);
    color: #fff;
}

.btn-outline-app {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-app:hover {
    background: var(--primary);
    color: #fff;
}

.btn-secondary-app {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Form Controls
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-app {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all 0.2s;
    outline: none;
}

.form-control-app:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,79,237,0.12);
}

.form-control-app::placeholder {
    color: var(--text-muted);
}

.input-group-app {
    position: relative;
}

.input-group-app .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-group-app .form-control-app {
    padding-left: 42px;
}

.input-group-app .input-action {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

/* ============================================================
   Info Cards
   ============================================================ */
.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.info-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-title i {
    color: var(--primary);
    font-size: 1rem;
}

/* ============================================================
   Spec Row
   ============================================================ */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.spec-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon i {
    color: var(--primary);
    font-size: 0.9rem;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.spec-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
    display: block;
}

/* ============================================================
   Booking Steps
   ============================================================ */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.step-num.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(27,79,237,0.4);
}

.step-num.done {
    background: var(--success);
    color: #fff;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 40px;
    margin: 0 6px;
    transition: all 0.3s;
}

.step-line.done {
    background: var(--success);
}

/* ============================================================
   Summary Table
   ============================================================ */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
}

.summary-total {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 800;
}

/* ============================================================
   Payment Methods
   ============================================================ */
.payment-option {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.payment-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-logo {
    width: 48px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.payment-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

/* ============================================================
   Booking Status Badges
   ============================================================ */
.badge-status {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.badge-pending {
    background: #FEF3C7;
    color: #D97706;
}

.badge-paid {
    background: #D1FAE5;
    color: #065F46;
}

.badge-completed {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-cancelled {
    background: #FEE2E2;
    color: #B91C1C;
}

/* ============================================================
   Profile
   ============================================================ */
.profile-header {
    background: linear-gradient(135deg, var(--primary), #2563EB);
    padding: 30px 20px 50px;
    text-align: center;
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.4);
    object-fit: cover;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.2);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    margin: -30px 20px 14px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    gap: 14px;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    padding-left: 4px;
    color: var(--primary);
}

.profile-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.profile-menu-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.profile-menu-icon.danger {
    background: #FEE2E2;
    color: var(--danger);
}

.profile-menu-text {
    flex: 1;
}

.profile-menu-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.profile-menu-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   Alert Flashes
   ============================================================ */
.flash-alert {
    margin: 0 20px 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.flash-info {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.auth-hero {
    background: linear-gradient(160deg, var(--primary) 0%, #2563EB 100%);
    padding: 50px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.auth-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.auth-logo-wrap {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #fff;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.auth-hero-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.78);
    position: relative;
    z-index: 1;
}

.auth-form-wrap {
    flex: 1;
    padding: 30px 24px;
    background: #fff;
    border-radius: 28px 28px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.auth-form-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-form-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-link {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================
   Admin Dashboard
   ============================================================ */
.admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--secondary);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0,0,0,0.25);
    max-width: 280px;
}

.admin-sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, var(--primary), #2563EB);
}

.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.sidebar-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.sidebar-menu {
    padding: 16px 12px;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 8px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(27,79,237,0.15);
    color: #60A5FA;
}

.sidebar-item.active {
    color: var(--primary);
    font-weight: 700;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-item .badge-count {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ============================================================
   Stats Cards
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 0 0 0 60px;
    opacity: 0.1;
}

.stat-card.blue::before { background: var(--primary); }
.stat-card.green::before { background: var(--success); }
.stat-card.amber::before { background: var(--accent); }
.stat-card.purple::before { background: #8B5CF6; }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #D1FAE5; color: var(--success); }
.stat-icon.amber { background: #FEF3C7; color: var(--accent); }
.stat-icon.purple { background: #EDE9FE; color: #8B5CF6; }

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   Table Styles
   ============================================================ */
.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.app-table th {
    background: var(--bg-light);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.app-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-primary);
    font-weight: 500;
}

.app-table tr:last-child td {
    border-bottom: none;
}

.app-table tr:hover td {
    background: var(--bg-light);
}

/* ============================================================
   Splash Screen
   ============================================================ */
.splash-screen {
    height: 100vh;
    background: linear-gradient(160deg, var(--primary) 0%, #1E40AF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.splash-screen::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.splash-logo {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
}

.splash-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
    font-weight: 400;
}

.splash-loader {
    margin-top: 60px;
    width: 48px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.splash-loader::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    to { left: 0; }
}

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

/* ============================================================
   Car Detail Page
   ============================================================ */
.car-detail-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.car-detail-hero {
    position: relative;
}

.car-detail-header {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 40px 20px 20px;
}

/* ============================================================
   Amenities Tag
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

/* ============================================================
   Filter Panel
   ============================================================ */
.filter-panel {
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: fixed;
    bottom: -700px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-mobile);
    z-index: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.15);
    padding: 0 20px 30px;
}

.filter-panel.open {
    bottom: 0;
}

.filter-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 20px;
}

/* ============================================================
   Date Picker
   ============================================================ */
.date-input-wrap {
    position: relative;
}

.date-input-wrap .form-control-app {
    cursor: pointer;
}

.date-display {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.date-display i {
    color: var(--primary);
    font-size: 1rem;
}

.date-display-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================
   Floating Price Bar
   ============================================================ */
.price-bar {
    position: fixed;
    bottom: var(--bottom-nav-h);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-mobile);
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.price-bar .price-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-bar .price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   Animations
   ============================================================ */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.3s ease forwards;
}

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

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* ============================================================
   Skeletons (Loading Placeholders)
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-primary-color { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.82rem; }
.w-100 { width: 100%; }

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

/* Scrollbar hidden globally */
.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { scrollbar-width: none; }
