/* Omni Dashboard - Enterprise Design System */
:root {
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --color-accent-blue: #3B82F6;
    --color-accent-gold: #F59E0B;
}

.dashboard-layout {
    background: radial-gradient(circle at top right, rgba(30, 41, 59, 0.5), transparent),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.8), #020617);
}

.glass-panel-premium {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--glass-highlight);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #B45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Pipeline Table Styling */
table thead tr {
    border-bottom: 2px solid var(--glass-border);
}

table tbody tr:last-child {
    border-bottom: none;
}

/* Ticker Animation */
.news-ticker-container {
    background: rgba(0, 0, 0, 0.4);
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: var(--space-6) 0;
}

.ticker-label {
    background: var(--color-accent-gold);
    color: #000;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    gap: 40px;
    padding-left: 20px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 600;
}

.ticker-up {
    color: #10B981;
}

.ticker-down {
    color: #EF4444;
}

/* Map Header */
.omni-map-header {
    height: 400px;
    background: url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&q=80&w=2000') center center;
    background-size: cover;
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.omni-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(2, 6, 23, 0.9) 100%);
    pointer-events: none;
}

/* Buttons */
.btn-hyper {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #fff;
    border: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-hyper:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
}

/* --- ROBUSTNESS & MOBILE UTILITIES --- */

.skeleton-pulse {
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 400% 400%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #F8FAFC;
    padding: 8px 10px;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background 0.2s;
}

.mobile-toggle:hover,
.mobile-toggle:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* .nav-links logic now handled via window.initMobileNav portal in body */
    .nav-links {
        display: none !important;
    }
}

.responsive-panel-padding {
    padding: var(--container-padding);
}

.omni-header .x-logo-box {
    width: 42px;
    height: 42px;
    background: var(--color-accent-primary);
    color: #000;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    border-radius: 8px;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-gold);
}

.omni-header .brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.omni-header .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-accent-primary);
    background: var(--color-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-accent-primary);
    cursor: pointer;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2.5vw, 32px);
    padding: 0 var(--space-8);
    overflow: hidden;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-tertiary);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-accent-primary);
}
/* --- CINEMATIC ENHANCEMENTS & ANIMATIONS --- */

@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(250, 204, 21, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
}

@keyframes scanning-line {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes mesh-fade {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.glow-emerald { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }
.glow-amber { border-color: rgba(250, 204, 21, 0.4); box-shadow: 0 0 20px rgba(250, 204, 21, 0.15); }
.glow-blue { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
.glow-purple { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 20px rgba(139, 92, 246, 0.15); }

.scanning-hud {
    position: relative;
    overflow: hidden;
}

.scanning-hud::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.8), transparent);
    animation: scanning-line 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

.resonance-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.resonance-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-accent-gold), #F97316);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: status-pulse 2s infinite ease-in-out;
}

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

/* --- NAV VISIBILITY FIX & VOID ELIMINATION --- */

@media (min-width: 1025px) {
    .nav-links.desktop-only {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mesh-bg {
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.4) 0%, #010411 100%) !important;
}

#neural-topography {
    opacity: 0.12 !important;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes ambient-glow {
    0% { background-position: 0% 50%; opacity: 0.2; }
    50% { background-position: 100% 50%; opacity: 0.4; }
    100% { background-position: 0% 50%; opacity: 0.2; }
}

.ambient-light-field {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.dashboard-layout {
    padding-top: 20px !important;
}

.omni-dashboard-header {
    margin-top: -10px !important;
}
