/* ==========================================================================
   NEXTZHOP APP STREAM (V40.0 - COMPONENT ARCHITECTURE)
   Capa de Componentes Operativos: Formularios, Pestañas, Streams y Overlays.
   ========================================================================== */
   
/* ==========================================================================
   1. LAYOUT MAESTRO (GLOBAL)
   ========================================================================== */
.nz-settings-layout, .nz-editor-layout, .nz-design-layout, .nz-dash-layout, .nz-inventory-layout, .nz-metrics-layout, .nz-orders-layout, .nz-discovery-layout, .nz-network-layout, .nz-vault-layout { 
    display: flex; width: 100%; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px);
    position: relative; background-color: var(--hub-bg-app); 
}

/* Hub Layouts con scroll infinito */
.nz-discovery-layout, .nz-network-layout { height: calc(100dvh - 60px); overflow: hidden; }

.nz-settings-main, .nz-editor-main, .nz-design-main, .nz-dash-main, .nz-inventory-main, .nz-metrics-main, .nz-orders-main, .nz-vault-main { 
    display: flex; flex-direction: column; width: 100%; position: relative; flex: 1; 
    overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}

.nz-discovery-main, .nz-network-main { display: flex; flex-direction: column; width: 100%; height: 100%; position: relative; flex: 1; overflow: hidden; }



.nz-settings-wrapper, .nz-editor-wrapper, .nz-design-wrapper, .nz-dash-wrapper, .nz-inventory-wrapper, .nz-metrics-wrapper, .nz-orders-wrapper, .nz-vault-wrapper { 
    width: 100%; padding-bottom: calc(120px + env(safe-area-inset-bottom)); 
}

/* ==========================================================================
   2. CABECERAS DE SECCIÓN & ALERTAS
   ========================================================================== */
.nz-settings-header, .nz-editor-header, .nz-design-header, .nz-dash-header, .nz-inventory-header, .nz-metrics-header, .nz-orders-header, .nz-network-header, .nz-vault-header {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 48px 24px 24px; background-color: var(--hub-bg-app);
}

.nz-editor-header, .nz-design-header, .nz-dash-header, .nz-inventory-header, .nz-metrics-header, .nz-orders-header, .nz-network-header, .nz-vault-header {
    padding-bottom: 32px; border-bottom: 1px solid var(--hub-border);
}

.nz-hub-brand-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-style: italic; line-height: 1; 
    color: var(--hub-text-main); margin-top: 8px; margin-bottom: 0;
    font-family: var(--hub-font-display, serif); letter-spacing: -0.02em; word-break: break-word; text-transform: uppercase;
}

.nz-settings-alert, .nz-editor-alert {
    display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; 
    border-bottom: 1px solid var(--hub-border); background-color: var(--hub-accent-soft); 
    width: 100%; text-align: center;
}

/* ==========================================================================
   3. NAVEGACIÓN STICKY (PESTAÑAS MAESTRAS - REFACTOR V6.1)
   ========================================================================== */
.nz-settings-tabs-nav, 
.nz-editor-tabs-nav, 
.nz-orders-tabs-nav { 
    display: flex; 
    background-color: var(--hub-bg-app); 
    border-bottom: 1px solid var(--hub-border); 
    position: sticky !important; 
    top: 0; /* Punto de anclaje clínico: Sello con el techo del viewport */
    z-index: 1000; /* Prioridad de Capa 5 sobre el flujo del Master Canvas */
    overflow-x: auto; 
    white-space: nowrap; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.nz-editor-tabs-nav, 
.nz-orders-tabs-nav { 
    gap: 16px; 
    padding: 0 24px; 
    scroll-snap-type: x mandatory; 
}

/* Ocultamiento de railes de scroll (Obsidian Minimalist) */
.nz-settings-tabs-nav::-webkit-scrollbar, 
.nz-editor-tabs-nav::-webkit-scrollbar, 
.nz-orders-tabs-nav::-webkit-scrollbar { 
    display: none; 
}

/* Inyección de Sombra Técnica (Feedback de Scroll Pasivo) */
.nz-editor-tabs-nav::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
    pointer-events: none;
}

/* Estilización de Gatillos (Buttons & Filters) */
.nz-hub-filter-tab, 
.tab-btn { 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 10px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--hub-text-muted); 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nz-hub-filter-tab { 
    flex: 1; 
    padding: 16px 24px; 
    background: transparent; 
    border: none; 
}

.tab-btn { 
    padding: 16px 8px; 
    scroll-snap-align: start; 
}

/* Estados Activos: Zero-Air Alignment */
.nz-hub-filter-tab.active, 
.tab-btn:hover, 
.tab-btn.active { 
    color: var(--hub-text-main); 
    border-bottom-color: var(--hub-text-main); 
}

/* Enlaces de Navegación Lateral (Si aplica) */
.tab-btn-link {
    font-family: var(--hub-font-mono, monospace); 
    font-size: 10px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--hub-text-muted); 
    padding: 16px 8px; 
    border-bottom: 2px solid transparent; 
    cursor: pointer; 
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    scroll-snap-align: start; 
    white-space: nowrap; 
    display: inline-block;
}
.tab-btn-link:hover, 
.tab-btn-link.active { 
    color: var(--hub-text-main); 
    border-bottom-color: var(--hub-text-main); 
}

/* ==========================================================================
   4. MOTOR LINEAL (ZERO-AIR STREAM CONTAINER)
   ========================================================================== */
.nz-stream-container {
    width: 100%; max-width: 540px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 0; background-color: var(--hub-bg-app);
}
@media (min-width: 768px) { .nz-stream-container { border-left: 1px solid var(--hub-border); border-right: 1px solid var(--hub-border); min-height: 100vh; } }
.nz-tab-content-wrapper { padding: 32px 24px; }

.nz-stream-create-node { width: 100%; border-bottom: 1px solid var(--hub-border); }
.nz-btn-create-master {
    width: 100%; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 12px;
    background-color: var(--hub-text-main); color: var(--hub-text-inverse); border: none; cursor: pointer;
    font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: 900; 
    text-transform: uppercase; letter-spacing: 0.1em; transition: opacity 0.3s;
}
.nz-btn-create-master:hover { opacity: 0.9; }

.nz-empty-feed-node {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 24px; text-align: center; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app);
}

/* ==========================================================================
   5. TARJETAS, FORMULARIOS & COMPONENTES COMPARTIDOS
   ========================================================================== */
.nz-stream-item, .nz-stream-node { display: flex; flex-direction: column; background-color: var(--hub-bg-app); border-bottom: 1px solid var(--hub-border); }
.nz-stream-node { padding: 0; } 
.nz-stream-item { padding: 32px 24px; }
.nz-stream-item-header, .nz-stream-node-header { padding: 32px 24px 24px; margin-bottom: 0; }

.nz-input-full { width: 100%; display: block; border-radius: 0; border: 1px solid var(--hub-border); background-color: transparent; color: var(--hub-text-main); }
.nz-input-full:focus { border-color: var(--hub-text-main); outline: none; }

.nz-stream-action-row { display: flex; align-items: center; justify-content: space-between; padding: 24px; cursor: pointer; transition: background-color 0.3s; text-decoration: none; }
.nz-stream-action-row:hover { background-color: var(--hub-bg-card); }
.nz-action-label { font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); margin: 0; }

.nz-stat-row { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px dashed var(--hub-border); cursor: pointer; transition: background-color 0.3s; }
.nz-stat-row:last-child { border-bottom: none; }
.nz-stat-row:hover { background-color: var(--hub-bg-card); }
.nz-stat-value { font-family: var(--hub-font-mono, monospace); font-size: 1.25rem; font-weight: 900; color: var(--hub-text-main); letter-spacing: -0.05em; }

.nz-mastery-header { padding: 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-card); }
.nz-mastery-bar-wrap { width: 100%; height: 2px; background-color: var(--hub-border); margin-top: 16px; overflow: hidden; }
.nz-mastery-bar-fill { height: 100%; background-color: var(--hub-accent); transition: width 1s ease; box-shadow: 0 0 10px var(--hub-accent); }

.nz-milestone-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--hub-border); text-decoration: none; transition: background-color 0.3s; }
.nz-milestone-row:last-child { border-bottom: none; }
.nz-milestone-row:hover { background-color: var(--hub-bg-card); }

/* ==========================================================================
   6. COMPONENTES ESPECÍFICOS (METRICS, DESIGN, ORDERS)
   ========================================================================== */
.nz-stream-chart-node { display: flex; flex-direction: column; padding: 32px 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-card); }
.nz-kpi-node { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px dashed var(--hub-border); background-color: var(--hub-bg-app); }
.nz-kpi-node:last-child { border-bottom: 1px solid var(--hub-border); }
.nz-kpi-label { font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.5; color: var(--hub-text-main); margin: 0; }
.nz-kpi-value { font-family: var(--hub-font-display, serif); font-size: 2rem; font-weight: 900; font-style: italic; line-height: 1; color: var(--hub-text-main); margin: 0; letter-spacing: -0.05em; }
.nz-kpi-highlight { border-left: 4px solid var(--hub-accent); background-color: rgba(var(--hub-accent-rgb, 0,0,0), 0.05); border-bottom: 1px solid var(--hub-border); }
.nz-kpi-highlight .nz-kpi-label, .nz-kpi-highlight .nz-kpi-value { color: var(--hub-accent); opacity: 1; }
.nz-radar-header { padding: 32px 24px 16px; display: flex; align-items: center; justify-content: space-between; background-color: var(--hub-bg-app); border-bottom: 1px solid var(--hub-border); }
.nz-radar-card { display: flex; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); transition: background-color 0.3s; }
.nz-radar-card:hover { background-color: var(--hub-bg-card); }
.nz-radar-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.nz-radar-email { font-size: 11px; font-weight: bold; color: var(--hub-text-main); margin-bottom: 4px; word-break: break-all; }
.nz-radar-price { font-family: var(--hub-font-display, serif); font-size: 1.25rem; font-weight: 900; font-style: italic; color: var(--hub-accent); }
.nz-radar-product { font-size: 10px; font-weight: bold; text-transform: uppercase; color: var(--hub-text-main); margin-bottom: 4px; }
.nz-radar-meta { font-family: var(--hub-font-mono, monospace); font-size: 8px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); display: flex; gap: 8px; flex-wrap: wrap; }
.nz-radar-actions { display: flex; gap: 8px; margin-top: 20px; }
.nz-radar-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; font-family: var(--hub-font-mono, monospace); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border-radius: var(--hub-radius-btn); }
.nz-btn-email { border: 1px solid var(--hub-border); color: var(--hub-text-main); background-color: transparent; }
.nz-btn-wsp { background-color: var(--hub-accent); color: #000; border: none; }

.nz-order-card { display: flex; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); cursor: pointer; transition: background-color 0.3s ease; }
.nz-order-card:hover { background-color: var(--hub-bg-card); }
.nz-order-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.nz-order-number { font-family: var(--hub-font-display, serif); font-size: 1.5rem; font-style: italic; font-weight: 900; color: var(--hub-text-main); line-height: 1; margin: 0; }
.nz-order-total { font-family: var(--hub-font-mono, monospace); font-size: 1.25rem; font-weight: 900; color: var(--hub-text-main); letter-spacing: -0.05em; margin: 0; }
.nz-order-customer { font-size: 11px; font-weight: bold; text-transform: uppercase; color: var(--hub-text-main); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-order-meta { font-family: var(--hub-font-mono, monospace); font-size: 9px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); margin: 0; }
.nz-order-bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hub-border); }

.nz-status-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--hub-radius-btn); font-family: var(--hub-font-mono, monospace); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.nz-status-active { background-color: rgba(var(--hub-accent-rgb, 29, 185, 84), 0.1); color: var(--hub-accent); border: 1px solid var(--hub-accent); }
.nz-status-completed { background-color: rgba(255, 255, 255, 0.05); color: var(--hub-text-main); border: 1px solid var(--hub-border); }
.nz-status-cancelled { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.nz-status-trash { background-color: rgba(156, 163, 175, 0.1); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.3); }
.nz-order-action-link { font-family: var(--hub-font-mono, monospace); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); opacity: 0.5; transition: opacity 0.3s; }
.nz-order-card:hover .nz-order-action-link { opacity: 1; }

.nz-drawer-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.nz-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.nz-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 100%; max-width: 480px; background-color: var(--hub-bg-card); border-left: 1px solid var(--hub-border); box-shadow: -20px 0 50px rgba(0,0,0,0.5); z-index: 9999; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.nz-drawer.open { transform: translateX(0); }
.nz-drawer-header { padding: 32px 24px; border-bottom: 1px solid var(--hub-border); display: flex; justify-content: space-between; align-items: center; background-color: var(--hub-bg-app); }

/* ==========================================================================
   6.A DRAWER PEDIDOS: CORRECCIÓN DE CONTRASTE (OBSIDIAN READY)
   ========================================================================== */
#drawer-content h4 {
    font-family: var(--hub-font-mono, monospace) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--hub-text-main) !important;
    opacity: 0.4 !important; 
    margin: 0 0 8px 0 !important;
}

#drawer-content div,
#drawer-content span,
#drawer-content strong {
    color: var(--hub-text-main);
}

#drawer-content select,
#drawer-content input {
    color: var(--hub-text-main) !important;
    border-color: var(--hub-border) !important;
    background-color: var(--hub-bg-card) !important;
}

#drawer-content select option {
    background-color: var(--hub-bg-card);
    color: var(--hub-text-main);
}

/* ==========================================================================
   7. INTERFAZ DE USUARIO (TOGGLES Y RADIOS)
   ========================================================================== */
.nz-toggle-wrapper { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.nz-toggle-input { display: none; }
.nz-toggle-track { width: 36px; height: 20px; border-radius: 20px; background-color: var(--hub-border); transition: background-color 0.3s ease; position: relative; }
.nz-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background-color: var(--hub-text-muted); border-radius: 50%; transition: transform 0.3s ease, background-color 0.3s ease; }
.nz-toggle-input:checked + .nz-toggle-track { background-color: var(--hub-text-main); }
.nz-toggle-input:checked + .nz-toggle-track::after { transform: translateX(16px); background-color: var(--hub-bg-app); }

.nz-radio-stack { display: flex; flex-direction: column; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); overflow: hidden; }
.nz-radio-stack input[type="radio"] { display: none; }
.nz-radio-stack label { display: block; border-bottom: 1px solid var(--hub-border); cursor: pointer; }
.nz-radio-stack label:last-child { border-bottom: none; }
.nz-radio-stack .nz-hub-radio-card { padding: 16px; text-align: center; font-family: var(--hub-font-mono, monospace); font-size: 11px; text-transform: uppercase; font-weight: bold; transition: background 0.3s; }
.nz-radio-stack input[type="radio"]:checked + .nz-hub-radio-card { background-color: var(--hub-text-main) !important; color: var(--hub-bg-app); }

.nz-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 24px 32px; }
.nz-theme-selector-card { border: 1px solid var(--hub-border); background-color: var(--hub-bg-card); padding: 12px; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.nz-theme-selector-card.is-active { border-color: var(--hub-text-main); background-color: var(--hub-text-main); }
.nz-theme-selector-card.is-active .nz-theme-label { color: var(--hub-text-inverse); }

.nz-hero-preview { aspect-ratio: 4/5; width: 100%; background-color: #000; position: relative; overflow: hidden; border-top: 1px solid var(--hub-border); border-bottom: 1px solid var(--hub-border); }
.nz-hero-preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0.6; transition: opacity 0.3s, filter 0.3s; }
.nz-hero-preview:hover img { filter: grayscale(0%); opacity: 0.9; }
.nz-hero-preview-btn-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.nz-sortable-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hub-border); }
.block-item { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-card); cursor: grab; transition: background-color 0.3s ease; }
.block-item:last-child { border-bottom: none; }
.block-item:active { cursor: grabbing; background-color: var(--hub-bg-app); }
.nz-drag-handle { opacity: 0.3; transition: opacity 0.3s; color: var(--hub-text-main); display: flex; align-items: center; }
.block-item:hover .nz-drag-handle { opacity: 1; }

/* ==========================================================================
   8. LISTAS Y OVERLAYS (GLOBAL)
   ========================================================================== */
.nz-ref-list { display: flex; flex-direction: column; }
.nz-ref-node { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--hub-border); }
.nz-ref-node:last-child { border-bottom: none; }

.nz-loader-overlay, .nz-social-modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: none; flex-direction: column; 
    align-items: center; justify-content: center; text-align: center; z-index: 99999; 
    background-color: var(--hub-bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
}
.nz-social-modal-overlay { padding: 24px; }
.nz-social-modal-box { width: 100%; max-width: 400px; background-color: var(--hub-bg-card); border: 1px solid var(--hub-border); border-radius: var(--hub-radius-card); padding: 32px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.1); text-align: left; }

/* Toast Notification Nativo */
.nz-toast-notification { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); padding: 16px 24px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); background-color: var(--hub-text-main); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1000; }
.nz-toast-text { color: var(--hub-bg-main); font-size: 10px; font-weight: bold; letter-spacing: 0.2em; font-family: var(--hub-font-mono, monospace); text-transform: uppercase; margin: 0; }

/* ==========================================================================
   9. INVENTORY COMPONENTS (V40.0) TARJETAS FEED (NETWORK)
   ========================================================================== */
.nz-mobile-fab { position: fixed; bottom: 90px; right: 24px; width: 56px; height: 56px; background-color: var(--hub-text-main); color: var(--hub-bg-main); border: none; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; z-index: 90; cursor: pointer; transition: transform 0.2s; }
@media(min-width: 768px){ .nz-mobile-fab { display: none !important; } }

#nz-upload-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; display: flex; justify-content: flex-end; }
#nz-upload-overlay.is-active { opacity: 1; pointer-events: auto; }
.nz-modal-drawer-content { width: 100%; height: 100%; background-color: var(--hub-bg-app); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); border-left: 1px solid var(--hub-border); position: relative; }
#nz-upload-overlay.is-active .nz-modal-drawer-content { transform: translateX(0); }
@media (min-width: 768px) { .nz-modal-drawer-content { max-width: 540px; box-shadow: -20px 0 50px rgba(0,0,0,0.5); } }

.nz-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 24px 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); flex-shrink: 0; }
.nz-modal-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding-bottom: 120px; }

.nz-node-header { margin-bottom: 24px; }
.nz-node-title { font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--hub-text-main); margin: 0; }
.nz-node-subtitle { font-size: 9px; opacity: 0.5; margin-top: 4px; display: block; color: var(--hub-text-main); margin-bottom: 8px; }

.nz-media-preview-box { border: 1px dashed var(--hub-border); border-radius: var(--hub-radius-btn); display: flex; align-items: center; justify-content: center; background-position: center; background-size: cover; cursor: pointer; transition: opacity 0.3s; background-color: var(--hub-bg-card); }
.nz-media-preview-box:hover { opacity: 0.8; }
.nz-matrix-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--hub-border); }
.nz-matrix-row:last-child { border-bottom: none; }
.nz-matrix-input { width: 100%; padding: 8px; border: 1px solid var(--hub-border); background: var(--hub-bg-card); color: var(--hub-text-main); font-family: var(--hub-font-mono, monospace); font-size: 10px; border-radius: 4px; outline: none; transition: border-color 0.3s; }
.nz-matrix-input:focus { border-bottom-color: var(--hub-accent) !important; outline: none; }

.nz-modal-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, var(--hub-bg-app) 70%, transparent); pointer-events: none; }
.nz-modal-submit-btn { width: 100%; padding: 20px 0; border: none; border-radius: 0; border: 1px solid var(--hub-border); background-color: var(--hub-text-main); color: var(--hub-text-inverse); font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; pointer-events: auto; cursor: pointer; }

.nz-feed-card { display: flex; flex-direction: column; position: relative; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); transition: background-color 0.3s; }
.nz-card-media-wrapper { width: 100%; aspect-ratio: 1 / 1; background-color: #000; position: relative; overflow: hidden; display: block; text-decoration: none;}
.nz-card-media-wrapper .nz-archive-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: grayscale(100%); transition: filter 0.5s, opacity 0.5s; z-index: 0;}
.nz-feed-card:hover .nz-archive-img { filter: grayscale(0%) !important; opacity: 1 !important; }
.nz-archive-gradient { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%); opacity: 0.8; z-index: 10;}

.nz-card-badge { position: absolute; z-index: 20; display: inline-block; background-color: rgba(var(--hub-bg-app-rgb, 0,0,0), 0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 6px 12px; border-radius: var(--hub-radius-btn); font-family: var(--hub-font-mono, monospace); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.nz-badge-left { top: 16px; left: 16px; border: 1px solid var(--hub-border); color: var(--hub-text-main); }
.nz-badge-right { top: 16px; right: 16px; }

.nz-card-meta { padding: 24px; display: flex; justify-content: space-between; align-items: flex-end; background-color: var(--hub-bg-app); }
.nz-card-meta h3 { font-size: 1.25rem; font-family: var(--hub-font-display, serif); font-weight: bold; text-transform: uppercase; color: var(--hub-text-main); margin: 0; line-height: 1.1; word-break: break-word; }
.nz-card-meta p { font-family: var(--hub-font-mono, monospace); font-size: 9px; opacity: 0.4; letter-spacing: 0.1em; color: var(--hub-text-main); margin: 8px 0 0 0; text-transform: uppercase; }

.nz-price-regular { font-family: var(--hub-font-mono, monospace); font-size: 1.25rem; font-weight: 900; color: var(--hub-text-main); letter-spacing: -0.05em; }
.nz-price-sale-old { font-family: var(--hub-font-mono, monospace); font-size: 9px; opacity: 0.4; text-decoration: line-through; color: var(--hub-text-main); margin-bottom: 4px; }
.nz-price-sale-new { font-family: var(--hub-font-mono, monospace); font-size: 1.25rem; font-weight: 900; color: var(--hub-accent); letter-spacing: -0.05em; }

.nz-card-actions { display: flex; width: 100%; border-top: 1px solid var(--hub-border); background-color: var(--hub-bg-card); }
.nz-card-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0; border: none; background: transparent; font-family: var(--hub-font-mono, monospace); font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; transition: opacity 0.3s; text-decoration: none; }
.nz-card-action-btn:hover { opacity: 0.6; }
.nz-action-edit { color: var(--hub-text-main); }
.nz-action-view { color: var(--hub-text-main); border-left: 1px solid var(--hub-border); border-right: 1px solid var(--hub-border); }
.nz-action-delete { color: #ef4444; }

.nz-card-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: var(--hub-bg-card); }
.nz-card-img-placeholder span { font-family: var(--hub-font-mono, monospace); font-size: 10px; opacity: 0.3; letter-spacing: 0.2em; text-transform: uppercase; }
.nz-card-meta-left { min-width: 0; padding-right: 16px; }
.nz-card-meta-right { text-align: right; flex-shrink: 0; }
.nz-card-action-btn svg { margin-right: 8px; }
.nz-badge-error { border-color: #ef4444 !important; color: #ef4444 !important; }


/* ==========================================================================
   9.1 FIX: SELECTOR DE CATEGORÍAS (OBSIDIAN COUTURE)
   ========================================================================== */
#nz-inventory-category {
    background-color: transparent;
    color: var(--hub-text-main);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
#nz-inventory-category option {
    background-color: var(--hub-bg-card); /* Fuerza el fondo oscuro en los tags nativos */
    color: var(--hub-text-main);
}

/* ==========================================================================
   9.2 INVENTORY GRID ENGINE OVERRIDE (EDITORIAL ROW MODE UNIFIED)
   Anulación del comportamiento Grid heredado para forzar apilamiento vertical
   ========================================================================== */
.nz-inventory-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    border-bottom: none !important;
}

/* ==========================================================================
   9.3 LARGE EDITORIAL STREAM (INDUSTRIAL RECEIPT - V40.6)
   ========================================================================== */
.nz-feed-card-editorial {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid var(--hub-border);
    background-color: var(--hub-bg-app);
    transition: background-color 0.3s ease;
}
.nz-feed-card-editorial:hover { background-color: var(--hub-bg-card); }

/* --- ZONA 1: MEDIA CHASSIS (Fondo Transparente/Museo) --- */
.nz-editorial-media {
    width: 110px;
    flex-shrink: 0;
    border-right: 1px solid var(--hub-border);
    background: transparent; /* Purgado el fondo negro pesado */
    position: relative;
    padding: 10px; /* Margen interno para que la prenda respire */
}
@media (min-width: 768px) { .nz-editorial-media { width: 160px; padding: 16px; } }

.nz-editorial-media img, .nz-editorial-media svg {
    width: 100%; height: 100%; object-fit: contain; /* Evita recortes en el diseño de museo */
    opacity: 0.9; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.5s ease, opacity 0.3s ease;
}
.nz-feed-card-editorial:hover .nz-editorial-media img { transform: scale(1.05); opacity: 1; }

/* --- ZONA 2: CORE METADATA (Ticket / Ficha Técnica) --- */
.nz-editorial-core {
    flex: 1; min-width: 0; /* Fuerza matemática del truncamiento del título */
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 24px;
}
.nz-editorial-core h3 {
    font-family: var(--hub-font-display, serif);
    font-size: 1.3rem; font-weight: bold;
    color: var(--hub-text-main); margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-transform: uppercase; letter-spacing: -0.02em;
}

/* Ficha Técnica Dividida Horizontalmente */
.nz-editorial-spec-grid {
    display: flex;
    border-top: 1px solid var(--hub-border); /* Líneas horizontales continuas */
    border-bottom: 1px solid var(--hub-border);
    background-color: transparent;
    width: 100%;
    max-width: 380px;
    margin-top: 16px; margin-bottom: 16px;
}
.nz-spec-cell {
    padding: 10px 0; padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1; /* Distribución equitativa */
}

.nz-spec-label {
    font-family: var(--hub-font-mono, monospace);
    font-size: 8px; font-weight: 900;
    color: var(--hub-text-muted); text-transform: uppercase;
    letter-spacing: 0.1em; opacity: 0.7;
}
.nz-spec-value {
    font-family: var(--hub-font-mono, monospace);
    font-size: 10px; font-weight: bold;
    color: var(--hub-text-main); text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* SEMAFORIZACIÓN DOPAMÍNICA COMERCIAL */
.nz-stock-status { display: inline-flex; align-items: center; gap: 6px; }
.nz-stock-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.nz-stock-available { color: #1DB954 !important; }
.nz-stock-available .nz-stock-dot { background-color: #1DB954; box-shadow: 0 0 8px #1DB954; }

.nz-stock-review { color: #FFB300 !important; }
.nz-stock-review .nz-stock-dot { background-color: #FFB300; box-shadow: 0 0 8px #FFB300; }

.nz-stock-empty { color: #EF4444 !important; }
.nz-stock-empty .nz-stock-dot { background-color: #EF4444; box-shadow: 0 0 8px #EF4444; }

/* --- ZONA 3: FINTECH LEDGER (Anclado a la Izquierda) --- */
.nz-editorial-price-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.nz-price-regular { font-family: var(--hub-font-mono, monospace); font-size: 1.1rem; font-weight: 900; color: var(--hub-text-main); letter-spacing: -0.05em; }
.nz-price-sale-old { font-family: var(--hub-font-mono, monospace); font-size: 10px; opacity: 0.4; text-decoration: line-through; color: var(--hub-text-main); margin-bottom: 0;}
.nz-price-sale-new { font-family: var(--hub-font-mono, monospace); font-size: 1.1rem; font-weight: 900; color: var(--hub-text-main); letter-spacing: -0.05em; }

/* --- ZONA 4: BOTONERA SIMÉTRICA VERTICAL (Con Texto) --- */
/* 🛡️ FIX: Renombrado a nz-inventory-actions para aislarlo del perfil */
.nz-inventory-actions {
    display: flex; flex-direction: column;
    width: 80px; 
    flex-shrink: 0;
    border-left: 1px solid var(--hub-border);
}
.nz-editorial-btn {
    flex: 1; display: flex; flex-direction: column; gap: 8px; 
    align-items: center; justify-content: center;
    background: transparent; border: none; border-bottom: 1px solid var(--hub-border);
    color: var(--hub-text-main); cursor: pointer; transition: background 0.2s, color 0.2s;
    text-decoration: none; opacity: 0.8;
}
.nz-editorial-btn:last-child { border-bottom: none; }
.nz-editorial-btn:hover { opacity: 1; background: var(--hub-bg-app); color: var(--hub-text-main); }
.nz-editorial-btn.del:hover { color: #ef4444; }

.nz-btn-text {
    font-family: var(--hub-font-mono, monospace);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ==========================================================================
   10. EDITOR: VISIBILIDAD ATÓMICA & COMPONENTES (REFACTOR V6.1)
   ========================================================================== */

/* 10.1 Control de Fuga de Contenido (Fix: Stacking Issue) */
.tab-content { 
    display: none !important; /* Bloqueo absoluto de renderizado */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
}

.tab-content.active { 
    display: flex !important; /* Activación de flujo editorial */
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: nzEditorSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nzEditorSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 10.2 Contenedores de Sección (Obsidian Couture) */
.nz-section-box { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    background-color: var(--hub-bg-app); 
    border-bottom: 1px solid var(--hub-border); 
    padding: 40px 0; 
}
.nz-section-box:last-child { border-bottom: none; }

.nz-tab-title { 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 10px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.2em; 
    color: var(--hub-text-main); 
    margin: 0 0 16px 0; 
    display: block; 
    border-bottom: 1px solid var(--hub-border); 
    padding-bottom: 12px; 
}

.nz-tab-label { 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 9px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    opacity: 0.5; 
    color: var(--hub-text-main); 
    display: block; 
    margin-bottom: 10px; 
}

/* 10.3 Form Controls (High Contrast) */
.nz-form-row { display: flex; flex-direction: column; width: 100%; }

.nz-tab-input, 
.nz-tab-select { 
    width: 100%; 
    background: var(--hub-bg-card); 
    border: 1px solid var(--hub-border); 
    border-radius: 0; 
    color: var(--hub-text-main); 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 11px; 
    font-weight: bold; 
    padding: 16px; 
    outline: none; 
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
.nz-tab-input:focus, 
.nz-tab-select:focus { 
    border-color: var(--hub-text-main); 
    background-color: var(--hub-bg-app);
}

.nz-tab-textarea { 
    width: 100%; 
    background: var(--hub-bg-card); 
    border: 1px solid var(--hub-border); 
    border-radius: 0; 
    color: var(--hub-text-main); 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 11px; 
    padding: 16px; 
    outline: none; 
    transition: border-color 0.3s; 
    resize: vertical; 
    min-height: 120px; 
}

/* 10.4 Theme Selector (Radio Stack) */
.nz-theme-opt { 
    border: 1px solid var(--hub-border); 
    background-color: var(--hub-bg-card); 
    padding: 24px; 
    text-align: left; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.nz-theme-stack input:checked + .nz-theme-opt { 
    border-color: var(--hub-text-main); 
    background-color: var(--hub-text-main); 
}

.nz-theme-stack input:checked + .nz-theme-opt .nz-theme-opt-title, 
.nz-theme-stack input:checked + .nz-theme-opt .nz-theme-opt-desc { 
    color: var(--hub-bg-app); 
}

.nz-theme-opt-title { 
    display: block; 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 11px; 
    font-weight: 900; 
    text-transform: uppercase; 
    color: var(--hub-text-main); 
}

.nz-theme-opt-desc { 
    font-family: var(--hub-font-mono, monospace); 
    font-size: 9px; 
    opacity: 0.6; 
    color: var(--hub-text-main); 
    margin-top: 4px; 
}

/* ==========================================================================
   10.A MOTOR DE PREVISUALIZACIÓN MULTIMEDIA (OBSIDIAN INFRASTRUCTURE)
   Sanea el colapso de altura y blinda el clic infinito en los selectores.
   ========================================================================== */
.nz-preview-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hub-bg-card);
    border: 1px dashed var(--hub-border);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.nz-preview-box:hover {
    border-color: var(--hub-text-main);
    opacity: 0.85;
}

/* El contrato de proporción: Evita que la caja se aplaste a 0px */
.nz-preview-hero {
    aspect-ratio: 16 / 9;
    min-height: 180px;
}

.nz-preview-square {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto;
}

.nz-preview-outro {
    aspect-ratio: 21 / 9;
    min-height: 120px;
}

/* Estilizado del Ticker/Texto guía interno pasivo */
.nz-preview-text {
    font-family: var(--hub-font-mono, monospace);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--hub-text-main);
    opacity: 0.4;
    pointer-events: none; /* Evita que el texto interfiera con el clic del trigger */
    text-transform: uppercase;
}

/* ==========================================================================
   10.B MASTER CANVAS: ENCAPSULAMIENTO VERTICAL (SENIOR OVERRIDE)
   Anula la herencia horizontal de la línea 214 y activa el flujo editorial.
   ========================================================================== */

/* 1. Pivot de Eje: Transformamos la "Fila" en "Columna" */
.nz-stream-container .block-item.accordion-node {
    flex-direction: column;
    align-items: stretch; /* Obliga a header y body a tomar el 100% del ancho */
    padding: 0;           /* Eliminamos el padding global que squishea el contenido */
    cursor: default;      /* El cursor grab lo dejamos solo para el handle */
}

/* 2. Cabecera Anclada: Recuperamos el estilo de la línea 214 pero aislada */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    width: 100%;
    background-color: var(--hub-bg-card);
    transition: background-color 0.3s;
}

/* 3. El Cuerpo (Formulario): Expansión natural hacia abajo */
.accordion-body {
    width: 100%;
    background-color: var(--hub-bg-app);
    /* El truco del grid para apertura fluida se mantiene aquí */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-top-color 0.3s;
    border-top: 1px dashed transparent;
}

.accordion-node.is-open .accordion-body {
    grid-template-rows: 1fr;
    border-top-color: var(--hub-border);
}

.accordion-inner-wrap {
    min-height: 0;
    overflow: hidden;
}

.accordion-inner-content {
    padding: 24px;
    width: 100%;
}
/* ==========================================================================
   12. DISCOVERY, NETWORK, HUB & VAULT COMPONENTS (V40.0)
   ========================================================================== */
/* --- LUZ DE NOTIFICACIÓN (CAMPANA & INBOX) --- */
.nz-notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--hub-accent);
    box-shadow: 0 0 10px var(--hub-accent); /* Brillo tipo Inbox */
    z-index: 10;
}

/* Animación de parpadeo suave */
@keyframes nz-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.nz-animate-pulse {
    animation: nz-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* ------------------------------------------- */

.nz-discovery-scroll-area, .nz-network-scroll-area { 
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; 
    position: relative; z-index: 10; padding-bottom: calc(120px + env(safe-area-inset-bottom)); 
    scroll-behavior: smooth; 
}

.nz-discovery-search-bar { 
    position: sticky; top: 0; z-index: 40; display: flex; flex-direction: column; 
    border-top: 1px solid var(--hub-border); border-bottom: 1px solid var(--hub-border); 
    background-color: rgba(var(--hub-bg-app-rgb, 0,0,0), 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
}
.nz-discovery-search-inner { padding: 16px 24px; display: flex; align-items: center; }
.nz-discovery-input { border: none; padding: 0; background: transparent; width: 100%; outline: none; color: var(--hub-text-main); font-family: var(--hub-font-mono, monospace); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.nz-discovery-input::placeholder { color: var(--hub-text-muted); opacity: 0.5; }

/* Tarjetas de Nodos (Discovery & Network) */
.nz-hero-card { display: flex; flex-direction: column; position: relative; width: 100%; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); }
.nz-hero-card .nz-card-media-wrapper { aspect-ratio: 4 / 5; text-decoration: none; }
.nz-hero-card .nz-archive-img { filter: grayscale(100%) contrast(1.1); transition: filter 0.8s ease, transform 1.2s ease; z-index: 0; }
.nz-hero-card:hover .nz-archive-img { filter: grayscale(0%) contrast(1); transform: scale(1.05); }
.nz-hero-card .nz-archive-gradient { z-index: 10; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); transition: opacity 0.5s ease; }
.nz-hero-card:hover .nz-archive-gradient { opacity: 0.9; }

/* REGLA MAESTRA (BLINDADA) PARA IMÁGENES DENTRO DE TARJETAS */
.nz-card-media-wrapper > img, 
.nz-card-media-wrapper > a > img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: 0; 
}

/* Protección estricta para la miniatura del producto */
.nz-product-tag-thumb img {
    position: relative !important;
    inset: auto !important;
}

.nz-brand-watermark { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; }
.nz-brand-watermark h3 { color: #ffffff; text-align: center; text-transform: uppercase; line-height: 0.8; letter-spacing: -0.05em; width: 100%; font-family: var(--hub-font-display, serif); font-style: italic; font-size: clamp(3rem, 10vw, 6rem); mix-blend-mode: overlay; margin: 0; }

.nz-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hub-border); }
.nz-card-header-info { display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none; }
.nz-card-avatar { width: 32px; height: 32px; border-radius: var(--hub-radius-btn); border: 1px solid var(--hub-border); object-fit: cover; }
.nz-card-owner { font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); margin: 0; }
.nz-card-brand { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--hub-text-muted); margin: 4px 0 0 0; }

.nz-card-price-tag { position: absolute; bottom: 16px; left: 16px; padding: 8px 12px; font-size: 11px; font-weight: bold; letter-spacing: 0.1em; border: 1px solid var(--hub-border); background-color: rgba(var(--hub-bg-app-rgb, 0,0,0), 0.85); backdrop-filter: blur(10px); color: var(--hub-text-main); font-family: var(--hub-font-mono, monospace); z-index: 10; }
.nz-card-title { font-size: 16px; color: var(--hub-text-main); line-height: 1.3; margin: 0; font-family: var(--hub-font-display, serif); }

/* Botones de Acción (Network / Discovery) */
.nz-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0; min-height: 48px; border: none; background: transparent; cursor: pointer; transition: opacity 0.3s; color: var(--hub-text-main); font-family: var(--hub-font-mono, monospace); font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none; }
.nz-action-btn:hover { background-color: var(--hub-bg-app); }
.nz-action-btn.is-active { color: var(--hub-accent); }
.nz-btn-comment { flex: 2; border-left: 1px solid var(--hub-border); border-right: 1px solid var(--hub-border); }
.nz-btn-buy { flex: 3; background-color: var(--hub-text-main) !important; color: var(--hub-text-inverse) !important; }
.nz-btn-save { border-left: 1px solid var(--hub-border); }

/* Cápsulas Flotantes de Productos (Network) */
.nz-product-tag-container { position: absolute; bottom: 16px; left: 16px; right: 16px; pointer-events: auto; z-index: 20; }
.nz-product-tag-card { display: flex; align-items: center; padding: 8px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); background-color: rgba(var(--hub-bg-app-rgb, 0,0,0), 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-decoration: none; transition: opacity 0.3s; }
.nz-product-tag-card:hover { opacity: 0.8; }
.nz-product-tag-thumb { width: 40px; height: 40px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); background-color: #000; }
.nz-product-tag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nz-product-tag-info { margin-left: 12px; flex: 1; overflow: hidden; }
.nz-product-tag-title { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-family: var(--hub-font-mono, monospace); }
.nz-product-tag-action { font-size: 12px; padding: 0 12px; font-weight: 300; color: var(--hub-text-main); }

/* HUD (Heads Up Display) */
.nz-hero-card .nz-card-actions { padding: 16px 20px; }
.nz-hud-info { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.nz-hud-avatar { width: 36px; height: 36px; border-radius: var(--hub-radius-btn); border: 1px solid var(--hub-border); object-fit: cover; background-color: var(--hub-bg-card); flex-shrink: 0; }
.nz-hud-text { display: flex; flex-direction: column; min-width: 0; }
.nz-hud-name { color: var(--hub-text-main); font-weight: bold; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--hub-font-mono, monospace); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-hud-status { color: var(--hub-accent); font-size: 8px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: bold; margin-top: 4px; margin-bottom: 0; }

.nz-hud-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nz-hud-btn { width: 40px; height: 40px; border-radius: var(--hub-radius-btn); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s, opacity 0.3s; border: 1px solid var(--hub-border); background-color: var(--hub-bg-card); color: var(--hub-text-main); }
.nz-hud-btn:hover { background-color: var(--hub-bg-app); }
.nz-btn-follow { color: var(--hub-text-main); }
.nz-btn-follow.active-follow { color: var(--hub-accent); border-color: var(--hub-accent); background-color: rgba(var(--hub-accent-rgb, 0,0,0), 0.1); }
.nz-btn-view { background-color: var(--hub-text-main); color: var(--hub-text-inverse); border-color: var(--hub-text-main); text-decoration: none; }
.nz-btn-view:hover { background-color: transparent; color: var(--hub-text-main); border-color: var(--hub-text-main); }

/* Tarjetas de Bóveda (Saved Vault) */
.nz-vault-item { display: flex; flex-direction: column; position: relative; background-color: #000; border-bottom: 1px solid var(--hub-border); transition: opacity 0.3s ease; }
.nz-vault-media-wrapper { display: block; width: 100%; aspect-ratio: 4/5; position: relative; overflow: hidden; background-color: #000; text-decoration: none; }
.nz-vault-media-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.5s ease; }
.nz-vault-media-wrapper:hover img { opacity: 1; }
.nz-vault-gradient { position: absolute; inset: 0; z-index: 10; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); }
.nz-vault-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 32px 24px; z-index: 20; pointer-events: none; display: flex; flex-direction: column; }
.nz-vault-brand { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 8px; font-family: var(--hub-font-mono, monospace); color: var(--hub-accent); }
.nz-vault-title { color: #ffffff !important; font-size: 1.5rem; font-weight: bold; text-transform: uppercase; line-height: 1.1; letter-spacing: 0.02em; margin-bottom: 4px; font-family: var(--hub-font-display, serif); }
.nz-vault-price { font-size: 11px; text-transform: uppercase; font-weight: bold; margin-top: 12px; font-family: var(--hub-font-mono, monospace); color: #ffffff !important; opacity: 0.8; }
.nz-vault-actions { display: flex; width: 100%; background-color: var(--hub-bg-card); }
.nz-vault-btn { flex: 1; padding: 20px 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: none; cursor: pointer; transition: background-color 0.3s; color: var(--hub-text-main); font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.2em; }
.nz-vault-btn:hover { background-color: var(--hub-bg-app); }
.nz-vault-btn-share { border-right: 1px solid var(--hub-border); }

/* ==========================================================================
   13. INBOX & MESSAGING (V40.0)
   ========================================================================== */
.nz-inbox-layout { display: flex; width: 100%; height: calc(100dvh - 60px); position: relative; background-color: var(--hub-bg-app); overflow: hidden; }
.nz-inbox-container { display: flex; width: 100%; height: 100%; position: relative; overflow: hidden; }

.nz-inbox-sidebar { width: 100%; display: flex; flex-direction: column; flex-shrink: 0; background-color: var(--hub-bg-app); border-right: 1px solid var(--hub-border); position: relative; z-index: 10; height: 100%; overflow: hidden; }
@media (min-width: 768px) { .nz-inbox-sidebar { width: 320px; } }
@media (min-width: 1024px) { .nz-inbox-sidebar { width: 380px; } }
.nz-inbox-sidebar-header { padding: 32px 24px 20px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); }

.nz-inbox-tabs { display: flex; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); width: 100%; }
.nz-inbox-tab-trigger { flex: 1; border: none; background: transparent; cursor: pointer; padding: 16px; font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-muted); transition: all 0.3s ease; border-bottom: 2px solid transparent; }
.nz-inbox-tab-trigger.active { color: var(--hub-text-main); border-bottom-color: var(--hub-text-main); }

.nz-inbox-list-wrapper { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

.nz-contact-list { display: flex; flex-direction: column; gap: 0; }
.nz-user-item-row { padding: 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); transition: background-color 0.3s ease; }
.nz-user-item-row:hover { background-color: var(--hub-bg-card); }
.nz-contact-info-block { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nz-contact-meta-line { display: flex; justify-content: space-between; align-items: baseline; width: 100%; gap: 12px; }
.nz-contact-name-text { font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: bold; text-transform: uppercase; margin: 0; color: var(--hub-text-main); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.nz-contact-time-text { font-family: var(--hub-font-mono, monospace); opacity: 0.4; font-size: 9px; white-space: nowrap; }
.nz-contact-preview-msg { opacity: 0.6; margin: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-transform: none; font-size: 11px; margin-top: 6px; line-height: 1.4; color: var(--hub-text-main); }

.nz-inbox-chat-area { display: none; flex: 1; flex-direction: column; position: relative; background-color: var(--hub-bg-app); height: 100%; overflow: hidden; }
@media (min-width: 768px) { .nz-inbox-chat-area { display: flex; } }

.nz-inbox-chat-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 5; background-color: var(--hub-bg-app); padding: 40px; text-align: center; }
.nz-chat-icon-frame { width: 48px; height: 48px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); background: var(--hub-bg-card); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

.nz-inbox-chat-messages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 32px 24px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.nz-chat-grid-bg { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--hub-border) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.3; }

.nz-chat-header-node { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); z-index: 20; }
.nz-chat-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }

.nz-btn-back-chat { display: none; width: 36px; height: 36px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); background: var(--hub-bg-card); color: var(--hub-text-main); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 767px) { .nz-btn-back-chat { display: flex; } }

.nz-inbox-chat-input-area { padding: 24px; border-top: 1px solid var(--hub-border); background-color: var(--hub-bg-app); z-index: 20; }
.nz-chat-form { display: flex; gap: 12px; width: 100%; }
@media (max-width: 767px) { .nz-inbox-chat-input-area { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (max-width: 767px) { .is-chat-active .nz-inbox-sidebar { display: none; } .is-chat-active .nz-inbox-chat-area { display: flex; } }

.nz-chat-input { flex: 1; border: 1px solid var(--hub-border); padding: 0 20px; border-radius: var(--hub-radius-btn); background: var(--hub-bg-card); font-family: var(--hub-font-mono, monospace); font-size: 11px; color: var(--hub-text-main); outline: none; }
.nz-chat-input:focus { border-color: var(--hub-text-main); }
.nz-chat-submit-btn { padding: 0 24px; min-height: 48px; border-radius: var(--hub-radius-btn); cursor: pointer; background-color: var(--hub-text-main); color: var(--hub-text-inverse); font-weight: bold; border: none; font-family: var(--hub-font-mono, monospace); font-size: 10px; letter-spacing: 0.1em; transition: opacity 0.3s; }
.nz-chat-submit-btn:hover { opacity: 0.8; }

.nz-msg-bubble { 
    padding: 12px 16px; font-size: 11px; line-height: 1.5; max-width: 85%; 
    border-radius: 12px; font-family: var(--hub-font-mono, monospace); 
    letter-spacing: 0.02em; width: fit-content; word-break: break-word; 
    display: flex; flex-direction: column; gap: 4px;
}
.nz-msg-sent { background-color: var(--hub-text-main); color: var(--hub-bg-main); border-bottom-right-radius: 2px; align-self: flex-end; }
.nz-msg-received { background-color: var(--hub-bg-card); color: var(--hub-text-main); border: 1px solid var(--hub-border); border-bottom-left-radius: 2px; align-self: flex-start; }
.nz-msg-time { font-size: 8px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }
.nz-msg-sent .nz-msg-time { align-self: flex-end; color: var(--hub-bg-main); }
.nz-msg-received .nz-msg-time { align-self: flex-start; color: var(--hub-text-main); }

/* ==========================================================================
   13.5 COMPONENTES IA: REPORTE BRUTALISTA EXPANDIDO
   ========================================================================== */

/* Anulador de ancho para reportes complejos */
.nz-msg-bubble.nz-msg-full-width {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Grilla Industrial del Reporte */
.nz-brutalist-report-container {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--hub-border);
    background-color: var(--hub-bg-card);
    width: 100%;
}
@media (min-width: 768px) {
    .nz-brutalist-report-container { grid-template-columns: 1fr 1fr; }
}

.nz-report-panel { padding: 24px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.nz-report-panel:first-child { border-bottom: 1px solid var(--hub-border); }
@media (min-width: 768px) {
    .nz-report-panel:first-child { border-bottom: none; border-right: 1px solid var(--hub-border); }
}

/* Gráfico de Barras CSS Puro */
.nz-stacked-bar-chart {
    width: 100%; height: 24px; display: flex; border: 1px solid var(--hub-border); margin-top: 8px;
}
.nz-bar-segment { height: 100%; transition: width 0.5s ease-in-out; }
.nz-bar-iva { background-color: rgba(128, 128, 128, 0.3); } /* Gris tenue */
.nz-bar-costo { background-color: rgba(128, 128, 128, 0.7); } /* Gris oscuro */
.nz-bar-logistica { background-color: var(--hub-text-main); } /* Negro/Blanco invertido */
.nz-bar-utilidad { background-color: var(--hub-accent); } /* Verde MUSEUM */

/* Botón de Análisis Cognitivo */
.nz-btn-analyze {
    margin-top: auto; padding: 14px 24px; background-color: transparent; color: var(--hub-text-main);
    border: 1px solid var(--hub-text-main); font-family: var(--hub-font-mono, monospace);
    font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em;
    cursor: pointer; transition: all 0.3s ease; text-align: center; width: 100%; display: block;
}
.nz-btn-analyze:hover { background-color: var(--hub-text-main); color: var(--hub-bg-main); }

/* ==========================================================================
   13.5.1 FINANCIAL OS — EXTENSIÓN V7.0
   ========================================================================== */

/* Wrapper principal */
.nz-fos-wrapper {
    border: 1px solid var(--hub-border);
    border-top: 2px solid var(--hub-text-main);
    background-color: var(--hub-bg-card);
    font-family: var(--hub-font-mono, monospace);
    width: 100%;
}

/* Header */
.nz-fos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--hub-border);
}
.nz-fos-sys-label {
    font-size: 9px;
    color: var(--hub-text-main);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
    opacity: 0.4;
}
.nz-fos-period-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(29, 185, 84, 0.08);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: bold;
    color: var(--hub-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nz-fos-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hub-accent);
    display: inline-block;
}
.nz-fos-status {
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.4;
    letter-spacing: 0.06em;
}

/* Body 2 columnas */
.nz-fos-body {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .nz-fos-body { grid-template-columns: 1fr 1fr; }
}
.nz-fos-col { display: flex; flex-direction: column; }
.nz-fos-col-left { border-bottom: 1px solid var(--hub-border); }
@media (min-width: 768px) {
    .nz-fos-col-left { border-bottom: none; border-right: 1px solid var(--hub-border); }
}
.nz-fos-col-right { justify-content: space-between; }

/* Hero utilidad */
.nz-fos-hero {
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--hub-border);
}
.nz-fos-hero-label {
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.nz-fos-hero-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.nz-fos-hero-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--hub-text-main);
    letter-spacing: -0.02em;
    line-height: 1;
}
.nz-fos-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nz-fos-margin-pill {
    font-size: 10px;
    color: var(--hub-accent);
    border: 1px solid rgba(29, 185, 84, 0.4);
    border-radius: 3px;
    padding: 2px 7px;
    font-weight: bold;
}
.nz-fos-orders-tag {
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Ledger */
.nz-fos-ledger { padding: 0 18px; }
.nz-fos-ledger-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--hub-border);
    gap: 6px;
}
.nz-fos-ledger-row:last-child { border-bottom: none; }
.nz-fos-ledger-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--hub-text-main);
    opacity: 0.6;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.nz-fos-ledger-dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    flex-shrink: 0;
}
.nz-fos-ledger-dots {
    flex: 1;
    border-bottom: 1px dotted var(--hub-border);
    margin: 0 6px 3px;
    min-width: 16px;
    opacity: 0.4;
}
.nz-fos-ledger-val {
    font-size: 11px;
    color: var(--hub-text-main);
    opacity: 0.7;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.nz-fos-ledger-val.nz-fos-negative { opacity: 0.4; }
.nz-fos-ledger-row.nz-fos-net .nz-fos-ledger-label {
    opacity: 1;
    font-weight: bold;
    font-size: 11px;
}
.nz-fos-ledger-row.nz-fos-net .nz-fos-ledger-val {
    font-size: 13px;
    font-weight: 900;
    opacity: 1;
}

/* Ticket promedio */
.nz-fos-ticket-panel {
    padding: 16px 18px;
    border-bottom: 1px solid var(--hub-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nz-fos-ticket-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--hub-text-main);
    letter-spacing: -0.02em;
    line-height: 1;
}
.nz-fos-ticket-status {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.nz-fos-ticket-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Gráfico distribución */
.nz-fos-chart-section {
    padding: 14px 18px 16px;
    border-bottom: 1px solid var(--hub-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nz-fos-chart-label {
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nz-fos-bar-track {
    width: 100%;
    height: 6px;
    background: var(--hub-bg-app);
    display: flex;
    gap: 2px;
    overflow: hidden;
}
.nz-fos-bar-seg {
    height: 100%;
    border-radius: 0;
    transition: width 0.5s ease-in-out;
}
.nz-seg-iva      { background: rgba(128, 128, 128, 0.3); }
.nz-seg-costo    { background: rgba(128, 128, 128, 0.6); }
.nz-seg-log      { background: rgba(128, 128, 128, 0.85); }
.nz-seg-util     { background: var(--hub-accent); }

.nz-fos-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.nz-fos-leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: var(--hub-text-main);
    opacity: 0.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nz-fos-leg-dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    flex-shrink: 0;
}
.nz-fos-leg-pct {
    color: var(--hub-text-main);
    opacity: 1;
    font-weight: bold;
    margin-left: 2px;
}
/* ==========================================================================
   14. SOCIAL LIGHTBOX & COMMENTS (V40.0 - OBSIDIAN SENIOR FIX)
   ========================================================================== */
#nz-lightbox-modal {
    position: fixed; inset: 0; z-index: 9999999;
    background-color: var(--hub-bg-app); display: none; opacity: 0;
    transition: opacity 0.3s ease-out; overflow: hidden; 
}
#nz-lightbox-modal.active { opacity: 1; }
body.lightbox-open { overflow: hidden !important; }

.nz-lb-wrapper {
    display: flex; flex-direction: column; 
    width: 100%; max-width: 500px; margin: 0 auto;
    background-color: var(--hub-bg-app); height: 100vh; height: 100dvh;
    border-left: 1px solid var(--hub-border); border-right: 1px solid var(--hub-border);
    position: relative;
}

.nz-lb-global-header {
    background-color: var(--hub-bg-app); border-bottom: 1px solid var(--hub-border);
    padding-top: env(safe-area-inset-top); 
    display: flex; align-items: center; justify-content: space-between;
    padding-left: 20px; padding-right: 20px; height: calc(60px + env(safe-area-inset-top));
    flex-shrink: 0; position: sticky; top: 0; z-index: 50;
}
.nz-lb-btn-back {
    background: transparent; border: none; color: var(--hub-text-main); cursor: pointer; 
    display: flex; align-items: center; gap: 8px; opacity: 0.7; transition: opacity 0.2s;
    font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
}
.nz-lb-btn-back:hover { opacity: 1; color: var(--hub-accent, #1DB954); }

.nz-lb-scroll-area { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background-color: var(--hub-bg-app); }

/* --- 🚀 HEADER DE TARJETA: ALINEACIÓN EXTREMA (FIX) --- */
.nz-lb-card-header { 
    display: flex; align-items: center; justify-content: space-between; /* El contenedor base separa extremos */
    padding: 20px; border-bottom: 1px solid var(--hub-border); background: var(--hub-bg-app); 
}
.nz-lb-card-owner-info { 
    display: flex; align-items: center; gap: 12px; text-decoration: none; 
} /* Se quitó el justify-content interior para que la info quede junta a la izquierda */

.nz-lb-card-avatar { width: 36px; height: 36px; border-radius: var(--hub-radius-btn); border: 1px solid var(--hub-border); object-fit: cover; }
.nz-lb-card-meta-text h4 { font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); margin: 0; }

.nz-lb-options-wrapper { position: relative; }
.nz-lb-options-btn { background: transparent; border: none; color: var(--hub-text-main); opacity: 0.4; cursor: pointer; padding: 4px; transition: opacity 0.2s; }
.nz-lb-options-btn:hover { opacity: 1; }

.nz-lb-dropdown-menu {
    position: absolute; right: 0; top: 100%; margin-top: 8px;
    background-color: var(--hub-bg-card); border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-btn); min-width: 140px; display: none; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 100; overflow: hidden;
}
.nz-lb-options-wrapper.is-open .nz-lb-dropdown-menu { display: flex; }
.nz-lb-dropdown-item {
    display: block; width: 100%; text-align: left; padding: 14px 16px;
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    border: none; border-bottom: 1px solid var(--hub-border); background: transparent; 
    cursor: pointer; color: var(--hub-text-main); transition: background 0.2s; font-family: var(--hub-font-mono, monospace);
}
.nz-lb-dropdown-item:last-child { border-bottom: none; }
.nz-lb-dropdown-item:hover { background-color: var(--hub-bg-app); }
.nz-lb-dropdown-item.del { color: #ef4444; }

/* --- 🚀 ANIMACIÓN TARJETA & MEDIOS --- */
.nz-lb-card { 
    border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); 
    opacity: 0; transform: translateY(10px); animation: lbCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}
@keyframes lbCardFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Modo Editorial (Lookbook) */
.nz-lb-media { position: relative; width: 100%; aspect-ratio: 4/5; background: #000; overflow: hidden; margin-bottom: 0; }
.nz-lb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 🚀 Modo Producto (Fix: Contención de Escala y Zero-CPU) */
.commerce-theme .nz-product-media { 
    background-color: #050505; padding: 20px; aspect-ratio: 1 / 1; 
    display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.commerce-theme .nz-product-media img { 
    width: 100%; height: 100%; object-fit: contain; 
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.nz-lb-card:hover .nz-product-media img { transform: scale(1.03); }

/* --- 🚀 BRANDING & ETIQUETAS --- */
.nz-lb-official-tag { font-size: 8px; color: var(--hub-accent, #1DB954); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 900; display: block; margin-top: 2px; }

/* Corrige la etiqueta de precio duplicada y añade estética Obsidian */
.nz-card-price-tag {
    position: absolute; bottom: 16px; left: 16px; padding: 8px 12px; font-size: 11px; font-weight: bold; letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.85) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: var(--hub-accent, #1DB954) !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--hub-font-mono, monospace); z-index: 10; border-radius: 4px;
}

.nz-lb-product-glass {
    position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: center;
    background-color: rgba(var(--hub-bg-app-rgb, 0,0,0), 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5); text-decoration: none; transition: opacity 0.3s, transform 0.2s; z-index: 20;
}
.nz-lb-product-glass:hover { opacity: 0.8; }
.nz-lb-product-glass:active { transform: scale(0.98); }
.nz-lb-glass-img { width: 40px; height: 40px; background: #000; flex-shrink: 0; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-btn); overflow: hidden; }
.nz-lb-glass-img img { position: relative !important; inset: auto !important; width: 100%; height: 100%; object-fit: cover; }
.nz-lb-glass-info { margin-left: 12px; flex: 1; overflow: hidden; }
.nz-lb-glass-name { font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin: 0; }
.nz-lb-glass-cta { font-family: var(--hub-font-mono, monospace); font-size: 7px; color: var(--hub-text-main); opacity: 0.6; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.nz-lb-glass-arrow { color: var(--hub-text-main); font-size: 12px; padding: 0 12px; font-weight: 300; opacity: 0.5; }

.nz-lb-actions { display: flex; border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); }
.nz-lb-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 16px 0; background: transparent; border: none; cursor: pointer;
    color: var(--hub-text-main); transition: opacity 0.2s; border-right: 1px solid var(--hub-border); gap: 8px;
}
.nz-lb-btn:hover { opacity: 0.7; }
.nz-lb-btn:last-child { border-right: none; }
.nz-lb-btn.active { color: #ef4444; }
.nz-lb-btn.saved-active { color: var(--hub-accent); }

.nz-lb-content { padding: 16px 20px 24px; background-color: var(--hub-bg-app); }
.nz-lb-desc { font-family: var(--hub-font-display, serif); font-size: 12px; line-height: 1.6; color: var(--hub-text-main); opacity: 0.9; }
.nz-lb-brand-inline { font-family: var(--hub-font-mono, monospace); font-weight: 700; text-transform: uppercase; margin-right: 8px; font-size: 10px; letter-spacing: 0.05em; color: var(--hub-text-main); }
.nz-lb-view-comments {
    margin-top: 12px; font-family: var(--hub-font-mono, monospace); font-size: 9px; text-transform: uppercase; 
    font-weight: 700; color: var(--hub-text-muted); letter-spacing: 0.1em; cursor: pointer; display: inline-block; padding: 4px 0;
    transition: color 0.2s ease;
}
.nz-lb-view-comments:hover { color: var(--hub-accent, #1DB954); }

#nz-comments-modal {
    position: fixed; inset: 0; z-index: 99999999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; opacity: 0; transition: opacity 0.3s;
    align-items: flex-end; justify-content: center;
}
#nz-comments-modal.active { opacity: 1; }

.nz-cm-panel {
    width: 100%; max-width: 500px; background-color: var(--hub-bg-card);
    border-radius: var(--hub-radius-card) var(--hub-radius-card) 0 0; display: flex; flex-direction: column;
    max-height: 85dvh; height: auto;
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--hub-border); border-bottom: none;
}
#nz-comments-modal.active .nz-cm-panel { transform: translateY(0); }

.nz-cm-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--hub-border); flex-shrink: 0; }
.nz-cm-title { font-family: var(--hub-font-mono, monospace); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hub-text-main); }
.nz-cm-close { background-color: var(--hub-bg-app); border: 1px solid var(--hub-border); color: var(--hub-text-main); width: 32px; height: 32px; border-radius: var(--hub-radius-btn); font-size: 12px; font-weight: 400; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease, border-color 0.2s ease; }
.nz-cm-close:hover { color: var(--hub-accent, #1DB954); border-color: var(--hub-accent, #1DB954); }

/* ==========================================================================
   NZ_COMMENTS_ADAPTIVE: Corrección de contraste para Temas Light/Dark
   ========================================================================== */

/* ==========================================================================
   NZ_COMMENTS_MASTER: LINEAL MARGIN LOCK (V42.8)
   ========================================================================== */

/* ==========================================================================
   NZ_COMMENTS_CORE: PHASE 44.0 (CLICK-DRIVEN & HEIGHT LOCK)
   ========================================================================== */

/* Bloqueo de Altura y Scroll */
.nz-cm-list { 
    max-height: 450px; /* Altura fija editorial */
    overflow-y: auto; 
    background-color: var(--hub-bg-app); 
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--hub-border);
}

/* Scrollbar técnica minimalista */
.nz-cm-list::-webkit-scrollbar { width: 2px; }
.nz-cm-list::-webkit-scrollbar-thumb { background: var(--hub-border); }

/* La Rejilla y Efecto Luz Green Pulse */
.nz-cm-item { 
    padding: 14px 15px; border-bottom: 1px solid var(--hub-border);
    position: relative; display: block; width: 100%; box-sizing: border-box; 
}
.nz-cm-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent 0%, #1DB954 50%, transparent 100%);
    background-size: 200% 100%; background-position: 100% 0;
    transition: background-position 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.nz-cm-item.nz-pulse-active::after { background-position: -100% 0; }

/* Identidad y Acciones */
.nz-cm-header-lineal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nz-cm-identity-group { display: flex; align-items: center; gap: 10px; }

.nz-cm-more-trigger {
    background: transparent !important; border: none; color: var(--hub-text-main);
    opacity: 0.3; font-size: 16px; cursor: pointer; padding: 0; width: 14px;
    transition: color 0.3s;
}
.nz-cm-more-trigger:hover { opacity: 1; color: #1DB954; }

.nz-cm-avatar-tiny { width: 28px; height: 28px; border-radius: 3px; border: 1px solid var(--hub-border); object-fit: cover; }
.nz-cm-author-slug { font-family: var(--hub-font-mono); font-size: 9px; font-weight: 900; text-transform: uppercase; color: var(--hub-text-main); }
.nz-cm-timestamp { font-family: var(--hub-font-mono); font-size: 7px; color: var(--hub-text-muted); text-transform: uppercase; opacity: 0.4; }

/* Cuerpo del Pensamiento con Sangría Técnica */
.nz-cm-body-box { padding-left: 28px; width: 100%; box-sizing: border-box; }
.nz-cm-text { 
    font-family: var(--hub-font-display, serif); font-size: 11.5px; line-height: 1.5;
    color: var(--hub-text-main); text-align: left !important; margin: 0; opacity: 0.9;
    word-break: break-word; white-space: pre-wrap; 
}

/* Action Sheet (Modal Central) */
#nz-cm-action-sheet {
    position: fixed; inset: 0; z-index: 999999999; display: none;
    align-items: center; justify-content: center; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
#nz-cm-action-sheet.active { display: flex; animation: nzFadeIn 0.2s ease; }
.nz-as-capsule {
    width: 240px; background: var(--hub-bg-card); border: 1px solid var(--hub-border);
    border-radius: 12px; overflow: hidden;
}
.nz-as-btn {
    width: 100%; padding: 16px; background: transparent; border: none;
    border-bottom: 1px solid var(--hub-border); color: var(--hub-text-main);
    font-family: var(--hub-font-mono); font-size: 10px; font-weight: 900;
    text-transform: uppercase; cursor: pointer;
}
.nz-as-btn.del { color: #ef4444; }
.nz-as-btn.disabled { opacity: 0.2; cursor: not-allowed; }
.nz-as-btn:last-child { border-bottom: none; }

@keyframes nzFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* AVATAR TÉCNICO */
.nz-cm-avatar-tiny {
    width: 35px; height: 35px; 
    border-radius: 2px; /* Brutalismo cuadrado */
    border: 1px solid var(--hub-border);
    object-fit: cover;
}

/* NOMBRE DE USUARIO */
.nz-cm-author-slug {
    font-family: var(--hub-font-mono, monospace);
    font-size: 9px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--hub-text-main);
}

/* CRONOLOGÍA */
.nz-cm-timestamp {
    font-family: var(--hub-font-mono, monospace);
    font-size: 7px; color: var(--hub-text-muted);
    text-transform: uppercase; opacity: 0.5;
}

/* CUERPO DEL PENSAMIENTO: INDENTADO Y JUSTIFICADO IZQUIERDA */
.nz-cm-body-box {
    padding-left: 28px; /* Sangría técnica: alinea el texto bajo el avatar */
    padding-right: 10px;
    width: 100%;
    box-sizing: border-box;
}

.nz-cm-text { 
    font-family: var(--hub-font-display, serif);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--hub-text-main);
    text-align: left !important; /* BLOQUEO ESTRICTO IZQUIERDA */
    margin: 0; 
    opacity: 0.9;
    word-break: break-word;
    white-space: pre-wrap;
}

/* MENÚ DE ACCIONES (DROPDOWN) */
.nz-cm-action-menu {
    display: none;
    position: absolute;
    top: 35px; left: 15px;
    background: var(--hub-bg-card);
    border: 1px solid var(--hub-border);
    padding: 8px 12px; z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.nz-cm-action-menu.active { display: block; }

.nz-cm-del-btn {
    background: transparent; border: none;
    color: #ef4444; font-family: var(--hub-font-mono);
    font-size: 8px; font-weight: 900;
    text-transform: uppercase; cursor: pointer;
}

/* --- ÁREA DE ENTRADA (FORM) --- */
.nz-cm-form { 
    display: flex; 
    padding: 16px 20px; 
    background-color: var(--hub-bg-card); 
    border-top: 1px solid var(--hub-border); 
    flex-shrink: 0; 
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); 
}

.nz-cm-input { 
    flex: 1; border: none; background: transparent; 
    font-family: var(--hub-font-display, serif); 
    font-size: 14px; outline: none; 
    color: var(--hub-text-main) !important; 
    padding: 8px 0; 
}

.nz-cm-input::placeholder { 
    color: var(--hub-text-muted); text-transform: uppercase; 
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; 
    font-family: var(--hub-font-mono, monospace); opacity: 0.5;
}

.nz-cm-submit { 
    background: transparent; border: none; 
    color: var(--hub-text-main) !important; 
    font-family: var(--hub-font-mono, monospace); 
    font-weight: 700; font-size: 10px; 
    text-transform: uppercase; letter-spacing: 0.1em; 
    cursor: pointer; padding: 0 0 0 16px; 
}

/* ==========================================================================
   15. COMMAND CENTER / START HUB (V40.0)
   ========================================================================== */
   
   /* --- BOTONES DEL PERFIL EDITORIAL (SEGUIR / MENSAJE / SITIO WEB) --- */
/* 🛡️ FIX: Blindaje de Scope (.nz-profile-hub anula la herencia global) */
.nz-profile-hub .nz-editorial-actions {
    display: flex; 
    width: 100%; 
    border-top: 1px solid var(--hub-border);
    border-bottom: 1px solid var(--hub-border); 
    margin: 0; 
    background: var(--hub-bg-app);
}

.nz-profile-hub .nz-editorial-actions .nz-action-btn {
    flex: 1; 
    background: transparent; 
    border: none; 
    border-right: 1px solid var(--hub-border);
    color: var(--hub-text-main); 
    padding: 14px 0; 
    font-family: var(--hub-font-mono, monospace);
    font-size: 10px; 
    font-weight: 900; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    cursor: pointer; 
    text-align: center; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.nz-profile-hub .nz-editorial-actions .nz-action-btn:last-child { 
    border-right: none; 
}

.nz-profile-hub .nz-editorial-actions .nz-action-btn:hover {
    color: var(--hub-accent); 
    background: rgba(29, 185, 84, 0.03); 
}

.nz-profile-hub .nz-editorial-actions .nz-action-btn:active { 
    background: var(--hub-accent); 
    color: #000; 
}

.nz-start-layout { 
    display: flex; width: 100%; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px);
    position: relative; background-color: var(--hub-bg-app); 
}
.nz-start-main { 
    display: flex; flex-direction: column; width: 100%; position: relative; flex: 1; 
    overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}


.nz-start-wrapper { width: 100%; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

.nz-start-header { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 48px 24px 24px; background-color: var(--hub-bg-app);
}

.nz-hero-feed-block {
    display: flex; flex-direction: column; padding: 40px 24px;
    background-color: var(--hub-bg-app); border-bottom: 1px solid var(--hub-border);
}
.nz-hero-profile-row { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }

.nz-hero-avatar-wrapper { 
    position: relative; width: 64px; height: 64px; 
    border-radius: var(--hub-radius-btn); border: 1px solid var(--hub-border); 
    overflow: hidden; flex-shrink: 0; background-color: var(--hub-bg-card); 
}
.nz-hero-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.nz-hero-avatar-overlay { 
    position: absolute; inset: 0; background-color: rgba(0,0,0,0.7); 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.3s; cursor: pointer; 
}
.nz-hero-avatar-wrapper:hover .nz-hero-avatar-overlay { opacity: 1; }

.nz-hero-stats-row { 
    display: flex; width: 100%; border-top: 1px dashed var(--hub-border); 
    padding-top: 24px; gap: 16px;
}
.nz-stat-line-item { flex: 1; display: flex; flex-direction: column; }

.nz-stream-action-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px; background-color: var(--hub-bg-app);
    border-bottom: 1px solid var(--hub-border);
    text-decoration: none; transition: background-color 0.3s ease;
}
.nz-stream-action-link:hover { background-color: var(--hub-bg-card); }
.nz-action-left-shell { display: flex; align-items: center; gap: 16px; }
.nz-action-vector-icon { color: var(--hub-text-main); display: flex; align-items: center; justify-content: center; opacity: 0.8; }

/* ==========================================================================
   16. PROFILE & IFRAME VIEWPORT (V40.0)
   ========================================================================== */
.nz-profile-layout { 
    width: 100%; height: 100dvh; display: flex; flex-direction: column; 
    background-color: var(--hub-bg-app); position: fixed; inset: 0; z-index: 9999;
}
.nz-profile-iframe { 
    width: 100%; height: 100%; border: none; flex: 1; display: block; 
    opacity: 0; transition: opacity 0.4s ease-out; 
}
.nz-profile-iframe.is-loaded { opacity: 1; }

.nz-profile-empty { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    flex: 1; text-align: center; padding: 40px; background-color: var(--hub-bg-app); position: relative; 
}
.nz-empty-icon-ring { 
    width: 64px; height: 64px; margin-bottom: 24px; border-radius: var(--hub-radius-btn, 8px); 
    border: 1px solid var(--hub-border); display: flex; align-items: center; justify-content: center; 
    background-color: var(--hub-bg-card); 
}

/* ==========================================================================
   17. NOTIFICATIONS SYSTEM (V43.6 - THEME ENGINE ALIGNED)
   Ecosistema Drawer Lateral - Estética Dinámica (CQRS/Zero-Tailwind Compliant)
   ========================================================================== */

/* Capa trasera de bloqueo (Vidrio Ahumado) */
.nz-notif-backdrop {
    position: fixed; inset: 0; 
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 9990; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.nz-notif-backdrop.is-active { opacity: 1; pointer-events: auto; }

/* Contenedor Principal (Sincronizado con el Theme Engine) */
.nz-notif-drawer {
    position: fixed; top: 0; bottom: 0; right: 0; width: 100%; max-width: 100vw;
    height: 100vh; height: 100dvh; 
    background-color: var(--hub-bg-app) !important;
    border-left: 1px solid var(--hub-border) !important; z-index: 9991;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
}
@media (min-width: 768px) { .nz-notif-drawer { max-width: 400px; } }
.nz-notif-drawer.is-active { transform: translateX(0); }

/* Cabecera del Panel */
.nz-notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 32px 24px 20px; 
    border-bottom: 1px solid var(--hub-border) !important;
    background-color: var(--hub-bg-app) !important; flex-shrink: 0;
}
.nz-notif-title { 
    font-family: var(--hub-font-display, "Playfair Display", serif) !important; 
    font-size: 16px !important; font-weight: 800 !important; 
    text-transform: uppercase !important; color: var(--hub-text-main) !important; 
    margin: 0 !important; letter-spacing: 0.1em !important; 
}
.nz-notif-close-btn { 
    background: transparent !important; border: none !important; 
    font-family: var(--hub-font-mono, monospace) !important; font-size: 10px !important; 
    font-weight: normal !important; letter-spacing: 0.1em !important; 
    color: var(--hub-text-muted) !important; text-transform: uppercase !important; cursor: pointer; 
}
.nz-notif-close-btn:hover { color: var(--hub-text-main) !important; }

/* Barra de Filtros Internos */
.nz-notif-filter-bar { 
    display: flex; border-bottom: 1px solid var(--hub-border) !important; 
    background-color: var(--hub-bg-app) !important; flex-shrink: 0; 
}
.nz-notif-filter { 
    flex: 1; text-align: center; padding: 16px 0; 
    font-family: var(--hub-font-mono, monospace) !important; font-size: 10px !important; 
    font-weight: bold !important; letter-spacing: 0.05em !important; 
    color: var(--hub-text-muted) !important; text-transform: uppercase !important; cursor: pointer; 
    border-bottom: 2px solid transparent !important; transition: all 0.3s; 
}
.nz-notif-filter.active, .nz-notif-filter:hover { 
    color: var(--hub-text-main) !important; border-bottom-color: var(--hub-text-main) !important; 
}

/* --- CUERPO DEL STREAM (SCROLLABLE) --- */
.nz-notif-body {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background-color: var(--hub-bg-app) !important; display: flex; flex-direction: column;
}
.nz-notif-body::-webkit-scrollbar { display: none; }

/* Nodos del Feed Dinámico (Sincronizado) */
.nz-notif-row, .nz-notif-item { 
    display: flex !important; align-items: flex-start !important; gap: 16px !important; 
    padding: 24px 20px !important; 
    border-bottom: 1px solid var(--hub-border) !important; 
    text-decoration: none !important; 
    background-color: var(--hub-bg-card) !important; 
    transition: background-color 0.2s ease !important; 
    cursor: pointer !important; box-sizing: border-box !important; 
}
.nz-notif-row:hover, .nz-notif-item:hover { background-color: var(--hub-bg-app) !important; }

/* Alineación de Contenido */
.nz-notif-cell-left, .nz-notif-content { 
    display: flex; flex-direction: column; justify-content: center; 
    min-width: 0; flex: 1; width: 100%; gap: 6px; 
}
.nz-notif-meta, .nz-notif-cell-left > div {
    display: flex !important; justify-content: space-between !important; 
    align-items: center !important; width: 100% !important; margin-bottom: 4px;
}

/* TIPOGRAFÍA ELEGANTE */
.nz-notif-meta-line, .nz-notif-sender { 
    font-family: var(--hub-font-mono, monospace) !important; 
    font-size: 10px !important; 
    font-weight: normal !important; 
    text-transform: uppercase !important; 
    color: var(--hub-text-muted) !important; 
    letter-spacing: 0.05em !important; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.nz-notif-timestamp, .nz-notif-date { 
    font-family: var(--hub-font-mono, monospace) !important; 
    font-size: 10px !important; color: var(--hub-text-muted) !important; opacity: 0.7;
    text-transform: uppercase !important; flex-shrink: 0; font-weight: normal !important;
}

/* El texto principal de la notificación */
.nz-notif-log-text, .nz-notif-text { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; 
    font-size: 13px !important; 
    font-weight: 400 !important; 
    color: var(--hub-text-main) !important; 
    white-space: normal !important; line-height: 1.5 !important; margin: 0 !important;
}

/* Titular opcional */
.nz-notif-headline { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; 
    font-size: 13px !important; font-weight: 600 !important; 
    color: var(--hub-text-main) !important; margin: 0 !important; letter-spacing: 0; 
}

/* Inyección de Color Dopamina (Para el dinero) */
.text-green { color: var(--hub-accent, #00C853) !important; font-weight: 600 !important; }

/* Miniatura de Producto */
.nz-notif-thumb {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 4px; 
    object-fit: cover; border: 1px solid var(--hub-border); background: var(--hub-bg-card); margin-top: 2px;
}

/* Estados Vacíos / Mensajes de Sistema */
.nz-notif-empty-state { 
    flex: 1; display: flex; flex-direction: column; gap: 8px; 
    align-items: center; justify-content: center; padding: 60px 24px; text-align: center; 
}
.nz-notif-mono-text { 
    font-family: var(--hub-font-mono, monospace) !important; font-size: 10px !important; 
    color: var(--hub-text-muted) !important; letter-spacing: 0.05em; text-transform: uppercase; 
}

/* --- FOOTER ESTÁTICO: ESPACIO PUBLICITARIO (HERO SPONSOR) --- */
.nz-notif-footer-ad {
    padding: 24px; border-top: 1px solid var(--hub-border) !important;
    background-color: var(--hub-bg-app) !important; flex-shrink: 0; 
    width: 100%; box-sizing: border-box;
}
.nz-ad-label {
    font-family: var(--hub-font-mono, monospace) !important; font-size: 9px !important; font-weight: bold !important;
    color: var(--hub-text-muted) !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; 
    margin-bottom: 16px !important; display: block;
}
.nz-ad-wrapper { width: 100%; }
.nz-ad-link { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }

/* Contenedor del Hero Lock con Filtro Cinemático */
.nz-ad-hero-wrapper {
    width: 100%; aspect-ratio: 16 / 9; 
    background-color: #000; overflow: hidden; position: relative;
    border: 1px solid var(--hub-border) !important;
}
.nz-ad-hero-image {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.15); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.nz-ad-link:hover .nz-ad-hero-image { transform: scale(1.03); filter: grayscale(50%) contrast(1.1); }

/* Branding del Sponsor */
.nz-ad-brand {
    font-family: var(--hub-font-mono, monospace) !important; font-size: 12px !important; color: var(--hub-text-main) !important;
    font-weight: bold !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; 
    transition: color 0.3s;
}
.nz-ad-link:hover .nz-ad-brand { color: var(--hub-accent, #00C853) !important; }

/* ==========================================================================
   18. NZ_FOLLOW_COMPONENT: BRUTALIST TOKEN (V1.0)
   ========================================================================== */

.nz-follow-btn {
    background: transparent;
    border: none;
    font-family: var(--hub-font-mono, monospace);
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    margin-left: auto; /* Empuja los 3 puntos a la derecha si es necesario */
    margin-right: 10px;
}

/* Estado: No lo sigues (Llamado a la acción) */
.nz-follow-btn.not-following {
    color: #1DB954; /* Verde Nextzhop */
    opacity: 1;
}

/* Estado: Ya lo sigues (Feedback pasivo) */
.nz-follow-btn.is-following {
    color: var(--hub-text-main);
    opacity: 0.3;
}

.nz-follow-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ========================================================================== */
/* 19. NZ SYSTEM MODALS (OBSIDIAN ENGINE) - ZERO-TRUST UI wallet
/* ========================================================================== */

.nz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none; /* Se activa por JS */
    align-items: center;
    justify-content: center;
}

.nz-modal-content {
    background-color: #050505; /* Fondo negro sólido anti-transparencias */
    border: 1px solid #333;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: #ffffff;
    box-shadow: 12px 12px 0px 0px rgba(0,0,0,1); /* Sombra Brutalista */
}

/* Variante para el modal de seguridad (PIN) */
#nz-pin-auth-modal .nz-modal-content {
    border-color: #00ff00; /* Borde Neón */
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.05), 12px 12px 0px 0px rgba(0,0,0,1);
}

/* Cajas de input del PIN numérico */
.nz-auth-pin-box {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 28px;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    background-color: #000000;
    border: 1px solid #333;
    color: #00ff00;
    transition: all 0.2s ease;
    outline: none;
}

.nz-auth-pin-box:focus {
    border-color: #00ff00;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

/* Textos de soporte dentro de los modales */
.nz-modal-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nz-modal-content p.nz-modal-desc {
    font-family: monospace;
    font-size: 12px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.4;
}