/* ============================================ */
/* VARIÁVEIS GLOBAIS E RESET */
/* ============================================ */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --bg-card: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: #334155;
    --radius: 12px;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --ferrari: #ff2800;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

body.light-mode {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border: #cbd5e1;
}

/* ============================================ */
/* ANIMAÇÕES */
/* ============================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes textFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; letter-spacing: 2px; } }
@keyframes pulseIA { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); } 50% { opacity: 0.9; transform: scale(1.02); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
@keyframes badgeGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes badgePulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); } 50% { transform: scale(1.02); box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); } }

/* ============================================ */
/* ANIMAÇÃO DE TREINAMENTO IA */
/* ============================================ */
.ia-training-animation {
    background: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #3b82f6, #8b5cf6, #ef4444);
    background-size: 400% 100%;
    animation: gradientShift 6s ease infinite;
    border-radius: 16px;
    padding: 20px 20px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.ia-training-animation.treinado {
    background: linear-gradient(90deg, #22c55e, #10b981, #059669, #22c55e);
    background-size: 300% 100%;
    animation: gradientShift 6s ease infinite;
}

.ia-training-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    animation: textFlicker 2s ease infinite;
}

.ia-training-text.treinado {
    animation: none;
    font-size: 18px;
}

.ia-training-subtext {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 6px;
}

/* ============================================ */
/* BADGE VERSÃO */
/* ============================================ */
.version-badge { 
    display: inline-block; 
    background: linear-gradient(135deg, #ef4444, #f59e0b, #eab308, #ef4444);
    background-size: 200% 100%;
    animation: badgeGradient 3s ease infinite, badgePulse 2s ease infinite;
    padding: 6px 16px; 
    border-radius: 30px; 
    font-size: 14px; 
    font-weight: 700; 
    margin-left: 10px; 
    color: white; 
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ============================================ */
/* BADGE PRO */
/* ============================================ */
.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #1e293b;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    display: inline-block;
    animation: pulse 1.5s ease infinite;
}

.pro-expires {
    font-size: 10px;
    color: #f59e0b;
    margin-top: 2px;
}

.btn-pro {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #1e293b;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-pro:hover { transform: scale(1.02); opacity: 0.9; }

/* ============================================ */
/* TELA DE MANUTENÇÃO */
/* ============================================ */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a, #020617);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.maintenance-content {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 30px;
    border: 2px solid #f59e0b;
    max-width: 500px;
    margin: 20px;
    animation: pulse 2s infinite;
}
.maintenance-icon { font-size: 80px; margin-bottom: 20px; }
.maintenance-title { font-size: 32px; color: #f59e0b; margin-bottom: 15px; }
.maintenance-text { color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.maintenance-time { font-size: 14px; color: #8b5cf6; margin-top: 20px; padding: 10px; background: rgba(139, 92, 246, 0.2); border-radius: 20px; }

/* ============================================ */
/* MODAL DE LOGIN */
/* ============================================ */
.modal-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-login-container {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease;
    border: 2px solid var(--info);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-login-logo { width: 80px; height: 80px; background: linear-gradient(135deg, #8b5cf6, #06b6d4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 40px; }
.modal-login-title { font-size: 24px; font-weight: 700; background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; }
.modal-login-message { color: var(--text-secondary); margin-bottom: 30px; line-height: 1.5; }
.modal-login-btn { background: linear-gradient(135deg, #8b5cf6, #06b6d4); color: white; border: none; padding: 12px 30px; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }

/* ============================================ */
/* MODAL PIX */
/* ============================================ */
.modal-pix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-pix-container {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: fadeIn 0.3s ease;
    border: 2px solid #10b981;
}
.qr-code-area { background: white; padding: 20px; border-radius: 20px; margin: 20px 0; }
.qr-code-area img { max-width: 200px; margin: 0 auto; }
.pix-copy-area { background: var(--bg-primary); padding: 12px; border-radius: 12px; margin: 15px 0; word-break: break-all; font-size: 12px; font-family: monospace; }
.btn-copiar { background: var(--info); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; margin-top: 10px; }

/* ============================================ */
/* EXTRAS DAS LOTERIAS */
/* ============================================ */
.extras-container { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.extra-item { background: rgba(56, 189, 248, 0.15); border-radius: 30px; padding: 8px 20px; display: inline-flex; align-items: center; gap: 10px; }
.extra-label { font-size: 12px; color: var(--text-secondary); }
.extra-value { font-size: 18px; font-weight: 700; }

/* ============================================ */
/* CABEÇALHO */
/* ============================================ */
.header {
    background: linear-gradient(135deg, var(--bg-secondary), #0f2744);
    padding: 15px 20px 10px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}
.header-logo img { width: 140px; height: auto; border-radius: 8px; }
.header-text { flex: 1; text-align: center; }
.header h1 { font-size: 22px; background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-subtitle { color: var(--text-secondary); font-size: 15px; margin-top: 5px; }

/* ============================================ */
/* PAINEL DO USUÁRIO */
/* ============================================ */
.user-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 2px solid var(--border);
}
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #38bdf8;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.user-details h4 { font-size: 14px; margin-bottom: 2px; }
.user-details p { font-size: 10px; color: var(--text-secondary); }
.credits-box { 
    background: linear-gradient(135deg, #f59e0b, #eab308); 
    padding: 8px 18px; 
    border-radius: 30px; 
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 120px;
}
.credits-box:hover { transform: scale(1.02); }
.credits-box span { font-size: 10px; opacity: 0.9; }
.credits-box strong { font-size: 16px; display: block; color: #1e293b; }

/* ============================================ */
/* BOTÕES */
/* ============================================ */
.btn-perfil, .btn-comprar, .btn-logout, .btn-tema {
    padding: 8px 18px;
    min-width: 100px;
    font-size: 12px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-perfil { background: linear-gradient(135deg, #8b5cf6, #06b6d4); color: white; }
.btn-comprar { background: #10b981; color: white; }
.btn-logout { background: #ff2800; color: white; }
.btn-tema { background: #64748b; color: white; }
.btn-perfil:hover, .btn-comprar:hover, .btn-logout:hover, .btn-tema:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.status-online {
    background: #22c55e;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-google { background: #db4437; color: white; padding: 8px 18px; border-radius: 30px; border: none; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-facebook { background: #4267B2; color: white; padding: 8px 18px; border-radius: 30px; border: none; cursor: pointer; font-weight: 600; font-size: 13px; }
.admin-badge { background: linear-gradient(135deg, #8b5cf6, #ec4899); padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; margin-left: 8px; }

/* ============================================ */
/* CONTAINER E GRADE DE LOTERIAS */
/* ============================================ */
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.lottery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.lottery-card { background: var(--bg-secondary); padding: 20px; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; transition: all 0.3s; text-align: center; position: relative; }
.lottery-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.lottery-card.active { border-color: #38bdf8; background: var(--bg-card); }
.lottery-card h3 { font-size: 18px; margin: 8px 0; }
.lottery-card .rules { font-size: 11px; color: var(--text-secondary); }

/* ============================================ */
/* STATUS IA */
/* ============================================ */
.ia-status { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); }
.ia-status.treinado { background: #22c55e; }
.ia-status.treinando { background: #f59e0b; animation: pulse 1s infinite; }
.ia-status.nao-treinado { background: #ef4444; }

/* ============================================ */
/* CARDS */
/* ============================================ */
.card { background: var(--bg-secondary); padding: 20px; border-radius: var(--radius); border: 2px solid var(--border); margin-bottom: 20px; }
.btn { padding: 10px 20px; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.3s; margin: 5px; font-size: 13px; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: #22c55e; color: white; }
.btn-upload { background: #3b82f6; color: white; }
.btn-treinar { background: #f59e0b; color: #1e293b; }
.btn-backtest { background: #06b6d4; color: #1e293b; }

/* ============================================ */
/* CONFIGURAÇÕES */
/* ============================================ */
.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 15px 0;
    align-items: start;
}
.quantidade-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quantidade-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    -moz-appearance: textfield;
}
.quantidade-input::-webkit-inner-spin-button, 
.quantidade-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 24px;
}
.quantidade-range {
    width: 100%;
    cursor: pointer;
    background: var(--bg-card);
    height: 4px;
    border-radius: 5px;
}
.modo-select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}
.config-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--text-secondary);
}

/* ============================================ */
/* BOLAS DOS NÚMEROS */
/* ============================================ */
.bolas { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.bola { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; animation: popIn 0.3s ease; }
.resultado-jogo { background: var(--bg-card); padding: 15px; border-radius: var(--radius); border: 2px solid var(--border); margin-bottom: 15px; transition: all 0.3s; }
.resultado-jogo:hover { transform: translateX(5px); border-left-width: 6px; }
.confianca-bar { height: 4px; border-radius: 2px; margin: 8px 0; transition: width 0.5s ease; }
.confianca-alta { background: linear-gradient(90deg, #22c55e, #10b981); }
.confianca-media { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.confianca-baixa { background: linear-gradient(90deg, #ef4444, #f97316); }

/* ============================================ */
/* BACKTEST RESULT */
/* ============================================ */
.backtest-result { background: var(--bg-card); padding: 10px; border-radius: var(--radius); margin: 5px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* ============================================ */
/* TREINAMENTO DA IA */
/* ============================================ */
.training-section { margin-bottom: 5px; }
.training-progress { width: 100%; height: 6px; background: var(--border); border-radius: 4px; margin: 8px 0; overflow: hidden; }
.training-progress-bar { height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); width: 0%; transition: width 0.3s; }
.training-log {
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 11px;
    color: #86efac;
    min-height: 80px;
    max-height: 100px;
    overflow-y: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.4;
}
#iaTrainingAnimation { margin-top: 5px; margin-bottom: 0; }

/* ============================================ */
/* FILTROS APLICADOS */
/* ============================================ */
.filtros-aplicados { background: rgba(56, 189, 248, 0.1); border: 2px solid #38bdf8; padding: 12px; border-radius: var(--radius); margin: 15px 0; }
.filtro-item { display: inline-block; background: var(--bg-card); padding: 4px 10px; border-radius: 15px; margin: 3px; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 15px 0; }
.stat-card { background: var(--bg-card); padding: 12px; border-radius: var(--radius); text-align: center; font-size: 13px; }

/* ============================================ */
/* FILTROS */
/* ============================================ */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.filtro-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #38bdf8;
}
.filtro-btn.ativo {
    background: #f59e0b;
    color: #1e293b;
    border-color: #f59e0b;
    animation: pulseIA 1.5s ease infinite;
    font-weight: 600;
}
.filtro-btn:hover:not(.ativo) {
    transform: scale(1.02);
    border-color: #38bdf8;
}

/* ============================================ */
/* DISPERSÃO */
/* ============================================ */
.dispersao-slider { width: 100%; }
.dispersao-slider input {
    width: 100%;
    cursor: pointer;
    background: var(--bg-card);
    height: 4px;
    border-radius: 5px;
}
.dispersao-valor { font-size: 12px; margin-top: 5px; }

/* ============================================ */
/* INFORMAÇÕES DO PERÍODO */
/* ============================================ */
.info-periodo { display: flex; gap: 12px; margin-top: 12px; padding: 10px; background: rgba(56, 189, 248, 0.1); border-radius: 12px; border: 1px solid rgba(56, 189, 248, 0.3); }
.info-periodo-item { flex: 1; text-align: center; padding: 6px; background: var(--bg-card); border-radius: 8px; }
.info-periodo-label { font-size: 10px; color: var(--text-secondary); margin-bottom: 3px; }
.info-periodo-valor { font-size: 12px; font-weight: 600; color: #38bdf8; }

/* ============================================ */
/* STATUS BADGE */
/* ============================================ */
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-ready { background: #22c55e; color: white; }
.status-error { background: #ef4444; color: white; }
.status-training { background: #f59e0b; color: #1e293b; animation: pulse 1.5s infinite; }

/* ============================================ */
/* MENSAGENS */
/* ============================================ */
.mensagem-erro { background: rgba(239, 68, 68, 0.1); border: 2px solid #ef4444; padding: 8px 12px; border-radius: var(--radius); margin: 10px 0; color: #fca5a5; font-size: 13px; }
.mensagem-sucesso { background: rgba(34, 197, 94, 0.1); border: 2px solid #22c55e; padding: 8px 12px; border-radius: var(--radius); margin: 10px 0; color: #86efac; font-size: 13px; }

/* ============================================ */
/* MODAIS GERAIS */
/* ============================================ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-container { background: var(--bg-secondary); border: 2px solid #38bdf8; border-radius: 20px; max-width: 500px; width: 90%; }
.modal-header { padding: 15px; border-bottom: 2px solid #38bdf8; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px; display: flex; gap: 15px; justify-content: flex-end; border-top: 1px solid var(--border); }

/* ============================================ */
/* TOAST */
/* ============================================ */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--bg-card); border-left: 4px solid var(--success); padding: 10px 18px; border-radius: 8px; z-index: 1100; animation: slideInRight 0.3s; font-size: 13px; }

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */
@media (max-width: 768px) {
    .lottery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .filtro-btn { padding: 5px 10px; font-size: 11px; }
    .bola { width: 30px; height: 30px; font-size: 12px; }
    .user-panel { flex-direction: column; text-align: center; margin: 10px; }
    .info-periodo { flex-direction: column; gap: 6px; }
    .header-logo img { width: 80px; }
    .login-buttons { justify-content: center; }
    .btn-perfil, .btn-comprar, .btn-logout, .btn-tema { min-width: 80px; padding: 6px 12px; font-size: 11px; }
    .credits-box { min-width: 100px; padding: 6px 12px; }
    .credits-box strong { font-size: 14px; }
    .quantidade-input { max-width: 100%; padding: 6px; }
    .header h1 { font-size: 16px; }
    .version-badge { font-size: 10px; padding: 4px 10px; }
    .config-grid { grid-template-columns: 1fr; gap: 15px; }
    .btn-pro { padding: 6px 12px; font-size: 11px; }
}

/* ============================================ */
/* ESTILOS ESPECÍFICOS DO PERFIL */
/* ============================================ */
.btn-voltar { 
    background: #64748b; 
    color: white; 
    border: none; 
    padding: 8px 20px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 13px;
    margin-bottom: 15px; 
    transition: transform 0.2s; 
}
.btn-voltar:hover { transform: scale(1.02); background: #475569; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.avatar { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #8b5cf6, #06b6d4); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    overflow: hidden; 
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.info h2 { font-size: 18px; margin-bottom: 3px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.info p { font-size: 11px; color: var(--text-secondary); word-break: break-all; }

.saldo-card { 
    background: linear-gradient(135deg, #f59e0b, #eab308); 
    border-radius: 12px; 
    padding: 10px; 
    text-align: center; 
}
.saldo-card strong { font-size: 28px; display: block; color: #1e293b; }

.scroll-area { max-height: 300px; overflow-y: auto; }
.historico-item { 
    background: var(--bg-primary); 
    border-radius: 8px; 
    padding: 8px 10px; 
    margin-bottom: 6px; 
    border-left: 3px solid #38bdf8; 
}
.historico-header { display: flex; justify-content: space-between; margin-bottom: 4px; flex-wrap: wrap; }
.historico-loteria { font-size: 12px; font-weight: 600; color: #38bdf8; }
.historico-data { font-size: 10px; color: var(--text-secondary); }
.historico-jogos { font-size: 10px; color: #cbd5e1; word-break: break-all; margin-top: 4px; line-height: 1.4; }
.config-texto { font-size: 9px; color: #666; margin-top: 6px; padding-top: 4px; border-top: 1px solid #334155; }

.transacoes-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.transacoes-table th, .transacoes-table td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--border); }
.transacoes-table th { color: var(--text-secondary); font-weight: 500; }
.credito { color: #22c55e; font-weight: 600; }
.debito { color: #ef4444; font-weight: 600; }

.stats-container { text-align: center; padding: 8px; }
.stats-number { font-size: 24px; color: #38bdf8; font-weight: 700; }
.stats-label { font-size: 10px; color: var(--text-secondary); }
.stats-divider { margin: 8px 0; border-color: var(--border); }

.empty-message { text-align: center; padding: 20px; color: var(--text-secondary); font-size: 12px; }
.loading { text-align: center; padding: 20px; color: #f59e0b; font-size: 14px; }

.btn-selecionar-todos, .btn-exportar-pdf {
    transition: all 0.2s;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    border: none;
}
.btn-selecionar-todos { background: #38bdf8; color: white; }
.btn-exportar-pdf { background: #22c55e; color: white; }
.btn-exportar-pdf-bloqueado { background: #64748b; color: white; cursor: not-allowed; opacity: 0.6; }
.btn-selecionar-todos:hover, .btn-exportar-pdf:hover { transform: scale(1.02); opacity: 0.9; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary);
}
/* ============================================ */
/* RODAPÉ - POLÍTICA, SOBRE, CONTATOS (FASE 10) */
/* ============================================ */

.footer-buttons-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-btn {
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.footer-btn-politica {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
}

.footer-btn-sobre {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #1e293b;
}

.footer-btn-contatos {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.footer-copyright {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}
