/* =====================================================================
   THEME "AURORA" — Rediseño visual completo del foro
   Se carga DESPUÉS de style.css y lo sobreescribe: nueva paleta violeta/
   cian, navbar flotante, glassmorphism, gradientes y micro-animaciones.
   Incluye TODA la estructura necesaria (forum-groups, home-layout,
   estados, users-widget, bans-table, staff, modal, etc.) para que
   ninguna sección del foro dependa de temas anteriores.
   No modifica style.css original.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap');

/* -------------------- 1. PALETA Y TOKENS -------------------- */
:root {
    --bg-primary: #06070d;
    --bg-secondary: #0a0c16;
    --bg-card: #12141f;
    --bg-card-hover: #191c2d;
    --bg-sidebar: #090a12;
    --bg-input: #0d0f1a;

    --border-color: #24263a;
    --border-hover: #8b5cf6;

    --text-primary: #f5f5fb;
    --text-secondary: #a4a4bd;
    --text-muted: #6c6c85;

    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-glow: rgba(139,92,246,0.22);
    --accent-2: #22d3ee;
    --accent-3: #fb923c;

    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --danger-hover: #e11d48;

    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    --gradient-2: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
    --gradient-text: linear-gradient(90deg, #a78bfa, #22d3ee, #a78bfa);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
    --shadow-lg: 0 18px 50px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 30px rgba(139,92,246,0.28);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- 2. FONDO GLOBAL -------------------- */
html { scroll-behavior: smooth; }

body {
    background: #050508;
    position: relative;
    overflow-x: hidden;
}

/* Halo principal, sutil y difuso — como un foco de luz lejano */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 500px at 12% 8%, rgba(139,92,246,0.16), transparent 60%),
        radial-gradient(650px 480px at 92% 18%, rgba(34,211,238,0.09), transparent 60%),
        radial-gradient(600px 520px at 30% 100%, rgba(139,92,246,0.10), transparent 62%);
    animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.05); }
}

/* Halo que sigue al cursor, más grande y suave que el punto */
.aurora-mouse-glow {
    position: fixed;
    top: 0; left: 0;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.20) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: transform;
}
.aurora-mouse-glow.is-active { opacity: 1; }

/* Viñeta muy suave para dar profundidad, sin volverse un patrón cargado */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.app-container { position: relative; z-index: 1; }

/* Punto violeta que sigue al cursor con un pequeño delay */
.aurora-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.95) 0%, rgba(139,92,246,0.55) 55%, transparent 75%);
    box-shadow: 0 0 18px 4px rgba(139,92,246,0.45);
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}
.aurora-cursor-dot.is-active { opacity: 1; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.03em; }

/* -------------------- 3. NAVBAR FLOTANTE -------------------- */
.top-navbar {
    top: 12px;
    left: 24px;
    right: 24px;
    height: 62px;
    background: rgba(15, 16, 28, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: var(--transition), top 0.35s ease, background 0.35s ease;
}
.top-navbar.scrolled {
    background: rgba(10, 11, 20, 0.9);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139,92,246,0.18);
}

.main-layout { padding-top: 92px !important; position: relative; z-index: 1; }

.navbar-logo-mini { margin-right: 14px; padding-right: 18px; border-right: 1px solid var(--border-color); }
.navbar-logo-img {
    border-radius: 9px;
    filter: drop-shadow(0 0 10px rgba(139,92,246,0.55));
    transition: var(--transition);
}
.navbar-logo:hover .navbar-logo-img { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 16px rgba(34,211,238,0.7)); }
.logo-text-nav {
    font-family: 'Sora', sans-serif;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-text-shift 6s linear infinite;
}
@keyframes aurora-text-shift { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.nav-link { position: relative; font-weight: 600; }
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.nav-link.active { color: #fff; background: var(--gradient-1); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }

/* Pill de estadísticas en vivo (usuarios online / temas) */
.navbar-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 16px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.navbar-stats .stat-item { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.navbar-stats .stat-item.divider { width: 1px; height: 14px; background: var(--border-color); padding: 0; }
.navbar-stats .stat-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: aurora-pulse 1.8s ease-in-out infinite;
}
@keyframes aurora-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.75); } }
@media (max-width: 1180px) { .navbar-stats { display: none; } }

/* Dropdown de usuario */
.user-dropdown-toggle {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}
.user-dropdown-toggle:hover { border-color: var(--border-hover); background: rgba(139,92,246,0.1); }
.user-dropdown-avatar { box-shadow: 0 0 0 2px rgba(139,92,246,0.55); }
.dropdown-menu {
    background: rgba(16, 18, 30, 0.94);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.dropdown-item:hover { background: rgba(139,92,246,0.14); color: var(--text-primary); transform: translateX(2px); }
.dropdown-item-danger:hover { background: rgba(244,63,94,0.14); color: var(--danger); }
.badge-pm-nav, .badge-pm-dropdown { background: var(--gradient-3); animation: badge-pulse 1.6s infinite; }
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 6px rgba(244,63,94,0.5); } 50% { box-shadow: 0 0 14px rgba(244,63,94,0.9); } }

/* Toggle móvil (hamburguesa) */
.navbar-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    align-items: center; justify-content: center;
    transition: var(--transition);
}
.navbar-toggle:hover { border-color: var(--border-hover); color: var(--accent); }

@media (max-width: 900px) {
    .top-navbar { left: 12px; right: 12px; top: 8px; height: 58px; }
    .main-layout { padding-top: 78px !important; }
    .navbar-toggle { display: flex; order: -1; margin-right: 4px; }
    .nav-links {
        position: fixed;
        top: 76px; left: 12px; right: 12px;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: rgba(14, 15, 26, 0.97);
        backdrop-filter: blur(24px);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 10px;
        box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: var(--transition);
        z-index: 999;
    }
    .nav-links.mobile-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-link { padding: 12px 14px; }
    .navbar-logo-mini .logo-text-nav { display: none; }
    .navbar-logo-mini { margin-right: 8px; padding-right: 10px; }
    .user-dropdown-name { display: none; }
}

/* -------------------- 4. BOTONES -------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; letter-spacing: 0.2px; }
.btn::after {
    content: '';
    position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: 0 4px 16px rgba(139,92,246,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.5); }
.btn-outline { background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--border-hover); background: rgba(139,92,246,0.1); transform: translateY(-2px); }
.btn-danger { background: var(--gradient-3); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,63,94,0.4); }
.btn-success { background: linear-gradient(135deg, #34d399, #22d3ee); color: #06070d; }
.aurora-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.5); transform: scale(0); animation: aurora-ripple 0.6s ease-out; pointer-events: none; }
@keyframes aurora-ripple { to { transform: scale(3); opacity: 0; } }

/* -------------------- 5. CARDS GENÉRICAS -------------------- */
.card, .category-card, .perm-group, .sidebar-widget, .stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.card:hover, .category-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.category-icon { box-shadow: 0 0 18px rgba(139,92,246,0.35); }

/* -------------------- 6. FORMULARIOS -------------------- */
.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="search"], textarea, select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}
.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group label { text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.8px; color: var(--accent); }

/* -------------------- 7. MODAL / TOAST -------------------- */
.modal-overlay, .modal-backdrop { backdrop-filter: blur(6px) brightness(0.5); -webkit-backdrop-filter: blur(6px) brightness(0.5); }
.modal, .modal-content {
    border: 1px solid var(--border-hover);
    box-shadow: 0 0 40px rgba(139,92,246,0.18), var(--shadow-lg);
    animation: modal-pop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modal-pop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.toast { border-left: 3px solid var(--accent); box-shadow: 0 0 20px rgba(139,92,246,0.2), var(--shadow-md); }

/* -------------------- 8. TABLAS / PAGINACIÓN -------------------- */
.table-container { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); }
table th, .table th { background: rgba(139,92,246,0.08); color: var(--accent); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.6px; }
table tr:hover td, .table tr:hover td { background: rgba(139,92,246,0.05); }
.pagination a, .pagination span { border-radius: 999px; transition: var(--transition); }
.pagination a:hover { background: var(--accent-glow); color: var(--accent); transform: translateY(-1px); }
.pagination .active { background: var(--gradient-1); color: #fff; box-shadow: 0 4px 12px rgba(139,92,246,0.4); }

/* -------------------- 9. ALERTAS / BADGES -------------------- */
.alert { border-radius: var(--radius-sm); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.alert-success { border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.1); color: #6ee7b7; }
.alert-error { border-color: rgba(244,63,94,0.35); background: rgba(244,63,94,0.1); color: #fca5b1; }
.badge-online { background: rgba(52,211,153,0.15); color: var(--success); }
.badge-offline { background: rgba(108,108,133,0.15); color: var(--text-muted); }
.user-dropdown-avatar, .profile-avatar, .last-topic-avatar span { box-shadow: 0 0 0 2px rgba(139,92,246,0.3); }

/* -------------------- 10. REVEAL AL SCROLLEAR -------------------- */
.reveal-on-scroll, .aurora-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.reveal-on-scroll.is-visible, .aurora-reveal.aurora-in { opacity: 1; transform: translateY(0); }

/* -------------------- 11. FOOTER -------------------- */
.footer { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--border-color); position: relative; }
.footer::before {
    content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 1px; background: var(--gradient-1); box-shadow: 0 0 12px rgba(139,92,246,0.6);
}
.footer-content { color: var(--text-muted); font-size: 12.5px; }
.footer-version { color: var(--text-muted); opacity: 0.7; }

/* -------------------- 12. BREADCRUMB -------------------- */
.content-header { padding-left: 24px; }
@media (max-width: 768px) { .content-header { padding-left: 12px; } }

/* =====================================================================
   13. PAGE HEADER ("Foros" + botón Crear nuevo tema)
   ===================================================================== */
.home-page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.home-page-header h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.home-page-header .btn { border-radius: 999px; padding: 12px 24px; font-size: 13.5px; }

/* =====================================================================
   14. FORUM GROUPS — listado de categorías
   ===================================================================== */
.forum-groups { display: flex; flex-direction: column; gap: 20px; }

.forum-group {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.forum-group:hover { border-color: var(--border-hover); }

.forum-group-header { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: rgba(139,92,246,0.06); border-bottom: 1px solid var(--border-color); }
.forum-group-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-1); color: #fff; font-size: 13px; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139,92,246,0.35);
}
.forum-group-title { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.forum-group-toggle { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; padding: 4px 6px; transition: var(--transition); }
.forum-group-toggle i { display: inline-block; transition: transform 0.25s ease; }
.forum-group-toggle:hover { color: var(--accent); }
.forum-group.is-collapsed .forum-group-body { display: none; }
.forum-group.is-collapsed .forum-group-toggle i { transform: rotate(-90deg); }
.forum-group-body { display: flex; flex-direction: column; }

.forum-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border-color); transition: var(--transition); }
.forum-group-body .forum-row:first-child { border-top: none; }
.forum-row:hover { background: rgba(139,92,246,0.05); }

.forum-row-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0; border: 1px solid var(--border-color);
    transition: var(--transition);
}
.forum-row:hover .forum-row-icon { transform: scale(1.07) rotate(-3deg); box-shadow: 0 0 14px rgba(139,92,246,0.22); }

.forum-row-main { flex: 1; min-width: 0; }
.forum-row-title { font-size: 15px; font-weight: 700; color: var(--text-primary); display: block; text-decoration: none; }
.forum-row-title:hover { color: var(--accent-hover); }
.forum-row-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.forum-row-count { width: 90px; flex-shrink: 0; text-align: center; }
.forum-row-count strong { display: block; font-size: 16px; font-weight: 800; color: var(--text-primary); }
.forum-row-count span { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }

.forum-row-last { width: 230px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.forum-row-last-avatar {
    width: 36px; height: 36px; min-width: 36px; max-width: 36px; height: 36px; max-height: 36px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(139,92,246,0.35);
}
.forum-row-last-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.forum-row-last-info span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.forum-row-last-user { color: var(--text-secondary); }
.forum-row-last-user a { text-decoration: none; }
.forum-row-last-time { color: var(--text-muted); font-size: 11px; }
.forum-row-last-empty { font-size: 12px; color: var(--text-muted); }

@media (max-width: 760px) {
    .forum-row { flex-wrap: wrap; }
    .forum-row-count { display: none; }
    .forum-row-last { width: auto; margin-left: 62px; }
}

/* =====================================================================
   15. USUARIOS EN LÍNEA / ¿QUIÉN ESTUVO EN LÍNEA?
   ===================================================================== */
.users-widget {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.users-widget:hover { border-color: var(--border-hover); }
.users-widget-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border-color); }
.users-widget-header h3 { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.users-widget-header h3 i { color: var(--accent); }
.users-widget-count {
    margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-2);
    background: rgba(34,211,238,0.12); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.users-widget-body { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.users-widget-empty { padding: 6px 4px 10px; text-align: center; width: 100%; color: var(--text-muted); font-size: 12.5px; }

.user-chip {
    display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    border-radius: 999px; text-decoration: none; transition: var(--transition);
}
.user-chip:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.user-chip-avatar { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-chip-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.user-chip.is-offline { opacity: 0.72; }
.user-chip.is-offline .user-chip-name { color: var(--text-secondary); font-weight: 500; }
.user-chip-time { font-size: 10.5px; color: var(--text-muted); }

/* =====================================================================
   16. HOME LAYOUT — dos columnas (contenido + sidebar de Estados)
   ===================================================================== */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.home-side { position: sticky; top: 108px; }
@media (max-width: 1080px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-side { position: static; }
}

.chatbox-widget.compact .chatbox-messages { height: 170px; padding: 10px 14px; }
.chatbox-widget.compact .chatbox-header { padding: 10px 16px; }
.chatbox-widget.compact .chatbox-form { padding: 10px 14px; }

.chatbox-widget, .estados-widget {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.chatbox-widget:hover, .estados-widget:hover { border-color: var(--border-hover); }
.chatbox-header, .estados-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.chatbox-header h3, .estados-header h3 { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.chatbox-header h3 i, .estados-header h3 i { color: var(--accent); }
.chatbox-live-dot, .estados-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: aurora-pulse 1.8s ease-in-out infinite; display: inline-block; }

.chatbox-form input[type="text"] { border-radius: 999px; }
.chatbox-form input[type="text"]:focus { box-shadow: 0 0 0 3px var(--accent-glow); }

/* =====================================================================
   17. ESTADOS — sidebar tipo "publicaciones + respuestas"
   ===================================================================== */
.estados-widget { display: flex; flex-direction: column; max-height: calc(100vh - 130px); }
.estados-composer { padding: 14px 18px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.estados-composer-row { display: flex; gap: 10px; align-items: flex-start; }
.estados-avatar, .reply-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: #fff;
    box-shadow: 0 0 0 2px rgba(139,92,246,0.3);
    object-fit: cover;
}
.estados-composer textarea {
    width: 100%; min-height: 44px; max-height: 120px; resize: none;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: inherit; font-size: 13.5px; padding: 10px 12px; transition: var(--transition);
}
.estados-composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.estados-composer-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.estados-composer-actions .btn { padding: 7px 18px; font-size: 12.5px; border-radius: 999px; }
.estados-login-hint { padding: 14px 18px; text-align: center; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.estados-login-hint a { color: var(--accent); font-weight: 600; }

.estados-feed { overflow-y: auto; flex: 1; padding: 6px 0; }
.estado-item { padding: 14px 18px; border-bottom: 1px solid var(--border-color); animation: chatbox-fade-in 0.25s ease; transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease; max-height: 400px; overflow: hidden; }
@keyframes chatbox-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.estado-item.estado-item-leaving { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.estado-item:last-child { border-bottom: none; }
.estado-head { display: flex; gap: 10px; }
.estado-body { flex: 1; min-width: 0; }
.estado-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.estado-user { font-size: 13px; font-weight: 700; }
.estado-time { font-size: 11px; color: var(--text-muted); }
.estado-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; word-break: break-word; }

.estado-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.estado-action-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 5px; padding: 0; transition: var(--transition); }
.estado-action-btn:hover { color: var(--accent); }
.estado-action-btn.danger:hover { color: var(--danger); }

.estado-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }
.estado-reply { display: flex; gap: 8px; }
.reply-avatar { width: 26px; height: 26px; font-size: 11px; }
.estado-reply-body { flex: 1; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); padding: 6px 10px; }
.estado-reply-meta { display: flex; gap: 6px; align-items: baseline; }
.estado-reply-user { font-size: 12px; font-weight: 700; }
.estado-reply-time { font-size: 10px; color: var(--text-muted); }
.estado-reply-text { font-size: 12.5px; color: var(--text-secondary); word-break: break-word; }

.estado-reply-form { display: flex; gap: 8px; margin-top: 10px; }
.estado-reply-form input { flex: 1; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 999px; padding: 7px 14px; color: var(--text-primary); font-size: 12.5px; font-family: inherit; }
.estado-reply-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.estado-reply-form button { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--gradient-1); color: #fff; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.estados-empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 30px 16px; }

/* =====================================================================
   18. STAFF — agrupación de miembros por rol
   ===================================================================== */
.staff-role-group { margin-bottom: 34px; }
.staff-role-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--border-color); }
.staff-role-count { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; text-transform: none; }

/* =====================================================================
   19. PÁGINA DE BANEADOS
   ===================================================================== */
.bans-table-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.bans-table { width: 100%; border-collapse: collapse; }
.bans-table thead th { background: var(--bg-card-hover); color: var(--accent); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.bans-table tbody td { padding: 14px 18px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.bans-table tbody tr:last-child td { border-bottom: none; }
.bans-table tbody tr { transition: background 0.15s ease; }
.bans-table tbody tr:hover td { background: var(--bg-card-hover); }
.bans-table .ban-player { color: var(--text-primary); font-weight: 600; }
.bans-table .ban-reason { color: var(--text-primary); }
.ban-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.ban-status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ban-status-perm { color: var(--danger); background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.35); }
.ban-status-temp { color: var(--warning); background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.35); }
.ban-status-expired { color: var(--text-muted); background: rgba(108,108,133,0.12); border: 1px solid var(--border-color); }
.bans-server-tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--bg-card-hover); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 12.5px; }
@media (max-width: 768px) { .bans-table-wrap { overflow-x: auto; } .bans-table { min-width: 720px; } }

/* -------------------- 20. RESPONSIVE -------------------- */
@media (max-width: 768px) {
    body::before { animation: none; }
}
