@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --bg-primary: #faf8f8;
    --bg-secondary: #f8f8fa;
    --accent-primary: #005db9;
    --accent-secondary: #00c3fa;
    --text-primary: #0a0a0b;
    --text-secondary: #52525b;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.05);
    --radius-full: 100px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-main: 0 10px 40px -15px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 25%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header {
        width: 95%;
    }

    .sidebar-menu,
    .login-popup {
        width: 95%;
        height: 90vh;
        overflow-y: auto;
    }

    .sidebar-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .social-login {
        flex-direction: column;
        padding: 0 30px 20px 30px !important;
        gap: 10px;
    }

    .social-btn {
        width: 100%;
        flex: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-link {
    display: inline-flex;
    color: #08b6f6;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    font-size: 0.7rem;
    border: 2px solid #005db8;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 30px;
    padding: 4px 10px;
    align-items: center;
    gap: 5px;


    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        border-radius: 10rem;
        z-index: -2;
    }

    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #08b6f6;
        transition: all .3s;
        border-radius: 10rem;
        z-index: -1;
    }

    &:hover {
        color: white;
        border: 2px solid #005db9;

        &:before {
            width: 100%;
        }
    }
}

.login-link svg {
    vertical-align: top;
    color: #08b6f6;
    height: 20px;
}

.login-link:hover svg {
    color: #fff;
}






.logo img {
    height: 27px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-primary);
}

.cta-btn {
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

#menu-toggle {
    display: flex;
    background: white;
    color: #08b6f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    padding: 5px;
    border: 2px solid #005db9;
}

#menu-toggle:hover {
    transform: scale(1.15);
    opacity: 0.9;
    background-color: #08b6f6;
    color: white;
}

/* --- Sidebar Menu --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu,
.login-popup {
    position: fixed;
    top: -120%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    /* Slimmer for login */
    height: auto;
    max-height: 95vh;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border-radius: 0 0 50px 50px;
    overflow-y: auto;
}

/* Adjust sidebar back to 1200 if needed, but 900 is good for both */
.sidebar-menu {
    max-width: 1200px;
}

.sidebar-menu.active,
.login-popup.active {
    top: 0;
}

.sidebar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .sidebar-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
}

.sidebar-column h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.sidebar-link-btn,
.auth-submit {
    display: inline-block;
    color: #fff;
    font-size: 1rem;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid #08b6f6;
    border-radius: 30px;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 30px;
    padding: 13px 30px;
    font-weight: 600;


    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #08b6f6;
        border-radius: 10rem;
        z-index: -2;
    }

    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #fff;
        transition: all .3s;
        border-radius: 10rem;
        z-index: -1;
    }

    &:hover {
        color: #005db9;
        border: 2px solid #005db9;

        &:before {
            width: 100%;
        }
    }
}

.sidebar-link-btn svg {
    vertical-align: top;
    color: #005db9;
    margin-right: 10px;
}

.sidebar-link-btn:hover svg {
    color: #08b6f6;
}







.seller-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.seller-type h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.seller-type p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.seller-link {
    display: flex;
    align-items: center;
    justify-content: first baseline;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    border-radius: 30px;
    padding: 13px 30px;
    gap: 10px;
    border: 2px solid #08b6f6;
    position: relative;
    overflow: hidden;
    z-index: 1;

    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #08b6f6;
        border-radius: 10rem;
        z-index: -2;
    }

    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #fff;
        transition: all .3s;
        border-radius: 10rem;
        z-index: -1;
    }

    &:hover {
        color: #005db9;
        border: 2px solid #005db9;

        &:before {
            width: 100%;
        }
    }
}

.seller-link svg {
    color: #005db9;
}

.seller-link:hover svg {
    color: #08b6f6;
}

/* --- Auth / Login Popup Enhancements --- */
.social-login {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 20px 60px 0;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-btn {
    background: white;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #d2d4d7;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.apple-btn {
    background: #1d1d1f;
    color: white;
    border: none;
}

.apple-btn:hover {
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn i {
    font-size: 1.3rem;
}

.apple-btn i {
    color: white;
}

/* Separator styling */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 60px 0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #f1f5f9;
}

.auth-separator:not(:empty)::before {
    margin-right: 1.5em;
}

.auth-separator:not(:empty)::after {
    margin-left: 1.5em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-form input {
    padding: 16px 20px 16px 50px;
    /* Extra padding for icon */
    border-radius: 16px;
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.auth-form input:focus {
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 110, 255, 0.05);
}

.auth-form input:focus+.input-icon {
    color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.auth-form input::placeholder {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.auth-form input:focus::placeholder {
    transform: translateX(10px);
    opacity: 0.5;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}



.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-header p {
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

#menu-close,
#login-close {
    background: #f8fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#menu-close:hover,
#login-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
    color: var(--accent-primary);
}

.sidebar-links {
    list-style: none;
    padding: 30px 35px 40px;
    margin: 0;
    display: inline-grid;
    gap: 12px;
    align-items: flex-start;
    align-content: flex-start;
}

.sidebar-links li {
    margin: 0;
    flex: 0 0 auto;
}








.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 24px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    background: transparent;
    border: none;
    height: 48px;
    position: relative;
    z-index: 1;
    margin-left: 67px;
}

.sidebar-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #08b6f6;
    border-radius: 50px;
    border: 3px solid #005db9;
    z-index: -1;
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.4);
    transition: all .4s;
    transform: translate(0%, 0%);
}


.sidebar-links a:hover {
    color: white;
}

.sidebar-links a:hover::before {
    transform: translate(-50px, 0);
}

.sidebar-links a i {
    width: 20%;
    height: 100%;
    background: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    order: 2;
    color: white;
}




.sidebar-links a i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Location Modal --- */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.location-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.location-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.location-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#location-close {
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#location-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.location-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.search-state-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid rgb(0, 94, 188);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.search-state-wrapper i {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
}

.search-state-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-state-wrapper input::placeholder {
    color: var(--text-secondary);
}

.states-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.state-item {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.state-item:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.2);
}

.state-item.selected {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.state-item.hidden {
    display: none;
}

/* --- Year Modal --- */
.year-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.year-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.year-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.year-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.year-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#year-close {
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#year-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.year-modal-body {
    padding: 32px 24px 24px;
}

.year-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.year-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.year-nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.year-nav-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.year-nav-btn:active {
    transform: scale(0.95);
}

.year-slider-wrapper {
    margin-bottom: 32px;
    position: relative;
}

.year-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.year-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 65, 225, 0.3);
    transition: all 0.2s ease;
}

.year-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.4);
}

.year-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.year-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 65, 225, 0.3);
    transition: all 0.2s ease;
}

.year-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.4);
}

.year-slider-track {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    pointer-events: none;
    overflow: hidden;
}

.year-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #0d41e1, #07c8f9);
    border-radius: 4px;
    transition: width 0.1s ease;
}

.year-quick-select {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.year-quick-btn {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-quick-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.2);
}

.year-quick-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.year-confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 65, 225, 0.3);
}

.year-confirm-btn:active {
    transform: translateY(0);
}

/* --- Price Modal (Copy of Year Modal Styles) --- */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.price-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.price-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.price-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#price-close {
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#price-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.price-modal-body {
    padding: 32px 24px 24px;
}

/* --- Condition Modal (Copy of Location Modal Styles) --- */
.condition-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.condition-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.condition-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    /* Smaller max-width for simpler content */
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.condition-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.condition-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.condition-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#condition-close {
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#condition-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.condition-modal-body {
    padding: 24px;
}

/* --- Brand Modal (Copy of Location Modal Styles) --- */
.brand-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.brand-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brand-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.brand-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.brand-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#brand-close {
    background: var(--bg-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

#brand-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.brand-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* --- Search Section --- */
.search-section {
    padding: 100px 0 40px;
    background: #ffffff63;
    text-align: center;
}

.search-section .container {
    background: #136dec;
    padding: 150px 20px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
    margin-top: -100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-section .container::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 2;
}

.search-section .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(50deg, transparent 10%, transparent 10%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.08) 5%, transparent 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.search-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 24px;
    max-width: 750px;
    position: relative;
    z-index: 5;
}

.search-left-icon {
    color: #136dec;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px rgba(19, 109, 236, 0.3));
    flex-shrink: 0;
}

.search-form {
    flex: 1;
    max-width: 650px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;

}

.lucide.lucide-search {
    background: #fff;
    color: #00bfff;
    height: 40px;
    width: 40px;
    padding: 8px;
    border-radius: 50px;
    right: 28px;
    position: absolute;
}



.search-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 32px;
    position: relative;
    z-index: 5;
    text-align: left;
    max-width: 650px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto 24px;
}

.rotating-text {
    display: inline-block;
    color: white;
    font-weight: 700;
    position: relative;
    border-right: 3px solid white;
    padding-right: 4px;
    animation: blink-cursor 0.75s step-end infinite;
    min-height: 1.2em;
    vertical-align: bottom;
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: white
    }
}



.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 16px;
}

.search-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    right: 0px;

}


.search-icon-link:hover {
    position: absolute;

}


.search-icon-logo {
    background: url("assets/car-insight-icon.png") no-repeat center;
    background-size: auto;
    color: #00bfff;
    height: 50px !important;
    width: 50px !important;
    padding: 4px;
    border-radius: 50px;
    right: 10px;
    position: relative;
    background-size: 35px;
}


.search-input-group i {
    color: #29509f;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 1.05rem;
    color: #1a1a1a;
    background: transparent;
}

.search-input-group input::placeholder {
    color: #71717a;
    opacity: 1;
}



.btn-card-action {
    padding: 13px 0 17px 20px;
    font-size: 16px;
    background: transparent;
    border: none;
    position: relative;
    color: #fff;
    z-index: 1;
    border-radius: 50px;
    width: 80%;
    margin: 20px 15px 0;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    transition: padding 0.2s ease;
    ;
}

.btn-card-action:hover {
    color: #005db9;
    padding: 13px 0 17px 50px;
    transition: padding 0.3s ease;

}

.btn-card-action:active {
    width: 85%;
}

.btn-card-action::after,
.btn-card-action::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -99999;
    transition: all .4s;
}

.btn-card-action::before {
    transform: translate(0%, 0%);
    width: 100%;
    height: 100%;
    background: #08b6f6;
    border-radius: 50px;
    border: 3px solid #005db9;
    z-index: -1;
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.4);

}

.btn-card-action::after {
    transform: translate(50px, 0px);
    width: 100%;
    height: 61px;
    background: url("assets/plus.svg") #005db9 no-repeat center right 20px;
    border-radius: 50px;
    background-size: 25px;
    top: -6px;

}

.btn-card-action:hover::before {
    transform: translate(10%, 0%);
    width: 100%;
    height: 100%;
    text-align: center;
}

.btn-card-action:hover::after {
    border-radius: 50px;
    transform: translate(-15px, 0.5px);
    width: 100%;
    height: 61px;
    background: url("assets/plus.svg") #005db9 no-repeat center left 10px;
    background-size: 25px;

}

.btn-card-action:active::after {
    transition: 0s;
    transform: translate(0px, 0);
}




.btn-card-action-whats {
    padding: 13px 0 17px 20px;
    font-size: 16px;
    background: transparent;
    border: none;
    position: relative;
    color: #fff;
    z-index: 1;
    border-radius: 50px;
    width: 80%;
    margin: 20px 15px 0;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    transition: padding 0.2s ease;
    ;
}

.btn-card-action-whats:hover {
    color: #1c472f;
    padding: 13px 0 17px 50px;
    transition: padding 0.3s ease;

}

.btn-card-action-whats:active {
    width: 85%;
}

.btn-card-action-whats::after,
.btn-card-action-whats::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -99999;
    transition: all .4s;
}

.btn-card-action-whats::before {
    transform: translate(0%, 0%);
    width: 100%;
    height: 100%;
    background: #1fc364;
    border-radius: 50px;
    border: 3px solid #fff;
    z-index: -1;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.12);

}

.btn-card-action-whats::after {
    transform: translate(50px, 0.5px);
    width: 100%;
    height: 61px;
    background: url("assets/message-circle.svg") #10b35a no-repeat center right 20px;
    border-radius: 50px;
    background-size: 25px;
    top: -6px;

}

.btn-card-action-whats:hover::before {
    transform: translate(10%, 0%);
    width: 100%;
    height: 100%;
    text-align: center;
}

.btn-card-action-whats:hover::after {
    border-radius: 50px;
    transform: translate(-15px, 0.5px);
    width: 100%;
    height: 61px;
    background: url("assets/message-circle.svg") #20c462 no-repeat center left 10px;
    background-size: 25px;

}

.btn-card-action-whats:active::after {
    transition: 0s;
    transform: translate(0px, 0);
}

/* --- Results Page --- */

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    z-index: 9999;
    text-align: center;
    padding: 20px;
}

.loader {
    position: relative;
    width: 300px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-loader-container {
    width: 100%;
    position: relative;
}

.moving-car {
    position: absolute;
    bottom: 20px;
    left: 0;
    color: var(--accent-primary);
    animation: driveCar 2s ease-in-out infinite;
    z-index: 2;
}

.moving-car i {
    width: 48px;
    height: 48px;
    transform: scaleX(-1);
    /* Flip car to face right if needed, check icon */
}

/* Lucide car icon usually faces left? No, usually generic. Let's check. 
   If it faces left, scaleX(-1) makes it face right. 
   Actually, standard car icon usually faces side. 
   Let's assume standard and adjust if weird. */

.loading-bar-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d41e1, #07c8f9);
    width: 0%;
    border-radius: 4px;
    animation: fillBar 2s ease-in-out infinite;
}

@keyframes driveCar {
    0% {
        left: 0;
    }

    50% {
        left: calc(100% - 48px);
    }

    100% {
        left: calc(100% - 48px);
    }
}

@keyframes fillBar {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

.loader-text h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loader-text p {
    color: var(--text-secondary);
}

/* Results Screen */
#results-screen {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding-bottom: 80px;
    padding-top: 80px;
}

.filters-section {
    padding: 20px 0 40px;
}

.filters-container {
    background: #136dec;
    padding: 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(19, 109, 236, 0.2);
}

.filters-container::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 2;
}

.filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(50deg, transparent 10%, transparent 10%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.08) 5%, transparent 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.filters-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    position: relative;
    z-index: 5;
    justify-content: center;
}

.filters-bar::-webkit-scrollbar {
    height: 4px;
}

.filters-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-chip:hover,
.filter-chip.active {
    background: white;
    border-color: white;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.filter-chip i {
    width: 16px;
    height: 16px;
}

.results-count {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px;
    font-size: 1.2rem;
}

.results-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 30px 0;
}

.filters-sidebar {
    flex: 0 0 340px;
    background: white;
    padding: 20px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    position: relative;
    height: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.filters-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 15px;
}

.filters-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.results-main {
    flex: 1;
}



.filters-sidebar .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filters-sidebar .filter-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: #08b6f6;
    padding: 12px;
    margin-bottom: 20px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.car-card {
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-image {
    height: 220px;
}

.load-more-container {
    margin-top: 60px;
    text-align: center;
}

@media (max-width: 1024px) {
    .results-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        display: none;
        /* Hide desktop sidebar on smaller screens by default */
    }

    .meus-salvos-page .filters-sidebar {
        display: block;
        order: 2;
        width: 100%;
        margin-top: 40px;
    }

    .meus-salvos-page .results-main {
        order: 1;
    }

    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {



    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .results-layout-container {
        padding: 0px 10px;
    }

    .car-card {
        border-radius: 12px;
    }

    .car-info {
        padding: 12px;
    }

    .car-price {
        font-size: 1.1rem;
    }

    .car-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .car-specs {
        gap: 10px;
        padding-top: 8px;
    }

    .spec-item {
        font-size: 0.75rem;
    }

    .car-image {
        height: 160px;
    }

    /* Show mobile filter FAB or keep the bottom bar? 
       The user wanted sidebar on desktop. On mobile we'll use a fixed FAB. */
    .mobile-filter-fab {
        display: flex;
    }

    #results-screen {
        padding-bottom: 100px;
    }


}

.specs-list-grid {
    display: contents;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.search-action-group {
    max-width: 650px;
    margin: -60px auto 0;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 5;
    border-radius: 0 0 30px 30px;
    background: #ffffff82;
    padding: 50px 10px 20px;
    z-index: 0;
}

/* --- Mobile Filters --- */
.mobile-filter-fab {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(13, 111, 236, 0.4);
    z-index: 1000;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-fab:active {
    transform: translateX(-50%) scale(0.95);
}

/* --- Responsive Filter Modal --- */
.mobile-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    transition: visibility 0.3s;
    /* Flex alignment for desktop centering */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Default center for desktop */
}

.mobile-filter-modal.active {
    visibility: visible;
}

/* Backdrop Overlay */
.mobile-filter-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-modal.active::before {
    opacity: 1;
}

/* Modal Content Container */
.filter-modal-container {
    background: #f8fafc;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* Default Desktop Styles */
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mobile-filter-modal.active .filter-modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mobile-filter-header {
    background: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 24px 24px 0 0;
}

.mobile-filter-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

#mobile-filter-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-filter-close:hover {
    background: #f1f5f9;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.mobile-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mobile-filter-footer {
    background: white;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 24px 24px;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .mobile-filter-modal {
        align-items: flex-start;
        /* Align to top for full screen */
        padding: 0;
    }


    .filter-modal-container {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        /* Full Height */
        border-radius: 0;
        transform: translateY(100%);
        /* Slide up from bottom */
        opacity: 1;
        /* Always visible for transform */
        border: none;
        display: flex;
        flex-direction: column;
    }

    .mobile-filter-header {
        flex: 0 0 auto;
    }

    .mobile-filter-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .mobile-filter-footer {
        flex: 0 0 auto;
    }

    .mobile-filter-modal.active .filter-modal-container {
        transform: translateY(0);
    }

    .mobile-filter-header {
        border-radius: 0;
    }

    .mobile-filter-footer {
        border-radius: 0;
    }
}

.full-width {
    width: 100%;
}

/* Filter Sections inside Modal */
.filter-section {
    margin-bottom: 32px;
}

.filter-section h4 {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 16px;
    padding: 0 15px;
}

.filter-group label,
.filter-label-sm {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    padding: 0 15px;
}

.select-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip-select {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip-select.active {
    background: rgba(13, 111, 236, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Checkbox Style List  */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-item:hover input~.checkmark {
    border-color: var(--accent-primary);
}

.checkbox-item input:checked~.checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-item input:checked~.checkmark:after {
    display: block;
}

.checkbox-item .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Price Inputs */
.price-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0px 15px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
    display: block;
    font-weight: 600;
}

.price-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
}

.price-input-group input:focus {
    border-color: var(--accent-primary);
}

.price-range-card {
    background: transparent;
    border: none;
    padding: 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.price-labels small {
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.range-slider-container {
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.range-track {
    position: absolute;
    height: 8px;
    background: var(--bg-primary);
    left: 0;
    right: 0;
    border-radius: 4px;
}

.range-fill {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, #0d41e1, #07c8f9);
    border-radius: 4px;
}

.range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(13, 65, 225, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.range-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.4);
}

.range-thumb::after {
    display: none;
}

.row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.location-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 500;
}

.distance-slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.distance-label {
    min-width: 60px;
    font-size: 0.9rem;
    color: #64748b;
}

.simple-range {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #e2e8f0;
    height: 4px;
    border-radius: 2px;
    outline: none;
}

.simple-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: white;
    border: 2px solid rgb(1, 90, 182);
    color: black;
    width: 45px;
    height: 45px;
    border-radius: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 2px 2px 2px #52525254;
}

.filter-btn.active {
    background: #005db9;
    color: var(--accent-primary);
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 4px rgb(0 0 0 / 33%);
    border: 2px solid #fff;
    color: white;
}

.tooltip {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: white;
}

.filter-btn:hover .tooltip,
.filter-btn.active-tooltip .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Categories Section --- */
.categories-section {
    background: white;
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.category-card {
    text-decoration: none;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    width: 28px;
    height: 28px;
    color: white;
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Category Color Gradients */
.cat-bestsellers {
    background: linear-gradient(135deg, #1d75ec, #42cbf8);
}

.cat-economy {
    background: linear-gradient(135deg, #fff, #fdfdfd);
}

.cat-classics {
    background: linear-gradient(135deg, #1d75ec, #42cbf8);
}

.cat-pickups {
    background: linear-gradient(135deg, #fff, #fdfdfd);
}

.cat-electric {
    background: linear-gradient(135deg, #1d75ec, #42cbf8);
}

.cat-no-tax {
    background: linear-gradient(135deg, #fff, #fdfdfd);
}

.cat-robust {
    background: linear-gradient(135deg, #1d75ec, #42cbf8);
}

.cat-family {
    background: linear-gradient(135deg, #fff, #fdfdfd);
}

@media (max-width: 900px) {
    .categories-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 30px 16px;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .category-card p {
        font-size: 0.85rem;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 15px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero.png') center/cover no-repeat fixed;
    color: white;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 24px;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: white;
    color: var(--accent-primary);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* --- Stats Section --- */
.stats-section {
    background: white;
}

/* --- Sections Common --- */
#carros,
#como-funciona,
#seguranca-section,
#depoimentos,
.cta-section {
    width: 100%;
}

#carros {
    background: var(--bg-primary);
}

#como-funciona {
    background: white;
}

#seguranca-section {
    background: white;
}

#depoimentos {
    background: #f0f9f2;
}

.cta-section {
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

/* --- Category Shelf Design --- */
.category-shelf {
    padding: 80px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.shelf-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.shelf-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #35bfef;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

.shelf-icon i {
    width: 28px;
    height: 28px;
}

.shelf-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shelf-info p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Category Themes (applied to .category-shelf) */
.cat-bestsellers {
    background-color: #f0f7ff;
}

.cat-bestsellers .shelf-icon {
    background: linear-gradient(135deg, #fff, #ffffffe0);
}

.cat-economy {
    background-color: #f0fff4;
}

.cat-economy .shelf-icon {
    background: linear-gradient(135deg, #f7f7f7, #fff);
}

.cat-classics {
    background-color: #fffaf0;
}

.cat-classics .shelf-icon {
    background: linear-gradient(135deg, #fff, #ffffffe0);
}

.cat-pickups {
    background-color: #fff5eb;
}

.cat-pickups .shelf-icon {
    background: linear-gradient(135deg, #f7f7f7, #fff);
}

.cat-electric {
    background-color: #f0fdff;
}

.cat-electric .shelf-icon {
    background: linear-gradient(135deg, #fff, #ffffffe0);
}

.cat-no-tax {
    background-color: #f8fafc;
}

.cat-no-tax .shelf-icon {
    background: linear-gradient(135deg, #f7f7f7, #fff);
}

.cat-robust {
    background-color: #f1f5f9;
}

.cat-robust .shelf-icon {
    background: linear-gradient(135deg, #fff, #ffffffe0);
}

.cat-family {
    background-color: #f5f3ff;
}

.cat-family .shelf-icon {
    background: linear-gradient(135deg, #f7f7f7, #fff);
}

.cat-suggestions {
    background-color: #f8f9fa;
}

.cat-suggestions .shelf-icon {
    background: linear-gradient(135deg, #fff, #ffffffe0);
}

/* Slider Component Layout */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-track .car-card {
    flex: 0 0 calc(33.333% - 16px);
    /* 3 cards on desktop */
    min-width: 0;
    /* Allow shrinking */
}

@media (max-width: 900px) {
    .slider-track .car-card {
        flex: 0 0 calc(50% - 12px);
        /* 2 cards on tablet/mobile */
        scroll-snap-align: start;
    }

    .slider-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .slider-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }
}

@media (max-width: 600px) {

    .slider-track .car-card {
        flex: 0 0 100%;
        /* 1 card on mobile */
    }
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0px;
    right: 0px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    height: 0;
}

@media (max-width: 1024px) {
    .slider-controls {
        left: 5px;
        right: 5px;
    }
}

.slider-controls .ctrl-btn {
    pointer-events: all;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

.slider-controls .ctrl-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.slider-controls .prev-btn:hover,
.slider-controls .next-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

/* --- Search Results Layout (Horizontal Cards) --- */

/* --- Search Results Layout (Horizontal Cards) --- */

.cars-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column list view */
    gap: 24px;
}

/* Horizontal Card - Scoped to Search Results (.cars-grid) */
.cars-grid .car-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    /* Vertical stack for main + details */
}

.cars-grid .car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cars-grid .card-main-content {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for image + info */
    gap: 24px;
    padding: 16px;
}

/* Image Section - Only for Search Grid */
.cars-grid .car-card .car-image {
    width: 340px;
    height: 340px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* --- Default Car Card (Vertical - for Sliders) --- */
.car-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card:not(.cars-grid .car-card):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    /* Reduced opacity */
}







/* Default Vertical Image */
.car-card .car-image {
    width: 100%;
    aspect-ratio: 4/3;
    /* Restore aspect ratio for vertical cards */
    height: auto;
    /* Let aspect-ratio handle it */
    position: relative;
    overflow: hidden;
}

.car-info {
    width: 100%;
}

/* Ensure horizontal logic doesn't leak */
.car-card:not(.cars-grid .car-card) .car-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.car-card .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Homepage Car Specs (2x2 Grid) */
.car-card:not(.cars-grid .car-card) .car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.car-card:not(.cars-grid .car-card) .spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.car-card:not(.cars-grid .car-card) .spec-item i {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    /* Lighter grey for icons */
}

/* Scoped styles for Search Results Page (.cars-grid) */
.cars-grid .info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.cars-grid .condition-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cars-grid .save-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cars-grid .save-btn:hover {
    color: var(--accent-primary);
}

.cars-grid .car-card .car-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: normal;
}

.cars-grid .mileage-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.cars-grid .car-card .car-price {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 800;
}

.cars-grid .monthly-payment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 16px;
    display: inline-block;
}

.cars-grid .deal-badge-purple {
    background-color: #f3e8ff;
    color: #9333ea;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    width: fit-content;
}

.cars-grid .dealer-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.cars-grid .dealer-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.cars-grid .dealer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cars-grid .dealer-rating svg {
    width: 16px;
    height: 16px;
    fill: #a855f7;
    color: #a855f7;
}

.cars-grid .dealer-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cars-grid .btn-check-availability {
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.cars-grid .btn-check-availability:hover {
    background-color: #128C7E;
    /* Darker Green */
}

/* Default Slider Card Styles (Restored) */
.car-card:not(.cars-grid .car-card) .car-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.car-card:not(.cars-grid .car-card) .car-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* Toggle & Expanded Details */
.card-details-toggle {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-details:hover {
    text-decoration: underline;
}

.card-details-expanded {
    padding: 0 16px 16px 16px;
    background: #f8fafc;
    display: none;
    /* Hidden by default */
}

.card-details-expanded.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-grid-section {
    margin-top: 24px;
}

.details-grid-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
}

.spec-row {
    display: flex;
    gap: 8px;
    font-size: 0.95rem;
}

.spec-label {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 100px;
}

.spec-value {
    color: var(--text-secondary);
}

.features-list {
    margin-top: 24px;
}

.feature-group {
    margin-bottom: 16px;
}

.feature-group strong {
    font-weight: 700;
    margin-right: 6px;
    color: var(--text-primary);
}

.feature-group span {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-main-content {
        flex-direction: column;
    }

    .car-card .car-image {
        width: 100%;
        height: 200px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .dealer-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-check-availability {
        width: 100%;
        text-align: center;
    }
}

.car-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #22c55e;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    z-index: 5;
}

.car-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-chip {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-chip.type {
    background: #f3e8ff;
    color: #7e22ce;
}

.meta-chip.km-warn {
    background: #ffedd5;
    color: #9a3412;
}

.recommendation-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.rec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 8px;
}

.rec-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.seller-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.seller-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seller-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-whatsapp {
    background: #0ea5e9;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-details-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-details-outline:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* --- Steps Grid --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 24px;
}

/* --- Security Grid --- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.security-card {
    background: #f8fafc;
    padding: 40px 24px;
    border-radius: 24px;
    text-align: center;
}

.security-icon-container {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.security-icon-container i {
    color: #0ea5e9;
    width: 28px;
    height: 28px;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #fbbf24;
}

.star-fill {
    fill: currentColor;
    width: 16px;
}

/* --- CTA Card --- */
.cta-card {
    padding: 80px 40px;
    background: linear-gradient(180deg, #1d75ec, #42cbf8);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}

/* --- Footer --- */
footer {
    background: var(--bg-secondary);
    padding: 80px 20px 40px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 32px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .car-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    header {
        width: calc(100% - 32px);
    }

    .search-section .container {
        margin: -60px 15px 0;
    }

    .search-title {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rotating-text {
        display: block;
        font-size: 1.3rem;
    }

    .search-action-group {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;

    }

    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
    }

    .filter-btn {
        flex: 0 0 auto;
    }



    .car-card {
        flex: 0 0 100%;
    }

    .sidebar-menu {
        width: 100%;
        max-width: none;
        left: 0;
        transform: none;
        border-radius: 0 0 20px 20px;
    }

    .states-list {
        grid-template-columns: 1fr;
    }

    /* Fix for Search Results on Mobile */
    .cars-grid .card-main-content {
        flex-direction: column;
        padding: 0;
    }

    .cars-grid .car-card .car-image {
        width: 100%;
        height: 220px;
        border-radius: 0;
    }

    .cars-grid .car-info {
        padding: 16px;
    }

    .cars-grid .info-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cars-grid .dealer-section {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- New Car Card Actions Styles --- */

/* Clickable Details Toggle */
.card-details-toggle {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--accent-primary);
    user-select: none;
}

.card-details-toggle:hover {
    background: #f1f5f9;
}

.card-details-toggle.active {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Save Button Active State */
.save-btn {
    /* Ensure base styles if missing */
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.save-btn.active {
    background: rgba(13, 111, 236, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.save-btn.active i {
    fill: currentColor;
}

/* WhatsApp Button Full Width */
.btn-check-availability {
    width: 100%;
    margin-top: 12px;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-check-availability:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.dealer-section {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* --- Meus Salvos & Comparar Page Styles --- */

/* Saved & Comparison Sidebar */
.saved-sidebar-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 15px;
}

.saved-sidebar-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.saved-sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.saved-sidebar-content li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.saved-sidebar-content li i {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Saved Page Actions */
.btn-delete-saved {
    background: none;
    border: none;
    color: #ef4444;
    /* Red color */
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-saved:hover {
    background: #fee2e2;
}

.saved-card-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Compare Checkbox */
.compare-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.compare-checkbox-wrapper:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.compare-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-fancy {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.compare-checkbox-wrapper:hover input~.checkmark-fancy {
    border-color: #94a3b8;
}

.compare-checkbox-wrapper input:checked~.checkmark-fancy {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}

.checkmark-fancy:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.compare-checkbox-wrapper input:checked~.checkmark-fancy:after {
    display: block;
}

/* Comparison Page Styles */
.saved-selection-section {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.saved-selection-section .section-header {
    margin-bottom: 24px;
}

.saved-selection-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.saved-selection-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.saved-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.selection-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.selection-card:hover {
    border-color: var(--accent-primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.selection-img {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.selection-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.selection-info h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.selection-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-select-car {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-select-car.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.btn-select-car:not(.active):hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.comparison-criteria-section {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.criteria-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.criteria-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.criteria-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid transparent;
}

.criteria-tag.active {
    background: #eff6ff;
    color: var(--accent-primary);
    border-color: #bfdbfe;
    font-weight: 500;
}

.criteria-tag input {
    display: none;
}

/* Modern Comparison Grid */
.comparison-grid-modern {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 24px;
}

.comparison-labels {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.label-spacer {
    height: 180px;
    border-bottom: 1px solid #e2e8f0;
}

.criteria-label {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid #e2e8f0;
}

.comparison-item-column {
    flex: 1;
    min-width: 250px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.comparison-item-column:last-child {
    border-right: none;
}

.item-header {
    height: 180px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.btn-change-item {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-item:hover {
    background: var(--bg-primary);
    color: var(--accent-primary);
    transform: rotate(180deg);
}

.item-img {
    height: 100px;
    margin-bottom: 12px;
}

.item-img img {
    height: 100%;
    object-fit: contain;
}

.item-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.item-value {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.item-value.highlight {
    background: #f0fdf4;
    font-weight: 700;
    color: #15803d;
}

.comparison-item-column.placeholder {
    background: #f8fafc;
    justify-content: center;
    align-items: center;
}

.btn-add-comparison {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-comparison i {
    width: 48px;
    height: 48px;
}

.btn-add-comparison:hover {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

@media (max-width: 900px) {
    .saved-selection-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid-modern {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .comparison-labels {
        display: none;
    }

    .comparison-item-column {
        border-right: none;
        border-bottom: 8px solid #f1f5f9;
    }

    .item-value::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: auto;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }
}

.compare-instructions li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.compare-instructions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.slot-header img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.slot-content {
    padding: 20px;
}

.slot-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.slot-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row.highlight {
    background: #f0fdf4;
    /* Green tint for winner */
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
    margin-left: -8px;
    margin-right: -8px;
    font-weight: 600;
    color: #15803d;
}

.spec-label {
    color: var(--text-secondary);
}

.btn-remove-slot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.btn-remove-slot:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* --- Mobile Active Filters Bottom Bar --- */
.mobile-active-filters-bar {
    display: none;
    /* Hidden by default (on desktop) */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 12px;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling iOS */
    cursor: grab;
    /* Visual hint */
    /* Hide scrollbar Firefox */
}

.active-filters-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.active-filter-chip {
    flex: 0 0 auto;
    background: #eff6ff;
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bfdbfe;
}

.btn-mobile-open-filters {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-active-filters-bar {
        display: flex;
    }

    /* Hide the old FAB if we are using this bar */
    .mobile-filter-fab {
        display: none !important;
    }

    /* Add padding to body/main to prevent content from being hidden behind valid bar */
    .results-main {
        padding-bottom: 120px;
    }
}

/* --- New Compare Button Style --- */
.btn-go-compare {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    /* Brand gradient */
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(13, 65, 225, 0.2);
    margin-left: 12px;
}

.btn-go-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(13, 65, 225, 0.3);
}

.btn-go-compare:active {
    transform: translateY(0);
}

/* --- Floating Chatbot Button --- */
.floating-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-chatbot:hover {
    transform: translateY(-5px) scale(1.05);
}

.floating-chatbot i {
    width: 20px;
    height: 20px;
}

/* --- Category Filters (Results Page) --- */
.category-filters-wrapper {
    margin-bottom: 32px;
    display: inline-grid;

}

.category-filters-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 5px;
    overflow-x: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    user-select: none;
}

.category-filters-scroll.active {
    cursor: grabbing;
}

.category-filters-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-filters-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.category-filters-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Desktop: 1 row by default */
/* Media queries removed */

/* Button styles removed */



.category-filter-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.category-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-primary);
}

.category-filter-btn i {
    width: 20px;
    height: 20px;
}

.category-filter-btn span {
    font-size: 1.0rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Category Specific Styles */
.cat-familia {
    background: rgba(245, 158, 11, 0.79);
    border-color: rgba(245, 158, 11, 0.1);
}

.cat-familia i {
    color: #f59e0b;
}

.cat-uber {
    background: rgba(16, 185, 129, 0.71);
    border-color: rgba(16, 185, 129, 0.1);
}

.cat-uber i {
    color: #10b981;
}

.cat-uber-black {
    background: rgba(17, 24, 39, 0.4);
    border-color: rgba(17, 24, 39, 0.1);
}

.cat-uber-black i {
    color: #111827;
}

.cat-lazer {
    background: rgba(236, 72, 153, 0.49);
    border-color: rgba(236, 72, 153, 0.1);
}

.cat-lazer i {
    color: #ec4899;
}

.cat-trabalho {
    background: rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.1);
}

.cat-trabalho i {
    color: #3b82f6;
}

.cat-economia {
    background: rgba(132, 204, 22, 0.6);
    border-color: rgba(132, 204, 22, 0.1);
}

.cat-economia i {
    color: #84cc16;
}

.cat-conforto {
    background: rgba(99, 102, 241, 0.48);
    border-color: rgba(99, 102, 241, 0.1);
}

.cat-conforto i {
    color: #6366f1;
}

.cat-seguranca {
    background: rgba(113, 239, 68, 0.45);
    border-color: rgba(239, 68, 68, 0.1);
}

.cat-seguranca i {
    color: #ef4444;
}

.cat-desempenho {
    background: rgba(244, 63, 94, 0.71);
    border-color: rgba(244, 63, 94, 0.1);
}

.cat-desempenho i {
    color: #f43f5e;
}

.cat-classicos {
    background: rgba(124, 58, 237, 0.49);
    border-color: rgba(124, 58, 237, 0.1);
}

.cat-classicos i {
    color: #7c3aed;
}

.cat-sem-ipva {
    background: rgba(20, 184, 166, 0.52);
    border-color: rgba(20, 184, 166, 0.1);
}

.cat-sem-ipva i {
    color: #14b8a6;
}

.cat-eletricos {
    background: rgba(6, 182, 212, 0.49);
    border-color: rgba(6, 182, 212, 0.1);
}

.cat-eletricos i {
    color: #06b6d4;
}

/* Car Card Updates */

.btn-more-details-container {
    width: 100%;
    display: inline-flex;
    vertical-align: top;
    align-items: center;
    border-radius: 30px;
    border: 3px solid #005db9;
    background: url("assets/plus.svg") #005db9 no-repeat center;
    background-size: 30px;
    background-position-x: left 15px;
}

.btn-more-details-container:hover {
    background: url("assets/plus.svg") #005db9 no-repeat center;
    background-size: 30px;
    background-position-x: right 15px;
    transition: background-position-x 0.2s;

}

.btn-more-details {
    width: 100%;
    padding: 15px 24px 14px 24px;
    background: #08b6f6;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.4);
    margin-left: 53px;
}

.btn-more-details:hover {
    transform: translateX(-52px);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-more-details i {
    width: 20%;
    height: 100%;
    background: #07c8f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    order: 2;
}

.btn-more-details:hover i {
    transform: scale(1.4);
}

.btn-more-details i {
    width: 18px;
    height: 18px;
}





/* Save Button Heart Polish */
.save-btn.active {
    color: #0d41e1;
    border-color: #0d41e1;
    background: rgba(13, 65, 225, 0.05);
}

.save-btn.active i {
    fill: #0d41e1;
}

/* Page Car Card Specs Layout */
.cars-grid .car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    width: 100%;
}

.cars-grid .spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cars-grid .spec-item i {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.results-count {
    margin-top: 16px;
    margin-bottom: 24px;
    font-size: 1.0em;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .floating-chatbot span {
        display: none;
    }

    .floating-chatbot {
        padding: 12px;
        bottom: 140px;
        right: 20px;
    }
}

/* Photo Upload Styles */
.photo-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
}

.photo-upload-container:hover {
    border-color: var(--accent-primary);
    background: #eff6ff;
}

.photo-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.photo-tips {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.photo-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.tip-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    color: var(--accent-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tip-card span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   PAGINA: BUSCANDO CARRO
   ========================================= */
.category-filters-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.category-filters-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-filters-scroll.active {
    cursor: grabbing;
}

/* =========================================
   PAGINA: DETALHES CARRO
   ========================================= */
.detail-page {
    padding-top: 100px;
    background: #f8fafc;
}

.gallery-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-main);
    height: 500px;
}

.main-image {
    height: 100%;
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.side-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.side-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.side-images img:hover {
    opacity: 0.9;
}

.more-images-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 1;
    transition: background 0.3s ease;
}

.more-images-container:hover .more-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-header h3 {
    font-family: var(--font-heading);
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-close-modal:hover {
    background: #f1f5f9;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.modal-img-wrapper {
    cursor: pointer;
    height: 300px;
}

.modal-img-wrapper.full-width {
    grid-column: span 2;
    height: 500px;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    z-index: 3001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-weight: 600;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.detail-main {
    background: transparent;
}

.vehicle-header {
    margin-bottom: 32px;
}

.vehicle-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vehicle-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.badge-detail {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e2e8f0;
    color: var(--text-primary);
}

.badge-premium {
    background: #fef3c7;
    color: #92400e;
}

.info-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-row-detail {
    display: contents;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row-detail .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spec-row-detail .value {
    font-weight: 600;
    color: var(--text-primary);
}

.features-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-chip-active {
    padding: 8px 16px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Info Box */
.detail-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    border: 1px solid #f1f5f9;
}

.price-tag-large {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.monthly-estimate {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: block;
}

.btn-buy {
    width: 100%;
    padding: 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.btn-buy:hover {
    transform: translateY(-2px);
}

.btn-contact-dealer {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dealer-box-detail {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.dealer-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.dealer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-image {
        height: 300px;
    }

    .side-images {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        margin-top: 32px;
    }

    .modal-img-wrapper {
        height: 200px;
    }

    .modal-img-wrapper.full-width {
        height: 250px;
    }

    .lightbox-nav {
        padding: 10px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    /* Fix detail-main on mobile */
    .detail-main {
        width: 100%;
        overflow-x: hidden;
    }

    .info-card {
        padding: 20px;
    }

    .vehicle-header h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    .vehicle-badges {
        flex-wrap: wrap;
    }
}

/* =========================================
   PAGINA: VENDER CARRO
   ========================================= */
.vender-container {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
}

.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-pill.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(13, 65, 225, 0.1);
}

.step-pill.completed {
    background: #10b981;
    color: white;
}

.vender-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.vender-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vender-step h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(13, 65, 225, 0.1);
    outline: none;
}

.toggle-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background: #f8fafc;
}

.plate-preview {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    display: none;
}

.plate-preview.show {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-icon {
    width: 48px;
    height: 48px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.preview-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.selectable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.selectable-item {
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.selectable-item:hover {
    border-color: var(--accent-primary);
    background: #f1f5f9;
}

.selectable-item.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.vender-nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.btn-prev {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-next {
    padding: 12px 32px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 65, 225, 0.2);
}

.fipe-box {
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    color: white;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 20px;
}

.fipe-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

@media (max-width: 768px) {
    .vender-container {
        margin: 80px 20px 40px;
        padding: 24px;
    }

    .selectable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Dashboard Styles --- */
:root {
    --dashboard-bg: #f8fafc;
    --sidebar-width: 280px;
    --card-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.dashboard-layout {
    display: block;
    /* Changed from flex */
    min-height: 100vh;
    background: var(--dashboard-bg);
    padding-top: 70px;
    /* Space for the fixed header */
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--glass-border);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.dashboard-sidebar .logo {
    margin-bottom: 48px;
    padding-left: 12px;
}

.dashboard-sidebar .logo img {
    height: 28px;
}

.nav-group {
    margin-bottom: 32px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-left: 12px;
}

.nav-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link i {
    width: 20px;
    height: 20px;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-primary);
    color: white;
}

.nav-link.active i {
    color: white;
}

.dashboard-main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 60px 40px;
    background: #3dd8ff2b;
    min-height: calc(100vh - 100px);
    border-radius: 30px;
}

/* --- Fancy Horizontal Tabs Container --- */
.dashboard-nav-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 57px;
    z-index: 100;
}

/* Mobile Tab Selector Button (Hidden on Desktop) */
.mobile-tab-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: #00bfff;
    border-radius: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.mobile-tab-toggle i {
    transition: transform 0.3s ease;
}

.mobile-tab-toggle.active i:last-child {
    transform: rotate(180deg);
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgb(61, 216, 255);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Tab Content Panes */
.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    color: #005db9;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
}

.tab-link i {
    width: 18px;
    height: 18px;
}

.tab-link:hover {
    color: var(--accent-primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-link.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 12px 25px rgba(0, 93, 185, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-link.active i {
    color: white;
}

/* Tab Colors Customization */
.tab-link.active[data-color="blue"] {
    background: var(--accent-primary);
    box-shadow: 0 12px 25px rgba(0, 93, 185, 0.35);
}

.tab-link.active[data-color="green"] {
    background: #22c55e;
    box-shadow: 0 12px 25px rgba(34, 197, 94, 0.35);
}

.tab-link.active[data-color="orange"] {
    background: #f97316;
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
}

.tab-link.active[data-color="purple"] {
    background: #9333ea;
    box-shadow: 0 12px 25px rgba(147, 51, 234, 0.35);
}

.tab-link.active[data-color="red"] {
    background: #ef4444;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.35);
}

@media (max-width: 991px) {
    .dashboard-nav-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0;
        top: 57px;
    }

    .mobile-tab-toggle {
        display: flex;
    }

    .dashboard-tabs {
        position: absolute;
        top: calc(100% + 10px);
        left: 0px;
        right: 0px;
        width: calc(100% - 0px);
        flex-direction: column;
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .dashboard-nav-wrapper.active .dashboard-tabs {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .tab-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
    }

    .dashboard-main {
        padding: 20px;
    }
}

.dashboard-header {
    /* Reset all global header properties */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 10 !important;
    height: auto !important;
}

.dashboard-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard-title p {
    color: var(--text-secondary);
}

.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    box-shadow: var(--card-shadow-soft);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--card-shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(13, 65, 225, 0.1);
    color: var(--accent-primary);
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-icon.purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.stat-info .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-info .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.content-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--card-shadow-soft);
    padding: 32px;
    margin-bottom: 40px;
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.content-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.data-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    font-weight: 600;
}

.car-thumb-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.car-thumb-cell img {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.status-badge.sold {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.btn-boost {
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-boost:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-boost::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 40px 20px;
    }
}

/* --- Dashboard Utility Classes --- */
.d-flex {
    display: flex;
    white-space: nowrap;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.gap-24 {
    gap: 24px;
}

.gap-30 {
    gap: 30px;
}

.gap-32 {
    gap: 32px;
}

.w-100 {
    width: 100%;
}

.w-70-pct {
    width: 70%;
}

.w-16 {
    width: 16px;
}

.w-18 {
    width: 18px;
}

.w-200 {
    width: 200px;
}

.w-20 {
    width: 20px;
}

.w-64 {
    width: 64px;
}

.h-48 {
    height: 48px;
}

.h-64 {
    height: 64px;
}

.w-48 {
    width: 48px;
}

.max-w-600 {
    max-width: 600px;
}

.w-80 {
    width: 80px;
}

.h-80 {
    height: 80px;
}

.text-center {
    text-align: center;
}

.text-dark {
    color: #0f172a !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-blue-dark {
    color: #0369a1 !important;
}

.text-blue-deep {
    color: #0c4a6e !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-accent {
    color: var(--accent-primary) !important;
}

.text-red {
    color: var(--accent-red) !important;
}

.ff-heading {
    font-family: var(--font-heading);
}

.fw-500 {
    font-weight: 500;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fs-085 {
    font-size: 0.85rem;
}

.fs-09 {
    font-size: 0.9rem;
}

.fs-075 {
    font-size: 0.75rem;
}

.fs-2rem {
    font-size: 2rem;
}

.fs-25rem {
    font-size: 2.5rem;
}

.m-0-auto {
    margin: 0 auto;
}

.m-0-auto-40 {
    margin: 0 auto 40px;
}

.m-12-auto-0 {
    margin: 12px auto 0;
}

.mb-4 {
    margin-bottom: 4px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-4 {
    margin-top: 4px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-auto {
    margin-left: auto;
}

.left-0 {
    left: 0;
}

.left-70 {
    left: 70%;
}

.p-8-16 {
    padding: 8px 16px;
}

.p-10-20 {
    padding: 10px 20px;
}

.p-20 {
    padding: 20px;
}

.p-top-0 {
    padding-top: 0 !important;
}

.p-24 {
    padding: 24px;
}

.p-12-32 {
    padding: 12px 32px;
}

.p-30 {
    padding: 30px;
}

.p-40 {
    padding: 40px;
}

.bg-white {
    background: white;
}

.bg-dark {
    background: var(--text-primary) !important;
}

.bg-gray-soft {
    background: #f8fafc;
}

.bg-blue-accent {
    background: #08b6f6;
}

.bg-blue-light {
    background: #f0f9ff;
}

.bg-red-light {
    background: #fff5f5;
}

.bg-blue-light {
    background: #f0f9ff;
}

.bg-gray-light {
    background: #f1f5f9;
}

.bg-accent {
    background: var(--accent-primary) !important;
}

.bg-red {
    background: var(--accent-red) !important;
}

.bg-green {
    background: var(--accent-green) !important;
}

.opacity-01 {
    opacity: 0.1;
}

.opacity-02 {
    opacity: 0.2;
}

.opacity-05 {
    opacity: 0.5;
}

.opacity-0 {
    opacity: 0;
}

.br-10 {
    border-radius: 10px;
}

.br-12 {
    border-radius: 12px;
}

.br-16 {
    border-radius: 16px;
}

.br-20 {
    border-radius: 20px;
}

.br-50 {
    border-radius: 50px;
}

.border-ddd {
    border: 1px solid #ddd;
}

.border-1 {
    border: 1px solid var(--border-color);
}

.border-primary {
    border: 2px solid var(--accent-primary) !important;
}

.border-blue-soft {
    border: 1px solid #bae6fd;
}

.border-top-none {
    border-top: none !important;
}

.border-bottom-none {
    border-bottom: none !important;
}

.d-inline-block {
    display: inline-block;
}

.border-none {
    border: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.dashboard-card-wide {
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-card-admin {
    max-width: 900px;
}

.dashboard-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 93, 185, 0.1);
    outline: none;
}

.dashboard-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

/* --- DASHBOARD SPECIFIC STYLES --- */

/* Charts Layout (Loja Panel) */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--card-shadow-soft);
    height: 350px;
    position: relative;
}

.chart-container h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Activity Items (Admin Panel) */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.plus {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.activity-icon.user {
    background: rgba(13, 65, 225, 0.1);
    color: #0d41e1;
}

.activity-icon.alert {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.activity-desc strong {
    font-weight: 700;
}

.activity-desc .time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- LOGIN PAGE STYLES --- */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header img {
    height: 32px;
    margin-bottom: 24px;
}

.login-header h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.role-option {
    cursor: pointer;
    text-align: center;
}

.role-option input {
    display: none;
}

.role-box {
    padding: 16px 8px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role-box i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.role-box span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.role-option input:checked+.role-box {
    background: rgba(13, 65, 225, 0.05);
    border-color: var(--accent-primary);
}

.role-option input:checked+.role-box i,
.role-option input:checked+.role-box span {
    color: var(--accent-primary);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: #f8fafc;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(13, 65, 225, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #0d41e1, #07c8f9);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 65, 225, 0.3);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.back-home {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

@media (max-width: 600px) {
    .login-card {
        padding: 32px 24px;
    }

    .back-home {
        top: 20px;
        left: 20px;
    }
}

/* --- Support for extra sliders --- */
.slider-track .testimonial-card,
.slider-track .usecase-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

@media (max-width: 900px) {

    .slider-track .testimonial-card,
    .slider-track .usecase-card {
        flex: 0 0 calc(50% - 12px);
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {

    .slider-track .testimonial-card,
    .slider-track .usecase-card {
        flex: 0 0 100%;
    }
}

/* --- Use Case Cards --- */
.usecase-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.usecase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.usecase-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.usecase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.usecase-card:hover .usecase-image img {
    transform: scale(1.05);
}

.usecase-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 93, 185, 0.2);
}

.usecase-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.usecase-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.usecase-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-usecase-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.btn-usecase-action:hover {
    gap: 12px;
}

.btn-usecase-action i {
    width: 16px;
    height: 16px;
}


/* --- Break Banner --- */
.break-banner {
    padding: 80px 0;
    background: #f1f5f9;
}

.break-banner-content {
    background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.break-banner-text {
    flex: 1;
    z-index: 2;
}

.break-badge {
    background: rgba(0, 195, 250, 0.15);
    color: var(--accent-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.break-banner-text h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.break-banner-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
}

.break-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.break-banner-visual {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.floating-symbol {
    width: 100%;
    max-width: 180px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 900px) {
    .break-banner-content {
        flex-direction: column;
        padding: 40px;
        text-align: center;
        gap: 30px;
    }

    .break-banner-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .break-actions {
        justify-content: center;
    }

    .break-banner-visual {
        flex: none;
        max-width: 120px;
    }
}

/* --- consultor --- */

.consultant-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.consultant-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

.consultant-info-box {
    background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
    color: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.consultant-info-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.consultant-info-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-channel i {
    color: var(--accent-secondary);
    width: 24px;
    height: 24px;
}

.contact-channel div h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-channel div p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.form-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 93, 185, 0.1);
}

.btn-submit {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #004da1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 93, 185, 0.2);
}

.btn-whatsapp-direct {
    background: #25d366;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-direct:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

@media (max-width: 900px) {
    .consultant-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Termos de uso --- */
.terms-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.terms-content {
    max-width: 800px;
    margin: 40px auto 0;
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.terms-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
}

.terms-content h2:first-of-type {
    margin-top: 0;
}

.terms-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.terms-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.faq-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(0, 195, 250, 0.3);
    box-shadow: 0 10px 25px rgba(0, 195, 250, 0.05);
}

summary {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
    border-top-color: var(--border-color);
    padding-top: 20px;
}

/* --- segurança --- */

.safety-page {
    padding: 80px 0;
    background: var(--bg-primary);
}

.safety-header {
    text-align: center;
    margin-bottom: 60px;
}

.safety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.safety-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 195, 250, 0.2);
}

.safety-icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(0, 195, 250, 0.1);
    color: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.safety-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.safety-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .safety-grid {
        grid-template-columns: 1fr;
    }
}

/* ---veiculos --- */
.catalog-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0, 93, 185, 0.2);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card.hidden {
    display: none;
}

/* ---processo --- */

.process-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--accent-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 24px;
    background-color: white;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.timeline-container:hover::after {
    background-color: var(--accent-secondary);
    transform: scale(1.2);
}

.timeline-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 93, 185, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-container::after {
        left: 21px;
        right: auto;
    }

    .right {
        left: 0;
    }
}


/* --- Enhanced Premium Security Section --- */
#seguranca {
    background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

#seguranca::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 195, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

#seguranca .section-title h2 {
    color: white !important;
    font-size: 2.25rem;
    font-weight: 800;
}

#seguranca .section-title p {
    color: rgba(255, 255, 255, 0.7) !important;
}

#seguranca .security-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

#seguranca .security-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 195, 250, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 195, 250, 0.1);
}

#seguranca .security-icon-container {
    background: linear-gradient(135deg, rgba(0, 93, 185, 0.2) 0%, rgba(0, 195, 250, 0.2) 100%);
    border: 1px solid rgba(0, 195, 250, 0.2);
    width: 56px;
    height: 56px;
    margin: 0 0 24px 0;
    /* Align left */
    box-shadow: none;
}

#seguranca .security-icon-container i {
    color: var(--accent-secondary);
}

#seguranca .security-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

#seguranca .security-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.slider-track .testimonial-card {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}