
        /* --- PALETA DE COLORES OFICIAL --- */
        :root {
            --bg-negro:    #0a0c0a; 
            --verde-base:  #9ec29e; 
            --verde-high:  #cceecc; 
            --borde-dark:  #1a201a; 
            --rojo-error:  #ff4444; 
            --gris-dim:    #6e7a6e; 
            --glow: 0 0 12px rgba(158, 194, 158, 0.3);
            --solid-black: #000000;
        
        }

        /* --- RESET Y BASE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            cursor: crosshair;
        }

        body {
            background-color: var(--bg-negro);
            color: var(--verde-base);
            font-family: 'Share Tech Mono', monospace;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        /* --- CAPAS DE FONDO --- */
        #profile-gif-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            object-fit: cover;
            z-index: -2;
            opacity: 0.3;
            filter: grayscale(1) brightness(0.4);

            /* VALORES AJUSTADOS: Subimos opacidad y brillo */
            opacity: 0.6 !important; 
            filter: brightness(0.8) grayscale(0.6) contrast(1.2) !important;
        }

        #profile-video-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            object-fit: cover;
            z-index: -2;
            pointer-events: none;
            /* Copia los filtros que tengas en tu imagen de fondo */
            opacity: 0.6;
            filter: brightness(0.8) grayscale(0.6) contrast(1.2);
        }

        .crt-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
            background-size: 100% 4px;
            pointer-events: none;
            z-index: 10000;
        }

        /* --- HEADER --- */
        header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--borde-dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(10, 12, 10, 1);
            z-index: 100 !important;
        }

        .logo {
            font-size: 1.4rem;
            color: var(--verde-high);
            text-shadow: var(--glow);
            letter-spacing: 2px;
        }

        /* --- COMANDOS --- */
        .command-bar {
            display: flex;
            gap: 15px;
            padding: 20px;
            justify-content: center;
            z-index: 10;
        }

        .btn {
            background: transparent;
            border: 1px solid var(--verde-base);
            color: var(--verde-base);
            padding: 10px 25px;
            font-family: inherit;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background: rgba(158, 194, 158, 0.1);
            color: var(--verde-high);
            box-shadow: var(--glow);
        }

        /* --- DASHBOARD (REPLICADO EXACTO) --- */
        .main-viewport {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .dashboard-container {
            background: rgba(10, 12, 10, 0.9);
            border: 1px solid var(--verde-base);
            padding: 35px 45px;
            max-width: 780px;
            width: 100%;
            position: relative;
        }

        .dashboard-container h1 {
            font-size: 1.8rem;
            color: var(--verde-high);
            margin-bottom: 10px;
        }

        .dashboard-container .subtitle {
            font-size: 1.1rem;
            color: var(--gris-dim);
            border-left: 2px solid var(--verde-base);
            padding-left: 15px;
            margin-bottom: 30px;
            font-style: italic;
        }

        .dashboard-item {
            border: 1px solid var(--borde-dark);
            margin-bottom: 10px;
            background: rgba(0,0,0,0.2);
        }

        .dashboard-item summary {
            list-style: none;
            padding: 12px 15px;
            cursor: pointer;
            color: var(--verde-high);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dashboard-item summary::-webkit-details-marker { display: none; }

        .dashboard-item summary::before {
            content: "▶";
            font-size: 0.7rem;
            transition: transform 0.2s;
        }

        .dashboard-item[open] summary::before { transform: rotate(90deg); }

        .dashboard-item .inner-content {
            padding: 15px 20px;
            border-top: 1px solid var(--borde-dark);
            color: var(--gris-dim);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .dashboard-container .close-btn {
            transition: all 0.2s ease;
            cursor: pointer;
            z-index: 10;
        }

        .dashboard-container .close-btn:hover {
            color: var(--rojo-error) !important;
            text-shadow: 0 0 10px var(--rojo-error);
            transform: scale(1.2);
        }

        /* Barra Lateral y Cuerpo */
        .win-body {
            display: flex !important;
            flex: 1 !important; 
            /* Forzamos que el cuerpo no mida más que el modal */
            height: calc(100% - 50px) !important; 
            overflow: hidden !important; /* Bloqueamos el scroll aquí para que lo haga el hijo */
        }   

        .win-sidebar {
            width: 220px;
            height: 100% !important; 
            max-height: 100% !important; 
            
            display: flex !important;
            flex-direction: column !important;
            padding: 20px 5px !important;
            border-right: 1px solid var(--borde-dark) !important;
            
            /* Cambiamos 'overlay' por 'auto' que es más compatible */
            overflow-y: auto !important; 
            overflow-x: hidden !important;
            
            /* Evita que el contenido "empuje" la caja hacia abajo */
            flex-shrink: 0 !important; 
            background: rgba(0, 0, 0, 0.4);
        }

        .side-label { 
            font-size: 0.7rem; 
            color: var(--gris-dim); 
            margin-bottom: 10px; 
            text-transform: uppercase; 
        }

        .side-item {
            padding: 8px 12px;
            margin-bottom: 5px;
            cursor: pointer;
            border-radius: 4px;
            font-size: 0.85rem;
            transition: 0.2s;
        }

        .side-item:hover { 
            background: rgba(158, 194, 158, 0.1); 
            color: var(--verde-high); 
        }

        .win-viewport { 
            flex: 1; 
            padding: 30px; 
            overflow-y: auto; 
        }

        .close-btn { 
            position: absolute; 
            top: 10px; 
            right: 
            20px; 
            font-size: 2rem; 
            color: var(--rojo-error); 
            text-decoration: none; 
            z-index: 100; 
        }

        /* --- ICONO CARPETA WIN11 REAL --- */
        .explorer-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
            gap: 30px; 
        }

        .folder-wrapper {
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            gap: 10px; 
            cursor: pointer; 
            transition: 0.2s;
        }

        .win11-folder {
            position: relative;
            width: 65px;
            height: 50px;
        }

        .folder-back {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: var(--verde-base);
            clip-path: polygon(0% 15%, 35% 15%, 42% 0%, 95% 0%, 100% 15%, 100% 100%, 0% 100%);
            border-radius: 3px; opacity: 0.7;
        }

        .folder-front {
            position: absolute; 
            bottom: 0; 
            left: 0; 
            width: 100%; 
            height: 82%;
            background: linear-gradient(135deg, var(--verde-high) 0%, var(--verde-base) 100%);
            border-radius: 2px 5px 3px 3px;
            box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
            border-top: 1px solid rgba(255,255,255,0.3);
            transition: transform 0.3s;
            transform-origin: bottom;
        }

        .folder-wrapper:hover .folder-front { 
            transform: rotateX(-15deg) 
            skewX(-5deg); 
        }

        .folder-name { 
            font-size: 0.75rem; 
            color: var(--verde-high); 
            font-weight: bold; 
            text-align: center; 
        }

        /* --- TARJETAS SCAN  */
        .unit-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, 
            minmax(280px, 1fr)); 
            gap: 20px; 
        }

        .unit-card-wrapper {
            height: 320px; 
            position: relative; 
            border: 1px solid var(--verde-base);
            background: #050705; 
            overflow: hidden; 
            border-radius: 12px 0 12px 0; 
            transition: 0.3s;
        }

        .unit-image-link {
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%;
            z-index: 1; 
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .unit-card-wrapper:hover .unit-image-link { 
            height: 150px; 
        }

        .unit-image-link img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            filter: brightness(0.4) grayscale(0.5); 
            transition: 0.5s; 
        }

        .unit-card-wrapper:hover img { 
            filter: brightness(1) grayscale(0); 
        }

        .unit-card-wrapper::before {
            content: ":: SCAN DATA ::"; 
            position: absolute;
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%);
            z-index: 5; 
            color: #fff; 
            font-size: 0.8rem; 
            pointer-events: none; 
            transition: 0.3s;
        }

        .unit-card-wrapper:hover::before { 
            opacity: 0; 
        }

        .unit-info { 
            position: absolute; 
            top: 160px; 
            left: 0; 
            width: 100%; 
            padding: 15px; 
            opacity: 0; 
            transition: 0.4s ease 0.2s; 
            z-index: 2; 
        }
        .unit-card-wrapper:hover .unit-info { 
            opacity: 1; 
        }

        .unit-name { 
            color: var(--verde-high); 
            font-size: 1px; 
            margin-bottom: 5px; 
            display: block; 
        }

        .unit-desc { 
            font-size: 0.85rem; 
            color: var(--gris-dim); 
            line-height: 1.3; 
        }

        /* --- STATUS HUD --- */
        .status-row { display: flex; 
            justify-content: space-between; 
            padding: 10px 0; 
            border-bottom: 1px solid var(--borde-dark); 
        }
        
        .status-online { 
            color: #00ff00; 
            text-shadow: 0 0 5px #00ff00; 
        }

        /* --- SCROLLBAR --- */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-negro); }
        ::-webkit-scrollbar-thumb { background: var(--verde-base); }

        .win-view-selector {
        margin-left: 20px;
        display: flex;
        gap: 10px;
        border-left: 1px solid var(--borde-dark);
        padding-left: 20px;
        }

        .view-btn {
            font-size: 0.7rem;
            padding: 2px 8px;
            border: 1px solid var(--gris-dim);
            color: var(--gris-dim);
            cursor: pointer;
            background: transparent;
        }

        .view-btn:hover, .view-btn.active {
            color: var(--verde-high);
            border-color: var(--verde-base);
            background: rgba(158, 194, 158, 0.1);
        }

        /* --- MODOS DE TAMAÑO PARA EL GRID --- */

        /* PEQUEÑO (S) */
        .explorer-grid.size-s { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 15px; }
        .explorer-grid.size-s .win11-folder { width: 45px; height: 35px; }
        .explorer-grid.size-s .folder-name { font-size: 0.65rem; }

        .unit-grid.size-s { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
        .unit-grid.size-s .unit-card-wrapper { height: 200px; }
        .unit-grid.size-s .unit-card-wrapper:hover .unit-image-link { height: 80px; }
        .unit-grid.size-s .unit-info { top: 90px; padding: 8px; }
        .unit-grid.size-s .unit-name { font-size: 10px; }
        .unit-grid.size-s .unit-desc { font-size: 10px !important;} 

        /* MEDIANO (M) */
        .explorer-grid.size-m { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
        .explorer-grid.size-m .win11-folder { width: 55px; height: 45px; }
        .unit-grid.size-m .unit-card-wrapper:hover .unit-image-link { height: 80px; }
        .unit-grid.size-m .unit-info { top: 90px; padding: 8px; }
        .unit-grid.size-m .unit-name { font-size: 30px; }
        .unit-grid.size-m .unit-desc { font-size: 30px;} 

        /* GRANDE (L) */
        .unit-grid.size-l { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
        .explorer-grid.size-l .win11-folder { width: 75px; height: 65px; }
        .unit-grid.size-l .unit-card-wrapper { height: 400px; }
        .unit-grid.size-l .unit-card-wrapper:hover .unit-image-link { height: 80px; }
        .unit-grid.size-l .unit-info { top: 90px; padding: 8px; }
        .unit-grid.size-l .unit-name { font-size: 40px; }
        .unit-grid.size-l .unit-desc { font-size: 40px;} 

        .unit-grid {
        display: grid !important;
        width: 100% !important; /* Obliga al grid a usar todo el ancho de la ventana */
        gap: 20px;
        padding: 10px;
        align-content: start;
    }

    /* Asegura que el visor de la derecha crezca y no se bloquee */
        .win-main-view, .win-viewport {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow-y: auto !important; 
        overflow-x: hidden !important;
    }

    .win-main-view::-webkit-scrollbar, .win-viewport::-webkit-scrollbar {
        width: 6px !important;
    }

    .win-main-view::-webkit-scrollbar-track, .win-viewport::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2) !important;
    }

    .win-main-view::-webkit-scrollbar-thumb, .win-viewport::-webkit-scrollbar-thumb {
        background: var(--verde-base) !important;
        border-radius: 0 !important;
    }

    .win-sidebar::-webkit-scrollbar {
        width: 2px !important;
    }


    .side-group summary {
        list-style: none;
        padding: 10px 15px;
        font-size: 0.7rem;
        color: var(--gris-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .side-group summary::-webkit-details-marker { display: none; }
    .side-group summary::before { content: "⌵"; font-size: 1rem; transition: 0.2s; }
    .side-group[open] summary::before { transform: rotate(-90deg); }



    /* Cuando la tarjeta tiene la clase 'corrupted' */
    .unit-card-wrapper.corrupted {
        border-color: var(--rojo-error) !important;
        animation: not-available 0.15s infinite !important;
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.4) !important;
    }

    .unit-card-wrapper.corrupted::before {
        content: ":: [!] ACCESS_DENIED [!] ::" !important;
        color: var(--rojo-error) !important;
        font-weight: bold;
        text-shadow: 0 0 8px var(--rojo-error);
    }

    .unit-card-wrapper.corrupted .unit-image-link img {
        filter: grayscale(1) brightness(0.2) sepia(1) hue-rotate(-50deg) saturate(5) !important;
    }

    .unit-card-wrapper.corrupted .unit-name {
        color: var(--rojo-error) !important;
        text-shadow: 0 0 5px var(--rojo-error);
    }


    .anim-opening { 
        animation: glitch-open 0.4s both !important; 
    }

    .anim-closing { 
        animation: glitch-close 0.3s both !important; 
    }
     
    /* --- ESTILOS DE ARCHIVOS CLASIFICADOS --- */
    .archive-sidebar {
        width: 250px;
        border-right: 1px solid var(--verde-base);
        background: rgba(0,0,0,0.3);
        display: flex; flex-direction: column;
    }

    .archive-list-container {
        overflow-y: auto; flex: 1;
    }

    .archive-item {
        padding: 15px 20px;
        cursor: pointer;
        border-bottom: 1px solid var(--borde-dark);
        color: var(--gris-dim);
        transition: 0.2s;
    }

    .archive-item:hover, .archive-item.active {
        background: rgba(158, 194, 158, 0.1);
        color: var(--verde-high);
        padding-left: 30px; /* Efecto de movimiento */
    }

    .archive-viewport { flex: 1; position: relative; }

    /* --- GALERÍA --- */
    .main-img-wrapper {
        width: 100%;
        height: 400px;
        border: 1px solid var(--verde-base);
        margin-bottom: 10px;
        overflow: hidden;
    }

    #dos-main-img {
        width: 100%; height: 100%; object-fit: cover;
        transition: 0.3s;
    }

    .thumbnail-grid {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
    }

    .thumb-img {
        width: 100%; height: 80px; object-fit: cover;
        border: 1px solid var(--borde-dark);
        cursor: pointer;
        opacity: 0.6; transition: 0.2s;
    }

    .thumb-img:hover { opacity: 1; border-color: var(--verde-high); }

    /* --- TAGS PERSONALIZADOS (SELECTORES) --- */
    .tag-badge {
        display: inline-block;
        padding: 5px 10px;
        margin: 0 5px 5px 0;
        border: 1px solid var(--verde-base);
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    /* Iconos automáticos según el nombre del tag */
    .tag-badge.tag-horror::before    { content: "💀 "; }
    .tag-badge.tag-nsfw::before      { content: "🔞 "; color: var(--rojo-error); }
    .tag-badge.tag-romance::before   { content: "♥ "; }
    .tag-badge.tag-fantasy::before   { content: "🔮 "; }
    .tag-badge.tag-scifi::before     { content: "💾 "; }
    
    /* Añade más según tus necesidades */

    .artist-link {
        color: var(--verde-base);
        text-decoration: none;
        border-bottom: 1px dashed var(--verde-base);
        transition: 0.2s;
    }
    .artist-link:hover {
        color: var(--bg-negro);
        background-color: var(--verde-high);
        border-bottom: 1px solid var(--verde-high);
    }


    /* --- CAPA DE TRANSICIÓN (GLITCH FULLSCREEN) --- */
    .glitch-transition {
        display: none; /* Oculto */
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: #000;
        z-index: 999999; /* Por encima de TODO */
        opacity: 0.9;
    }
    .glitch-transition.active {
        display: block;
        animation: full-glitch 0.5s steps(2) forwards;
    }

    /* --- ESTILO DEL SELECTOR DE MÚSICA --- */
    .music-selector-wrapper {
        position: relative;
        display: inline-block;
        margin-left: 10px; /* Separación del botón de tema */
        z-index: 12000 !important;
    }

    /* Reutilizamos las clases del menú de temas para que sean iguales */
    #music-menu .theme-option {
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }


    #vfx-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* El modo 'color-dodge' o 'screen' es vital para el pixel sorting */
    mix-blend-mode: screen;
    /* Este filtro elimina la sensación de "dibujo" y lo vuelve "señal" */
    filter: contrast(1.8) brightness(1.2) saturate(1.5);
}