/* ============================================================
   ZURI MOTORS - Premium Automotive Marketplace Styles
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;
    --dark-500: #64748b;
    --dark-400: #94a3b8;
    --dark-300: #cbd5e1;
    --dark-200: #e2e8f0;
    --dark-100: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--dark-800);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary-light);
    color: var(--dark);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-700);
    border-radius: 10px;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mega Dropdown */
.nav-dropdown-wrapper { position: relative; }

.nav-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 800px;
    background: white;
    border: 1px solid var(--dark-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
    z-index: 50;
}

.nav-dropdown-wrapper:hover .nav-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Nav */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-600);
    border-radius: 10px;
    transition: all var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mobile Accordion */
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.mobile-accordion.open .mobile-accordion-content {
    max-height: 500px;
}

.mobile-accordion.open button i:last-child {
    transform: rotate(180deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Search Form */
.hero-search-form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
}

.hero-search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--dark-100);
    padding: 4px;
    border-radius: 10px;
}

.hero-search-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--dark-500);
}

.hero-search-tab.active {
    background: white;
    color: var(--dark);
    box-shadow: var(--shadow);
}

/* ============================================================
   CAR CARDS
   ============================================================ */
.car-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-200);
    overflow: hidden;
    transition: all 300ms ease;
    position: relative;
}

.car-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(22,163,74,0.12), 0 4px 10px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.car-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.car-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 3;
}

.car-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-used { background: rgba(15,23,42,0.8); color: white; backdrop-filter: blur(4px); }
.badge-new { background: #16a34a; color: white; }
.badge-certified { background: #2563eb; color: white; }
.badge-featured { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.badge-offer { background: #dc2626; color: white; }
.badge-hot { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; animation: pulse-badge 2s infinite; }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Price Tag */
.car-price-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15,23,42,0.88);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* Card Actions */
.car-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 300ms ease;
    z-index: 3;
}

.car-card:hover .car-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.car-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--dark-600);
}

.car-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.car-action-btn[data-fav="1"] {
    color: #dc2626;
    background: rgba(255,255,255,0.95);
}

/* Image Count */
.car-image-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

/* Card Body */
.car-card-body {
    padding: 16px;
}

.car-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.car-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.car-card-title a:hover { color: var(--primary); }

.car-card-excerpt {
    font-size: 12px;
    color: var(--dark-500);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--dark-400);
    margin-bottom: 12px;
}

/* Spec Pills */
.car-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--dark-200);
}

.car-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--dark-500);
    background: var(--dark-100);
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: capitalize;
}

/* ============================================================
   CATEGORY CARDS (Circular)
   ============================================================ */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 300ms ease;
    padding: 16px;
}

.category-card:hover { transform: translateY(-6px); }

.category-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--dark-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    border: 3px solid transparent;
    overflow: hidden;
}

.category-card:hover .category-icon {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 8px 24px rgba(22,163,74,0.2);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-icon i {
    width: 32px;
    height: 32px;
    color: var(--dark-500);
    transition: color var(--transition);
}

.category-card:hover .category-icon i { color: var(--primary); }

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-700);
    text-align: center;
}

.category-count {
    font-size: 11px;
    color: var(--dark-400);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
    margin-bottom: 32px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 15px;
    color: var(--dark-500);
    margin-top: 8px;
    max-width: 600px;
}

/* ============================================================
   BRAND LOGOS
   ============================================================ */
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--dark-200);
    border-radius: var(--radius);
    transition: all 300ms ease;
    text-decoration: none;
    min-height: 100px;
}

.brand-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-card img {
    max-height: 40px;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 300ms ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-500);
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 100%);
    z-index: 1;
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 500px;
}

/* ============================================================
   CAR DETAIL PAGE
   ============================================================ */

/* Gallery */
.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--dark-100);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 5;
    color: var(--dark-700);
}

.gallery-nav:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

/* Spec Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--dark-100);
    border-radius: 10px;
}

.spec-item .spec-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.spec-item .spec-label {
    font-size: 11px;
    color: var(--dark-400);
    font-weight: 500;
}

.spec-item .spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-transform: capitalize;
}

/* Feature Pills */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--dark-100);
    border-radius: 8px;
    font-size: 13px;
    color: var(--dark-600);
    font-weight: 500;
    transition: all var(--transition);
}

.feature-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.feature-pill i { color: var(--primary); }

/* Financing Card */
.finance-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-800) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: white;
}

/* Contact Card */
.contact-card {
    background: white;
    border: 1px solid var(--dark-200);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.contact-btn-call {
    background: var(--primary);
    color: white;
}
.contact-btn-call:hover { background: var(--primary-dark); }

.contact-btn-whatsapp {
    background: #25D366;
    color: white;
}
.contact-btn-whatsapp:hover { background: #20BD5A; }

.contact-btn-outline {
    background: white;
    color: var(--dark-700);
    border: 2px solid var(--dark-200);
}
.contact-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dark-200);
}

.filter-group:last-child { border-bottom: none; }

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--dark-200);
    border-radius: 10px;
    font-size: 13px;
    color: var(--dark-700);
    background: white;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3e%3cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select:focus { border-color: var(--primary); }

.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--dark-200);
    border-radius: 10px;
    font-size: 13px;
    color: var(--dark-700);
    background: white;
    outline: none;
    transition: border-color var(--transition);
}

.filter-input:focus { border-color: var(--primary); }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--dark-200);
}

.compare-table th {
    background: var(--dark-100);
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    width: 160px;
}

.compare-table td {
    color: var(--dark-600);
}

.compare-table tr:hover td { background: rgba(22,163,74,0.03); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-label .required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--dark-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--dark-700);
    background: white;
    outline: none;
    transition: all var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.form-control::placeholder { color: var(--dark-400); }

textarea.form-control { min-height: 100px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3e%3cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox / Radio Custom */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-600);
    cursor: pointer;
    padding: 4px 0;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(22,163,74,0.3); }

.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-800); }

.btn-outline { background: white; color: var(--dark-700); border: 2px solid var(--dark-200); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn-ghost { background: transparent; color: var(--dark-600); }
.btn-ghost:hover { background: var(--dark-100); color: var(--dark); }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
}

.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-icon.btn-lg { width: 44px; height: 44px; }

/* ============================================================
   ADMIN / DASHBOARD
   ============================================================ */

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--dark);
    color: white;
    overflow-y: auto;
    z-index: 40;
    transition: transform 300ms ease;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-700) transparent;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.admin-sidebar-link.active {
    color: white;
    background: rgba(22,163,74,0.15);
    border-left-color: var(--primary);
}

.admin-sidebar-link .badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 20px 20px 8px;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--dark-100);
}

.admin-topbar {
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--dark-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-content {
    padding: 24px;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--dark-200);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--dark-500);
    margin-top: 4px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dark-500);
    background: var(--dark-100);
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--dark-200);
}

.data-table th:first-child { border-radius: 10px 0 0 0; }
.data-table th:last-child { border-radius: 0 10px 0 0; }

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--dark-600);
    border-bottom: 1px solid var(--dark-200);
    background: white;
    vertical-align: middle;
}

.data-table tr:hover td { background: rgba(22,163,74,0.02); }

.data-table .actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
    background: white;
    border: 1px solid var(--dark-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 300ms ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light);
}

/* ============================================================
   LIGHTBOX / MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 300ms ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Lightbox specific */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--dark-100) 25%, var(--dark-200) 50%, var(--dark-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-400); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    
    .nav-mega-dropdown { width: calc(100vw - 32px); }

    .section-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 500px; }
    .section-title { font-size: 24px; }
    
    .gallery-thumbs { gap: 6px; }
    .gallery-thumb { width: 64px; height: 48px; }
    
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    
    #chat-window { width: calc(100vw - 32px); left: -8px; }
}

@media (max-width: 480px) {
    .car-price-tag { font-size: 13px; padding: 5px 10px; }
    .car-badge { font-size: 10px; padding: 3px 7px; }
    .hero-search-form { padding: 16px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .topbar, header, footer, #whatsapp-float, #chat-widget, #back-to-top,
    .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    body { background: white; }
    .car-card { break-inside: avoid; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up { animation: fadeInUp 600ms ease forwards; }
.animate-fade-in { animation: fadeIn 400ms ease forwards; }
.animate-slide-in { animation: slideInRight 400ms ease forwards; }

.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   INVOICE PRINT STYLES
   ============================================================ */
.invoice-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--dark-200);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.invoice-table th {
    background: var(--dark-100);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid var(--dark-200);
}

.invoice-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--dark-200);
}

.invoice-totals {
    width: 300px;
    margin-left: auto;
}

.invoice-totals tr td {
    padding: 8px 0;
    font-size: 14px;
}

.invoice-totals tr.total td {
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--dark);
    padding-top: 12px;
}