:root {
    --blue: #0047FF; --purple: #9D00FF; --pink: #FF00E5; --bg: #02040a;
    --glass: rgba(255, 255, 255, 0.03); --border: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.5); --danger: #ff4444; --success: #00ff9d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Remove a barra de rolagem em todos os navegadores */
*::-webkit-scrollbar { display: none !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }

body { font-family: 'Poppins', sans-serif; background: var(--bg); color: #fff; overflow-x: hidden; }

/* --- SISTEMA DE NOTIFICAÇÕES (TOASTS LUXO) --- */
#toast-container { 
    position: fixed; top: 20px; right: 20px; z-index: 20000; 
    display: flex; flex-direction: column; gap: 10px; 
}

.toast {
    min-width: 300px;
    background: rgba(10, 10, 20, 0.95);
    border-left: 5px solid var(--blue);
    backdrop-filter: blur(15px);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    /* Animação com efeito de mola */
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.hide { animation: slideOut 0.5s forwards; }

.toast i { font-size: 22px; }
.toast-content b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.toast-content span { font-size: 13px; opacity: 0.8; }

@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(130%); opacity: 0; } }

/* --- LOGIN OVERLAY --- */
#login-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle at center, #0a0e1a 0%, #02040a 100%); 
    z-index: 10000; display: flex; justify-content: center; align-items: center; 
}
.login-card { 
    background: var(--glass); border: 1px solid var(--border); padding: 50px; 
    border-radius: 40px; width: 90%; max-width: 400px; backdrop-filter: blur(25px); text-align: center; 
    box-shadow: 0 0 50px rgba(0, 71, 255, 0.1);
}
.login-card img { height: 60px; margin-bottom: 30px; filter: drop-shadow(0 0 10px var(--blue)); }

/* --- LAYOUT DASHBOARD --- */
#main-panel { display: none; min-height: 100vh; }
.mobile-header { 
    display: none; padding: 20px; background: rgba(0,0,0,0.3); 
    border-bottom: 1px solid var(--border); align-items: center; 
    justify-content: space-between; position: sticky; top: 0; z-index: 2000; 
}
.sidebar { 
    width: 280px; height: 100vh; position: fixed; left: 0; top: 0; 
    border-right: 1px solid var(--border); padding: 40px 20px; 
    background: #02040a; z-index: 1000; transition: transform 0.3s ease; 
}
.content { margin-left: 280px; padding: 40px; min-height: 100vh; transition: margin 0.3s ease; }

@media (max-width: 992px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .content { margin-left: 0; padding: 20px; }
}

/* --- NAVEGAÇÃO --- */
.nav-link { 
    display: flex; align-items: center; gap: 15px; padding: 15px 20px; 
    border-radius: 12px; cursor: pointer; color: var(--text-muted); 
    font-weight: 600; margin-bottom: 10px; transition: 0.3s; 
}
.nav-link:hover, .nav-link.active { background: var(--glass); color: #fff; }
.nav-link.active { 
    border-left: 4px solid var(--blue); 
    background: linear-gradient(90deg, rgba(0,71,255,0.1), transparent); 
}
.nav-exit { color: var(--danger); margin-top: 30px; opacity: 0.7; }
.nav-exit:hover { opacity: 1; background: rgba(255, 68, 68, 0.05); }

/* --- CARDS E ESTATÍSTICAS --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { 
    background: var(--glass); border: 1px solid var(--border); padding: 25px; 
    border-radius: 30px; position: relative; overflow: hidden; transition: 0.4s; 
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--blue); }
.stat-card h3 { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1.5px; }
.stat-card p { 
    font-size: 32px; font-weight: 800; margin-top: 10px; 
    background: linear-gradient(to right, #fff, var(--blue)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.stat-card i { position: absolute; right: 20px; bottom: 20px; font-size: 45px; opacity: 0.05; color: var(--blue); }

/* --- TABELAS --- */
.table-container { 
    background: var(--glass); border: 1px solid var(--border); 
    border-radius: 30px; padding: 25px; overflow-x: auto; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { text-align: left; padding: 18px 15px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; border-bottom: 1px solid var(--border); letter-spacing: 1px; }
td { padding: 18px 15px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.02); }

/* --- BADGES --- */
.role-badge { padding: 5px 12px; border-radius: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.badge-admin { background: var(--danger); box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); }
.badge-ultra { background: var(--purple); box-shadow: 0 0 15px rgba(157, 0, 255, 0.3); }
.badge-master { background: var(--blue); box-shadow: 0 0 15px rgba(0, 71, 255, 0.3); }

/* --- BOTÕES --- */
.btn-action { 
    background: linear-gradient(45deg, var(--blue), var(--purple)); color: #fff; 
    border: none; padding: 12px 22px; border-radius: 12px; font-weight: 800; 
    cursor: pointer; transition: 0.3s; font-size: 12px; display: inline-flex; 
    align-items: center; gap: 10px; 
}
.btn-action:hover { box-shadow: 0 10px 25px rgba(0,71,255,0.4); transform: scale(1.03); }

.btn-danger { background: rgba(255, 68, 68, 0.1); color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-edit { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: #fff; }
.btn-edit:hover { background: rgba(255, 255, 255, 0.15); }

.btn-full { width: 100%; padding: 18px; justify-content: center; }

/* --- FORMULÁRIOS --- */
.input-group { margin-bottom: 25px; text-align: left; }
.input-group label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; font-weight: 800; letter-spacing: 1px; }
.input-group input, .input-group select { 
    width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border); 
    background: rgba(0,0,0,0.2); color: #fff; outline: none; transition: 0.3s; font-size: 14px;
}
.input-group input:focus { border-color: var(--blue); background: rgba(0, 71, 255, 0.05); box-shadow: 0 0 15px rgba(0, 71, 255, 0.2); }

/* --- MODAIS --- */
.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); z-index: 10001; justify-content: center; 
    align-items: center; backdrop-filter: blur(15px); 
}
.modal-body { 
    background: #080a12; padding: 50px; border-radius: 40px; width: 95%; 
    max-width: 500px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.9); 
}
.confirm-icon { 
    width: 80px; height: 80px; background: rgba(255,68,68,0.1); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; 
    color: var(--danger); font-size: 35px; 
}








/* MODAL DE CRÉDITOS PREMIUM */
.credit-ui { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 10px; }
.credit-input-box { 
    display: flex; align-items: center; gap: 15px; 
    background: rgba(0,0,0,0.3); padding: 10px; 
    border-radius: 20px; border: 1px solid var(--border); 
}
.btn-qty { 
    width: 45px; height: 45px; border-radius: 50%; border: none; 
    background: var(--glass); color: #fff; font-size: 20px; 
    cursor: pointer; transition: 0.3s; 
}
.btn-qty:hover { background: var(--blue); transform: scale(1.1); }
.input-qty { 
    background: transparent; border: none; color: #fff; 
    font-size: 24px; font-weight: 800; width: 80px; 
    text-align: center; outline: none; 
}

/* MODAL DE BLOQUEIO (EXPULSÃO) */
.ban-body { text-align: center; border-color: #ff3b3b !important; box-shadow: 0 0 100px rgba(255, 59, 59, 0.2) !important; }
.ban-icon { font-size: 60px; color: #ff3b3b; margin-bottom: 20px; animation: pulseBan 1.5s infinite; }
@keyframes pulseBan { 
    0% { transform: scale(1); opacity: 1; } 
    50% { transform: scale(1.1); opacity: 0.7; } 
    100% { transform: scale(1); opacity: 1; } 
}