/* ARGUS Hub v3.0 - Professional Industrial Design */
:root {
    --bg-deep: #050608;
    --bg-surface: #0a0c10;
    --bg-card: #0e1117;
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(0, 210, 255, 0.15);
    --argus-blue: #00aaff;
    --argus-cyan: #00f2fe;
    --argus-teal: #00d28d;
    --text-high: #e2e8f0;
    --text-mid: #94a3b8;
    --text-low: #475569;
    --sidebar-width: 240px;
    --console-width: 420px;
}

body.theme-neon {
    --bg-deep: #0f051a;
    --argus-blue: #ff00ff;
    --argus-teal: #00ffff;
    --argus-violet: #7000ff;
    --accent-gradient: linear-gradient(135deg, #ff00ff, #00ffff);
    --glass-bg: rgba(25, 10, 40, 0.8);
}

body.theme-space {
    --bg-deep: #050505;
    --argus-blue: #4facfe;
    --argus-teal: #00f2fe;
    --argus-violet: #4481eb;
    --accent-gradient: linear-gradient(135deg, #4facfe, #00f2fe);
    --glass-bg: rgba(0, 0, 0, 0.85);
}

body.theme-ghost {
    --bg-deep: #121212;
    --argus-blue: #ffffff;
    --argus-teal: #888888;
    --argus-violet: #444444;
    --accent-gradient: linear-gradient(135deg, #ffffff, #888888);
    --glass-bg: rgba(30, 30, 30, 0.9);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
}

body.theme-red {
    --bg-deep: #1a0505;
    --argus-blue: #ff4444;
    --argus-teal: #ffbb33;
    --argus-violet: #aa0000;
    --accent-gradient: linear-gradient(135deg, #ff4444, #aa0000);
    --glass-bg: rgba(40, 10, 10, 0.85);
}

body.theme-forest {
    --bg-deep: #0d1a0d;
    --argus-blue: #4caf50;
    --argus-teal: #8bc34a;
    --argus-violet: #1b5e20;
    --accent-gradient: linear-gradient(135deg, #4caf50, #1b5e20);
    --glass-bg: rgba(15, 30, 15, 0.85);
}

body.theme-solar {
    --bg-deep: #1a1500;
    --argus-blue: #ffcc00;
    --argus-teal: #ffd700;
    --argus-violet: #8b4513;
    --accent-gradient: linear-gradient(135deg, #ffcc00, #8b4513);
    --glass-bg: rgba(30, 25, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-high);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr 220px;
    height: calc(100vh - var(--menu-height));
    width: 100vw;
    margin-top: var(--menu-height);
    overflow: hidden;
}

/* Top Master Menu Style */
.master-menu {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width) - 220px);
    height: var(--menu-height);
    background: rgba(10, 11, 16, 0.9);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 8000; /* Master Menu always on top */
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.menu-item {
    position: relative;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-item:hover > span {
    color: var(--argus-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.menu-spacer {
    flex-grow: 1;
}

.system-clock {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--argus-teal);
    letter-spacing: 1px;
    font-size: 0.8rem;
    padding-right: 10px;
}

/* Dropdown styling */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px; /* Un poco más ancho para evitar cortes de texto */
    background: rgba(20, 22, 30, 0.95); /* Más opaco para legibilidad */
    border: 1px solid var(--argus-blue);
    border-top: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 6000; /* SOBRE TODO, incluido el sidebar y el thought monitor */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.menu-item:hover .dropdown {
    display: flex;
}

.dropdown-item {
    position: relative;
    padding: 8px 16px;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--argus-blue);
}

.dropdown-item.border-top {
    border-top: 1px solid var(--glass-border);
    margin-top: 6px;
    padding-top: 10px;
}

.header-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--argus-teal);
    opacity: 0.7;
    letter-spacing: 1.5px;
    padding: 10px 16px 4px 16px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Submenu Support */
.dropdown-item.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.dropdown-item.has-submenu::after {
    content: '▶';
    font-size: 0.6rem;
    opacity: 0.5;
    margin-left: 10px;
    transition: transform 0.2s;
}

.dropdown-item.has-submenu:hover::after {
    transform: translateX(3px);
    color: var(--argus-blue);
}

.submenu {
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 200px;
    background: #14161e;
    border: 1px solid var(--glass-border);
    display: none;
    flex-direction: column;
    padding: 6px 0;
    z-index: 1002;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-left: 1px;
}

.dropdown-item.has-submenu:hover > .submenu {
    display: flex;
}

/* --- DATACRUNCHER ENHANCEMENTS --- */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 247, 255, 0.5);
    box-shadow: 0 0 10px var(--argus-blue);
    animation: scan 3s linear infinite;
    pointer-events: none;
    display: none;
}

.vision-placeholder.active .scanline {
    display: block;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.crunch-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.bg-hover:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.text-2rem { font-size: 2rem; }
.line-h-16 { line-height: 1.6; }

/* QR Code Display Classes */
.qr-box-container {
    width: 170px;
    height: 170px;
}

.qr-code-graphic {
    width: 150px;
    height: 150px;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 5000; /* Igual que el menú maestro para solidez lateral */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    position: fixed; /* Asegurar que no se mueva */
    height: 100vh;
    top: 0;
    left: 0;
}

.logo-section {
    margin-bottom: 3rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 210, 255, 0.1);
    border-left: 3px solid var(--argus-blue);
}

.telemetry-compact {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Main Content Area */
.main-content {
    grid-column: 2;
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto; /* Changed to allow scroll */
    background: rgba(5, 7, 12, 0.2);
    padding-bottom: 60px; /* Space for the persistent footer */
}

/* --- GLOBAL TELEMETRY FOOTER (NEW) --- */
.global-telemetry-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width) - 220px);
    height: 40px;
    background: rgba(10, 11, 16, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--argus-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9000;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-primary);
    box-shadow: 0 -5px 20px rgba(0, 210, 255, 0.1);
    white-space: nowrap;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.footer-item strong {
    color: var(--argus-teal);
    font-weight: 800;
}

.right-sidebar {
    display: none !important;
    width: 320px;
    background: rgba(10, 11, 16, 0.85);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 4500;
    position: fixed;
    right: 0;
    top: var(--menu-height);
    height: calc(100vh - var(--menu-height));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

/* Secondary OpsBar (Finance & MRMA) */
.ops-sidebar-secondary {
    grid-column: 4;
    background: rgba(10, 11, 25, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 243, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
    overflow-y: auto;
    height: 100%;
}

.ops-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border-top: 2px solid var(--argus-blue);
}

.ops-card.mrma { border-top-color: var(--argus-violet); }
.ops-card.finance { border-top-color: var(--argus-teal); }
.ops-card.veto-alerts { 
    border: 1px solid rgba(255, 68, 68, 0.3); 
    background: rgba(255, 68, 68, 0.05); 
    border-top: 2px solid #ff4444;
}

.ops-card .progress-mini-fill {
    height: 100%;
    background: var(--argus-violet);
    width: 0%;
    transition: width 0.3s ease;
}

.ops-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.7;
}

.ops-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.monitor-container {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.monitor-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.radar-scan {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--argus-blue);
    position: relative;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.radar-scan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, var(--argus-blue), transparent);
    border-radius: 50%;
    transform-origin: top left;
    animation: radarRotate 2s linear infinite;
}

@keyframes radarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.knowledge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    animation: slideInRight 0.3s ease-out;
}

.knowledge-card .topic {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--argus-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.knowledge-card .status {
    font-size: 0.65rem;
    font-family: 'Space Mono', monospace;
    margin-bottom: 0.8rem;
}

.knowledge-card .progress-mini {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.knowledge-card .progress-mini-fill {
    height: 100%;
    background: var(--argus-teal);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--argus-teal);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.header-top {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
    z-index: 100; /* Por encima del contenido de la sección */
}

/* Chat Container */
.chat-container {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Chat Bubbles */
.message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    line-height: 1.6;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.msg-log-argus {
    align-self: flex-start;
    background: rgba(30, 35, 50, 0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-bottom-left-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 0 10px rgba(0, 210, 255, 0.1);
    color: var(--text-primary);
    border-left: 4px solid var(--argus-blue);
}

.msg-log-argus .msg-sender {
    color: var(--argus-blue);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(0, 210, 255, 0.8); }
}

.tactical-id {
    background: rgba(0, 210, 255, 0.15);
    color: var(--argus-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.msg-log-user {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.msg-info, .msg-default {
    align-self: flex-start;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: #b0e0ff;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    border-left: 3px solid var(--argus-blue);
}

.msg-success {
    align-self: flex-start;
    background: rgba(0, 255, 170, 0.05);
    border: 1px solid rgba(0, 255, 170, 0.2);
    color: var(--argus-teal);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    border-left: 3px solid var(--argus-teal);
}

.msg-warning {
    align-self: flex-start;
    background: rgba(255, 170, 0, 0.05);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    border-left: 3px solid #ffaa00;
}

.msg-error {
    align-self: flex-start;
    background: rgba(255, 85, 85, 0.05);
    border: 1px solid rgba(255, 85, 85, 0.2);
    color: #ff5555;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    border-left: 3px solid #ff5555;
}

.thought-entry {
    font-size: 0.8rem;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--argus-blue);
    animation: slideInRight 0.3s ease-out;
    transition: all 0.2s ease;
    cursor: pointer;
}

.thought-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.thought-entry.tool {
    border-left-color: var(--argus-teal);
    background: rgba(0, 255, 170, 0.03);
}

.thought-entry.brain {
    border-left-color: var(--argus-violet);
    background: rgba(142, 45, 226, 0.03);
}

.thought-entry.warning {
    border-left-color: #ffaa00;
}

.thought-entry.error {
    border-left-color: #ff5555;
}

.thought-entry .timestamp {
    opacity: 0.4;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    margin-right: 8px;
}

.thought-history-container {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 10px;
    display: none;
}

.thought-history-container.active {
    display: block;
}

.msg-body strong {
    color: var(--argus-blue);
    font-weight: 800;
}

.msg-body em {
    color: var(--argus-teal);
    font-style: italic;
    opacity: 0.9;
}

.tactical-code {
    background: rgba(0, 0, 0, 0.4);
    color: var(--argus-teal);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    border: 1px solid rgba(0, 255, 170, 0.2);
}

.tactical-list-item {
    padding-left: 1.2rem;
    position: relative;
    margin: 4px 0;
}

.tactical-list-item::before {
    content: "▶";
    position: absolute;
    left: 0;
    font-size: 0.6rem;
    top: 0.3rem;
    color: var(--argus-blue);
    opacity: 0.7;
}

.msg-sender {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.7;
}

/* Input Bar */
.input-area {
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}

.input-wrapper {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

input[type="text"] {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    outline: none;
}

.action-btn {
    background: none;
    border: none;
    color: var(--argus-blue);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Section Management */
.section {
    display: none;
    flex-grow: 1;
    overflow: hidden;
    width: 100%;
}

.section.active {
    display: flex !important;
    flex-direction: column;
    /* Fill available space within .main-content */
    flex-grow: 1;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 2rem 250px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

/* Adaptabilidad para Modo Pantalla Completa (HUD Oculto) */
body.hud-hidden .section.active {
    padding: 2rem 5rem 250px;
}

/* Grid for Tools/Protocols */
.grid-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Más ancho para evitar amontonamiento */
    gap: 2rem; /* Más espacio entre recuadros */
    padding: 1rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem; /* Más aire interno */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--argus-blue);
}

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

/* Utility & Clean Layout Classes */
.status-indicator {
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.status-dot {
    width: 8px; 
    height: 8px; 
    background: var(--argus-teal); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--argus-teal);
}

.sub-text {
    font-size: 0.6rem; 
    opacity: 0.5; 
    letter-spacing: 1px;
}

.nav-label {
    font-size: 0.8rem; 
    font-weight: bold;
}

.telemetry-row {
    margin-bottom: 8px; 
    display: flex; 
    justify-content: space-between;
}

.progress-track {
    background: rgba(255,255,255,0.1); 
    height: 4px; 
    border-radius: 2px;
}

.progress-fill {
    height: 100%; 
    transition: width 0.5s;
}

.vision-card {
    text-align: center;
}

.vision-placeholder {
    width: 100%; 
    height: 300px; 
    border: 1px dashed var(--glass-border); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 2rem;
}

.vision-btn {
    background: var(--accent-gradient); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 12px; 
    font-weight: bold;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: var(--argus-blue);
}

.card-teal {
    border-color: var(--argus-teal);
}

/* Extended Protocol & Help Styles */
.protocol-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.protocol-img-container {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.protocol-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.protocol-card:hover .protocol-img {
    opacity: 1;
    transform: scale(1.05);
}

.protocol-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    flex-grow: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    filter: brightness(1.1);
}

.help-manual-box {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 210, 255, 0.05);
    border: 1px dashed var(--argus-blue);
    border-radius: 20px;
    text-align: center;
}

/* --- VULNERABILITY SEARCH STYLES --- */
.search-container {
    width: 100%;
    margin-bottom: 2rem;
}

.search-bar-tactical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input-group input {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    border-color: var(--argus-blue);
}

.mode-selector {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.mode-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.mode-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(255,255,255,0.05);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.cve-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
}

.cve-card:hover {
    border-color: var(--argus-blue);
    background: rgba(255,255,255,0.03);
    transform: translateX(10px);
}

.cve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cve-id {
    color: var(--argus-blue);
    font-family: 'Space Mono', monospace;
    font-weight: 800;
}

.cve-score-badge {
    background: rgba(0, 255, 170, 0.1);
    color: var(--argus-teal);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

.cve-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cve-footer {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Modal Detalle CVE */
.cve-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cve-detail-card {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.close-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Vulnerability Table Styles --- */
.vuln-table-container {
    margin: 1rem 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vuln-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
}

.vuln-table th {
    text-align: left;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--argus-blue);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.dropdown-item:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--argus-blue);
}

.dropdown-item.active {
    color: var(--argus-teal);
    font-weight: 600;
    padding-left: 28px;
}

.dropdown-item.active::before {
    content: "✓";
    position: absolute;
    left: 8px;
    font-weight: 900;
}

.vuln-table td {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.risk-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
}

.risk-critical { background: #ff4444; color: white; box-shadow: 0 0 10px rgba(255, 68, 68, 0.3); }
.risk-high { background: #ffbb33; color: black; }
.risk-medium { background: #00C851; color: white; }
.risk-low { background: #33b5e5; color: white; }

.vuln-row:hover {
    background: rgba(0, 243, 255, 0.03);
}

/* --- SPLASH SCREEN STYLES --- */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(5, 10, 20, 0.95) 0%, #000 100%),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    overflow: hidden;
    cursor: default;
}

#splash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.splash-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.splash-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite ease-in-out;
}

.splash-logo {
    max-width: 100vw;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--neon-glow));
}

.boot-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-glow);
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 30px var(--neon-glow)); }
    50% { transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 0 50px var(--neon-glow)); }
}

.boot-progress-bar {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 1px;
    z-index: 10;
}

.boot-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--argus-blue);
    width: 0%;
    animation: boot-loading 2.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float-slow {
    from { transform: translateY(100vh) rotate(0deg); }
    to { transform: translateY(-100px) rotate(10deg); }
}

@keyframes pulse-boot {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--argus-blue)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px var(--argus-blue)); }
}

@keyframes boot-loading {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 35%; }
    70% { width: 85%; }
    100% { width: 100%; }
}

/* --- ADVANCED SCREENSAVER MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: #14161e;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 1.8rem;
    cursor: pointer; opacity: 0.5;
}

.settings-group { margin-bottom: 24px; }
.setting-row {
    display: flex; justify-content: space-between;
    margin-bottom: 12px; font-size: 0.9rem;
    font-weight: bold; color: var(--text-primary);
}

/* Tactical Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--argus-blue);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px var(--argus-blue);
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.9rem;
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-container input { visibility: hidden; position: absolute; }

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark { background-color: rgba(255,255,255,0.1); }
.checkbox-container input:checked ~ .checkmark { background-color: var(--argus-blue); }
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after {
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Scanning Animation Overlay (Premium Detail) */
.scanline-effect {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent-gradient);
    opacity: 0.2;
    pointer-events: none;
    z-index: 5;
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* --- TERMINAL & TACTICAL UI EXTENSIONS --- */
.terminal-overlay-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 450px;
    background: rgba(10, 10, 10, 0.95) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--argus-blue);
    border-radius: 8px;
    z-index: 7000; /* Siempre sobre todo */
    display: none;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.2), 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.terminal-overlay-container.minimized {
    height: 35px;
    width: 300px;
    left: calc(var(--sidebar-width) + 20px);
    top: calc(100% - 50px);
    transform: none;
}

.terminal-overlay-container.foreground-active {
    border-color: var(--argus-teal);
    box-shadow: 0 0 50px rgba(0, 255, 170, 0.3);
}

.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-title {
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    color: var(--argus-teal);
    letter-spacing: 1px;
}

#terminal-body {
    flex-grow: 1;
    padding: 5px;
    overflow: hidden;
    background: #0a0a0a;
}

.terminal-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 1;
    transition: opacity 0.2s;
}

.terminal-controls button:hover {
    opacity: 1;
}

.btn-tactical {
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--argus-blue);
    color: var(--argus-blue);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-tactical.active, .btn-tactical:hover {
    background: var(--argus-blue);
    color: #000;
    box-shadow: 0 0 15px var(--argus-blue);
}

/* --- AUDITORÍA DE RED (CENTINELA) --- */
.audit-panel {
    background: var(--bg-card);
    border: 1px solid var(--argus-accent-cyan);
    border-radius: 8px;
    width: 85%;
    max-width: 1000px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.audit-table-container {
    max-height: 450px;
    overflow-y: auto;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.audit-table-container::-webkit-scrollbar { width: 4px; }
.audit-table-container::-webkit-scrollbar-thumb { background: var(--argus-accent-cyan); }

#audit-table {
    width: 100%;
    border-collapse: collapse;
}

#audit-table th {
    position: sticky;
    top: 0;
    background: var(--bg-hover);
    padding: 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--argus-accent-cyan);
    letter-spacing: 1px;
}

#audit-table td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Space Mono', monospace;
}

.proc-tag {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.status-safe { color: var(--argus-accent-cyan); }
.status-threat { color: #ff5555; text-shadow: 0 0 10px rgba(255, 85, 85, 0.3); }

.risk-badge {
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
}

.audit-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
}

#audit-search {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    padding: 8px;
    outline: none;
}

#audit-search:focus { border-color: var(--argus-accent-cyan); }

.tactical-mini-btn {
    background: transparent;
    border: 1px solid var(--argus-accent-cyan);
    color: var(--argus-accent-cyan);
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
}

.tactical-mini-btn:hover {
    background: var(--argus-accent-cyan);
    color: #000;
    transform: scale(1.1);
}

/* --- UTILITIES & OPTIMIZATIONS --- */
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
/* Utility Classes */
.margin-left-20 { margin-left: 20px; }

/* AI Console Docking & Floating System */
.hud-wrapper.dock-left {
    grid-template-columns: 1fr 280px 320px !important;
}
.hud-wrapper.dock-right {
    grid-template-columns: 280px 320px 1fr !important;
}
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
.order-3 { order: 3 !important; }

.ai-console-floating {
    position: fixed !important;
    z-index: 9999;
    top: 20vh;
    left: 20vw;
    width: 600px;
    height: 60vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 243, 255, 0.4);
    resize: both;
    overflow: hidden;
    transition: none !important;
}
.ai-console-header-draggable {
    cursor: move;
}

/* Chat Layout Fixes */
.dock-controls {
    display: flex;
    gap: 5px;
    font-size: 0.7rem;
}

.main-view-panel-flex {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.main-view-panel-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden !important;
    padding: 0 !important;
    min-height: 0;
}
.main-view-panel-chat {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}
.main-view-panel-input {
    flex-shrink: 0;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-2rem { margin-bottom: 2rem; }
.p-0 { padding: 0 !important; }
.p-20 { padding: 20px; }
.p-2rem { padding: 2rem; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-mono { font-family: 'Space Mono', monospace; }
.text-xs { font-size: 0.6rem; }
.text-sm { font-size: 0.7rem; }
.text-base { font-size: 0.85rem; }
.text-cyan { color: var(--argus-accent-cyan); }
.text-teal { color: var(--argus-teal); }
.text-blue { color: var(--argus-blue); }
.text-red { color: #ff4444; }
.text-orange { color: #ffaa00; }
.border-warning { border: 1px dashed #ffaa00; }
.bg-warning-light { background: rgba(255, 170, 0, 0.05); }

/* Component Specific */
.boot-hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    opacity: 0.5;
    font-family: 'Space Mono', monospace;
    white-space: nowrap;
}

.boot-status-msg {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #00f7ff;
    font-family: 'Space Mono', monospace;
    opacity: 0.8;
    white-space: nowrap;
}

.telemetry-divider {
    border-top: 1px solid var(--glass-border);
    padding-top: 8px;
    margin-top: 12px;
}

.report-viewer-container {
    background: rgba(0, 15, 30, 0.95);
    position: relative;
    display: none;
}

.btn-back-console {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--argus-blue);
}

.report-md-body {
    padding: 20px;
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
}

.graph-container {
    height: 500px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    position: relative;
}

.graph-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.7rem;
    color: var(--argus-teal);
}

.vulnerability-scanner-box {
    background: rgba(255, 170, 0, 0.05);
    padding: 1.5rem;
    border: 1px dashed #ffaa00;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.vulnerability-search-input {
    flex: 1;
    max-width: 500px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #ffaa00;
    color: white;
    padding: 10px;
    border-radius: 4px;
}

.vulnerability-search-mode {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 0.7rem;
}

.vault-form-input {
    width: 100%;
    margin-bottom: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--argus-blue-glow);
    color: white;
    padding: 5px;
}

.help-stats-box {
    background: rgba(0, 247, 255, 0.05);
    padding: 1rem;
    border-left: 4px solid var(--argus-blue);
    margin-bottom: 2rem;
}

/* --- NEWS MONITOR --- */
.news-monitor-container {
    border-top: 1px solid rgba(0, 210, 255, 0.3);
    background: rgba(10, 20, 30, 0.6);
    border-radius: 8px;
    padding: 10px;
    height: 100px;
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.news-monitor-header {
    color: var(--argus-blue);
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    justify-content: space-between;
}

.news-item {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.8);
    animation: fadeIn 0.5s ease-out;
}

.news-item::before {
    content: ">> ";
    color: var(--argus-teal);
}

/* --- REPORT ICONS --- */
.report-icon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.report-icon-card:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--argus-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.report-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.report-icon-card:hover .report-icon {
    transform: scale(1.2);
}

.report-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.modal-footer-btns {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
/* --- DATACRUNCHER INTERACTIVITY --- */
.vision-placeholder.clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px dashed rgba(0, 210, 255, 0.2);
}

.vision-placeholder.clickable:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--argus-blue);
    transform: scale(1.01);
}

.vision-placeholder.clickable.active {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--argus-teal);
    border-style: solid;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.border-teal {
    border-color: var(--argus-teal) !important;
}

.bg-glass-dark {
    background: rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Tactical Select Styling */
.tactical-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    margin-top: 5px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tactical-select:focus {
    border-color: var(--argus-blue);
    background: rgba(0, 210, 255, 0.1);
}

.tactical-select option {
    background: #0a0e17;
    color: var(--text-primary);
}

/* --- CCTV / SURVEILLANCE --- */
.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Space Mono', monospace;
}

.cam-id {
    color: var(--argus-teal);
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.cam-timestamp {
    color: white;
    font-size: 0.8rem;
    opacity: 0.7;
}

.cam-rec {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff5555;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.03) 50%,
        rgba(255,255,255,0) 100%
    );
    background-size: 100% 4px;
    animation: scan 10s linear infinite;
    z-index: 2;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.camera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.camera-node {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camera-node:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--argus-blue);
}

.camera-node.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--argus-teal);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.camera-node.warning {
    border-color: #ffaa00;
}

.camera-node.warning .cam-stat {
    color: #ffaa00;
    animation: blink-soft 2s infinite;
}

@keyframes blink-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cam-icon { font-size: 1.2rem; }

.cam-loc {
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.cam-stat {
    font-size: 0.55rem;
    color: var(--argus-teal);
    letter-spacing: 1px;
}

.pulse-red {
    background: #ff5555;
    box-shadow: 0 0 10px #ff5555;
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 85, 85, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 85, 85, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 85, 85, 0); }
}

/* Tactical Scrollbar for Camera Grid */
.flex-col.gap-10::-webkit-scrollbar {
    width: 4px;
}
.flex-col.gap-10::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.flex-col.gap-10::-webkit-scrollbar-thumb {
    background: var(--argus-blue);
    border-radius: 2px;
}
.flex-col.gap-10::-webkit-scrollbar-thumb:hover {
    background: var(--argus-teal);
}

.tactical-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s ease;
}

.tactical-input:focus {
    border-color: var(--argus-blue);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}
/* --- CALENDAR STYLES --- */
.service-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

.service-status-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-pill {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.status-pill.connected {
    background: rgba(0, 255, 170, 0.15);
    color: var(--argus-teal);
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.status-pill.disconnect {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--argus-blue);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
}

.event-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.event-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--argus-teal);
    min-width: 100px;
}

.event-title {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 15px;
}

.event-location {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 15px;
}

.btn-tactical {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-tactical:hover {
    background: var(--argus-blue);
    color: black;
    border-color: var(--argus-blue);
}

/* Bookmarks Custom Styles */
.hover-scale {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
    border-color: var(--argus-blue) !important;
}

.tracking-1 {
    letter-spacing: 1px;
}

/* Eliminado duplicado de .results-grid para mantener consistencia */

.security-tool-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 210, 255, 0.1);
}

.hover-glow:hover {
    background: rgba(0, 210, 255, 0.05) !important;
    border-color: var(--argus-blue) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    transform: translateX(5px);
}

.bg-black {
    background: rgba(0, 0, 0, 0.3) !important;
}

.rounded-8 {
    border-radius: 8px;
}

/* --- NEW NEWS UI (PREMIUM) --- */
.news-card-v2 {
    background: rgba(15, 15, 15, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--argus-teal);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-card-v2:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--argus-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.news-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.news-time {
    font-size: 11px;
    opacity: 0.4;
    font-family: 'Courier New', Courier, monospace;
}

.news-title {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.2rem;
    line-height: 1.3;
}

.news-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.news-source {
    font-size: 12px;
    opacity: 0.6;
    font-weight: 600;
}

.news-action {
    font-size: 11px;
    color: var(--argus-teal);
    font-weight: 700;
    text-decoration: underline;
}

.news-media {
    width: 100%;
    margin: 10px 0 15px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.news-media img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-media:hover img {
    transform: scale(1.05);
}

.news-media iframe, .news-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top: 3px solid var(--argus-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- BOOKMARKS UI (PREMIUM) --- */
#bookmarks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.bookmark-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.bookmark-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
    border-color: var(--argus-teal);
}

.bookmark-icon {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bookmark-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bookmark-info {
    overflow: hidden;
    flex-grow: 1;
}

.bookmark-title {
    margin: 0;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-url {
    font-size: 11px;
    opacity: 0.4;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: none;
}

.bookmark-card:hover .bookmark-delete {
    display: block;
}

.bookmark-delete:hover {
    color: var(--argus-accent-red);
}

/* --- THOUGHT MONITOR OVERLAY --- */
.thought-monitor-overlay {
    position: fixed;
    bottom: 220px; /* Elevado aún más para despejar la zona de chat y noticias */
    right: 25px;
    width: 320px;
    max-height: 350px;
    background: rgba(10, 12, 20, 0.7);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(163, 71, 255, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 4500;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(163, 71, 255, 0.15);
    margin: 15px; /* Más margen de seguridad contra los bordes */
    overflow: hidden;
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;
    transition: all 0.3s ease;
    cursor: default;
}

.thought-monitor-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.thought-header {
    padding: 10px 15px;
    background: rgba(0, 210, 255, 0.1);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--argus-blue);
}

.neural-pulse {
    width: 8px;
    height: 8px;
    background: var(--argus-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--argus-blue);
    animation: neuralPulse 1.5s infinite ease-in-out;
}

.thought-status {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(0, 255, 170, 0.2);
    color: var(--argus-teal);
    border-radius: 4px;
}

.thought-stream {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    @supports (scrollbar-width: none) {
        scrollbar-width: none;
    }
    -ms-overflow-style: none;
}

.thought-stream::-webkit-scrollbar {
    display: none;
}

.thought-entry {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--argus-blue);
    border-radius: 0 4px 4px 0;
    animation: thoughtFadeIn 0.3s ease-out forwards;
    color: var(--text-muted);
}

.thought-entry.brain { border-left-color: var(--argus-violet); color: #c084fc; }
.thought-entry.tool { border-left-color: var(--argus-teal); color: var(--argus-teal); }
.thought-entry.network { border-left-color: #3b82f6; color: #93c5fd; }
.thought-entry.memory { border-left-color: #f59e0b; color: #fcd34d; }
.thought-entry.system { border-left-color: #6b7280; color: #d1d5db; }
.thought-entry.error { border-left-color: #ef4444; color: #fca5a5; }

@keyframes neuralPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--argus-blue); }
    50% { transform: scale(1.3); opacity: 0.6; box-shadow: 0 0 20px var(--argus-blue); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--argus-blue); }
}

@keyframes thoughtFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* --- ENHANCED CONNECTIONS UI --- */
.connection-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connection-card-v2:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--argus-blue);
    transform: translateY(-3px);
}

.connection-card-v2 .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.connection-card-v2 .label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.connection-card-v2 .icon-box {
    font-size: 1.2rem;
    opacity: 0.8;
}

.connection-card-v2 .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-online { background: rgba(0, 255, 170, 0.1); color: var(--argus-teal); border: 1px solid rgba(0, 255, 170, 0.2); }
.status-degraded { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.2); }
.status-offline { background: rgba(255, 85, 85, 0.1); color: #ff5555; border: 1px solid rgba(255, 85, 85, 0.2); }

.mini-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.mini-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px var(--argus-blue);
}

.connection-card-v2 .pulse-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--argus-teal);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--argus-teal);
    animation: pulseGlowSmall 2s infinite;
}

@keyframes pulseGlowSmall {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.4; transform: scale(1); }
}

/* --- KNOWLEDGE GRAPH STYLES --- */
#knowledge-graph-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: radial-gradient(circle at center, rgba(10, 15, 30, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: grab;
}

#knowledge-graph-container:active {
    cursor: grabbing;
}

.graph-overlay-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.graph-btn {
    background: var(--bg-glass);
    border: 1px solid var(--argus-blue);
    color: var(--argus-blue);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.graph-btn:hover {
    background: var(--argus-blue);
    color: black;
    box-shadow: 0 0 15px var(--argus-blue);
}

.graph-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--bg-glass);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-size: 0.7rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-knowledge { background: #00d2ff; }
.dot-semantic { background: #00ffaa; }
.dot-interaction { background: #8e2de2; }


/* --- RECRUITMENT MODAL STYLES --- */
.recruit-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.recruit-item {
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.recruit-item:hover {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--argus-blue);
    transform: translateX(5px);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.bg-glass-dark {
    background: rgba(0, 0, 0, 0.4);
}

.rounded-8 { border-radius: 8px; }
.rounded-4 { border-radius: 4px; }

.recruit-item h4 {
    margin: 0;
    color: var(--argus-blue);
}

.text-2rem { font-size: 2rem; }


/* --- 3D GRAPH TOOLTIP & UI --- */
.tactical-tooltip {
    background: rgba(0, 10, 20, 0.9);
    border: 1px solid var(--argus-blue);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #00d2ff;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.search-wrapper input {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.search-wrapper input:focus {
    border-color: var(--argus-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    outline: none;
}

/* --- DATACRUNCHER TABS & PREDICTION UI --- */
.tabs-header {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--argus-blue);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.crunch-tab-content {
    animation: fadeIn 0.4s ease-out;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.6rem;
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    color: var(--argus-teal);
}

/* Tooltips & Chart customization hints */
#prediction-chart {
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2));
}

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

/* Tactical Tooltip for Graph */
.tactical-tooltip {
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid var(--argus-blue);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.tactical-tooltip b {
    color: var(--argus-blue);
    display: block;
    border-bottom: 1px solid rgba(0, 210, 255, 0.3);
    margin-bottom: 5px;
    padding-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tactical-tooltip .meta {
    font-size: 0.65rem;
    color: var(--argus-teal);
    margin-top: 8px;
    opacity: 0.8;
}

/* --- GRAPH ENHANCEMENTS --- */
.graph-details-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(10, 15, 25, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--argus-blue);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 210, 255, 0.1);
    animation: slideInRight 0.3s ease-out;
}

.tactical-mini-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tactical-mini-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--argus-blue);
    transform: scale(1.1);
}

.tactical-mini-btn.text-red:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.graph-details-overlay h4 {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.graph-viewport-container {
    background: radial-gradient(circle at center, #0f1218 0%, #000 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.tactical-tooltip {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border: 1px solid var(--argus-blue);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    pointer-events: none;
    max-width: 250px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tactical-tooltip b { color: var(--argus-blue); }
.tactical-tooltip .details { font-size: 0.7rem; opacity: 0.8; margin: 5px 0; }
.tactical-tooltip .meta { font-size: 0.6rem; opacity: 0.5; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5px; }

/* --- GLOBAL FOOTER SYSTEM (TACTICAL ALIGNMENT) --- */
.global-footer {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4000;
    padding: 0 2rem 1rem;
    bottom: 145px; /* Ajuste de precisión para aire táctico sobre noticias */
    pointer-events: none;
    transition: all 0.4s ease;
}

.global-footer.hidden {
    transform: translateY(100%);
}

.global-footer .input-area {
    pointer-events: auto;
    width: 100%;
    max-width: 1000px; /* JUSTIFICACIÓN CON CHAT */
    margin: 0 auto;
    background: transparent !important;
}

#footer-primary {
    bottom: 140px; /* Elevated to stay above the news monitor */
}

/* ─── MINI-CONSOLE MODE ─── consola compacta al navegar a otras secciones */
#footer-primary.footer-mini {
    bottom: 0 !important;
    padding: 0 1rem 0.4rem !important;
    background: rgba(5, 8, 18, 0.96) !important;
    border-top: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 -4px 20px rgba(0, 243, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

/* En mini-modo reducir la altura del input area y ocultar el log */
#footer-primary.footer-mini .console-log,
#footer-primary.footer-mini .console-output,
#footer-primary.footer-mini #chat-log,
#footer-primary.footer-mini .argus-log {
    display: none !important;
    height: 0 !important;
}

#footer-primary.footer-mini .input-area {
    padding: 4px 0 !important;
}

/* Label "MINI" visible en modo compacto */
#footer-primary.footer-mini::before {
    content: '⚡ ARGUS — COMANDO RÁPIDO';
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    color: rgba(0, 243, 255, 0.45);
    text-align: center;
    padding: 3px 0 1px;
    pointer-events: none;
}

.global-footer.secondary {
    bottom: 0; 
    z-index: 2900;
    padding-bottom: 1rem;
}

#news-monitor.news-monitor-container {
    position: fixed;
    bottom: 40px; /* HASTA ABAJO PERO SOBRE EL FOOTER */
    left: 260px;
    right: 320px;
    height: 120px;
    z-index: 3000;
    background: rgba(10, 15, 25, 0.95);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 12px 12px 0 0; /* Solo bordes superiores redondeados */
}

.bg-transparent {
    background: transparent !important;
}

.p-0-2-15 {
    padding: 0 2rem 1.5rem !important;
}

/* --- COUNCIL MODE (MULTI-IA) STYLES --- */
.council-status-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(142, 45, 226, 0.2);
    border: 1px solid var(--argus-violet);
    color: var(--argus-violet);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 100;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease;
    top: 5px;
}

.council-status-badge .pulse-icon {
    color: var(--argus-violet);
    font-size: 10px;
    animation: argus-pulse 1.5s infinite;
}

.council-btn {
    transition: all 0.3s ease;
}

.council-btn.active {
    background: var(--argus-violet) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--argus-violet);
}

.msg-log-argus h3 { color: var(--argus-blue); margin-top: 10px; font-size: 1.1rem; }
.msg-log-argus h4 { color: var(--argus-violet); margin-top: 15px; font-family: 'Space Mono', monospace; border-bottom: 1px solid rgba(142, 45, 226, 0.3); display: inline-block; font-size: 0.9rem; }
.msg-log-argus hr { border: 0; border-top: 1px solid rgba(255,255,255,0.05); margin: 15px 0; }

.hidden, .display-none { display: none !important; }
.pos-secondary-terminal { top: auto; bottom: 80px; right: 20px; left: auto; transform: none; }
.pos-intelligence-panel { bottom: 200px; right: 20px; left: auto; height: 350px; width: 320px; z-index: 2500; }
.h-monitor { height: calc(100% - 75px); }
.grid-cols-1-2 { grid-template-columns: 1fr 2fr; }
.grid-cols-2-1 { grid-template-columns: 2fr 1fr; }
.grid-cols-1-350 { grid-template-columns: 1fr 350px; }
.grid-cols-320-1fr { grid-template-columns: 320px 1fr; }
.grid-cols-1-1-5 { grid-template-columns: 1fr 1.5fr; }
.grid-cols-fill-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cols-fill-350 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-cols-fill-120 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.h-80vh { height: 80vh; }
.h-450 { height: 450px; }
.h-400 { height: 400px; }
.h-350 { height: 350px; }
.h-250 { height: 250px; }
.h-200 { height: 200px; }
.h-150 { height: 150px; }
.h-120 { height: 120px; }
.h-70 { height: 70px; }
.h-60 { height: 60px; }
.h-20 { height: 20px; }
.max-h-450 { max-height: 450px; }
.max-h-200 { max-height: 200px; }
.max-h-calc-80vh-100px { max-height: calc(80vh - 100px); }
.min-h-400 { min-height: 400px; }
.text-0-65rem { font-size: 0.65rem; }
.text-0-7rem { font-size: 0.7rem; }
.text-0-9rem { font-size: 0.9rem; }
.text-1-1rem { font-size: 1.1rem; }
.text-1-2rem { font-size: 1.2rem; }
.text-1-5rem { font-size: 1.5rem; }
.text-3rem { font-size: 3rem; }
.text-10px { font-size: 10px; }
.text-11px { font-size: 11px; }
.bg-black-o2 { background: rgba(0,0,0,0.2); }
.bg-black-o3 { background: rgba(0,0,0,0.3); }
.bg-black-o4 { background: rgba(0,0,0,0.4); }
.bg-white-0-05 { background: rgba(255,255,255,0.05); }
.bg-white-0-1 { background: rgba(255,255,255,0.1); }
.bg-red-900-0-1 { background: rgba(127, 29, 29, 0.1); }
.bg-orange-900-0-1 { background: rgba(124, 45, 18, 0.1); }
.bg-green-900-0-05 { background: rgba(0, 255, 170, 0.05); }
.bg-blue-900-0-1 { background: rgba(30, 58, 138, 0.1); }
.bg-linear-orange { background: linear-gradient(135deg, #ffaa00, #ff5500); }
.bg-transparent { background: transparent !important; }
.bg-argus-teal { background: var(--argus-teal); }
.border-argus-border-subtle { border: 1px solid var(--argus-border-subtle); }
.border-argus-blue-glow { border: 1px solid var(--argus-blue-glow); }
.border-teal { border-color: var(--argus-teal); }
.border-blue { border-color: var(--argus-blue); }
.border-blue-500-0-2 { border-color: rgba(59, 130, 246, 0.2); }
.border-white-0-1 { border-color: rgba(255, 255, 255, 0.1); }
.border-white-0-05 { border-color: rgba(255, 255, 255, 0.05); }
.border-t-orange { border-top-color: #ffaa00; }
.p-3rem { padding: 3rem; }
.p-15 { padding: 15px; }
.p-2-8 { padding: 2px 8px; }
.pr-5 { padding-right: 5px; }
.m-10 { margin: 10px; }
.pointer-none { pointer-events: none; }
.pointer-auto { pointer-events: auto; }
.font-space-mono { font-family: 'Space Mono', monospace; }
.grid-col-span-2 { grid-column: span 2; }
.bottom-10 { bottom: 10px; }
.right-10 { right: 10px; }
.opacity-0-8 { opacity: 0.8; }
.w-250 { width: 250px; }
.w-0 { width: 0%; }
.object-cover { object-fit: cover; }
.filter-grayscale-contrast { filter: grayscale(1) contrast(1.5); }
.text-black { color: black !important; }
.h-calc-100vh-250px { height: calc(100vh - 250px); }
.h-calc-100-120px { height: calc(100% - 120px); }
.h-calc-80vh-100px { height: calc(80vh - 100px); }

.text-cyan { color: var(--argus-accent-cyan) !important; }
.text-orange { color: #ffaa00 !important; }
.border-orange-o5 { border-color: rgba(255, 170, 0, 0.3) !important; }
.max-w-450 { max-width: 450px !important; }
.max-w-600 { max-width: 600px !important; }
.mt-1rem { margin-top: 1rem !important; }
.p-12 { padding: 12px !important; }
.text-0-6rem { font-size: 0.6rem !important; }
.bg-none { background: none !important; }
.border-none { border: none !important; }
.p-0 { padding: 0 !important; }
.w-full { width: 100% !important; }
.mt-8 { margin-top: 8px !important; }
.pt-1rem { padding-top: 1rem !important; }

/* --- FINANCE & CRYPTO PREMIUM UI --- */
.finance-section {
    padding-bottom: 100px;
}

.finance-card {
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.8), rgba(10, 12, 18, 0.9));
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.finance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.finance-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--argus-blue);
    box-shadow: 0 30px 60px rgba(0, 210, 255, 0.15);
}

.finance-card:hover::before {
    transform: translate(10%, 10%);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--argus-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.crypto-value {
    background: linear-gradient(to right, #fff, #ffaa00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mini-chart-container {
    height: 60px;
    width: 100%;
    margin-top: 1rem;
    position: relative;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
    stroke: var(--argus-teal);
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(0 0 5px var(--argus-teal));
}

.status-badge.premium {
    background: rgba(0, 255, 170, 0.1);
    color: var(--argus-teal);
    border: 1px solid rgba(0, 255, 170, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: syncedPulse 2s infinite;
}

@keyframes syncedPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 170, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 170, 0.5); transform: scale(1.05); }
}

.credit-card-ui {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.2), rgba(0, 210, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-card-ui:hover {
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.3), rgba(0, 210, 255, 0.3));
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotateX(10deg) rotateY(-5deg);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 4px;
    position: relative;
}

.card-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
}

.btn-premium {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-premium:hover {
    background: var(--argus-blue);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.btn-premium.highlight {
    background: var(--accent-gradient);
    border: none;
}

/* EXECUTIVE SOVEREIGNTY STYLES */
.executive-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.executive-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--argus-teal);
    animation: executive-fill 3s linear forwards;
    box-shadow: 0 0 10px var(--argus-teal);
}

@keyframes executive-fill {
    from { width: 0%; }
    to { width: 100%; }
}

.bg-argus-blue-0-1 { background: rgba(0, 210, 255, 0.1); }
.bg-argus-green-0-1 { background: rgba(0, 255, 136, 0.1); }

.animate-pulse-fast {
    animation: pulse-fast 1s infinite alternate;
}

@keyframes pulse-fast {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.02); }
}

.border-left-3 {
    border-left-width: 3px;
    border-left-style: solid;
}

/* --- MELOMANÍA PREMIUM STYLES --- */
.melomania-floating-container {
    position: relative;
    width: 380px;
    z-index: 100;
    perspective: 1000px;
}

.player-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse-glow 4s infinite alternate;
}

.player-glass-card {
    background: rgba(10, 15, 20, 0.7);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.album-art-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 10px;
    background: conic-gradient(from 0deg, transparent, var(--argus-teal), transparent);
    animation: rotate-border 10s linear infinite;
}

#player-album-art {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.album-art-spin {
    animation: spin 20s linear infinite;
}

.spectrum-visualizer {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.spectrum-visualizer .bar {
    width: 4px;
    background: var(--argus-teal);
    border-radius: 2px;
    animation: bar-dance 1s infinite ease-in-out;
}

.btn-player-main {
    width: 70px;
    height: 70px;
    background: var(--argus-teal);
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-player-main:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.8);
}

.btn-player-sub {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-player-sub:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--argus-teal);
}

.player-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}

.player-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--argus-teal);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--argus-teal);
}

@keyframes bar-dance {
    0%, 100% { height: 5px; }
    50% { height: 25px; }
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    from { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}


/* --- SKILLS & PREMIUM UI UTILS --- */
.hover-glow:hover {
    border-color: var(--argus-teal) !important;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
    transform: translateY(-5px);
}

.badge-teal {
    background: rgba(20, 184, 166, 0.2);
    color: var(--argus-teal);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.badge-gray {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-tactical-outline {
    background: transparent;
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tactical-outline:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--argus-teal);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}


/* --- AGENT SELECTION STYLES --- */
.selected-agent-card {
    background: rgba(0, 255, 204, 0.05) !important;
    border: 1px solid var(--argus-teal) !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2) !important;
    transform: translateY(-5px);
}

.selected-agent-card h4 {
    color: var(--argus-teal);
    font-weight: 800;
}

.selected-agent-card .protocol-icon {
    filter: drop-shadow(0 0 5px var(--argus-teal));
    transform: scale(1.1);
}

.modal-tactical {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-tactical.active {
    display: flex;
}

.modal-content-premium {
    padding: 30px;
    border-radius: 15px;
    width: 90%;
}

.border-teal {
    border: 1px solid var(--argus-teal) !important;
}

.border-bottom-teal {
    border-bottom: 1px solid var(--argus-teal) !important;
}

.text-teal {
    color: var(--argus-teal) !important;
}


/* --- PERSISTENT FOREGROUND CONSOLE --- */
.floating-chat-console {
    position: fixed !important;
    bottom: 80px;
    right: 340px; /* Al lado del sidebar derecho */
    width: 400px;
    height: 300px;
    z-index: 7500 !important;
    background: rgba(10, 11, 16, 0.9) !important;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid var(--argus-blue);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex !important;
    flex-direction: column;
    animation: slideUpFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    resize: both;
    overflow: hidden;
}

.floating-chat-console .chat-container {
    height: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
}

.floating-chat-console-header {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

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

/* UI SENTINEL HIGHLIGHTS */
.sentinel-healing {
    animation: healPulse 1s ease-in-out;
}

@keyframes healPulse {
    0% { box-shadow: 0 0 0px var(--argus-teal); }
    50% { box-shadow: 0 0 20px var(--argus-teal); }
    100% { box-shadow: 0 0 0px var(--argus-teal); }
}

.foreground-status-indicator {
    display: inline-block;
    margin-left: 5px;
}

/* ============================================================
   ARGUS MOBILE NAVIGATION SYSTEM — MARK IV
   Bottom Tab Bar + Slide Drawer + Mobile Header
   ============================================================ */

/* Hide mobile-only elements on desktop */
.mobile-header,
.mobile-tab-bar,
.mobile-drawer,
.mobile-drawer-overlay {
    display: none;
}

@media (max-width: 768px) {

    /* --- Hide desktop elements on mobile --- */
    .sidebar,
    .right-sidebar,
    .master-menu,
    .header-top,
    body > header:not(.mobile-header),
    #news-monitor,
    #news-monitor.news-monitor-container {
        display: none !important;
    }

    body {
        padding: 0 !important;
    }

    body > main {
        padding-top: 66px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    .global-footer {
        left: 0 !important;
        right: 0 !important;
        bottom: 76px !important;
        padding: 0 12px !important;
    }

    #footer-primary {
        bottom: 76px !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* --- Layout base --- */
    .app-container {
        flex-direction: column !important;
        margin-top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        padding-bottom: 70px !important;
    }

    .main-content {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }

    /* Compensate for mobile header */
    .section {
        padding-top: 66px !important;
    }

    /* --- Mobile Top Header --- */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: rgba(10, 11, 16, 0.96);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 210, 255, 0.15);
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        z-index: 7000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 4);
    }

    .mobile-header-logo {
        font-family: 'Space Mono', monospace;
        font-size: 1.1rem;
        font-weight: 800;
        letter-spacing: 3px;
        background: linear-gradient(135deg, #00d2ff, #8e2de2);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .mobile-header-section-name {
        font-size: 0.65rem;
        color: rgba(0, 210, 255, 0.7);
        letter-spacing: 2px;
        text-transform: uppercase;
        font-family: 'Space Mono', monospace;
    }

    .mobile-hamburger-btn {
        background: rgba(0, 210, 255, 0.08);
        border: 1px solid rgba(0, 210, 255, 0.2);
        color: #00d2ff;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-hamburger-btn:active {
        background: rgba(0, 210, 255, 0.2);
        transform: scale(0.95);
    }

    .hamburger-bar {
        width: 20px;
        height: 2px;
        background: #00d2ff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-hamburger-btn.open .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-hamburger-btn.open .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-hamburger-btn.open .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* --- Bottom Tab Bar --- */
    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(10, 11, 16, 0.97);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(0, 210, 255, 0.15);
        align-items: center;
        justify-content: space-around;
        z-index: 7000;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        color: rgba(224, 230, 237, 0.4);
        min-width: 58px;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .mobile-tab-item:active {
        transform: scale(0.88);
    }

    .mobile-tab-item.active {
        color: #00d2ff;
    }

    .mobile-tab-item.active .tab-icon-wrap {
        background: rgba(0, 210, 255, 0.12);
        box-shadow: 0 0 18px rgba(0, 210, 255, 0.25);
    }

    .tab-icon-wrap {
        width: 42px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        transition: all 0.2s ease;
        font-size: 1.2rem;
        line-height: 1;
    }

    .mobile-tab-label {
        font-size: 0.57rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-tab-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 3px;
        background: linear-gradient(90deg, #00d2ff, #8e2de2);
        border-radius: 0 0 3px 3px;
        box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
    }

    /* --- Drawer Overlay --- */
    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 7500;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        animation: fadeInOverlay 0.2s ease;
    }

    .mobile-drawer-overlay.open {
        display: block;
    }

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

    /* --- Slide-in Drawer --- */
    .mobile-drawer {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100dvh;
        background: rgba(10, 12, 20, 0.98);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        border-right: 1px solid rgba(0, 210, 255, 0.15);
        z-index: 8000;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        overflow: hidden;
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.7);
    }

    .mobile-drawer.open {
        transform: translateX(0);
    }

    .drawer-header {
        padding: 24px 20px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(180deg, rgba(0, 210, 255, 0.05) 0%, transparent 100%);
    }

    .drawer-logo {
        font-family: 'Space Mono', monospace;
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: 4px;
        background: linear-gradient(135deg, #00d2ff, #8e2de2);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 4px;
    }

    .drawer-subtitle {
        font-size: 0.6rem;
        color: rgba(0, 210, 255, 0.5);
        letter-spacing: 2px;
        text-transform: uppercase;
        font-family: 'Space Mono', monospace;
    }

    .drawer-nav {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .drawer-nav::-webkit-scrollbar { width: 0; }

    .drawer-section-label {
        font-size: 0.58rem;
        color: rgba(255, 255, 255, 0.22);
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 14px 10px 6px;
        font-family: 'Space Mono', monospace;
    }

    .drawer-nav-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 14px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: rgba(224, 230, 237, 0.6);
        margin-bottom: 2px;
        -webkit-tap-highlight-color: transparent;
        font-size: 0.9rem;
        font-weight: 500;
        border-left: 3px solid transparent;
    }

    .drawer-nav-item:active {
        background: rgba(0, 210, 255, 0.08);
        transform: scale(0.98);
    }

    .drawer-nav-item.active {
        background: rgba(0, 210, 255, 0.1);
        color: #00d2ff;
        border-left-color: #00d2ff;
    }

    .drawer-nav-item .d-icon {
        font-size: 1.1rem;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }

    .drawer-footer {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .drawer-status {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.68rem;
        color: rgba(0, 255, 170, 0.8);
        font-family: 'Space Mono', monospace;
    }

    .drawer-status-dot {
        width: 7px;
        height: 7px;
        background: #00ffaa;
        border-radius: 50%;
        box-shadow: 0 0 8px #00ffaa;
        animation: pulse-dot-mobile 2s infinite;
    }

    @keyframes pulse-dot-mobile {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    .drawer-close-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .drawer-close-btn:active {
        background: rgba(255, 255, 255, 0.12);
    }

    /* Adjust input area */
    .input-area {
        max-width: 100% !important;
        border-radius: 20px !important;
    }
}

/* ECO-MODE BADGE */
.eco-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--argus-teal);
    border: 1px solid rgba(0, 243, 255, 0.3);
    letter-spacing: 0.1em;
    opacity: 0;
    transition: all 0.3s ease;
}

.eco-badge.active {
    opacity: 1;
    animation: eco-pulse 3s infinite;
}

@keyframes eco-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 243, 255, 0.2); }
    50% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.5); border-color: var(--argus-teal); }
}


/* 🧪 ARGUS LAB — DIAGNOSTIC STYLES */
#section-lab .lab-header { margin-bottom: 2rem; }
#section-lab .lab-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d2ff, #8e2de2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lab-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.lab-card {
    padding: 16px;
    border-radius: 12px;
}

.lab-status-text { font-size: 0.85rem; }
.lab-count-text { font-size: 1.5rem; font-weight: 800; }
.lab-btn-small { margin-top: 10px; width: 100%; font-size: 0.65rem; }

.lab-tools-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lab-log-box {
    height: 280px;
    overflow-y: auto;
    font-size: 0.65rem;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.lab-btn-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-data-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lab-editor {
    width: 100%;
    height: 220px;
    font-size: 0.65rem;
    resize: vertical;
}

.lab-storage-box {
    height: 260px;
    overflow-y: auto;
    font-size: 0.62rem;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
}

.lab-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .lab-tools-split, .lab-data-split {
        grid-template-columns: 1fr;
    }
}

/* 🛠️ ARGUS UTILITY CLASSES */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mt-10 { margin-top: 10px; }
.mt-8 { margin-top: 8px; }
.tracking-2 { letter-spacing: 2px; }
.text-0-6rem { font-size: 0.6rem; }
.text-0-65rem { font-size: 0.65rem; }
.text-xs { font-size: 0.75rem; }
.font-800 { font-weight: 800; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.py-3 { padding-top: 3px; padding-bottom: 3px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.w-auto { width: auto; }
.flex-1 { flex: 1; }
.border-red-40 { border-color: rgba(255, 68, 68, 0.4); }
.text-red { color: #ff4444; }
.text-orange { color: #ffbb33; }

/* --- ARGUS V4 PERSISTENT CONSOLE LAYOUT --- */
.app-container {
    display: grid !important;
    grid-template-columns: var(--sidebar-width) 1fr 350px 220px !important;
    height: calc(100vh - var(--menu-height)) !important;
    width: 100vw !important;
    margin-top: var(--menu-height) !important;
    overflow: hidden !important;
}

.main-content {
    flex-grow: 1;
    height: 100%;
    overflow: hidden !important;
    padding: 0 !important;
    background: rgba(5, 7, 15, 0.3);
    border-right: 1px solid rgba(0, 210, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   PERSISTENT AI CONSOLE — ARGUS MARK IV
   Always-visible, scrollable command console with terminal aesthetic
   ═══════════════════════════════════════════════════════════ */
.persistent-console-sidebar {
    grid-column: 3;
    height: 100%;
    min-height: 0; /* Critical for flex/grid children to enable scroll */
    background: linear-gradient(180deg, rgba(5, 7, 20, 0.98) 0%, rgba(2, 4, 12, 0.99) 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(0, 210, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 5500;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Console Header — Fixed top bar */
.console-header {
    padding: 10px 16px;
    background: rgba(0, 210, 255, 0.04);
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
}

.console-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
}

.console-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--argus-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-title::before {
    content: '◉';
    font-size: 0.5rem;
    color: var(--argus-teal);
    animation: consolePulse 2s ease-in-out infinite;
}

@keyframes consolePulse {
    0%, 100% { opacity: 0.4; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 6px var(--argus-teal); }
}

.console-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-controls .status-dot.online {
    width: 6px;
    height: 6px;
}

/* Chat Messages Area — Scrollable */
.chat-container-persistent {
    flex: 1 1 0;
    min-height: 0; /* Critical: allows flex child to shrink and scroll */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.chat-container-persistent::-webkit-scrollbar {
    width: 4px;
}

.chat-container-persistent::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container-persistent::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.25);
    border-radius: 2px;
}

.chat-container-persistent::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 255, 0.5);
}

/* Console Log Messages */
.console-log-entry {
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    animation: consoleSlideIn 0.25s ease-out;
    border-left: 2px solid rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.03);
    word-break: break-word;
    position: relative;
}

.console-log-entry.type-info {
    border-left-color: rgba(0, 170, 255, 0.5);
    color: #8ec8e8;
}

.console-log-entry.type-success {
    border-left-color: rgba(0, 210, 141, 0.6);
    color: var(--argus-teal);
    background: rgba(0, 210, 141, 0.04);
}

.console-log-entry.type-warning {
    border-left-color: rgba(255, 170, 0, 0.6);
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.04);
}

.console-log-entry.type-error {
    border-left-color: rgba(255, 85, 85, 0.6);
    color: #ff6b6b;
    background: rgba(255, 85, 85, 0.04);
}

.console-log-entry.type-user {
    border-left-color: rgba(142, 45, 226, 0.6);
    color: #c4a5ff;
    background: rgba(142, 45, 226, 0.05);
    text-align: right;
    border-left: none;
    border-right: 2px solid rgba(142, 45, 226, 0.6);
}

.console-log-entry.type-argus {
    border-left-color: var(--argus-blue);
    color: var(--text-high);
    background: rgba(0, 170, 255, 0.06);
    border-left-width: 3px;
}

.console-log-timestamp {
    font-size: 0.55rem;
    opacity: 0.35;
    margin-right: 6px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.5px;
}

.console-log-label {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 2px;
    display: block;
}

.console-log-text {
    display: block;
}

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

/* Empty state */
.console-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    opacity: 0.3;
    gap: 8px;
}

.console-empty-state .console-empty-icon {
    font-size: 2rem;
}

.console-empty-state .console-empty-text {
    font-size: 0.65rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

/* Auto-scroll indicator */
.console-scroll-anchor {
    height: 0;
    width: 0;
    flex-shrink: 0;
}

/* Input Area — Fixed bottom */
.input-area-persistent {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    flex-shrink: 0;
}

.input-wrapper-persistent {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.input-wrapper-persistent:focus-within {
    border-color: var(--argus-blue);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15), inset 0 0 4px rgba(0, 210, 255, 0.05);
    background: rgba(0, 210, 255, 0.02);
}

.terminal-input-persistent {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-high);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    padding: 7px 0;
    outline: none;
}

.terminal-input-persistent::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}

.send-btn-persistent {
    background: transparent;
    border: none;
    color: var(--argus-blue);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 4px;
}

.send-btn-persistent:hover {
    transform: scale(1.15);
    color: var(--argus-teal);
    background: rgba(0, 210, 255, 0.1);
}

/* Console Clear Button */
.console-clear-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.console-clear-btn:hover {
    color: var(--argus-blue);
    background: rgba(0, 210, 255, 0.1);
}

/* Hide redundant elements in the new layout */
#section-chat { display: none !important; }
.right-sidebar { display: none !important; }

/* --- PROFESSIONAL INDUSTRIAL LAYOUT (v3.0) --- */
.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}

.sidebar-brand {
    margin-bottom: 40px;
    padding-left: 8px;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--argus-blue);
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.5;
    text-transform: uppercase;
}

.connection-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    width: fit-content;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.connection-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.kintsugi-dot {
    background: var(--argus-teal) !important;
    box-shadow: 0 0 10px var(--argus-teal);
}

.connection-badge.online {
    border-color: rgba(0, 210, 255, 0.3);
    color: var(--argus-blue);
}

.connection-badge.online .status-dot {
    background: var(--argus-blue);
    box-shadow: 0 0 8px var(--argus-blue);
    animation: pulse-online 2s infinite;
}

.connection-badge.offline {
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.connection-badge.offline .status-dot {
    background: #ff4444;
    box-shadow: 0 0 8px #ff4444;
}

@keyframes pulse-online {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.nav-category {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-low);
    letter-spacing: 2px;
    margin: 24px 0 12px 8px;
    text-transform: uppercase;
}

.nav-item {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-high);
}

.nav-item.active {
    background: rgba(0, 170, 255, 0.05);
    color: var(--argus-blue);
    border-color: var(--border-strong);
}

/* BENTO GRID SYSTEM */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 16px;
    margin-top: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.bento-item:hover {
    border-color: var(--border-strong);
}

.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

.card-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-low);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.balance-value {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--argus-teal);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.breadcrumb {
    font-size: 0.7rem;
    color: var(--text-low);
    margin-top: 4px;
}

/* Redefinir Consola Persistente para el nuevo look */
.persistent-console-sidebar {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(2, 4, 12, 0.99) 100%) !important;
    border-left: 1px solid var(--border-dim) !important;
}

.console-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--border-dim) !important;
}

/* Responsive: turn persistent console into a bottom drawer on mobile */
@media (max-width: 768px) {
    .persistent-console-sidebar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 90px !important; /* Default collapsed height showing header + input */
        grid-column: auto !important;
        border-left: none !important;
        border-top: 2px solid rgba(0, 210, 255, 0.4) !important;
        z-index: 10000 !important;
        transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2) !important;
        background: rgba(10, 15, 25, 0.96) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7) !important;
    }

    .persistent-console-sidebar.expanded {
        height: 55vh !important; /* Expanded view height */
    }

    /* Adjust elements inside drawer on mobile */
    .persistent-console-sidebar .console-header {
        cursor: pointer;
        background: rgba(0, 210, 255, 0.08) !important;
        padding: 8px 16px !important;
        min-height: 36px !important;
        border-bottom: 1px solid rgba(0, 210, 255, 0.2) !important;
    }

    .persistent-console-sidebar .console-title::after {
        content: ' ↕ (Toca para expandir/colapsar)';
        font-size: 0.55rem;
        opacity: 0.6;
        color: var(--argus-teal);
        margin-left: 10px;
    }

    .persistent-console-sidebar .chat-container-persistent {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        padding: 8px 12px !important;
    }

    .persistent-console-sidebar.expanded .chat-container-persistent {
        opacity: 1;
        visibility: visible;
    }

    .persistent-console-sidebar .input-area-persistent {
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-top: 1px solid rgba(0, 210, 255, 0.1) !important;
    }
    
    /* Adjust main content layout so it doesn't get clipped by the drawer */
    .main-content {
        height: calc(100vh - 170px) !important;
    }
    
    .ops-sidebar-secondary {
        display: none !important;
    }
}

/* Persistent microphone voice button styling */
.voice-btn-persistent {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn-persistent:hover {
    color: var(--argus-blue);
    background: rgba(0, 210, 255, 0.1);
}

.voice-btn-persistent.listening {
    color: #ff3b30 !important;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    animation: micPulse 1.2s infinite ease-in-out;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hidden-forced {
    display: none !important;
}

/* --- TACTICAL CUSTOMIZATION INTERFACE --- */
.graph-customization-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 230px;
    background: rgba(8, 12, 22, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--argus-blue-glow);
    border-radius: 8px;
    padding: 12px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 210, 255, 0.15);
}

.custom-control-group {
    margin-bottom: 10px;
}

.custom-control-group label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--argus-blue);
    text-transform: uppercase;
    margin-bottom: 3px;
    font-family: 'Space Mono', monospace;
}

.custom-control-group .tactical-select {
    padding: 6px 8px;
    font-size: 0.75rem;
    height: auto;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- CAMERA CONTROLS BAR (CCTV) --- */
.camera-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 8, 15, 0.85);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    z-index: 10;
    pointer-events: auto; /* IMPORTANTE: Permitir clics de mouse sobre el overlay */
}

.camera-controls-bar .control-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.camera-controls-bar label {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--argus-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Mono', monospace;
}

.camera-controls-bar select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
    padding: 4px 6px;
    outline: none;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
}

.camera-controls-bar select:focus {
    border-color: var(--argus-teal);
    background: rgba(0, 255, 170, 0.08);
}

/* --- LIVE VIDEO ASPECT RATIOS --- */
.camera-view-placeholder {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crt-ratio {
    aspect-ratio: 4 / 3 !important;
    max-width: 580px !important;
    margin: 0 auto !important;
}

.hd-ratio {
    aspect-ratio: 16 / 9 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* --- FILTROS DE VÍDEO TÁCTICOS --- */
.filter-grayscale-tactical {
    filter: grayscale(1) contrast(1.6) brightness(0.9) !important;
}

.filter-thermal {
    filter: hue-rotate(180deg) saturate(3.5) contrast(2.2) brightness(0.8) sepia(0.3) !important;
}

.filter-night {
    filter: sepia(1) hue-rotate(85deg) saturate(4.5) brightness(0.7) contrast(1.5) !important;
}

.filter-crt {
    filter: grayscale(0.2) contrast(1.3) brightness(1.05) !important;
}

.filter-normal {
    filter: none !important;
}
