/* global.css - REVELA */

/* 1. VARIÁVEIS E RESET */
:root {
    --primary: #6200ee;
    --primary-hover: #7722ff;
    --bg: #0f0f12;
    --card-bg: #1a1a1d;
    --accent: #00ffcc;
    --gold: #ff9f43;
    --error: #ff4757;
    --success: #2ecc71;
    --text-muted: #888;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg) !important;
    color: white;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    /* ADICIONE ESTA: Alinha o conteúdo no topo */
    min-height: 100vh;
    padding: 20px 0; /* Dá um respiro no topo e na base */
    margin: 0;
    box-sizing: border-box;
}

/* 2. COMPONENTES GERAIS */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 350px;
    text-align: center;
    border: 1px solid #333;
    box-sizing: border-box;
}

h2 { margin-bottom: 10px; font-size: 24px; font-weight: 900; }
p.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; }
a { color: var(--primary); text-decoration: none; font-weight: bold; transition: 0.3s; }
a:hover { color: var(--primary-hover); }

/* 3. FORMULÁRIOS E BOTÕES */
input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: 1px solid #333;
    border-radius: 12px;
    box-sizing: border-box;
    background: var(--bg);
    color: white;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    transition: 0.3s;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}



/* Container que agrupa o Checkbox e o Texto */
.termos-container {
    display: flex;
    flex-direction: row; /* Força ficar na mesma linha */
    align-items: flex-start; /* Alinha o checkbox com a primeira linha do texto */
    gap: 12px; /* Espaço entre o box e o texto */
    margin: 20px 0;
    cursor: pointer;
    width: 100%;
}

/* Ajuste específico do quadradinho (input) */
.termos-container input[type="checkbox"] {
    width: 20px !important; /* Tamanho fixo */
    height: 20px !important; /* Tamanho fixo */
    margin: 0 !important; /* Remove margens que desalinhamento */
    flex-shrink: 0; /* Impede o checkbox de "esmagar" se o texto for longo */
    cursor: pointer;
    accent-color: var(--accent); /* Cor personalizada do Revela */
}

/* Ajuste do texto ao lado */
.termos-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4; /* Melhora a leitura se o texto quebrar linha */
    text-align: left;
}

.termos-text a {
    color: var(--accent);
    text-decoration: underline;
}







/* 4. MENSAGENS E BADGES */
.indicacao-badge {
    background: rgba(255, 159, 67, 0.1);
    color: var(--gold);
    border: 1px dashed var(--gold);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: inline-block;
}

.indicacao-badge strong { color: #fff; }

.erro {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid var(--error);
}

.sucesso {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid var(--success);
}

/* 5. SISTEMA DE AFILIADOS (LINK) */
.card-indicacao {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
}

.card-indicacao h3 { color: var(--gold); margin-top: 0; }

.link-group {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.link-group input {
    flex: 1;
    background: var(--bg);
    color: var(--accent);
    font-size: 12px;
    padding: 10px;
    border: 1px solid #444;
}

.btn-copy {
    background: #444;
    color: white;
    width: auto;
    padding: 0 15px;
    font-size: 12px;
}

.btn-share { background: var(--gold); }
.btn-share:hover { background: #e68a2e; }

/* 6. PÁGINA DE PERFIL E STATUS */
.perfil-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.avatar-fake {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-box strong { font-size: 1.2rem; color: var(--accent); }

/* Galeria de Conquistas */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
}

.item-colecao {
    background: var(--card-bg);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: 0.3s;
}

.item-colecao img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }

/* Modal de Visualização */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.btn-fechar {
    position: absolute;
    top: 20px; right: 20px;
    background: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* ============================================================
   7. PAINEL ADMINISTRATIVO (CONFIGURAÇÕES)
   ============================================================ */

.config-section { 
    background: var(--card-bg); 
    padding: 20px; 
    border-radius: 15px; 
    border: 1px solid #333; 
    margin-bottom: 20px; 
    text-align: left; 
    width: 100%;
    box-sizing: border-box;
}

.config-section h3 { 
    color: var(--accent); 
    margin-top: 0; 
    font-size: 18px; 
}

.config-section label { 
    display: block; 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-bottom: 5px; 
}

.row-inline { 
    display: flex; 
    gap: 15px; 
    align-items: flex-end; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
}

.row-inline .input-group { 
    flex: 1; 
    min-width: 120px; 
}

/* Responsividade específica para o Admin */
@media (max-width: 600px) {
    .row-inline { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px;
    }
    
    .row-inline button { 
        width: 100%; 
        margin-top: 5px;
    }

    .config-section { padding: 15px; }
}




/* Barra do Topo */
.menu-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 999; /* Um pouco abaixo do menu lateral */
    border-bottom: 1px solid #222;
    box-sizing: border-box;
}

.logo-mini { font-weight: 900; color: #fff; letter-spacing: 1px; font-size: 18px; }

/* Ícone Hamburger */
.menu-icon { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.menu-icon span { width: 25px; height: 3px; background: var(--accent); border-radius: 5px; }




/* Menu Lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* No topo de tudo */
    display: none; /* Escondido por padrão */
}

.side-menu.active { display: flex; }

.menu-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
}

.menu-content {
    position: absolute;
    right: 0;
    width: 280px;
    height: 100%;
    background: #111;
    padding: 50px 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.close-btn { position: absolute; top: 15px; left: 20px; font-size: 30px; color: #555; cursor: pointer; }

.menu-links a {
    display: block;
    padding: 18px 10px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #222;
    font-size: 16px;
}

.menu-divider { height: 1px; background: #333; margin: 20px 0; }

.avatar-menu {
    width: 50px; height: 50px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-weight: bold; color: #000;
}


/* Container da Barra de Ações */
.action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Espaço entre os botões */
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
}

/* Estilo Base dos Botões de Ação */
.btn-action {
    flex: 1; /* Faz ambos terem o mesmo tamanho */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 5px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
}

/* Cor do Botão de Bônus (Dourado/Laranja) */
.btn-action.bonus {
    background: linear-gradient(45deg, #ff9f43, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

/* Cor do Botão de Suporte (Dark com borda Accent) */
.btn-action.suporte {
    background: #1a1a1d;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.1);
}

/* Efeito de Clique */
.btn-action:active {
    transform: scale(0.95);
}

/* Ponto de Notificação no Suporte */
.dot-alert {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    border: 2px solid var(--bg);
}
