/* ====================================
   MERCADO ABERTO ACDB - DESIGN SYSTEM
   Convertido do React/Tailwind para CSS Puro
   ==================================== */

/* ====================================
   CSS VARIABLES - DESIGN TOKENS
   ==================================== */

:root {
    /* ACDB Brand Colors - Official Palette */
    /* Primary: Azul Escuro #102335 (CMYK: 100C - 80M - 50Y - 60K) */
    --primary: hsl(210, 58%, 13%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-dark: hsl(210, 58%, 10%);
    --primary-light: hsl(210, 58%, 16%);
    
    /* Secondary: Dourado/Bronze #C59A1D (CMYK: 20C - 35M - 95Y - 10K) */
    --secondary: hsl(45, 76%, 44%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --secondary-dark: hsl(45, 76%, 38%);
    
    --accent: hsl(200, 50%, 65%);
    --accent-foreground: hsl(210, 40%, 98%);
    
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(210, 15%, 45%);
    
    /* Background & surfaces */
    /* Background: Creme #FFFDF4 (CMYK: 00C - 00M - 06Y - 00K) */
    --background: hsl(60, 100%, 98%);
    --foreground: hsl(210, 58%, 13%);
    
    --card: hsl(60, 100%, 98%);
    --card-foreground: hsl(210, 58%, 13%);
    
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(210, 20%, 15%);
    
    /* Interactive elements */
    --border: hsl(210, 20%, 90%);
    --input: hsl(210, 20%, 96%);
    --ring: hsl(180, 36%, 76%);
    
    /* Status colors */
    --destructive: hsl(0, 75%, 55%);
    --destructive-foreground: hsl(210, 40%, 98%);
    
    --success: hsl(120, 60%, 45%);
    --success-foreground: hsl(210, 40%, 98%);
    
    --warning: hsl(45, 90%, 55%);
    --warning-foreground: hsl(210, 40%, 98%);
    
    /* Collection rating colors */
    --bronze: hsl(30, 65%, 55%);
    --silver: hsl(0, 0%, 70%);
    --gold: hsl(45, 90%, 60%);
    --platinum: hsl(270, 60%, 75%);
    
    /* Premium gradients - ACDB Official */
    --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary));
    --gradient-hero: linear-gradient(135deg, var(--primary-light), var(--primary));
    --gradient-card: linear-gradient(to bottom, var(--card), var(--muted));
    --gradient-premium: linear-gradient(135deg, var(--primary), var(--primary-dark));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(16, 35, 53, 0.1);
    --shadow-md: 0 4px 12px rgba(16, 35, 53, 0.15);
    --shadow-lg: 0 8px 24px rgba(16, 35, 53, 0.2);
    --shadow-premium: 0 8px 32px rgba(197, 154, 29, 0.3);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Font */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====================================
   RESET & BASE
   ==================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

.text-muted {
    color: var(--muted-foreground);
}

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

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

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

/* Tamanhos de texto adicionais */
.text-4xl { font-size: 2.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-2xl { font-size: 1.5rem; }

/* Pesos de fonte adicionais */
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ====================================
   LAYOUT - CONTAINER
   ==================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.min-h-screen {
    min-height: 100vh;
}

/* ====================================
   GRID SYSTEM
   ==================================== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ====================================
   NAVBAR
   ==================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .navbar-inner {
        padding: 0 2rem;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.navbar-logo-text h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.navbar-logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-mobile-btn {
    display: flex;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .navbar-mobile-btn {
        display: none;
    }
}

/* Mobile Menu */
.navbar-mobile-menu {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.navbar-mobile-menu.open {
    display: block;
}

.navbar-mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.navbar-mobile-menu a:hover {
    color: var(--primary);
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-dropdown-trigger:hover {
    background: var(--muted);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 14rem;
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.user-dropdown-content.open {
    display: block;
}

.user-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-header p {
    font-size: 0.875rem;
}

.user-dropdown-header .user-name {
    font-weight: 500;
}

.user-dropdown-header .user-email {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-dropdown-item:hover {
    background: var(--muted);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 4rem 0;
}

/* Com banners: banner acima (3:1, full width), pesquisa abaixo – proporção comum de mercado */
.hero--com-banners {
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.hero--com-banners .hero-carousel {
    position: relative;
    width: 100%;
    margin-left: 0;
    aspect-ratio: 3 / 1;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 0;
}

.hero--com-banners .hero-content-wrapper {
    padding-top: 2rem;
}

@media (min-width: 1024px) {
    .hero--com-banners .hero-content-wrapper {
        padding-top: 3rem;
    }
}

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

/* Carrossel de banners (tela Comprar) – sem banners: oculto; com banners: bloco acima (3:1) */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.hero-carousel-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }

    .hero--com-banners {
        padding-top: 0;
    }
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 2.25rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.search-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .search-box-inner {
        flex-direction: row;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.search-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 35, 53, 0.1);
}

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

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(16, 35, 53, 0.2);
    text-align: center;
}

.quick-action-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.quick-action-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.quick-action-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Button variants */
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    opacity: 0.9;
}

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

.btn-outline:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background: var(--muted);
}

.btn-destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-destructive:hover {
    opacity: 0.9;
}

/* Premium buttons */
.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-hero:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.btn-premium {
    background: var(--gradient-premium);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-premium);
    font-weight: 600;
}

.btn-premium:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

/* ====================================
   CARDS
   ==================================== */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

.card-vehicle {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.card-vehicle:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.card-premium {
    background: var(--gradient-card);
    border: 2px solid rgba(16, 35, 53, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

/* Vehicle Card specific */
.vehicle-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-vehicle:hover .vehicle-card-image img,
.card-premium:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vehicle-card-favorite {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.vehicle-card-favorite:hover {
    background: rgba(255, 255, 255, 0.9);
}

.vehicle-card-favorite svg {
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
}

.vehicle-card-favorite.active svg {
    color: var(--destructive);
    fill: var(--destructive);
}

.vehicle-card-body {
    padding: 1rem;
}

.vehicle-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.card-vehicle:hover .vehicle-card-title,
.card-premium:hover .vehicle-card-title {
    color: var(--primary);
}

.vehicle-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.vehicle-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.vehicle-card-info-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vehicle-card-info-item svg {
    width: 1rem;
    height: 1rem;
}

.vehicle-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.vehicle-card-location svg {
    width: 1rem;
    height: 1rem;
}

/* ====================================
   BADGES
   ==================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-vip {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-rating {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.rating-bronze {
    background: hsl(30, 65%, 50%);
    color: white;
}

.rating-silver {
    background: hsl(0, 0%, 70%);
    color: var(--primary);
}

.rating-gold {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.rating-platinum {
    background: linear-gradient(135deg, hsl(45, 76%, 44%), hsl(45, 90%, 55%));
    color: var(--secondary-foreground);
}

/* ====================================
   FILTERS SIDEBAR
   ==================================== */

.filters-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.filters-header svg {
    width: 1.25rem;
    height: 1.25rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 35, 53, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.filter-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: var(--radius-full);
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.filter-checkbox:hover {
    color: var(--foreground);
}

.filter-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 500;
}

/* ====================================
   SUBSCRIPTION PLANS
   ==================================== */

.subscription-section {
    padding: 4rem 0;
    background: var(--muted);
}

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

.subscription-header h2 {
    margin-bottom: 1rem;
}

.subscription-header p {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.subscription-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .subscription-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.plan-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    box-shadow: var(--shadow-md);
}

.plan-card.featured {
    background: var(--gradient-card);
    border: 2px solid rgba(16, 35, 53, 0.2);
    box-shadow: var(--shadow-md);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-premium);
    color: var(--primary-foreground);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.plan-card.featured .plan-icon {
    color: var(--gold);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.plan-features {
    margin: 1.5rem 0;
    text-align: left;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.plan-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
    flex-shrink: 0;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: var(--primary-dark);
    color: var(--primary-foreground);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-brand img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.footer-brand-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

.footer-brand-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-foreground);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item svg {
    width: 1rem;
    height: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--primary-foreground);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ====================================
   VEHICLE LISTING SECTION
   ==================================== */

.listing-section {
    padding: 3rem 0;
}

.listing-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .listing-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.listing-header h2 {
    margin-bottom: 0.25rem;
}

.listing-count {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .listing-layout {
        grid-template-columns: 280px 1fr;
    }
}

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

@media (min-width: 768px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.listing-sort label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.listing-load-more {
    text-align: center;
    margin-top: 3rem;
}

/* ====================================
   VEHICLE DETAILS PAGE
   ==================================== */

.details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .details-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--muted-foreground);
}

/* Gallery */
.gallery-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.9);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.gallery-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gallery-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-indicator.active {
    background: var(--primary);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.gallery-thumb {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details sections */
.details-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.details-section-title svg {
    width: 1.25rem;
    height: 1.25rem;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.details-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.details-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
}

.details-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.details-meta-item svg {
    width: 1rem;
    height: 1rem;
}

.details-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.details-rating svg {
    width: 1rem;
    height: 1rem;
    color: var(--gold);
    fill: var(--gold);
}

.separator {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.specs-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.specs-label {
    font-weight: 500;
    text-transform: capitalize;
}

.specs-value {
    color: var(--muted-foreground);
}

/* Sidebar */
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seller-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: rgba(16, 35, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
}

.seller-name {
    font-weight: 600;
}

.seller-stats {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.seller-stats svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--gold);
    fill: var(--gold);
}

.similar-vehicle {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.similar-vehicle:hover {
    background: var(--muted);
}

.similar-vehicle img {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius);
    object-fit: cover;
}

.similar-vehicle-info {
    flex: 1;
    min-width: 0;
}

.similar-vehicle-title {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-vehicle-location {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.similar-vehicle-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* ====================================
   FORMS
   ==================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 35, 53, 0.1);
}

.form-textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--destructive);
    margin-top: 0.25rem;
}

/* ====================================
   UTILITIES
   ==================================== */

.hidden { display: none !important; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-24 { padding-top: 6rem; } /* Para compensar navbar fixo */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-lg); }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Espaçamento vertical entre filhos */
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-0\.5 > * + * { margin-top: 0.125rem; }

/* Visibilidade responsiva */
.hidden-mobile { display: none; }
.hidden-desktop { display: block; }

@media (min-width: 768px) {
    .hidden-mobile { display: block; }
    .hidden-desktop { display: none; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
}

/* Opacidade com variáveis */
.bg-primary-10 { background-color: rgba(16, 35, 53, 0.1); }
.bg-muted-50 { background-color: rgba(0, 0, 0, 0.05); }

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* ====================================
   COMPONENTES ESPECÍFICOS
   ==================================== */

/* Error Page (404) */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 35, 53, 0.05), var(--background));
    padding: 2rem 1rem;
}

#error-actions {
    flex-direction: column;
}

@media (min-width: 640px) {
    #error-actions {
        flex-direction: row;
    }
}

.error-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.error-page .btn i {
    font-size: 1rem;
}

.error-icon-wrapper {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
}

.error-icon {
    font-size: 3rem;
    color: var(--primary);
}

.error-message-title {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .error-message-title {
        font-size: 1.875rem;
    }
}

.error-message-text {
    max-width: 28rem;
    margin: 0 auto;
}

.error-suggestions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.error-suggestions-text {
    font-size: 0.875rem;
}

.error-link {
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.error-link:hover {
    text-decoration: underline;
}

.error-separator {
    color: var(--border);
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 640px) {
    .error-code {
        font-size: 6rem;
    }
}

.car-icon {
    animation: drive 3s ease-in-out infinite;
}

@keyframes drive {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

/* Dashboard/Stats */
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

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

@media (min-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.chart-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Chat/Conversas */
.chat-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 200px);
    min-height: 500px;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        display: none;
    }
    .chat-sidebar.mobile-visible {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: var(--background);
    }
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.message-mine {
    background: var(--primary);
    color: var(--primary-foreground);
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message-other {
    background: var(--muted);
    color: var(--foreground);
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.conversation-item {
    padding: 0.75rem 1rem;
    transition: background 0.2s;
    cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(16, 35, 53, 0.05);
}

.conversation-item.unread {
    background: rgba(16, 35, 53, 0.1);
}

.chat-sidebar-header {
    padding: 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
}

.chat-sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.chat-close-btn {
    padding: 0.25rem;
    background: transparent;
    border: none;
    color: var(--primary-foreground);
    cursor: pointer;
}

.chat-sidebar-list {
    flex: 1;
    overflow-y: auto;
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-active {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-bottom: 1px solid var(--primary-dark);
}

.chat-header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-avatar span {
    font-size: 0.875rem;
    font-weight: 600;
}

.chat-header-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--background);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 35, 53, 0.1);
}

.chat-send-btn {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-attach-btn,
.chat-template-toggle {
    padding: 0.625rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.chat-attach-btn:hover,
.chat-template-toggle:hover {
    background: var(--muted);
    color: var(--foreground);
}

.chat-templates {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    max-height: 200px;
    overflow-y: auto;
}

.chat-template-btn {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.chat-template-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.anexo-preview {
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.anexo-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--radius);
}

.anexo-preview-img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: var(--radius);
}

.anexo-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.anexo-preview-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.anexo-preview-size {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.anexo-preview-remove {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--destructive);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.anexo-preview-remove:hover {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 0.375rem;
    height: 0.375rem;
    background: var(--muted-foreground);
    border-radius: var(--radius-full);
    animation: typing-bounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-0.5rem);
        opacity: 1;
    }
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.conversation-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(16, 35, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.conversation-avatar span {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-name-unread {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-badge {
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.conversation-title {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-date-separator {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 1rem 0;
}

.message-text {
    font-size: 0.875rem;
    margin: 0;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.5) !important;
}

#danger-zone-content {
    flex-direction: column;
}

@media (min-width: 768px) {
    #danger-zone-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Charts */
#charts-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    #charts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chart-placeholder {
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 35, 53, 0.05);
    border-radius: var(--radius-lg);
}

.chart-legend-primary {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--radius-full);
    background: var(--primary);
}

.chart-legend-warning {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--radius-full);
    background: hsl(45, 90%, 55%);
}

/* Tabs Header */
#tabs-header {
    flex-direction: column;
}

@media (min-width: 768px) {
    #tabs-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Formulários */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-icon-wrapper {
    position: relative;
}

.form-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.form-icon-wrapper .form-input {
    padding-left: 2.5rem;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--muted);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(16, 35, 53, 0.05);
}

.upload-zone-dragover {
    border-color: var(--primary);
    background: rgba(16, 35, 53, 0.08);
}

.doc-upload-zone .doc-upload-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: doc-upload-spin 0.8s linear infinite;
}

.doc-upload-zone .doc-upload-loading .upload-zone-title,
.doc-upload-zone .doc-upload-success .upload-zone-title {
    margin: 0.5rem 0 0;
}

.doc-upload-zone .doc-upload-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

@keyframes doc-upload-spin {
    to { transform: rotate(360deg); }
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-hover, #0f2d47);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.preview-item {
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.preview-item button {
    position: absolute;
    top: 0.3125rem;
    right: 0.3125rem;
    background: var(--destructive);
    color: var(--destructive-foreground);
    border: none;
    border-radius: var(--radius-full);
    width: 1.875rem;
    height: 1.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.preview-item button:hover {
    background: var(--destructive);
    opacity: 0.9;
}

/* Prévia de fotos do veículo (Vender) */
.fotos-preview-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.fotos-preview-wrapper .preview-grid {
    margin-top: 0.75rem;
}

.fotos-preview-item {
    position: relative;
    background: var(--muted);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.fotos-preview-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.fotos-preview-item-filename {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding: 0.375rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
}

.fotos-preview-item-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fotos-preview-item-remove:hover {
    background: var(--destructive);
}

.fotos-upload-zone.upload-zone-dragover {
    border-color: var(--primary);
    background: rgba(16, 35, 53, 0.08);
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--background);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.accordion-trigger:hover {
    background: var(--muted);
}

.accordion-trigger svg {
    transition: transform 0.3s;
}

.accordion-trigger.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--muted);
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-content-inner {
    padding: 1rem 1.5rem;
    color: var(--muted-foreground);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    color: white;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0c8de4;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #006ba1;
}

.share-btn.copy {
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.share-btn.copy:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--muted);
    transition: 0.3s;
    border-radius: var(--radius-lg);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-slider {
    background-color: var(--primary);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.switch input:focus + .switch-slider {
    box-shadow: 0 0 0 2px var(--ring);
}

/* Comparison/Comparar */
.vehicle-select-card {
    position: relative;
    cursor: pointer;
}

.vehicle-select-card.selected {
    outline: 4px solid var(--primary);
    outline-offset: -4px;
}

.vehicle-select-card.selected::after {
    content: attr(data-order);
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.vehicle-select-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

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

.comparison-table tr:hover {
    background: rgba(16, 35, 53, 0.05);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.chip button {
    display: flex;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
}

.chip button:hover {
    color: var(--destructive);
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: var(--muted);
    color: var(--muted-foreground);
    border: none;
    cursor: pointer;
}

.tab:hover {
    background: rgba(16, 35, 53, 0.1);
}

.tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Auth Pages */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-card {
    max-width: 28rem;
    margin: 0 auto;
}

.benefits-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--gradient-card);
    border: 1px solid rgba(16, 35, 53, 0.2);
}

.benefits-card h3 {
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.benefits-card ul {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.benefits-card li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.benefits-card li:last-child {
    margin-bottom: 0;
}

.benefits-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.benefit-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin-right: 0.75rem;
    flex-shrink: 0;
    display: inline-block;
}

/* Service Cards */
.service-card {
    background: var(--card);
    border: 1px solid rgba(16, 35, 53, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.service-card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(16, 35, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Profile */
.profile-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 2px solid var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Section Header */
.section-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Stat Icons */
.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-primary {
    background: rgba(16, 35, 53, 0.1);
    color: var(--primary);
}

.stat-icon-success {
    background: rgba(34, 197, 94, 0.1);
    color: hsl(120, 60%, 45%);
}

.stat-icon-info {
    background: rgba(59, 130, 246, 0.1);
    color: hsl(217, 91%, 60%);
}

.stat-icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: hsl(45, 90%, 55%);
}

.stat-value-success {
    color: hsl(120, 60%, 45%);
}

.stat-value-warning {
    color: hsl(45, 90%, 55%);
}

/* Ad Item (Meus Anúncios) */
.ad-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.ad-item:hover {
    background: rgba(16, 35, 53, 0.02);
}

@media (min-width: 768px) {
    .ad-item {
        flex-direction: row;
        align-items: center;
    }
}

.ad-item-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .ad-item-image {
        width: 6rem;
        height: 6rem;
    }
}

.ad-item-content {
    flex: 1;
}

.ad-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .ad-item-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.ad-item-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.ad-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.ad-item-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.ad-item-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ad-item-stat i {
    font-size: 1rem;
}

.ad-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .ad-item-actions {
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    .ad-item-actions {
        flex-direction: row;
    }
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    border-color: var(--destructive);
    color: var(--destructive);
}

.btn-danger:hover {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

/* Badge Status */
.badge-status-active {
    background: rgba(34, 197, 94, 0.1);
    color: hsl(120, 60%, 45%);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-status-paused {
    background: rgba(245, 158, 11, 0.1);
    color: hsl(45, 90%, 55%);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-status-sold {
    background: rgba(59, 130, 246, 0.1);
    color: hsl(217, 91%, 60%);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--destructive);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-status-unknown {
    background: var(--muted);
    color: var(--muted-foreground);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Loading Spinner */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    margin: 0 auto 1rem;
}

/* Page Header Responsive */
#page-header {
    flex-direction: column;
}

@media (min-width: 768px) {
    #page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

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

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--muted-foreground);
}

.skeleton {
    background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ====================================
   RESPONSIVE VISIBILITY
   ==================================== */

@media (max-width: 767px) {
    .md\:hidden { display: block; }
    .hidden-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none !important; }
    .hidden-desktop { display: none !important; }
}

/* ====================================
   PRINT STYLES
   ==================================== */

/* ====================================
   COMPARISON PAGE
   ==================================== */

.selected-bar-container {
    background: rgba(16, 35, 53, 0.05);
    border: 1px solid rgba(16, 35, 53, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

#selected-bar-content {
    flex-direction: column;
}

@media (min-width: 768px) {
    #selected-bar-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

#vehicles-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vehicle-select-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.vehicle-select-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vehicle-select-card.selected {
    outline: 4px solid var(--primary);
    outline-offset: -4px;
}

.vehicle-select-card.selected::after {
    content: attr(data-order);
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
}

.vehicle-select-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.comparison-table-header {
    background: rgba(16, 35, 53, 0.05);
}

/* ====================================
   ASSINATURA PAGE
   ==================================== */

.hero-section-assinatura {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, rgba(16, 35, 53, 0.1), var(--background), rgba(16, 35, 53, 0.1));
}

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.gradient-title {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

@media (min-width: 768px) {
    .gradient-title {
        font-size: 3.75rem;
    }
}

.billing-toggle {
    display: flex;
    align-items: center;
    background: var(--muted);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn.active {
    background: var(--background);
    box-shadow: var(--shadow-sm);
    color: var(--foreground);
}

.toggle-btn:not(.active) {
    color: var(--muted-foreground);
}

.toggle-btn:not(.active):hover {
    color: var(--foreground);
}

.toggle-badge {
    background: rgba(34, 197, 94, 0.1);
    color: hsl(120, 60%, 45%);
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

.assinatura-ativa {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.assinatura-ativa h3 {
    color: hsl(120, 60%, 45%);
    margin-bottom: 0.5rem;
}

.subscription-plan-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.subscription-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.subscription-plan-card.featured {
    background: linear-gradient(135deg, rgba(16, 35, 53, 0.05), rgba(16, 35, 53, 0.05));
    border-color: rgba(16, 35, 53, 0.3);
}

#benefits-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   VENDER PAGE
   ==================================== */

.hero-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* ====================================
   SERVICOS PAGE
   ==================================== */

.hero-section-servicos {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(16, 35, 53, 0.1), var(--background), rgba(16, 35, 53, 0.05));
}

.service-card-border {
    border: 1px solid rgba(16, 35, 53, 0.2) !important;
}

.service-features-box {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.service-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(16, 35, 53, 0.1);
    margin: 1.5rem 0;
}

/* ====================================
   AUTH PAGES (LOGIN/CADASTRO)
   ==================================== */

.auth-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.auth-container {
    max-width: 28rem;
    margin: 0 auto;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-card-subtitle {
    font-size: 0.875rem;
}

.auth-options {
    font-size: 0.875rem;
}

.auth-checkbox-label {
    cursor: pointer;
}

.auth-link {
    text-decoration: none;
}

.form-input-wrapper {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.form-input-with-icon {
    padding-left: 2.5rem;
}

.form-input-with-action {
    padding-right: 2.5rem;
}

.form-input-action {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input-action:hover {
    color: var(--foreground);
}

/* ====================================
   PROFILE PAGE
   ==================================== */

.profile-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.profile-container {
    max-width: 56rem;
}

.profile-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-bio {
    font-size: 0.875rem;
}

/* ====================================
   FAVORITOS PAGE
   ==================================== */

.favorites-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.favorites-container {
    max-width: 72rem;
    margin: 0 auto;
}

.favorites-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.favorites-empty {
    padding: 4rem 2rem;
}

.favorites-empty-icon {
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
}

.favorites-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.favorites-vehicle-card {
    position: relative;
}

.favorites-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.favorites-vehicle-info {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.favorites-vehicle-actions {
    margin-top: 1rem;
}

.favorites-btn-primary {
    flex: 1;
}

.favorites-btn-remove {
    color: var(--destructive);
}

.form-input-loading {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.form-input-disabled {
    background-color: var(--muted) !important;
    cursor: not-allowed !important;
}

.form-hint {
    font-size: 0.75rem;
}

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

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

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-input-prefix {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.form-input-with-prefix {
    padding-left: 2.5rem;
}

/* ====================================
   VENDER PAGE
   ==================================== */

.vender-hero {
    padding: 3rem 0;
}

.vender-hero-content {
    max-width: 56rem;
}

.vender-hero-title {
    font-size: 2.5rem;
}

.hero-badge-text {
    font-weight: 600;
    color: var(--foreground);
}

.vender-main {
    padding: 3rem 0;
}

.vender-container {
    max-width: 72rem;
}

.vender-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.vender-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .vender-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--muted);
}

.upload-zone-icon {
    margin: 0 auto 1rem;
    color: var(--muted-foreground);
}

.upload-zone-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-zone-subtitle {
    font-size: 0.875rem;
}

.acdb-evaluation-box {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 35, 53, 0.2);
}

.plan-select-card {
    padding: 1rem;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
}

.plan-select-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.plan-selected {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md);
}

.plan-badge-small {
    font-size: 0.7rem;
}

.plan-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-duration {
    font-size: 0.75rem;
}

.plan-features-list {
    font-size: 0.875rem;
}

.plan-feature-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.summary-price {
    font-weight: 700;
    color: var(--primary);
}

.summary-actions {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.payment-methods-box {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.payment-methods-list {
    font-size: 0.875rem;
}

/* ====================================
   SERVICOS PAGE
   ==================================== */

.servicos-main {
    padding: 4rem 0;
}

.servicos-container {
    max-width: 72rem;
}

.servicos-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servicos-hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.servicos-col-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.servicos-col-right .workshops-section {
    max-width: 100%;
}

.service-icon-box {
    width: 3rem;
    height: 3rem;
    background: rgba(16, 35, 53, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-subtitle {
    font-size: 0.875rem;
}

.service-features-title {
    font-weight: 600;
}

.service-features-list {
    font-size: 0.875rem;
    line-height: 1.8;
}

.service-price-label {
    font-weight: 600;
}

.service-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.service-price-installments {
    font-size: 0.75rem;
}

.service-badge {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
}

.servicos-section-title {
    font-size: 1.875rem;
    font-weight: 700;
}

/* Últimas capas da News – dentro do card Assinatura News ACDB */
.servicos-revistas-capas-inner {
    margin-bottom: 1.5rem;
}

.servicos-revistas-capas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
}

/* Tamanho máximo das capas (evita capas gigantes) */
.servicos-revista-capa-img {
    width: 100%;
    max-width: 100px;
    aspect-ratio: 3/4;
    background: var(--muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.servicos-revistas-capas-grid:not(.servicos-revistas-capas-grid--inside-card) .servicos-revista-capa-img {
    max-width: 140px;
}

.servicos-revista-capa-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.servicos-revista-capa-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.servicos-revista-capa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--foreground);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.servicos-revista-capa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.servicos-revista-capa-titulo {
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.servicos-revistas-capas-grid--inside-card .servicos-revista-capa-titulo {
    font-size: 0.75rem;
}

.servicos-revista-capa-meta {
    font-size: 0.6875rem;
    margin-top: 0.25rem;
}

.servicos-others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto 4rem;
}

.service-card-icon-circle {
    width: 3rem;
    height: 3rem;
    background: rgba(16, 35, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card-description {
    font-size: 0.875rem;
}

.service-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card-period {
    font-size: 0.75rem;
}

.subscription-plan-select {
    padding: 1rem;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
}

.subscription-plan-select:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.subscription-plan-desc {
    font-size: 0.875rem;
}

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

.subscription-plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.subscription-plan-price-secondary {
    color: var(--secondary);
}

.subscription-plan-period {
    font-size: 0.75rem;
}

.subscription-plan-badge {
    font-size: 0.7rem;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.workshops-section {
    background: linear-gradient(135deg, rgba(16, 35, 53, 0.05), rgba(16, 35, 53, 0.1));
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.workshops-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(16, 35, 53, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.workshops-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.workshops-description {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.contact-section {
    background: var(--muted);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.profile-save-btn {
    flex: 1;
}

.btn-left {
    justify-content: flex-start;
}

.btn-danger {
    color: var(--destructive);
    border-color: var(--destructive);
}

.btn-danger:hover {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.security-actions-divider {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* ====================================
   ANUNCIAR PAGE
   ==================================== */

.form-container {
    max-width: 800px;
    margin: 20px auto;
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}

.preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--destructive);
    color: var(--destructive-foreground);
    border: none;
    border-radius: var(--radius-full);
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.preview-item button:hover {
    background: var(--destructive-dark);
}

/* ====================================
   DETALHES PAGE
   ==================================== */

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    color: white;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0c8de4;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #006ba1;
}

.share-btn.copy {
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.share-btn.copy:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ====================================
   AJUDA/FAQ PAGE
   ==================================== */

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--background);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.accordion-trigger:hover {
    background: var(--muted);
}

.accordion-trigger svg {
    transition: transform 0.3s;
}

.accordion-trigger.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--muted);
}

.accordion-content.open {
    max-height: 500px;
}

.accordion-content-inner {
    padding: 1rem 1.5rem;
    color: var(--muted-foreground);
}

/* ====================================
   HERO COMPONENT
   ==================================== */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: none;
    z-index: 100;
    margin-top: 0.5rem;
}

.search-input:focus ~ .search-suggestions,
.search-suggestions:hover {
    display: block;
}

.suggestion-header {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding: 0.5rem;
    font-weight: 500;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.suggestion-item:hover {
    background: var(--muted);
}

.suggestion-item i {
    color: var(--muted-foreground);
    font-size: 14px;
}

.suggestion-item svg {
    color: var(--muted-foreground);
}

.search-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
}

.search-ai-badge svg,
.search-ai-badge i {
    color: var(--gold);
}

.search-input-wrapper {
    position: relative;
}

/* ====================================
   AJUDA PAGE - ESPACAMENTOS
   ==================================== */

.ajuda-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.ajuda-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto;
}

.ajuda-section {
    padding: 4rem 0;
    background: var(--background);
}

.ajuda-container {
    max-width: 56rem;
}

.ajuda-section-title {
    font-size: 1.875rem;
    font-weight: 700;
}

.ajuda-contact-section {
    padding: 4rem 0;
    background: var(--muted);
}

.ajuda-contact-container {
    max-width: 72rem;
}

.ajuda-contact-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ajuda-contact-subtitle {
    font-size: 1.125rem;
}

.ajuda-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.ajuda-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.danger-zone-header {
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.5);
}

/* ====================================
   UPLOAD CATEGORIZADO
   ==================================== */

.upload-categorizado {
    margin-top: 1rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.upload-zone-categoria {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: var(--card);
    transition: var(--transition-smooth);
}

.upload-zone-categoria:hover {
    border-color: var(--primary);
    background: var(--muted);
}

.upload-categoria-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.upload-categoria-label i {
    font-size: 1.25rem;
    color: var(--primary);
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--muted);
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--muted);
    border-style: solid;
}

.upload-area i {
    font-size: 2rem;
    color: var(--muted-foreground);
}

.upload-area span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.preview-container {
    min-height: 120px;
    margin-top: 0.75rem;
}

.preview-item-categoria {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item-categoria img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.btn-remove-foto {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--destructive);
    color: var(--destructive-foreground);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-remove-foto:hover {
    background: var(--destructive-dark);
    transform: scale(1.1);
}

.btn-remove-foto i {
    font-size: 1rem;
}

/* ====================================
   LIGHTBOX
   ==================================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.lightbox-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.lightbox-counter {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.lightbox-indicators {
    display: flex;
    gap: 0.25rem;
}

.lightbox-indicator {
    width: 0.25rem;
    height: 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.lightbox-indicator.active {
    background: var(--primary);
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    position: relative;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    overflow: auto;
    cursor: move;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav-prev {
    left: 1rem;
}

.lightbox-nav-next {
    right: 1rem;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 10;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lightbox-control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.lightbox-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    overflow-x: auto;
    max-width: 100%;
    padding: 0.5rem;
}

.lightbox-thumbnail {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.lightbox-thumbnail:hover {
    opacity: 1;
}

.lightbox-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-header {
        padding: 0.75rem;
    }
    
    .lightbox-title {
        font-size: 0.875rem;
    }
    
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .lightbox-control-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lightbox-thumbnail {
        width: 3rem;
        height: 3rem;
    }
}

/* ====================================
   MODAL
   ==================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-open {
    opacity: 1;
}

.modal-overlay.modal-closing {
    opacity: 0;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(1rem) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.modal-open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-overlay.modal-closing .modal-content {
    transform: translateY(1rem) scale(0.95);
    opacity: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.modal-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--foreground);
    line-height: 1.4;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.modal-close i {
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
}

.modal-message {
    margin: 0;
    color: var(--foreground);
    line-height: 1.6;
    font-size: 1rem;
}

.modal-input-wrapper {
    margin-top: 1rem;
}

.modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 35, 53, 0.1);
}

.modal-input.input-error {
    border-color: var(--destructive);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 100px;
}

/* ====================================
   TIPOS DE MODAIS
   ==================================== */

/* Modal de Sucesso */
.modal-success .modal-icon {
    background: var(--success);
    color: var(--success-foreground);
}

.modal-success .modal-title {
    color: var(--success);
}

/* Modal de Erro */
.modal-error .modal-icon {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.modal-error .modal-title {
    color: var(--destructive);
}

/* Modal de Aviso */
.modal-warning .modal-icon {
    background: var(--warning);
    color: var(--warning-foreground);
}

.modal-warning .modal-title {
    color: var(--warning);
}

/* Modal de Informação */
.modal-info .modal-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

.modal-info .modal-title {
    color: var(--primary);
}

/* Modal de Confirmação */
.modal-confirm .modal-icon {
    background: var(--warning);
    color: var(--warning-foreground);
}

.modal-confirm .modal-title {
    color: var(--foreground);
}

/* Modal de Prompt */
.modal-prompt .modal-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

.modal-prompt .modal-title {
    color: var(--primary);
}

/* ====================================
   RESPONSIVIDADE MODAL
   ==================================== */

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
        margin-bottom: 0;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 1rem 1.25rem 1.25rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .modal-title {
        font-size: 1.125rem;
    }
}

/* ====================================
   ANIMAÇÕES
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(1rem) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin-top: auto;
    }
}

@media print {
    .navbar,
    .footer,
    .btn,
    .filters-sidebar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}

/* ====================================
   PAINEL ADMINISTRATIVO
   ==================================== */

.admin-body {
    background: var(--background);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Admin */
.admin-sidebar {
    width: 300px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    color: var(--foreground);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-sidebar-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.admin-sidebar-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-search .search-input {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    transition: var(--transition-smooth);
}

.admin-sidebar-search .search-input:focus-within {
    box-shadow: 0 0 0 2px rgba(16, 35, 53, 0.08);
    border-color: var(--primary);
}

.admin-sidebar-search i.mdi-magnify {
    position: absolute;
    left: 0.75rem;
    font-size: 1.1rem;
    color: var(--muted-foreground);
}

.admin-sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    outline: none;
}

.admin-sidebar-search button.clear-search {
    border: none;
    background: none;
    color: var(--muted-foreground);
    padding: 0;
    margin-left: 0.25rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-sidebar-search button.clear-search.visible {
    display: inline-flex;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem 1.5rem;
}

.admin-sidebar-group {
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: transparent;
}

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

.admin-sidebar-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--radius);
}

.admin-sidebar-group-toggle:hover,
.admin-sidebar-group-toggle:focus-visible {
    background: var(--muted);
}

.admin-sidebar-group-toggle .group-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-group-toggle .group-label i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--muted-foreground);
}

.admin-sidebar-group-toggle .group-chevron {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.admin-sidebar-group.collapsed .group-chevron {
    transform: rotate(-90deg);
}

.admin-sidebar-badge {
    min-width: 32px;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
    justify-content: center;
    align-items: center;
}

.admin-sidebar-badge.visible {
    display: inline-flex;
}

.admin-sidebar-subitems {
    display: flex;
    flex-direction: column;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    max-height: 800px;
    opacity: 1;
}

.admin-sidebar-group.collapsed .admin-sidebar-subitems {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.admin-sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.75rem 0.6rem 3.25rem;
    color: var(--foreground);
    border-radius: var(--radius);
    margin: 0.25rem 0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.admin-sidebar-subitem:hover,
.admin-sidebar-subitem:focus-visible {
    background: var(--muted);
}

.admin-sidebar-subitem.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-sm);
}

.admin-sidebar-subitem i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

.admin-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.admin-sidebar-footer .admin-sidebar-subitem {
    padding-left: 2.5rem;
    margin: 0;
}

.admin-sidebar-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border);
}

.admin-sidebar-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar .is-hidden {
    display: none !important;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 300px;
    padding: 2rem;
}

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

.admin-header h1 {
    font-size: 2rem;
    margin: 0;
}

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

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-stat-card h3 {
    font-size: 1.75rem;
    margin: 0.25rem 0;
}

/* Filters */
.admin-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-filters .input {
    min-width: 200px;
}

/* Table */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--muted);
}

.admin-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--muted);
}

/* Dados do documento (admin - Placa Preta) */
.dados-documento-row .dados-documento-cell {
    padding: 0.75rem 1rem;
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.dados-documento-block {
    font-size: 0.875rem;
}
.dados-documento-block strong {
    display: block;
    margin-bottom: 0.5rem;
}
.dados-documento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.25rem 1rem;
}
.dados-documento-grid span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}
