/* ============================================
   VARIABLES DE COLOR Y TIPOGRAFÍA
   ============================================ */
:root {
    /* Paleta Principal - Modo Oscuro Premium */
    --bg-primary: rgb(14, 1, 13);
    --bg-secondary: rgba(25, 0, 40, 0.8);
    --bg-card: rgba(30, 10, 60, 0.6);
    
    /* Colores de Acento */
    --accent-primary: #7c3aed; 
    --accent-secondary: #ec4899; /* Rosa neón para detalles sutiles */
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    
    /* Colores de Estado */
    --mod-color: rgba(244, 63, 94, 0.2);
    --util-color: rgba(59, 130, 246, 0.2);
    --interact-color: rgba(236, 72, 153, 0.2);
    --nsfw-color: rgba(248, 113, 113, 0.2);
    --config-color: rgba(99, 102, 241, 0.2);
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0; /* Un poco más claro que el gris original */
    --text-muted: #8b8b8b;
    
    /* Bordes y Sombras */
    --border-color: rgba(124, 58, 237, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Dashboard / Panel */
    --sidebar-width: 260px;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --bg-glass: rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION (ENCABEZADO - CENTRADO)
   ============================================ */
.hero-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0f0518 100%); /* Degradado vertical sutil */
    padding: 120px 20px; /* Más alto para impacto */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; /* Cambiado de space-between a center */
}

/* ============================================
   CONTENEDOR CENTRALIZADO
   ============================================ */
.hero-content-wrapper {
    display: flex;
    justify-content: center; /* Cambiado de space-between a center */
    align-items: center; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor en la pantalla */
}

/* Efecto de fondo animado (Glow orbs) */
.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.25), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ============================================
   NUEVO: MARCA + STATUS PILL (HERO)
   ============================================ */
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Mini stats debajo del subtítulo */
.hero-mini-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.hero-mini-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-mini-stats i {
    color: var(--accent-secondary);
    font-size: 1rem;
}

/* Botón "Ir al panel" dentro del user-badge del landing */
.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Contenedor que agrupa título y info para centrar el bloque izquierdo */
.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor en la pantalla */
}

/* Lado izquierdo (Título) */
.hero-left {
    flex: 1; 
    text-align: center; /* Mantiene el título centrado visualmente */
    max-width: 60%; /* Limita un poco el ancho para evitar que ocupe todo si hay espacio */
}


/* TÍTULO CON GRADIENTE DE TEXTO (MEJORADO) */
.hero-title {
    font-size: 4.5rem; /* Más grande */
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Texto con gradiente */
    filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.3));
}

/* Subtítulo del título */
.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -10px;
    letter-spacing: 1px;
}

/* Subtítulo principal */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto; /* Asegura centrado perfecto */
}

/* BOTÓN DE INICIAR SESIÓN (NUEVO - ALTO CONTRASTE) */
.hero-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px; /* Más redondeado */
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Borde superior brillante */
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Icono de flecha animado */
.btn-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.hero-login-btn:hover .btn-icon {
    transform: translateX(5px); /* La flecha se mueve al pasar el mouse */
}

/* Hover - Efecto Elevado y Brillo */
.hero-login-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(99, 102, 241, 0.2); /* Glow exterior sutil */
    background: linear-gradient(135deg, #7c7fff 0%, #a78bfa 50%, #c4b5fd 100%);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Active - Presionado */
.hero-login-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(124, 58, 237, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Estado de foco para accesibilidad */
.hero-login-btn:focus {
    outline: none;
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.8),
        inset 0 0 0 2px #ffffff,
        0 0 0 6px rgba(124, 58, 237, 0.6);
}

/* Efecto de brillo animado */
@keyframes buttonGlow {
    0% { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 8px 30px rgba(124, 58, 237, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
}

.hero-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px; 
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Borde superior brillante */
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ============================================
   BADGE DE USUARIO LOGUEADO (DERECHA)
   ============================================ */
.user-badge-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 10px 24px; 
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out forwards;
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   BOTÓN DE CERRAR SESIÓN (ACTUALIZADO)
   ============================================ */
.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding-left: 12px; /* Espacio entre nombre y botón */
    transition: all 0.2s ease;
    position: relative;
}

/* Icono de salida (emoji) */
.logout-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.5));
}

/* Hover - Efecto visual */
.logout-link:hover {
    color: #ffffff;
    background: rgba(236, 72, 153, 0.1); /* Fondo sutil al pasar el mouse */
    padding-left: 16px; /* Pequeño movimiento hacia la derecha */
}

.logout-link:hover .logout-icon {
    transform: scale(1.1); /* El emoji crece ligeramente */
}

/* Estado de foco para accesibilidad */
.logout-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.4);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   SECCIÓN DE INFORMACIÓN
   ============================================ */
.info-section {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TARJETAS DE ESTADO
   ============================================ */
.status-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.status-icon {
    font-size: 2.5rem;
}

.status-dev {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.status-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.status-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   GRID DE COMANDOS
   ============================================ */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.command-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.6);
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

/* Iconos de las tarjetas */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.command-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.command-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Códigos de comandos */
code {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a78bfa;
    margin: 2px;
}

/* Badges especiales */
.nsfw-badge, .config-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-top: 10px;
}

.nsfw-badge {
    background: var(--nsfw-color);
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.config-badge {
    background: var(--config-color);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

/* ============================================
   FOOTER FINAL (ACTUALIZADO)
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ESTILOS PARA LA LISTA DE SERVIDORES
   ============================================ */

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.server-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.server-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.server-icon.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.server-info h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.server-members {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.admin-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}



/* ============================================
   ANIMACIONES DE ENTRADA (MEJORADO)
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación escalonada a los elementos del hero */
.hero-title { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.2s; }
.title-sub   { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.4s; }
.hero-subtitle { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.6s; }
.hero-login-btn { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; animation-delay: 0.8s; }

/* Retrasos para animación escalonada */
.content-container > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.commands-grid > div:nth-child(1) { animation-delay: 0.1s; }
.commands-grid > div:nth-child(2) { animation-delay: 0.2s; }
.commands-grid > div:nth-child(3) { animation-delay: 0.3s; }
.commands-grid > div:nth-child(4) { animation-delay: 0.4s; }
.commands-grid > div:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .content-container {
        padding: 20px 15px;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
    }

    /* En móvil, el header se adapta verticalmente */
    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .hero-left {
        text-align: center;
    }

    .user-badge-right {
        margin-top: 20px; /* Espacio entre título y usuario en móvil */
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .command-card {
        padding: 25px;
    }
}

/* ============================================
   EFECTO GLASSMORPHISM (Opcional)
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   PANEL / DASHBOARD (nuevo layout con sidebar)
   ============================================ */
.dashboard-body {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: rgba(15, 5, 24, 0.9);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.sidebar .brand-text h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.sidebar .brand-text span { color: var(--text-muted); font-size: 0.8rem; }

.nav-menu { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item i { font-size: 1.1rem; }

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
}

/* --- MAIN CONTENT --- */
.panel-main {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    max-width: 100%;
}

.panel-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-header-bar h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-user {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 8px 10px 8px 16px;
    border-radius: 50px;
}

.panel-user .user-name { font-weight: 600; font-size: 0.95rem; }
.panel-user .user-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent-primary); }

.panel-user .logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.12);
    color: var(--accent-secondary);
    padding: 0;
    text-decoration: none;
}
.panel-user .logout-link:hover { background: rgba(236, 72, 153, 0.25); color: #fff; }

/* --- STATS BAR --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.stat-card .stat-icon.ok { color: var(--success-color); background: rgba(52, 211, 153, 0.15); }

.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* --- BOT INFO CARD --- */
.bot-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 18px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.bot-info-card h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text-primary); }
.bot-info-card > p { color: var(--text-secondary); margin-bottom: 1.25rem; }

.bot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bot-info-grid .info-block {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.bot-info-grid .info-block strong { color: var(--accent-secondary); display: block; margin-bottom: 4px; }
.bot-info-grid .info-block p { font-size: 0.85rem; color: var(--text-muted); }

/* --- PANEL COMMANDS SECTION --- */
.panel-commands {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.panel-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.panel-command-group { margin-bottom: 1.4rem; }
.panel-command-group:last-child { margin-bottom: 0; }

.panel-group-title {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-command-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.panel-command-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
}

.panel-command-item code {
    margin: 0;
}

/* --- FEATURES GRID (dentro del panel) --- */
.panel-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.panel-feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.panel-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.panel-feature-card .feature-icon { font-size: 1.8rem; margin-bottom: 10px; color: var(--accent-primary); }
.panel-feature-card .feature-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; display: block; color: var(--text-primary); }
.panel-feature-card .feature-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* --- PLACEHOLDER SECTIONS (Perfil / Configs / Servidores) --- */
.panel-placeholder {
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.panel-placeholder i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; display: block; }
.panel-placeholder h3 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.1rem; }

/* --- PANEL FOOTER --- */
.panel-footer {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
}

.panel-footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.panel-footer .contact-link { color: var(--accent-secondary); text-decoration: none; font-weight: 600; }
.panel-footer .contact-link:hover { text-decoration: underline; }

/* --- Secciones ocultables (SPA feel) --- */
.panel-view { display: none; }
.panel-view.active { display: block; animation: fadeInUp 0.4s ease-out forwards; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .dashboard-body { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.25rem 1.5rem;
    }
    .nav-menu { flex-direction: row; flex-wrap: wrap; }
    .nav-item { padding: 10px 14px; font-size: 0.85rem; }
    .panel-main { padding: 1.5rem; }
}
