/* ==========================================================================
   SISTEMA DE DESIGN - ILHA SUN ENERGY
   ========================================================================== */

:root {
    /* Cores do Sistema (Tema Escuro Padrão) */
    --bg-primary: #070913;
    --bg-secondary: #0d1127;
    --bg-glass: rgba(13, 17, 39, 0.75);
    --bg-glass-card: rgba(20, 26, 56, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Acentos e Destaques */
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.25);
    --accent-yellow: #fbbf24;
    --accent-yellow-glow: rgba(251, 191, 36, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Tipografia */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Efeitos */
    --blur-value: 16px;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--accent-emerald-glow);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}




/* ==========================================================================
   RESET & ESTILOS GERAIS
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilitários de Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.small-container {
    max-width: 800px;
}

/* Tipografia Estilizada */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.badge-accent {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
}

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

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.45);
    filter: brightness(1.1);
}

.pulse-yellow {
    position: relative;
}

.pulse-yellow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 0 var(--accent-yellow-glow);
    animation: button-pulse 2s infinite;
    pointer-events: none;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

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

.btn-outline:hover {
    border-color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.05);
    color: var(--accent-yellow);
}

.btn-link {
    background: transparent;
    color: var(--text-secondary);
}

.btn-link:hover {
    color: var(--text-primary);
    transform: translateY(2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   COOKIE BANNER (LGPD)
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: var(--shadow-premium);
    display: none;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.cookie-content a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

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

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

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.navbar-container {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-fast);
}

.brand-logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.brand-logo-img-footer {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

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

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(7, 9, 19, 0.4) 0%, var(--bg-primary) 85%);
    z-index: 2;
}

/* Marca d'Água Transparente da Logo da Ilha Sun no Fundo da Tela Inicial (Atrás do Texto e Vídeo) */
.hero-watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vw;
    max-width: 850px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.08;
    filter: drop-shadow(0 0 50px rgba(16, 185, 129, 0.4)) brightness(1.2);
    user-select: none;
    animation: pulseWatermark 10s ease-in-out infinite alternate;
}

.hero-watermark-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes pulseWatermark {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.07;
    }
    to {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.11;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-text-block {
    max-width: 620px;
    animation: fadeIn 1s ease-out;
}

.hero-video-side-container {
    width: 100%;
    max-width: 310px;
    aspect-ratio: 9 / 16;
    max-height: 550px;
    margin: 0 auto;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #000;
    animation: fadeIn 1.2s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.commercial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
    border-radius: 26px;
}

.video-sound-toggle {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(13, 17, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.video-sound-toggle:hover {
    background: rgba(16, 185, 129, 0.95);
    border-color: var(--accent-emerald);
    color: #ffffff;
    transform: translateX(-50%) scale(1.05);
}

.hero-text-block h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-block .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

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

/* ==========================================================================
   SIMULADOR SOLAR SECTION
   ========================================================================== */

.simulator-section {
    padding: 8rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.03) 0%, var(--bg-primary) 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
}

.simulator-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* Coluna de Controles */
.simulator-controls {
    padding: 3.5rem;
    border-right: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 3rem;
}

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

.control-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bill-val-bubble {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-family: inherit;
    width: 155px;
    text-align: center;
    outline: none;
    transition: var(--transition-fast);
}

.bill-val-bubble:focus {
    border-color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.18);
    box-shadow: 0 0 10px var(--accent-yellow-glow);
}

/* Range Slider Personalizado */
.slider-wrapper {
    position: relative;
    padding: 1rem 0;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    outline: none;
    transition: var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-yellow);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-yellow-glow), 0 2px 4px rgba(0,0,0,0.5);
    border: 2px solid #fff;
    transition: transform 0.15s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-yellow);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-yellow-glow), 0 2px 4px rgba(0,0,0,0.5);
    border: 2px solid #fff;
    transition: transform 0.15s ease;
}

.custom-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Abas de Topologia */
.topology-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 12px;
    margin-top: 1rem;
    gap: 0.25rem;
}

.tab-label {
    flex: 1;
    cursor: pointer;
}

.tab-label input[type="radio"] {
    display: none;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
}

.tab-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.tab-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.tab-label input[type="radio"]:checked + .tab-button {
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.tab-label input[type="radio"]:checked + .tab-button .tab-title {
    color: var(--accent-emerald);
}

.tab-label input[type="radio"]:checked + .tab-button .tab-desc {
    color: var(--text-secondary);
}

.hybrid-method-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 12px;
    margin-top: 1rem;
    gap: 0.25rem;
}

.method-label {
    flex: 1;
    cursor: pointer;
}

.method-label input[type="radio"] {
    display: none;
}

.method-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
}

.method-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.method-label input[type="radio"]:checked + .method-button {
    background: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.method-label input[type="radio"]:checked + .method-button .method-title {
    color: var(--accent-yellow);
}

/* Estilos do Placeholder de Resultados */
.outputs-placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(20, 26, 56, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 2rem 0;
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.outputs-placeholder-card .placeholder-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.7;
    animation: floatIcon 3s ease-in-out infinite;
}

.outputs-placeholder-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.outputs-placeholder-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.placeholder-skeleton {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.8s infinite;
    border-radius: 6px;
    width: 100%;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 75%;
}

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

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

/* Transições Suaves para Resultados */
.outputs-real-results-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    animation: fadeInResults 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

/* Spinner no botão durante o cálculo */
.spinner-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinLoader 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* Coluna de Resultados (Outputs) */
.simulator-outputs {
    padding: 3.5rem;
    background: rgba(13, 17, 39, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.outputs-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateX(5px);
    border-color: var(--border-hover);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 22px;
    height: 22px;
}

/* Cores específicas dos ícones e brilho */
.capex-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}
.metric-card:hover .capex-icon {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.payback-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}
.metric-card:hover .payback-icon {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.savings-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-yellow);
}
.metric-card:hover .savings-icon {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.carbon-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}
.metric-card:hover .carbon-icon {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0.1rem 0;
}

.metric-subvalue {
    font-size: 0.85rem;
    color: var(--accent-emerald);
}

.metric-footnote {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO DE BENEFÍCIOS / DIFERENCIAIS
   ========================================================================== */

.benefits-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.benefit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 30px -10px rgba(251, 191, 36, 0.05);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: var(--accent-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #fff;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px var(--accent-yellow-glow);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: 8rem 0;
    background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.03) 0%, var(--bg-primary) 70%);
}

.contact-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.contact-card h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   WIDGET DE CHAT (JÚLIA)
   ========================================================================== */

.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Botão Flutuante */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: chat-ripple 2.5s infinite;
}

@keyframes chat-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.chat-icon-svg {
    width: 26px;
    height: 26px;
}

.chat-badge-alert {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent-yellow);
    color: #070913;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: chat-bounce 3s infinite;
}

@keyframes chat-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Janela de Chat */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 410px;
    height: 570px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 90px);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    z-index: 1000;
}

.chat-window.hidden {
    display: none !important;
    transform: scale(0.8) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Sinalização Visual de Início da Simulação */
.chat-window.chat-window-pulse {
    animation: chat-start-pulse 2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes chat-start-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8), var(--shadow-premium);
        border-color: var(--accent-emerald);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 30px 8px rgba(16, 185, 129, 0.5), var(--shadow-premium);
        border-color: #34d399;
        transform: scale(1.01);
    }
    100% {
        box-shadow: var(--shadow-premium);
        border-color: var(--border-color);
        transform: scale(1);
    }
}

.simulation-started-toast {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInSlide 0.4s ease-out;
}

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

.chat-status.chat-status-active {
    color: #34d399;
    font-weight: 700;
}


/* Cabeçalho do Chat */
.chat-header {
    background: rgba(20, 26, 56, 0.8);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #070913;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px var(--accent-yellow-glow);
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.status-indicator.online {
    background: var(--accent-emerald);
}

.chat-header-info {
    flex-grow: 1;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chat-close-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

/* Histórico de Mensagens */
.chat-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    max-width: 85%;
}

.message-content {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.message.assistant {
    align-self: flex-start;
}

.message.assistant .message-content {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 3px;
    border: 1px solid var(--border-color);
}

.message.user {
    align-self: flex-end;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #fff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.system-msg {
    align-self: center;
    max-width: 100%;
}

.system-msg p {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-align: center;
}

/* Área de Entrada */
.chat-input-area {
    padding: 0.85rem 1rem;
    background: rgba(20, 26, 56, 0.8);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    background: var(--accent-emerald);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

/* Botão de Anexo/Clipe */
.chat-attach-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-attach-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.chat-attach-btn svg {
    width: 18px;
    height: 18px;
}

body.light-theme .chat-attach-btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
}

body.light-theme .chat-attach-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
}

/* Animação Pulsante para Solicitar Upload */
.pulse-attach {
    position: relative;
    border-color: var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    animation: attach-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes attach-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
        transform: scale(1.08);
    }
}

/* Upload de Arquivos no Chat */
.chat-upload-card {
    background: rgba(13, 17, 39, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
    max-width: 280px;
    margin-top: 0.25rem;
    box-shadow: var(--shadow-premium);
}

body.light-theme .chat-upload-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.chat-upload-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-upload-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-upload-icon svg {
    width: 18px;
    height: 18px;
}

.chat-upload-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.chat-upload-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.chat-upload-size {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: left;
}

.chat-upload-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-left: auto;
}

.chat-upload-progress {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

body.light-theme .chat-upload-progress {
    background: rgba(15, 23, 42, 0.08);
}

.chat-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-emerald);
    transition: width 0.1s ease;
}

.chat-image-preview {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0.25rem;
    border: 1px solid var(--border-color);
}

body.light-theme .chat-image-preview {
    border-color: rgba(15, 23, 42, 0.08);
}

/* Módulo de Proposta no Chat */
.chat-proposal-card {
    background: rgba(13, 17, 39, 0.9) !important;
    border: 1px solid var(--accent-yellow) !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.chat-proposal-title {
    font-weight: 700;
    color: var(--accent-yellow) !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    padding-bottom: 0.25rem;
}

.chat-proposal-item {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    display: flex;
    justify-content: space-between;
}

.chat-proposal-value {
    font-weight: 700;
    color: var(--text-primary);
}

.strict-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem !important;
    color: #fca5a5 !important;
    margin-top: 0.75rem;
    line-height: 1.35;
}

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

.main-footer {
    background: #04060d;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-brand .cnpj {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links h4, .footer-legal h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-legal p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-legal ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE FIRST)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-text-block {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-video-side-container {
        max-width: 640px;
        margin: 0 auto;
    }

    .simulator-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-controls {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2.5rem;
    }
    
    .simulator-outputs {
        padding: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none; /* Mobile navigation simplified */
    }
    
    .hero-text-block h1 {
        font-size: 2.5rem;
    }
    
    .hero-text-block .subtitle {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .contact-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .topology-tabs {
        flex-direction: column;
    }
    
    .chat-window {
        width: calc(100vw - 20px);
        right: -15px;
        bottom: 70px;
        height: 480px;
    }
}

/* ==========================================================================
   ADICIONAL: COMUTADOR DE TEMAS E SUPORTE A TEMA CLARO
   ========================================================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle-btn-nav {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle-btn-nav:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    fill: none;
    transition: var(--transition-fast);
}

.theme-icon.hidden {
    display: none;
}

/* Overrides para tema claro no Hero, Simulador, Diferenciais e Chat */
body.light-theme .hero-text-block h1 {
    background: linear-gradient(135deg, #0f172a 40%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .video-overlay {
    /* Overlay claro mais denso para garantir excelente legibilidade sobre a filmagem */
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.82) 0%, rgba(241, 245, 249, 0.92) 100%);
}

body.light-theme .simulator-outputs {
    background: rgba(241, 245, 249, 0.6);
}

body.light-theme .topology-tabs {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .tab-button .tab-title {
    color: var(--text-secondary);
}

body.light-theme .tab-label input[type="radio"]:checked + .tab-button {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.light-theme .tab-label input[type="radio"]:checked + .tab-button .tab-title {
    color: var(--accent-emerald);
}

body.light-theme .bill-val-bubble {
    /* Substitui amarelo-claro em fundo claro por âmbar escuro de alto contraste */
    color: #b45309; 
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

body.light-theme .chat-header {
    background: rgba(241, 245, 249, 0.95);
}

body.light-theme .chat-input-area {
    background: rgba(241, 245, 249, 0.95);
}

body.light-theme .chat-input-area input {
    background: #ffffff;
    color: #0f172a;
}

body.light-theme .message.assistant .message-content {
    background: rgba(15, 23, 42, 0.04);
}

body.light-theme .system-msg p {
    background: rgba(15, 23, 42, 0.04);
}

body.light-theme .chat-proposal-card {
    background: #ffffff !important;
    border: 1px solid var(--accent-yellow) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}

body.light-theme .chat-proposal-title {
    /* Amarelo substituído por âmbar escuro no título do orçamento no chat */
    color: #b45309 !important;
    border-bottom-color: rgba(245, 158, 11, 0.2) !important;
}

body.light-theme .chat-proposal-item {
    color: #475569 !important;
}

body.light-theme .chat-proposal-value {
    color: #0f172a !important;
}

body.light-theme .strict-alert {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c !important;
}

/* Rodapé em Tema Claro para legibilidade das variáveis de texto escuro */
body.light-theme .main-footer {
    background: #f1f5f9;
    border-top-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .footer-brand p {
    color: var(--text-secondary);
}

body.light-theme .footer-links a {
    color: var(--text-secondary);
}

body.light-theme .footer-links a:hover {
    color: var(--accent-emerald);
}

body.light-theme .footer-legal p {
    color: var(--text-secondary);
}

body.light-theme .footer-legal a {
    color: var(--accent-emerald);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   IMAGENS DE FUNDO FOTOGRÁFICAS E OVERLAYS
   ========================================================================== */

.simulator-section, .contact-section {
    position: relative;
    overflow: hidden;
}

.simulator-section .container, .contact-section .container {
    position: relative;
    z-index: 3;
}

.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.section-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25; /* Aumentado de 0.08 para 0.25 para visibilidade clara no tema escuro */
    transition: var(--transition-smooth);
}

body.light-theme .section-bg-image img {
    opacity: 0.18; /* Aumentado de 0.04 para 0.18 para visibilidade clara no tema claro */
    filter: grayscale(100%);
}

.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 15%, transparent 85%, var(--bg-primary) 100%);
    z-index: 2;
}

body.light-theme .benefit-card:hover .benefit-icon {
    color: #ffffff;
    background: var(--accent-yellow);
}

/* ==========================================================================
   PAINEL DE CARGAS CRÍTICAS (APARELHOS)
   ========================================================================== */

.cargas-criticas-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: slideDownFade 0.4s ease-out;
}

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

.sub-title-cargas {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.appliances-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.appliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    gap: 1.5rem;
    transition: var(--transition-fast);
}

body.light-theme .appliance-item {
    background: rgba(15, 23, 42, 0.02);
}

.appliance-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.appliance-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.appliance-rating {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contadores Incremento/Decremento */
.counter-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}

body.light-theme .counter-control {
    background: #ffffff;
}

.btn-counter {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-counter:hover {
    background: var(--accent-emerald);
    color: #ffffff;
}

.counter-val {
    width: 36px;
    height: 30px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
}

.hours-val {
    width: 50px;
}

.appliance-controls-flex {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.control-label-pair {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.control-label-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ac-inverter-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    user-select: none;
}

.ac-inverter-check {
    accent-color: var(--accent-emerald);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* Flexibilidade para ar condicionado com subcontadores */
.sub-appliances-flex {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.sub-counter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.small-control .btn-counter {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
}

.small-control .counter-val {
    width: 28px;
    height: 24px;
    font-size: 0.8rem;
}

/* ==========================================================================
   CAIXA DE OUTPUT DE BATERIAS
   ========================================================================== */

.bateria-output-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.03);
    animation: slideDownFade 0.4s ease-out;
}

body.light-theme .bateria-output-container {
    background: rgba(245, 158, 11, 0.04);
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: none;
}

.bateria-output-container h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-yellow);
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

body.light-theme .bateria-output-container h4 {
    color: #b45309;
    border-bottom-color: rgba(245, 158, 11, 0.15);
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value-accent {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-yellow);
}

body.light-theme .stat-value-accent {
    color: #b45309;
}

.battery-footnote {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* ==========================================================================
   SLIDER DE HORAS HÍBRIDO (Backup Apagão)
   ========================================================================== */

.hybrid-hours-slider-wrapper {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    animation: slideDownFade 0.4s ease-out;
}

.text-small-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.hours-val-bubble {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

body.light-theme .hours-val-bubble {
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: none;
}

/* Utilitário Global de Ocultação */
.hidden {
    display: none !important;
}

/* Card de Confirmação do Mapa (OpenStreetMap Interativo) */
.maps-confirmation-card {
    background: rgba(13, 17, 39, 0.75) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 350px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-premium);
}

body.light-theme .maps-confirmation-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.maps-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maps-icon {
    width: 16px;
    height: 16px;
    color: #ef4444; /* Pin vermelho */
}

.maps-card-address {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.streetview-container {
    position: relative;
    width: 100%;
    height: 230px; /* Ampliado para melhor visualização do mapa no chat */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.light-theme .streetview-container {
    border-color: rgba(15, 23, 42, 0.12);
}

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

.streetview-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #38bdf8;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.maps-card-actions {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.25rem;
}

.maps-card-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Botões do Chatbot de dúvidas */
.chat-action-btn-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
}

.chat-action-btn-group .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
}

/* Indicador de Digitando no Chat */
.typing-indicator-msg {
    align-self: flex-start;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-bottom-left-radius: 3px;
    min-height: 38px;
}

body.light-theme .typing-dots {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted, #a0a0a0);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes typing-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.4;
    } 
    40% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Estilos do Widget de Eletrodomésticos no Chat */
.chat-appliances-card {
    background: rgba(20, 26, 56, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 280px;
}
.chat-appliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.chat-counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chat-counter button {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.chat-counter button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
}
.chat-counter span {
    min-width: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-yellow);
}
.chat-confirm-appliances-btn {
    margin-top: 0.5rem;
    padding: 0.6rem;
    font-size: 0.85rem;
}

/* Container de Equipamentos Estimados */
.equipments-output-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.2); /* Sutil borda emerald */
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.equipments-output-container h4 {
    color: var(--accent-emerald);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.equipments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.equipments-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipments-list li strong {
    color: var(--text-primary);
}

.equipments-list li span {
    color: var(--accent-yellow);
    font-weight: 700;
}

/* Nova Seção de Marcas e Equipamentos */
.brands-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon-emerald);
}

.brand-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: rgba(13, 17, 39, 0.4);
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

/* Carrossel de Imagens nos Cards */
.brand-card-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(13, 17, 39, 0.4);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.brand-card-carousel .carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(0.96);
    border-bottom: none;
}

.brand-card-carousel .carousel-img.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(7, 9, 19, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
    background: var(--accent-emerald);
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

body.light-theme .brand-card-image {
    background: rgba(241, 245, 249, 0.6);
}

.brand-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.brand-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
    user-select: none;
    line-height: 1.2;
}

.brand-badge:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
    transform: translateY(-2px);
}

.brand-badge img {
    max-height: 20px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.8) contrast(1.2);
    opacity: 0.85;
    transition: var(--transition-fast);
}

.brand-badge:hover img {
    filter: none;
    opacity: 1;
}

/* ==========================================================================
   PORTAL DE PARCEIROS - ILHA SUN ENERGY
   ========================================================================== */

.partner-container {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    max-width: 1350px;
}

.partner-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.partner-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(var(--blur-value));
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.partner-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-title-block {
    margin-bottom: 2rem;
}

.form-title-block h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-title-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.partner-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.partner-input-text {
    width: 100%;
    background: rgba(13, 17, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.partner-input-text:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
    background: rgba(13, 17, 39, 0.8);
}

.partner-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.partner-checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent-emerald);
    cursor: pointer;
    margin-top: 0.2rem;
}

.partner-checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.partner-checkbox-group label a {
    color: var(--accent-emerald);
    text-decoration: none;
}

/* Estilos do Mapa SVG */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.map-card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.map-container-wrapper {
    background: rgba(13, 17, 39, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.map-container-wrapper:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

#brazil-svg-map {
    width: 100%;
    max-width: 600px; /* Reduzido 20% para perfeito ajuste na tela (de 750px para 600px) */
    height: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#brazil-svg-map svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Animação e Cores ao passar o mouse sobre os Estados no Mapa */
.state, .state-path {
    fill: rgba(20, 26, 56, 0.8) !important;
    stroke: rgba(255, 255, 255, 0.25) !important;
    stroke-width: 1.2;
    cursor: pointer;
    transform-origin: center center;
    transform-box: fill-box;
    transition: transform 0.25s ease, fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.state:hover, .state-path:hover {
    fill: #10b981 !important; /* Destaque verde esmeralda ao passar o mouse */
    stroke: #ffffff !important;
    stroke-width: 2.5;
    transform: scale(1.1); /* Zoom suave no estado */
    filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.9));
}

.state.active-full, .state-path.active-full {
    fill: var(--accent-emerald) !important;
    stroke: #ffffff !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    transform-origin: center center;
    transform-box: fill-box;
    transition: transform 0.25s ease, fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.state.active-full:hover, .state-path.active-full:hover {
    fill: #34d399 !important;
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(52, 211, 153, 1));
}

.state.active-partial, .state-path.active-partial {
    fill: var(--accent-cyan) !important;
    stroke: #ffffff !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
    transform-origin: center center;
    transform-box: fill-box;
    transition: transform 0.25s ease, fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.state.active-partial:hover, .state-path.active-partial:hover {
    fill: #38bdf8 !important;
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 1));
}

.partner-terms-link,
.partner-checkbox-group label a {
    color: var(--accent-emerald) !important;
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.partner-terms-link:hover,
.partner-checkbox-group label a:hover {
    color: #34d399 !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Painel de Drill-down */
.drilldown-panel {
    background: rgba(13, 17, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    max-height: 90%;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.drilldown-panel.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.drilldown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.drilldown-header h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.btn-close-drilldown {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-drilldown:hover {
    color: #fff;
}

.drilldown-actions {
    display: flex;
    gap: 0.75rem;
}

.drilldown-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.city-search-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.city-search-input {
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    color: #fff;
    font-size: 0.9rem;
}

.city-search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.cities-list-box {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    background: rgba(7, 9, 19, 0.4);
}

.city-item-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-item-option:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.city-item-option.selected {
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
}

.city-item-option.selected::after {
    content: "✓";
    font-weight: bold;
    color: var(--accent-cyan);
}

/* Spinner de Loading */
.loader-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

/* Seção de Tags (Chips) */
.selected-regions-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.selected-regions-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(13, 17, 39, 0.2);
}

.chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.chip-tag.chip-full {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #4ade80;
}

.chip-tag.chip-partial {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #22d3ee;
}

.chip-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.chip-remove:hover {
    opacity: 1;
}

/* Modal de Sucesso Customizado */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 16, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-card {
    background: var(--bg-glass-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.custom-modal-overlay.show .custom-modal-card {
    transform: scale(1);
}

.modal-icon-success {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--accent-emerald);
    filter: drop-shadow(0 0 10px var(--accent-emerald-glow));
}

.modal-icon-success svg {
    width: 36px;
    height: 36px;
}

.custom-modal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-modal-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.custom-modal-card .btn {
    width: 100%;
    padding: 0.85rem;
}

/* Erros de Validação */
.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.partner-input-text.has-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Custom Contact Buttons for WhatsApp and Instagram */
.btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-whatsapp:hover {
    background: #1da851 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.35);
}

/* ==========================================================================
   POP-UP DE VÍDEO NO RODAPÉ (Tela Cheia / Fullscreen)
   ========================================================================== */

.footer-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-video-modal-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.footer-video-modal-card {
    background: #070913;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 0;
    margin: auto;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.25);
    overflow: hidden;
    animation: popupFadeIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.footer-video-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10005;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.footer-video-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.footer-video-header {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10005;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.footer-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(90vh - 40px);
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-popup-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000000;
}

.footer-video-sound-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10005;
    background: rgba(7, 9, 19, 0.88);
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.footer-video-sound-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.footer-video-sound-btn.sound-active {
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    border-color: var(--accent-emerald);
}

.btn-instagram:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.35);
}
