/* =================================================================== */
/*      PERFIL ESTILO "X" (TWITTER) - FULLSCREEN FINAL
/* =================================================================== */

/* 1. OVERLAY PRINCIPAL (CONTENEDOR) */
#my-content-overlay.modal-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: #000 !important;
    padding: 0 !important; margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 10000 !important; /* Perfil Nivel 1 */
}

/* 2. CONTENIDO (LA HOJA) */
.profile-sheet-content {
    width: 100% !important; height: 100% !important;
    background: #000 !important;
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 3. BARRA SUPERIOR PEGAJOSA (Sticky Header) */
.sticky-profile-header {
    position: absolute; top: 0; left: 0; width: 100%;
    height: 55px;
    background: rgba(0, 0, 0, 0.85); /* Semitransparente oscuro */
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 20px;
    padding: 0 15px;
    z-index: 100; /* Encima de la portada */
    opacity: 0; /* Oculto al inicio */
    pointer-events: none; /* Para que no bloquee clics en la portada al inicio */
    transition: opacity 0.2s ease;
    border-bottom: 1px solid #333;
}
.sticky-profile-header.visible {
    opacity: 1;
    pointer-events: auto;
}

.sticky-back-btn {
    background: none; border: none; color: white;
    font-size: 1.2rem; cursor: pointer;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sticky-back-btn:hover { background: rgba(255,255,255,0.1); }

.sticky-info h3 { margin: 0; font-size: 1.1rem; color: #fff; font-weight: 800; }
.sticky-info span { font-size: 0.8rem; color: #777; display: block; }

/* 4. BOTONES FLOTANTES (Cuando no hay scroll) */
.floating-back-btn {
    position: absolute; top: 15px; left: 15px;
    z-index: 50;
    background: rgba(0,0,0,0.6); color: white;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* 5. PORTADA (COVER) */
.sheet-cover-container {
    width: 100%; height: 180px; flex-shrink: 0;
    position: relative;
    background-color: #222;
    background-size: 100% 100% !important; /* Llenar todo */
    background-position: center;
    background-repeat: no-repeat;
}

/* 6. INFO USUARIO */
.sheet-info-container {
    padding: 0 15px;
    position: relative; flex-shrink: 0;
}

/* Avatar "mordiendo" portada */
.avatar-wrapper {
    width: 85px; height: 85px;
    margin-top: -45px; /* Subir */
    position: relative;
    z-index: 60; /* Encima de todo */
    cursor: pointer; /* Mano para clic */
    pointer-events: auto !important; /* Forzar detección de clic */
}
.sheet-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 4px solid #000; /* Borde negro del diseño */
    background: #333; object-fit: cover;
}

/* Botón Editar Perfil (Estilo Twitter) */
.btn-edit-profile-outline {
    position: absolute; top: 10px; right: 15px;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer;
}

/* Textos */
.user-name-block h2 { color: white; margin: 5px 0 2px 0; font-size: 1.4rem; font-weight: 900; }
.user-handle-block { color: #71767B; font-size: 0.95rem; margin-bottom: 10px; }
.user-bio-block { color: #fff; font-size: 0.95rem; line-height: 1.4; margin-bottom: 10px; }
.user-stats-block { display: flex; gap: 15px; color: #71767B; font-size: 0.9rem; }
.user-stats-block strong { color: #fff; font-weight: 700; }

/* 7. PESTAÑAS (TABS) - ESTILO TWITTER */
.sheet-tabs {
    display: flex;
    border-bottom: 1px solid #2F3336;
    margin-top: 15px;
    flex-shrink: 0;
}
.sheet-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    color: #71767B;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    text-align: center;
}
.sheet-tab:hover { background: rgba(255,255,255,0.05); }

/* Línea Azul/Dorada debajo */
.sheet-tab.active {
    color: #fff;
    font-weight: 700;
}
.sheet-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; /* Ancho de la línea */
    height: 4px;
    background: #FFD700; /* Amarillo Makumoto */
    border-radius: 2px;
}

/* 8. CUERPO (FEED) */
.sheet-body {
    flex: 1; overflow-y: auto; background: #000;
}
/* =================================================================== */
/*      4. SOCIAL HUB (NOTIFICACIONES & SEGUIDORES - CLEAN STYLE)
/* =================================================================== */

/* La Tarjeta Central (Flotante o Pantalla Completa) */
.social-hub-card {
    background: #000000;
    width: 100%; max-width: 500px; height: 100%;
    margin: auto;
    display: flex; flex-direction: column;
    border-right: 1px solid #2f3336; /* Bordes sutiles tipo X */
    border-left: 1px solid #2f3336;
}

/* Header Minimalista */
.social-hub-header-clean {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #2f3336;
    position: sticky; top: 0; z-index: 10;
}

.social-hub-header-clean h3 {
    margin: 0; color: #e7e9ea; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.5px;
}

.clean-close {
    background: transparent; border: none; color: #e7e9ea;
    font-size: 1.2rem; cursor: pointer; padding: 5px;
    transition: color 0.2s;
}
.clean-close:hover { color: #FFD700; }

/* Tabs Estilo Twitter (Línea inferior) */
.twitter-tabs-nav {
    display: flex;
    background: #000;
    border-bottom: 1px solid #2f3336;
}

.tw-tab-btn {
    flex: 1;
    background: transparent; border: none;
    padding: 15px 0;
    color: #71767b; /* Gris apagado */
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tw-tab-btn:hover { background: rgba(255,255,255,0.03); color: #e7e9ea; }

.tw-tab-btn.active {
    color: #e7e9ea; /* Blanco */
    font-weight: 700;
}

/* La línea azul/dorada de la tab activa */
.tw-tab-btn.active::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 4px;
    background: #FFD700; /* Tu color de marca */
    border-radius: 4px;
}

/* Cuerpo de la Lista */
.social-hub-body-clean {
    flex: 1;
    overflow-y: auto;
    background: #000;
}

/* --- RENGLÓN DE NOTIFICACIÓN (EL ITEM) --- */
.nexus-stream-item {
    display: flex; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
    transition: background 0.2s;
    animation: none; /* Quitamos animaciones de entrada para que sea rápido */
}

.nexus-stream-item:hover { background: rgba(255,255,255,0.03); }

.stream-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-size: cover; background-position: center;
    border: 1px solid #333;
    flex-shrink: 0;
}

.stream-content {
    display: flex; flex-direction: column; justify-content: center;
    font-size: 0.95rem; color: #e7e9ea; line-height: 1.4;
}

.stream-user { font-weight: 700; margin-right: 4px; }
.stream-text-sec { color: #71767b; } /* Texto secundario gris */
/* =================================================================== */
/*      FIX DISEÑO EDITAR PERFIL (PREMIUM DARK)
/* =================================================================== */

/* Fondo y bordes del modal */
.edit-profile-card {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 16px !important;
}

.ep-header {
    background-color: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333 !important;
}

.ep-title { color: #fff !important; font-family: 'Poppins', sans-serif; font-weight: 800; }

.ep-save-btn {
    background-color: #fff !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    transition: opacity 0.2s;
}
.ep-save-btn:disabled { opacity: 0.5; }

/* INPUTS ESTILO X (ADENTRO DEL NEGRO) */
.ep-form-container { padding: 20px 15px !important; }

.ep-input-group {
    background-color: #000 !important; /* Fondo negro */
    border: 1px solid #333 !important; /* Borde gris oscuro */
    border-radius: 4px !important;
    padding: 8px 10px !important;
    margin-bottom: 20px !important;
    position: relative;
    transition: border-color 0.2s;
}

.ep-input-group:focus-within {
    border-color: #1d9bf0 !important; /* Azul al tocar */
    box-shadow: 0 0 0 1px #1d9bf0;
}

.ep-input-group label {
    color: #71767b !important; /* Gris claro */
    font-size: 0.75rem !important;
    display: block;
    margin-bottom: 2px;
}

.ep-input-group input,
.ep-input-group textarea {
    background: transparent !important;
    border: none !important;
    color: #fff !important; /* Texto blanco */
    font-size: 1rem !important;
    width: 100% !important;
    outline: none !important;
    font-family: inherit;
    padding: 0 !important;
}

/* Iconos de cámara */
.ep-icon-btn {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    width: 44px !important; height: 44px !important;
    transition: background 0.2s;
}
.ep-icon-btn:hover { background: rgba(255,255,255,0.2) !important; }