/* =========================================================
 * Anzol Platform - Main Stylesheet (Version 6.0 MVP Campo)
 * Architecture: B2B2C Marketplace & SaaS
 * Focus: High-Conversion UI/UX, Glassmorphism & Performance
 * ========================================================= */

/* =========================================
   1. VARIÁVEIS GLOBAIS E RESET
   ========================================= */
:root {
    /* Paleta Principal */
    --primary: #0d6efd;       
    --primary-dark: #0a58ca;  
    --primary-light: rgba(13, 110, 253, 0.1); 
    --secondary: #00b4d8;     
    --gold: #ffb703;          
    --gold-hover: #fb8500;    
    --dark: #023047;          
    --light: #f8fafc;         
    --white: #ffffff;
    --gray-soft: #e2e8f0;

    /* Cores de Feedback / Rating */
    --rating-1: #dc3545; 
    --rating-2: #fd7e14; 
    --rating-3: #ffc107; 
    --rating-4: #20c997; 
    --rating-5: #198754;

    /* Gradientes Oceânicos e Premium */
    --gradient-deep: linear-gradient(180deg, #07192f 0%, #0d2847 45%, #133860 100%);
    --gradient-surface: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    --gradient-premium: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);

    /* Sombras Premium (Hierarquia de Profundidade 3D) */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-blue: 0 12px 30px rgba(13, 110, 253, 0.2); 
    --shadow-gold: 0 12px 30px rgba(255, 183, 3, 0.3);
    --shadow-focus: 0 0 0 4px rgba(13, 110, 253, 0.15); 
    
    /* Animações e Transições Fluídas */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: #334155;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; transition: var(--transition); }
section { position: relative; }
.section-title { letter-spacing: -0.5px; }

/* Scrollbar Customizada Premium */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =========================================
   2. CLASSES UTILITÁRIAS (Helpers)
   ========================================= */
.hover-lift { transition: var(--transition-bounce) !important; }
.hover-lift:hover { transform: translateY(-6px) !important; }

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
}

.dark-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton Loading (Unificado e Otimizado) */
.skeleton { 
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); 
    background-size: 200% 100%; 
    animation: skeleton-loading 1.5s infinite linear; 
    border-radius: 12px; 
}
@keyframes skeleton-loading { 
    0% { background-position: 200% 0; } 
    100% { background-position: -200% 0; } 
}

/* =========================================
   3. BOTÕES E FORMULÁRIOS
   ========================================= */
.btn { 
    padding: 12px 28px; border-radius: 50px; 
    transition: var(--transition); border: none; font-weight: 600;
}
.btn:active { transform: translateY(1px) scale(0.98) !important; }

.btn-primary { background: var(--primary); box-shadow: var(--shadow-blue); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(13, 110, 253, 0.3); color: white; }

.btn-gold { background-color: var(--gold) !important; color: #000 !important; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background-color: var(--gold-hover) !important; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255, 183, 3, 0.45); }

/* Custom Checkboxes Animados (Usados no Admin) */
.btn-check:checked + .btn-outline-secondary { background-color: var(--primary); color: white; border-color: var(--primary); box-shadow: var(--shadow-blue); }

/* =========================================
   4. EFEITOS CINEMATOGRÁFICOS DO AQUÁRIO
   ========================================= */
.hero { position: relative; min-height: 92vh; background: var(--gradient-deep); display: flex; align-items: center; padding-top: 80px; overflow: hidden; }

/* Bloco Reutilizável de Fundo do Mar para Seções (Ex: Parceiros e Vídeos) */
.ocean-section { position: relative; overflow: hidden; color: white; }
.ocean-section .container { position: relative; z-index: 2; }

.ocean-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; background: var(--gradient-deep); pointer-events: none; }

/* Raios de Sol Subaquáticos Suavizados */
.light-rays {
    position: absolute; top: -20%; left: -20%; width: 150%; height: 150%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 60%);
    animation: rays-pulse 12s infinite alternate ease-in-out;
}
@keyframes rays-pulse { from { opacity: 0.3; transform: scale(1); } to { opacity: 0.6; transform: scale(1.05); } }

/* Plânctons Mágicos */
.plankton-particles {
    position: absolute; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.1;
    animation: plankton-drift 30s infinite linear;
}
@keyframes plankton-drift { from { transform: translateY(0); } to { transform: translateY(-100px); } }

/* Bolhas de Ar (Com Otimização de GPU) */
.bubble {
    position: absolute; bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%;
    animation: bubble-rise var(--duration, 10s) infinite ease-in; z-index: 3;
    will-change: transform, opacity; 
}
@keyframes bubble-rise {
    0% { bottom: -50px; transform: translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    100% { bottom: 120%; transform: translateX(var(--drift)); opacity: 0; }
}
.bubble.small { width: 8px; height: 8px; }
.bubble.medium { width: 16px; height: 16px; }
.bubble.large { width: 28px; height: 28px; }

/* =========================================
   PEIXES REALISTAS COLORIDOS (Textura Suave e Discreta)
   ========================================= */
.fish {
    position: absolute; z-index: 2; 
    opacity: 0.15; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)) blur(0.4px);
    background-repeat: no-repeat; background-position: center; background-size: contain;
    animation-name: fish-swim; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
    will-change: transform; 
    pointer-events: none;
}

/* Tucunaré (Verde-Dourado com Ocelo na Cauda) */
.fish-clown { width: 80px; height: 40px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 55' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M105,28 C90,8 50,3 20,22 L5,10 L10,28 L5,45 L20,33 C50,52 90,47 105,28 Z' fill='%23557a3a'/%3E%3Cpath d='M105,28 C90,8 50,3 20,22 L5,10 L10,28 L5,45 L20,33 C50,52 90,47 105,28 Z' fill='url(%23gc1)' opacity='0.6'/%3E%3Ccircle cx='95' cy='30' r='5' fill='%23000' opacity='0.7'/%3E%3Ccircle cx='95' cy='30' r='3' fill='%23ffc107' opacity='0.5'/%3E%3Ccircle cx='80' cy='22' r='2.5' fill='%23111'/%3E%3Cdefs%3E%3ClinearGradient id='gc1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23b8860b'/%3E%3Cstop offset='100%25' stop-color='%23556b2f'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"); }

/* Dourado (Amarelo-Ouro Vibrante) */
.fish-tang { width: 85px; height: 42px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 55' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M105,28 Q75,3 30,18 L8,5 L14,28 L8,50 L30,37 Q75,52 105,28 Z' fill='%23daa520'/%3E%3Cpath d='M105,28 Q75,3 30,18 L8,5 L14,28 L8,50 L30,37 Q75,52 105,28 Z' fill='url(%23gd1)' opacity='0.5'/%3E%3Cpath d='M60,8 L68,2 L65,12 Z M50,10 L56,3 L54,13 Z' fill='%23b8860b'/%3E%3Ccircle cx='85' cy='22' r='2.5' fill='%23111'/%3E%3Cdefs%3E%3ClinearGradient id='gd1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffd700'/%3E%3Cstop offset='100%25' stop-color='%23b8860b'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"); }

/* Pintado (Cinza Prateado com Pintas Escuras) */
.fish-mandarin { width: 90px; height: 38px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 130 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M120,25 Q85,5 30,18 L5,8 L12,25 L5,42 L30,32 Q85,45 120,25 Z' fill='%23a0a8b0'/%3E%3Ccircle cx='45' cy='20' r='3' fill='%23555' opacity='0.6'/%3E%3Ccircle cx='60' cy='28' r='2.5' fill='%23555' opacity='0.5'/%3E%3Ccircle cx='55' cy='15' r='2' fill='%23555' opacity='0.5'/%3E%3Ccircle cx='75' cy='22' r='2.5' fill='%23555' opacity='0.4'/%3E%3Ccircle cx='70' cy='32' r='2' fill='%23555' opacity='0.4'/%3E%3Cpath d='M110,15 L115,5 L112,18 Z M105,35 L110,42 L108,33 Z' fill='%23888'/%3E%3Ccircle cx='100' cy='20' r='2.5' fill='%23111'/%3E%3C/svg%3E"); }

/* Pacu (Prateado Arredondado) */
.fish-lion { width: 70px; height: 50px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 90 65' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M80,33 C70,8 30,5 15,28 L3,15 L8,33 L3,50 L15,38 C30,60 70,57 80,33 Z' fill='%23b0b8c0'/%3E%3Cpath d='M80,33 C70,8 30,5 15,28 L3,15 L8,33 L3,50 L15,38 C30,60 70,57 80,33 Z' fill='url(%23gp1)' opacity='0.4'/%3E%3Ccircle cx='65' cy='25' r='2.5' fill='%23111'/%3E%3Cdefs%3E%3ClinearGradient id='gp1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23c0c8d0'/%3E%3Cstop offset='100%25' stop-color='%23e07040'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"); }

/* Tambaqui (Cinza Escuro com Barriga Avermelhada) */
.fish-seahorse { width: 75px; height: 45px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 95 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M85,30 C72,8 28,5 12,26 L2,12 L8,30 L2,48 L12,34 C28,55 72,52 85,30 Z' fill='%23606870'/%3E%3Cpath d='M12,34 C28,55 72,52 85,30 C72,40 28,42 12,34 Z' fill='%23c04030' opacity='0.6'/%3E%3Ccircle cx='70' cy='24' r='2.5' fill='%23111'/%3E%3C/svg%3E"); }

/* Animação Orgânica (Sobe e desce enquanto nada simulando nado real) */
@keyframes fish-swim {
    0% { transform: translateX(-10vw) translateY(0px) rotate(0deg); }
    25% { transform: translateX(25vw) translateY(-15px) rotate(-5deg); }
    50% { transform: translateX(60vw) translateY(10px) rotate(5deg); }
    75% { transform: translateX(85vw) translateY(-5px) rotate(-2deg); }
    100% { transform: translateX(110vw) translateY(0px) rotate(0deg); }
}

.hero-content { position: relative; z-index: 10; }

/* =========================================
   5. NAVBAR E BARRA DE PESQUISA CORE
   ========================================= */
@media (min-width: 992px) {
    #mainNav { position: absolute !important; top: 0; left: 0; width: 100%; background: transparent !important; z-index: 1050; padding-top: 25px !important; }
}
@media (max-width: 991px) {
    #mainNav { position: fixed !important; background: rgba(2, 48, 71, 0.98) !important; backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 15px 0; z-index: 1050; }
    .navbar-collapse { 
        background-color: #023e8a; 
        padding: 1.5rem; 
        border-radius: 16px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
        margin-top: 15px; 
    }
    .navbar-collapse .nav-link {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-top: 10px;
        padding-bottom: 10px;
    }
    #authSection .btn { width: 100%; margin-bottom: 0.5rem; }
    #userMenu { text-align: center; width: 100%; }
}
.navbar-light { background: rgba(255,255,255,0.95) !important; backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-soft); }

/* Barra de Busca Home (Floating Card Estilo Airbnb/Booking) */
.search-box { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(25px); 
    padding: 2.25rem 2.5rem; 
    border-radius: 28px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0,0,0,0.04) !important; 
    border: 1px solid rgba(255, 255, 255, 0.95);
}
.search-box .form-control, .search-box .form-select { 
    border: 1px solid var(--gray-soft); 
    padding: 14px 18px; 
    border-radius: 14px; 
    font-weight: 500; 
    transition: var(--transition); 
}
.search-box .form-control:focus, .search-box .form-select:focus { 
    border-color: var(--primary); 
    box-shadow: var(--shadow-focus); 
    transform: translateY(-2px); 
}

@media (max-width: 991px) {
    .search-box { padding: 1.5rem; border-radius: 20px; }
    .search-box .form-control, .search-box .form-select { padding: 10px 15px; }
}

/* =========================================
   6. A MATEMÁTICA ORBITAL CORRIGIDA (TIMELINE 10s)
   ========================================= */
.energy-timeline { position: relative; padding: 2rem 0; margin: 3rem 0; z-index: 1; }
.timeline-track { position: absolute; top: 50px; left: 16.66%; width: 66.66%; height: 4px; background: var(--gray-soft); z-index: 1; }

/* A Linha de Energia Linear */
.timeline-energy { 
    position: absolute; top: 50px; left: 16.66%; height: 4px; 
    background: var(--primary); z-index: 2; box-shadow: 0 0 15px var(--primary); 
    animation: flowEnergy 10s infinite linear; 
}

/* Coreografia Exata da Linha: Pula para 33.33% (Nó 2) e depois 66.66% (Nó 3) */
@keyframes flowEnergy {
    0%, 15% { width: 0%; opacity: 1; }              /* Pausado no início: Nó 1 gira */
    35%, 50% { width: 33.33%; opacity: 1; }         /* Viaja e Pausa: Nó 2 gira (exatos 33.33% da track) */
    70%, 85% { width: 66.66%; opacity: 1; }         /* Viaja e Pausa: Nó 3 gira (exatos 66.66% da track) */
    90%, 100% { width: 66.66%; opacity: 0; }        /* Apaga suavemente sem overshoot e reinicia */
}

.timeline-node {
    position: relative; z-index: 3; width: 100px; height: 100px;
    background: white; border: 4px solid var(--light); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* O Anel de Giro Orbital */
.node-ring {
    position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 4px solid transparent; border-top-color: var(--primary); border-right-color: var(--primary);
    border-radius: 50%; opacity: 0; z-index: 4;
}

/* Sincronização Matemática cravada nos 10 segundos (Cubic-Bezier para o arranque realístico) */
.step-1 .node-ring { animation: spinRing1 10s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.step-2 .node-ring { animation: spinRing2 10s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.step-3 .node-ring { animation: spinRing3 10s infinite cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes spinRing1 {
    0% { transform: rotate(0deg); opacity: 0; }
    2% { opacity: 1; }
    13% { opacity: 1; }
    15%, 100% { transform: rotate(360deg); opacity: 0; }
}

@keyframes spinRing2 {
    0%, 35% { transform: rotate(0deg); opacity: 0; }
    37% { opacity: 1; }
    48% { opacity: 1; }
    50%, 100% { transform: rotate(360deg); opacity: 0; }
}

@keyframes spinRing3 {
    0%, 70% { transform: rotate(0deg); opacity: 0; }
    72% { opacity: 1; }
    83% { opacity: 1; }
    85%, 100% { transform: rotate(360deg); opacity: 0; }
}

@media (max-width: 768px) {
    .timeline-track, .timeline-energy, .node-ring { display: none; } 
}

/* =========================================
   7. CHAT SIMULADO 360º (PROVA SOCIAL NATIVA)
   ========================================= */
.chat-widget { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--gray-soft); }
.chat-compact { max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; height: 100%; }

.chat-header { background: var(--primary); color: white; padding: 12px 15px; display: flex; align-items: center; gap: 12px; }
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); font-size: 1rem; flex-shrink: 0; }

.chat-body { padding: 15px; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; min-height: 380px; }
.chat-bubble { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 0.85rem; line-height: 1.4; animation: fadeInChat 0.5s ease forwards; opacity: 0; position: relative; }

.chat-left { align-self: flex-start; background: #fff; color: #334155; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-soft); }
.chat-right { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2); }

/* Variações de cor para o Grid 360º */
.chat-header.bg-success { background: #198754 !important; }
.chat-right.bg-success { background: #198754 !important; box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2); }

.chat-header.bg-dark { background: #212529 !important; }
.chat-right.bg-dark { background: #212529 !important; box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2); }

.chat-footer { padding: 12px 15px; background: #fff; border-top: 1px solid var(--gray-soft); display: flex; align-items: center; gap: 10px; }
.chat-input-fake { flex-grow: 1; background: #f1f5f9; border-radius: 20px; padding: 10px 15px; color: #94a3b8; font-size: 0.85rem; border: 1px solid var(--gray-soft); }

@keyframes fadeInChat { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Atrasos em cascata para simular conversa natural */
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 2.5s; }
.delay-4 { animation-delay: 3.5s; }

/* =========================================
   8. GALERIA AIRBNB STYLE E MODAIS FOTOGRÁFICOS
   ========================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 220px; gap: 12px; border-radius: 20px; overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); background: var(--gray-soft); }
.gallery-item { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: pointer; background: var(--gray-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.item-main { grid-column: span 2; grid-row: span 2; }

/* Badge de Identificação da Foto */
.img-badge {
    position: absolute; bottom: 15px; left: 15px; z-index: 2;
    background: rgba(0,0,0,0.7); color: white; padding: 6px 12px;
    border-radius: 8px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(4px);
}

/* Camada Escura para "Mais Fotos (+X)" */
.gallery-more-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); color: white; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 2.5rem;
    font-weight: 700; transition: background 0.3s; z-index: 3;
}
.gallery-item:hover .gallery-more-overlay { background: rgba(0,0,0,0.7); }

/* Etiqueta Dinâmica dentro do Modal em Tela Cheia */
.gallery-modal-badge {
    position: absolute; top: 20px; left: 20px; z-index: 1060;
    background: rgba(0,0,0,0.6); color: white; padding: 8px 16px;
    border-radius: 30px; font-size: 1rem; font-weight: 600;
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 0; margin: 0 -15px 2rem -15px; padding: 0 15px 10px; box-shadow: none; background: transparent; }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item { flex: 0 0 85%; height: 300px; scroll-snap-align: center; border-radius: 16px; border: 1px solid var(--gray-soft); }
    .item-main { grid-column: auto; grid-row: auto; }
}

/* =========================================
   9. COMPONENTES: CARDS, SPOTS E UI RESERVAS
   ========================================= */
/* Stories de Vídeo (Home) */
.stories-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px 0; }
.story-card { width: 100%; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-md); transition: var(--transition-bounce); cursor: pointer; }
.story-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,0.5) !important; }
@media (max-width: 991px) {
    .stories-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 5px 20px; }
    .stories-wrapper::-webkit-scrollbar { display: none; }
    .story-card { flex: 0 0 70%; scroll-snap-align: center; border-radius: 16px; }
}

/* Cards Interativos de Vagas (Spots) */
.spot-card { border: 2px solid var(--gray-soft); border-radius: 20px; cursor: pointer; background: white; position: relative; transition: var(--transition-bounce); overflow: hidden; }
.spot-card:hover { border-color: #cbd5e1; transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.spot-card.selected { border-color: var(--primary) !important; background-color: #f4f8ff; box-shadow: var(--shadow-focus) !important; }
.spot-radio { display: none; } 
.spot-check-icon { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; color: var(--primary); opacity: 0; transform: scale(0.5); transition: var(--transition); }
.spot-card.selected .spot-check-icon { opacity: 1; transform: scale(1); }
.spot-img-thumb { width: 140px; height: 140px; object-fit: cover; border-radius: 14px; }
@media (max-width: 576px) { .spot-img-thumb { width: 100px; height: 100px; } }

/* Geometria Padronizada da Foto do Spot */
.spot-img-col {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    background-color: #f1f5f9;
}
.spot-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (min-width: 768px) {
    .spot-img-col {
        position: relative;
        min-height: 220px;
        height: 100%;
    }
    .spot-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 767.98px) {
    .spot-img-col {
        height: 190px;
        width: 100%;
    }
}


/* Grid de Regras e Avisos */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tip-item { display: flex; align-items: center; gap: 15px; background: white; padding: 15px 20px; border-radius: 16px; border: 1px solid var(--gray-soft); transition: transform 0.2s; }
.tip-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tip-icon-box { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }

/* Efeito Tátil Mobile (Interação na Seção Parceiros) */
.tactile-item { cursor: pointer; outline: none; transition: transform 0.2s; user-select: none; -webkit-tap-highlight-color: transparent; }
.tactile-item:active { transform: scale(0.98); }
.tactile-item:hover .partner-icon,
.tactile-item:active .partner-icon,
.tactile-item:focus .partner-icon {
    background: var(--gold) !important; 
    color: #000 !important; 
    transform: scale(1.15) rotate(-5deg);
}

/* Mapa GPS */
.map-wrapper { width: 100%; height: 400px; background: var(--gray-soft); border-radius: 20px; z-index: 1; overflow: hidden; border: 1px solid var(--gray-soft); position: relative; }
.leaflet-control-attribution { display: none !important; } /* White-labeling */

/* Barra Flutuante de Pagamento (Sticky Bottom) */
.sticky-bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--gray-soft); box-shadow: 0 -10px 30px rgba(0,0,0,0.08); z-index: 1040; padding: 15px 0; transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.sticky-bottom-bar.visible { transform: translateY(0); }

/* =========================================
   10. ADMIN PAINEL E LOGIN WRAPPERS
   ========================================= */
.login-wrapper { height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; background: var(--gradient-deep); position: fixed; top: 0; left: 0; z-index: 9999; }
.login-card { background: rgba(255, 255, 255, 0.98); width: 100%; max-width: 420px; padding: 3rem; border-radius: 24px; box-shadow: var(--shadow-lg); }
.password-toggle-btn { background: transparent; border: none; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #6c757d; z-index: 10; cursor: pointer; padding: 5px; }

/* Layout Master Admin */
.dashboard-container { display: flex; width: 100%; min-height: 100vh; background-color: #f8f9fa; }
.sidebar { width: 280px; flex-shrink: 0; background: #1e293b; color: white; padding: 2rem 1.5rem; height: 100vh; position: sticky; top: 0; left: 0; display: flex; flex-direction: column; z-index: 1000; transition: transform 0.3s ease; }
.main-content { flex-grow: 1; min-width: 0; padding: 2.5rem; transition: var(--transition); }
@media (max-width: 991px) {
    .sidebar { position: fixed; transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { padding: 1.5rem; width: 100%; }
}
.sidebar-link { display: flex; align-items: center; padding: 14px 20px; color: #94a3b8; border-radius: 12px; margin-bottom: 8px; transition: var(--transition); cursor: pointer; font-weight: 500; text-decoration: none; }
.sidebar-link:hover, .sidebar-link.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); }
.sidebar-link i { width: 24px; margin-right: 12px; font-size: 1.1rem; }

/* Cards de Estatísticas Admin */
.stat-card { background: white; border-radius: 20px; padding: 1.5rem; border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm); transition: var(--transition-bounce); height: 100%; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }

/* Tabelas Customizadas */
.table-custom-container { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9; }
.table thead th { background: #f8fafc; font-size: 0.75rem; text-transform: uppercase; color: #64748b; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--gray-soft); border-top: none; }
.table tbody td { padding: 1.2rem 1.5rem; vertical-align: middle; color: #334155; border-color: #f1f5f9; }

/* Área de Upload e Drag and Drop */
.img-preview-card { width: 80px; height: 80px; position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--gray-soft); cursor: grab; transition: transform 0.2s; }
.img-preview-card:active { cursor: grabbing; }
.img-preview-card img { width: 100%; height: 100%; object-fit: cover; }
.btn-remove-img { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(220, 53, 69, 0.9); color: white; border: none; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; transition: 0.2s; }
.btn-remove-img:hover { background: #dc3545; transform: scale(1.1); }

/* =========================================
   11. RODAPÉ PREMIUM E EXTRAS
   ========================================= */
footer { background: var(--dark); color: #cbd5e1; padding-top: 80px; padding-bottom: 40px; }
.footer-premium { background: var(--gradient-premium); color: white; padding: 5rem 0 2rem 0; margin-top: 4rem; }
.footer-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-pillar .icon-circle {
    width: 70px; height: 70px; border-radius: 50%; 
    background: rgba(255, 255, 255, 0.1); 
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--gold); margin-bottom: 15px;
    transition: transform 0.3s; border: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-pillar:hover .icon-circle { transform: translateY(-5px); background: rgba(255, 255, 255, 0.2); }

.footer-links h6 { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.2px; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a { color: #94a3b8; font-size: 0.95rem; transition: var(--transition); }
.social-icons a { width: 42px; height: 42px; line-height: 42px; text-align: center; background: rgba(255,255,255,0.05); border-radius: 50%; display: inline-block; margin-right: 10px; color: #fff; transition: var(--transition); }
.social-icons a:hover { background: var(--primary); transform: rotate(360deg) scale(1.1); }

/* Animação de Toque e Hover no Link do Rodapé */
.footer-hover-link { transition: color 0.15s ease-in-out, transform 0.15s ease-in-out; display: inline-block; -webkit-tap-highlight-color: transparent; }
.footer-hover-link:hover, .footer-hover-link:active, .footer-hover-link:focus { color: var(--gold) !important; transform: translateX(6px); outline: none; }

/* Accordion (FAQ) */
.accordion-button:not(.collapsed) { background-color: var(--primary-light); color: var(--primary); font-weight: bold; box-shadow: inset 0 -1px 0 rgba(0,0,0,.05); }
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,.125); }

/* Pulse Escassez (App.js) */
.badge-escassez { animation: pulse-danger 2s infinite; }
@keyframes pulse-danger { 
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); } 
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } 
}

/* =========================================
   12. SKELETON LOADERS & ACESSIBILIDADE WCAG
   ========================================= */
.skeleton-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--gray-soft);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.skeleton-img {
    height: 220px;
    width: 100%;
}
.skeleton-title {
    height: 24px;
    width: 75%;
    margin-bottom: 12px;
}
.skeleton-text {
    height: 14px;
    width: 90%;
    margin-bottom: 8px;
}
.skeleton-badge {
    height: 22px;
    width: 90px;
    border-radius: 50px;
}

/* Foco Acessível para Teclado e Leitores de Tela (WCAG 2.1 AA) */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 3px solid var(--gold) !important;
    outline-offset: 2px !important;
}

/* QR Code & Voucher Container */
.voucher-qr-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.voucher-code-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--dark);
    display: inline-block;
}

/* Modais Ergonômicos Mobile (Bottom Sheet Style em telas pequenas) */
@media (max-width: 576px) {
    .modal-dialog-bottom-sheet {
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
    }
    .modal-dialog-bottom-sheet .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
    .btn {
        min-height: 48px; /* Diretriz WCAG área mínima de toque */
    }
}

/* ============= TÍTULOS DOS CARDS EM ATÉ 2 LINHAS ============= */
.card-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    min-height: 2.7em;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ============= ESPÉCIES PREMIUM ============= */
.species-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.species-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00b4d8, #0d6efd);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.species-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15), 0 0 0 1px rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.species-card:hover::before {
    opacity: 1;
    animation: shimmer-line 2s linear infinite;
}

.species-card:hover .species-img {
    transform: scale(1.12) rotate(-2deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.species-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(13, 110, 253, 0.08);
    transition: all 0.4s;
}

.species-card:hover .species-img-wrapper {
    border-color: rgba(13, 110, 253, 0.25);
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.species-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@keyframes shimmer-line {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (max-width: 767.98px) {
    .species-img-wrapper {
        width: 90px;
        height: 90px;
    }
    .species-card {
        padding: 1rem 0.75rem;
        border-radius: 16px;
    }
    #species-gallery .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* ============= ANZOL CLUB & HALL DA FAMA REGIONAL ============= */
.club-tier-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    background: #ffffff;
}
.club-tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
.club-tier-card.tier-silver {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #dee2e6 !important;
}
.club-tier-card.tier-gold {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf2 100%);
    border-color: #ffd43b !important;
}
.club-tier-card.tier-black {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    border-color: #212529 !important;
}
.ranking-tab-btn {
    transition: all 0.25s ease;
    font-size: 0.85rem;
    border-width: 1.5px;
}
.ranking-tab-btn.active {
    background-color: #0b1f3a !important;
    color: #ffffff !important;
    border-color: #0b1f3a !important;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.25);
}
.ranking-item-card {
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}
.ranking-item-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: rgba(13, 110, 253, 0.25);
}
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fs-9 { font-size: 0.68rem !important; }

/* ============= AUTOCOMPLETE & QUICK DESTINATION TAGS ============= */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background-color: #f1f5f9;
}

.autocomplete-item:hover .text-dark, .autocomplete-item.active .text-dark {
    color: var(--primary) !important;
}

.quick-dest-tag {
    font-size: 0.8rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #f8fafc;
    border-color: #e2e8f0 !important;
}

.quick-dest-tag:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    color: #0b1f3a !important;
}

.quick-dest-tag.active {
    background-color: #0b1f3a !important;
    color: #ffffff !important;
    border-color: #0b1f3a !important;
    box-shadow: 0 4px 10px rgba(11, 31, 58, 0.2);
}

/* =========================================
   IMPRESSÃO LIMPA DE VOUCHER (CAMPO)
   ========================================= */
@media print {
    body { background: #fff !important; }
    
    /* Ocultar tudo que não é conteúdo */
    .navbar, .sidebar, footer, .toast-container,
    .btn, button, .sticky-bottom, .hover-lift,
    .modal-backdrop, .offcanvas-backdrop,
    #auth-guard, .search-box, .quick-dest-tags,
    .fab-whatsapp, #mainNav, .badge-promo,
    .modal-footer, [data-bs-dismiss] { 
        display: none !important; 
    }
    
    /* Garantir que modal de voucher seja imprimível */
    .modal { position: static !important; display: block !important; }
    .modal-dialog { max-width: 100% !important; margin: 0 !important; }
    .modal-content { border: none !important; box-shadow: none !important; }
    
    /* Legibilidade */
    * { color: #000 !important; background: #fff !important; }
    .text-white, .text-white-50 { color: #000 !important; }
    .bg-primary, .bg-dark, .bg-success { background: #fff !important; border: 1px solid #000 !important; }
    
    /* Código do voucher em destaque */
    .font-monospace { font-size: 1.5rem !important; font-weight: 900 !important; }
}


/* =========================================================================
   ANZOL PREMIUM UI LAYER — 05/10/2026
   "Oceanic Premium": liquid glass + micro-interações + conversão
   ========================================================================= */

:root {
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --glass-white: rgba(255, 255, 255, 0.93);
    --glass-border: rgba(255, 255, 255, 0.55);
    --aqua-glow: 0 0 0 1px rgba(0, 180, 216, 0.25), 0 24px 48px -12px rgba(0, 119, 182, 0.28);
}

/* ---------- HERO ---------- */
.hero-eyebrow {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e0f7ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2ee59d;
    box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7);
    animation: live-pulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.65); }
    70%  { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); }
}
.hero-headline {
    font-size: clamp(2.1rem, 5.2vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.hero-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #ffe08a 0%, #ffc93c 38%, #7ee8fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffc93c; /* fallback */
    text-shadow: none; /* sombra herdada do h1 "vaza" pelo preenchimento transparente e deixa o gradiente turvo */
    filter: drop-shadow(0 4px 18px rgba(255, 201, 60, 0.18));
}
.hero-highlight.typing::after {
    content: '';
    display: inline-block;
    width: 3px; height: 0.9em;
    margin-left: 4px;
    vertical-align: -0.08em;
    background: #ffd166;
    -webkit-text-fill-color: initial;
    animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.trust-chip {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: rgba(2, 48, 71, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.trust-chip i { color: #ffd166; }

.live-stats-strip {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 0.88rem;
    color: #e6fbff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(72, 202, 228, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fade-up 0.7s var(--ease-premium) both;
}
.live-stats-strip:not(.d-none) { display: inline-flex !important; }
.live-stat { display: inline-flex; align-items: center; gap: 6px; }
.live-stat i { color: #48cae4; }
.live-stat strong { color: #fff; font-variant-numeric: tabular-nums; }
.live-sep { opacity: 0.4; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- BUSCA (liquid glass) ---------- */
.search-glass {
    background: var(--glass-white) !important;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 30px 60px -20px rgba(2, 48, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}
.search-glass .form-control:focus,
.search-glass .form-select:focus {
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.18) !important;
    border-color: #48cae4 !important;
}

/* ---------- POR QUE ANZOL ---------- */
.trust-tile {
    padding: 22px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(2, 48, 71, 0.06);
    box-shadow: 0 6px 24px -10px rgba(2, 48, 71, 0.18);
    text-align: center;
    transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}
.trust-tile:hover { transform: translateY(-4px); box-shadow: var(--aqua-glow); }
.trust-tile-icon {
    width: 46px; height: 46px; margin: 0 auto 10px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.2rem;
    color: #0077b6;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.14), rgba(0, 119, 182, 0.08));
}
.trust-tile-num {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #023047;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.trust-tile-label { font-size: 0.85rem; color: #64748b; margin-top: 4px; }

/* ---------- CARDS PREMIUM ---------- */
.card-premium {
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px -8px rgba(2, 48, 71, 0.18);
    transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
    will-change: transform;
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--aqua-glow);
}
.card-premium .card-img-wrap img {
    transition: transform 0.9s var(--ease-premium);
}
.card-premium:hover .card-img-wrap img { transform: scale(1.07); }
.card-img-overlay-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(2, 24, 47, 0.28) 0%, transparent 35%, transparent 60%, rgba(2, 24, 47, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}
.card-premium .card-cta { transition: transform 0.25s var(--ease-premium), box-shadow 0.25s; }
.card-premium:hover .card-cta { box-shadow: 0 10px 22px -8px rgba(13, 110, 253, 0.55) !important; }
.card-premium:hover .card-cta .fa-arrow-right { transform: translateX(4px); }
.card-cta .fa-arrow-right { transition: transform 0.3s var(--ease-premium); }
.card-sponsored:hover { box-shadow: 0 0 0 1px rgba(255, 183, 3, 0.5), 0 24px 48px -12px rgba(255, 183, 3, 0.35); }

.seal-official {
    align-self: flex-start;
    display: inline-flex; align-items: center;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.28);
}

/* Planejamento e convite: conteúdo legível, sem métricas ilustrativas. */
.planning-section { padding: 88px 0 64px; background: #f0f5f7; color: #173849; }
.planning-eyebrow { display: block; margin-bottom: 14px; color: #386276; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.planning-title { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; margin-bottom: 0; }
.planning-intro { color: #4e6470; line-height: 1.8; max-width: 46ch; }
.planning-card { padding: 30px; background: #fff; border: 1px solid #dce6eb; border-radius: 20px; }
.planning-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 15px; background: #edf5f8; color: #12627c; font-size: 1.3rem; }
.planning-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.planning-card p { color: #4e6470; line-height: 1.8; font-size: .94rem; }
.planning-detail { display: block; padding-top: 16px; border-top: 1px solid #e5ecef; color: #386276; font-size: .82rem; line-height: 1.7; }
.planning-footnote { display: flex; gap: 12px; align-items: baseline; margin-top: 26px; color: #4e6470; font-size: .83rem; line-height: 1.8; }
.planning-footnote p { margin: 0; }
.planning-footnote a, .participate-institutional a { color: #155d78; text-underline-offset: 4px; font-weight: 600; }
.participate-section { padding: 72px 0; background: #fff; color: #173849; }
.participate-heading { max-width: 720px; margin-bottom: 32px; }
.participate-heading > p { margin-top: 18px; color: #4e6470; line-height: 1.8; }
.participate-card { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; border-radius: 24px; background: #f6f8f9; border: 1px solid #dce6eb; }
.participate-card-fisher { background: #07384d; color: #fff; border-color: #07384d; }
.participate-label { display: flex; align-items: center; gap: 10px; font-size: .83rem; font-weight: 600; margin-bottom: 26px; }
.participate-card-fisher .participate-label { color: #ffdb78; }
.participate-card h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); font-weight: 700; line-height: 1.35; }
.participate-card p { line-height: 1.8; color: #4e6470; margin: 12px 0 24px; }
.participate-card-fisher p, .participate-card-fisher small { color: #d1e4eb; }
.participate-card .btn { margin-top: auto; white-space: normal; text-align: left; }
.participate-card small { display: block; font-size: .78rem; line-height: 1.7; margin-top: 16px; }
.participate-institutional { margin: 28px 0 0; font-size: .85rem; line-height: 1.8; color: #4e6470; }
.planning-section a:focus-visible, .participate-section a:focus-visible { outline: 3px solid #cc9600; outline-offset: 5px; }
@media (max-width: 767.98px) {
    .planning-section, .participate-section { padding: 48px 0; }
    .planning-card, .participate-card { padding: 24px; }
    .planning-title br { display: none; }
}

/* ---------- MICRO-INTERAÇÕES ---------- */
.btn-press { transition: transform 0.15s ease, box-shadow 0.25s ease; }
.btn-press:active { transform: scale(0.96); }
.btn.rippling { overflow: hidden; }
.btn.rippling-pos { position: relative; }
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
    transform: scale(0);
    animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Reveal ao rolar (ativado só quando o observer JS está rodando) */
html.reveal-ready .animate-on-scroll:not(.visible) {
    opacity: 0;
    transform: translateY(28px);
}
html.reveal-ready .animate-on-scroll {
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

/* ---------- CTA FIXO MOBILE ---------- */
.sticky-cta-mobile { display: none; }
@media (max-width: 767.98px) {
    .sticky-cta-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 1040;
        padding: 10px 10px 10px 18px;
        border-radius: 18px;
        background: rgba(2, 48, 71, 0.92);
        border: 1px solid rgba(72, 202, 228, 0.3);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
        transform: translateY(140%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.45s var(--ease-premium), opacity 0.3s ease;
    }
    .sticky-cta-mobile.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .sticky-cta-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
    .sticky-cta-title { color: #fff; font-weight: 700; font-size: 0.95rem; }
    .sticky-cta-sub { color: #9adbea; font-size: 0.76rem; }
    .sticky-cta-mobile .btn { white-space: nowrap; flex-shrink: 0; }
    /* WhatsApp flutuante sobe para não ficar atrás do CTA */
    body.has-sticky-cta .whatsapp-float { bottom: 112px; }

    .hero-headline { font-size: clamp(1.85rem, 8vw, 2.4rem); }
    .trust-chip { font-size: 0.78rem; padding: 6px 12px; }
    .live-stats-strip { font-size: 0.8rem; }
}

/* ---------- ACESSIBILIDADE: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    .card-premium, .card-premium .card-img-wrap img, .trust-tile,
    .sticky-cta-mobile, html.reveal-ready .animate-on-scroll { transition: none !important; }
    .card-premium:hover, .trust-tile:hover { transform: none; }
    .card-premium:hover .card-img-wrap img { transform: none; }
    html.reveal-ready .animate-on-scroll:not(.visible) { opacity: 1; transform: none; }
    .live-dot { animation: none; }
}
