/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --primary-glow: #dc2626;
    --secondary-color: #1f2937;
    --accent-color: #ef4444;
    --success-color: #10b981;
    --dark-bg: #f5f5f5;
    --light-bg: #ffffff;
    --dark-surface: #111827;
    --dark-card: #1f2937;
    --dark-border: #374151;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
    --shadow-lg: 0 8px 40px rgba(220, 38, 38, 0.3);
    --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.5);
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #111827 50%, #1f2937 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(185, 28, 28, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(31, 41, 55, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    word-wrap: break-word; /* Break long words */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    color: #ffffff;
}

.main-header:hover {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #1a1310 0%, #0f0c0a 60%, #050403 100%);
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(26, 19, 16, 0.6);
    transition: all 0.4s ease;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, rgba(139, 90, 60, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 4;
    pointer-events: none;
}

.logo-slash {
    position: absolute;
    width: 2px;
    height: 78px;
    background: #ffffff;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -39px;
    z-index: 1;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.logo-letter-v {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Times New Roman', Georgia, serif;
    top: 36%;
    left: 43%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.logo-letter-a {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Times New Roman', Georgia, serif;
    bottom: 28%;
    right: 37%;
    transform: translate(50%, 50%);
    z-index: 2;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.logo-text-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.logo a:hover .logo-circle {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(139, 90, 60, 0.7), 0 0 20px rgba(205, 133, 63, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at top left, #2a1f18 0%, #1a1310 60%, #0a0807 100%);
}

.logo a:hover .logo-circle::before {
    opacity: 1;
}

.logo a:hover .logo-circle::after {
    left: 100%;
}

.logo a:hover .logo-text-brand {
    text-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
}

.logo a:hover .logo-text-brand {
    text-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
}

.logo-text {
    display: inline-block;
}

.logo-vasteras {
    color: #ffffff !important;
}

.logo-auto {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h3 .logo-vasteras,
.footer-bottom .logo-vasteras {
    color: #ffffff !important;
}

.footer-section h3 .logo-auto,
.footer-bottom .logo-auto {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: pulse 2s ease-in-out infinite;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

.main-nav a:not(.ai-nav-link)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-nav a:not(.ai-nav-link):hover {
    color: #ffffff;
}

.main-nav a:not(.ai-nav-link):hover::after {
    width: 100%;
}

.main-nav a.partner-nav-link {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-nav a.partner-nav-link:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    border-color: #dc2626;
}

.main-nav a.partner-nav-link::after {
    display: none;
}

/* Email Save Section (BilMatch) */
.email-save-section {
    margin: 2rem 0 3rem;
}

.email-save-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
}

.email-save-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.email-save-content {
    flex: 1;
    color: white;
}

.email-save-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.email-save-content p {
    color: #d1d5db;
    font-size: 1rem;
}

.email-save-form {
    flex: 1;
}

.email-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.email-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--dark-surface);
    color: white;
}

.email-input-group input:focus {
    outline: none;
    border-color: #dc2626;
}

.btn-email-save {
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-email-save:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.email-privacy {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .email-save-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .email-input-group {
        flex-direction: column;
    }
    
    .btn-email-save {
        width: 100%;
        justify-content: center;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: rotate(90deg);
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
    position: relative;
    z-index: 100;
}

.lang-select {
    background: var(--dark-surface);
    color: #ffffff;
    border: 2px solid var(--dark-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 101;
    min-width: 120px;
}

.lang-select:hover {
    border: 2px solid var(--primary-color);
    background: var(--dark-card);
    outline: 1px solid rgba(220, 38, 38, 0.4);
    outline-offset: 1px;
}

.lang-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: var(--dark-card);
}

.lang-select option {
    background: var(--dark-surface);
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

.lang-select option:hover {
    background: var(--dark-card);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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 ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    border: 2px solid rgba(220, 38, 38, 0.8);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(31, 41, 55, 0.4);
    color: #ffffff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: rgba(31, 41, 55, 0.4);
    transform: translateY(-2px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-dark);
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove solid background when video is present */
.hero.has-video {
    background: transparent !important;
}

.hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    background: transparent !important;
}

/* Force video visibility */
#hero-video-element {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 15%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.65) 70%,
        rgba(0, 0, 0, 0.85) 85%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(185, 28, 28, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(31, 41, 55, 0.05) 0%, transparent 50%);
    animation: gradientShift 12s ease infinite;
    z-index: 2;
    opacity: 0.4;
    pointer-events: none;
}

/* When video is present, reduce gradient overlays */
.hero.has-video::before {
    opacity: 0.2;
}

.hero.has-video .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0px;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 .logo-vasteras {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-content h1 .logo-auto {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #d1d5db;
    animation: fadeInUp 1s ease;
}

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

/* Featured Cars Section */
.featured-cars {
    padding: 6rem 0;
    position: relative;
    background: var(--dark-bg);
}

.featured-cars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-cars h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.featured-cars h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Optimized Featured Cards Grid */
.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1400px) {
    .featured-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.featured-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    color: #ffffff;
}

.featured-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
}

.featured-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--dark-surface);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.1);
}

/* Sold car overlay - darken image */
.featured-card-image.sold-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}

.featured-card-image.sold-overlay img {
    filter: brightness(0.4);
    opacity: 0.7;
}

/* Sold badge overlay - Green with success effect */
.sold-overlay-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    animation: soldSuccessPulse 2s ease-in-out infinite;
}

.sold-overlay-badge i {
    font-size: 1.2rem;
    animation: soldCheckmark 2s ease-in-out infinite;
}

@keyframes soldSuccessPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 6px 30px rgba(16, 185, 129, 0.9);
    }
}

@keyframes soldCheckmark {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.featured-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3.5rem;
    background: var(--gradient-dark);
}

.featured-card-body {
    padding: 1.5rem;
}

.featured-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.featured-card-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #d1d5db;
    flex-wrap: wrap;
}

.featured-card-specs span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-card-specs i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.featured-card-price {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.car-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #ffffff;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.car-card:hover::before {
    transform: scaleX(1);
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    border: 2px solid var(--primary-color);
    outline: 1px solid rgba(220, 38, 38, 0.5);
    outline-offset: 2px;
}

.car-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--dark-surface);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 4rem;
    background: var(--gradient-dark);
}

.no-image.large {
    height: 500px;
    font-size: 6rem;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.car-info {
    padding: 2rem;
}

.car-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 700;
}

.car-year {
    color: #d1d5db;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.car-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #d1d5db;
}

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

.car-specs i {
    color: var(--primary-color);
}

.car-price {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.car-price-large {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    margin: 1.5rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

/* Why Us Section */
.why-us {
    background: var(--dark-surface);
    padding: 3rem 0 0 0;
    position: relative;
    border-top: 1px solid var(--dark-border);
    border-bottom: none;
    margin-bottom: 0;
    color: #ffffff;
}

.why-us h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
    flex-direction: row;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--dark-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    flex-shrink: 0;
    color: #ffffff;
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature:hover::before {
    opacity: 1;
}

.feature:hover::after {
    opacity: 1;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    border: 2px solid var(--primary-color);
    outline: 1px solid rgba(220, 38, 38, 0.3);
    outline-offset: 1px;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.feature i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.5));
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.7));
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.feature:hover h3 {
    color: #ffffff;
}

.feature p {
    color: #d1d5db;
    line-height: 1.5;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Cars Page */
.cars-page {
    padding: 3rem 0 6rem;
}

.cars-page h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Selection Banner */
.premium-selection-banner {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.premium-badge i {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

.premium-info {
    flex: 1;
}

.premium-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: white;
    font-weight: 700;
}

.premium-info p {
    color: #d1d5db;
    font-size: 0.95rem;
}

.premium-blocket-btn {
    background: white;
    color: #dc2626;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.premium-blocket-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

@media (max-width: 768px) {
    .premium-selection-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .premium-blocket-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Partner Site Banner */
.partner-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    gap: 2rem;
    transition: all 0.3s ease;
}

.partner-banner:hover {
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.partner-banner-content {
    flex: 1;
}

.partner-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.partner-banner p {
    opacity: 0.95;
    font-size: 1rem;
    color: white;
}

.partner-banner-btn {
    background: white;
    color: #dc2626;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.partner-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .partner-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .partner-banner h3 {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .partner-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

.filters-panel {
    background: var(--dark-card);
    padding: 0;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid var(--dark-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    color: #ffffff;
}

.filters-panel:hover {
    border-color: rgba(220, 38, 38, 0.3);
}

.filters-panel.expanded {
    border-color: var(--primary-color);
}

.filters-toggle {
    width: 100%;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background: rgba(220, 38, 38, 0.05);
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-left i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.toggle-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
    transition: all 0.3s ease;
}

.filters-panel.expanded .toggle-hint {
    opacity: 0;
}

#filtersToggleIcon {
    font-size: 1rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.filters-panel.expanded #filtersToggleIcon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Collapsible Wrapper */
.filters-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.filters-panel.expanded .filters-form-wrapper {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.filters-toggle i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
    padding: 0 2.5rem 2.5rem 2.5rem;
    transition: all 0.3s ease;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--dark-surface);
    color: #ffffff;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.filter-group input::placeholder {
    color: #9ca3af;
}

/* Extended Filters Styles */
.filters-form.extended {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 2rem 2rem 2rem;
}

/* Quick Filter Chips */
.quick-filter-chips {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.quick-filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quick-filter-group:last-child {
    margin-bottom: 0;
}

.quick-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

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

.filter-chip {
    padding: 0.5rem 1rem;
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.filter-chip i {
    font-size: 0.85rem;
}

/* Filter Clear Buttons */
.filter-group label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-clear-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    color: #ef4444;
    font-size: 0.7rem;
}

.filter-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.1);
}

.filter-section {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--dark-border);
    color: #ffffff;
}

.filter-section-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-title i {
    color: var(--primary-color);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.filter-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group-range .range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-range .range-inputs input {
    flex: 1;
    min-width: 0;
}

.range-separator {
    color: #9ca3af;
    font-weight: 500;
}

/* Range Presets */
.range-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.range-preset-btn {
    padding: 0.4rem 0.8rem;
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 6px;
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.range-preset-btn:hover {
    border-color: var(--primary-color);
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.range-preset-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.range-hint {
    margin-top: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
}

.range-hint i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.filter-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--dark-border);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons .btn {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-border);
    background: var(--dark-surface);
}

.filter-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(220, 38, 38, 0.05);
}

.filter-checkbox.checked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--dark-card);
}

.filter-checkbox.checked .checkbox-custom {
    background: #10b981;
    border-color: #10b981;
}

.filter-checkbox.checked .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: #d1d5db;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-checkbox.checked .checkbox-label {
    color: #10b981;
}

.checkbox-label i {
    font-size: 0.9rem;
}

/* ==========================================
   Color Select Dropdown (Admin)
   ========================================== */

.color-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-select {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--dark-surface);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-select:hover {
    border-color: var(--primary-color);
}

.color-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 3px solid var(--dark-border);
    background: linear-gradient(135deg, #333 25%, #555 25%, #555 50%, #333 50%, #333 75%, #555 75%);
    background-size: 10px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-preview.has-color {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Color option styling */
.color-select option {
    padding: 10px;
    background: var(--dark-surface);
    color: #ffffff;
}

/* ==========================================
   Admin Dashboard Stats
   ========================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--dark-border);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(220, 38, 38, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Card Colors */
.stat-primary::before { background: var(--primary-color); }
.stat-primary .stat-icon {
    background: rgba(220, 38, 38, 0.15);
    color: var(--primary-color);
}

.stat-success::before { background: #10b981; }
.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stat-warning::before { background: #f59e0b; }
.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.stat-info::before { background: #3b82f6; }
.stat-info .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-discount::before { background: #8b5cf6; }
.stat-discount .stat-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* Value Stats Row */
.dashboard-value-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 2rem;
    padding: 0;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
}

.value-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-right: 1px solid var(--dark-border);
}

.value-stat:last-child {
    border-right: none;
}

.value-stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.9;
    flex-shrink: 0;
}

.value-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.value-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.2;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-value-stats {
        grid-template-columns: 1fr;
    }
    
    .value-stat {
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
        padding: 15px 10px;
    }
    
    .value-stat:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* ==========================================
   Admin Toolbar & Quick Search
   ========================================== */

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--dark-card);
    border-radius: 10px;
    border: 1px solid var(--dark-border);
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-right label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.toolbar-right select {
    padding: 0.625rem 1rem;
    background: var(--dark-surface);
    color: #ffffff;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.toolbar-right select:hover {
    border-color: var(--primary-color);
    background: rgba(55, 65, 81, 0.8);
}

.toolbar-right select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Quick Search Input */
.quick-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.quick-search i.fa-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.quick-search input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.quick-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: rgba(55, 65, 81, 0.8);
}

.quick-search input:focus + .fa-search,
.quick-search:hover i.fa-search {
    color: var(--primary-color);
}

.quick-search input::placeholder {
    color: #9ca3af;
}

.quick-search input.no-results {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-border);
    border: none;
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: var(--primary-color);
    color: white;
}

.results-count {
    color: #9ca3af;
    font-size: 0.875rem;
    white-space: nowrap;
    margin: 0;
    font-weight: 500;
}

.results-count span {
    color: #ffffff;
    font-weight: 700;
}

/* Responsive Toolbar */
@media (max-width: 900px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-search {
        max-width: none;
    }
    
    .toolbar-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .results-count {
        text-align: center;
    }
}

/* ==========================================
   Quick Status Toggle Buttons
   ========================================== */

.status-toggles {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 2px solid var(--dark-border);
    background: var(--dark-surface);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.status-toggle:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
    transform: translateY(-2px);
}

.status-toggle i {
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

/* Sold Status Active */
.status-toggle.active.sold {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

.status-toggle.active.sold:hover {
    background: rgba(245, 158, 11, 0.25);
}

/* Featured Status Active */
.status-toggle.active.featured {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #3b82f6;
}

.status-toggle.active.featured:hover {
    background: rgba(59, 130, 246, 0.25);
}

.status-toggle.active.featured i {
    animation: starPulse 1s ease-in-out;
}

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

/* Loading State */
.status-toggle.loading {
    pointer-events: none;
    opacity: 0.6;
}

.status-toggle.loading i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Featured-only toggle (star only, no text) */
.status-toggle:not(.sold) {
    padding: 8px 12px;
}

/* Tooltip on hover */
.status-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
    z-index: 100;
}

.status-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.toast-notification.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast-notification i {
    font-size: 1.1rem;
}

/* ==========================================
   Admin Image Preview Grid
   ========================================== */

.image-count {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.9rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.image-preview-card {
    background: var(--dark-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--dark-border);
    transition: all 0.3s ease;
    position: relative;
    cursor: grab;
}

.image-preview-card:active {
    cursor: grabbing;
}

.image-preview-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Drag Handle */
.drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    cursor: grab;
    transition: all 0.2s ease;
}

.drag-handle:hover {
    background: var(--primary-color);
}

.drag-handle:active {
    cursor: grabbing;
}

.image-order {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Dragging States */
.image-preview-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    border-color: var(--primary-color);
}

.image-preview-card.drag-over-left {
    border-left: 4px solid var(--primary-color);
    padding-left: 0;
}

.image-preview-card.drag-over-right {
    border-right: 4px solid var(--primary-color);
    padding-right: 0;
}

.image-preview-card.removing {
    opacity: 0.5;
    border-color: #ef4444;
}

.image-preview-card.removing .image-preview-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 68, 68, 0.3);
    pointer-events: none;
}

.image-preview-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    cursor: pointer;
    overflow: hidden;
}

.image-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-preview-card:hover .image-preview-wrapper img {
    transform: scale(1.05);
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-overlay i {
    color: white;
    font-size: 2rem;
}

.image-preview-wrapper:hover .image-preview-overlay {
    opacity: 1;
}

.primary-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-badge i {
    font-size: 0.65rem;
}

/* Custom Toggle Switch */
.image-keep-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    border-top: 1px solid var(--dark-border);
}

.image-keep-toggle input {
    display: none;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: #ef4444;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.image-keep-toggle input:checked + .toggle-track {
    background: #10b981;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-keep-toggle input:checked + .toggle-track .toggle-thumb {
    left: 22px;
}

.toggle-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.image-preview-card.removing .toggle-label {
    color: #ef4444;
}

.help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

.help-text i {
    color: var(--primary-color);
}

.image-help-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.image-help-row .help-text {
    margin-top: 0;
}

/* ==========================================
   Image Lightbox Modal
   ========================================== */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Filter Count Badge */
.filter-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    animation: filterBadgePulse 2s ease-in-out infinite;
}

@keyframes filterBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* Active filters indicator */
.filters-panel.has-active .filters-toggle {
    background: rgba(220, 38, 38, 0.05);
}

.filters-panel.has-active {
    border-color: rgba(220, 38, 38, 0.3);
}

/* Responsive Extended Filters */
@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-form.extended {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .filter-actions-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .quick-filter-chips {
        padding: 0.75rem;
    }
    
    .quick-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .quick-filter-label {
        min-width: auto;
    }
    
    .filter-chips {
        width: 100%;
    }
    
    .filter-chip {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        justify-content: center;
    }
    
    .range-presets {
        gap: 0.4rem;
    }
    
    .range-preset-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
        flex: 1;
        min-width: calc(50% - 0.2rem);
        justify-content: center;
    }
    
    .range-hint {
        font-size: 0.7rem;
    }
    
    .filter-checkbox {
        width: 100%;
        justify-content: center;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

.results-info {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Car Detail Page */
.car-detail-page {
    padding: 3rem 0 6rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.back-link:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(-5px);
    border: 1px solid var(--primary-color);
    outline: 1px solid rgba(220, 38, 38, 0.3);
    outline-offset: 1px;
}

.car-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.car-detail-images {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.image-thumbnails img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--dark-border);
    transition: all 0.3s ease;
    background: var(--dark-surface);
}

.image-thumbnails img:hover {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    outline: 1px solid rgba(220, 38, 38, 0.4);
    outline-offset: 1px;
}

.car-specs-detail {
    display: grid;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    color: #ffffff;
}

.spec-item:hover {
    border: 2px solid var(--primary-color);
    outline: 1px solid rgba(220, 38, 38, 0.3);
    outline-offset: 1px;
}

.spec-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.spec-item strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.spec-item span {
    color: #d1d5db;
}

.car-description {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    color: #ffffff;
}

.car-description h2 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.75rem;
}

.car-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.car-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Partner Link Section (Car Detail) */
.partner-link-section {
    background: #1f2937;
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.partner-link-section:hover {
    border-color: #b91c1c;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.partner-link-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.partner-link-section p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    font-size: 1.05rem;
}

.partner-link-btn {
    background: #dc2626;
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.partner-link-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

.related-cars {
    margin-top: 5rem;
}

.related-cars h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
    font-weight: 700;
}

/* ==========================================
   Contact Page - Enhanced Design
   ========================================== */

.contact-page {
    padding: 0 0 6rem;
}

/* Contact Hero */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, var(--dark-surface) 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 400px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero.has-video {
    background: transparent !important;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    padding: 3rem 0;
    overflow: hidden;
}

.contact-hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    background: transparent !important;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-hero p {
    font-size: 1.2rem;
    color: #d1d5db;
}

.contact-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.contact-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.contact-hero-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
}

.contact-hero-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    bottom: -150px;
    left: -100px;
}

.contact-hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    top: 50%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-card p {
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.contact-card-action {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-action {
    gap: 0.75rem;
}

.contact-card-status {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card-status.open {
    color: #10b981;
}

.contact-card-status.open i {
    animation: pulse 2s infinite;
}

.contact-card-status.closed {
    color: #ef4444;
}

.contact-card-status.closed i {
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Contact Grid */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 20px;
    padding: 2.5rem;
    color: #ffffff;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header.centered {
    text-align: center;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header.centered h2 {
    justify-content: center;
    color: #1f2937;
}

.section-header.centered p {
    color: #4b5563;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    color: #d1d5db;
}

/* Car Interest Banner */
.car-interest-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-surface);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.car-interest-banner img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.car-interest-info {
    flex: 1;
}

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

.car-interest-info strong {
    color: var(--text-primary);
}

.car-interest-info .year {
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.change-car {
    color: var(--text-muted);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.change-car:hover {
    color: var(--primary-color);
}

/* Enhanced Form Styles */
.contact-form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-enhanced {
    display: flex;
    flex-direction: column;
}

.form-group-enhanced.full-width {
    grid-column: 1 / -1;
}

.contact-form-section .form-group-enhanced label,
.form-group-enhanced label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Ensure label text is visible on dark backgrounds */
.contact-form-section .form-group-enhanced label {
    color: #ffffff !important;
}

.contact-form-section .form-group-enhanced label > *:not(i):not(.required):not(.optional) {
    color: #ffffff !important;
}

.form-group-enhanced label i {
    color: var(--primary-color);
    width: 18px;
}

.form-group-enhanced label .required {
    color: var(--primary-color);
}

.form-group-enhanced label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.85rem;
}

.form-group-enhanced input,
.form-group-enhanced select,
.form-group-enhanced textarea {
    padding: 1rem;
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-enhanced input:focus,
.form-group-enhanced select:focus,
.form-group-enhanced textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group-enhanced input::placeholder,
.form-group-enhanced textarea::placeholder {
    color: #9ca3af;
}

.form-group-enhanced.valid input,
.form-group-enhanced.valid textarea {
    border-color: #10b981;
}

.form-group-enhanced.invalid input,
.form-group-enhanced.invalid textarea {
    border-color: #ef4444;
}

.validation-message {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.char-count.warning {
    color: #f59e0b;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-disclaimer i {
    color: #10b981;
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-section,
.social-section,
.quick-info-section {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 16px;
    padding: 1.5rem;
    color: #ffffff;
}

.map-section h3,
.social-section h3,
.quick-info-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-section h3 i,
.social-section h3 i,
.quick-info-section h3 i {
    color: var(--primary-color);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--dark-surface);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link span {
    font-size: 0.75rem;
    color: #d1d5db;
}

.social-link:hover {
    transform: translateY(-4px);
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-link.facebook { color: #1877f2; }
.social-link.facebook:hover { background: rgba(24, 119, 242, 0.1); }

.social-link.instagram { color: #e4405f; }
.social-link.instagram:hover { background: rgba(228, 64, 95, 0.1); }

.social-link.youtube { color: #ff0000; }
.social-link.youtube:hover { background: rgba(255, 0, 0, 0.1); }

/* Quick Info List */
.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--dark-border);
    color: #d1d5db;
    font-size: 0.95rem;
}

.quick-info-list li:last-child {
    border-bottom: none;
}

.quick-info-list li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    align-items: start;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease;
    color: #ffffff;
    position: relative;
    isolation: isolate;
    pointer-events: auto;
    z-index: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: fit-content;
}

.faq-item.active {
    z-index: 2;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: block;
    opacity: 0;
    visibility: hidden;
    flex-shrink: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

/* Explicitly ensure non-active items are fully closed */
.faq-item:not(.active) .faq-answer {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.faq-question {
    flex-shrink: 0;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #d1d5db;
    line-height: 1.6;
}

/* Alert Animations */
.alert-animated {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: slideIn 0.5s ease;
}

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

.alert-animated i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.alert-animated strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert-animated p {
    margin: 0;
}

/* Legacy Contact Styles (for backward compatibility) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border: 2px solid var(--primary-color);
    outline: 1px solid rgba(220, 38, 38, 0.3);
    outline-offset: 1px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contact Responsive */
@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 4rem 0 3rem;
        min-height: 300px;
        max-height: 350px;
    }
    
    .contact-hero.has-video {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        padding: 2rem 0;
    }
    
    .contact-hero-video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
}

/* Admin Form Styling */
.contact-form {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    max-width: 900px;
}

/* Admin Alert Styling */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    font-weight: 500;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #e5e7eb;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--dark-surface);
    color: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: rgba(55, 65, 81, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-note {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Footer Partner Banner */
.footer-partner-banner {
    background: linear-gradient(180deg, var(--dark-surface) 0%, #1f2937 100%);
    border-bottom: 3px solid #dc2626;
    padding: 3rem 0;
    margin-top: 0;
    position: relative;
}

.footer-partner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    opacity: 0.5;
}

.footer-banner-content {
    text-align: center;
    color: white;
}

.footer-banner-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
}

.footer-banner-content p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-banner-btn {
    background: #dc2626;
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-banner-btn:hover {
    background: #b91c1c;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.5);
}

@media (max-width: 768px) {
    .footer-banner-content h3 {
        font-size: 1.5rem;
    }
    
    .footer-banner-content p {
        font-size: 1rem;
    }
    
    .footer-banner-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Footer */
.main-footer {
    background: var(--dark-surface);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 0;
    border-top: none;
    position: relative;
}

.main-footer::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-section i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--dark-border);
    color: #9ca3af;
}

.footer-bottom p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.admin-link-subtle {
    font-size: 0.75rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.admin-link-subtle:hover {
    opacity: 0.6;
}

.admin-link-subtle a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: normal;
}

.admin-link-subtle a:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

/* Admin Styles */
.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--dark-border);
}

.admin-header h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.admin-header h1 i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.admin-header h1::before {
    content: '';
    width: 4px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 2px;
    display: block;
}

/* Admin Header Action Buttons */
.admin-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-header-actions .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-header-actions .btn i {
    margin-right: 0.5rem;
}

.btn-admin-analytics {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
}

.btn-admin-crm {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    border: none !important;
}

.btn-admin-optimizer {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none !important;
}

.btn-admin-sync {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
}

/* Bulk Actions Side Panel */
.bulk-actions-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.bulk-actions-panel[style*="flex"] {
    pointer-events: all;
}

.bulk-actions-panel-content {
    background: linear-gradient(180deg, var(--dark-card) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-left: 2px solid var(--primary-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bulk-actions-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(31, 41, 55, 0.5) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-actions-panel-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-actions-panel-header h3 i {
    color: var(--primary-color);
}

.close-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.close-panel:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.bulk-actions-panel-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    justify-content: center;
}

.selection-info .bulk-selection-count {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.selection-info span:not(.bulk-selection-count) {
    color: #e5e7eb;
    font-size: 0.9375rem;
}

.bulk-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bulk-action-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: flex-start;
}

.bulk-action-buttons .btn i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.bulk-action-buttons .btn span {
    font-size: 0.9375rem;
    font-weight: 500;
    flex: 1;
}

.bulk-action-buttons .btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bulk-action-buttons .btn-danger:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

@media (max-width: 768px) {
    .bulk-actions-panel {
        width: 320px;
    }
    
    .bulk-action-buttons .btn {
        padding: 0.875rem 1rem;
    }
    
    .bulk-action-buttons .btn i {
        font-size: 1rem;
    }
    
    .bulk-action-buttons .btn span {
        font-size: 0.875rem;
    }
}

/* Category Badge in Admin Table */
.category-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--dark-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.admin-table th,
.admin-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-border);
}

.admin-table th {
    background: linear-gradient(180deg, var(--dark-surface) 0%, rgba(31, 41, 55, 0.95) 100%);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.admin-table th input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

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

.admin-table tbody tr:hover {
    background: rgba(55, 65, 81, 0.5);
}

.admin-table td {
    color: #e5e7eb;
    font-size: 0.9375rem;
    vertical-align: middle;
}

.admin-table td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.admin-table td:first-child {
    text-align: center;
    padding: 1.25rem 1rem;
}

.admin-table img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--dark-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.8);
    outline: 1px solid rgba(239, 68, 68, 0.4);
    outline-offset: 1px;
}

/* Navigation Fixes */
.main-nav {
    position: relative;
    z-index: 50;
}

.main-nav ul li {
    position: relative;
}

/* Ensure proper stacking and interaction */
.main-nav a {
    position: relative;
    z-index: 10;
}

/* Fix for language switcher dropdown */
.language-switcher select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

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

    .car-detail {
        grid-template-columns: 1fr;
    }

    .car-detail-images {
        position: static;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .car-actions {
        flex-direction: column;
    }

    .car-actions .btn {
        width: 100%;
    }

    .features-grid {
        gap: 1rem;
        justify-content: center;
    }
    
    .feature {
        width: calc(50% - 0.5rem);
        min-width: 180px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-bottom p {
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-link-subtle {
        margin-left: 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Automotive Theme Enhancements */
.car-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.car-card:hover::after {
    opacity: 1;
}

/* Enhanced button animations */
.btn {
    position: relative;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Automotive accent lines */
.featured-cars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    z-index: 1;
}

.why-us::after {
    display: none;
}

/* Enhanced red and black theme elements */
.main-header {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Red glow effects for premium feel */
.car-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

/* Enhanced button glow */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Dark theme enhancements */
.admin-table {
    background: var(--dark-card);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.admin-table th {
    background: var(--dark-surface);
    border-bottom: 2px solid rgba(220, 38, 38, 0.2);
}

/* Enhanced hover effects for automotive feel */
.car-info h3 {
    transition: all 0.3s ease;
}

.car-card:hover .car-info h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Performance indicator styling */
.car-specs i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
}

/* Split Layout */
.car-detail-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    background: #1A1A1A;
    color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
    border: 1px solid #2A2A2A;
}

.car-main-split {
    padding: 40px;
    background: #0d141f;
}

.car-title-split {
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.car-subtitle-split {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #3A3A3A;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #CCCCCC;
    line-height: 1.8;
    max-height: 140px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.car-subtitle-split:hover {
    border: 2px solid #4A4A4A;
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: 1px;
}

/* Format content as clean list items */
.car-subtitle-split {
    white-space: pre-line;
}

/* Custom scrollbar styling */
.car-subtitle-split::-webkit-scrollbar {
    width: 8px;
}

.car-subtitle-split::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 4px;
    margin: 4px 0;
}

.car-subtitle-split::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4A4A4A 0%, #6A6A6A 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.car-subtitle-split::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6A6A6A 0%, #8A8A8A 100%);
    transform: scaleX(1.2);
}

.main-image-split {
    width: 100%;
    height: 350px;
    background: #2A2A2A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #3A3A3A;
}

.main-image-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.main-image-split img:hover {
    opacity: 0.9;
}

/* Image Navigation Buttons */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.image-nav-btn:hover {
    background: rgba(139, 26, 26, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-prev {
    left: 15px;
}

.image-nav-next {
    right: 15px;
}

.main-image-split {
    position: relative;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Mobile adjustments for nav buttons */
@media (max-width: 768px) {
    .image-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-nav-prev {
        left: 10px;
    }
    
    .image-nav-next {
        right: 10px;
    }
    
    .image-counter {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.no-image-split {
    width: 100%;
    height: 350px;
    background: #2A2A2A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #6A6A6A;
    margin-bottom: 20px;
    border: 1px solid #3A3A3A;
}

.image-thumbnails-split {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.image-thumbnails-split img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #3A3A3A;
    transition: all 0.2s ease;
    background: #2A2A2A;
}

.image-thumbnails-split img:hover {
    border-color: #CD5C5C;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(205, 92, 92, 0.3);
}


.car-sidebar-split {
    background: #111827;
    color: #ffffff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.price-section-split {
    margin-bottom: 40px;
}

.price-label-split {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-price-split {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.specs-section-split {
    flex: 1;
    margin-bottom: 40px;
}

.specs-title-split {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-row-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #374151;
}

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

.spec-label-split {
    color: #9ca3af;
    font-size: 0.9rem;
}

.spec-value-split {
    color: #ffffff;
    font-weight: 600;
}

.car-actions-split {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-split {
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-split-primary {
    background: #dc2626;
    color: #ffffff;
    border: none;
}

.btn-split-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-split-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #374151;
}

.btn-split-secondary:hover {
    border: 2px solid #dc2626;
    background: rgba(220, 38, 38, 0.05);
    outline: 1px solid rgba(220, 38, 38, 0.3);
    outline-offset: 1px;
}

.btn-split-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
}

.btn-split-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Responsive Design for Split Layout */
@media (max-width: 768px) {
    .car-detail-split {
        grid-template-columns: 1fr;
        margin: 1rem 0;
    }
    
    .car-main-split {
        padding: 30px 20px;
    }
    
    .car-title-split {
        font-size: 2.2rem;
    }
    
    .car-subtitle-split {
        font-size: 0.85rem;
        padding: 16px;
        max-height: 120px;
        line-height: 1.6;
    }
    
    .car-subtitle-split::-webkit-scrollbar {
        width: 6px;
    }
    
    .main-image-split,
    .no-image-split {
        height: 250px;
    }
    
    
    .car-sidebar-split {
        padding: 30px 20px;
        border-top: 1px solid #e5e7eb;
    }
    
    .price-section-split {
        margin-bottom: 30px;
    }
    
    .car-price-split {
        font-size: 1.8rem;
    }
    
    .specs-section-split {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .car-main-split {
        padding: 20px 15px;
    }
    
    .car-title-split {
        font-size: 1.8rem;
    }
    
    .car-subtitle-split {
        font-size: 0.8rem;
        padding: 14px;
        max-height: 100px;
        line-height: 1.5;
    }
    
    .car-subtitle-split::-webkit-scrollbar {
        width: 5px;
    }
    
    .main-image-split,
    .no-image-split {
        height: 200px;
    }
    
    
    .car-sidebar-split {
        padding: 20px 15px;
    }
    
    .car-price-split {
        font-size: 1.6rem;
    }
    
    .image-thumbnails-split img {
        width: 60px;
        height: 45px;
    }
    
    .spec-row-split {
        padding: 10px 0;
    }
    
    .spec-label-split,
    .spec-value-split {
        font-size: 0.85rem;
    }
}

/* AI Car Finder Styles */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ai-finder-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    animation: aiGlow 2s ease-in-out infinite alternate;
}

.ai-finder-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: aiPulse 3s ease-in-out infinite;
}

/* AI Car Finder Button - Hero Section */
.ai-finder-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: 'Rajdhani', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

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

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

.ai-finder-btn:hover {
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

.ai-finder-btn i {
    margin-right: 0.75rem;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes aiGlow {
    0% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    100% { box-shadow: 0 8px 30px rgba(118, 75, 162, 0.6); }
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

@keyframes robotBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* AI Navigation Link */
.ai-nav-link {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.25rem !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    font-weight: 600 !important;
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    z-index: 10;
}

/* Override default nav link styles for AI link */
.ai-nav-link::after {
    display: none !important;
}

.ai-nav-link::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;
    z-index: -1;
}

.ai-nav-link:hover::before {
    left: 100%;
}

.ai-nav-link:hover {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 1px !important;
    color: white !important;
}

.ai-nav-link i {
    margin-right: 0.5rem;
}

/* ==========================================
   Price Drop Badge Styles
   ========================================== */

/* Price Drop Badge on Cards */
.price-drop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    z-index: 5;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    z-index: 2;
    animation: pricePulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-drop-badge i {
    font-size: 0.8rem;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7); }
}

/* Price Display with Drop */
.featured-card-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 500;
}

.drop-amount {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-card-price.sale-price {
    color: #10b981 !important;
    position: relative;
}

/* Detail Page Price Drop Styles */
.price-drop-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pricePulse 2s ease-in-out infinite;
}

.price-drop-banner i {
    font-size: 1.1rem;
}

.original-price-detail {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.car-price-split.sale-price {
    color: #10b981 !important;
}

.savings-detail {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.savings-detail i {
    font-size: 1.1rem;
}

/* Compare Page Price Drop */
.compare-price.sale-price {
    color: #10b981 !important;
}

.compare-original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 5px;
}

/* ==========================================
   Back to Top Button
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Pulse animation on hover */
.back-to-top::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transform: scale(1);
    transition: all 0.4s ease;
}

.back-to-top:hover::before {
    opacity: 0.3;
    transform: scale(1.4);
    animation: backToTopPulse 1s ease-out infinite;
}

@keyframes backToTopPulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Adjust when compare bar is visible */
.compare-bar.visible ~ .back-to-top,
body:has(.compare-bar.visible) .back-to-top {
    bottom: 120px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: whatsapp-pulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 48px rgba(37, 211, 102, 0.6);
    width: auto;
    border-radius: 50px;
    padding: 0 1.5rem;
    gap: 0.75rem;
}

.whatsapp-text {
    display: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-text {
    display: block;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.8), 0 0 0 8px rgba(37, 211, 102, 0.2);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
    
    .whatsapp-float:hover {
        width: 56px;
        border-radius: 50%;
        padding: 0;
    }
    
    .whatsapp-text {
        display: none !important;
    }
}

/* Floating Partner Button */
.floating-partner-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 1.25rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    z-index: 999;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-partner-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 48px rgba(220, 38, 38, 0.6);
}

.floating-partner-btn i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@media (max-width: 768px) {
    .floating-partner-btn {
        bottom: 20px;
        left: 20px;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .floating-partner-btn span {
        display: none;
    }
}

/* ==========================================
   Share Car Feature
   ========================================== */

.share-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.share-label i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 8px;
}

.share-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.share-btn:hover::after,
.share-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.share-btn:hover::before {
    transform: translateX(-50%);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* Facebook */
.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5ecf 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.share-facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

/* WhatsApp */
.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c47 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.share-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Twitter/X */
.share-twitter {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.share-twitter:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Email */
.share-email {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

.share-email:hover {
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.6);
}

/* Copy Link */
.share-copy {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.share-copy:hover {
    background: var(--gradient-primary);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Copy Feedback Toast */
.copy-feedback {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.copy-feedback.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-feedback i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .share-label {
        justify-content: center;
    }
}

/* ==========================================
   Compare Cars Feature Styles
   ========================================== */

/* Card Wrapper for Compare Button */
.featured-card-wrapper {
    position: relative;
}

.featured-card-wrapper .featured-card {
    margin-bottom: 0;
}

/* Compare Button on Cards */
.compare-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(31, 41, 55, 0.9);
    color: #d1d5db;
    border: 2px solid var(--dark-border);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.compare-btn.selected {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.compare-btn.selected:hover {
    background: #059669;
    border-color: #059669;
}

.compare-btn i {
    font-size: 0.85rem;
}

/* Floating Compare Bar */
.compare-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 15px 25px;
    z-index: 1000;
    box-shadow: 0 -8px 40px rgba(220, 38, 38, 0.3);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 95vw;
    width: auto;
}

.compare-bar.visible {
    bottom: 30px;
}

.compare-bar-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-cars-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-car-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-card);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.compare-car-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 6px;
}

.compare-car-item span {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-car-item .remove-compare {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-car-item .remove-compare:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.compare-count {
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
}

.compare-now-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
}

.compare-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Compare Page Styles */
.compare-page {
    padding: 3rem 0 6rem;
}

.compare-page h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.compare-page h1 i {
    color: var(--primary-color);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(var(--car-count, 2), 1fr);
    gap: 25px;
    margin-bottom: 4rem;
}

.compare-column {
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.compare-column:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
}

.compare-image {
    width: 100%;
    height: 220px;
    background: var(--dark-surface);
    overflow: hidden;
}

.compare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compare-column:hover .compare-image img {
    transform: scale(1.05);
}

.compare-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9ca3af;
}

.compare-car-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: center;
}

.compare-price {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary-color);
    text-align: center;
    padding: 0.5rem 1.5rem 1rem;
}

.compare-specs {
    padding: 0 1.5rem 1.5rem;
}

.compare-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
}

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

.spec-label {
    color: #9ca3af;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-label i {
    color: var(--primary-color);
    width: 18px;
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.compare-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-surface);
}

.compare-actions .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Comparison Summary */
.compare-summary {
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    padding: 2rem;
}

.compare-summary h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-summary h3 i {
    color: var(--primary-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-item {
    background: var(--dark-surface);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.summary-item:hover {
    border-color: var(--primary-color);
}

.summary-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.summary-label i {
    color: var(--primary-color);
}

.summary-value {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.summary-detail {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive Compare Styles */
@media (max-width: 1024px) {
    .compare-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .compare-bar {
        padding: 12px 18px;
        border-radius: 15px;
    }
    
    .compare-bar-content {
        gap: 15px;
    }
    
    .compare-car-item span {
        display: none;
    }
    
    .compare-car-item {
        padding: 6px;
    }
    
    .compare-grid {
        grid-template-columns: 1fr;
    }
    
    .compare-page h1 {
        font-size: 2rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .compare-bar {
        bottom: -120px;
        width: calc(100% - 20px);
        left: 10px;
        transform: none;
        border-radius: 12px;
    }
    
    .compare-bar.visible {
        bottom: 10px;
    }
    
    .compare-bar-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .compare-bar-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ========================================== */

/* Base Mobile Styles (Mobile First Approach) */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile Optimizations */
    .header-content {
        padding: 1rem 0;
    }
    
    .logo a {
        font-size: 1.4rem;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
    }
    
    .logo-text-brand {
        font-size: 1.2rem;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        display: none;
    }
    
    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle.active {
        background: var(--primary-color);
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 4rem 0 3rem;
        min-height: 500px;
    }
    
    .hero-video {
        opacity: 1 !important;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Featured Cards Mobile */
    .featured-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .featured-card {
        margin: 0;
    }
    
    .featured-card-image {
        height: 220px;
    }
    
    .featured-card-body {
        padding: 1rem;
    }
    
    .featured-card-title {
        font-size: 1.2rem;
    }
    
    .featured-card-specs {
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    
    .featured-card-price {
        font-size: 1.3rem;
    }
    
    /* Cars Grid Mobile */
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Filters Mobile */
    .filters-panel {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-toggle {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .filter-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-checkbox {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
    }
    
    .btn-small {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        min-height: 36px;
    }
    
    /* Car Detail Mobile */
    .car-detail-split {
        margin: 1rem 0;
    }
    
    .car-title-split {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .main-image-split {
        height: 250px;
    }
    
    .image-thumbnails-split {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .image-thumbnails-split img {
        width: 70px;
        height: 52px;
    }
    
    .car-actions-split {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-split {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Contact Form Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Why Us Section Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature i {
        font-size: 2.5rem;
    }
    
    .feature h3 {
        font-size: 1.2rem;
    }
    
    .feature p {
        font-size: 0.95rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    /* Admin Mobile */
    .admin-card {
        padding: 1.25rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-header h1 i {
        font-size: 1.25rem;
    }
    
    /* Tables Mobile */
    .top-cars-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .top-cars-table table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    /* Admin Table Mobile */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .admin-table {
        min-width: 800px;
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 1rem 0.75rem;
    }
    
    .admin-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-header-actions .btn {
        flex: 1;
        min-width: auto;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    /* Text adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 3rem 0;
    }
    
    .featured-cars {
        padding: 3rem 0;
    }
    
    /* Back to top button */
    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .featured-cards-grid {
        gap: 1.25rem;
    }
    
    .featured-card-image {
        height: 200px;
    }
    
    .featured-card-title {
        font-size: 1.1rem;
    }
    
    .featured-card-price {
        font-size: 1.2rem;
    }
    
    .car-title-split {
        font-size: 1.5rem;
    }
    
    .main-image-split {
        height: 220px;
    }
    
    .image-thumbnails-split img {
        width: 60px;
        height: 45px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .logo-text-brand {
        font-size: 1rem;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .featured-cars {
        padding: 2rem 0;
    }
}

/* Tablet Optimizations (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .featured-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Target Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Mobile touch devices */
    a, button, .btn, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .filter-checkbox {
        min-height: 44px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve tap targets */
    .featured-card {
        padding: 0.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .featured-card:hover {
        transform: none;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .main-image-split {
        height: 300px;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Prevent table overflow */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure containers don't overflow */
    .container,
    section,
    main {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Better text wrapping for long words/URLs */
    a, p, span, div, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
