@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@700;800&display=swap');

:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-sora: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --brand-red: #e50914;
    --brand-red-dark: #b80710;
}

/* ========================================================================== */
/* SCROLLBAR GLOBAL ULTRA-MODERNA E PREMIUM GENERAUTO                        */
/* ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    scrollbar-width: thin;
    scrollbar-color: #e50914 #070709 !important;
    color-scheme: dark !important;
}

/* Custom Scrollbar para navegadores WebKit (Chrome, Edge, Safari, Opera, Brave) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

::-webkit-scrollbar-track {
    background: #070709 !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.65) !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(7, 7, 9, 0.8) !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #e50914;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
}

::-webkit-scrollbar-thumb:active {
    background: #b80710;
}

::-webkit-scrollbar-corner {
    background: #070709 !important;
}

/* Utilitários para ocultar barra de rolagem em galerias e carrosséis */
.no-scrollbar,
.thumb-scrollbar,
#thumbnails-container,
#fs-thumbnails-container {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.no-scrollbar::-webkit-scrollbar,
.thumb-scrollbar::-webkit-scrollbar,
#thumbnails-container::-webkit-scrollbar,
#fs-thumbnails-container::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

/* Fix para autofill do navegador não ficar com fundo azul/amarelo */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #181822 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 1000px #181822 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff !important;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Tipografia Sora ExtraBold (800) para o Título Principal do Banner */
.font-sora-extrabold {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.font-display {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.font-black-display {
    font-family: 'Sora', 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Transições Suaves do Header */
#main-header {
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TEMA DO HEADER: BRANCO (Background 1) */
#main-header.header-light {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

#main-header.header-light .nav-link {
    color: #1f2937;
}

#main-header.header-light .nav-link:hover {
    color: #e50914;
}

#main-header.header-light .nav-link.active {
    color: #e50914;
}

#main-header.header-light .nav-link.active::after {
    background-color: #e50914;
}

#main-header.header-light .search-wrapper {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
}

#main-header.header-light .search-wrapper input {
    color: #111827;
}

#main-header.header-light .search-wrapper input::placeholder {
    color: #9ca3af;
}

#main-header.header-light .search-wrapper i {
    color: #6b7280;
}

#main-header.header-light .social-icon-btn {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

#main-header.header-light .social-icon-btn:hover {
    background-color: #e50914;
    color: #ffffff;
    border-color: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

#main-header.header-light .btn-entrar {
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

#main-header.header-light .btn-entrar:hover {
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
    transform: translateY(-1px);
}

#main-header.header-light .mobile-toggle-btn {
    color: #111827;
    background-color: #f3f4f6;
}

/* TEMA DO HEADER: PRETO (Background 2) */
#main-header.header-dark {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
}

#main-header.header-dark .nav-link {
    color: #f3f4f6;
}

#main-header.header-dark .nav-link:hover {
    color: #ef4444;
}

#main-header.header-dark .nav-link.active {
    color: #ef4444;
}

#main-header.header-dark .nav-link.active::after {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

#main-header.header-dark .search-wrapper {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

#main-header.header-dark .search-wrapper input {
    color: #ffffff;
}

#main-header.header-dark .search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#main-header.header-dark .search-wrapper i {
    color: rgba(255, 255, 255, 0.6);
}

#main-header.header-dark .social-icon-btn {
    background-color: rgba(255, 255, 255, 0.07);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#main-header.header-dark .social-icon-btn:hover {
    background-color: #e50914;
    color: #ffffff;
    border-color: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.6);
}

#main-header.header-dark .btn-entrar {
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.55);
}

#main-header.header-dark .btn-entrar:hover {
    box-shadow: 0 0 28px rgba(229, 9, 20, 0.8);
    transform: translateY(-1px);
}

#main-header.header-dark .mobile-toggle-btn {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Indicador de Link Ativo */
.nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    border-radius: 9999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

/* MENU CENTRAL EM CÁPSULA GLASSMORPHISM */
.nav-capsule-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-capsule-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* BANNER HERO ESTÁTICO & CTA SHOWROOM (Fundo 2 e Fundo 1 - Altura Calibrada Idêntica) */
.banner-hero-container,
.cta-hero-container,
.slider-container {
    position: relative;
    width: 100%;
    /* Altura reduzida para 520px para não dar zoom excessivo e deixar o texto 100% livre do carro */
    height: 520px;
    max-height: 540px;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b0b0b;
}

.cta-hero-container {
    background-color: #ffffff;
}

@media (min-width: 1920px) {
    .banner-hero-container,
    .cta-hero-container,
    .slider-container {
        height: 560px;
        max-height: 580px;
    }
}

@media (max-width: 1280px) {
    .banner-hero-container,
    .cta-hero-container,
    .slider-container {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .banner-hero-container,
    .cta-hero-container,
    .slider-container {
        height: auto;
        min-height: 480px;
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }
}

.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    /* Posição ancorada à direita para preservar integralmente a BMW e a logo GenerAuto da parede */
}

@media (min-width: 2172px) {
    .banner-bg {
        background-size: cover;
        background-position: center right;
    }
}

.banner-content-left {
    width: 100%;
    max-width: 440px;
}

@media (min-width: 1536px) {
    .banner-content-left {
        max-width: 480px;
    }
}

/* BOTÃO ENTRAR PREMIUM ULTRA MODERNO */
.btn-entrar-premium {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-entrar-premium:hover {
    box-shadow: 0 0 32px rgba(229, 9, 20, 0.95), 0 0 10px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px) scale(1.03);
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    /* Posição ancorada à direita para preservar integralmente a BMW e a logo GenerAuto da parede */
}

/* Em telas ultrawide (> 2172px) */
@media (min-width: 2172px) {
    .slide-bg {
        background-size: cover;
        background-position: center right;
    }
}

/* Animação e Limite do Conteúdo Esquerdo para NUNCA invadir o carro */
.slide-content-left {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    width: 100%;
    max-width: 520px;
}

@media (min-width: 1536px) {
    .slide-content-left {
        max-width: 560px;
    }
}

.slide-item.active .slide-content-left {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito Glow para Texto Neon no Banner Dark */
.text-glow-red {
    text-shadow: 0 0 25px rgba(229, 9, 20, 0.5), 0 0 50px rgba(229, 9, 20, 0.25);
}

/* Botões do Banner */
.btn-banner-primary {
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    box-shadow: 0 8px 24px -4px rgba(229, 9, 20, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-banner-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -2px rgba(229, 9, 20, 0.7);
}

.btn-banner-secondary-light {
    background-color: transparent;
    border: 1.5px solid #d1d5db;
    color: #111827;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-banner-secondary-light:hover {
    background-color: #ffffff;
    border-color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-banner-secondary-dark {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-banner-secondary-dark:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Badges de Confiança */
.trust-badge-light {
    border-color: rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
}

.trust-badge-dark {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(8px);
}

/* Controles do Slider (Setas) */
.slider-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.slider-arrow-btn:hover {
    transform: scale(1.1);
}

/* Indicadores de Dots */
.dot-indicator {
    height: 8px;
    width: 28px;
    border-radius: 9999px;
    background-color: rgba(156, 163, 175, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-indicator.active {
    width: 54px;
    background-color: #e50914;
    box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
}

/* DOCK DE MARCAS ULTRA-MODERNO (Fundo Branco Premium Limpo sem Blur) */
.brands-dock-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brands-dock-container:hover {
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.16), 0 6px 16px -2px rgba(0, 0, 0, 0.08);
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.brands-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.brands-marquee-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    animation: marqueeScroll 30s linear infinite !important;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .brands-marquee-container:hover .brands-marquee-track {
        animation-play-state: paused;
    }
}

.brand-carousel-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-carousel-item:hover {
    background-color: rgba(241, 245, 249, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.brand-carousel-item img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    opacity: 0.92;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-carousel-item:hover img {
    opacity: 1;
    transform: scale(1.12);
}

/* CARROSSEL CONTÍNUO DE DIFERENCIAIS 100% FULL-WIDTH E ALTURA COMPACTA */
.differentials-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
}

.differentials-marquee-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    animation: marqueeScroll 24s linear infinite !important;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .differentials-marquee-container:hover .differentials-marquee-track {
        animation-play-state: paused;
    }
}

.differential-card-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.differential-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -2px rgba(229, 9, 20, 0.15), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(229, 9, 20, 0.4);
}

/* SEÇÃO NOSSOS SERVIÇOS */
.service-card {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

/* SEÇÃO VEÍCULOS EM DESTAQUE (Fundo Preto 100% de Largura) */
.featured-card {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

/* Ocultar Barra de Rolagem Mantendo a Função de Scroll */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* EFEITO 3D COVERFLOW ULTRA-PREMIUM PARA DEPOIMENTOS */
.stage-3d-perspective {
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.carousel-3d-card {
    will-change: transform, opacity, filter;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s ease,
                filter 0.5s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    background: linear-gradient(135deg, rgba(26, 26, 32, 0.96) 0%, rgba(14, 14, 18, 0.96) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.carousel-3d-card.card-3d-active {
    border-color: rgba(229, 9, 20, 0.85);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9),
                0 0 25px rgba(229, 9, 20, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.carousel-3d-card.card-3d-inactive {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.carousel-3d-card.card-3d-inactive:hover {
    border-color: rgba(229, 9, 20, 0.5);
    filter: brightness(0.9) !important;
}

/* SEÇÃO CTA SHOWROOM ULTRA-PREMIUM (Background 1) */
.cta-feature-pill {
    will-change: transform, box-shadow;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-feature-pill:hover {
    transform: translateY(-2px);
}

.cta-btn-primary {
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(229, 9, 20, 0.55);
}

.cta-btn-secondary {
    will-change: transform, box-shadow;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.25);
}

/* ========================================================================== */
/* REGRAS GLOBAIS DE RESPONSIVIDADE E PROTEÇÃO MULTIDISPOSITIVO GENERAUTO     */
/* ========================================================================== */

/* Proteção global contra scroll horizontal fantasma */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* Todas as imagens, SVGs e vídeos respeitam a largura máxima de seus containers */
img, svg, video, iframe {
    max-width: 100%;
}

/* Safe areas para celulares com entalhe/notch e gestos de navegação (iPhone/Android) */
:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
}

/* Scrim / Gradiente escuro no mobile para garantir contraste e legibilidade 100% sobre fotos */
@media (max-width: 1023px) {
    .banner-hero-container {
        position: relative;
    }
    .banner-hero-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(11, 11, 11, 0.75) 0%, rgba(11, 11, 11, 0.92) 60%, #0b0b0b 100%);
        pointer-events: none;
        z-index: 5;
    }
    .banner-hero-container .banner-content-left {
        position: relative;
        z-index: 10;
        max-width: 100%;
    }

    .cta-hero-container {
        position: relative;
    }
    .cta-hero-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.97) 70%, #ffffff 100%);
        pointer-events: none;
        z-index: 5;
    }
    .cta-hero-container .banner-content-left {
        position: relative;
        z-index: 10;
        max-width: 100%;
    }
}

/* Touch targets para botões mobile - mínimo 42px para usabilidade ergonômica com polegar */
@media (max-width: 768px) {
    .btn-banner-primary,
    .btn-banner-secondary-dark,
    .btn-banner-secondary-light,
    .cta-btn-primary,
    .cta-btn-secondary,
    .btn-entrar-premium {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ajustes de tipografia fluida para títulos em telas muito pequenas (<= 360px) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
    }
    h2 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }
    .font-sora-extrabold {
        letter-spacing: -0.02em !important;
    }
}

/* Menu Mobile Compacto, Escuro e Ultra-Moderno (Público & Admin) */
#mobile-menu-backdrop,
#admin-mobile-backdrop {
    will-change: opacity;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu,
#admin-mobile-menu {
    background-color: #0b0b0f !important;
    border-bottom: 2px solid rgba(229, 9, 20, 0.45);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px -5px rgba(229, 9, 20, 0.18);
    will-change: transform, opacity;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    padding-top: env(safe-area-inset-top, 0px);
}

.mobile-nav-compact-item {
    background-color: #121217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-compact-item:hover,
.mobile-nav-compact-item:active {
    background-color: #181822;
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateX(3px);
}

.mobile-nav-compact-item.active {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.22) 0%, rgba(229, 9, 20, 0.06) 100%);
    border-color: rgba(229, 9, 20, 0.75);
    box-shadow: inset 3px 0 0 #e50914, 0 0 16px rgba(229, 9, 20, 0.2);
}

/* ========================================================================== */
/* SISTEMA DE RESPONSIVIDADE, TIPOGRAFIA FLUIDA E ADAPTAÇÃO PREMIUM (P0)      */
/* ========================================================================== */

/* Tipografia Fluida com Curvas clamp() Suaves (Mobile 320px -> Ultrawide 3840px) */
.fluid-h1 {
    font-size: clamp(1.65rem, 4.2vw, 2.65rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em;
}

.fluid-h2 {
    font-size: clamp(1.3rem, 3vw, 2.05rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.fluid-h3 {
    font-size: clamp(1.05rem, 2vw, 1.45rem) !important;
    line-height: 1.25 !important;
}

.fluid-body {
    font-size: clamp(0.8125rem, 1.2vw, 0.95rem) !important;
    line-height: 1.55 !important;
}

/* Prevenção de Distorção de Mídia e Overflows Horizontais */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Touch Targets Ergonômicos (Padrão WCAG 2.2 AA - min 44px) */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contêiner de Scroll Horizontal Isolado para Tabelas e Grids Administrativos */
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.table-scroll-container::-webkit-scrollbar {
    height: 5px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: rgba(13, 14, 20, 0.6);
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.45);
    border-radius: 9999px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* Suporte Ergonômico para Safe Area Insets (iPhones com Dynamic Island / Notch) */
@supports (padding: max(0px)) {
    .safe-top {
        padding-top: max(env(safe-area-inset-top, 0px), 12px);
    }
    .safe-bottom {
        padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
    }
}

/* Otimização para Monitores Ultrawide (2560px a 3840px) */
@media (min-width: 2560px) {
    .container-ultrawide {
        max-width: 1840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}










