:root {
    /* Cores FIFA 2026 & Neon */
    --primary-bg: #0d001a;         /* Fundo Quase Preto/Roxo */
    --card-bg: #1a0033;            /* Roxo Escuro para Cards */
    --accent-lime: #ccff00;        /* Verde Limão Neon */
    --accent-purple: #6000e7;      /* Roxo Principal */
    --accent-pink: #ff00ff;        /* Rosa Neon */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --danger-color: #ff004c;
    --success-color: #2ecc71;
    --radius-xl: 30px;
    --radius-md: 20px;
    --shadow-neon: 0 0 15px rgba(204, 255, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 90px;
}

.main-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banners (Compactos e Sem Distorção) */
.divAnuncio {
    width: 100%;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100px;
    margin-bottom: 5px;
}

.imgAnuncio {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a proporção sem esticar */
}

/* --- ESTILOS DE FORMULÁRIO (LOGIN E CADASTRO) --- */

.auth-card {
    background-color: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative; /* Necessário para o ícone de senha */
}

.form-label {
    display: block;
    color: var(--accent-lime);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-left: 5px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-lime);
    background-color: rgba(204, 255, 0, 0.05);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.1);
}

/* Ajuste do ícone de mostrar senha */
#togglePassword {
    position: absolute;
    right: 15px;
    top: 42px; /* Ajustado para alinhar verticalmente no input */
    cursor: pointer;
    color: var(--accent-lime);
    font-size: 1.2rem;
    z-index: 10;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-lime);
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-lime);
    text-decoration: none;
    font-weight: 700;
}

.btn-register {
    width: 100%;
    padding: 18px;
    background-color: var(--accent-lime);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(204, 255, 0, 0.4);
}

/* --- PAINEL E JOGOS --- */

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-mini {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--accent-pink);
    overflow: hidden;
    background: #2a2a2a;
}

.balance-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.balance-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-lime);
}

.mission-card {
    background: linear-gradient(135deg, #6000e7 0%, #3a008d 100%);
    border-radius: var(--radius-xl);
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mission-tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-title {
    font-size: 1.6rem;
    font-weight: 900;
    font-style: italic;
    margin: 10px 0;
    line-height: 1.1;
}

.btn-generate {
    background-color: var(--accent-lime);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
}

.match-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    color: var(--accent-lime);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-lime);
}

.teams-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 25px;
}

.team-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 35%;
}

.team-unit img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.team-unit span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

.btn-bet {
    background: #ffffff;
    color: #000;
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Tabs Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #120026;
    display: flex;
    justify-content: space-around;
    padding: 15px 0 25px;
    border-radius: 30px 30px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-item.active { color: var(--accent-lime); }
.nav-item i { font-size: 1.4rem; }

/* Modal Centralizado */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal:target { display: flex; }

.modal-content {
    background-color: #1a0033;
    width: 100%;
    max-width: 400px;
    border-radius: 40px;
    padding: 35px 25px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-title {
    color: var(--accent-lime);
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.score-box {
    width: 85px;
    height: 100px;
    background: #2a0052;
    border-radius: 20px;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
}

.warning-box {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.2);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.warning-box p { font-size: 0.7rem; color: #ff0055; font-weight: 700; text-transform: uppercase; }

.btn-register-modal {
    background-color: var(--accent-lime);
    color: #000;
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    border: none;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
}

.btn-register-modal:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }

/* Tabs Content */
.tab-pane { display: none; width: 100%; animation: slideFade 0.3s ease-out; }
.tab-pane.active { display: block; }

@keyframes slideFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Conquistas & Atividades */
.section-header {
    font-weight: 900;
    font-style: italic;
    font-size: 1.1rem;
    margin: 10px 0 15px;
    text-transform: uppercase;
}

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

.badge-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 20px;
    text-align: center;
}

.badge-item img { width: 40px; height: 40px; margin-bottom: 8px; }
.badge-item span { font-size: 0.6rem; font-weight: 800; display: block; text-transform: uppercase; color: var(--text-muted); }

.activity-list {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 10px;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.activity-item:last-child { border: none; }
.activity-item small { color: var(--accent-pink); font-weight: 800; font-size: 0.65rem; }
.activity-item p { font-size: 0.8rem; margin-top: 4px; }

.userNotFound {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    z-index: 9999;
    border: none;
    text-align: center;
    font-weight: bold;
}

.mySlides { display: none; }

#togglePassword {
    position: absolute;
    right: 15px;
    /* Centralização vertical dinâmica dentro do container relativo */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--accent-lime);
    font-size: 1.25rem; /* Um pouco maior para facilitar o toque */
    z-index: 10;
    transition: opacity 0.2s;
}

#togglePassword:hover {
    opacity: 0.8;
}

/* Garante que o input tenha espaço para o ícone não cobrir o texto */
.form-input[type="password"], 
.form-input[type="text"]#senha {
    padding-right: 48px !important;
}