/* assets/style.css */

/* 1. VARIÁVEIS GLOBAIS (O "DNA" da Marca) */
:root {
    --cor-fundo: #0f1115; /* Fundo escuro premium */
    --cor-texto: #ffffff;
    --cor-primaria: #ffc107; /* Dourado/Amarelo para chamar atenção na conversão */
    --cor-secundaria: #1a1d24; /* Fundo dos cards */
    --cor-sucesso: #28a745;
    --cor-erro: #dc3545;
    --borda-suave: 12px;
    --transicao: all 0.3s ease;
}

/* 2. BASE (Mobile-First) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    /* Comportamento de App no PC */
    max-width: 500px; 
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    min-height: 100vh;
    position: relative;
}

/* 3. BOTÕES PREMIUM */
.btn-premium, .btn-premium-grande {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: var(--borda-suave);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition: var(--transicao);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-premium-grande {
    padding: 16px 20px;
    font-size: 1.1rem;
}

.btn-premium:active {
    transform: scale(0.98);
}

.btn-premium:disabled {
    background: #555;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
}

/* 4. FORMULÁRIOS E INPUTS */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #aaa;
}

input[type="tel"], input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 14px;
    background-color: #0b0c0f;
    border: 1px solid #333;
    color: #fff;
    border-radius: var(--borda-suave);
    font-size: 1rem;
    transition: var(--transicao);
}

input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.2);
}

/* CORREÇÃO DEFINITIVA DE TODOS OS MODAIS */
.modal-premium, .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-conteudo {
    background: var(--cor-secundaria);
    padding: 25px;
    border-radius: 16px;
    width: 90% !important;
    max-width: 500px !important;
    margin: auto !important; /* Garante que fique no centro */
    position: relative !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: modalEntrada 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalEntrada {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.btn-fechar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 6. VITRINE DE PACOTES (A página de venda) */
.grid-pacotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.card-pacote {
    background: var(--cor-secundaria);
    border: 1px solid #333;
    padding: 20px 10px;
    border-radius: var(--borda-suave);
    text-align: center;
    cursor: pointer;
    transition: var(--transicao);
    position: relative;
}

.card-pacote:active {
    transform: scale(0.95);
    border-color: var(--cor-primaria);
}

.card-pacote.promocional {
    border-color: var(--cor-primaria);
    background: linear-gradient(to bottom, #1a1d24, #2a2005);
}

.tag-desconto {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cor-primaria);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.qtd {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.valor-pacote {
    display: block;
    color: var(--cor-primaria);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* 7. CHECKOUT */
.checkout-moderno {
    padding: 20px;
    background: var(--cor-secundaria);
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    animation: deslizarCima 0.3s ease-out;
    z-index: 999;
}

@keyframes deslizarCima {
    from { bottom: -100%; }
    to { bottom: 0; }
}

.msg-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Gamificação (Ranking e Prêmios) */
.bloco-gamificacao {
    background: var(--cor-secundaria);
    border-radius: var(--borda-suave);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #333;
}

.titulo-bloco {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Tabela de Prêmios */
.item-premio {
    display: flex;
    justify-content: space-between;
    background: #0b0c0f;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.numero-cota {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Ranking */
.ranking-destaque {
    background: linear-gradient(90deg, #3a1c00 0%, #1a0d00 100%);
    border: 1px solid var(--cor-primaria);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge-fogo {
    background: var(--cor-primaria);
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.lista-ranking {
    list-style: none;
}

.lista-ranking li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.lista-ranking li:last-child {
    border-bottom: none;
}