/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    color: #333;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Container principal (usado em login e cadastro) */
.form-container {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #28a745; /* ATUALIZADO: Cor de foco (verde) */
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25); /* ATUALIZADO: Cor de foco (verde) */
}

.options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
}

.options label {
    cursor: pointer;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    background-color: #28a745; /* ATUALIZADO: Cor principal (verde) */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #218838; /* ATUALIZADO: Cor hover (verde escuro) */
}

button:active {
    transform: scale(0.98);
}

.message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.switch-form {
    margin-top: 20px;
    font-size: 14px;
}

.switch-form a {
    color: #28a745; /* ATUALIZADO: Cor do link (verde) */
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* --- ESTILOS DA TELA ATM (DASHBOARD) --- */

.atm-container {
    background-color: #006442; /* ATUALIZADO: Verde escuro (cor do novo logo) */
    width: 100%;
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #004d32; /* ATUALIZADO: Verde mais escuro */
}

.atm-header {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.atm-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.atm-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.atm-screen {
    background-color: white;
    color: #004d32; /* ATUALIZADO: Cor principal do texto (verde escuro) */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.atm-screen h3 {
    margin: 10px 0 5px 0;
}

.prize-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.contest-info {
    border-top: 1px dashed #ccc;
    margin-top: 15px;
    padding-top: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.atm-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; 
}

.atm-button {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center; 
    padding: 10px 5px;      
    background: linear-gradient(to bottom, #ffc83d, #ff9e00); /* Amarelo/Laranja (combina com o logo) */
    color: #003c71;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;      
    border-radius: 8px;
    border-bottom: 4px solid #d98600;
    transition: all 0.2s ease;
    gap: 6px;               
    min-height: 85px;       
}

.atm-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.atm-button:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
}

.atm-button i:first-child {
    margin-right: 0;
    width: auto;
    font-size: 1.4rem; 
}

.atm-button span {
    flex-grow: 0;
    text-align: center;
}


.logout-container {
    text-align: center;
    margin-top: 25px;
}

.logout-link {
    color: white;
    background-color: transparent;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    display: inline-block;
    transition: all 0.3s;
}

.logout-link:hover {
    background-color: white;
    color: #006442; /* ATUALIZADO: Cor hover (verde escuro) */
}

/* --- ESTILOS DA TELA DE APOSTA --- */

.betting-container {
    background-color: #f0f2f5;
    color: #333;
    width: 100%;
    max-width: 800px; 
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.betting-container h2 {
    color: #006442; /* ATUALIZADO: Cor do título (verde escuro) */
    margin-bottom: 5px;
}

.contest-info-betting {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.betting-container p {
    margin-bottom: 25px;
    color: #555;
}

.bet-slip {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.bet-slip h4 {
    text-align: left;
    margin: 0 0 10px 0;
    color: #333;
}

.slip-counter {
    font-weight: normal;
    color: #555;
}

.loto-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 8px;
}

.loto-number-small {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.loto-number-small:hover {
    border-color: #28a745; /* ATUALIZADO: Cor hover (verde) */
}

.bet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#confirm-bet-btn {
    background-color: #28a745;
    border: none;
    width: auto;
    padding: 12px 25px;
}

#confirm-bet-btn:hover {
    background-color: #218838;
}

#confirm-bet-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.back-link {
    color: #007bff; /* Azul ainda é ok para links */
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- ESTILOS DA TELA MINHAS APOSTAS --- */

.bets-list {
    width: 100%;
    margin-top: 20px;
}

.bet-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.bet-card-header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
}

.bet-number-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #e9ecef;
    border-radius: 50%;
    font-weight: bold;
    color: #495057;
}

.no-bets-message {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
}

.no-bets-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

/* --- ESTILOS DA TELA TODAS APOSTAS --- */

.user-bets-section {
    margin-bottom: 30px;
}

.user-bets-header {
    background-color: #006442; /* ATUALIZADO: Cor principal (verde escuro) */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- ESTILOS DA TELA PAGAR --- */

.pix-info-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.pix-info-item {
    margin-bottom: 20px;
}

.pix-info-item:last-child {
    margin-bottom: 0;
}

.pix-info-item strong {
    display: block;
    color: #555;
    font-size: 1rem;
    margin-bottom: 5px;
}

.pix-info-item span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.pix-key-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

#pix-key {
    font-family: monospace;
    font-size: 1.3rem;
}

#copy-btn {
    background-color: #6c757d;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    width: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

#copy-btn:hover {
    background-color: #5a6268;
}

.confirmation-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

/* --- ESTILOS DA TELA QUEM PAGOU --- */

.payment-list ul {
    list-style-type: none;
    padding: 0;
}

.payment-list-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.payment-list-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-info i {
    color: #28a745;
}

.payment-list-item.pending .payment-info i {
    color: #ffc107;
}

.payment-date {
    font-size: 0.9rem;
    color: #6c757d;
    font-family: monospace;
}

/* Estilos para as etiquetas de Status */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
}
.status-pago { background-color: #28a745; }
.status-pendente { background-color: #ffc107; color: #212529; }
.status-anterior { background-color: #6c757d; }

/* --- ESTILOS DO COMPROVANTE --- */
.print-bet-btn {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.print-bet-btn:hover {
    color: #007bff;
}

/* --- ESTILOS DA TELA VALORES DAS APOSTAS --- */

.value-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-card i {
    font-size: 2rem;
    color: #007bff; /* MANTIDO AZUL - ou pode trocar para #28a745 (verde) */
}

.value-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #555;
}

.value-card-content p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.value-card.total-bet i { color: #ffc107; }
.value-card.total-paid i { color: #28a745; }


/* --- Media Query para telas menores (celulares) --- */
@media (max-width: 600px) {
    body {
        padding: 0; /* Remove qualquer espaçamento nas laterais da página */
    }

    /* --- Garante 3 colunas no celular --- */
    .atm-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .atm-button {
        min-height: 80px; /* Altura ligeiramente menor */
        padding: 8px 3px; /* Menos padding */
        font-size: 0.7rem; /* Fonte menor */
        gap: 4px;
    }

    .atm-button i:first-child {
        font-size: 1.2rem; /* Ícone menor */
    }
    
    .value-card-container {
        grid-template-columns: 1fr;
    }
    
    .atm-container, .betting-container, .form-container {
        width: 100%; /* Força o container a ocupar a largura toda */
        min-height: 100vh; /* Garante que o fundo ocupe a altura toda */
        padding-left: 15px !important;  /* Diminui o espaçamento na esquerda */
        padding-right: 15px !important; /* Diminui o espaçamento na direita */
        border-radius: 0; /* Remove as bordas arredondadas para um visual de tela cheia */
        box-sizing: border-box; /* Garante que o padding não cause overflow */
    }

    .atm-header h2 {
        font-size: 1.5rem;
    }
    .loto-grid-small {
        gap: 5px;
    }
    .loto-number-small {
        width: 100%;
        padding-bottom: 100%;
        height: 0;
        position: relative;
        font-size: 0.9rem;
        border-width: 1px;
    }
    .loto-number-small span {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bet-actions {
        flex-direction: column;
        gap: 15px;
    }
    .payment-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contest-info {
        flex-direction: column;
        gap: 15px;
    }
    .contest-info span {
        justify-content: center;
        width: 100%;
    }
    
    /* --- INÍCIO DA CORREÇÃO (PROBLEMA 1) ---
      Ajuste para os Info Cards no Celular (CONCURSO 3480)
    */
    .info-card {
        padding: 8px 4px; /* Mais padding vertical, menos horizontal */
        gap: 2px;
        background-color: #e9ecef; 
        color: #495057; 
        border-color: #dee2e6;
        word-break: break-word; /* Quebra palavras se necessário */
    }
    .info-card-label {
        font-size: 0.6rem; /* Fonte bem pequena para o label */
        font-weight: 700;
        opacity: 1;
        color: #6c757d;
        gap: 4px;
    }
    .info-card-value {
        font-size: 0.95rem; /* Fonte menor para o valor (ex: 3480) */
        font-weight: 700;
        color: #212529;
        margin-top: 2px;
    }
    /* --- FIM DA CORREÇÃO (PROBLEMA 1) --- */
}


/* --- ESTILOS DA TELA DE LOGIN/CADASTRO --- */
body.login-page {
    /* ATUALIZADO: Fundo verde escuro */
    background: linear-gradient(135deg, #004d32, #007a50);
}

/* === INÍCIO DA CORREÇÃO DO LOGO === */
body.login-page .login-logo {
    width: 130px; 
    height: auto;
    margin-bottom: 20px;
    background-color: #ffffff; /* FUNDO BRANCO PARA O LOGO */
    border-radius: 28px; /* Bordas arredondadas para combinar */
    padding: 15px; /* Espaçamento interno */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Sombra para destacar */
    /* Animações mantidas da regra .login-logo original */
    opacity: 0; 
    animation: 
        drop-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        float 3s ease-in-out 1.2s infinite alternate;
}
/* === FIM DA CORREÇÃO DO LOGO === */

body.login-page .form-container {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: white;
}

body.login-page .form-container h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

body.login-page .form-container .subtitle {
    margin-bottom: 30px;
    font-size: 1em;
    opacity: 0.9;
    color: white;
}

body.login-page .input-group input {
    padding: 18px 20px 18px 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 16px;
    color: #333;
}

body.login-page .input-group input::placeholder {
    color: #999;
}

body.login-page .input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

body.login-page .options {
    margin: -10px 0 25px 15px;
    color: white;
}

body.login-page button[type="submit"] {
    background: #ffffff;
    color: #006442; /* ATUALIZADO: Cor do texto do botão (verde) */
    font-size: 18px;
    border-radius: 50px;
}

body.login-page .message {
    margin: -10px 0 15px 0;
    color: #fff;
    font-weight: bold;
}
body.login-page .error-message {
    background-color: rgba(255, 82, 82, 0.7);
}
body.login-page .success-message {
    background-color: rgba(76, 175, 80, 0.7);
}

body.login-page .switch-form {
    margin-top: 30px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

body.login-page .switch-form a {
    color: #fff;
}

/* --- OUTROS ESTILOS E ANIMAÇÕES --- */
.timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: transparent;
    border-radius: 8px;
    margin-top: 20px;
}
.timer-text {
    color: #004d32; /* ATUALIZADO: verde escuro */
    font-weight: bold;
    font-size: 0.9rem;
}
.timer-container-final {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.timer-box {
    text-align: center;
    color: white;
    background-color: #006442; /* ATUALIZADO: verde escuro */
    padding: 8px;
    border-radius: 5px;
    min-width: 55px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.timer-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffc83d; /* Amarelo */
    line-height: 1;
}
.timer-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
    display: block;
}
@media (max-width: 600px) {
    .timer-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
}

.contest-info span strong {
    background-color: #ffc83d;
    color: #003c71;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
}

.bet-card-footer {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.status-premiada { color: #28a745; }
.status-nao-premiada { color: #dc3545; }
.status-aguardando { color: #6c757d; }

.bet-number-item.acerto,
.bet-number-item.sorteado {
    background-color: #28a745;
    color: white;
    border: 2px solid rgba(0,0,0,0.2);
    transform: scale(1.1);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h4 {
    margin-top: 0;
    font-size: 1.5rem;
}

.modal-content p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.modal-content button {
    width: auto;
    padding: 10px 30px;
}

/* --- ESTILOS ADICIONAIS --- */

.loto-trevo-small {
    width: 50px;
    height: 40px;
    border-radius: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.loto-trevo-small.selected {
    background-color: #28a745;
    color: white;
    border-color: #1c7430;
}
.loto-trevo-small.acerto {
    background-color: #28a745;
    color: white;
}
.loto-trevo-small span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- ESTILOS FINAIS PARA ANÁLISE PROFISSIONAL E ANIMADA --- */

/* DESTAQUES (QUENTE E FRIO) */
.loto-number-small.hot-highlight {
    background-color: rgba(220, 53, 69, 0.1); /* Vermelho super transparente */
    border-color: rgba(220, 53, 69, 0.3);
}
.loto-number-small.cold-highlight {
    background-color: rgba(23, 162, 184, 0.1); /* Azul super transparente */
    border-color: rgba(23, 162, 184, 0.3);
}
/* SELEÇÃO (VERDE) */
.loto-number-small.selected {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #218838 !important;
}

/* Container principal da análise */
/* --- ESTILOS ATUALIZADOS PARA ANÁLISE COM CONTAGEM VISÍVEL --- */

/* Container principal da análise */
.analysis-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 15px;
    padding: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}
.analysis-container.visible {
    opacity: 1;
    max-height: 200px;
    padding: 12px;
}

/* Grupos de Quentes e Frios */
.analysis-group { margin-bottom: 8px; }
.analysis-group:last-child { margin-bottom: 0; }
.analysis-header {
    font-size: 0.8em;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.analysis-header .fa-fire-alt { color: #dc3545; }
.analysis-header .fa-snowflake { color: #17a2b8; }

/* Bolinhas de número animadas */
.analysis-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.analysis-number {
    width: 29px; /* Aumenta um pouco a largura */
    height: 29px;
    border-radius: 50%;
    display: flex;
    flex-direction: column; /* Coloca o número em cima da contagem */
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: default;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFadeIn 0.5s ease-out forwards;
}
.analysis-number.hot { background-color: #dc3545; }
.analysis-number.cold { background-color: #17a2b8; }

/* Estilo para o número principal */
.an-number {
    font-size: 0.9em;
    line-height: 1;
}
/* Estilo para a contagem (Ex: "8x") */
.an-count {
    font-size: 0.6em;
    line-height: 1;
    opacity: 0.8;
}

/* Animação Keyframes */
@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================================
    NOVAS CORES ÚNICAS PARA BOTÕES DO DASHBOARD (TEMA VERDE)
===================================================================== */

/* 1. Apostar */
.atm-button.btn-green {
    background: linear-gradient(to bottom, #4de162, #28a745);
    border-bottom-color: #1f7c35;
    color: white;
}
.atm-button.btn-green i { color: white; }

/* 2. Minhas Apostas */
.atm-button.btn-blue {
    background: linear-gradient(to bottom, #0d6efd, #0b5ed7);
    border-bottom-color: #0a58ca;
    color: white;
}
.atm-button.btn-blue i { color: white; }

/* 3. Aposta dos Usuários */
.atm-button.btn-light-blue {
    background: linear-gradient(to bottom, #4fc3f7, #2aaadd);
    border-bottom-color: #1e8bb4;
    color: #003c71;
}
.atm-button.btn-light-blue i { color: #003c71; }

/* 4. Quem Pagou */
.atm-button.btn-orange {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
    border-bottom-color: #d35400;
    color: white;
}
.atm-button.btn-orange i { color: white; }

/* 5. Falta Pagar */
.atm-button.btn-red {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-bottom-color: #a53125;
    color: white;
}
.atm-button.btn-red i { color: white; }

/* 6. Estatísticas */
.atm-button.btn-light-green {
    background: linear-gradient(to bottom, #aed581, #8bc34a);
    border-bottom-color: #689f38;
    color: #003c71;
}
.atm-button.btn-light-green i { color: #003c71; }

/* 7. Imprimir Relatório */
.atm-button.btn-purple {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    border-bottom-color: #793a95;
    color: white;
}
.atm-button.btn-purple i { color: white; }

/* 8. Histórico */
.atm-button.btn-brown {
    background: linear-gradient(to bottom, #a1887f, #795548);
    border-bottom-color: #5d4037;
    color: white;
}
.atm-button.btn-brown i { color: white; }

/* 9. Ganhadores (Sorteio) */
.atm-button.btn-gold {
    background: linear-gradient(to bottom, #ffc83d, #ff9e00);
    border-bottom-color: #d98600;
    color: #003c71;
}
.atm-button.btn-gold i { color: #003c71; }

/* 10. Meu Perfil */
.atm-button.btn-slate {
    background: linear-gradient(to bottom, #5a6268, #343a40);
    border-bottom-color: #212529;
    color: white;
}
.atm-button.btn-slate i { color: white; }

/* 11. Pé Quente do Grupo */
.atm-button.btn-teal {
    background: linear-gradient(to bottom, #20c997, #17a2b8);
    border-bottom-color: #117a8b;
    color: white;
}
.atm-button.btn-teal i { color: white; }


/* --- ESTILO PARA BOTÃO DE CONFIRMAÇÃO PRIMÁRIO --- */
.btn-confirm {
    display: inline-block;
    background: #28a745; /* ATUALIZADO: verde */
    color: white;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border-bottom: 3px solid #218838; /* ATUALIZADO: verde escuro */
    margin-top: 20px;
    transition: all 0.2s ease;
}

.btn-confirm:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-confirm:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
}

/* --- ESTILO PARA BOTÃO MENOR (EX: HISTÓRICO) --- */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    color: #003c71;
    background: linear-gradient(to bottom, #ffc83d, #ff9e00);
    border-radius: 6px;
    border-bottom: 3px solid #d98600;
    transition: all 0.2s ease;
    white-space: nowrap; /* Impede que o texto quebre */
}

.btn-small:hover {
    transform: translateY(-2px);
}

.btn-small:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
}

/* --- ESTILO PARA CAIXA DE EXPLICAÇÃO --- */
.explanation-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.explanation-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #006442; /* ATUALIZADO: verde escuro */
    font-size: 1.2rem;
}
.explanation-box p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}

/* --- ESTILOS PARA O MENU SANFONA (ACCORDION) --- */
.accordion-trigger {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-radius 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #006442; /* ATUALIZADO: verde escuro */
}

.accordion-trigger:hover {
    background-color: #f8f9fa;
}

.accordion-trigger.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-trigger .fa-chevron-down {
    transition: transform 0.3s ease-in-out;
}

.accordion-trigger.active .fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-panel {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.accordion-panel.active {
    padding: 20px 20px;
}

/* --- ESTILO PARA O PRELOADER DA ANÁLISE --- */
.analysis-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}
.spinner-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff; /* Azul é ok para um spinner */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- ESTILO PARA TOOLTIP NOS CABEÇALHOS DA ANÁLISE --- */
.analysis-header[data-tooltip-header] {
    cursor: help; /* Muda o cursor para indicar que há ajuda */
    position: relative;
}

.analysis-header[data-tooltip-header]::after {
    content: attr(data-tooltip-header);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #343a40;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    width: max-content; /* Ajusta a largura ao conteúdo */
    max-width: 250px; /* Largura máxima */
    white-space: normal; /* Permite que o texto quebre a linha */
    text-align: center;
}

.analysis-header[data-tooltip-header]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- ESTILO PARA OS CARDS DE INFORMAÇÃO DO CONCURSO (ANIMADO) --- */
/* --- ESTILO DEFINITIVO PARA CARDS DE INFORMAÇÃO (DESKTOP E CELULAR) --- */

/* Estilo Base (Computador) */
.contest-info-cards {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px dashed #ccc;
    margin-top: 15px;
    padding-top: 15px;
}

.info-card {
    background-color: rgba(0, 77, 50, 0.5); /* ATUALIZADO: verde escuro transparente */
    color: white;
    border-radius: 8px;
    padding: 10px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFadeIn 0.5s ease-out forwards;
}
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.info-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 4px;
}

/* --- CORREÇÃO (PROBLEMA 1): Ajuste para os Info Cards no Celular (CONCURSO 3480) --- */
@media (max-width: 600px) {
    .info-card {
        padding: 8px 4px; /* Mais padding vertical, menos horizontal */
        gap: 2px;
        background-color: #e9ecef; 
        color: #495057; 
        border-color: #dee2e6;
        word-break: break-word; /* Quebra palavras se necessário */
    }
    .info-card-label {
        font-size: 0.6rem; /* Fonte bem pequena para o label */
        font-weight: 700;
        opacity: 1;
        color: #6c757d;
        gap: 4px;
    }
    .info-card-value {
        font-size: 0.95rem; /* Fonte menor para o valor (ex: 3480) */
        font-weight: 700;
        color: #212529;
        margin-top: 2px;
    }
}
/* --- FIM DA CORREÇÃO (PROBLEMA 1) --- */


/* --- CORREÇÃO FINAL PARA AJUSTE DE TELA CHEIA NO CELULAR --- */
@media (max-width: 600px) {
    body {
        padding: 0; /* Remove qualquer espaçamento nas laterais da página */
    }

    .atm-container, .betting-container, .form-container {
        width: 100%; /* Força o container a ocupar a largura toda */
        min-height: 100vh; /* Garante que o fundo ocupe a altura toda */
        padding-left: 15px !important;  /* Diminui o espaçamento na esquerda */
        padding-right: 15px !important; /* Diminui o espaçamento na direita */
        border-radius: 0; /* Remove as bordas arredondadas para um visual de tela cheia */
        box-sizing: border-box; /* Garante que o padding não cause overflow */
    }

    /* Ajuste adicional para os cards de info caberem melhor */
    /* (As regras acima já cuidam disso, esta é uma consolidação) */
    .info-card {
        padding: 6px 4px;
        gap: 2px;
    }
    .info-card-label {
        font-size: 0.65rem;
    }
    .info-card-value {
        font-size: 1rem;
    }
}

/* --- ANIMAÇÃO PARA O CONTADOR DO SORTEIO --- */
.timer-wrapper {
    /* Ativa a animação que definimos abaixo */
    animation: pulse-glow 2.5s infinite ease-in-out;
}

.timer-value {
    /* Cor mais vibrante para os números */
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Adiciona um brilho sutil */
}

/* Define a animação de "pulsação com brilho" */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    70% {
        transform: scale(1.02); /* Aumenta um pouco o tamanho */
        box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- ANIMAÇÃO COM ENTRADA E FLUTUAÇÃO CONTÍNUA PARA A LOGO --- */

.login-logo {
    opacity: 0; /* Começa invisível para a animação de entrada funcionar */

    /* Aplica DUAS animações: a de entrada e, depois, a de flutuação */
    animation: 
        drop-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        float 3s ease-in-out 1.2s infinite alternate;
}

/* Animação de entrada com "quique" (a que já tínhamos) */
@keyframes drop-in {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* NOVA animação de flutuação contínua */
@keyframes float {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-10px); /* Move a logo 10 pixels para cima */
    }
}

/* --- ANIMAÇÕES PARA O DASHBOARD (VERSÃO COM PULSAÇÃO) --- */

/* Animação de pulsação para o nome do usuário */
.animated-greeting {
    display: inline-block;
    animation: pulse-text 2.5s ease-in-out infinite alternate;
}

/* Animação de pulsação e rotação para o ícone de trevo */
.animated-clover {
    display: inline-block;
    animation: spin-pulse 4s ease-in-out infinite alternate;
}

/* Keyframes para a animação de pulsação do texto */
@keyframes pulse-text {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05); /* Aumenta o tamanho em 5% */
    }
}

/* Keyframes para a animação do trevo (sem alteração) */
@keyframes spin-pulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1) rotate(15deg);
        opacity: 1;
    }
}

/* =====================================================================
    CÓDIGO DE CORREÇÃO FORÇADA PARA EXIBIÇÃO DO RANKING
===================================================================== */
body .betting-container {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}
.ranking-list, .ranking-item {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}
.no-bets-message {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* =====================================================================
    ANIMAÇÃO VERDE VIBRANTE PARA O BOTÃO PAGAR
===================================================================== */

/* Animação Keyframes: Define o efeito de pulsar em verde */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8); /* Verde Esmeralda com 80% de opacidade */
    }
    70% {
        transform: scale(1.05); /* Aumenta o tamanho do botão em 5% */
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); /* Sombra se expande e desaparece */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Modifica a classe .blinking-notification para aplicar o novo efeito VERDE */
.atm-button.blinking-notification {
    /* Sobrepõe qualquer outra cor com um gradiente verde vibrante */
    background: linear-gradient(to bottom, #2ecc71, #28a745) !important;
    border-bottom-color: #1f7c35 !important;
    color: #ffffff !important; /* Texto branco para máximo contraste */

    /* Remove a animação antiga e aplica a nova */
    animation: pulse-green 2s infinite;
}

/* Garante que o ícone dentro do botão também fique branco */
.atm-button.blinking-notification i {
    color: #ffffff !important;
}

/* =====================================================================
    ESTILOS DA CENTRAL DE NOTIFICAÇÕES
===================================================================== */

.notifications-bell {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.6rem; /* Um pouco maior para mais presença */
    color: #ffc107; /* Cor dourada/amarela vibrante */
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6); /* Efeito de brilho suave */
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.notifications-bell:hover {
    opacity: 1;
    transform: scale(1.1); /* Aumenta um pouco ao passar o mouse */
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    border: 2px solid var(--atm-container-bg, #006442); /* ATUALIZADO: Cor de fundo (verde escuro) */
}

.notifications-panel {
    display: none;
    position: absolute;
    top: 60px;
    right: 15px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #ddd;
}
.notifications-panel.show {
    display: block;
}

.notifications-header {
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    font-size: 1em;
}

/* Dentro dos estilos da Central de Notificações */

.notification-item {
    display: block; 
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
    cursor: pointer; 
    overflow: hidden; 
    max-height: 4.5em; 
    /* ADICIONADO: Borda transparente para manter o alinhamento */
    border-left: 4px solid transparent; 
    transition: max-height 0.4s ease-out, background-color 0.2s, border-left-color 0.2s; /* Animação da borda */
    position: relative; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: #f8f9fa;
}
.notification-item small {
    display: block; 
    margin-top: 3px;
    color: #999;
    font-size: 0.85em; 
}

/* NOVO: Estilo para o texto da mensagem (garante o corte) */
.notification-message-text {
    display: block; 
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    margin-bottom: 3px; 
}

/* ATUALIZADO: Regra "não lida" com borda de destaque */
.notification-item.unread {
    background-color: #e9f5ff; /* Fundo azul claro */
    font-weight: 500;
    border-left-color: #0d6efd; /* Borda de destaque azul */
}

/* ATUALIZADO: Regra "lida" com fundo cinza */
.notification-item.read {
    background-color: #f8f9fa; /* Fundo cinza claro (ao invés de transparente) */
    font-weight: normal;
    opacity: 0.7; /* Opacidade mais forte para apagar */
}
.notification-item.read:hover {
    background-color: #f0f2f5; /* Cinza um pouco mais escuro no hover */
    opacity: 1;
}

/* Estilo para o item QUANDO expandido */
.notification-item.expanded {
    max-height: 250px; 
    white-space: normal; 
    text-overflow: clip; 
    background-color: #fff !important; 
    opacity: 1 !important; 
}
/* QUANDO EXPANDIDO, o texto da mensagem pode quebrar linha */
.notification-item.expanded .notification-message-text {
    white-space: normal; 
    text-overflow: clip; 
    overflow: visible;
}


/* Estilo para o indicador "(Lida)" */
.read-indicator {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-left: 5px;
    display: inline; /* Para ficar ao lado da data */
}

/* Ajuste para o .atm-container */
.atm-container {
    position: relative; /* Necessário para posicionar o sino corretamente */
}

/* =====================================================================
    ANIMAÇÃO PARA O SINO DE NOTIFICAÇÕES
===================================================================== */

/* 1. Define a animação de balanço (shake) */
@keyframes ring-bell {
    0% { transform: rotate(0); }
    10% { transform: rotate(25deg); }
    20% { transform: rotate(-20deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* 2. Aplica a animação APENAS quando o sino tiver uma notificação */
.notifications-bell:has(.notification-badge) {
    /* Ativa a animação 'ring-bell' para rodar a cada 4 segundos, infinitamente */
    animation: ring-bell 4s ease-in-out infinite;
    transform-origin: top center; /* Garante que o sino balance a partir do topo */
}

/* =====================================================================
    ESTILOS PARA O MODAL DE LEITURA DE NOTIFICAÇÃO
===================================================================== */

/* Modifica a aparência da notificação após ser lida */
.notification-item.read {
    background-color: #f8f9fa; /* Um cinza bem claro */
    opacity: 0.7; /* Deixa o texto um pouco mais apagado */
    font-weight: normal;
}

/* Modal de Leitura */
.notification-modal-overlay {
    display: none; /* Começa escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.notification-modal-overlay.visible {
    display: flex; /* Mostra o modal */
}
.notification-modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: left;
}
.notification-modal-content h4 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.notification-modal-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}
.notification-modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end; /* Alinha botões à direita */
    gap: 10px;
}
.notification-modal-actions .action-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.notification-modal-actions .close-btn {
    background-color: #6c757d;
    color: white;
}
.notification-modal-actions .link-btn {
    background-color: #0d6efd;
    color: white;
}

/* =====================================================================
    ESTILOS PARA O BANNER DE DOWNLOAD DO APK
===================================================================== */

.apk-promo-banner {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre o ícone, texto e botão */
    background-color: rgba(255, 255, 255, 0.9); /* Fundo branco semitransparente */
    color: #333;
    padding: 12px 40px 12px 15px; /* Espaço interno, com mais espaço à direita para o 'X' */
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative; /* Essencial para posicionar o botão de fechar */
    overflow: hidden;
}

/* Ícone do Android */
.apk-icon {
    font-size: 2rem;
    color: #28a745; /* ATUALIZADO: verde */
}

/* Textos (título e subtítulo) */
.apk-text {
    flex-grow: 1; /* Faz o texto ocupar o espaço restante */
    font-size: 0.9rem;
}
.apk-text strong {
    font-weight: bold;
    color: #006442; /* ATUALIZADO: verde escuro */
    display: block; /* Coloca o título em sua própria linha */
}
.apk-text span {
    font-size: 0.85rem;
}

/* Botão de Download */
.apk-download-btn {
    background-color: #28a745; /* ATUALIZADO: verde */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap; /* Impede que o texto "Baixar" quebre */
    transition: background-color 0.2s ease;
}
.apk-download-btn:hover {
    background-color: #218838; /* ATUALIZADO: verde escuro */
}

/* Botão de Fechar (X) */
#close-apk-banner {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 1.8rem;
    color: #999;
    line-height: 1;
    transition: color 0.2s ease;
}
#close-apk-banner:hover {
    color: #333;
}

/* =====================================================================
    ESTILOS PARA A PÁGINA "MINHA CONTA" COM EDIÇÃO
===================================================================== */

/* Estilo para os campos quando estiverem bloqueados */
.readonly-field {
    background-color: #f1f3f5; /* Um cinza bem claro */
    cursor: not-allowed;
    color: #6c757d; /* Texto cinza escuro */
    border-color: #dee2e6;
}

/* Estilo para a mensagem de aviso */
.login-warning {
    display: none; /* Começa escondido */
    padding: 15px;
    background-color: #fff3cd; /* Fundo amarelo claro */
    border: 1px solid #ffeeba;
    color: #856404; /* Texto escuro */
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
}
.login-warning i {
    margin-right: 8px;
}

/* =====================================================================
    ESTILOS PARA O ALERTA INTERATIVO DE NOTIFICAÇÃO (CENTRALIZADO - FINAL)
===================================================================== */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Começa centralizado e menor */
    
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Gradiente azul-acinzentado */
    color: white;
    padding: 20px 25px; /* Espaço interno */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre os itens */
    z-index: 3000;
    width: 90%;
    max-width: 420px; /* Largura máxima */
    
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast-notification.show {
    transform: translate(-50%, -50%) scale(1); /* Cresce para o tamanho normal */
    opacity: 1;
    pointer-events: auto;
}

/* Ícone com cor de destaque */
.toast-icon {
    font-size: 1.8rem;
    color: #ffc107; /* Cor dourada */
    flex-shrink: 0;
    /* Alinha o ícone ao topo do bloco de texto */
    align-self: flex-start;
    margin-top: 3px;
}

/* NOVO: Bloco de conteúdo (Título + Mensagem) */
.toast-content {
    flex-grow: 1; /* Ocupa o espaço */
    margin-right: 15px;
    text-align: left; /* Alinha o texto à esquerda */
}

/* NOVO: Estilo para o Título */
.toast-title {
    font-size: 1.1em; /* Título "Nova Notificação!" */
    font-weight: 700;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.3;
    color: #fff;
}

/* ATUALIZADO: Estilo para o Snippet da Mensagem */
.toast-message {
    font-size: 0.95em; /* Snippet da mensagem */
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
    padding: 0;
}

/* Botão "Ver" */
.toast-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toast-view-btn {
    background-color: var(--accent-blue, #28a745); /* ATUALIZADO: Verde */
    color: white;
    border: none;
    padding: 10px 18px; /* Padding ajustado */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.toast-view-btn:hover {
    background-color: #218838; /* ATUALIZADO: Verde escuro */
}

/* Animação de brilho para o sino (mantida) */
@keyframes bell-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 193, 7, 0.6); }
  50% { text-shadow: 0 0 20px rgba(255, 193, 7, 1); }
}
.notifications-bell.highlight-bell {
    animation: ring-bell 4s ease-in-out infinite, bell-glow 2s ease-in-out infinite alternate;
    transform-origin: top center;
}

/* =====================================================================
    ANIMAÇÃO DE ÍCONES DOS BOTÕES (DASHBOARD) - PULSAR
===================================================================== */

/* 1. Define a animação de pulsar */
@keyframes icon-pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15); /* Aumenta o ícone em 15% */
    }
}

/* 2. Aplica a animação ao PRIMEIRO ícone de todos os botões (CORRIGIDO) */
.atm-button i:first-child {
    display: inline-block; /* Necessário para a transformação */
    animation: icon-pulse 2s ease-in-out infinite alternate; /* 2 segundos, suave, infinito, e vai e volta */
}

/* 3. Remove a animação do botão de pagar (blinking-notification), pois ele já tem sua própria animação */
.atm-button.blinking-notification i:first-child {
    animation: none;
}

/* =====================================================================
    RESTAURAÇÃO DO SISTEMA DE BOLÃO ÚNICO (CSS)
===================================================================== */
/* Como voltamos ao sistema de bolão único, as abas (que eu tinha adicionado) 
   não são mais necessárias. Estas regras garantem que o layout original 
   (sem abas) funcione.
*/
.bolao-tabs {
    display: none; /* Remove as abas */
}
.atm-screen, .atm-buttons {
    display: block !important; /* Força a exibição (block para tela) */
}
.atm-buttons {
    display: grid !important; /* Força a exibição (grid para botões) */
}

