/* 1. IMPORTAÇÃO DA FONTE IRMÃ DA MOMENTUM */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;900&display=swap');

* {
    box-sizing: border-box;
}

/* =================== MODAL DE ACESSO (FLUTUANTE) =================== */
#modal-auth-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: #000000 !important; 
    z-index: 99999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: none !important;
}

.auth-card {
    background-color: rgba(26, 26, 26, 0.85) !important; /* Transparência Elite */
    backdrop-filter: blur(12px); /* Efeito de vidro desfocado */
    width: 340px; 
    padding: 45px 30px; 
    border-radius: 20px;
    border: 2px solid #6a0dad; 
    box-shadow: 0 0 50px rgba(106, 13, 173, 0.4); 
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

/* ============================================================
   CSS AUTH - PROFÁCIL ELITE (ESTILO BLACK & PURPLE)
   ============================================================ */

/* Estilo do Título do Modal */
.auth-card h2 { 
    font-family: 'Rajdhani', sans-serif; 
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-weight: 900; 
    margin-bottom: 20px;
}

/* Campos de Entrada (E-mail e Senha) */
.auth-input { 
    font-family: 'Rajdhani', sans-serif; 
    width: 100%; 
    height: 48px; 
    border-radius: 12px; 
    border: 2px solid #6a0dad; 
    margin-bottom: 10px; /* Reduzi para caber a dica embaixo */
    padding: 0 15px; 
    font-weight: 700; 
    font-size: 16px; 
    outline: none; 
    box-sizing: border-box; 
    color: #000; 
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Efeito quando clica no campo */
.auth-input:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.2);
}

/* Texto de instrução (8 dígitos, letras e números) */
.senha-instrucao {
    font-family: 'Rajdhani', sans-serif;
    color: #888; 
    font-size: 12px; 
    margin-bottom: 15px; 
    text-align: center; 
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Botão Principal de Acesso */
.auth-btn-entrar { 
    font-family: 'Rajdhani', sans-serif; 
    width: 100%; 
    height: 52px; 
    background: #6a0dad; 
    color: #fff; 
    border: 2px solid #6a0dad; 
    border-radius: 12px; 
    font-weight: 900; 
    cursor: pointer; 
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.auth-btn-entrar:hover {
    background: #7b22c1;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.auth-btn-entrar:active {
    transform: scale(0.97);
}

/* Botão de Solicitar Cadastro (Amarelo) */
.auth-btn-registro { 
    font-family: 'Rajdhani', sans-serif; 
    background: none; 
    border: none; 
    color: #ffd700; 
    cursor: pointer; 
    margin-top: 25px; 
    font-size: 12px; 
    text-transform: uppercase; 
    font-weight: bold; 
    display: block; 
    width: 100%; 
    transition: 0.3s;
}

.auth-btn-registro:hover {
    color: #fff;
    text-shadow: 0 0 5px #ffd700;
}

/* Mensagens de Erro/Status (Onde o JS escreve) */
#auth-status-msg { 
    font-family: 'Rajdhani', sans-serif; 
    margin-top: 20px; 
    color: #ffd700; 
    font-size: 12px; 
    font-weight: bold; 
    text-transform: uppercase; 
    min-height: 30px; /* Garante espaço para 2 linhas de erro */
    line-height: 1.4;
    text-align: center;
}

/* Ajustes do Corpo da Página */
body {
    font-family: 'Rajdhani', sans-serif;
    margin: 0; 
    padding: 0;
    background-color: #0d0d0d;
    color: #fff;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* TOAST COM CONTORNO PRETO AJUSTADO */
#toast {
    font-family: 'Rajdhani', sans-serif;
    visibility: hidden; 
    min-width: 250px; 
    max-width: 450px; 
    background-color: #6a0dad; 
    color: #fff; 
    text-align: center; 
    border-radius: 15px; 
    padding: 12px 25px; 
    position: fixed; 
    z-index: 2147483647 !important; /* Prioridade máxima absoluta */
    left: 50%; 
    bottom: 40px; 
    transform: translateX(-50%); 
    font-weight: 900; 
    font-size: 15px; 
    text-transform: uppercase; 
    border: 2px solid #000;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#toast.show { 
    visibility: visible; 
    animation: fadein_center 0.5s, fadeout_center 0.5s 2.5s; 
}

@keyframes fadein_center { from {bottom: 0; opacity: 0;} to {bottom: 40px; opacity: 1;} }
@keyframes fadeout_center { from {bottom: 40px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* BOTÕES COM DESIGN PREMIUM/SAAS (MODERNIZADOS) */
button {
    font-family: 'Rajdhani', sans-serif !important;
    background: linear-gradient(180deg, #7b2fd6 0%, #6a0dad 100%);
    color: #ffffff; 
    border: 1px solid #ffffff; 
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    border-radius: 8px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    padding: 2px 15px; 
    height: 32px; 
    font-size: 13px; 
    position: relative; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.3); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    letter-spacing: 0.5px;
}

button:hover { 
    background: linear-gradient(180deg, #9b4dff 0%, #7b2fd6 100%);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(106, 13, 173, 0.7), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.3);
    border-color: #ffffff;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    background: linear-gradient(180deg, #6a0dad 0%, #5a0b8f 100%);
}

/* Garante que o botão hambúrguer NUNCA apareça no PC */
#btn-hamburguer-elite {
    display: none !important;
}

/* BOTÃO ATIVO NA SIDEBAR */
.nav-buttons button.active {
    background: linear-gradient(180deg, #9b4dff 0%, #6a0dad 100%);
    border-color: #ffd700 !important; /* Destaque Dourado */
    box-shadow: 0 0 15px rgba(155, 77, 255, 0.8), inset 0 0 5px rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

#side-card {
    width: 220px;
    background-color: #1a1a1a;
    border-radius: 10px;
    margin: 15px;
    padding: 10px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    border: 1px solid #6a0dad;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: calc(100vh - 30px); 
    overflow: visible !important;
    position: relative;
    justify-content: flex-start;
}

#side-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px; 
    text-align: center;
    margin: 0;
    color: #ffffff; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 900;
}

.logo-img {
    width: 100px;
    height: 100px;
    margin-top: 2px; 
    margin-bottom: 5px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(106, 13, 173, 0.4));
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px; /* 👇 AJUSTE 3: Mudei de 8px para 4px para subir os botões */
    width: 100%;
    margin-top: 5px; 
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Esconde a barra no Firefox */
    -ms-overflow-style: none; /* Esconde a barra no IE/Edge */
}

.nav-buttons::-webkit-scrollbar {
    display: none; /* Esconde a barra no Chrome/Safari */
}

#volante-lateral-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: #0a0a0a;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-top: 10px;
}

/* =================== AJUSTE ELITE: BOLINHAS DINÂMICAS (3D VIBE) =================== */
.bola-lateral {
    font-family: 'Rajdhani', sans-serif;
    width: 32px; 
    height: 32px; 
    /* Gradiente radial dá efeito de esfera/volume */
    background: radial-gradient(circle at 30% 30%, #444, #111) !important; 
    color: #fff; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    border: 1px solid #333;
    /* Sombras internas para profundidade */
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.5), inset 2px 2px 5px rgba(255,255,255,0.1) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background 0.3s ease, 
                box-shadow 0.3s ease !important;
    position: relative;
    user-select: none;
}

.bola-lateral:hover {
    transform: scale(1.3) translateY(-5px); 
    background: radial-gradient(circle at 30% 30%, #555, #222) !important;
    border-color: #ffd700; 
    z-index: 99; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), inset 0 0 5px rgba(255, 215, 0, 0.5) !important;
}

.bola-lateral.ativa {
    /* Roxo Elite com brilho centralizado */
    background: radial-gradient(circle at 35% 35%, #9d4edd, #6a0dad) !important; 
    border-color: #fff !important; 
    /* Brilho externo roxo + brilho interno branco (glossy effect) */
    box-shadow: 0 0 15px #6a0dad, 
                inset 2px 2px 4px rgba(255,255,255,0.4) !important;
    color: #fff !important;
    transform: scale(1.1);
    font-weight: 900 !important;
}

.bola-lateral:active {
    transform: scale(0.9) translateY(0);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.8) !important;
}

#volante-controles {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: -2px !important; 
    margin-bottom: 5px !important;
    min-height: 35px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

#volante-controles.visivel {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-bola-mini {
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    border: 2px solid #fff;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    font-size: 12px; 
    font-weight: bold; 
    color: #fff;
    box-shadow: 0 3px 0px #000;
}

.side-footer {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #333;
    margin-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#user-display {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: #ccc;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-buttons button { padding: 8px 10px; height: 35px; font-size: 14px; font-weight: 700; }
.btn-extra { border: 1px solid #ffffff !important; }

#main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 10px; 
    background-color: #0d0d0d;
    height: 100vh;
    overflow: hidden;
}

.top-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 12px 15px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
    border: 1px solid #6a0dad;
    width: 100%; /* Segue a largura do pai */
    box-sizing: border-box;
}

#header-flex-meus-jogos {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* Garante que o cabeçalho e a grade tenham o mesmo limite lateral */
#meusJogos.active {
    display: table !important; /* Força os filhos a terem a mesma largura */
    width: fit-content !important;
    min-width: 100%;
}

/* Garante que o container principal permita o scroll desse conjunto */
#main-container {
    overflow-x: auto !important;
}

.filters-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    justify-content: space-between; 
    align-items: flex-end;
}

.filter-group {
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    gap: 4px;
}

#quentissima, #quente, #media, #fria, #gelada, #qtdRPT {
    width: 40px !important;
    height: 34px !important;
    padding: 0 !important;
    text-align: center !important;
    display: inline-block !important;
}

.filter-group {
    min-width: 10px !important;
}

select, input[type="number"], input[type="text"] {
    font-family: 'Rajdhani', sans-serif;
    padding: 0 4px;
    border-radius: 8px;
    border: 1px solid #6a0dad;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align:center;
    width: 70px;
    height: 32px; 
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

select:focus, input[type="number"]:focus, input[type="text"]:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5), inset 0 2px 4px rgba(0,0,0,0.5);
}

/* RADAR ELITE - AJUSTADO PARA VELOCIDADE SUAVE */
.radar-moldura-niveis {
    flex-grow: 1;
    min-width: 250px;
    height: 32px;
    background: #0a0a0a; 
    border: 2px solid #6a0dad;
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-right: 10px;
    position: relative; 
}

.radar-tag-fina {
    font-family: 'Rajdhani', sans-serif;
    background: #ff8c00;
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    border-right: 1px solid #444;
    z-index: 2;
}

.radar-janela-fina { flex-grow: 1; overflow: hidden; position: relative; height: 100%; }

.radar-texto-fina {
    display: inline-block;
    white-space: nowrap;
    color: #00ff00;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    position: absolute;
    line-height: 30px;
    /* Aumentamos para 250s para ficar bem devagar */
    animation: radar-scroll 250s linear infinite; 
}

/* Ajuste no Keyframe para o texto longo sumir por completo antes de voltar */
@keyframes radar-scroll { 
    from { transform: translateX(100%); } 
    to { transform: translateX(-200%); } 
}

#modoJogo, #selectConcursos { width: 110px; }
#quentissima, #quente, #media, #fria, #gelada { width: 45px; }

.switch {
    position: relative;
    display: inline-block;
    width: 65px; 
    height: 32px; 
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; /* Cinza escuro desligado */
    transition: 0.4s;
    border-radius: 20px;
    border: 1px solid #6a0dad;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px;
    left: 4px; bottom: 4px;
    background-color: #ffffff; /* Branca quando desligada */
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

input:checked + .slider { background-color: #1a1a1a; border-color: #6a0dad; box-shadow: 0 0 10px rgba(106, 13, 173, 0.5); }
input:checked + .slider:before { 
    transform: translateX(33px); 
    background-color: #00ff00; /* Verde Fluorescente quando ligado */
    box-shadow: 0 0 10px #00ff00;
}

.grid-container {
    flex-grow: 1;
    background-color: #ffffff; /* Fundo branco para a área da tabela */
    border-radius: 8px;
    overflow: auto;
    border: 1px solid #6a0dad;
}

table {
    border-collapse: separate; 
    border-spacing: 2px; /* Espaço para ver os quadradinhos */
    width: 100%; 
    table-layout: fixed; 
}

th, td {
    font-family: 'Rajdhani', sans-serif;
    border: 1px solid #ccc !important;
    border-radius: 4px !important; 
    padding: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700 !important; 
    color: #000; /* Texto preto */
    height: 28px; 
}

th {
    font-family: 'Rajdhani', sans-serif;
    background-color: #6a0dad;
    color: #fff !important;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
}

.col-dados-tecnica { 
    background-color: #e0e0e0 !important; 
    color: #000000 !important; 
    border-right: 2px solid #ccc !important;
    text-align: left !important;
    padding-left: 10px !important;
    min-width: 180px;
    width: 180px; 
    position: sticky;
    left: 0;
    z-index: 11;
}

/* QUADRADINHOS ALTOS APENAS PARA DECIMAL E DNA */
#gradeDecimal th, #gradeDecimal td,
#gradeDNA th, #gradeDNA td {
    height: 42px !important;
}

/* --- TUDO ABAIXO MANTIDO IGUAL AO SEU ORIGINAL --- */
.row-patamar {
    font-family: 'Rajdhani', sans-serif;
    background-color: #1a1a1a !important;
    color: #ffd700 !important;
    font-size: 15px !important;
    text-align: left !important;
    padding-left: 15px !important;
    border: none !important;
    text-transform: uppercase;
    font-weight: 900 !important;
}

.dezena-sorteada { 
    background-color: #ffd700 !important; 
    color: #000 !important; 
    border: 1px solid #000 !important;
}

.status-q-plus { background-color: #ff3b30 !important; color: #fff !important; }
.status-q { background-color: #ff9500 !important; color: #fff !important; }
.status-m { background-color: #ffcc00 !important; color: #000 !important; }
.status-f { background-color: #007aff !important; color: #fff !important; }
.status-g { background-color: #5ac8fa !important; color: #000 !important; }

/* 3. PROTEÇÃO E REFINAMENTO DA COLUNA ESQUERDA (DADOS / TÉCNICA) */
#gradeDNA td:first-child, #gradeDNA th:first-child,
#gradeDecimal td:first-child, #gradeDecimal th:first-child,
#gradeEstatistica td:first-child, #gradeEstatistica th:first-child {
    width: 180px !important; 
    min-width: 180px !important;
    max-width: 180px !important;
    text-align: left !important;
    padding-left: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* --- MELHORIA DE CONTRASTE E TAMANHO --- */
    background-color: #2d1b4e !important; /* Roxo escuro para dar base ao texto no modo escuro */
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;          
    font-size: 16px !important;           
    color: #ffffff !important;            /* BRANCO */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 3px solid #6a0dad !important; /* Divisória roxa bem marcada */
    border-bottom: 1px solid #999 !important;   /* Linha divisória entre técnicas */
}

/* 4. REFINAMENTO DOS QUADRADINHOS (NÚMEROS) */
#gradeDNA td:nth-child(n+2), 
#gradeDecimal td:nth-child(n+2), 
#gradeEstatistica td:nth-child(n+2) {
    background-color: transparent !important; 
    font-weight: 900 !important;          
    font-size: 16px !important;           
    color: inherit !important;            
    border: 1px solid #333 !important; 
}

.th-clicavel { cursor: pointer; }
.th-fixa { background-color: #8a2be2 !important; color: #fff !important; }

.bola-ativa { font-family: 'Rajdhani', sans-serif; background-color: #6a0dad !important; color: white !important; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; margin: auto; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.bola-acerto { font-family: 'Rajdhani', sans-serif; background-color: #00ff00 !important; color: white !important; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; margin: auto; box-shadow: 0 0 8px #00ff00; display: flex; align-items: center; justify-content: center; font-weight: 900; }

.bola-premio-verde { font-family: 'Rajdhani', sans-serif; background-color: #00ff00 !important; color: white !important; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important; box-shadow: 0 0 10px #00ff00; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; font-weight: 900; }
.bola-premio-ouro { font-family: 'Rajdhani', sans-serif; background-color: #ffd700 !important; color: white !important; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important; box-shadow: 0 0 15px #ffd700; border: 2px solid #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; font-weight: 900; }

#bottom-buttons { display:flex; gap:10px; flex-wrap:nowrap; justify-content:flex-end; margin-top:10px; align-items: center; }
.tab { display: none !important; height: 100%; flex-direction: column; }
.tab.active { display: flex !important; }

#modalNovaSenha {
    background-color: #000000 !important; 
    position:fixed; top:0; left:0; width:100%; height:100%; z-index:2000005; align-items:center; justify-content:center;
}
#modalNovaSenha .auth-card {
    border: 2px solid #ffd700 !important; 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3) !important;
}

.dezena-descarte-ativa {
    font-family: 'Rajdhani', sans-serif;
    background-color: #ff3b30 !important; 
    color: #ffffff !important; 
    border: 1px solid #ffffff !important; 
    border-radius: 0 !important; 
    display: table-cell !important; 
    vertical-align: middle;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    font-weight: 900 !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
}

#side-card {
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-top: 5px;
}

.logo-img {
    width: 100%; 
    max-width: 300px;
    height: auto;
    margin-top: -10px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0px 6px 15px rgba(123, 31, 162, 0.6));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); 
}

/* 🚩 Adicione isso aqui embaixo para travar as células da grade */
#gradeMeusJogos td {
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    height: 35px; /* Define uma altura fixa para ajudar na centralização */
}

/* =================== AJUSTE FINAL: LOGO NO LOGIN (COMPACTO) =================== */
.logo-auth {
    width: 90% !important;
    max-width: 250px !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 5px auto !important;
    border: none !important;
    filter: drop-shadow(0 0 10px rgba(106, 13, 173, 0.5)) !important;
}

#modal-auth-container .auth-card {
    padding: 20px !important;
    min-height: auto !important;
    width: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Oculta o título H2 caso ele ainda esteja no HTML */
#modal-auth-container .auth-card h2 {
    display: none !important; 
}

/* ESTRELA DE BLINDAGEM */
.estrela-favorito {
    cursor: pointer;
    font-size: 20px;
    margin-right: 5px;
    color: #444; 
    transition: all 0.2s ease-in-out;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    line-height: 1;
}

/* Quando estiver marcada como favorito */
.estrela-favorito.ativa {
    color: #ffd700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.estrela-favorito:hover {
    transform: scale(1.3);
    color: #ffeb3b;
}

/* Ajuste para não quebrar a linha da Coluna 0 */
#grade td:first-child {
    white-space: nowrap;
    text-align: left;
    padding-left: 10px;
}

.estrela-favorito, #mestre-estrela-painel, #mestre-estrela-salvos {
    transition: transform 0.2s ease;
    display: inline-block;
    margin-right: 5px;
}

#mestre-estrela-painel:hover, #mestre-estrela-salvos:hover {
    transform: scale(1.3);
}


/* =================== CALENDÁRIO ELITE =================== */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #6a0dad !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

.flatpickr-current-month, .flatpickr-weekday, .flatpickr-month {
    color: #6a0dad !important;
    fill: #6a0dad !important;
}

.flatpickr-day {
    color: #000000 !important;
    font-weight: 600 !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: #6a0dad !important;
    border-color: #6a0dad !important;
    color: #ffffff !important;
}

.flatpickr-day:hover {
    background: #f0f0f0 !important;
    color: #6a0dad !important;
}

.flatpickr-prev-month svg, .flatpickr-next-month svg {
    fill: #6a0dad !important;
}

/* =================== SIMETRIA ELITE =================== */
#gradeDNA, #gradeDecimal, #gradeEstatistica {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: separate !important; /* Para ver o arredondamento */
    border-spacing: 2px !important;
}

#gradeDNA th:nth-child(n+2), #gradeDNA td:nth-child(n+2),
#gradeDecimal th:nth-child(n+2), #gradeDecimal td:nth-child(n+2),
#gradeEstatistica th:nth-child(n+2), #gradeEstatistica td:nth-child(n+2):not([colspan]) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    text-align: center !important;
    padding: 6px 0 !important;
    border-radius: 4px !important; /* Quadradinhos */
}

/* 3. PROTEÇÃO DA COLUNA DA ESQUERDA (DADOS / TÉCNICA) 
    Garante que o texto da esquerda tenha espaço sem empurrar as dezenas */
#gradeDNA td:first-child, #gradeDNA th:first-child,
#gradeDecimal td:first-child, #gradeDecimal th:first-child,
#gradeEstatistica td:first-child, #gradeEstatistica th:first-child {
    width: 180px !important; 
    min-width: 180px !important;
    max-width: 180px !important;
    text-align: left !important;
    padding-left: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. BLINDAGEM PARA LINHAS DE BLOCO E FILTROS (COLSPAN)
    Impede que os títulos de seção "caguem" com a largura das colunas */
td[colspan] {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    text-align: center !important;
    background-color: #f0f0f0 !important; 
    color: #000 !important;
}

/* AJUSTE FINAL ELITE: ARRASTO E FIM DO SCROLL */

.nav-buttons {
    overflow-y: hidden !important; /* MATA A BARRA DE ROLAGEM INTRUSA */
}

#modal-config-robo a {
    cursor: move !important;
    user-select: none !important;
    -webkit-user-drag: element !important; /* DESTRAVA O ARRASTO NO CHROME */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block; /* Garante que o link se comporte como um bloco sólido */
}

#modal-config-robo a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 255, 0, 0.5);
}

#modal-config-robo a:active {
    cursor: grabbing !important;
}

/* ============================================================
    AJUSTE FINAL: LOGIN ESTÁVEL E BOTÃO TURBO
    ============================================================ */

/* Trava a altura para eliminar o "pulo" no carregamento */
#modal-auth-container .auth-card {
    height: 480px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Estilo do Botão do Robô com cantos arredondados e fonte maior */
#modal-config-robo a {
    display: inline-block !important;
    margin: 25px 0 !important;
    padding: 18px 35px !important;
    background: #00ff00 !important;
    color: #000 !important;
    font-weight: 900 !important;
    border-radius: 15px !important; 
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 15px !important; 
    letter-spacing: 1.5px !important;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4) !important;
}

.btn-robo-elite {
    background-color: #6a0dad; 
    color: #fff; 
    border: 2px solid #ffd700; 
    width: 100%; 
    height: 42px; 
    margin-bottom: 12px; 
    font-weight: 900; 
    border-radius: 15px; 
    cursor: pointer; 
    font-size: 13px; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    box-shadow: 0 4px 0px #000;
    font-family: 'Arial Black', sans-serif;
}

.btn-robo-elite:hover {
    filter: brightness(1.2);
}

/* --- GRADE CONCURSOS: AJUSTE FINAL DE LAYOUT E CORES --- */

/* 1. Estrutura da tabela com arredondamento permitido */
#gradeConcursos {
    width: auto !important; 
    min-width: 100%;
    border-collapse: separate !important; 
    border-spacing: 2px !important;
    table-layout: fixed; 
}

/* 2. Os Números: Quadradinho Branco, Arredondado e Nítido */
#gradeConcursos td:nth-child(n+3):nth-child(-n+27) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 6px 0 !important;
    background-color: transparent !important; 
    border: 1px solid #333 !important;
    border-radius: 6px !important; 
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: inherit !important;
    text-align: center !important;
}

/* 3. CABEÇALHO: ROXO PADRÃO EM TUDO (UNIFICADO) */
#gradeConcursos thead th {
    background-color: #6a0dad !important; /* Roxo Elite padrão */
    color: #ffffff !important; 
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    padding: 10px 5px !important;
    border: 1px solid #7d26cd !important; /* Borda sutil para não escurecer */
}

/* 4. Colunas de Análise (Data, Concurso, etc) */
.col-analise-data {
    color: #000000 !important;
    font-weight: bold !important;
    text-align: center;
    white-space: nowrap;
    padding: 0 15px !important; 
}

/* 5. Scroll e Container */
#concursos .grid-container {
    overflow-x: auto !important;
    display: block;
    width: 100%;
}

/* 6. CORREÇÃO: Remove o roxo escuro dos números do topo e usa o padrão */
#gradeConcursos thead th:nth-child(n+3) {
    background-color: #6a0dad !important; /* AGORA IGUAL AO RESTO DO TOPO */
}

/* --- BOTÃO MANUAL MASTER: MEIO-TERMO ELITE --- */
#btnManualMaster {
    background-color: #6a0dad !important; /* Roxo Profácil */
    width: 100% !important;
    height: 38px !important;
    margin-bottom: 8px !important;
    
    /* O MEIO-TERMO: Nem quadrado, nem pílula */
    border: 2px solid #ffffff !important;
    border-radius: 12px !important; 
    
    /* TEXTO BRANCO COM CONTORNO PRETO (NITIDEZ MÁXIMA) */
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Efeito de contorno na letra */
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000 !important;

    box-shadow: none !important;
    cursor: pointer !important;
    /* Ajustado para 0.3s para o brilho aparecer suavemente */
    transition: all 0.3s ease !important; 
}

/* NOVO: Efeito de ACENDER ao passar o mouse */
#btnManualMaster:hover {
    background-color: #8a2be2 !important; /* Roxo mais claro e vivo */
    filter: brightness(1.3) !important;    /* Dá o efeito de luz acesa */
    
    /* Brilho Neon Roxo */
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.8) !important; 
    
    /* Leve pulo para dar feedback */
    transform: translateY(-1px) !important;
}

/* Feedback de clique */
#btnManualMaster:active {
    transform: scale(0.97) !important;
    filter: brightness(0.9) !important;
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5) !important;
}

/* ============================================================
    BLOCO DE ELITE FINAL: CENTRALIZAÇÃO, ESCALA E OCULTAÇÃO
    (SÓ ATIVA EM CELULAR/TABLET - PC FICA INTACTO)
    ============================================================ */
/* 🎯 TAB STATUS DEZENAS: Estabilização de Layout */
#status-dezenas {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding: 5px 15px 5px 0;
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {

    /* 0. BLINDAGEM DO LOGIN: PAREDE TOTAL (ESTADO DESLOGADO) */
    #modal-auth-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #0a0a0a !important; 
        z-index: 100000000 !important; 
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: none !important; 
        overflow: hidden !important;
    }

    /* 1. CONTAINER DOS MODAIS (MANUAL/EXPORTAR) */
    #modal-manual, #modal-export, #modalNovaSenha, #modal-config-robo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        z-index: 9999999 !important;
        display: none; 
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. O CARD DENTRO DO MODAL */
    #modal-manual .auth-card, 
    #modal-export .auth-card, 
    #modalNovaSenha .auth-card,
    #modal-config-robo .auth-card {
        width: 92% !important;
        max-width: 350px !important;
        max-height: 80vh !important; 
        overflow-y: auto !important; 
        margin: auto !important;
        padding: 30px 20px !important;
        border: 2px solid #00ff00 !important;
        background-color: #1a1a1a !important;
        border-radius: 20px !important;
        box-shadow: 0 0 40px rgba(106, 13, 173, 0.7) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. SEÇÃO DE EXTERMÍNIO: OCULTAR ROBÔ NO CELULAR */
    .btn-robo-elite, button[onclick*="Robo"], button[onclick*="robo"] {
        display: none !important;
    }

    #modal-export .auth-card button:first-child,
    #modal-export button[onclick*="lancar"],
    #modal-export button[onclick*="Lançar"],
    #modal-export button[onclick*="prepararLancamentoCaixa"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    /* 4. AJUSTE DE CONTEÚDO INTERNO */
    #modal-manual img, #modal-manual table {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 5. SEGURANÇA DE MOVIMENTO (RESTAURAÇÃO TOTAL DO ZOOM) */
    body.travado {
        overflow: hidden !important;
        position: fixed !important; 
        width: 100vw !important;
        height: 100% !important;
        touch-action: none !important;
    }

    /* DESTRAVA-TUDO: Força o navegador a remapear o Zoom e a Pinça */
    body:not(.travado) {
        position: static !important;
        overflow: auto !important; 
        overflow-x: auto !important;
        overflow-y: auto !important;
        touch-action: pan-x pan-y pinch-zoom !important; 
        height: auto !important;
    }

    /* 6. RESTAURAÇÃO DO PAINEL LATERAL E FILTROS */
    html, body {
        overflow: auto !important;
        height: auto !important;
        width: auto !important;
        min-height: 100vh !important;
    }

    body {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-width: 3200px !important;
        background-color: #0d0d0d !important;
    }

    body.menu-oculto {
        min-width: 100vw !important;
    }

    body.menu-oculto #side-card {
        display: none !important; /* AGORA SIM O ALVO CERTO */
    }

    #btn-hamburguer-elite {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2147483646 !important;
    }

    #side-card {
        display: flex !important;
        position: relative !important;
        width: 220px !important;
        min-width: 220px !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background-color: #1a1a1a !important;
        z-index: 100 !important;
    }

    /* Garante que o puxador apareça sem duplicar a seta */
    #puxador-elite {
        display: flex !important;
        position: absolute !important;
        right: -25px !important;
        top: 50% !important;
        z-index: 101 !important;
    }

    #main-container {
        width: 3000px !important;
        min-width: 3000px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
        padding: 10px !important;
    }

    body.menu-oculto #main-container {
        width: 100vw !important;
        min-width: 100vw !important;
        padding-top: 70px !important;
    }

    /* 1. MOSTRA APENAS A ABA ATIVA NO MOBILE */
    .tab.active {
        display: block !important;
    }

    /* Blindagem contra esmagamento */
    .top-card, 
    .grid-container,
    table#grade, 
    table#gradeMeusJogos {
        width: fit-content !important;
        min-width: 1700px !important;
        display: block !important;
    }

    .top-card {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    /* Unificação de Scroll: Cabeçalho e Grade juntos - APENAS SE ATIVO */
    #meusJogos.active, #meusJogos.active .grid-container {
        overflow: visible !important;
        display: block !important;
        width: fit-content !important;
    }

    table#grade, table#gradeMeusJogos {
        display: table !important;
        width: 100% !important;
    }

    /* 2. AJUSTE ESPECÍFICO PARA STATUS DEZENAS NO MOBILE */
    #status-dezenas {
        height: calc(100vh - 20px) !important;
        padding-top: 60px !important; 
    }

    .top-card-elite {
        width: 100% !important;
        min-width: 320px !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
    }

    #gradeStatusCapivara {
        width: fit-content !important; /* Impede as colunas de esmagarem */
        min-width: 1200px !important;
    }
}



/* --- 🟢 EFEITO: BORDA VERDE "NADANDO" --- */
@keyframes borda-galaxia {
  0% { 
    box-shadow: 0 0 5px #00ff00; 
    border-color: #00ff00; 
  }
  50% { 
    box-shadow: 0 0 20px #00ff00, inset 0 0 8px #00ff00; 
    border-color: #008800; 
  }
  100% { 
    box-shadow: 0 0 5px #00ff00; 
    border-color: #00ff00; 
  }
}

.modal-content-elite {
  border: 2px solid #00ff00 !important;
  animation: borda-galaxia 2s linear infinite !important;
  box-sizing: border-box; 
}

/* --- 🔥 EFEITO: LOGO PULSANDO NA ENTRADA --- */
@keyframes pulsar-logo-elite {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.logo-animado {
  display: block;
  margin: 0 auto 15px auto;
  animation: pulsar-logo-elite 2s ease-in-out infinite;
}

/* Destaca a célula que está selecionada pelo teclado */
td:focus {
    outline: 2px solid #6a0dad !important; /* Borda roxa de foco */
    background-color: rgba(106, 13, 173, 0.1) !important; /* Fundo roxo bem clarinho */
}

/* 1. CABEÇALHO TRAVADO E "MAGRO" (Altura de 28px) */
#grade thead {
    position: sticky;
    top: 0;
    z-index: 1001 !important;
}

#grade thead th {
    background-color: #6a0dad !important; 
    color: #FFFFFF !important; 
    
    /* Barra fina conforme seu pedido: 23px cravados */
    height: 23px !important; 
    min-height: 23px !important;
    max-height: 23px!important;
    line-height: 23px !important;
    padding: 0 !important; /* Remove qualquer respiro para não engrossar */
    
    font-size: 13px; 
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border-bottom: 2px solid #444;
    cursor: pointer !important;
    user-select: none;
    transition: background 0.2s ease;
    box-sizing: border-box; /* Garante que a borda não aumente a altura */
}

/* ============================================================ */
/* 🟢 FECHAMENTO: VERDE FLUORESCENTE (NEON)                     */
/* ============================================================ */
#grade thead th.selecionada, 
#grade thead th.th-fixa {
    background-color: #00FF00 !important; 
    color: #FFFFFF !important;           
    border: 1px solid #FFF !important;
    box-shadow: 0 0 15px #00FF00, inset 0 0 10px rgba(0,0,0,0.3) !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
    font-weight: 900 !important;
}

/* ============================================================ */
/* 🔴 DESCARTE: VERMELHO VIVO (ALERTA TOTAL)                   */
/* ============================================================ */
#grade thead th.dezena-descarte-ativa {
    background-color: #FF0000 !important; 
    color: #FFFFFF !important;
    border: 1px solid #FFF !important;
    box-shadow: 0 0 15px #FF0000, inset 0 0 10px rgba(0,0,0,0.3) !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
    font-weight: 900 !important;
}

/* 2. CÉLULAS DAS DEZENAS (35px - Sem Achatar) */
#grade tbody td {
    transition: all 0.2s ease-in-out;
    position: relative;
    width: 35px !important; 
    height: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    text-align: center !important;
    vertical-align: middle !important;
    line-height: 35px !important; 
    padding: 0 !important;
    border: 1px solid #444; 
    box-sizing: border-box;
    z-index: 1;
}

/* 3. ANIMAÇÃO DO SCANNER (3px) */
@keyframes girarGlow {
    0%   { box-shadow: 2px 0 8px -1px var(--cor-glow); }
    25%  { box-shadow: 0 2px 8px -1px var(--cor-glow); }
    50%  { box-shadow: -2px 0 8px -1px var(--cor-glow); }
    75%  { box-shadow: 0 -2px 8px -1px var(--cor-glow); }
    100% { box-shadow: 2px 0 8px -1px var(--cor-glow); }
}

/* 4. STATUS ELITE COM GIRO */
.status-diamante { --cor-glow: #00FFFF; outline: 3px solid #00FFFF !important; outline-offset: -3px; z-index: 10; animation: girarGlow 1.5s linear infinite; }
.status-ouro { --cor-glow: #FFD700; outline: 3px solid #FFD700 !important; outline-offset: -3px; z-index: 10; animation: girarGlow 1.5s linear infinite; }
.status-prata { --cor-glow: #FFFFFF; outline: 3px solid #4F4F4F !important; outline-offset: -3px; z-index: 10; animation: girarGlow 1.5s linear infinite; }
.status-bronze { --cor-glow: #FF4500; outline: 3px solid #FF4500 !important; outline-offset: -3px; z-index: 10; animation: girarGlow 1.5s linear infinite; }
.status-comum { outline: 3px solid #00FF00 !important; outline-offset: -3px; z-index: 5; }

/* --- ESTILO DAS NOVAS FUNÇÕES (VERSÃO FINAL BLINDADA - SEM SCROLL) --- */

#puxador-elite {
    display: none !important;
    position: absolute; 
    right: -25px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 25px; 
    height: 60px; 
    background: #1a1a1a; 
    border: 1px solid #6a0dad;
    border-radius: 0 12px 12px 0; 
    border-left: none; 
    cursor: pointer; 
    z-index: 99999;
    align-items: center; 
    justify-content: center;
}

#side-card.logado #puxador-elite {
    display: flex !important;
}

.seta-triangulo {
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent; 
    border-bottom: 10px solid transparent; 
    border-right: 12px solid #00ff00; 
    transition: transform 0.3s ease;
    display: block !important;
}

.side-panel-wrapper.active ~ #puxador-elite .seta-triangulo {
    transform: rotate(180deg);
}

.side-panel-wrapper {
    display: none; 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
    padding: 15px 12px; 
    box-sizing: border-box;
    background: #1a1a1a; 
    border: 1px solid #6a0dad;
    border-radius: 12px;
    z-index: 99998; 
    flex-direction: column;
    overflow: hidden !important; 
    pointer-events: none;
}

.side-panel-wrapper.active { 
    display: flex; 
    pointer-events: auto; 
    z-index: 100000;
}

/* COMPACTAÇÃO DE DIVISORES E GRIDS */
.divisor-padrao { 
    text-align: center; 
    border-bottom: 1px solid #333; 
    line-height: 0.1em; 
    margin: 12px 0 8px; /* Margens reduzidas */
    width: 100%; 
}

.divisor-padrao span { 
    background: #1a1a1a; 
    padding: 0 8px; 
    color: #ffd700; 
    font-size: 13px; /* Fonte levemente menor */
    font-weight: 900; 
    font-family: 'Rajdhani'; 
    text-transform: uppercase; 
}

.elite-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.input-box { 
    background: #0d0d0d; 
    border: 1px solid #333; 
    border-radius: 6px; 
    padding: 4px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.input-box label { font-family: 'Rajdhani'; color: #ffd700; font-size: 10px; font-weight: bold; margin-bottom: 1px; }
.input-box input { background: transparent; border: none; color: #fff; font-family: 'Rajdhani'; font-weight: 900; font-size: 18px; text-align: center; width: 100%; outline: none; }
.full-width { grid-column: span 2; }

.grid-bolinhas { display: flex; justify-content: space-between; width: 100%; }

.bola-item { 
    width: 34px; /* Ajustado para caber na horizontal */
    height: 42px; 
    background: #333; 
    border: 1px solid #6a0dad; 
    border-radius: 6px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.bola-item span { font-size: 8px; color: #aaa; font-weight: bold; }
.bola-item input { background: transparent; border: none; color: #00ff00; text-align: center; width: 100%; outline: none; font-weight: 900; font-size: 13px; }

.btn-limpar-filtros-elite {
    width: 100%; background: #222; color: #fff; border: 1px solid #ffd700;
    font-family: 'Rajdhani'; font-weight: 900; padding: 8px; margin: 8px 0;
    cursor: pointer; border-radius: 8px; transition: 0.3s; font-size: 12px;
}

.btn-limpar-filtros-elite:hover { background: #ff4444; border-color: #fff; }

.grid-volante-repetidas {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 6px; padding: 5px; justify-items: center;
}

.bola-fixa {
    width: 30px; /* Reduzido de 34px para garantir que não role */
    height: 30px; 
    border: 1px solid #6a0dad;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Rajdhani'; font-weight: bold; font-size: 13px;
    cursor: pointer; background: #0d0d0d; transition: 0.2s;
}

.bola-fixa.active {
    background: #8a2be2 !important; color: #fff !important;
    border-color: #fff !important; box-shadow: 0 0 10px #8a2be2;
}

#status-fixas-elite {
    text-align: center; color: #fff; font-family: 'Rajdhani';
    font-weight: bold; font-size: 11px; margin-top: 3px;
}

/* --- ESTILO DO TOGGLE MOTOR ELITE V47 --- */
.switch-elite {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.switch-elite input { opacity: 0; width: 0; height: 0; }

.slider-elite {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; /* Cinza escuro desligado */
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #444;
}

.slider-elite:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 2px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-elite {
    background-color: #8a2be2;
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

input:checked + .slider-elite:before {
    transform: translateX(18px);
    background-color: #fff;
}

.switch-elite:hover .slider-elite {
    border-color: #ffd700;
}

/* =========================================================================
    SISTEMA PROFÁCIL ELITE - MEUS JOGOS (VERSÃO INTEGRAL E AJUSTADA)
   ========================================================================= */

/* 1. RESET DE CAIXA: Garante que nada empurre as colunas de 105px */
#gradeMeusJogos th, 
#gradeMeusJogos td,
[id^="inv-"], 
[id^="ret-"] {
    box-sizing: border-box !important;
}

/* 2. TRAVA DA TABELA: O segredo do alinhamento está aqui */
#gradeMeusJogos {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

/* 3. CONTAINER DA GRADE: Ajustado para esticar a tela e mostrar a barra */
#containerPrincipalMeusJogos {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* 🎯 LIBERA A BARRA DE ROLAGEM HORIZONTAL */
    display: block !important;
    border: 1px solid #6a0dad;
    background: #fff;
    
    /* 🎯 AJUSTE DE ALTURA: Ocupa a tela cheia e puxa a barra para dentro do monitor */
    height: calc(100vh - 100px) !important;
    margin-bottom: 5px !important;
}

/* 4. LARGURA DA TABELA EXPANDIDA: Força a barra a nascer (2550px) */
#gradeMeusJogos.expandida {
    width: 2550px !important;
    min-width: 2550px !important;
}

/* 5. CABEÇALHO ROXO (NÚMERO DO CONCURSO - 105PX) */
#gradeMeusJogos th.col-auditoria {
    background-color: #6a0dad !important;
    color: #ffffff !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    height: 55px !important;
    vertical-align: middle !important;
    padding: 0 !important;
    border: 0.5px solid #fff !important;
}

/* Limpa textos fantasmas */
#gradeMeusJogos .col-auditoria::before,
#gradeMeusJogos .col-auditoria::after {
    content: none !important;
    display: none !important;
}

/* 6. CÉLULAS DE RESULTADOS (PRECISÃO ELITE) */
#gradeMeusJogos td.td-auditoria {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    height: 45px !important;
    padding: 0 !important;
    border: 0.5px solid #ccc !important;
}

/* 7. BLOCOS DO TOPO (INVESTIMENTO E RETORNO) */
[id^="inv-"], [id^="ret-"] {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    display: inline-block;
    text-align: center;
}

#painel-financeiro-colunas {
    display: flex;
    justify-content: flex-end;
}

/* 8. BOTÃO CONFERIR 10 (PADRÃO ELITE) */
#btn-conferir-10 {
    font-family: 'Arial Black', sans-serif !important;
    font-size: 11px !important;
    background: #ffd700 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    text-transform: uppercase;
    font-weight: 900 !important;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    height: 35px;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 6px;
}

/* 9. ESTILO DA BARRA DE ROLAGEM ROXA ELITE */
#containerPrincipalMeusJogos::-webkit-scrollbar {
    height: 14px !important;
    display: block !important;
}

#containerPrincipalMeusJogos::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 10px;
}

#containerPrincipalMeusJogos::-webkit-scrollbar-thumb {
    background: #6a0dad !important;
    border-radius: 10px;
    border: 2px solid #000;
}

/* =========================================================================
    SISTEMA ELITE - CONTORNO DE NAVEGAÇÃO PADRÃO
   ========================================================================= */

.td-auditoria {
    outline: none !important;
    box-sizing: border-box !important;
}

.td-auditoria:focus {
    background-color: #f9f2ff !important;
    border: 2px solid #6a0dad !important;
    border-radius: 8px !important;
    position: relative;
    z-index: 5;
}

/* ============================================================
   TRAVA GLOBAL: MATA O SCROLL EXTERNO INTRUSO
   ============================================================ */
html, body {
    overflow: hidden !important; 
    height: 100vh !important; 
    margin: 0;
    padding: 0;
}

/* Garante que NADA vaze pela tela de login */
#btn-abrir-auditoria, .btn-status-dezenas {
    z-index: 5 !important; /* Baixa prioridade para ficar atrás do login */
}

#modal-auth-container {
    z-index: 2147483647 !important; /* Prioridade máxima absoluta */
}

/* 🎯 CLASSE DINÂMICA: JS liga/desliga para o scroll horizontal da auditoria */
html.expandido-horizontal,
html.expandido-horizontal body {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* ============================================================
    MÓDULO: STATUS DEZENAS (V75.9 - AJUSTE DE DESCIDA TOTAL)
   ============================================================ */


/* 2. DESCE O TOP CARD (STATUS DEZENAS / ATUALIZAR) */
.top-card-elite {
    margin-top: 10px !important; 
    margin-bottom: 5px !important; 
}

/* 2. AJUSTE DO CONTAINER DA GRADE */
#container-status-elite {
    overflow-x: auto !important; 
    overflow-y: auto !important; 
    
    padding-left: 0px !important;
    margin-left: -5px !important; 
    
    display: flex;
    flex-direction: column;

    padding-top: 0px !important;
}

/* Personalização da Barra de Rolagem (Elite) - Sua original */
#container-status-elite::-webkit-scrollbar {
    height: 10px; 
}

#container-status-elite::-webkit-scrollbar-track {
    background: #1a1a1a; 
}

#container-status-elite::-webkit-scrollbar-thumb {
    background: #6a0dad; 
    border-radius: 10px;
}

/* 3. ESTRUTURA DA GRADE */
#gradeStatusCapivara {
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    height: 100%;
    border-collapse: separate; 
    border-spacing: 0px; 
    table-layout: fixed;
}

/* 4. FONTES E CORES */
#gradeStatusCapivara tbody td {
    font-size: 15px !important; 
    font-weight: 900 !important; 
    padding: 0; 
    border: 1px solid #e0e0e0;
    line-height: 1.1;
    vertical-align: middle;
    text-align: center;
}

#gradeStatusCapivara thead th {
    padding: 2px 0 !important;
    font-size: 15px !important;
    line-height: 1.1;
    text-align: center;
}

/* Colunas numéricas (as que não tem classe específica) */
#gradeStatusCapivara th:not(.col-dz):not(.col-status):not(.col-st-final) {
    width: 22px !important;
}

.col-dz {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    width: 40px !important;
    border: 1.5px solid #6a0dad !important; /* Acabamento roxo elite */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    box-shadow: inset 0 0 5px rgba(106, 13, 173, 0.3); /* Leve brilho interno */
}

.borda-febre {
    outline: 3px solid #000000 !important; 
    outline-offset: -3px;
    z-index: 5;
    position: relative;
}

.col-status { width: 38px !important; }

.col-st-final {
    width: 60px !important; 
    font-size: 15px !important;
    text-align: center;
    white-space: nowrap !important;
}

#gradeStatusCapivara td {
    cursor: pointer; /* Indica que a célula é clicável */
}

/* Botão STATUS DEZENAS no menu lateral com estilo premium */
.btn-status-dezenas {
    background: linear-gradient(180deg, #7b2fd6 0%, #6a0dad 100%) !important; 
    color: #ffffff !important; 
    border: 1px solid #ffffff !important;
}

.btn-status-dezenas:hover {
    background: linear-gradient(180deg, #9b4dff 0%, #7b2fd6 100%) !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.luz-recorde { background-color: #5c4d00 !important; color: #ffd700 !important; }

/* =========================================================================
   PADRÃO GLOBAL: SCROLLBAR ELITE (PRETO E ROXO - IGUAL MEUS JOGOS)
   ========================================================================= */

/* WEBKIT (Chrome, Edge, Safari) - VERTICAL E HORIZONTAL */
*::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}

*::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #6a0dad !important;
    border-radius: 10px;
    border: 2px solid #000;
}

*::-webkit-scrollbar-thumb:hover {
    background: #8a2be2 !important;
}

*::-webkit-scrollbar-corner {
    background: #1a1a1a !important;
}

/* FIREFOX */
* {
    scrollbar-color: #6a0dad #1a1a1a;
    scrollbar-width: thin;
}

