@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --neon-green: #39ff14; /* Verde Neon Tático */
    --dark-bg: #050505;    /* Preto Profundo */
    --card-bg: #141414;    /* Cinza Muito Escuro para Cards */
    --text-main: #f0f0f0;  /* BRANCO GELO */
    --text-muted: #dcdcdc; /* Cinza claro */
    --white: #ffffff;
}

/* =========================================
   1. ESTILOS GERAIS E TIPOGRAFIA
   ========================================= */
body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 0;
    font-size: 16px;
    overflow-x: hidden;
}

p, li {
    text-align: justify;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 400;
}

h1, h2, h3, h4, h5 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--white);
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

h2 {
    border-bottom: 2px solid var(--neon-green);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* =========================================
   2. NAVBAR E CABEÇALHO (DESKTOP)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #000;
    border-bottom: 2px solid var(--neon-green);
    z-index: 2000; /* Z-index alto para ficar acima de tudo */
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.logo-small { 
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.6));
    transition: 0.3s;
}

/* CONTAINER DOS BOTÕES (DESKTOP) */
.nav-links {
    display: flex;
    gap: 0; /* Botões colados */
    height: 100%;
    align-items: flex-end; /* Alinha na base */
}

/* ESTILO DOS BOTÕES (Retangulares, borda completa) */
.nav-links .btn-neon {
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 6px; /* Afasta o botão da linha verde base */
    border: 1px solid var(--neon-green); 
    border-radius: 0; 
    background: transparent;
    display: flex;
    align-items: center;
    color: var(--neon-green);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links .btn-neon:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    z-index: 1;
}

/* =========================================
   3. CONFIGURAÇÃO GERAL DO HAMBURGER 
   (Definido aqui para garantir que as barras tenham cor/tamanho)
   ========================================= */
.hamburger {
    display: none; /* Escondido por padrão no Desktop */
    cursor: pointer;
    padding: 10px;
    z-index: 2100;
    -webkit-tap-highlight-color: transparent; /* Remove flash azul no toque mobile */
}

.bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background-color: var(--neon-green); /* Cor essencial */
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-green);
}

/* Animação do Hamburger virando X */
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================
   4. LAYOUT DE CONTEÚDO, CARDS E FORMULÁRIOS
   ========================================= */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 140px 20px 40px 20px; 
}

.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 90px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.split-section:nth-child(even) { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-img { flex: 1; text-align: center; }

.split-img img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card, .section-box, .info-box, .process-card, .admin-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #333;
    border-left: 3px solid var(--neon-green);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card h3, .process-card h4 { color: var(--neon-green); }

/* Botões Genéricos do Conteúdo */
.btn-neon {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 12px 28px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
    text-align: center;
}

.btn-neon:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

.social-btns { margin-top: 25px; display: flex; gap: 20px; }
.social-icon { font-size: 2rem; color: var(--white); transition: 0.3s; }
.social-icon:hover { color: var(--neon-green); transform: scale(1.1); }

/* Formulários com Alto Contraste */
.contact-form { width: 100%; }

.contact-form input, .contact-form textarea, .contact-form select,
input.contact-form, textarea.contact-form, select.contact-form {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #1a1a1a; 
    border: 1px solid #666; 
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus,
input.contact-form:focus, textarea.contact-form:focus {
    outline: none;
    border-color: var(--neon-green);
    background: #050505;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.alert { padding: 15px; background: rgba(57, 255, 20, 0.2); border: 1px solid var(--neon-green); color: white; text-align: center; margin-bottom: 20px; border-radius: 4px; font-weight: bold;}
textarea.contact-form { text-align: left; }
@keyframes fadeIn { to { opacity: 1; } }
label { color: var(--white); font-weight: bold; display: block; margin-bottom: 5px; text-align: left; }

/* =================================================================
   5. VISUALIZAÇÃO MOBILE (MENU HAMBURGER E LAYOUT)
   ================================================================= */
@media (max-width: 768px) {
    
    /* A. Barra Fixa */
    .navbar { 
        height: 80px; 
        padding: 0; 
        position: fixed;
        border-bottom: 2px solid var(--neon-green);
        background-color: #000;
    }

    /* B. Layout Flex para separar Logo (esq) e Hamburger (dir) */
    .nav-container { 
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px; 
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .logo-small { height: 45px; width: auto; }
    .nav-container h1 { font-size: 1.1rem !important; white-space: nowrap; margin-left: 10px; }
    .nav-links { display: none !important; }

    /* C. EXIBIR E POSICIONAR HAMBURGER */
    .hamburger { 
        display: block !important; 
        position: relative; 
        top: auto; 
        right: auto;
        transform: none;
        margin-left: 15px;
    }

    /* D. Menu Dropdown Mobile (CORRIGIDO PARA REMOVER ESPAÇOS VAZIOS) */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 80px; /* Cola embaixo da barra */
        left: 0;
        width: 100%;
        background-color: #000;
        border-bottom: 2px solid var(--neon-green);
        
        overflow: hidden;
        max-height: 0; /* Começa fechado */
        transition: max-height 0.5s ease-out;
        z-index: 1900;
    }

    /* E. Quando aberto: Altura automática para não ter espaço sobrando */
    .mobile-menu.active {
        max-height: 100vh; /* Permite crescer conforme o conteúdo */
        padding-bottom: 0; /* Remove espaço extra no final */
        padding-top: 0;    /* Remove espaço extra no começo */
    }

    .mobile-menu a {
        display: block;
        padding: 15px 0; /* Espaçamento interno controlado */
        font-family: 'Rajdhani', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
        border-bottom: 1px solid #1a1a1a;
        text-align: center;
        text-decoration: none;
        margin: 0; /* Garante que não há margem externa */
    }
    
    .mobile-menu a:hover {
        background-color: #111;
        color: var(--neon-green);
    }

    /* G. Ajustes de Conteúdo */
    .container { 
        padding-top: 120px !important; 
    }
    
    .split-section, .split-section:nth-child(even) { 
        flex-direction: column !important; 
        text-align: center; 
        gap: 30px; 
    }

    .split-text h2 { display: block; text-align: center; }
    .split-text p { text-align: justify; }
    
    /* Slider Mobile */
    .shop-banner-container, .partner-banner-container {
        margin-top: 80px !important;
    }
    .banners-wrapper.dual-active { 
        margin-top: 80px; 
        flex-direction: column; 
    }
    .banners-wrapper.dual-active .shop-banner-container, 
    .banners-wrapper.dual-active .partner-banner-container { 
        width: 100%; 
    }
}

/* =========================================
   6. EXTRAS (PARCEIROS, CUPONS, ADMIN)
   ========================================= */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.partner-card { background: #101010; border: 1px solid #333; border-top: 3px solid var(--neon-green); padding: 30px; text-align: center; border-radius: 6px; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(57, 255, 20, 0.15); border-color: var(--neon-green); }
.partner-logo-container { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background-image: url('../img/transparent-grid.png'); border-radius: 4px; padding: 10px; }
.partner-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.coupon-box { background: #1a1a1a; border: 2px dashed #555; padding: 10px; margin: 15px 0; border-radius: 4px; }
.coupon-label { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 5px; text-align: center; }
.coupon-code { display: block; color: var(--neon-green); font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; text-align: center; }

/* =========================================
   7. MODAL DE ALERTAS (NOVO)
   ========================================= */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.alert-box {
    background: #050505;
    border: 1px solid var(--neon-green);
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 85%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.alert-msg {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.alert-btn-close {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    border-radius: 2px;
}

.alert-btn-close:hover {
    background: var(--neon-green);
    color: #000;
}

/* Variação de Sucesso */
.alert-success .alert-icon, 
.alert-success .alert-btn-close {
    color: var(--neon-green);
    border-color: var(--neon-green);
}
.alert-success .alert-btn-close:hover {
    background: var(--neon-green);
}

/* Variação de Erro */
.alert-error .alert-box {
    border-color: #ff3333;
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.2);
}
.alert-error .alert-icon {
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}
.alert-error .alert-btn-close {
    color: #ff3333;
    border-color: #ff3333;
}
.alert-error .alert-btn-close:hover {
    background: #ff3333;
    color: white;
}