@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: #000000; color: #fff; overflow-x: hidden; }

/* =========================================
   1. TELA DE LOGIN E REGISTRO
   ========================================= */
.login-container { background-color: #111318; padding: 40px 30px; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8); border: 1px solid #1f2229; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.login-header { text-align: center; margin-bottom: 35px; }
.login-header h2 { color: #3461ff; font-size: 26px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.login-header p { color: #8b92a5; font-size: 13px; margin-top: 5px; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; color: #8b92a5; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 15px; color: #5a6275; font-size: 14px; }
.input-wrapper input { width: 100%; padding: 14px 15px 14px 40px; background-color: #050505; border: 1px solid #1f2229; border-radius: 8px; color: #fff; font-size: 14px; outline: none; transition: all 0.3s; }
.input-wrapper input:focus { border-color: #3461ff; }
.btn-primary { width: 100%; padding: 14px; background-color: #3461ff; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.3s; margin-top: 10px; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 12px; background-color: transparent; color: #3461ff; border: 1px solid #1f2229; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 15px; transition: all 0.3s; }
.btn-secondary:hover { background-color: rgba(52, 97, 255, 0.05); border-color: #3461ff; }

/* =========================================
   2. LAYOUT PRINCIPAL DO DASHBOARD
   ========================================= */
.dashboard-layout { display: flex; width: 100vw; height: 100vh; overflow: hidden; }

/* --- SIDEBAR (MENU LATERAL) --- */
.sidebar { width: 280px; background-color: #09090b; border-right: 1px solid #1f2229; display: flex; flex-direction: column; transition: transform 0.3s ease; z-index: 1000; }
.sidebar-header { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid #1f2229; }
.sidebar-header h2 { color: #3461ff; font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.sidebar-menu { padding: 20px 0; flex: 1; overflow-y: auto; }
.menu-category { color: #5a6275; font-size: 11px; font-weight: 700; padding: 15px 25px 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.tab-link { display: flex; align-items: center; padding: 12px 25px; color: #8b92a5; text-decoration: none; font-size: 13px; font-weight: 500; transition: 0.2s; }
.tab-link i { margin-right: 15px; font-size: 16px; width: 20px; text-align: center; color: #3461ff; }
.tab-link:hover, .tab-link.active { background-color: #111318; color: #ffffff; border-left: 3px solid #3461ff; }
.sidebar-footer { padding: 20px; border-top: 1px solid #1f2229; display: flex; align-items: center; justify-content: space-between; }
.user-profile { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 38px; height: 38px; background-color: #3461ff; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-details span { display: block; color: white; font-size: 13px; font-weight: 600; }
.user-details small { color: #8b92a5; font-size: 11px; }
.btn-logout { color: #ef4444; font-size: 18px; transition: 0.2s; } .btn-logout:hover { color: #dc2626; }

/* --- ÁREA PRINCIPAL --- */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; background-color: #050505; }
.topbar { height: 70px; background-color: #09090b; border-bottom: 1px solid #1f2229; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 900; }
.topbar-title { display: flex; align-items: center; gap: 15px; color: white; font-weight: 600; font-size: 16px; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

/* --- CARTEIRA (TOPBAR) --- */
.wallet-badge { background-color: #111318; border: 1px solid #1f2229; padding: 8px 15px; border-radius: 20px; display: flex; align-items: center; gap: 15px; }
.wallet-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.wallet-item.money { color: #10b981; } .wallet-item.credits { color: #f59e0b; }

/* =========================================
   3. CONTEÚDO, GRID E CARDS
   ========================================= */
.content-area { padding: 30px; }
.page-title { color: #fff; font-size: 24px; margin-bottom: 25px; font-weight: 700; }
.section-title { color: #3461ff; font-size: 14px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.module-card { background-color: #111318; border: 1px solid #1f2229; border-radius: 12px; padding: 25px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; }
.module-card:hover { border-color: #3461ff; box-shadow: 0 10px 20px rgba(0,0,0,0.4); transform: translateY(-3px); }
.module-status { background-color: #3461ff; color: white; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 15px; display: inline-block; margin-bottom: 15px; }
.module-icon { font-size: 30px; color: #3461ff; margin-bottom: 15px; }
.module-card h3 { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.module-card p { color: #8b92a5; font-size: 12px; margin-bottom: 20px; line-height: 1.5; }
.module-btn { width: 100%; background-color: #3461ff; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.module-btn:hover { filter: brightness(1.1); }
.module-btn:disabled { background-color: #5a6275; cursor: not-allowed; }

/* --- FORMULÁRIOS E SWITCHES --- */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; color: #8b92a5; font-size: 12px; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px 15px; background-color: #050505; border: 1px solid #1f2229; border-radius: 8px; color: #fff; font-size: 14px; outline: none; transition: 0.3s; }
.form-control:focus { border-color: #3461ff; }
textarea.form-control { resize: vertical; min-height: 100px; }
.switch-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #1f2229; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }
.switch-label { color: #fff; font-weight: 600; font-size: 13px; }

/* =========================================
   4. CALCULADORA, MODAL E NOTIFICAÇÕES
   ========================================= */
.pricing-calculator { background: linear-gradient(145deg, #111318, #09090b); border: 1px solid #3461ff; padding: 30px; border-radius: 12px; }
.calc-display { text-align: center; margin: 25px 0; padding: 20px; background: rgba(52, 97, 255, 0.1); border-radius: 10px; }
.calc-display h2 { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 5px; }
.calc-display p { color: #3461ff; font-weight: 600; }
.bonus-badge { background: #10b981; color: white; padding: 3px 8px; border-radius: 10px; font-size: 11px; margin-left: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background-color: #111318; border: 1px solid #1f2229; border-radius: 12px; padding: 30px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 15px 30px rgba(0,0,0,0.5); position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #8b92a5; font-size: 20px; cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: #ef4444; }
.code-display { display: none; background-color: #3461ff; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: 5px; padding: 15px; border-radius: 8px; margin: 20px 0; }

.toast-global { position: fixed; top: 20px; right: -400px; padding: 16px 24px; border-radius: 8px; color: white; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 9999; }
.toast-global.show { right: 20px; }
.toast-success { background-color: #10b981; } .toast-error { background-color: #ef4444; }

/* =========================================
   5. RESPONSIVIDADE (MOBILE 101%)
   ========================================= */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 995; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .sidebar { position: fixed; left: 0; top: 0; height: 100%; transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .overlay.open { display: block; }
    .content-area { padding: 20px; }
    .topbar { padding: 0 15px; }
    .topbar-title span { display: none; }
    .wallet-badge { padding: 5px 10px; }
    .wallet-item { font-size: 11px; }
    .module-grid { grid-template-columns: 1fr; }
    .pricing-calculator { padding: 20px; }
    .calc-display h2 { font-size: 28px; }
    
    /* Ajuste para o celular no Login */
    .login-container { width: 90%; padding: 30px 20px; }
}

/* =========================================
   EFEITOS PREMIUM E NEON (NOVIDADE)
   ========================================= */
/* Luz de fundo indireta na tela inteira */
body::before {
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 97, 255, 0.03), transparent 60%);
    z-index: -1; pointer-events: none;
}

/* Cards com efeito de vidro e brilho na borda */
.glass-card {
    background: linear-gradient(145deg, rgba(17, 19, 24, 0.9), rgba(9, 9, 11, 0.9));
    border: 1px solid rgba(52, 97, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.glass-card:hover {
    border-color: rgba(52, 97, 255, 0.5);
    box-shadow: 0 15px 35px rgba(52, 97, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Botões com brilho (Glow) */
.btn-glow-green {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border: none; color: white; font-weight: 700; transition: 0.3s;
}
.btn-glow-green:hover { box-shadow: 0 0 25px rgba(16, 185, 129, 0.7); transform: scale(1.02); }

.btn-glow-blue {
    background: linear-gradient(90deg, #3461ff, #274fd6);
    box-shadow: 0 0 15px rgba(52, 97, 255, 0.4);
    border: none; color: white; font-weight: 700; transition: 0.3s;
}
.btn-glow-blue:hover { box-shadow: 0 0 25px rgba(52, 97, 255, 0.7); transform: scale(1.02); }

/* Animação flutuante para os ícones */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
.icon-float { animation: float 3s ease-in-out infinite; }

/* Display de Créditos */
.calc-display {
    background: radial-gradient(circle at center, rgba(52, 97, 255, 0.15), transparent);
    border: 1px dashed rgba(52, 97, 255, 0.3);
    position: relative; overflow: hidden;
}