/* ========================================
   TOP MENU BAR (Tabs as Menu)
   ======================================== */
.top-menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid rgba(0, 200, 255, 0.5);
    box-shadow: 0 2px 20px rgba(0, 200, 255, 0.3);
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.top-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.top-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* GIF Header Container - Enhanced */
.gif-header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: auto;
    min-width: 200px;
}

.sword-gif-header {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.8));
    animation: swordGlow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.sword-gif-header:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 255, 150, 1)) drop-shadow(0 0 30px rgba(0, 200, 255, 0.8));
}

@keyframes swordGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.8));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(0, 255, 150, 1)) drop-shadow(0 0 30px rgba(0, 200, 255, 0.8));
        transform: scale(1.02);
    }
}

.gif-header-overlay {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 200, 255, 0.5);
    pointer-events: none;
}

.gif-header-text {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: bold;
    color: #00c8ff;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.8);
    letter-spacing: 1px;
    white-space: nowrap;
}

.sword-gif-fallback {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00c8ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    letter-spacing: 2px;
}

.top-menu-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.top-menu-item,
a.top-menu-item,
a.top-menu-item {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: rgba(0, 200, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
}

.top-menu-item:hover,
a.top-menu-item:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: rgba(0, 200, 255, 0.6);
    color: var(--color-matrix-green);
    text-decoration: none;
}

.top-menu-item.active,
a.top-menu-item.active {
    background: rgba(0, 200, 255, 0.2);
    border-color: rgba(0, 200, 255, 0.6);
    color: var(--color-matrix-green);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    text-decoration: none;
}

.top-menu-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-menu-action {
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: rgba(0, 200, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.35);
    font-weight: 600;
    font-family: inherit;
    color: var(--color-matrix-green);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn i {
    font-size: 0.95rem;
}

.btn:hover {
    background: rgba(0, 255, 0, 0.12);
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-color: transparent;
    color: #021b10;
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 18px 35px rgba(0, 255, 136, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(0, 255, 0, 0.08);
    border-color: rgba(0, 255, 0, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.18);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(0, 255, 0, 0.25);
}

.btn-ghost:hover {
    background: rgba(0, 255, 0, 0.08);
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}

.network-indicator .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}

.network-indicator .status-dot.online {
    color: #00ff88;
    background: #00ff88;
}

.network-indicator .status-dot.offline {
    color: #ff4d4d;
    background: #ff4d4d;
}

.network-indicator .status-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.section-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(0, 255, 0, 0.25);
    border-radius: 14px;
    margin-bottom: var(--spacing-xl);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 18px rgba(0, 255, 0, 0.08);
}

.section-card .section-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.section-card .section-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.25);
    background: rgba(0, 0, 0, 0.65);
    color: var(--color-matrix-green);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 255, 0, 0.55);
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.35);
    background: rgba(0, 0, 0, 0.85);
}

.top-menu-action:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: rgba(0, 200, 255, 0.6);
    color: var(--color-matrix-green);
}

/* Adjust body padding for top menu */
body {
    padding-top: 80px;
}

/* ========================================
   MONITOR CLIP BACKGROUND
   ======================================== */
.monitor-clip-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Prevent interference with monitor content */
    isolation: isolate;
    mix-blend-mode: normal;
}

.clip-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    pointer-events: none;
    /* Ensure overlay doesn't interfere */
    mix-blend-mode: normal;
}

.clip-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    z-index: 0;
}

.clip-preview-item {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px solid rgba(0, 200, 255, 0.4);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.5;
    transition: all 0.3s ease;
    /* Prevent interference - isolate rendering */
    isolation: isolate;
    mix-blend-mode: normal;
    /* Ensure video doesn't interfere with text */
    will-change: opacity;
}

.clip-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevent video from interfering */
    mix-blend-mode: normal;
    opacity: 0.6;
}

.clip-preview-item:hover {
    opacity: 0.8;
    border-color: rgba(0, 200, 255, 0.8);
}

.clip-preview-item:hover video {
    opacity: 0.8;
    transform: scale(1.05);
}

.clip-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip-preview-item .clip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    color: var(--color-matrix-green);
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
}

.matrix-monitor-container {
    position: relative;
    z-index: 1;
}

/* ========================================
   DISCORD INTEGRATION STYLING
   ======================================== */
.discord-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.discord-controls {
    margin-bottom: 1.5rem;
}

.discord-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: #5865f2;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
    color: #7289da;
}

.discord-messages-preview {
    margin-top: 1.5rem;
}

.discord-messages-preview h5 {
    color: var(--color-matrix-green);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-messages-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discord-message-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 4px;
    color: rgba(0, 200, 255, 0.9);
    font-size: 0.85rem;
}

.discord-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: rgba(88, 101, 242, 0.8);
}

.discord-message-content {
    color: rgba(0, 200, 255, 0.9);
}

/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --color-matrix-green: #00ff00;
    --color-matrix-green-dim: #00cc00;
    --color-matrix-green-bright: #00ff41;
    --color-matrix-bg-dark: #000000;
    --color-matrix-bg-darker: #001100;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-glow-matrix: 0 0 20px rgba(0, 255, 0, 0.5);
    --shadow-glow-matrix-intense: 0 0 60px rgba(0, 255, 0, 0.9);
}

/* ========================================
   Global Matrix Theme - Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #001100 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--color-matrix-green);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Matrix Rain Background Canvas - Full Page Falling Rain */
/* Matrix Rain Left Panel (65px bred) */
.matrix-rain-left-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 65px;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-right: 2px solid rgba(0, 255, 0, 0.3);
}

.matrix-rain-left-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.matrix-rain-background {
    display: block !important; /* Visible from start - full page rain effect */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    visibility: visible !important;
}

/* Matrix background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    animation: matrix-scan 20s linear infinite;
}

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

/* Matrix pulse animation */
@keyframes matrix-pulse-intense {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(0, 255, 0, 0.9),
            0 0 120px rgba(0, 255, 0, 0.7),
            0 0 180px rgba(0, 255, 0, 0.5),
            inset 0 0 60px rgba(0, 255, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(0, 255, 0, 1),
            0 0 140px rgba(0, 255, 0, 0.8),
            0 0 200px rgba(0, 255, 0, 0.6),
            inset 0 0 80px rgba(0, 255, 0, 0.3);
    }
}

/* ========================================
   Container & Layout
   ======================================== */
/* Professional container layout - Sophisticated Design */
.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 80px !important; /* Space for left matrix rain panel (65px + padding) */
    margin-right: 75px !important; /* Space for right MasterNoder2 ad (60px + padding) */
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ========================================
   Glass Panel (Matrix Theme)
   ======================================== */
.glass-panel {
    background: rgba(0, 20, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 255, 0, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.15);
}

/* ========================================
   Fancy Header
   ======================================== */
.fancy-header {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    background: rgba(0, 20, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 0, 0.4);
    position: relative;
}

.header-content {
    margin-bottom: var(--spacing-lg);
}

.fancy-title {
    font-size: 9rem !important; /* DOBBELT størrelse (4.5rem * 2 = 9rem) */
    font-weight: 700 !important;
    margin-bottom: var(--spacing-md) !important;
    color: var(--color-matrix-green) !important;
    /* Oldnordisk mytrologisk font */
    font-family: 'Cinzel', 'Uncial Antiqua', 'MedievalSharp', serif !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    text-shadow: 
        0 0 15px var(--color-matrix-green),
        0 0 30px rgba(0, 255, 0, 0.8),
        0 0 45px rgba(0, 255, 0, 0.6),
        0 0 60px rgba(0, 150, 255, 0.5),
        0 0 90px rgba(0, 100, 200, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--spacing-md) !important;
    flex-wrap: wrap !important;
    position: relative !important;
    filter: drop-shadow(0 0 25px rgba(0, 150, 255, 0.8)) !important;
    /* .gif agtig animation */
    animation: titleGifAnimation 3s ease-in-out infinite !important;
}

/* .gif agtig animation for title */
@keyframes titleGifAnimation {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 25px rgba(0, 150, 255, 0.8)) brightness(1);
    }
    25% { 
        transform: scale(1.02) rotate(0.5deg);
        filter: drop-shadow(0 0 30px rgba(0, 150, 255, 1)) brightness(1.1);
    }
    50% { 
        transform: scale(1.05) rotate(0deg);
        filter: drop-shadow(0 0 35px rgba(0, 200, 255, 1)) brightness(1.2);
    }
    75% { 
        transform: scale(1.02) rotate(-0.5deg);
        filter: drop-shadow(0 0 30px rgba(0, 150, 255, 1)) brightness(1.1);
    }
}

/* Olympic Blue Flame Effect for Title - ENHANCED AND FORCED VISIBLE */
.fancy-title::before {
    content: '' !important; /* Empty content for pure gradient effect */
    position: absolute !important;
    top: -50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 180px !important; /* 1.5x bigger */
    height: 270px !important; /* 1.5x bigger */
    background: 
        radial-gradient(ellipse at center top, 
            rgba(0, 150, 255, 1) 0%, 
            rgba(0, 100, 200, 0.95) 15%, 
            rgba(0, 200, 255, 0.85) 30%, 
            rgba(0, 255, 150, 0.75) 45%, 
            rgba(0, 255, 200, 0.6) 60%,
            rgba(0, 200, 255, 0.4) 75%,
            transparent 95%),
        radial-gradient(ellipse at 30% 25%, 
            rgba(0, 255, 150, 0.95) 0%, 
            rgba(0, 200, 255, 0.8) 25%, 
            rgba(0, 150, 255, 0.6) 45%,
            transparent 70%),
        radial-gradient(ellipse at 70% 25%, 
            rgba(0, 200, 255, 0.95) 0%, 
            rgba(0, 150, 255, 0.8) 25%, 
            rgba(0, 255, 150, 0.6) 45%,
            transparent 70%) !important;
    filter: blur(20px) brightness(1.3) !important;
    animation: olympicFlame 2.5s ease-in-out infinite alternate !important;
    z-index: 1 !important; /* Above text but below other content */
    pointer-events: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    mix-blend-mode: screen !important;
}

.fancy-title::after {
    content: '' !important;
    position: absolute !important;
    top: -60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 210px !important; /* 1.5x bigger */
    height: 300px !important; /* 1.5x bigger */
    background: 
        radial-gradient(ellipse at center top, 
            rgba(0, 255, 150, 0.9) 0%, 
            rgba(0, 200, 255, 0.8) 12%, 
            rgba(0, 150, 255, 0.7) 30%, 
            rgba(0, 100, 200, 0.6) 50%, 
            rgba(0, 150, 255, 0.4) 70%,
            rgba(0, 200, 255, 0.2) 85%,
            transparent 100%) !important;
    filter: blur(35px) brightness(1.2) !important;
    animation: olympicFlameGlow 2s ease-in-out infinite alternate !important;
    z-index: 0 !important; /* Behind ::before but above background */
    pointer-events: none !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    mix-blend-mode: screen !important;
}

@keyframes olympicFlame {
    0% {
        transform: translateX(-50%) translateY(0) scaleY(1) scaleX(1);
        opacity: 0.85;
    }
    20% {
        transform: translateX(-50%) translateY(-8px) scaleY(1.15) scaleX(0.92);
        opacity: 0.95;
    }
    40% {
        transform: translateX(-50%) translateY(-12px) scaleY(1.25) scaleX(1.08);
        opacity: 1;
    }
    60% {
        transform: translateX(-50%) translateY(-10px) scaleY(1.18) scaleX(0.95);
        opacity: 0.95;
    }
    80% {
        transform: translateX(-50%) translateY(-5px) scaleY(1.1) scaleX(1.02);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) translateY(0) scaleY(1) scaleX(1);
        opacity: 0.85;
    }
}

@keyframes olympicFlameGlow {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translateX(-50%) translateY(-8px) scale(1.15);
        opacity: 0.85;
    }
    60% {
        transform: translateX(-50%) translateY(-15px) scale(1.3);
        opacity: 0.95;
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.7;
    }
}

.title-icon {
    font-size: 5.25rem; /* 1.5x bigger (3.5rem * 1.5 = 5.25rem) */
    animation: matrix-pulse-intense 2s ease-in-out infinite;
}

.title-text {
    font-size: 4.5rem; /* 1.5x bigger (3rem * 1.5 = 4.5rem) */
}

.title-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid var(--color-matrix-green);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-matrix-green-dim);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.6);
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    min-width: 150px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-matrix-green-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1rem;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   Generator Panel
   ======================================== */
.generator-panel {
    margin-top: var(--spacing-xl);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.section-header h3 {
    font-size: 1.5rem;
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.collapse-toggle {
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--color-matrix-green);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.collapse-toggle:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--color-matrix-green);
}

/* ========================================
   Templates Section
   ======================================== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.template-card {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--color-matrix-green);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: translateY(-5px);
}

.template-card i {
    font-size: 2.5rem;
    color: var(--color-matrix-green);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px var(--color-matrix-green);
}

.template-card h4 {
    color: var(--color-matrix-green);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.template-card p {
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
}

/* ========================================
   Prompt Section
   ======================================== */
.prompt-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.section-header label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-matrix-green);
    font-size: 1.2rem;
    font-weight: 600;
}

.required-badge,
.optional-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required-badge {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
}

.optional-badge {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--color-matrix-green-dim);
}

.char-counter {
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    margin-top: var(--spacing-sm);
}

.input-wrapper textarea,
.input-wrapper input {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-wrapper textarea:focus,
.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.input-wrapper textarea::placeholder,
.input-wrapper input::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

.input-actions {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-xs);
}

.input-action-btn {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--color-matrix-green);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-action-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
}

.char-counter-small {
    position: absolute;
    bottom: var(--spacing-xs);
    right: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--color-matrix-green-dim);
}

.prompt-suggestions {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: var(--radius-md);
}

.suggestions-label {
    display: block;
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.suggestions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.suggestions-buttons button,
.suggestion-chip {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: var(--radius-sm);
    color: var(--color-matrix-green);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.suggestions-buttons button:hover,
.suggestion-chip:hover {
    background: rgba(0, 255, 0, 0.25);
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.suggestions-buttons button i,
.suggestion-chip i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ========================================
   Options Section
   ======================================== */
.options-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.options-content {
    margin-top: var(--spacing-md);
}

.form-row {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    color: var(--color-matrix-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.setting-input,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setting-input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.generate-title-btn {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.generate-title-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-matrix-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.tag .tag-remove {
    cursor: pointer;
    color: var(--color-matrix-green-dim);
}

.tag .tag-remove:hover {
    color: var(--color-matrix-green);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    color: var(--color-matrix-green-dim);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* ========================================
   Upload Section
   ======================================== */
.upload-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.upload-content {
    margin-top: var(--spacing-md);
}

.upload-zone {
    border: 2px dashed rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.upload-zone:hover {
    border-color: var(--color-matrix-green);
    background: rgba(0, 255, 0, 0.05);
}

.upload-zone.drag-over {
    border-color: var(--color-matrix-green);
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.upload-icon {
    font-size: 3rem;
    color: var(--color-matrix-green);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 10px var(--color-matrix-green);
}

.upload-text {
    color: var(--color-matrix-green);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.upload-link {
    color: var(--color-matrix-green-bright);
    text-decoration: underline;
}

.upload-hint {
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
}

.upload-files {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.upload-file-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-file-name {
    color: var(--color-matrix-green);
    flex: 1;
}

.upload-file-size {
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
    margin-right: var(--spacing-md);
}

.upload-file-remove {
    background: transparent;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.upload-file-remove:hover {
    color: #ff6666;
}

/* ========================================
   Generate Button
   ======================================== */
.generate-section {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.generate-btn {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 204, 0, 0.2));
    border: 3px solid var(--color-matrix-green);
    border-radius: var(--radius-lg);
    color: var(--color-matrix-green);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(0, 204, 0, 0.3));
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.8),
        inset 0 0 50px rgba(0, 255, 0, 0.2);
    transform: translateY(-3px);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-icon {
    font-size: 1.5rem;
}

.generate-hints {
    margin-top: var(--spacing-md);
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.generate-hints kbd {
    padding: 0.2rem 0.4rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
}

/* ========================================
   Progress Container
   ======================================== */
.progress-container {
    margin-top: var(--spacing-xl);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.progress-header h3 {
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-matrix-green);
    text-shadow: 0 0 20px var(--color-matrix-green);
}

.progress-bar-wrapper {
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-matrix-green-dim), var(--color-matrix-green));
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 20px var(--color-matrix-green);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.progress-stats .stat-item {
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.progress-textbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.progress-icon {
    font-size: 2rem;
}

.progress-text {
    flex: 1;
    color: var(--color-matrix-green);
    font-family: 'Courier New', monospace;
}

/* ========================================
   Matrix Processing Display
   ======================================== */
.matrix-processing-display {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(0, 20, 0, 0.9);
    border: 4px solid var(--color-matrix-green);
    border-radius: var(--radius-md);
    box-shadow: 
        0 0 40px rgba(0, 255, 0, 0.8),
        inset 0 0 40px rgba(0, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* Ensure visible from start - will be shown when generation starts */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.matrix-canvas-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.matrix-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 255, 0, 0.5);
}

.matrix-title {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-matrix-green);
    text-shadow: 
        0 0 10px var(--color-matrix-green),
        0 0 20px rgba(0, 255, 0, 0.8);
    letter-spacing: 0.1em;
}

.matrix-status {
    margin-top: var(--spacing-sm);
    font-family: 'Courier New', monospace;
    color: var(--color-matrix-green);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.matrix-blink {
    animation: matrix-blink 1s infinite;
    color: var(--color-matrix-green);
}

@keyframes matrix-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.matrix-container {
    position: relative;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.matrix-overlay-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-matrix-green), transparent);
    box-shadow: 0 0 20px var(--color-matrix-green);
    animation: matrix-scan-line 3s linear infinite;
}

@keyframes matrix-scan-line {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.5; }
}

.matrix-text-field {
    position: relative;
    z-index: 1;
}

.matrix-code-display {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-matrix-green);
    text-shadow: 
        0 0 5px var(--color-matrix-green),
        0 0 10px rgba(0, 255, 0, 0.7);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    background: transparent;
    letter-spacing: 0.05em;
}

.matrix-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.matrix-stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    font-family: 'Courier New', monospace;
}

.matrix-stat-row:last-child {
    border-bottom: none;
}

.matrix-label {
    color: var(--color-matrix-green-dim);
    font-weight: 600;
}

.matrix-value {
    color: var(--color-matrix-green);
    font-weight: 700;
    text-shadow: 0 0 8px var(--color-matrix-green);
}

.cancel-btn {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: var(--radius-md);
    color: #ff4444;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.cancel-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff6666;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* ========================================
   Matrix Monitor - Clip Movie Data Display
   ======================================== */
.matrix-monitor {
    margin: var(--spacing-lg) auto;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(0, 20, 0, 0.92) !important;
    max-width: 1400px;
    position: relative;
    
    /* FIXED FRAME - Professional Multi-Layer Frame */
    /* Outer glow frame - enhanced visibility */
    box-shadow: 
        /* Outer glow layers - creates depth */
        0 0 0 2px rgba(0, 255, 0, 0.4),
        0 0 0 4px rgba(0, 255, 0, 0.3),
        0 0 0 6px rgba(0, 255, 0, 0.2),
        /* Main border glow */
        0 0 0 8px rgba(0, 255, 0, 0.5),
        /* Inner border layers - sophisticated depth */
        inset 0 0 0 2px rgba(0, 255, 0, 0.7),
        inset 0 0 0 4px rgba(0, 255, 0, 0.5),
        inset 0 0 0 6px rgba(0, 255, 0, 0.4),
        /* Accent glow - subtle purple for sophistication */
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(148, 0, 211, 0.15),
        inset 0 0 20px rgba(138, 43, 226, 0.1),
        /* Matrix green primary glow - intense but controlled */
        0 0 50px rgba(0, 255, 0, 0.9),
        0 0 100px rgba(0, 255, 0, 0.7),
        0 0 150px rgba(0, 255, 0, 0.5),
        0 0 200px rgba(0, 255, 0, 0.4),
        /* Inner glow for depth */
        inset 0 0 50px rgba(0, 255, 0, 0.3),
        inset 0 0 100px rgba(0, 255, 0, 0.2),
        /* Corner accent lights */
        -3px -3px 30px rgba(0, 255, 150, 0.6),
        3px 3px 30px rgba(0, 255, 150, 0.6),
        -3px 3px 30px rgba(0, 255, 150, 0.6),
        3px -3px 30px rgba(0, 255, 150, 0.6) !important;
    
    /* Main border - professional thickness - FIXED */
    border: 10px solid #00ff00 !important;
    border-image: linear-gradient(135deg, 
        rgba(0, 255, 0, 1) 0%,
        rgba(0, 255, 150, 0.95) 25%,
        rgba(0, 255, 0, 1) 50%,
        rgba(0, 200, 255, 0.95) 75%,
        rgba(0, 255, 0, 1) 100%
    ) 1 !important;
    
    /* Outline for extra definition - FIXED */
    outline: 4px solid rgba(0, 255, 0, 0.6) !important;
    outline-offset: -14px !important;
    
    border-radius: 18px;
    
    position: relative !important;
    overflow: hidden !important; /* Changed from visible to prevent content overflow */
    animation: matrix-pulse-intense 3s ease-in-out infinite !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 5000 !important;
    width: 100% !important;
    /* FIXED SIZE: Monitor skal beholde sin størrelse - større for bedre visning */
    height: 700px !important;
    max-height: 700px !important;
    min-height: 700px !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* Professional backdrop for frame */
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    
    /* FORCE VISIBLE BY DEFAULT - will be shown immediately */
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Precise positioning for effect */
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================
   FORCE MONITOR VISIBILITY - HIGHEST PRIORITY
   MUST BE AT THE VERY END OF FILE
   ======================================== */
/* Force visibility when active - NUCLEAR OPTION */
.matrix-monitor.matrix-active,
#matrix-monitor.matrix-active,
#matrix-monitor[data-matrix-active="true"],
.matrix-monitor[data-matrix-active="true"],
#matrix-monitor.matrix-active[data-matrix-active="true"],
body .matrix-monitor.matrix-active,
body #matrix-monitor.matrix-active,
html body #matrix-monitor.matrix-active,
.container #matrix-monitor.matrix-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 5000 !important;
    width: 100% !important;
}

/* Override ANY inline styles that might hide it - NUCLEAR OPTION */
#matrix-monitor[style*="display: none"],
#matrix-monitor[style*="display:none"],
.matrix-monitor[style*="display: none"],
.matrix-monitor[style*="display:none"],
#matrix-monitor[style*="display: none"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force visibility when active - HIGH PRIORITY - MUST BE LAST */
.matrix-monitor.matrix-active,
#matrix-monitor.matrix-active,
#matrix-monitor[data-matrix-active="true"],
.matrix-monitor[data-matrix-active="true"],
#matrix-monitor.matrix-active[data-matrix-active="true"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 5000 !important;
}

/* Override any inline styles that might hide it */
#matrix-monitor[style*="display: none"] {
    display: block !important;
}

/* PROFESSIONAL FRAME DECORATION - Multi-layer visual appeal */
.matrix-monitor::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    background: 
        /* Outer frame gradient */
        linear-gradient(135deg, 
            rgba(0, 255, 0, 0.1) 0%,
            rgba(0, 255, 150, 0.15) 25%,
            rgba(0, 255, 0, 0.1) 50%,
            rgba(0, 200, 255, 0.15) 75%,
            rgba(0, 255, 0, 0.1) 100%
        );
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 0, 0.2),
        0 0 20px rgba(0, 255, 0, 0.3);
    animation: framePulse 4s ease-in-out infinite;
}

/* Animated frame pulse for visual appeal */
@keyframes framePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 
            inset 0 0 30px rgba(0, 255, 0, 0.2),
            0 0 20px rgba(0, 255, 0, 0.3);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.002);
        box-shadow: 
            inset 0 0 40px rgba(0, 255, 0, 0.3),
            0 0 30px rgba(0, 255, 0, 0.4);
    }
}

/* Additional frame layer for depth */
.matrix-monitor::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 18px;
    pointer-events: none;
    z-index: -1;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 
        inset 0 0 15px rgba(0, 255, 0, 0.15),
        0 0 10px rgba(0, 255, 0, 0.2);
}

.matrix-monitor-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid rgba(0, 255, 0, 0.6);
    position: relative;
    background: linear-gradient(180deg, 
        rgba(0, 255, 0, 0.05) 0%,
        transparent 50%,
        rgba(0, 255, 0, 0.02) 100%
    );
    border-radius: 8px 8px 0 0;
    box-shadow: 
        inset 0 -2px 10px rgba(0, 255, 0, 0.2),
        0 2px 10px rgba(0, 255, 0, 0.1);
}

.matrix-monitor-header h3 {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.matrix-monitor-header .matrix-status {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Monitor Controls Panel - Rethought Structure */
.monitor-controls-panel {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.monitor-controls-primary {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.monitor-control-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 6px;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.monitor-control-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

.monitor-btn-record {
    background: rgba(255, 0, 0, 0.15) !important;
    border-color: rgba(255, 0, 0, 0.5) !important;
    color: #ff4444 !important;
}

.monitor-btn-record:hover {
    background: rgba(255, 0, 0, 0.25) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4) !important;
}

.monitor-btn-audio {
    background: rgba(0, 150, 255, 0.15) !important;
    border-color: rgba(0, 150, 255, 0.5) !important;
    color: #0096ff !important;
}

.monitor-btn-ptt {
    background: rgba(0, 255, 150, 0.15) !important;
    border-color: rgba(0, 255, 150, 0.5) !important;
    color: #00ff96 !important;
}

.monitor-controls-quick {
    display: flex;
    justify-content: center;
}

.monitor-toggle-settings {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.monitor-toggle-settings:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.5);
}

.monitor-advanced-settings {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.monitor-setting-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
}

.monitor-setting-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 255, 0, 0.8);
    min-width: 100px;
}

.monitor-setting-group .monitor-slider {
    flex: 1;
}

/* Monitor Settings Panel (Legacy - kept for compatibility) */
.monitor-settings-panel {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.monitor-settings-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Record Button (Rød) */
.monitor-record-btn {
    background: rgba(255, 0, 0, 0.2) !important;
    border: 3px solid #ff0000 !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
}

.monitor-record-btn:hover {
    background: rgba(255, 0, 0, 0.4) !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

.monitor-record-btn.recording {
    background: rgba(255, 0, 0, 0.6) !important;
    animation: recordPulse 1s ease-in-out infinite !important;
}

@keyframes recordPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 0, 0, 0.8); }
}

.record-indicator {
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
    margin-bottom: 4px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.monitor-record-btn.recording .record-indicator {
    animation: recordBlink 0.8s ease-in-out infinite;
}

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

.monitor-record-btn .btn-text {
    font-size: 0.7rem;
    color: #ff0000;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

/* Audio Button */
.monitor-audio-btn {
    background: rgba(0, 150, 255, 0.2) !important;
    border: 2px solid rgba(0, 150, 255, 0.6) !important;
    border-radius: 8px !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-xs) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: rgba(0, 150, 255, 1) !important;
}

.monitor-audio-btn:hover {
    background: rgba(0, 150, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6) !important;
}

.monitor-audio-btn.active {
    background: rgba(0, 200, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.8) !important;
}

/* Push to Talk Button */
.monitor-push-talk-btn {
    background: rgba(0, 255, 150, 0.2) !important;
    border: 2px solid rgba(0, 255, 150, 0.6) !important;
    border-radius: 8px !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-xs) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: rgba(0, 255, 150, 1) !important;
}

.monitor-push-talk-btn:hover {
    background: rgba(0, 255, 150, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.6) !important;
}

.monitor-push-talk-btn.pressed {
    background: rgba(0, 255, 150, 0.6) !important;
    box-shadow: 0 0 30px rgba(0, 255, 150, 1) !important;
    transform: scale(0.95) !important;
}

/* Monitor Setting Controls */
.monitor-setting-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
}

.monitor-setting-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--color-matrix-green-dim);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.monitor-slider {
    flex: 1;
    min-width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.monitor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.monitor-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.monitor-setting-value {
    font-size: 0.8rem;
    color: var(--color-matrix-green);
    font-family: 'Courier New', monospace;
    min-width: 45px;
    text-align: right;
}

.monitor-checkbox {
    margin-right: var(--spacing-xs);
    width: 16px;
    height: 16px;
    accent-color: #00ff00;
    cursor: pointer;
}

/* Clip Process Display (for nederste felter) */
.monitor-clip-process {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.monitor-process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

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

/* MasterNoder2 Ad Right Panel (60px bred) */
.masternoder2-ad-right {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 60px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 0, 0.9) 100%) !important;
    border-left: 2px solid rgba(0, 255, 150, 0.4) !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: var(--spacing-md) var(--spacing-xs) !important;
    overflow-y: auto !important;
}

/* Sidebar Advertisement Panels */
.sidebar-ad {
    margin-bottom: var(--spacing-md);
}

.ad-container {
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid rgba(0, 200, 255, 0.4);
    border-radius: 8px;
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
}

.ad-container:hover {
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
    transform: translateY(-2px);
}

.ad-label {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: rgba(0, 200, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.ad-content h5 {
    color: #00c8ff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.ad-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.ad-link {
    color: #00c8ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
    transition: all 0.2s ease;
    display: inline-block;
}

.ad-link:hover {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    transform: translateX(4px);
}

.ad-banner {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.95) 0%, rgba(0, 20, 40, 0.95) 100%);
    border-color: rgba(0, 255, 150, 0.4);
}

.ad-banner:hover {
    border-color: rgba(0, 255, 150, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.3);
}

.mn2-ad-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.mn2-logo-small {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(0, 200, 255, 1);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    letter-spacing: 2px;
    padding: var(--spacing-sm);
    border: 2px solid rgba(0, 200, 255, 0.5);
    border-radius: 8px;
    background: rgba(0, 200, 255, 0.1);
}

.mn2-explorer-link {
    width: 100%;
}

.mn2-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    color: rgba(0, 255, 150, 1);
    text-decoration: none;
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mn2-link:hover {
    background: rgba(0, 255, 150, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.5);
    border-color: rgba(0, 255, 150, 0.6);
}

.mn2-link-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 0.7rem;
    font-weight: 600;
}

.mn2-link-icon {
    font-size: 1rem;
}

.mn2-stats-mini {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mn2-stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 4px;
}

.mn2-label-mini {
    font-size: 0.6rem;
    color: rgba(0, 255, 150, 0.7);
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-bottom: var(--spacing-xs);
}

.mn2-value-mini {
    font-size: 0.65rem;
    color: rgba(0, 255, 150, 1);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 150, 0.8);
}

.mn2-badge-mini {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 0.5rem;
    color: rgba(0, 200, 255, 0.8);
    padding: var(--spacing-xs);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 200, 255, 0.05);
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 85px; /* Space for MasterNoder2 ad */
    z-index: 2000;
    display: flex;
    gap: var(--spacing-sm);
}

.audio-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 150, 255, 0.3);
    border: 2px solid rgba(0, 150, 255, 0.6);
    color: rgba(0, 150, 255, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
}

.audio-toggle:hover {
    background: rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
    transform: scale(1.1);
}

.audio-toggle.muted {
    background: rgba(100, 100, 100, 0.3);
    border-color: rgba(100, 100, 100, 0.6);
    color: rgba(100, 100, 100, 1);
}

/* ========================================
   Futuristic Monitor - Year 3025 Technology
   (1000 Years Ahead Software)
   ======================================== */

/* Futuristic Monitor Base (3025) */
.futuristic-monitor-3025 {
    position: relative !important;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 20, 0, 0.9) 25%,
        rgba(0, 40, 0, 0.85) 50%,
        rgba(0, 20, 0, 0.9) 75%,
        rgba(0, 0, 0, 0.95) 100%
    ) !important;
    border: 3px solid rgba(0, 255, 0, 0.6) !important;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        0 0 60px rgba(0, 255, 0, 0.3),
        0 0 90px rgba(0, 255, 150, 0.2),
        inset 0 0 40px rgba(0, 255, 0, 0.1) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}

/* Quantum Indicators (3025) */
.quantum-blink-3025 {
    animation: quantumPulse 0.5s ease-in-out infinite !important;
}

@keyframes quantumPulse {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 10px rgba(0, 255, 0, 1), 0 0 20px rgba(0, 255, 150, 0.8);
    }
    50% { 
        opacity: 0.3; 
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5), 0 0 10px rgba(0, 255, 150, 0.3);
    }
}

.quantum-indicator-3025 {
    display: inline-block;
    font-size: 1.2rem;
    color: rgba(0, 255, 200, 1);
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.8);
    animation: quantumSpin 2s linear infinite;
    margin-left: 10px;
}

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

.holographic-badge-3025 {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 255, 200, 0.2);
    border: 1px solid rgba(0, 255, 200, 0.6);
    border-radius: 4px;
    font-size: 0.7rem;
    color: rgba(0, 255, 200, 1);
    text-shadow: 0 0 8px rgba(0, 255, 200, 0.8);
    margin-left: 10px;
    animation: holographicGlow 1.5s ease-in-out infinite;
}

@keyframes holographicGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
        opacity: 1;
    }
    50% { 
        box-shadow: 0 0 15px rgba(0, 255, 200, 1), 0 0 25px rgba(0, 255, 200, 0.8);
        opacity: 0.8;
    }
}

.neural-text-3025 {
    color: rgba(0, 255, 150, 1) !important;
    text-shadow: 
        0 0 10px rgba(0, 255, 150, 0.8),
        0 0 20px rgba(0, 255, 150, 0.6),
        0 0 30px rgba(0, 200, 255, 0.4) !important;
    animation: neuralPulse 2s ease-in-out infinite !important;
}

@keyframes neuralPulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(0, 255, 150, 0.8),
            0 0 20px rgba(0, 255, 150, 0.6);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 
            0 0 15px rgba(0, 255, 150, 1),
            0 0 30px rgba(0, 255, 150, 0.8),
            0 0 45px rgba(0, 200, 255, 0.6);
    }
}

/* Futuristic Controls (3025) */
.futuristic-controls-3025 {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xs);
}

.quantum-controls-3025,
.temporal-controls-3025 {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.quantum-btn-3025,
.holographic-btn-3025,
.neural-btn-3025,
.temporal-btn-3025,
.parallel-btn-3025 {
    background: rgba(0, 150, 255, 0.2) !important;
    border: 2px solid rgba(0, 150, 255, 0.6) !important;
    border-radius: 8px !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-xs) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: rgba(0, 150, 255, 1) !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.75rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.quantum-btn-3025::before,
.holographic-btn-3025::before,
.neural-btn-3025::before,
.temporal-btn-3025::before,
.parallel-btn-3025::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.quantum-btn-3025:hover::before,
.holographic-btn-3025:hover::before,
.neural-btn-3025:hover::before,
.temporal-btn-3025:hover::before,
.parallel-btn-3025:hover::before {
    left: 100%;
}

.quantum-btn-3025:hover,
.holographic-btn-3025:hover,
.neural-btn-3025:hover,
.temporal-btn-3025:hover,
.parallel-btn-3025:hover {
    background: rgba(0, 150, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

.quantum-btn-3025.active,
.holographic-btn-3025.active,
.neural-btn-3025.active,
.temporal-btn-3025.active,
.parallel-btn-3025.active {
    background: rgba(0, 150, 255, 0.6) !important;
    box-shadow: 0 0 30px rgba(0, 150, 255, 1), 0 0 50px rgba(0, 150, 255, 0.6) !important;
    animation: futuristicPulse 1s ease-in-out infinite !important;
}

@keyframes futuristicPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 150, 255, 1), 0 0 50px rgba(0, 150, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 150, 255, 1.2), 0 0 70px rgba(0, 150, 255, 0.8), 0 0 100px rgba(0, 200, 255, 0.6);
    }
}

.quantum-icon,
.holographic-icon,
.neural-icon,
.temporal-icon,
.parallel-icon {
    font-size: 1rem;
    text-shadow: 0 0 8px currentColor;
}

.holographic-btn-3025 {
    border-color: rgba(0, 255, 200, 0.6) !important;
    color: rgba(0, 255, 200, 1) !important;
}

.neural-btn-3025 {
    border-color: rgba(0, 255, 150, 0.6) !important;
    color: rgba(0, 255, 150, 1) !important;
}

.temporal-btn-3025 {
    border-color: rgba(255, 200, 0, 0.6) !important;
    color: rgba(255, 200, 0, 1) !important;
}

.parallel-btn-3025 {
    border-color: rgba(255, 100, 200, 0.6) !important;
    color: rgba(255, 100, 200, 1) !important;
}

/* Futuristic Title (3025) */
.futuristic-title-3025 {
    font-size: 1.1rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 1) 0%,
        rgba(0, 255, 150, 1) 25%,
        rgba(0, 255, 200, 1) 50%,
        rgba(0, 255, 150, 1) 75%,
        rgba(0, 255, 0, 1) 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 
        0 0 15px rgba(0, 255, 0, 0.8),
        0 0 30px rgba(0, 255, 150, 0.6),
        0 0 45px rgba(0, 255, 200, 0.4) !important;
    animation: futuristicTitleScan 3s ease-in-out infinite !important;
    position: relative !important;
}

@keyframes futuristicTitleScan {
    0%, 100% { 
        filter: brightness(1) contrast(1);
        background-position: 0% 50%;
    }
    50% { 
        filter: brightness(1.2) contrast(1.1);
        background-position: 100% 50%;
    }
}

/* Holographic 3D Effect (3025) */
.futuristic-monitor-3025.holographic-active {
    transform: perspective(1000px) rotateX(2deg) !important;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        0 0 60px rgba(0, 255, 0, 0.3),
        0 0 90px rgba(0, 255, 150, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 255, 0, 0.1) !important;
}

/* Quantum Entanglement Effect (3025) */
.futuristic-monitor-3025.quantum-entangled {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 20, 0, 0.9) 25%,
        rgba(0, 40, 150, 0.85) 50%,
        rgba(0, 20, 0, 0.9) 75%,
        rgba(0, 0, 0, 0.95) 100%
    ) !important;
    animation: quantumEntanglement 2s ease-in-out infinite !important;
}

@keyframes quantumEntanglement {
    0%, 100% { 
        border-color: rgba(0, 255, 0, 0.6);
    }
    50% { 
        border-color: rgba(0, 150, 255, 0.8);
    }
}

/* Neural Interface Effect (3025) */
.futuristic-monitor-3025.neural-active {
    border-color: rgba(0, 255, 150, 0.8) !important;
    box-shadow: 
        0 0 40px rgba(0, 255, 150, 0.6),
        0 0 80px rgba(0, 255, 150, 0.4),
        inset 0 0 50px rgba(0, 255, 150, 0.2) !important;
}

/* Parallel Reality Effect (3025) */
.futuristic-monitor-3025.parallel-active {
    position: relative !important;
    overflow: visible !important;
}

.futuristic-monitor-3025.parallel-active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 100, 200, 0.5);
    border-radius: 12px;
    animation: parallelReality 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes parallelReality {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Time Dilation Effect (3025) */
.futuristic-monitor-3025.time-dilated {
    animation: timeDilation 1s ease-in-out infinite !important;
}

@keyframes timeDilation {
    0%, 100% { 
        filter: brightness(1) blur(0px);
    }
    50% { 
        filter: brightness(1.1) blur(1px);
    }
}

.matrix-monitor-container {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    /* FIXED SIZE: World monitor skal have fast størrelse */
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
    overflow: hidden !important; /* NO SCROLLBARS - ødelægger ikke udsynet */
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 15px rgba(0, 255, 0, 0.2);
}

/* Monitor Requirements Display */
.monitor-requirements {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.monitor-prompt-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.monitor-prompt-display:last-child {
    border-bottom: none;
}

.monitor-data-display {
    width: 100%;
    height: 100%;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    position: relative;
    background: 
        /* Animated gradient background */
        linear-gradient(135deg, 
            rgba(0, 20, 0, 0.95) 0%,
            rgba(0, 40, 0, 0.9) 25%,
            rgba(0, 20, 0, 0.95) 50%,
            rgba(0, 30, 0, 0.9) 75%,
            rgba(0, 20, 0, 0.95) 100%
        );
    background-size: 200% 200%;
    animation: monitorBackgroundFlow 8s ease infinite;
    border: 3px solid rgba(0, 255, 0, 0.6);
    border-radius: 10px;
    padding: var(--spacing-md);
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 0, 0.2),
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 0 2px rgba(0, 255, 0, 0.4);
    overflow: hidden;
}

@keyframes monitorBackgroundFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.monitor-text {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0.9rem !important;
    line-height: 1.5 !important; /* Optimal line height for readability */
    color: #00ff88 !important; /* Slightly softer green for better readability */
    text-shadow: 
        0 0 6px #00ff88,
        0 0 10px rgba(0, 255, 136, 0.7),
        0 0 15px rgba(0, 255, 136, 0.5) !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 15, 5, 0.85); /* Darker background for better contrast */
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    letter-spacing: 0.05em !important; /* Slightly reduced for cleaner look */
    font-weight: 500 !important; /* Medium weight for better readability */
    border-radius: 8px;
    height: 300px !important; /* Fixed height to prevent blinking */
    max-height: 300px !important;
    overflow-y: hidden !important; /* Remove scrollbar completely */
    overflow-x: hidden !important;
    position: relative;
    /* Clean, professional appearance */
    animation: monitor-text-fade-in 0.8s ease-in !important;
    transition: opacity 0.3s ease !important;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 
        inset 0 0 15px rgba(0, 255, 136, 0.1),
        0 0 20px rgba(0, 255, 136, 0.15);
}

/* Custom scrollbar for monitor-text (hidden but functional if needed) */
.monitor-text::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.monitor-text {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Monitor text fade-in animation for slower, readable text */
@keyframes monitor-text-fade-in {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.matrix-monitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto); /* Auto rows to fit content */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 10, 0, 0.85);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 12px;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.2),
        0 0 40px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: auto; /* Allow scrolling if content exceeds */
    min-height: 300px; /* Reduced from 550px - 1.5x would be ~450px, but 300px is more reasonable base */
    max-height: 600px; /* Increased to fit more sections (6 sections = 2 rows x 3 cols) */
    max-width: 100%; /* Prevent horizontal overflow */
}

/* Modern professional frame for stats section */
.matrix-monitor-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(0, 255, 0, 0.05) 50%,
            transparent 100%
        );
    animation: statsScanLine 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes statsScanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.matrix-monitor-stats > * {
    position: relative;
    z-index: 1;
}

.monitor-stat-section {
    background: rgba(0, 20, 0, 0.95);
    border: 2px solid rgba(0, 255, 0, 0.7);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.35),
        inset 0 0 20px rgba(0, 255, 0, 0.15),
        0 2px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex !important; /* Force display */
    flex-direction: column;
    overflow: hidden;
    min-height: 200px; /* Reduced for better fit */
    visibility: visible !important; /* Force visibility */
    opacity: 1 !important; /* Force opacity */
}

.monitor-stat-section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.45),
        inset 0 0 25px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.9);
}

.monitor-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px dashed rgba(0, 255, 0, 0.2);
}

.monitor-label {
    font-size: 0.85rem;
    color: rgba(0, 255, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.monitor-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.monitor-value-small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #00cc66;
    text-shadow: 0 0 8px rgba(0, 204, 102, 0.5);
    word-break: break-all;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monitor-stat-section:hover {
    border-color: rgba(0, 255, 0, 0.7);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 0, 0.12);
    transform: translateY(-2px);
}

.monitor-section-title {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid rgba(0, 255, 0, 0.4);
    text-shadow: 
        0 0 10px #00ff00,
        0 0 15px rgba(0, 255, 0, 0.8),
        0 0 20px rgba(0, 255, 0, 0.5) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monitor-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    margin: 2px 0;
    background: rgba(0, 25, 0, 0.4);
    border-radius: 4px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    min-height: 28px;
    flex-shrink: 0;
}

.monitor-stat-row:hover {
    background: rgba(0, 35, 0, 0.6);
    border-left-color: rgba(0, 255, 0, 0.6);
    border-bottom-color: rgba(0, 255, 0, 0.3);
    box-shadow: 
        0 0 8px rgba(0, 255, 0, 0.2),
        inset 0 0 8px rgba(0, 255, 0, 0.1);
    transform: translateX(3px);
}

.monitor-stat-row:last-child {
    border-bottom: none;
}

.monitor-awareness {
    margin-top: var(--spacing-lg);
}

.mp4-status-card {
    background: rgba(0, 15, 0, 0.9);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.35),
        inset 0 0 15px rgba(0, 255, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.mp4-status-value {
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.mp4-status-value.status-online { color: #00ff88; }
.mp4-status-value.status-warning { color: #ffaa00; }
.mp4-status-value.status-offline { color: #ff4d4d; }

.mp4-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.mp4-status-grid .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.mp4-status-grid .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff88;
}

.mp4-status-actions {
    display: flex;
    gap: 0.5rem;
}

.mp4-status-actions button {
    flex: 1;
    border: 1px solid rgba(0, 255, 0, 0.4);
    background: rgba(0, 255, 0, 0.1);
    color: #00ff88;
    padding: 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
}

.mp4-status-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mp4-status-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.monitor-label {
    color: #00cc00;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 
        0 0 6px rgba(0, 204, 0, 0.8),
        0 0 10px rgba(0, 204, 0, 0.4);
    letter-spacing: 0.05em;
}

.monitor-value {
    color: #00ff00;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 15px rgba(0, 255, 0, 0.8),
        0 0 20px rgba(0, 255, 0, 0.5) !important;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums; /* Better number alignment */
}

.monitor-clip-list {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: var(--spacing-xs);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: var(--spacing-xs);
    min-height: 0;
}

.monitor-clip-details {
    margin: 0;
    padding: var(--spacing-sm);
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #00ff00 !important;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 8px rgba(0, 255, 0, 0.6) !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    letter-spacing: 0.03em !important;
}

/* Scrollbar styling for monitor */
/* SCROLLBARS REMOVED - ødelægger ikke udsynet */
.matrix-monitor-container::-webkit-scrollbar,
.monitor-clip-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.matrix-monitor-container,
.monitor-clip-list {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}


/* ========================================
   Error & Success Messages
   ======================================== */
.error-message,
.success-message {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.5);
    color: var(--color-matrix-green);
}

.error-close,
.success-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ========================================
   Video Panel
   ======================================== */
.video-panel {
    margin-top: var(--spacing-xl);
}

.video-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.video-header h2 {
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.video-meta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    color: var(--color-matrix-green-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.video-wrapper {
    position: relative;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.play-overlay-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 3px solid var(--color-matrix-green);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-matrix-green);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.play-overlay-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 30px var(--color-matrix-green);
    transform: scale(1.1);
}

.video-controls-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.record-btn,
.action-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.record-btn:hover,
.action-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #ff4444;
}

.recording-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: recording-pulse 1s infinite;
}

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

.video-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.download-btn,
.embed-btn,
.regenerate-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.download-btn:hover,
.embed-btn:hover,
.regenerate-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.embed-code-container {
    margin-top: var(--spacing-lg);
}

.embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.embed-header label {
    color: var(--color-matrix-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.copy-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.copy-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-matrix-green);
}

.embed-code-container textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.embed-options {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* ========================================
   Settings Panel
   ======================================== */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 20, 0, 0.95);
    border-left: 3px solid var(--color-matrix-green);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.settings-header h3 {
    color: var(--color-matrix-green);
    text-shadow: 0 0 10px var(--color-matrix-green);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.settings-close {
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--color-matrix-green);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--color-matrix-green);
}

.settings-content {
    padding: var(--spacing-lg);
}

.setting-group {
    margin-bottom: var(--spacing-lg);
}

.setting-group label {
    display: block;
    color: var(--color-matrix-green);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.tooltip-icon {
    cursor: help;
    color: var(--color-matrix-green-dim);
    font-size: 0.9rem;
}

.setting-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-matrix-green);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--color-matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* ========================================
   Theme Background Images and Videos - ENHANCED
   ======================================== */
/* Theme Background Images (Fallback for videos) - FORCED VISIBLE */
.theme-background-image {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -3 !important;
    pointer-events: none !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.15 !important;
    filter: blur(4px) brightness(0.35) !important;
    display: block !important;
    visibility: visible !important;
    transition: opacity 1s ease, filter 1s ease !important;
}

/* Enhanced theme background when video is playing */
.theme-background-video:not([style*="display: none"]) ~ .theme-background-image,
.theme-background-video[style*="display: block"] ~ .theme-background-image {
    opacity: 0.08 !important; /* Even more subtle when video is active */
}

/* Interactive Theme Background Video Container - FORCED VISIBLE */
.theme-background-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    opacity: 0.18 !important;
    display: block !important;
    visibility: visible !important;
}

.theme-background-video video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    filter: blur(3px) brightness(0.35) contrast(1.1) !important;
    opacity: 1 !important;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 20, 0, 0.95);
    border: 2px solid var(--color-matrix-green);
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: toast-slide-in 0.3s ease;
    max-width: 400px;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    color: var(--color-matrix-green);
}

.toast i {
    font-size: 1.5rem;
}

/* ========================================
   Tooltip
   ======================================== */
.tooltip {
    position: absolute;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--color-matrix-green);
    border-radius: var(--radius-sm);
    color: var(--color-matrix-green);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 10002;
    white-space: nowrap;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
        margin-left: 100px; /* Make room for MasterNoder2 commercial */
    }
    
    .fancy-title {
        font-size: 3rem; /* Responsive size for mobile */
    }
    
    .title-icon {
        font-size: 3.5rem; /* Responsive size for mobile */
    }
    
    .masternoder2-commercial {
        width: 80px !important; /* Smaller on mobile */
        height: 60vh !important;
    }
    
    .header-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .matrix-stats,
    .matrix-monitor-stats {
        grid-template-columns: 1fr;
        max-height: none !important; /* Remove height limit on mobile */
    }
    
    .monitor-stat-section {
        min-height: 180px !important; /* Smaller on mobile */
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .monitor-text,
    .monitor-clip-details {
        font-size: 0.8rem !important;
    }
    
    .video-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .video-actions button {
        width: 100%;
    }
}

/* ========================================
   SIDEBARS STYLING
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 280px;
    background: rgba(0, 20, 40, 0.98) !important;
    border: 2px solid rgba(0, 200, 255, 0.6) !important;
    box-shadow: 
        0 0 30px rgba(0, 200, 255, 0.4),
        inset 0 0 20px rgba(0, 150, 255, 0.2),
        0 0 50px rgba(0, 200, 255, 0.3) !important;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(10px);
}

.sidebar.left-sidebar {
    left: 0;
    border-right: 3px solid rgba(0, 200, 255, 0.8) !important;
    box-shadow: 
        5px 0 40px rgba(0, 200, 255, 0.5),
        inset -5px 0 30px rgba(0, 150, 255, 0.3),
        0 0 60px rgba(0, 200, 255, 0.4) !important;
}

.sidebar.right-sidebar {
    right: 0;
    border-left: 3px solid rgba(0, 200, 255, 0.8) !important;
    box-shadow: 
        -5px 0 40px rgba(0, 200, 255, 0.5),
        inset 5px 0 30px rgba(0, 150, 255, 0.3),
        0 0 60px rgba(0, 200, 255, 0.4) !important;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.sidebar.right-sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 2px solid rgba(0, 200, 255, 0.6) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 200, 255, 0.3);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--color-matrix-green);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-toggle {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(0, 200, 255, 0.7) !important;
    color: var(--color-matrix-green) !important;
    padding: 0.75rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 1.1rem;
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.4),
        inset 0 0 10px rgba(0, 150, 255, 0.2);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(0, 200, 255, 0.2) !important;
    border-color: rgba(0, 200, 255, 1) !important;
    box-shadow: 
        0 0 25px rgba(0, 200, 255, 0.6),
        inset 0 0 15px rgba(0, 150, 255, 0.3);
    transform: scale(1.1);
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h4 {
    color: var(--color-matrix-green);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    padding-bottom: 0.5rem;
}

.sidebar-btn {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--color-matrix-green);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.sidebar-btn:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.recent-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-item:hover {
    background: rgba(0, 200, 255, 0.1);
    border-color: rgba(0, 200, 255, 0.4);
}

.recent-item .recent-title {
    flex: 1;
    color: var(--color-matrix-green);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-item .recent-date {
    color: rgba(0, 200, 255, 0.6);
    font-size: 0.75rem;
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 4px;
}

.stat-label {
    color: rgba(0, 200, 255, 0.8);
    font-size: 0.85rem;
}

.stat-item span:last-child {
    color: var(--color-matrix-green);
    font-weight: bold;
}

.sidebar-notifications {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.crypto-card {
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crypto-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.crypto-metric .label {
    color: rgba(255, 255, 255, 0.6);
}

.crypto-metric .value {
    font-weight: 700;
    color: #00ff88;
}

.crypto-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
}

.status-dot.online {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.crypto-refresh {
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
}

.crypto-source {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.crypto-source a {
    color: #00c8ff;
}

.masternoder2-commercial {
    padding: 0.75rem;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 20, 40, 0.8);
    display: flex;
    gap: 0.75rem;
}

.masternoder2-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #00c8ff;
}

.sw-card {
    padding: 1rem;
    border: 2px solid rgba(0, 200, 255, 0.4);
    border-radius: 10px;
    background: rgba(0, 15, 30, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.2),
        inset 0 0 10px rgba(0, 200, 255, 0.05);
    transition: all 0.3s ease;
}

.sw-card:hover {
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 200, 255, 0.3),
        inset 0 0 15px rgba(0, 200, 255, 0.1);
}

.sw-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.1);
}

.sw-status-row:last-of-type {
    border-bottom: none;
}

.sw-status-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.sw-status-row span:last-child {
    color: #00c8ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid currentColor;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-pill.status-online {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.status-pill.status-warning {
    color: #ffaa00;
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.status-pill.status-offline {
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.sw-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sw-actions button {
    flex: 1;
    border: 1px solid rgba(0, 200, 255, 0.4);
    background: rgba(0, 200, 255, 0.15);
    color: #00c8ff;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sw-actions button:hover {
    background: rgba(0, 200, 255, 0.25);
    border-color: rgba(0, 200, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.3);
}

.sw-actions button:active {
    transform: translateY(0);
}

.sw-actions button i {
    font-size: 0.9rem;
}

.research-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.research-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.research-item .value {
    font-weight: 700;
    color: var(--color-matrix-green);
}

.no-items {
    color: rgba(0, 200, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

/* ========================================
   CHAT PANEL STYLING
   ======================================== */
.chat-panel {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 350px;
    height: 500px;
    background: rgba(0, 20, 40, 0.98);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 30px rgba(0, 200, 255, 0.3);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.chat-header h3 {
    margin: 0;
    color: var(--color-matrix-green);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-close {
    background: transparent;
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--color-matrix-green);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
}

.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.bot {
    align-items: flex-start;
}

.chat-message-content {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.user .chat-message-content {
    background: rgba(0, 200, 255, 0.2);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: var(--color-matrix-green);
}

.chat-message.bot .chat-message-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: rgba(0, 200, 255, 0.9);
}

.chat-message-time {
    font-size: 0.7rem;
    color: rgba(0, 200, 255, 0.5);
    padding: 0 0.5rem;
}

.chat-input-wrapper {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--color-matrix-green);
    border-radius: 4px;
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.chat-send {
    padding: 0.75rem 1rem;
    background: rgba(0, 200, 255, 0.2);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: var(--color-matrix-green);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chat-send:hover {
    background: rgba(0, 200, 255, 0.3);
    border-color: rgba(0, 200, 255, 0.6);
}

/* ========================================
   SETTINGS PANEL ENHANCEMENTS
   ======================================== */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: rgba(0, 20, 40, 0.98);
    border-left: 2px solid rgba(0, 200, 255, 0.5);
    box-shadow: -5px 0 30px rgba(0, 200, 255, 0.3);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.settings-panel.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.settings-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    color: var(--color-matrix-green);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-close {
    background: transparent;
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--color-matrix-green);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.6);
}

.settings-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
}

.settings-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(0, 200, 255, 0.2);
    color: rgba(0, 200, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.settings-tab:last-child {
    border-right: none;
}

.settings-tab:hover {
    background: rgba(0, 200, 255, 0.1);
    color: var(--color-matrix-green);
}

.settings-tab.active {
    background: rgba(0, 200, 255, 0.2);
    color: var(--color-matrix-green);
    border-bottom: 2px solid var(--color-matrix-green);
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    color: var(--color-matrix-green);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--color-matrix-green);
    border-radius: 4px;
    font-size: 0.9rem;
}

.setting-input:focus {
    outline: none;
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.network-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 4px;
}

.status-label {
    color: rgba(0, 200, 255, 0.8);
    font-size: 0.85rem;
}

.status-value {
    font-weight: bold;
    font-size: 0.85rem;
}

.status-value.status-online {
    color: var(--color-matrix-green);
}

.status-value.status-warning {
    color: #ffaa00;
}

.status-value.status-offline {
    color: #ff0000;
}

/* Monitor value status classes */
.monitor-value.status-online {
    color: #00ff00 !important;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 15px rgba(0, 255, 0, 0.8),
        0 0 20px rgba(0, 255, 0, 0.5) !important;
}

.monitor-value.status-warning {
    color: #ffaa00 !important;
    text-shadow: 
        0 0 10px #ffaa00,
        0 0 15px rgba(255, 170, 0, 0.8),
        0 0 20px rgba(255, 170, 0, 0.5) !important;
}

.monitor-value.status-offline {
    color: #ff3333 !important;
    text-shadow: 
        0 0 10px #ff3333,
        0 0 15px rgba(255, 51, 51, 0.8),
        0 0 20px rgba(255, 51, 51, 0.5) !important;
}

/* ========================================
   FORCE MONITOR VISIBILITY - NUCLEAR OPTION
   MUST BE AT THE VERY END - HIGHEST PRIORITY
   ======================================== */
.matrix-monitor.matrix-active,
#matrix-monitor.matrix-active,
#matrix-monitor[data-matrix-active="true"],
.matrix-monitor[data-matrix-active="true"],
#matrix-monitor.matrix-active[data-matrix-active="true"],
body .matrix-monitor.matrix-active,
body #matrix-monitor.matrix-active,
html body #matrix-monitor.matrix-active,
.container #matrix-monitor.matrix-active,
html body .container #matrix-monitor.matrix-active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 5000 !important;
    width: 100% !important;
}

/* Override ANY inline styles - NUCLEAR OPTION */
#matrix-monitor[style*="display: none"],
#matrix-monitor[style*="display:none"],
.matrix-monitor[style*="display: none"],
.matrix-monitor[style*="display:none"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
