/* =================================================================== */
/*  ARCHIVO: public/css/modals.css                                     */
/*  RESPONSABILIDAD: Estilos unificados para todos los modales.        */
/* =================================================================== */

/* --- 1. OVERLAY BASE (El fondo oscuro) --- */
.modal-overlay, 
.minimalist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* Z-INDEX NUCLEAR: Debe ganar a todo (Header: 1000, Nav: 1001) */
    z-index: 20000 !important; 
}

/* Clase para mostrar el modal */
.modal-overlay.show, 
.minimalist-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- 2. CONTENEDOR DEL MODAL (La tarjeta) --- */
.modal-content, 
.minimalist-content {
    background: #111; /* Fondo casi negro */
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: #fff;
}

/* --- 3. HEADER DEL MODAL --- */
.minimalist-header,
.social-hub-header {
    padding: 15px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* No encoger */
}

.minimalist-header h3,
.social-hub-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
}
.modal-close-btn:hover { color: #fff; }

/* --- 4. CUERPO DEL MODAL --- */
.minimalist-body,
.social-hub-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* Scrollbar bonita */
.minimalist-body::-webkit-scrollbar { width: 5px; }
.minimalist-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* --- 5. SISTEMA DE PESTAÑAS (Tabs) --- */
.tab-buttons,
.social-hub-tabs {
    display: flex;
    background: #0a0a0a;
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.tab-btn {
    background: #222;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover { background: #333; color: #fff; }

.tab-btn.active {
    background: #FFD700; /* Amarillo Makumoto */
    color: #000;
    border-color: #FFD700;
    font-weight: 700;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    padding: 15px;
    animation: fadeIn 0.2s ease;
}
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- 6. ESTILOS ESPECÍFICOS (Listas, Notificaciones) --- */
.notification-list, .user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item, .user-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: rgba(255,255,255,0.03); }

.notification-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.type-applaud { background: rgba(255, 215, 0, 0.15); color: #FFD700; }
.type-reply { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.type-boo { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.notification-content { flex: 1; font-size: 0.9rem; line-height: 1.4; }
.notification-text strong { color: #fff; }
.notification-timestamp { display: block; font-size: 0.75rem; color: #666; margin-top: 4px; }

/* Avatar en listas */
.user-list-item .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-size: cover;
    border: 1px solid #333;
}

/* --- 7. ESTADOS VACÍOS Y SPINNERS --- */
.empty-state-card {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.empty-state-card i { font-size: 2.5rem; margin-bottom: 15px; color: #333; }

.spinner-container {
    display: flex; justify-content: center; align-items: center;
    padding: 40px;
}
.spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 8. FIX PARA TIKTOK FEED (Supernova) --- */
/* Esta clase asegura que los modales específicos de JS ganen a los videos */
.supernova-modal {
    z-index: 2147483647 !important;
}
/* =================================================================== */
/*      ESTILOS DE LYRA & ACTIVATE HUB (Restaurados)                   */
/* =================================================================== */

/* Contenedor del Chat */
.chat-style {
    background-color: #0f0c15; /* Fondo oscuro profundo */
    background-image: radial-gradient(circle at 50% 20%, #1f1b2e 0%, #0f0c15 70%);
    display: flex;
    flex-direction: column;
    height: 85vh;
    max-height: 800px;
    overflow: hidden;
    border: 1px solid #333;
}

/* --- PANTALLA DE PRESENTACIÓN (Lyra Grande) --- */
.lyra-presentation-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 12, 21, 0.98);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: opacity 0.5s ease;
}

.lyra-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    /* AQUÍ VA LA IMAGEN QUE PEDISTE */
    background-image: url('/images/lyra.png'); 
    box-shadow: 0 0 30px rgba(171, 113, 237, 0.4); /* Brillo morado */
    border: 3px solid #ab71ed;
    margin-bottom: 20px;
    animation: float-avatar 3s ease-in-out infinite;
}

@keyframes float-avatar {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 30px rgba(171, 113, 237, 0.4); }
    50% { transform: translateY(-10px); box-shadow: 0 0 50px rgba(171, 113, 237, 0.6); }
}

.lyra-presentation-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif; /* Fuente épica si la tienes, sino fallback */
}

.lyra-presentation-desc {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 30px;
}

/* --- HUD DE GAMIFICACIÓN (Barra Superior) --- */
.gamification-hud {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 15px;
}

.hud-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-size: cover;
    border: 2px solid #FFD700;
}

.hud-progress { flex: 1; }

.hud-level-info {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: #FFD700; font-weight: 700;
    margin-bottom: 5px;
}

.hud-xp-bar-container {
    width: 100%; height: 8px;
    background: #333; border-radius: 10px; overflow: hidden;
}

.hud-xp-bar-progress {
    height: 100%; background: linear-gradient(90deg, #f1c40f, #e67e22);
    width: 0%; transition: width 0.5s ease;
}

/* --- CUERPO DEL CHAT --- */
.activate-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    display: flex; gap: 15px;
    animation: fadeIn 0.4s ease;
    max-width: 90%;
}

.chat-bubble .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-image: url('/images/lyra.png'); /* Lyra en el chat */
    background-size: cover;
    flex-shrink: 0;
    border: 1px solid #ab71ed;
}

.chat-bubble p {
    background: #2c2541;
    color: #fff;
    padding: 15px;
    border-radius: 0 15px 15px 15px;
    line-height: 1.5;
    border: 1px solid #3c305a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- BOTONES DE MISIÓN (Opciones) --- */
.activate-mission-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: 55px; /* Alineado con el texto del chat */
    animation: fadeIn 0.6s ease;
}

.mission-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.mission-button:hover {
    background: rgba(171, 113, 237, 0.1);
    border-color: #ab71ed;
    transform: translateX(5px);
}

.mission-button .hub-card-icon {
    width: 35px; height: 35px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

/* Colores de iconos */
.mission-button .journal i { color: #2ecc71; }
.mission-button .challenges i { color: #f1c40f; }
.mission-button .fast i { color: #3498db; }
.mission-button .diet i { color: #e74c3c; }

.mission-button.premium {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}
/* =================================================================== */
/*      ESTILOS DEL NEXO (GANA) - Visuales Avanzados                   */
/* =================================================================== */

/* --- Contenedor Principal del Nexo --- */
.nexo-theme .modal-content {
    background: #0b0b10; /* Negro espacial */
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.1);
    min-height: 500px;
}

/* --- Vistas (Transiciones) --- */
.nexo-view {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100%;
    animation: fadeInView 0.4s ease-out;
}
.nexo-view.active { display: flex; }

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LA ESFERA DE ENERGÍA (Animación Central) --- */
.nexo-sphere-container {
    position: relative;
    width: 120px; height: 120px;
    margin: 20px auto 30px;
}

.nexo-sphere {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a90e2, #000);
    box-shadow: 0 0 30px #4a90e2, inset 0 0 20px rgba(255,255,255,0.2);
    position: relative;
    animation: sphere-pulse 4s infinite ease-in-out;
}

.nexo-stream {
    position: absolute;
    top: 50%; left: 50%;
    width: 140%; height: 140%;
    border-radius: 50%;
    border: 2px solid transparent;
    transform: translate(-50%, -50%);
    animation: orbit 6s infinite linear;
}

.stream-creator { border-top-color: #9b59b6; animation-duration: 4s; }
.stream-brand { border-bottom-color: #2ecc71; animation-duration: 7s; width: 160%; height: 160%; }

@keyframes sphere-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px #4a90e2; }
    50% { transform: scale(1.05); box-shadow: 0 0 50px #4a90e2; }
}
@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Títulos y Textos --- */
.nexo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.nexo-subtitle { color: #888; text-align: center; font-size: 0.9rem; margin-bottom: 30px; }

/* --- Botones de Selección de Camino --- */
.nexo-path-selection {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%;
}

.nexo-path-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    padding: 20px 10px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

.nexo-path-btn:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }
.nexo-path-btn i { font-size: 2rem; margin-bottom: 5px; }
.nexo-path-btn span { font-weight: 700; font-size: 0.9rem; }
.nexo-path-btn small { color: #666; font-size: 0.75rem; }

.creator-path:hover { border-color: #9b59b6; box-shadow: 0 0 15px rgba(155, 89, 182, 0.3); }
.creator-path i { color: #9b59b6; }

.brand-path:hover { border-color: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }
.brand-path i { color: #2ecc71; }

/* --- Dashboard del Creador --- */
.creator-dashboard {
    display: flex; justify-content: space-between; width: 100%;
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px;
    margin-bottom: 25px; border: 1px solid #333;
}
.creator-stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.creator-stat span { font-size: 0.75rem; color: #aaa; text-transform: uppercase; }
.creator-stat strong { font-size: 1.2rem; color: #fff; }
.creator-stat small { font-size: 0.8rem; color: #2ecc71; font-weight: 400; }

/* --- Tarjetas de Misión --- */
.creator-missions { width: 100%; }
.creator-missions h4 { color: #FFD700; margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.mission-card-nexo {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #4a90e2;
    padding: 20px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}
.mission-card-nexo h5 { color: #fff; margin: 0 0 10px 0; font-size: 1.1rem; }
.mission-card-nexo p { color: #ccc; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.4; }

.mission-reward {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71; padding: 8px; border-radius: 6px;
    font-size: 0.85rem; margin-bottom: 15px; text-align: center;
    border: 1px dashed #2ecc71;
}

/* --- Input de Enlace (Oculto al inicio) --- */
.invite-link-container {
    display: none; /* Se activa con JS */
    gap: 10px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}
.invite-link-container input {
    flex: 1; background: #000; border: 1px solid #444; color: #fff;
    padding: 10px; border-radius: 8px; text-align: center; font-family: monospace;
}

.missions-locked-text {
    text-align: center; color: #555; font-style: italic; font-size: 0.8rem; margin-top: 20px;
}

/* --- Botón Volver --- */
.nexo-back-btn {
    align-self: flex-start; background: none; border: none; color: #666;
    cursor: pointer; margin-bottom: 10px; display: flex; align-items: center; gap: 5px;
}
.nexo-back-btn:hover { color: #fff; }
/* =================================================================== */
/*      ESTILOS ESPECTACULARES (PROFILE, EXPEDIENTE, PLAN)             */
/* =================================================================== */

/* --- 1. PROFILE DASHBOARD (Mi Viaje) --- */
.hj-dashboard-wrapper {
    padding: 20px;
    background: #111;
    color: #fff;
}

/* Header Stats */
.hj-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
}
.stat-box { text-align: center; display: flex; flex-direction: column; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.7rem; color: #888; text-transform: uppercase; }
.center-rank .rank-icon { color: #FFD700; font-size: 1.5rem; margin-bottom: 5px; }
.center-rank .rank-name { font-weight: 700; color: #FFD700; font-size: 0.9rem; }

/* XP Bar */
.hj-xp-container { margin-bottom: 25px; }
.hj-xp-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: #aaa; margin-bottom: 5px; }
.hj-xp-bar-bg { width: 100%; height: 10px; background: #333; border-radius: 5px; overflow: hidden; }
.hj-xp-bar-fill { height: 100%; background: linear-gradient(90deg, #f1c40f, #e67e22); border-radius: 5px; transition: width 1s ease; }

/* Pillars Grid */
.hj-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.hj-pillar-card {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #1e1e1e, #151515);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.hj-pillar-card:hover {
    transform: translateX(5px);
    border-color: #555;
    background: #252525;
}
.pillar-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}
.pillar-diario .pillar-icon { color: #2ecc71; }
.pillar-interacciones .pillar-icon { color: #e74c3c; }
.pillar-galeria .pillar-icon { color: #3498db; }
.pillar-ajustes .pillar-icon { color: #95a5a6; }

.pillar-text h3 { margin: 0; font-size: 1rem; color: #fff; }
.pillar-text p { margin: 0; font-size: 0.8rem; color: #888; }
.hj-pillar-card .arrow { margin-left: auto; color: #444; }

.hj-logout-btn {
    width: 100%; margin-top: 25px; padding: 15px;
    background: transparent; border: 1px solid #e74c3c;
    color: #e74c3c; border-radius: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.hj-logout-btn:hover { background: #e74c3c; color: #fff; }


/* --- 2. EXPEDIENTE (Historial Visual) --- */
.expediente-wrapper { padding: 20px; }
.expediente-card-section {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #333;
}
.section-header {
    padding: 12px 15px;
    background: #222;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid #333;
}
.section-header h4 { margin: 0; font-size: 0.95rem; color: #ddd; }
.section-header.color-accent i { color: #3498db; }
.section-header.color-success i { color: #2ecc71; }
.section-header.color-warning i { color: #f1c40f; }

.expediente-row {
    display: flex; align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
}
.expediente-row:last-child { border-bottom: none; }
.row-icon {
    width: 35px; height: 35px;
    background: #111; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; color: #666;
}
.row-info { flex: 1; display: flex; flex-direction: column; }
.row-info strong { font-size: 0.9rem; color: #eee; }
.row-info span { font-size: 0.75rem; color: #777; }
.row-status { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

.status-success .row-icon { color: #2ecc71; }
.status-fail .row-icon { color: #e74c3c; }


/* --- 3. MY PLAN (Tarjetas Premium) --- */
.plan-modal-title { text-align: center; margin-bottom: 20px; color: #FFD700; }
.plan-cards-container { display: flex; flex-direction: column; gap: 15px; }

.premium-plan-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.premium-plan-card.elite { border-color: #3498db; }
.premium-plan-card.advanced { border-color: #FFD700; background: linear-gradient(145deg, #221f00, #1a1a1a); }

.card-badge {
    position: absolute; top: 0; right: 0;
    background: #3498db; color: #fff;
    font-size: 0.6rem; font-weight: 700;
    padding: 3px 10px; border-bottom-left-radius: 8px;
}
.card-badge.gold { background: #FFD700; color: #000; }

.card-header { display: flex; align-items: center; margin-bottom: 15px; }
.card-header i { font-size: 1.5rem; margin-right: 10px; }
.elite .card-header i { color: #3498db; }
.advanced .card-header i { color: #FFD700; }
.card-header h4 { margin: 0; font-size: 1.2rem; flex: 1; }
.price { font-size: 1.1rem; font-weight: 700; }
.price small { font-size: 0.7rem; font-weight: 400; color: #888; }

.card-features { list-style: none; padding: 0; margin: 0 0 15px 0; }
.card-features li { font-size: 0.85rem; margin-bottom: 5px; color: #ccc; display: flex; gap: 8px; }
.card-features i { color: #2ecc71; }

.btn-activate {
    width: 100%; padding: 10px; border: none; border-radius: 8px;
    font-weight: 700; cursor: pointer;
}
.btn-activate.elite { background: #3498db; color: #fff; }
.btn-activate.advanced { background: #FFD700; color: #000; box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }

.btn-text-only { background: none; border: none; color: #888; width: 100%; padding: 10px; cursor: pointer; margin-top: 10px; }
.btn-text-only:hover { color: #fff; }
/* =================================================================== */
/*      BOA v19.0 - TECH INTERFACE THEME (La Bóveda)                   */
/* =================================================================== */

/* --- Variables Locales --- */
.boa-tech-theme {
    --boa-primary: #00ff9d; /* Verde Neón */
    --boa-bg: #050505;      /* Negro Profundo */
    --boa-panel: #0a0a0a;   /* Panel Gris Oscuro */
    --boa-border: #1a1a1a;
    --boa-glow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* --- Contenedor Principal --- */
.boa-tech-theme .modal-content {
    background-color: var(--boa-bg);
    border: 1px solid var(--boa-primary);
    box-shadow: var(--boa-glow), inset 0 0 20px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: 'Teko', 'Poppins', sans-serif; /* Fuente Tech si disponible */
    border-radius: 4px; /* Bordes más rectos para look tech */
    max-width: 550px;
    height: 90vh;
}

/* Bordes decorativos superior e inferior */
.boa-tech-border {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--boa-primary), transparent);
    z-index: 10;
}
.boa-tech-border.top { top: 0; }
.boa-tech-border.bottom { bottom: 0; }

/* --- Header --- */
.boa-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid var(--boa-border);
    background: rgba(0, 255, 157, 0.05);
}

.boa-brand { display: flex; align-items: center; gap: 15px; }
.boa-logo-spin { 
    width: 40px; 
    height: 40px; 
    
    /* INCRUSTAR IMAGEN */
    background-image: url('/images/boa.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Mantener animación de giro */
    animation: spin-slow 10s linear infinite; 
    filter: drop-shadow(0 0 5px var(--boa-primary)); 
    
    /* Asegurar que se vea la imagen */
    display: inline-block;
}
@keyframes spin-slow { 100% { transform: rotate(360deg); } }

.boa-title h2 { margin: 0; color: var(--boa-primary); letter-spacing: 2px; font-size: 1.8rem; line-height: 1; text-shadow: 0 0 5px var(--boa-primary); }
.boa-title small { font-size: 0.7rem; color: #555; letter-spacing: 3px; }

/* --- Tabs de Navegación --- */
.boa-tabs-container {
    display: flex; background: #000; border-bottom: 1px solid var(--boa-border);
}
.boa-tab-btn {
    flex: 1; background: transparent; border: none; color: #555;
    padding: 15px 0; font-size: 0.9rem; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.3s;
    font-weight: 700; letter-spacing: 1px;
}
.boa-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.boa-tab-btn.active {
    color: var(--boa-primary);
    border-bottom-color: var(--boa-primary);
    background: linear-gradient(to top, rgba(0, 255, 157, 0.1), transparent);
    text-shadow: 0 0 8px var(--boa-primary);
}

/* --- Cuerpo y Scroll --- */
.boa-body { flex: 1; overflow-y: auto; padding: 20px; position: relative; }
.boa-body.custom-scroll::-webkit-scrollbar { width: 4px; }
.boa-body.custom-scroll::-webkit-scrollbar-thumb { background: var(--boa-primary); }

/* --- Grid Layout --- */
.boa-grid-layout {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}

/* --- Tarjetas Tecnológicas (Módulos) --- */
.boa-tech-card {
    display: flex; align-items: center;
    background: var(--boa-panel);
    border: 1px solid var(--boa-border);
    padding: 15px; position: relative;
    cursor: pointer; overflow: hidden;
    transition: all 0.2s;
}

/* Línea de escaneo animada */
.card-scan-line {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transform: skewX(-20deg); transition: left 0.5s;
}
.boa-tech-card:hover .card-scan-line { left: 150%; transition: left 0.5s; }

.boa-tech-card:hover {
    border-color: var(--boa-primary);
    box-shadow: inset 0 0 15px rgba(0, 255, 157, 0.1);
    transform: translateX(5px);
}

.tech-icon {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #888;
    border: 1px solid #333; margin-right: 15px;
    background: #000;
}
.boa-tech-card:hover .tech-icon { color: var(--boa-primary); border-color: var(--boa-primary); }

.tech-info { flex: 1; }
.tech-info h4 { margin: 0; color: #fff; font-size: 1.1rem; letter-spacing: 1px; }
.tech-info p { margin: 0; font-size: 0.8rem; color: #666; }

.tech-arrow { color: #333; font-size: 1.2rem; transition: color 0.3s; }
.boa-tech-card:hover .tech-arrow { color: var(--boa-primary); }

/* Variantes de Color */
.gold-glow { --boa-primary: #FFD700; }
.gold-glow .tech-icon { color: #FFD700; border-color: #FFD700; }
.purple-glow { --boa-primary: #ab71ed; }
.purple-glow .tech-icon { color: #ab71ed; border-color: #ab71ed; }

/* --- Estados Vacíos --- */
.boa-empty-state {
    text-align: center; padding: 50px 20px; color: #444;
    border: 1px dashed #333;
}
.boa-empty-state i { font-size: 3rem; margin-bottom: 15px; }

/* --- Sección de Pago (Terminal) --- */
.boa-payment-terminal {
    background: #000; border: 1px solid var(--boa-primary);
    padding: 20px; text-align: center;
}
.terminal-screen { margin-bottom: 20px; }
.terminal-price { 
    font-size: 2.5rem; color: var(--boa-primary); 
    font-weight: 700; text-shadow: 0 0 10px var(--boa-primary);
    margin: 10px 0;
}

/* --- Separadores --- */
.boa-section-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.boa-section-header span { color: var(--boa-primary); font-size: 0.8rem; letter-spacing: 2px; }
.boa-section-header .line { flex: 1; height: 1px; background: #333; }
/* =================================================================== */
/*      ESTILO TWITTER / X (Hilos de Comentarios)                      */
/* =================================================================== */

/* Contenedor limpio */
.twitter-feed-container {
    display: flex;
    flex-direction: column;
    background: #000;
    min-height: 100%;
}

/* --- ITEM INDIVIDUAL (TWEET/COMENTARIO) --- */
.tweet-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
    position: relative;
    transition: background-color 0.2s;
}
.tweet-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Columna Izquierda (Avatar + Línea Hilo) */
.tweet-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.tweet-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #333;
    cursor: pointer;
}

/* Línea conectora (El hilo) */
.thread-line-connector {
    width: 2px;
    background-color: #333639;
    flex-grow: 1;
    margin-top: 5px;
    margin-bottom: 5px;
    min-height: 20px;
}

/* Columna Derecha (Contenido) */
.tweet-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Evita desbordes de texto */
}

/* Header (Nombre + Usuario + Tiempo) */
.tweet-header {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 2px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tweet-name {
    font-weight: 700;
    color: #e7e9ea;
    cursor: pointer;
}
.tweet-name:hover { text-decoration: underline; }

.tweet-username, .tweet-time {
    color: #71767b;
    font-weight: 400;
    font-size: 14px;
}

/* Texto del comentario */
.tweet-text {
    color: #e7e9ea;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap; /* Respeta saltos de línea */
    word-wrap: break-word;
}

/* --- BARRA DE ACCIONES (Abajo) --- */
.tweet-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    max-width: 80%; /* Estilo Twitter, no ocupa todo el ancho */
}

.tweet-action-btn {
    background: transparent;
    border: none;
    color: #71767b;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.tweet-action-btn i { font-size: 16px; }

/* Colores de interacción al pasar el mouse */
.tweet-action-btn.reply:hover { color: #1d9bf0; }
.tweet-action-btn.retweet:hover { color: #00ba7c; }
.tweet-action-btn.like:hover { color: #f91880; }
.tweet-action-btn.share:hover { color: #1d9bf0; }

/* --- POST PRINCIPAL (Destacado) --- */
.main-tweet-wrapper {
    padding: 15px 16px;
    border-bottom: 1px solid #2f3336;
}
.main-tweet-user { display: flex; gap: 12px; margin-bottom: 15px; }
.main-tweet-text { font-size: 18px; line-height: 1.4; color: #fff; margin-bottom: 15px; }
.main-tweet-meta { color: #71767b; font-size: 14px; border-bottom: 1px solid #2f3336; padding-bottom: 15px; margin-bottom: 15px; }
.main-tweet-stats { display: flex; gap: 20px; border-bottom: 1px solid #2f3336; padding-bottom: 15px; margin-bottom: 15px; color: #71767b; font-size: 14px; }
.main-tweet-stats strong { color: #fff; }
.main-tweet-actions { display: flex; justify-content: space-around; padding-bottom: 5px; }
.main-tweet-actions .tweet-action-btn i { font-size: 20px; }
/* =================================================================== */
/*      ESTILOS DE VENTAS DE USUARIO (STOREFRONT)                      */
/* =================================================================== */

.sales-theme-content {
    background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-top: 3px solid #FFD700; /* Borde dorado */
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.sales-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 85vh;
}

/* Header del Perfil Vendedor */
.sales-header-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sales-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.verified-badge {
    position: absolute; bottom: 0; right: 0;
    background: #3498db; color: #fff;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; border: 2px solid #1a1a1a;
}

.sales-info h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.sales-reputation { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-top: 5px; }
.sales-reputation .stars { color: #FFD700; letter-spacing: -2px; }
.sales-reputation .score { color: #fff; font-weight: 700; }
.sales-reputation .count { color: #777; font-size: 0.8rem; }

/* Producto Héroe */
.sales-hero-product {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s;
}
.sales-hero-product:hover { transform: translateY(-3px); border-color: #555; }

.product-badge {
    position: absolute; top: 10px; left: 10px;
    background: #FFD700; color: #000;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 800; z-index: 2;
}

.product-image-placeholder {
    height: 140px;
    background: linear-gradient(45deg, #2c3e50, #4ca1af);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: rgba(255,255,255,0.2);
}

.product-details { padding: 15px; }
.product-details h4 { margin: 0 0 5px 0; color: #fff; font-size: 1.1rem; }
.product-details p { margin: 0 0 15px 0; color: #aaa; font-size: 0.9rem; line-height: 1.4; }

.product-price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}
.product-price-row .price { font-size: 1.3rem; font-weight: 700; color: #fff; }

.btn-buy-now {
    background: #FFD700; color: #000; border: none;
    padding: 8px 16px; border-radius: 50px;
    font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
}
.btn-buy-now:hover { background: #fff; transform: scale(1.05); }

/* Reseñas */
.sales-reviews-section h4 { color: #888; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 15px; }
.reviews-list { display: flex; flex-direction: column; gap: 10px; }

.review-card {
    background: rgba(0,0,0,0.3);
    padding: 12px; border-radius: 8px;
    border-left: 3px solid #3498db;
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; }
.review-header strong { color: #fff; }
.review-stars { color: #FFD700; font-size: 0.7rem; }
.review-card p { margin: 0; color: #ccc; font-size: 0.85rem; font-style: italic; }

.sales-footer-note {
    text-align: center; margin-top: 25px; font-size: 0.75rem; color: #555;
}
/* =================================================================== */
/*      ESTILOS SHARE OVERLAY (v8.0)                                   */
/* =================================================================== */

.share-overlay-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 20000;
    display: flex; align-items: flex-end; /* Sale desde abajo en móvil */
    justify-content: center;
    visibility: hidden; opacity: 0; transition: all 0.3s;
}
.share-overlay-container.show { visibility: visible; opacity: 1; }

.share-overlay-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
}

.share-overlay-content {
    position: relative; z-index: 2;
    background: #1a1a1a;
    width: 100%; max-width: 500px;
    border-radius: 20px 20px 0 0; /* Bordes redondeados arriba */
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    border-top: 1px solid #333;
    animation: slideUp 0.3s ease-out;
}
@media (min-width: 500px) {
    .share-overlay-container { align-items: center; }
    .share-overlay-content { border-radius: 20px; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Header */
.share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.share-header h3 { margin: 0; color: #fff; font-size: 1.1rem; }

/* Tarjeta de Previsualización */
.share-preview-card {
    display: flex; gap: 12px;
    background: #252525;
    padding: 10px; border-radius: 12px;
    margin-bottom: 15px; border: 1px solid #333;
}
.share-media-thumb {
    width: 60px; height: 60px;
    border-radius: 8px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff; font-size: 1.2rem;
}
.share-preview-info { overflow: hidden; }
.share-preview-info h4 { margin: 0 0 4px 0; color: #fff; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-preview-info p { margin: 0; color: #aaa; font-size: 0.8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Input Comentario */
.share-comment-wrapper textarea {
    width: 100%; background: #000; border: 1px solid #333;
    color: #fff; padding: 10px; border-radius: 8px;
    font-family: inherit; font-size: 0.9rem; resize: none;
}

/* Grid de Iconos */
.share-overlay-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 15px; margin-top: 15px;
}
.share-overlay-btn {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.icon-box {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    background: #333; transition: transform 0.2s;
}
.share-overlay-btn:hover .icon-box { transform: scale(1.1); }
.share-overlay-btn span { color: #ccc; font-size: 0.75rem; }

/* Colores de Redes */
.icon-box.whatsapp { background: #25D366; }
.icon-box.facebook { background: #1877F2; }
.icon-box.x-twitter { background: #000; border: 1px solid #333; }
.icon-box.telegram { background: #0088cc; }
.icon-box.copy { background: #555; }
/* =================================================================== */
/*      ESTILOS DE REPORTE (SERIO / LEGAL)                             */
/* =================================================================== */

.report-reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.radio-item {
    background: #222;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #ddd;
    transition: all 0.2s;
}

.radio-item:hover {
    background: #333;
    border-color: #555;
}

.radio-item input[type="radio"] {
    accent-color: #e74c3c; /* Rojo de alerta */
}

/* Cuando se selecciona */
.radio-item:has(input:checked) {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #fff;
}
/* =================================================================== */
/*      SOCIAL HUB - TECH THEME (v10.0)                                */
/* =================================================================== */

/* Header */
.social-hub-content.creator-vault-theme {
    background: #0f0f13;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.1);
}

.social-hub-header {
    background: linear-gradient(to right, #1a1a20, #0f0f13);
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a30;
}
.header-title h2 { font-family: 'Teko', sans-serif; letter-spacing: 1px; font-size: 1.5rem; }

/* Navegación (Tabs) */
.social-hub-tabs {
    background: #0f0f13;
    padding: 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Ocultar scrollbar */
}
.social-hub-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: #1f1f25;
    border: 1px solid #333;
    color: #888;
    border-radius: 8px; /* Más cuadrado/tech */
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}

.tab-btn:hover { background: #2a2a30; color: #fff; }

.tab-btn.active {
    background: #2a2a30;
    color: #fff;
    border-color: #00d9ff; /* Azul Neón */
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}
.tab-btn.active i { color: #00d9ff; }

/* Pestaña Viral Especial */
.tab-btn.special-tab.active {
    border-color: #ff0055;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}
.tab-btn.special-tab.active i { color: #ff0055; }

/* Cuerpo */
.sh-content-area {
    padding: 0;
    min-height: 300px;
}

/* Loader Contextual */
.sh-loader-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 300px; color: #666; gap: 15px;
}
.sh-loader-state p { font-size: 0.9rem; animation: pulse 1.5s infinite; }

/* Lista de Notificaciones */
.notification-list { list-style: none; padding: 0; margin: 0; }

.notification-item {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #1f1f25;
    background: #0f0f13;
    transition: background 0.2s;
    cursor: pointer;
}
.notification-item:hover { background: #16161c; }

/* Iconos de Notificación */
.notif-icon-box {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #1f1f25;
    border: 1px solid #333;
}

.notif-icon-box.applaud { color: #FFD700; border-color: rgba(255, 215, 0, 0.3); background: rgba(255, 215, 0, 0.05); }
.notif-icon-box.boo { color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); background: rgba(231, 76, 60, 0.05); }
.notif-icon-box.reply { color: #3498db; border-color: rgba(52, 152, 219, 0.3); background: rgba(52, 152, 219, 0.05); }
.notif-icon-box.follow { color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); background: rgba(46, 204, 113, 0.05); }

.notif-content { flex: 1; font-size: 0.9rem; color: #ddd; line-height: 1.4; }
.notif-content strong { color: #fff; }
.notif-content .quote { color: #888; font-style: italic; display: block; margin-top: 4px; }
.notif-meta { display: block; font-size: 0.75rem; color: #555; margin-top: 6px; }

.notif-arrow { color: #333; align-self: center; }

/* Colores de texto */
.text-gold { color: #FFD700; }
.text-red { color: #e74c3c; }

/* Botón mini follow */
.btn-mini-follow {
    background: transparent; border: 1px solid #2ecc71; color: #2ecc71;
    padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    cursor: pointer;
}
.btn-mini-follow:hover { background: #2ecc71; color: #000; }
/* =================================================================== */
/*      PERFIL ESTILO TWITTER (X) - v5.0                               */
/* =================================================================== */

/* Contenedor del Perfil */
.profile-container {
    display: flex; flex-direction: column;
    background: #000; min-height: 100%;
    color: #fff; font-family: 'Poppins', sans-serif;
}

/* --- 1. PORTADA Y HEADER --- */
.profile-cover {
    height: 150px;
    background: linear-gradient(135deg, #333, #111);
    background-size: cover; background-position: center;
    position: relative;
}
/* Si el usuario tuviera portada personalizada, se inyectaría en el style inline */

.profile-header-content {
    padding: 15px;
    position: relative;
    display: flex; flex-direction: column;
}

.profile-avatar-wrapper {
    margin-top: -65px; /* Subir para superponer a la portada */
    margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: flex-end;
}

.profile-avatar-large {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid #000; /* Borde negro para separar de la portada */
    background-color: #222;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 700; color: #fff;
    position: relative;
    cursor: pointer; /* Editable */
}

/* Botón de cámara para editar avatar (solo visible para el dueño) */
.edit-avatar-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.profile-avatar-large:hover .edit-avatar-overlay { opacity: 1; }

/* Botón Editar / Seguir */
.profile-action-btn {
    border: 1px solid #536471;
    background: transparent;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}
.profile-action-btn.primary { background: #fff; color: #000; border: none; }
.profile-action-btn.following { border-color: #536471; color: #fff; }
.profile-action-btn.following:hover { border-color: #f4212e; color: #f4212e; content: "Dejar de seguir"; background: rgba(244, 33, 46, 0.1); }

/* Datos de Texto */
.profile-names h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.profile-names span { color: #71767b; font-size: 0.9rem; }

.profile-bio { margin-top: 10px; font-size: 0.95rem; line-height: 1.4; white-space: pre-wrap; }
.profile-bio-edit { width: 100%; background: #111; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; margin-top: 5px; }

.profile-meta { margin-top: 10px; display: flex; gap: 15px; color: #71767b; font-size: 0.9rem; }
.profile-meta i { margin-right: 5px; }

.profile-follow-stats { margin-top: 10px; display: flex; gap: 20px; font-size: 0.9rem; }
.profile-follow-stats strong { color: #fff; }
.profile-follow-stats span { color: #71767b; cursor: pointer; }
.profile-follow-stats span:hover { text-decoration: underline; }

/* --- 2. PESTAÑAS (TABS) --- */
.profile-nav-tabs {
    display: flex;
    border-bottom: 1px solid #2f3336;
    margin-top: 10px;
}
.profile-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: #71767b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}
.profile-tab:hover { background: rgba(255,255,255,0.03); }
.profile-tab.active { color: #fff; }
.profile-tab.active::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px;
    background: #1d9bf0; /* Azul Twitter */
    border-radius: 2px;
}

/* --- 3. LISTA DE USUARIOS (Seguidores) --- */
.user-row-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #2f3336;
    cursor: pointer;
}
.user-row-item:hover { background: rgba(255,255,255,0.03); }
.user-row-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background-size: cover; background-position: center;
    background-color: #333;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff;
}
.user-row-info { flex: 1; }
.user-row-name { font-weight: 700; display: block; font-size: 0.95rem; }
.user-row-handle { color: #71767b; font-size: 0.85rem; }
/* =================================================================== */
/*      FIX DEFINITIVO V2: LYRA CENTRADO PERFECTO (NUCLEAR)            */
/* =================================================================== */

/* 1. EL FONDO (OVERLAY) */
#activate-hub-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. LA TARJETA (CONTENIDO) */
#activate-hub-modal .modal-content {
    position: relative !important;
    width: 90% !important;
    max-width: 360px !important;
     height: auto !important;
    max-height: 70vh !important; 

    /* CAMBIO DE COLOR: AZUL PASTEL */
    background: #e3f2fd !important; 
    color: #000 !important; /* Texto negro forzado */
    
    border: 1px solid #90caf9 !important; /* Borde azul suave */
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
}

/* 3. PANTALLA DE PRESENTACIÓN (Contenedor Flex) */
.lyra-presentation-screen {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important;
    background: linear-gradient(135deg, #1a1525 0%, #0f0c15 100%) !important;
    z-index: 10 !important;
    
    /* CENTRADO FLEXBOX */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;  /* Centra horizontalmente */
    justify-content: center !important; /* Centra verticalmente */
    
    padding: 20px !important;
    box-sizing: border-box !important; /* Evita desbordes por padding */
    text-align: center !important;
}

/* 4. IMAGEN DE LYRA (Forzado al centro) */
.lyra-avatar-large {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    background-color: #333;
    background-image: url('/images/lyra.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border: 3px solid #ab71ed !important;
    box-shadow: 0 0 20px rgba(171, 113, 237, 0.6) !important;
    
    /* CENTRADO POR MARGENES (SEGURIDAD EXTRA) */
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    
    flex-shrink: 0 !important;
}

/* 5. TEXTOS (Forzado al centro) */
.lyra-presentation-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 auto 15px auto !important; /* Centrado horizontal */
    width: 100% !important;
    text-align: center !important;
}

.lyra-presentation-desc {
    font-size: 0.95rem !important;
    color: #ccc !important;
    line-height: 1.5 !important;
    max-width: 90% !important;
    margin: 0 auto 25px auto !important; /* Centrado horizontal */
    text-align: center !important;
}

/* 6. BOTÓN "VAMOS A EMPEZAR" (Forzado al centro) */
#start-chat-btn {
    background: linear-gradient(90deg, #ab71ed, #9b59b6) !important;
    color: white !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(171, 113, 237, 0.4) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    
    /* CENTRADO POR MARGENES */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 7. BOTÓN CERRAR (X) */
#activate-hub-modal .modal-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 100 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
}
/* =================================================================== */
/*      NUEVO MODAL GANA (USER EARN) - OPTIMISTA & VERDE               */
/* =================================================================== */

/* Contenedor Principal */
.modal-content.earn-theme {
    background: linear-gradient(180deg, #e0f7fa 0%, #ffffff 40%);
    border: none;
    color: #333;
    max-width: 400px;
    border-radius: 25px;
    overflow: hidden;
    padding: 0;
}

/* Cabecera Heroica */
.earn-header-hero {
    background: #00c853; /* Verde Dinero Vibrante */
    padding: 30px 20px 50px 20px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.3);
}

.earn-header-hero h2 { margin: 10px 0 5px 0; font-size: 1.5rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.earn-header-hero p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* Rostro Feliz + Animación */
.happy-face-container {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 15px auto;
}

.happy-face-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #fff;
    /* RUTA DE LA IMAGEN: Sube una foto de alguien feliz con dinero a /images/earn_happy.png */
    background-image: url('/images/earn_happy.png'); 
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2; position: relative;
}

/* Billetes flotantes animados */
.floating-money { position: absolute; font-size: 1.5rem; animation: floatUp 3s infinite linear; z-index: 1; opacity: 0; }
.f1 { top: 50%; left: -20px; animation-delay: 0s; }
.f2 { top: 20%; right: -25px; animation-delay: 1s; }
.f3 { top: 80%; right: -10px; animation-delay: 2s; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-60px) scale(1.2) rotate(20deg); opacity: 0; }
}

/* Tarjeta de Saldo */
.earn-balance-card {
    background: #fff;
    width: 85%;
    margin: -35px auto 20px auto; /* Flota sobre el header */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
    text-align: center;
}
.earn-balance-card .label { font-size: 0.8rem; color: #777; text-transform: uppercase; letter-spacing: 1px; }
.balance-row { font-size: 2.5rem; font-weight: 800; color: #2e7d32; margin: 5px 0 15px 0; }
.balance-row .unit { font-size: 1rem; color: #999; }
.btn-cashout {
    background: #2e7d32; color: #fff; border: none; padding: 12px 30px;
    border-radius: 50px; font-weight: 700; cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
    transition: transform 0.2s;
}
.btn-cashout:hover { transform: scale(1.05); }

/* Lista de Misiones */
.earn-missions-grid { padding: 0 20px 20px 20px; display: flex; flex-direction: column; gap: 15px; }

.earn-card {
    display: flex; align-items: center; gap: 15px;
    background: #fff; padding: 15px; border-radius: 15px;
    border: 1px solid #eee; cursor: pointer; transition: all 0.2s;
}
.earn-card:hover { transform: translateX(5px); border-color: #00c853; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.earn-card .icon-box {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}
.icon-box.green { background: #00c853; box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3); }
.icon-box.blue { background: #2979ff; box-shadow: 0 4px 10px rgba(41, 121, 255, 0.3); }
.icon-box.purple { background: #aa00ff; box-shadow: 0 4px 10px rgba(170, 0, 255, 0.3); }

.earn-card .text-box h4 { margin: 0; font-size: 1rem; color: #333; }
.earn-card .text-box span { font-size: 0.8rem; color: #888; }
.earn-card .arrow { margin-left: auto; color: #ccc; }
/* =================================================================== */
/*      UPGRADE VISUAL: GANA VIP + SPONSORS INVESTOR                   */
/* =================================================================== */

/* --- 1. SECCIÓN VIP CREADOR (En Modal Gana) --- */
.creator-vip-section {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%); /* Verde Esmeralda Profundo */
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Patrón de fondo sutil */
.vip-bg-pattern {
    position: absolute; top: 0; right: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.vip-content { position: relative; z-index: 2; }

.vip-badge {
    display: inline-block;
    background: #00bfa5;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.vip-icon-row { margin-bottom: 10px; display: flex; gap: 10px; font-size: 1.2rem; color: #a7ffeb; }

.creator-vip-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.creator-vip-section p {
    font-size: 0.85rem;
    color: #b2dfdb;
    margin: 0 0 15px 0;
    max-width: 80%;
}

.btn-vip-access {
    background: #fff;
    color: #004d40;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: transform 0.2s;
    display: flex; align-items: center; gap: 8px; font-size: 0.8rem;
}
.btn-vip-access:hover { transform: scale(1.05); background: #e0f2f1; }

/* Ajuste para que la cabecera verde clara (Tiempo Vale Oro) se conecte bien */
.earn-header-hero {
    /* Quitamos border-radius superior si está debajo de algo */
    border-top-left-radius: 0; 
    border-top-right-radius: 0;
    padding-top: 40px; /* Más espacio para separar */
}


/* --- 2. ESTILOS DE INVERSIONISTAS (En Modal Sponsors) --- */

/* Animación del anillo del inversionista (Dorado) */
.stream-investor {
    border: 2px solid transparent;
    border-right-color: #f1c40f; /* Amarillo */
    width: 150%; height: 150%;
    position: absolute; top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbit-rev 8s infinite linear;
}
@keyframes orbit-rev { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }

/* Botón Inversionista */
.investor-path:hover {
    border-color: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
    background: rgba(241, 196, 15, 0.05);
}
.investor-path i { color: #f1c40f; }
/* =================================================================== */
/*      ESTILOS NUEVOS: CREADOR EN GANA + INVERSORES EN SPONSORS       */
/* =================================================================== */

/* --- 1. BARRA DE CREADOR (En Modal Verde) --- */
.creator-top-banner {
    background: #111; /* Negro para contrastar con el verde */
    color: #fff;
    padding: 15px;
    margin-bottom: -1px; /* Pegado al siguiente div */
}

.creator-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, #222, #000);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #333;
}

.creator-icon {
    width: 40px; height: 40px;
    background: #FFD700; color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.creator-text h3 { margin: 0; font-size: 0.9rem; color: #FFD700; text-transform: uppercase; }
.creator-text p { margin: 0; font-size: 0.7rem; color: #ccc; }

.btn-creator-action {
    margin-left: auto;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
}

/* --- 2. BOTÓN INVERSORES (En Sponsors) --- */
.investor-path {
    border-color: #f1c40f !important;
}
.investor-path:hover {
    background: rgba(241, 196, 15, 0.1) !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}
.investor-path i { color: #f1c40f !important; }

/* Ajuste Icono Publicidad */
.brand-path i { color: #3498db !important; }
/* =================================================================== */
/*      CORRECCIONES NEXO / SPONSORS (CENTRADO Y ANIMACIÓN)            */
/* =================================================================== */

/* 1. CENTRADO FORZOSO DEL TÍTULO */
.nexo-title {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* 2. CORRECCIÓN BOTÓN CERRAR (LA "X") */
.modal-close-btn.fixed-corner {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    z-index: 100 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 1.5rem !important;
    padding-bottom: 4px; /* Pequeño ajuste visual */
}
.modal-close-btn.fixed-corner:hover {
    background: rgba(231, 76, 60, 0.8) !important; /* Rojo al pasar el mouse */
}

/* 3. ANIMACIÓN DE PUBLICIDAD (MEGÁFONO) */
.animated-horn {
    animation: horn-pulse 1.5s infinite ease-in-out;
    color: #3498db; /* Azul original */
}

@keyframes horn-pulse {
    0% { transform: scale(1) rotate(0deg); text-shadow: 0 0 0 rgba(52, 152, 219, 0); }
    50% { transform: scale(1.2) rotate(-10deg); text-shadow: 0 0 15px rgba(52, 152, 219, 0.8); color: #fff; }
    100% { transform: scale(1) rotate(0deg); text-shadow: 0 0 0 rgba(52, 152, 219, 0); }
}

/* Forzar centrado general del contenido Nexo */
#nexo-main-view {
    align-items: center !important; /* Flexbox centrado */
}

/* Botón Volver */
.nexo-back-btn {
    align-self: flex-start;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.nexo-back-btn:hover { color: #fff; }
/* =================================================================== */
/*      ANIMACIÓN INVERSORES (CRECIMIENTO DORADO)                      */
/* =================================================================== */

.animated-chart {
    /* Color base dorado */
    color: #f1c40f; 
    /* Animación de crecimiento continua */
    animation: chart-rise 2s infinite ease-in-out;
    /* Para que crezca desde la base */
    transform-origin: center bottom;
}

@keyframes chart-rise {
    0% { 
        transform: scale(1) translateY(0); 
        text-shadow: 0 0 0 rgba(241, 196, 15, 0); 
    }
    50% { 
        /* Crece, sube un poco y brilla en blanco/dorado intenso */
        transform: scale(1.2) translateY(-5px); 
        text-shadow: 0 0 20px rgba(241, 196, 15, 1); 
        color: #fff; /* Destello blanco en el punto más alto */
    }
    100% { 
        transform: scale(1) translateY(0); 
        text-shadow: 0 0 0 rgba(241, 196, 15, 0); 
    }
}
/* =================================================================== */
/*      MI CUENTA V3.0 - DARK MODE & GRID FIX (DEFINITIVO)             */
/* =================================================================== */

/* 1. CONTENEDOR PRINCIPAL */
.modal-content.account-theme {
    background: #000000 !important;
    border: 1px solid #333 !important;
    width: 95% !important;
    max-width: 400px !important;
    height: auto !important;
    min-height: 600px;
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. HERO SECTION (Usuario) */
.account-hero-section {
    background: linear-gradient(180deg, #111 0%, #000 100%) !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-bottom: 1px solid #222 !important;
}

/* Avatar */
.hero-avatar-container {
    position: relative;
    width: 110px; height: 110px;
    margin-bottom: 15px;
}
.hero-avatar {
    width: 100%; height: 100%; border-radius: 50%;
    border: 3px solid #FFD700;
    background-color: #222;
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.avatar-initial { font-size: 3rem; font-weight: 700; color: #fff; margin-top: -10px; }

/* Texto Cambiar Foto */
.avatar-overlay-text {
    position: absolute; bottom: 0; width: 100%; height: 30px;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.avatar-overlay-text span { font-size: 0.6rem; color: #fff; text-transform: uppercase; font-weight: 700; }
.avatar-overlay-text i { color: #FFD700; font-size: 0.7rem; }

/* Textos Usuario */
.hero-username {
    color: #fff; font-size: 1.4rem; margin: 5px 0 !important;
    text-transform: capitalize !important; /* Fuerza Mayúscula Inicial */
}
.hero-plan-badge {
    background: #222; color: #888; padding: 4px 12px;
    border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 15px; border: 1px solid #333;
}

/* 3. RELOJ (Estilo Digital) */
.plan-timer {
    background: #0a0a0a !important;
    border: 1px solid #333 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    display: flex !important; align-items: center !important; gap: 10px !important;
    min-width: 220px; justify-content: center;
}
.plan-timer span {
    font-family: monospace !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    color: #fff;
}
.plan-timer i { color: #FFD700; }

/* 4. MENÚ DE BLOQUES (Gris Oscuro y Organizado) */
.account-menu-area {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    background: #000 !important;
    flex: 1;
}

.menu-block-card {
    display: flex !important; /* ESTO ES LO QUE FALTABA */
    align-items: center !important;
    gap: 15px !important;
    
    background-color: #1f1f1f !important; /* Gris elegante */
    border: 1px solid #333 !important;
    padding: 15px 20px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: transform 0.1s !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.menu-block-card:active { transform: scale(0.98); background: #252525 !important; }

.block-icon {
    width: 45px; height: 45px;
    background: #000 !important;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    border: 1px solid #333;
    flex-shrink: 0; /* Evita que se aplaste */
}

.block-text { flex: 1; }
.block-text h4 { margin: 0; font-size: 1rem; color: #fff; font-weight: 600; }
.block-text p { margin: 2px 0 0 0; font-size: 0.75rem; color: #888; }

.block-arrow { color: #555; font-size: 0.9rem; }

/* Botón X */
.modal-close-btn.fixed-corner {
    position: absolute; top: 15px; right: 15px;
    background: #222; color: #fff;
    width: 35px; height: 35px; border-radius: 50%;
    border: 1px solid #444; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
/* --- FIX FLECHA INTRUSA --- */
/* Asegurar que el contenedor de subvistas esté invisible por defecto */
#account-subview-container {
    display: none !important; 
}

/* Asegurar que el botón de volver tenga estilo correcto y no sea un cuadro blanco feo */
.btn-back-account {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem;
    padding: 5px 10px;
    cursor: pointer;
}

/* Ajuste fino del reloj */
.plan-timer {
    font-variant-numeric: tabular-nums; /* Evita que los números "bailen" */
}
/* =================================================================== */
/*      FIX FINAL: MODAL CHICO, CENTRADO Y TITULOS ARRIBA              */
/* =================================================================== */

/* 1. MODAL MÁS CHICO Y LEJOS DE LA BARRA */
.modal-content.account-theme {
    height: auto !important;
    max-height: 60vh !important; /* Solo ocupa el 60% de la pantalla */
    width: 90% !important;
    max-width: 350px !important;
    margin: auto !important;
    margin-bottom: 100px !important; /* EMPUJA EL MODAL ARRIBA DE LA BARRA */
    background: #000 !important;
    border: 1px solid #333;
    border-radius: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* 2. CABECERA DE SUBVISTAS (EXPEDIENTE/AJUSTES) */
.subview-header {
    background: #111 !important;
    padding: 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* CENTRADO TOTAL */
    position: relative !important;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

/* Título pegado arriba y centrado */
.subview-title {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100%;
}

/* Flecha volver (Flotando a la izquierda absoluta) */
.btn-back-account {
    position: absolute !important;
    left: 15px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    z-index: 10;
}

/* 3. CUERPO CON SCROLL */
.subview-body {
    padding: 0 !important;
    overflow-y: auto !important;
    flex: 1;
}

/* 4. AJUSTES (CENTRADO VERTICAL) */
.settings-list {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centra los hijos */
    gap: 10px;
}

.setting-item {
    display: flex !important;
    flex-direction: column !important; /* Icono arriba, texto abajo */
    align-items: center !important;
    text-align: center !important;
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    width: 80% !important; /* No ocupa todo el ancho para verse bien */
}

.setting-item .icon { margin: 0 0 10px 0 !important; font-size: 1.5rem; color: #fff; }
.setting-item .text-col { text-align: center !important; }
.setting-item .arrow { display: none !important; }

/* Títulos de sección en ajustes */
.setting-group-title {
    text-align: center !important;
    width: 100%;
    color: #FFD700;
    font-weight: 800;
    margin-top: 10px;
    font-size: 0.8rem;
}

/* 5. EXPEDIENTE (ORDENAMIENTO) */
.expediente-wrapper {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
}

/* El botón de actualizar */
#expediente-refresh-btn {
    order: 2 !important; /* SE VA ABAJO DEL TÍTULO */
    margin-top: 10px !important;
    background: #111 !important;
    border: 1px solid #FFD700 !important;
    color: #FFD700 !important;
    border-radius: 50px !important;
}

/* Título inyectado en expediente */
.expediente-internal-title {
    order: 1 !important; /* SE VA ARRIBA */
    text-align: center !important;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}
/* =================================================================== */
/*      FIX V4: SCROLLS, CORREO COMPACTO Y LEGALES                     */
/* =================================================================== */

/* 1. ACTIVAR SCROLL (CRÍTICO) */
/* Para que funcione el scroll dentro de un flexbox, min-height debe ser 0 */
.account-menu-area, 
#subview-content, 
.legal-content-scroller {
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important; 
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #333 #000;
}

/* 2. CORREO: ESTILO ESPECIAL Y COMPACTO */
.setting-item.special-email {
    background: #0a192f !important; /* Azul oscuro elegante */
    border: 1px solid #1e3a5f !important;
    padding: 10px 15px !important; /* Más compacto */
    margin: 10px auto !important;
    width: 90% !important; /* Un poco más chico que los demás */
    border-radius: 12px !important;
}

.setting-item.special-email .icon {
    color: #64ffda !important; /* Cian brillante */
    font-size: 1.1rem !important;
    width: 30px !important; height: 30px !important; /* Icono más chico */
}

.setting-item.special-email .text-col {
    overflow: hidden; /* Evita que el texto largo rompa el modal */
}

.setting-item.special-email .value {
    font-size: 0.8rem !important;
    color: #a8b2d1 !important;
    word-break: break-all; /* Rompe el correo si es muy largo */
    line-height: 1.2;
}

/* 3. MENU LEGALES (Botones) */
.legal-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.legal-link-item {
    display: flex;
    align-items: center;
    background: #111;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
    transition: background 0.2s;
}
.legal-link-item:active { background: #222; }
.legal-link-item i { margin-right: 15px; color: #FFD700; width: 25px; text-align: center; }
/* =================================================================== */
/*      FIX FINAL: SCROLLERS ACTIVOS (EXPEDIENTE Y AJUSTES)            */
/* =================================================================== */

/* 1. El contenedor de la vista debe llenar el modal pero no desbordarlo */
#account-subview-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;       /* Ocupa toda la altura del modal */
    max-height: 100% !important;
    overflow: hidden !important;   /* Evita scroll en el contenedor padre */
}

/* 2. El cuerpo donde va el contenido (Expediente/Ajustes) DEBE tener scroll */
#subview-content {
    flex: 1 !important;            /* Ocupa el espacio restante abajo del título */
    overflow-y: auto !important;   /* ACTIVA EL SCROLL VERTICAL */
    overflow-x: hidden !important; /* Evita scroll horizontal */
    min-height: 0 !important;      /* Truco vital para que funcione en Flexbox */
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* 3. Asegurar que el Expediente tenga espacio para scrollear */
#expediente-content-container {
    padding-bottom: 40px !important; /* Espacio al final para que no se corte */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Asegurar que la lista de Ajustes tenga espacio */
.settings-list {
    padding-bottom: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- ESTILO DE BARRA DE DESPLAZAMIENTO (SCROLLBAR) --- */
/* Para Chrome, Safari, Edge */
#subview-content::-webkit-scrollbar {
    width: 6px;
}

#subview-content::-webkit-scrollbar-track {
    background: #000; /* Fondo del riel */
}

#subview-content::-webkit-scrollbar-thumb {
    background-color: #333; /* Color de la barra */
    border-radius: 10px;    /* Redondeada */
    border: 1px solid #000;
}

#subview-content::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Color al pasar el mouse */
}
/* =================================================================== */
/*      FIX FINAL: TARJETA DE PERFIL FLOTANTE (PERFECTA)               */
/* =================================================================== */

/* 1. EL OVERLAY (FONDO OSCURO) - Centrado Flexbox */
#my-content-overlay.modal-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    padding: 20px !important;
    z-index: 20000 !important;
    /* Reseteamos propiedades que pudieran estorbar */
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0; left: 0;
}

/* 2. LA TARJETA (CONTENIDO) - Dimensiones y Bordes */
/* --- REEMPLAZAR ESTE BLOQUE COMPLETO --- */
/* --- REEMPLAZA ESTE BLOQUE EN MODALS.CSS --- */
#my-content-overlay .minimalist-content {
    position: relative !important;
    width: 90% !important;
    max-width: 380px !important;
    
    /* ALTURA: Ocupa pantalla pero deja espacio abajo */
    height: 80vh !important; 
    margin: auto !important;
    margin-bottom: 90px !important; /* Espacio para la barra nav */

    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    
    border: 3px solid #fff !important;
    border-radius: 30px !important;
    box-shadow: 0 15px 40px rgba(27, 94, 32, 0.25) !important;
    
    display: flex !important;
    flex-direction: column !important;
    /* IMPORTANTE: Quitamos el hidden global para manejarlo dentro */
    overflow: hidden !important; 
}

/* ACTIVAR SCROLL EN EL CONTENEDOR INTERNO */
#my-content-overlay .profile-container {
    background: transparent !important;
    overflow-y: auto !important; /* AQUÍ ESTÁ LA MAGIA DEL SCROLL */
    height: 100% !important;
    padding-bottom: 40px !important; /* Espacio final */
}

/* 4. REPARACIÓN DEL AVATAR CORTADO */
/* El problema era que el margen negativo sacaba la foto del contenedor */
.profile-header-wrapper {
    position: relative;
    width: 100%;
}

.profile-cover {
    height: 140px !important;
    width: 100%;
    background-size: cover;
    background-position: center;
    /* Importante: que no tenga márgenes raros */
    display: block; 
}

.profile-avatar-row {
    padding: 0 20px;
    margin-top: -45px; /* Sube la foto sobre la portada */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 10; /* Encima de la portada */
    pointer-events: none; /* Para que no bloquee clicks alrededor */
}

/* Estilos específicos para el avatar dentro del modal */
#profile-avatar-container {
    pointer-events: auto;
    position: relative;
    border-radius: 50%;
    padding: 4px; 
    background: #e8f5e9; /* COINCIDE CON LA TARJETA VERDE */
}

#profile-avatar-display {
    width: 90px !important; 
    height: 90px !important;
    border-radius: 50% !important;
    border: 2px solid #333;
    background-color: #111;
    background-size: cover;
    background-position: center;
}

/* 5. FLECHA DE VOLVER (Dentro de la tarjeta) */
#profile-back-arrow-btn {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 35px !important;
    height: 35px !important;
    background: rgba(255,255,255,0.8) !important; /* Fondo claro */
    color: #000 !important; /* Flecha negra */
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    z-index: 50 !important;
}

/* Ocultar elementos viejos que puedan estorbar */
#my-content-overlay .minimalist-header { display: none !important; }
/* =================================================================== */
/*      FIX FINAL: TARJETA PERFIL (COLOR GRIS, SIN NUMEROS, ALZADA)    */
/* =================================================================== */

/* 1. EL OVERLAY: Levanta el contenido para no tocar la barra de abajo */
#my-content-overlay .minimalist-content {
    /* Mantenemos dimensiones */
    position: relative !important;
    width: 100% !important;
    max-width: 420px !important;
    
    /* ESTRUCTURA DE ALTURA: Se adapta al contenido, pero con un máximo */
    height: auto !important; 
    min-height: 200px !important; /* Mínimo razonable para que no se vea rota */
    max-height: 80vh !important; /* Tope máximo para scrollear si hay mucho */
    
    /* Centrado vertical si es pequeña */
    margin: auto !important;
    margin-bottom: 90px !important; /* Respetar barra inferior */

    /* COLOR VERDE PASTEL */
    background: #e8f5e9 !important;
    color: #000 !important;
    
    /* BORDES ESTILO MAKUMOTO */
    border: 2px solid #fff !important; /* Borde blanco grueso */
    border-radius: 35px !important; /* Muy redondeado */
    
    /* SOMBRA VERDE SUAVE */
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.25) !important;
    
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; 
    margin: 0 !important;
}

/* Scroll interno invisible pero funcional */
#my-content-overlay .profile-container::-webkit-scrollbar {
    width: 4px;
}
#my-content-overlay .profile-container::-webkit-scrollbar-thumb {
    background: #c8e6c9; 
    border-radius: 4px;
}

/* 4. ARREGLO DE PORTADA Y FOTO */
.profile-header-wrapper {
    position: relative;
    width: 100%;
}

/* Portada más chica y sin bordes */
.profile-cover {
    height: 120px !important;
    width: 100%;
    border-bottom: 1px solid #333;
}

/* Fila del Avatar */
.profile-avatar-row {
    padding: 0 20px;
    margin-top: -45px; 
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

#profile-avatar-container {
    pointer-events: auto;
    position: relative;
    border-radius: 50%;
    padding: 4px; 
    background: #e3f2fd; /* COINCIDE CON LA TARJETA AZUL */
}

#profile-avatar-display {
    width: 85px !important; 
    height: 85px !important;
    border-radius: 50% !important;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

/* 5. FLECHA ATRÁS */
#profile-back-arrow-btn {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: 35px !important;
    height: 35px !important;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    z-index: 50 !important;
}

/* Ocultar headers viejos */
#my-content-overlay .minimalist-header { display: none !important; }
/* =================================================================== */
/*      FIX: MODAL AVATAR (ESPACIOSO, 2 COLUMNAS Y SCROLL)             */
/* =================================================================== */

/* 1. CONTENEDOR PRINCIPAL */
#avatar-selection-modal .modal-content {
    background: #e8f5e9 !important; /* Verde Pastel */
    color: #1b5e20 !important;
    
    width: 90% !important;
    max-width: 350px !important;
    
    /* ALTURA FIJA RELATIVA PARA FORZAR EL SCROLL SI ES NECESARIO */
    height: 75vh !important; 
    max-height: 600px !important;
    
    border-radius: 20px !important;
    border: 4px solid #fff !important;
    box-shadow: 0 20px 50px rgba(27, 94, 32, 0.2) !important;
    
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Oculta scroll del borde exterior */
    
    margin: auto !important; 
    margin-bottom: 90px !important; /* Lejos de la barra inferior */
    position: relative !important;
}

/* 2. HEADER (TITULO) */
#avatar-selection-modal .modal-header {
    background: #c8e6c9;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #fff;
    flex-shrink: 0; /* No se encoge */
}
#avatar-selection-modal h3 {
    margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: 1px; color: #1b5e20;
}

/* Botón cerrar "X" (Circular y Rojo Suave) */
#avatar-close-btn {
    position: absolute !important; top: 10px !important; right: 10px !important;
    width: 32px !important; height: 32px !important;
    background: #fff !important; color: #ef5350 !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; font-size: 1.1rem !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* 3. ÁREA DE PREVIEW (Círculo y Botón Subir) */
#avatar-preview-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 10px; /* Más aire vertical */
    background: linear-gradient(to bottom, #fff, #f1f8e9);
    border-bottom: 1px solid #c8e6c9;
    flex-shrink: 0;
    gap: 15px; /* Espacio entre circulo y botón */
}

/* El círculo de la imagen */
#avatar-preview-img {
    width: 110px !important; height: 110px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 4px solid #2e7d32 !important;
    background: #e0e0e0; /* Color de fondo por si no carga imagen */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    display: block; /* Centrado */
}

/* Botón Subir Foto */
.btn-upload-custom {
    background: #2e7d32; color: white; padding: 10px 25px;
    border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    transition: transform 0.2s;
}
.btn-upload-custom:active { transform: scale(0.95); }

/* 4. PESTAÑAS (TABS) - Mejor distribuidas */
.avatar-tabs {
    display: flex;
    justify-content: center; /* Centradas */
    padding: 12px;
    gap: 10px;
    background: #e8f5e9;
    flex-shrink: 0;
}

.avatar-tab-btn {
    background: #fff;
    border: 1px solid #a5d6a7;
    color: #558b2f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1; /* Todos del mismo ancho */
    text-align: center;
}
.avatar-tab-btn.active {
    background: #2e7d32; color: #fff; border-color: #2e7d32;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

/* 5. GRID DE AVATARES (SCROLL ARREGLADO) */
.avatar-grid-container {
    flex: 1; /* Ocupa todo el espacio restante */
    min-height: 0; /* TRUCO VITAL PARA SCROLL EN FLEXBOX */
    overflow-y: auto; /* Scroll vertical activo */
    padding: 15px;
    background: #f1f8e9;
}

/* Scrollbar bonita */
.avatar-grid-container::-webkit-scrollbar { width: 6px; }
.avatar-grid-container::-webkit-scrollbar-thumb { background: #a5d6a7; border-radius: 3px; }

.avatar-grid {
    display: none; 
    /* 2 COLUMNAS */
    grid-template-columns: 1fr 1fr; 
    gap: 15px; /* Espacio entre fotos */
    padding-bottom: 20px;
}
.avatar-grid.active { display: grid; }

.avatar-option {
    aspect-ratio: 1; /* Cuadrados perfectos */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.1s;
    background: #fff;
}
.avatar-option:hover { border-color: #2e7d32; transform: scale(1.03); }
.avatar-option img { width: 100%; height: 100%; object-fit: cover; }
//* =================================================================== */
/*      ESTILO TWITTER / CLEAN (NOTIFICACIONES)                        */
/* =================================================================== */

/* 1. Tarjeta Principal */
.social-hub-card {
    background: #e8f5e9 !important; /* Verde Pastel Solido */
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    max-width: 420px !important;
    width: 95% !important;
    height: 85vh !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* 2. Header Simple */
.social-hub-header-clean {
    background: #e8f5e9; /* Mismo tono para continuidad */
    padding: 15px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.clean-close {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    right: 15px;
    background: transparent !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* 3. Pestañas estilo Twitter (Tabs) */
.twitter-tabs-nav {
    display: flex;
    background: #e8f5e9;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.tw-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555; /* Gris neutro */
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    text-align: center;
}

.tw-tab-btn:hover {
    background-color: rgba(0,0,0,0.03); /* Hover sutil */
}

/* Estado Activo: Texto negro + Línea inferior */
.tw-tab-btn.active {
    color: #000;
    font-weight: 800;
}

.tw-tab-btn .active-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0; /* Oculto por defecto */
    height: 4px;
    background-color: #2e7d32; /* Verde fuerte */
    border-radius: 4px 4px 0 0;
    transition: width 0.2s ease;
}

.tw-tab-btn.active .active-indicator {
    width: 50px; /* Ancho de la línea azul/verde estilo Twitter */
}

/* 4. Cuerpo y Listas */
.social-hub-body-clean {
    flex: 1;
    overflow-y: auto;
    background: #e8f5e9; /* Continuidad de color */
}

/* Items de la lista (Estilo Limpio) */
.notification-item {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.notification-item:hover {
    background: rgba(255,255,255,0.4);
}

/* Iconos dentro de la lista */
.notif-icon-box {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
/* Colores específicos */
.notif-icon-box.applaud { background: #fff9c4; color: #fbc02d; }
.notif-icon-box.boo { background: #ffcdd2; color: #d32f2f; }
.notif-icon-box.reply { background: #bbdefb; color: #1976d2; }
.notif-icon-box.follow { background: #c8e6c9; color: #2e7d32; }

/* Textos */
.notif-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}
.notif-meta {
    color: #777;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}
/* =================================================================== */
/*      ESTILOS SOCIAL GRANDES (4 ICONOS UNIFICADOS)                   */
/* =================================================================== */

/* Contenedor de la Fila Maestra */
.big-icons-row {
    display: flex;
    justify-content: space-around; /* Distribución equitativa */
    align-items: center;
    padding: 15px 10px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 10px; /* Espacio entre botones */
    flex-shrink: 0;
}

/* Botón Icono GRANDE */
.big-icon-btn {
    width: 55px; /* Tamaño grande */
    height: 55px;
    border-radius: 12px;
    border: 2px solid #e0e0e0; /* Borde sutil */
    background: #f5f5f5;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem; /* Icono grande */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Rebote */
}

.big-icon-btn:active {
    transform: scale(0.9);
}

/* Estado ACTIVO (Verde Makumoto) */
.big-icon-btn.active {
    background: #2e7d32;
    color: #fff;
    border-color: #1b5e20;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.4);
    transform: translateY(-3px);
}

/* Estilo especial para VIRAL (Amarillo Fuego) */
.big-icon-btn.viral-mode.active {
    background: #fbc02d;
    border-color: #f57f17;
    color: #000;
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.4);
}

/* Ajuste de las listas internas */
.notification-list {
    padding: 0;
    margin: 0;
}
.notif-content p {
    font-size: 0.95rem; /* Texto un poco más grande y legible */
}
/* =================================================================== */
/*      XP HUB (GAMER THEME)                                           */
/* =================================================================== */

.xp-hub-card {
    background: #121212 !important; /* Fondo Oscuro Gamer */
    border: 2px solid #333 !important;
    border-radius: 24px !important;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.15) !important; /* Resplandor dorado suave */
    width: 90% !important;
    max-width: 380px !important;
    height: 80vh !important;
    margin: auto !important;
    overflow: hidden !important;
    color: #fff !important;
}

/* Header */
.xp-header {
    background: linear-gradient(to right, #1a1a1a, #000);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
}

.xp-level-badge {
    background: #FFD700;
    color: #000;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.xp-level-badge span { font-size: 0.55rem; letter-spacing: 1px; }
.xp-level-badge strong { font-size: 1.4rem; }

.xp-header-info h2 { margin: 0; font-size: 1.1rem; letter-spacing: 1px; color: #fff; }
.xp-header-info p { margin: 0; font-size: 0.75rem; color: #888; }

/* Cuerpo */
.xp-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #121212;
}

/* Tarjeta Principal */
.xp-main-stat-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.xp-trophy-icon {
    font-size: 3rem;
    color: #FFD700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    margin-bottom: 10px;
}

.xp-total-score {
    font-size: 2.5rem;
    margin: 5px 0 15px 0;
    font-weight: 800;
    color: #fff;
}
.xp-total-score small { font-size: 1rem; color: #888; font-weight: 400; }

/* Barra de Progreso */
.xp-bar-labels {
    display: flex; justify-content: space-between;
    font-size: 0.7rem; color: #aaa; margin-bottom: 5px;
}
.xp-progress-track {
    height: 10px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}
.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #ffab00);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: width 1s ease;
}
.xp-next-goal {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

/* Lista de Retos */
.xp-section-title {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex; align-items: center; gap: 8px;
}

.xp-challenge-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.xp-challenge-item:hover { transform: translateX(5px); border-color: #FFD700; }

.challenge-icon {
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #aaa;
    margin-right: 12px;
}
.challenge-info { flex: 1; }
.challenge-info strong { display: block; font-size: 0.9rem; color: #eee; }
.challenge-info span { font-size: 0.75rem; color: #777; }

.challenge-reward {
    font-weight: 800;
    color: #FFD700;
    font-size: 0.85rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Banner */
.xp-rewards-banner {
    margin-top: 25px;
    background: linear-gradient(45deg, #2c3e50, #000);
    border: 1px solid #34495e;
    padding: 15px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 15px;
}
.xp-rewards-banner i { font-size: 1.5rem; color: #3498db; }
.xp-rewards-banner p { margin: 0; font-size: 0.75rem; color: #aaa; }
/* =================================================================== */
/*      FIX DEFINITIVO V2: LYRA CENTRADO PERFECTO (NUCLEAR)            */
/* =================================================================== */

/* 1. EL FONDO (OVERLAY) */
#activate-hub-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. LA TARJETA (CONTENIDO) */
#activate-hub-modal .modal-content {
    position: relative !important;
    width: 90% !important;
    max-width: 380px !important;
    height: 80vh !important; /* ALTURA FORZADA */
    max-height: 800px !important;
    
    /* FONDO CÓSMICO MORADO */
    background-color: #0f0c15 !important;
    background-image: radial-gradient(circle at 50% 20%, #2c2044 0%, #0f0c15 70%) !important;
    
    border: 1px solid #3c305a !important;
    border-radius: 24px !important;
    box-shadow: 0 0 50px rgba(171, 113, 237, 0.3) !important;
    
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
}

/* 3. PANTALLA DE PRESENTACIÓN (Contenedor Flex) */
.lyra-presentation-screen {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important;
    background: #0f0c15 !important; /* Fondo sólido para tapar el chat */
    z-index: 10 !important;
    
    /* CENTRADO FLEXBOX */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;  /* Centra horizontalmente */
    justify-content: center !important; /* Centra verticalmente */
    
    padding: 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* 4. IMAGEN DE LYRA (Forzado al centro) */
.lyra-avatar-large {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background-color: #333;
    /* Asegúrate que esta ruta sea correcta, si no carga, se verá un círculo gris */
    background-image: url('/images/lyra.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border: 3px solid #ab71ed !important;
    box-shadow: 0 0 30px rgba(171, 113, 237, 0.6) !important;
    
    /* CENTRADO POR MARGENES */
    margin: 0 auto 25px auto !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* 5. TEXTOS (Forzado al centro) */
.lyra-presentation-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 auto 15px auto !important;
    text-shadow: 0 0 10px rgba(171, 113, 237, 0.5) !important;
}

.lyra-presentation-desc {
    font-size: 1rem !important;
    color: #ccc !important;
    line-height: 1.5 !important;
    max-width: 90% !important;
    margin: 0 auto 30px auto !important;
}

/* 6. BOTÓN "VAMOS A EMPEZAR" (Forzado al centro) */
#start-chat-btn {
    background: linear-gradient(90deg, #ab71ed, #9b59b6) !important;
    color: white !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(171, 113, 237, 0.4) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    
    display: block !important;
    margin: 0 auto !important;
}

/* 7. BOTÓN CERRAR (X) */
#activate-hub-modal .modal-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 100 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
}
/* =================================================================== */
/*      EFECTO PUM! & SLOT MACHINE (OVERLAYS)                          */
/* =================================================================== */

/* Overlay del PUM (Explosión de texto) */
.pum-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 99999;
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.1s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pum-overlay.active {
    opacity: 1;
    transform: scale(1.5);
}

.pum-text {
    font-size: 5rem;
    font-weight: 900;
    color: #FFD700;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #000;
    transform: rotate(-10deg);
}

/* Animación de "Barajeo" (Shake/Blur) para el contenedor del Feed */
.slot-machine-shuffling {
    animation: slot-shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    filter: blur(2px);
}

@keyframes slot-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
/* =================================================================== */
/*      FIX DE EMERGENCIA: VISIBILIDAD DEL PERFIL                      */
/*      Esto fuerza al modal a verse, ganándole a cualquier otra regla */
/* =================================================================== */

#my-content-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2147483647 !important; /* Por encima de TODO, incluso la barra */
}

/* Aseguramos que el contenido interno también se vea */
#my-content-overlay.show .minimalist-content {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Corrección para que la barra de navegación no lo tape */
body.profile-active .bottom-nav {
    z-index: 1 !important; /* Bajamos la barra cuando el perfil está abierto */
}
/* =================================================================== */
/* FIX BARRA DE NAVEGACIÓN (Solo ocultar si el modal es VISIBLE)       */
/* =================================================================== */

/* Ocultar barra inferior SOLO si hay un modal activo con clase .show */
body:has(.modal-overlay.show) .bottom-nav,
body:has(.minimalist-overlay.show) .bottom-nav,
/* El perfil de visitante no usa .show, usa ID directo porque se crea/destruye */
body:has(#visitor-profile-overlay) .bottom-nav {
    display: none !important;
}

/* Opcional: Si también quieres ocultar la barra SUPERIOR (Header) */
/* Descomenta las siguientes líneas si quieres modo inmersivo total */
/* 
body:has(.modal-overlay.show) #comando-superior,
body:has(#visitor-profile-overlay) #comando-superior {
    display: none !important;
}
*/
/* =================================================================== */
/*      FIX FINAL: PERFIL MODO TIKTOK (NEGRO/DORADO FULL SCREEN)       */
/* =================================================================== */

/* 1. EL OVERLAY: Ocupa toda la pantalla */
#my-content-overlay.modal-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000 !important; /* Negro Puro */
    padding: 0 !important;
    z-index: 10000 !important; /* Nivel alto, pero debajo de alertas */
    width: 100vw !important;
    height: 100dvh !important;
    position: fixed !important;
    top: 0; left: 0;
}

/* 2. EL CONTENEDOR (Full Screen sin bordes) */
#my-content-overlay .minimalist-content {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important; 
    max-height: none !important;
    margin: 0 !important;

    background: #000 !important; /* Fondo Negro */
    color: #fff !important;      /* Texto Blanco */
    
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; 
}

/* SCROLL INTERNO */
#my-content-overlay .profile-container {
    background: #000 !important;
    overflow-y: auto !important;
    height: 100% !important;
    padding-bottom: 80px !important; /* Espacio para no chocar abajo */
    padding-top: env(safe-area-inset-top, 20px); /* Respetar Notch */
}

/* 4. CABECERA Y PORTADA */
.profile-header-wrapper {
    position: relative;
    width: 100%;
}

.profile-cover {
    height: 160px !important;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
    position: relative;
}

/* Degradado para que el texto se lea mejor */
.profile-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #000 100%);
}

.profile-avatar-row {
    padding: 0 20px;
    margin-top: -50px; 
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

#profile-avatar-container {
    pointer-events: auto;
    position: relative;
    border-radius: 50%;
    padding: 3px; 
    background: #000; /* Borde visual negro */
}

#profile-avatar-display {
    width: 100px !important; 
    height: 100px !important;
    border-radius: 50% !important;
    border: 3px solid #FFD700; /* Borde Dorado */
    background-color: #111;
    background-size: cover;
    background-position: center;
}

/* 5. FLECHA ATRÁS (Flotante) */
#profile-back-arrow-btn {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    z-index: 50 !important;
}

/* Ocultar headers viejos */
#my-content-overlay .minimalist-header { display: none !important; }

/* FIX Z-INDEX PARA MODALES SUPERIORES (Avatar, Galería) */
#avatar-selection-modal, 
.cover-gallery-overlay {
    z-index: 2147483647 !important; /* Encima de todo */
}
/* AJUSTES PARA EXPEDIENTE DENTRO DEL MODAL */
#expediente-content-container .section-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
}

#expediente-content-container .section-header {
    background: #1a1a1a;
    padding: 12px 15px;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid #333;
    display: flex; align-items: center; gap: 10px;
}

#expediente-content-container .empty-msg {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}