:root {
    --mega-verde: #209869;
    --mega-azul: #0066b3;
    --cinza-fundo: #f7f7f7;
    --erro: #e74c3c;
    --alerta: #f39c12;
    --cinza-texto: #666;
    --texto-corpo: #444;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--cinza-fundo); 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: var(--texto-corpo); 
}

.container { 
    max-width: 700px; 
    width: 90%; 
    background: #fff; 
    margin: 40px 0; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    box-sizing: border-box;
}

/* Placeholders de Anúncios */
.ads-placeholder { 
    background: #f9f9f9; 
    border: 1px dashed #ccc; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 10px; 
    color: #aaa; 
    margin: 20px 0; 
}
.ads-top { width: 100%; height: 90px; }
.ads-middle { width: 100%; height: 250px; }

/* Cabeçalho */
.titulo-jogo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; position: relative; }
.titulo-flex { display: flex; align-items: center; gap: 15px; }
.circulo-logo { width: 40px; height: 40px; background-color: var(--mega-verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; }
h1 { color: var(--mega-azul); font-size: 26px; margin: 0; text-transform: uppercase; font-weight: 800; }

/* Botão Surpresinha + Legenda */
.btn-surpresinha { 
    background: none; 
    border: 1px solid var(--mega-azul); 
    color: var(--mega-azul); 
    padding: 8px 20px; 
    border-radius: 20px; 
    cursor: help; 
    font-size: 12px; 
    font-weight: 700; 
    transition: 0.3s; 
    position: relative;
}
.btn-surpresinha:hover { background: var(--mega-azul); color: white; }

.btn-surpresinha:hover::after {
    content: "Gera 6 números aleatórios para você!";
    position: absolute;
    bottom: -45px;
    right: 0;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
}

/* Volante */
.volante { display: flex; justify-content: center; gap: 12px; margin: 35px 0; flex-wrap: wrap; }
.dezena { width: 55px; height: 55px; border: 3px solid var(--mega-verde); border-radius: 50%; text-align: center; font-size: 20px; font-weight: bold; color: var(--mega-verde); transition: 0.2s; outline: none; background-color: transparent; }
.dezena:focus { background-color: var(--mega-verde); color: #ffffff; }
.dezena.invalid { border-color: var(--erro) !important; color: var(--erro) !important; background-color: transparent !important; }

.btn-buscar { background-color: var(--mega-verde); color: white; border: none; padding: 18px 45px; border-radius: 35px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; display: flex; margin: 0 auto; }
.btn-buscar:hover { transform: scale(1.05); filter: brightness(1.1); }

/* Container de Resultados e Estatísticas */
#resultado-container { display: none; margin-top: 30px; }
.card-resultado { padding: 25px; border-radius: 8px; border-left: 8px solid var(--mega-verde); background: #fdfdfd; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.res-destaque { border-left-color: var(--alerta); }

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 15px; 
}

/* SEO e Conteúdo (Expansores/Details) */
.seo-section { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; line-height: 1.8; }
.seo-section h2 { color: var(--mega-azul); font-size: 20px; margin-bottom: 15px; }

details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--mega-verde);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

summary {
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--mega-azul);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '＋';
    font-size: 18px;
    color: var(--mega-verde);
}

details[open] summary::after {
    content: '－';
}

summary:hover {
    background-color: #f9f9f9;
}

summary::-webkit-details-marker {
    display: none;
}

.content {
    padding: 0 15px 15px 15px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #f5f5f5;
}

.content h3 { color: var(--mega-verde); font-size: 17px; margin-top: 20px; }
.content h4 { color: var(--mega-verde); margin-bottom: 10px; text-transform: uppercase; font-size: 14px; font-weight: 800; }

/* Container Geral das Conclusões */
.estatistica-box {
    margin-top: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.titulo-conclusoes {
    color: var(--mega-azul);
    text-align: center;
    margin-bottom: 20px !important;
    font-size: 18px !important;
}

/* Grid de Cards de Conclusão */
.grid-conclusoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.card-conclusao {
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
}

.card-conclusao h5 { margin: 0 0 10px 0; font-size: 14px; }
.card-conclusao ul { padding-left: 20px; margin: 0; }
.card-conclusao li { margin-bottom: 5px; }

.positivo { background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.negativo { background-color: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.destaque-conclusao {
    font-weight: 700;
    margin-top: 10px;
    font-size: 12px;
}

/* Regra Prática */
.regra-pratica {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.regra-pratica h5 { margin: 0 0 10px 0; color: #334155; }
.regra-pratica p { font-size: 13px; color: #64748b; margin-bottom: 15px; }

.selos-estratégia {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.selo {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.selo.ok { background: var(--mega-verde); color: white; }
.selo.erro { background: #94a3b8; color: white; }

/* Responsabilidade */
.secao-responsabilidade { margin-top: 50px; padding: 20px; background-color: #f9f9f9; border-radius: 8px; border: 1px solid #eee; text-align: center; }
.texto-vicio { font-size: 12px; color: var(--cinza-texto); line-height: 1.6; margin-bottom: 15px; }
.texto-vicio a { color: var(--mega-azul); font-weight: bold; text-decoration: none; }
.btn-autoexclusao { display: inline-block; background-color: #fff; color: #777; border: 1px solid #ccc; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; transition: 0.3s; }

/* Rodapé */
.footer-caixa-simulado { margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; text-align: center; padding-bottom: 40px; }
.links-uteis { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; font-size: 12px; }
.links-uteis a { color: var(--mega-azul); text-decoration: none; font-weight: 700; }
.fonte-footer { font-size: 11px; color: #aaa; }

/* Toast Alerta */
#toast { visibility: hidden; min-width: 300px; background-color: var(--erro); color: #fff; text-align: center; border-radius: 8px; padding: 16px; position: fixed; z-index: 1000; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

/* Botão WhatsApp Discreto */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent; /* Remove o fundo verde fixo */
    color: var(--cinza-texto);    /* Usa a cor de texto padrão */
    border: 1px solid #ddd;       /* Borda fina e clara */
    padding: 10px 20px;
    border-radius: 6px;           /* Arredondamento suave, menos circular */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    text-transform: none;         /* Remove o excesso de destaque do Caps Lock */
    width: fit-content;
    box-shadow: none;             /* Remove a sombra pesada */
}

.btn-whatsapp svg {
    fill: #888;                   /* Ícone em cinza discreto */
    transition: fill 0.3s ease;
}

/* Efeito de Hover: Revela a cor apenas na interação */
.btn-whatsapp:hover {
    background-color: #f9f9f9;
    color: #25d366;               /* Texto fica verde apenas no hover */
    border-color: #25d366;        /* Borda fica verde no hover */
}

.btn-whatsapp:hover svg {
    fill: #25d366;                /* Ícone fica verde no hover */
}

@keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@keyframes fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }

/* Ajustes para Mobile */
@media (max-width: 600px) {
    .container { width: 95%; padding: 20px 15px; }
    h1 { font-size: 22px; }
    .titulo-jogo { flex-direction: column; gap: 20px; text-align: center; }
    
    .volante { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 15px; 
        justify-items: center; 
    }
    .dezena { width: 65px; height: 65px; font-size: 24px; }
    
    .btn-buscar { width: 100%; padding: 20px; font-size: 18px; }
    .btn-surpresinha { width: 100%; padding: 12px; }
    .btn-surpresinha:hover::after { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-resultado { padding: 15px; font-size: 14px; }
    
    .grid-conclusoes { grid-template-columns: 1fr; }
    .estatistica-box { padding: 15px; }
    
    #toast { width: 80%; min-width: unset; }
	
	.btn-whatsapp {
        width: 100%;
        margin-top: 15px;
        padding: 12px;
    }
}