/* ==========================================================================
   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; }

@media (min-width: 768px) {
    .nz-settings-main, .nz-editor-main, .nz-design-main, .nz-dash-main, .nz-inventory-main, .nz-metrics-main, .nz-orders-main, .nz-discovery-main, .nz-network-main, .nz-vault-main { 
        margin-left: 256px; width: calc(100% - 256px); flex: none; 
    }
}

.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 APILADAS)
   ========================================================================== */
.nz-settings-tabs-nav, .nz-editor-tabs-nav, .nz-orders-tabs-nav { 
    display: flex; border-bottom: 1px solid var(--hub-border); 
    overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; 
    background-color: var(--hub-bg-app); position: sticky; 
    top: calc(60px + env(safe-area-inset-top)); z-index: 50;
}

.nz-editor-tabs-nav, .nz-orders-tabs-nav { gap: 16px; padding: 0 16px; scroll-snap-type: x mandatory; }
.nz-settings-tabs-nav::-webkit-scrollbar, .nz-editor-tabs-nav::-webkit-scrollbar, .nz-orders-tabs-nav::-webkit-scrollbar { display: none; }

.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: color 0.3s, border-color 0.3s; white-space: nowrap;
}
.nz-hub-filter-tab { flex: 1; padding: 16px 24px; background: transparent; border: none; border-bottom: 2px solid transparent; }
.tab-btn { padding: 16px 8px; border-bottom: 2px solid transparent; scroll-snap-align: start; }
.nz-hub-filter-tab.active, .tab-btn:hover, .tab-btn.active { color: var(--hub-text-main); border-bottom-color: var(--hub-text-main); }

.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: color 0.3s, border-color 0.3s; 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); }

/* ==========================================================================
   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)
   ========================================================================== */
.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; }

/* ==========================================================================
   10. EDITOR & MASTER LAB COMPONENTS (V40.0)
   ========================================================================== */
.tab-content { display: none; }
.tab-content.active { display: block; animation: nzFadeIn 0.3s ease; }

.nz-section-box { display: flex; flex-direction: column; gap: 24px; background-color: var(--hub-bg-app); border-bottom: 1px solid var(--hub-border); padding: 32px 0; }
.nz-section-box:last-child { border-bottom: none; }

.nz-tab-title { font-family: var(--hub-font-mono, monospace); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; 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: 8px; }

.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: 10px; font-weight: bold; padding: 16px; outline: none; transition: border-color 0.3s; }
.nz-tab-input:focus, .nz-tab-select:focus { border-color: var(--hub-text-main); }

.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: 10px; padding: 16px; outline: none; transition: border-color 0.3s; resize: vertical; min-height: 120px; }
.nz-tab-textarea:focus { border-color: var(--hub-text-main); }

.nz-theme-opt { border: 1px solid var(--hub-border); background-color: var(--hub-bg-card); padding: 20px; text-align: left; cursor: pointer; transition: all 0.3s; 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); color: var(--hub-bg-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-main); }
.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); margin: 0; }
.nz-theme-opt-desc { font-family: var(--hub-font-mono, monospace); font-size: 9px; opacity: 0.7; color: var(--hub-text-main); margin: 0; }

/* ==========================================================================
   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; }
@media (min-width: 768px) { .nz-inbox-container { margin-left: 256px; width: calc(100% - 256px); flex: none; } }

.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); }

/* ==========================================================================
   14. SOCIAL LIGHTBOX & COMMENTS (V40.0)
   ========================================================================== */
#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; }

.nz-lb-scroll-area { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background-color: var(--hub-bg-app); }

.nz-lb-card-header { display: flex; align-items: center; justify-content: space-between; 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; }
.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; }

.nz-lb-card { border-bottom: 1px solid var(--hub-border); background-color: var(--hub-bg-app); }
.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; }

.nz-lb-product-glass {
    position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--hub-radius-btn);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5); text-decoration: none; transition: transform 0.2s; z-index: 20;
}
.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;
}

#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; }

/* ==========================================================================
   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)
   ========================================================================== */
.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;
}
@media (min-width: 768px) { .nz-start-main { margin-left: 256px; width: calc(100% - 256px); flex: none; } }

.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 & TERMINAL LOGS (V40.0)
   Ecosistema Drawer Lateral Reactivo - Estética Hacker / Obsidian Couture.
   ========================================================================== */

/* Capa trasera de bloqueo (Vidrio Ahumado) */
.nz-notif-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--hub-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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 (Drawer de Alta Altura) */
.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-main);
    border-left: 1px solid var(--hub-border);
    z-index: 9991;
    transform: translateX(100%);
    transition: transform var(--hub-transition);
    display: flex;
    flex-direction: column;
   
}
@media (min-width: 768px) {
    .nz-notif-drawer {
        max-width: 380px; /* Ancho fijo editorial en Desktop */
    }
}
.nz-notif-drawer.is-active {
    transform: translateX(0);
}

/* Cabecera del Panel Control */
.nz-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid var(--hub-border);
    background-color: var(--hub-bg-main);
    flex-shrink: 0;
}
.nz-notif-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nz-notif-prompt {
    font-family: var(--hub-font-mono, monospace);
    font-size: 11px;
    font-weight: 900;
    color: var(--hub-hub-accent, var(--hub-accent));
}
.nz-notif-title {
    font-family: var(--hub-font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--hub-text-main);
    margin: 0;
}
.nz-notif-close-btn {
    background: transparent;
    border: none;
    font-family: var(--hub-font-mono, monospace);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--hub-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
}
.nz-notif-close-btn:hover {
    color: var(--hub-border-hover);
}

/* Barra de Filtros Internos Terminal */
.nz-notif-filter-bar {
    display: flex;
    border-bottom: 1px solid var(--hub-border);
    background-color: var(--hub-bg-main);
    flex-shrink: 0;
}
.nz-notif-filter {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-family: var(--hub-font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--hub-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.nz-notif-filter.active, .nz-notif-filter:hover {
    color: var(--hub-text-main);
    border-bottom-color: var(--hub-text-main);
}

/* Cuerpo del Stream del Registro */
.nz-notif-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--hub-bg-main);
    display: flex;
    flex-direction: column;
}

/* Celdas Compactas Inyectables (Contrato Zero-Air Estricto) */
.nz-notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid var(--hub-border);
    text-decoration: none;
    background-color: var(--hub-bg-main);
    transition: background-color 0.2s ease, border-left 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.nz-notif-row:hover {
    background-color: var(--hub-bg-card);
    border-left: 3px solid var(--hub-text-main);
}

/* Estructura Interna del Log */
.nz-notif-cell-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 2px;
}
.nz-notif-meta-line {
    font-family: var(--hub-font-mono, monospace);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hub-text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nz-notif-log-text {
    font-family: var(--hub-font-mono, monospace);
    font-size: 11px;
    color: var(--hub-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estados de tipo específicos (Log Clientes / Ventas / Interacciones) */
.nz-notif-row[data-type="venta"] {
    background-color: rgba(29, 185, 84, 0.01);
}
.nz-notif-row[data-type="venta"]:hover {
    border-left-color: var(--hub-accent);
}
.nz-notif-row[data-type="venta"] .nz-notif-log-text {
    color: var(--hub-accent);
    font-weight: 700;
}

.nz-notif-cell-right {
    margin-left: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nz-notif-timestamp {
    font-family: var(--hub-font-mono, monospace);
    font-size: 8px;
    color: var(--hub-text-muted);
    opacity: 0.6;
    text-transform: uppercase;
}

/* Marcador Inactivo Pasivo (Consola Vacía) */
.nz-notif-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.nz-notif-mono-text {
    font-family: var(--hub-font-mono, monospace);
    font-size: 10px;
    color: var(--hub-text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   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);
}