
/* Glassmorphism Navigation */
.glass-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* Core Automotive Card */
.card-automotive {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.card-automotive::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(220, 38, 38, 0.15) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.card-automotive:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15), 0 0 32px rgba(220, 38, 38, 0.08);
    color: #fff;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #DC2626;
}

/* Hero gradient mesh */
.hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(220, 38, 38, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
}

/* Geometric decorative dots */
.geo-dots {
    background-image: radial-gradient(rgba(220, 38, 38, 0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
}

/* Animated gradient border for special cards */
.animated-border-card {
    position: relative;
}

.animated-border-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    /* background: linear-gradient(60deg, #DC2626, #F59E0B, #DC2626, #EF4444, #DC2626); */
    background-size: 300% 300%;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.animated-border-card:hover::after {
    opacity: 1;
}

/* Shimmer effect */
.shimmer-effect {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
}

/* Floating badge animation */
@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

.badge-pulse {
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* Smooth reveal for cards */
.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.96);
    transition: transform 0.15s ease;
}

/* Glow line under headings */
.glow-underline {
    position: relative;
}

.glow-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #DC2626, #F59E0B);
    border-radius: 2px;
}

/* Table row hover */
.comparison-table tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(220, 38, 38, 0.03);
    box-shadow: inset 4px 0 0 #DC2626;
}

/* Mobile menu transition */
#mobileMenu {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.show {
    max-height: 500px;
}

/* Price tag glow */
.price-glow {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

/* Selection override */
::selection {
    background: #DC2626;
    color: #FFFFFF;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image zoom container */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-zoom-container:hover img {
    transform: scale(1.06);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 50%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.glass-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #DC2626;
}

::selection {
    background: #DC2626;
    color: #FFFFFF;
}

a,
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-press:active {
    transform: scale(0.96);
    transition: transform 0.15s ease;
}

.text-gradient {
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 50%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

#mobileMenu {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.show {
    max-height: 500px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.upload-zone {
    border: 2px dashed #CBD5E1;
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #DC2626;
    background: rgba(220, 38, 38, 0.02);
}

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

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

.step-indicator {
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #DC2626;
    color: white;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.listing-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.25);
}

.status-badge {
    font-size: 10px;
}

.modal-overlay {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.modal {
    animation: fadeIn 0.3s ease;
}

/* Auth form animations */
.auth-form-container {
    position: relative;
    overflow: hidden;
    min-height: 570px;
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    padding: 5%;
    height: auto;
}

.auth-form.login-active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.auth-form.login-hidden {
    transform: translateX(-80px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.auth-form.signup-active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.auth-form.signup-hidden {
    transform: translateX(80px);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Tab buttons */
.auth-tab {
    transition: all 0.35s ease;
    position: relative;
}

.auth-tab.active {
    color: #DC2626;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #DC2626, #F59E0B);
    border-radius: 2px;
    animation: fadeIn 0.4s ease;
}

/* Social buttons */
.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

/* Input focus effect */
.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* Animated background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.contact-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.3);
}

.sitemap-link {
    transition: all 0.25s ease;
}

.sitemap-link:hover {
    color: #DC2626;
    transform: translateX(4px);
}

a,
button,
input,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-press:active {
    transform: scale(0.96);
    transition: transform 0.15s ease;
}

.price-glow {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 50%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.gallery-thumb {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border-color: #DC2626;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
}

.gallery-thumb:hover {
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-3px);
}

.spec-row {
    transition: all 0.25s ease;
}

.spec-row:hover {
    background: rgba(220, 38, 38, 0.02);
}

.gauge-ring {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-ring.animate {
    stroke-dashoffset: 50;
}

.feature-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
}

.notification-item {
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: rgba(220, 38, 38, 0.02);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #DC2626;
    border-radius: 0 4px 4px 0;
}

.filter-btn.active {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.delete-animation {
    animation: slideOut 0.4s ease-in forwards;
}

.profile-section {
    transition: all 0.3s ease;
}

.profile-section:hover {
    border-color: rgba(220, 38, 38, 0.15);
}

.avatar-upload {
    transition: all 0.3s ease;
}

.avatar-upload:hover {
    border-color: #DC2626;
}

.sidebar-link {
    transition: all 0.3s ease;
}

.sidebar-link.active {
    background: rgba(220, 38, 38, 0.06);
    color: #DC2626;
    border-left: 3px solid #DC2626;
    font-weight: 700;
}

.toggle-switch {
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #DC2626;
}

.toggle-dot {
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-dot {
    transform: translateX(20px);
}

.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.legal-section h3 {
    position: relative;
}

.legal-section h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #DC2626, #F59E0B);
    border-radius: 2px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #DC2626;
    padding-left: 1.5rem;
    font-style: italic;
    color: #475569;
    margin: 1.5rem 0;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
}

.related-card:hover {
    transform: translateY(-6px);
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-img img {
    transition: transform 0.5s ease;
}

.blog-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card:hover .blog-img img {
    transform: scale(1.06);
}

.blog-img img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-pill {
    transition: all 0.3s ease;
}

.category-pill.active {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.pagination-btn.active {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}
  /* Filter sidebar mobile overlay */
        #filterOverlay {
            transition: opacity 0.35s ease;
            pointer-events: none;
            opacity: 0;
        }

        #filterOverlay.active {
            pointer-events: auto;
            opacity: 1;
        }

        #filterSidebar {
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (max-width: 1023px) {
            #filterSidebar {
                position: fixed;
                top: 0;
                left: 0;
                z-index: 100;
                height: 100vh;
                overflow-y: auto;
                transform: translateX(-100%);
                width: 320px;
                max-width: 85vw;
            }
            #filterSidebar.open {
                transform: translateX(0);
            }
        }

        /* Pagination active */
        .pagination-btn.active {
            background: #DC2626;
            color: #fff;
            border-color: #DC2626;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        }

        /* Custom range slider */
        input[type="range"] {
            -webkit-appearance: none;
            height: 6px;
            border-radius: 3px;
            background: #E2E8F0;
            outline: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #DC2626;
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
        }

        /* Checkbox custom */
        .custom-checkbox {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid #CBD5E1;
            border-radius: 5px;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .custom-checkbox:checked {
            background: #DC2626;
            border-color: #DC2626;
        }

        .custom-checkbox:checked::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 5px;
            height: 9px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
 html,
body {
    overflow-x: hidden;
}