/* OBSIDIAN PRISON - HEXENHAUS INDUSTRIES */
/* Terminal Interface Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --primary-green: #00ff00;
    --dark-bg: #000000;
    --dim-green: #00aa00;
    --red-alert: #ff0000;
    --amber-warn: #ffaa00;
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--primary-green);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* VHS color aberration */
    filter: contrast(1.1) brightness(0.95);
    
    /* Subtle chromatic aberration */
    text-shadow: 
        0.5px 0 0 rgba(255, 0, 0, 0.3),
        -0.5px 0 0 rgba(0, 255, 255, 0.3);
}

/* CRT Scanline Effect - DESKTOP ONLY */
@media (min-width: 769px) {
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
        pointer-events: none;
        z-index: 9999;
    }

    /* VHS Noise/Static Overlay */
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
            repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
        background-size: 100% 100%;
        pointer-events: none;
        z-index: 9998;
        opacity: 0.8;
        animation: vhs-noise 0.2s infinite;
    }
}

@keyframes vhs-noise {
    0% { opacity: 0.8; }
    50% { opacity: 0.85; }
    100% { opacity: 0.8; }
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: rgba(0, 20, 0, 0.8);
    border-right: 2px solid var(--primary-green);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    border: 2px solid var(--primary-green);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header h1 {
    font-size: 14px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-header .subtitle {
    font-size: 10px;
    color: var(--dim-green);
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section h2 {
    font-size: 12px;
    color: var(--dim-green);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-section ul {
    list-style: none;
}

.nav-section ul li {
    margin-bottom: 8px;
    padding-left: 15px;
}

.nav-section ul li a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: block;
}

.nav-section ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

.nav-section ul li a.active {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

/* Signal Status */
.signal-status {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid var(--dim-green);
    font-size: 11px;
}

.signal-bar {
    width: 100%;
    height: 20px;
    background-color: rgba(0, 50, 0, 0.3);
    border: 1px solid var(--primary-green);
    position: relative;
    margin-top: 10px;
}

.signal-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 87%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 40px;
    flex: 1;
    max-width: 1200px;
}

/* Terminal Box */
.terminal-box {
    border: 2px solid var(--primary-green);
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(0, 20, 0, 0.5);
}

.terminal-header {
    border-bottom: 1px solid var(--primary-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--dim-green);
}

.terminal-content {
    font-size: 14px;
    line-height: 1.8;
}

.terminal-content p {
    margin-bottom: 15px;
}

.terminal-content h2 {
    font-size: 16px;
    margin: 25px 0 15px 0;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-green);
}

/* Dossier Photo Styling */
.dossier-photo {
    border: 15px solid #f5f5dc;
    background-color: #f5f5dc;
    box-shadow: 
        0 0 0 2px #333,
        5px 5px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 30px 0;
    transform: rotate(-1deg);
}

.dossier-photo img {
    display: block;
    width: 100%;
    height: auto;
    filter: contrast(1.1) brightness(0.95);
}

.photo-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f5f5dc;
    padding: 5px 20px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #333;
    border: 1px solid #999;
}

.classified-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--red-alert);
    font-size: 32px;
    font-weight: bold;
    transform: rotate(15deg);
    opacity: 0.7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    border: 3px solid var(--red-alert);
    padding: 10px 20px;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Links */
.link-list {
    list-style: none;
    margin: 20px 0;
}

.link-list li {
    margin-bottom: 15px;
    padding-left: 20px;
}

.link-list a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.link-list a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
    transform: translateX(5px);
}

/* Behind the Curtain - Red Theme */
.behind-curtain {
    border-color: var(--red-alert);
}

.behind-curtain .terminal-header {
    border-color: var(--red-alert);
    color: #ff6666;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.8);
}

.behind-curtain .terminal-content {
    color: #ffcccc;
}

.behind-curtain h2 {
    color: #ff9999;
    text-shadow: 0 0 10px rgba(255, 102, 102, 0.6);
}

.behind-curtain a {
    color: #ff6666;
    text-shadow: 0 0 3px rgba(255, 102, 102, 0.5);
}

.behind-curtain a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--red-alert);
}

/* Lady Lazarus Corner Terminal - positioned directly below avatar */
/* Avatar: top 90px, height 350px, 2px border = ends at 442px */
/* Chat starts at 440px (overlapping by 2px to share the border line) */
.lady-lazarus-terminal {
    position: fixed;
    top: 440px;
    right: 20px;
    width: 350px;
    background-color: rgba(10, 14, 26, 0.95);
    border: 2px solid #FF0040;
    z-index: 10000;
    font-size: 12px;
    box-shadow: none;
}

.lady-lazarus-terminal.minimized {
    height: 40px;
    overflow: hidden;
}

.ll-header {
    background-color: rgba(255, 0, 64, 0.2);
    border-bottom: 1px solid #FF0040;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.ll-title {
    font-size: 11px;
    letter-spacing: 1px;
}

.ll-controls {
    display: flex;
    gap: 10px;
}

.ll-btn {
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ll-btn:hover {
    background-color: var(--primary-green);
    color: var(--dark-bg);
}

.ll-content {
    padding: 15px;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
}

.ll-message {
    margin-bottom: 10px;
    animation: fadeIn 0.5s;
}

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

.ll-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--primary-green);
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* Email Signup Slide-down */
.email-signup-banner {
    position: fixed;
    top: -300px;
    left: 0;
    right: 0;
    background-color: rgba(0, 40, 0, 0.98);
    border-bottom: 3px solid var(--primary-green);
    padding: 30px;
    z-index: 9997;
    transition: top 0.5s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    box-shadow: 0 5px 30px rgba(0, 255, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.email-signup-banner.visible {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.email-signup-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.email-signup-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-green);
}

.email-signup-content p {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.email-form input[type="email"] {
    background-color: rgba(0, 20, 0, 0.8);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    width: 300px;
    outline: none;
}

.email-form input[type="email"]:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.email-form button {
    background-color: var(--primary-green);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.email-form button:hover {
    box-shadow: 0 0 20px var(--primary-green);
    transform: scale(1.05);
}

.close-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10000;
    pointer-events: auto;
}

.close-banner:hover {
    background-color: var(--primary-green);
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .container {
        flex-direction: column;
    }
    
    /* Audio controls on mobile - HIDE THEM */
    #music-controls {
        display: none !important;
    }
    
    /* ===================================================
       FIX: LADY LAZARUS MOBILE STACK (JS-INSERTED)
       =================================================== */

    /* The wrapper created by JavaScript */
    .ll-mobile-stack {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Avatar and Terminal inside the stack */
    .ll-mobile-stack .ll-avatar-corner,
    .ll-mobile-stack .lady-lazarus-terminal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border: none !important;
    }

    /* Lady Lazarus terminal on mobile - part of page flow at top */
    .lady-lazarus-terminal {
        display: block !important;
        visibility: visible !important;
        position: relative !important;

        /* Fill parent container */
        width: 100% !important;
        max-width: 100% !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        /* Spacing */
        margin: 0 0 20px 0 !important;
        padding: 0 !important;

        /* Remove border to prevent overflow */
        border: none !important;

        font-size: 12px;
        max-height: none !important;
        min-height: 200px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .lady-lazarus-terminal .ll-content {
        display: block !important;
        max-height: 250px !important;
        min-height: 100px !important;
        overflow-y: auto !important;
    }

    .lady-lazarus-terminal .ll-input-container {
        display: flex !important;
        visibility: visible !important;
    }

    .lady-lazarus-terminal.minimized {
        max-height: 45px !important;
        min-height: 45px !important;
    }

    .lady-lazarus-terminal.minimized .ll-content,
    .lady-lazarus-terminal.minimized .ll-input-container {
        display: none !important;
    }
    
    /* Email banner on mobile */
    .email-signup-banner {
        padding: 20px 15px;
    }
    
    .email-signup-content h2 {
        font-size: 14px;
    }
    
    .email-signup-content p {
        font-size: 11px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-form input[type="email"] {
        width: 100%;
    }
    
    .email-form button {
        width: 100%;
    }
}

/* Glitch effect for special moments */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    animation: glitch 0.3s;
}

/* Enhanced CRT flicker */
@keyframes crt-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.95; }
    100% { opacity: 1; }
}

body.flicker {
    animation: crt-flicker 0.1s;
}

/* Text glow pulse for active elements */
@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 5px var(--primary-green); }
    50% { text-shadow: 0 0 15px var(--primary-green), 0 0 25px var(--primary-green); }
}

.terminal-header {
    animation: text-glow 3s infinite;
}

/* Loading bar animation */
@keyframes loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.signal-fill {
    animation: loading-pulse 2s infinite;
}

/* Screen boot-up effect */
@keyframes screen-on {
    0% {
        transform: scaleY(0.001) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: scaleY(0.01) scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
    }
}

.boot-animation {
    animation: screen-on 0.5s ease-out;
}

/* Cursor blink for terminal prompt */
@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    animation: cursor-blink 530ms infinite;
}

/* Scanline movement */
@keyframes scanline-move {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.moving-scanline {
    position: fixed;
    width: 100%;
    height: 3px;
    background: linear-gradient(transparent, rgba(0, 255, 0, 0.4), transparent);
    pointer-events: none;
    z-index: 9999;
    animation: scanline-move 8s linear infinite;
}

/* VHS Tracking Lines */
@keyframes vhs-tracking {
    0% { transform: translateY(-100%); opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { transform: translateY(100vh); opacity: 0.1; }
}

/* Disable vhs-wobble on mobile - causes rendering artifacts on iOS */
@media (min-width: 1001px) {
    body {
        animation: vhs-wobble 3s infinite;
    }
}

@keyframes vhs-wobble {
    0% { transform: translateX(0); }
    25% { transform: translateX(-0.2px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(0.2px); }
    100% { transform: translateX(0); }
}

/* VHS Horizontal Tracking Lines */
.vhs-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(0, 255, 0, 0.03) 100px,
        rgba(0, 255, 0, 0.03) 102px
    );
    animation: vhs-tracking 10s linear infinite;
}

/* Random VHS Glitch */
@keyframes vhs-glitch {
    0% { 
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
    10% { 
        clip-path: inset(10% 0 85% 0);
        transform: translateX(5px);
    }
    20% { 
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

/* Apply occasional glitch */
.terminal-box {
    animation: vhs-glitch 0.3s infinite;
    animation-iteration-count: 0.01; /* Very rare */
}

/* Image degradation */
img {
    filter: contrast(0.95) brightness(1.05) saturate(0.9);
}

/* VHS color bleeding */
.terminal-content {
    text-shadow: 
        1px 0 0 rgba(0, 255, 0, 0.1),
        -1px 0 0 rgba(0, 100, 0, 0.1);
}

/* ADDITIONAL STYLES FOR LADY LAZARUS AI CHAT */
/* Add these to your existing style.css */

/* Chat input container */
.ll-input-container {
    border-top: 1px solid var(--primary-green);
    padding: 10px;
    display: flex;
    gap: 10px;
    background-color: rgba(0, 30, 0, 0.9);
}

#ll-user-input {
    flex: 1;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    outline: none;
}

#ll-user-input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

#ll-user-input::placeholder {
    color: var(--dim-green);
    opacity: 0.5;
}

#ll-send-btn {
    background-color: var(--primary-green);
    color: var(--dark-bg);
    border: none;
    padding: 8px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

#ll-send-btn:hover {
    box-shadow: 0 0 15px var(--primary-green);
    transform: scale(1.05);
}

#ll-send-btn:active {
    transform: scale(0.95);
}

/* User messages styling */
.ll-user-message {
    color: #00aaaa !important;
    opacity: 0.9;
}

/* Adjust terminal height for input */
.lady-lazarus-terminal {
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.ll-content {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

/* ============================================
   MOBILE OPTIMIZATION
   Only affects screens under 768px width
   Desktop design remains unchanged
   ============================================ */

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Make body text more readable on mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Reduce VHS effects on mobile for better readability */
    body::before,
    body::after {
        opacity: 0.3;
    }
    
    /* Mobile Layout - Stack instead of sidebar */
    .container {
        flex-direction: column;
    }
    
    /* Sidebar becomes top navigation on mobile */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--primary-green);
        padding: 15px;
        overflow-y: visible;
    }
    
    .sidebar-header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .sidebar-header h1 {
        font-size: 16px;
    }
    
    .sidebar-header .subtitle {
        font-size: 10px;
    }
    
    /* Navigation links - bigger touch targets */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav ul li {
        margin: 0;
        flex: 1 1 45%;
    }
    
    nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
        display: block;
        text-align: center;
    }
    
    /* Uplinks section */
    .uplinks {
        margin-top: 20px;
    }
    
    .uplinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .uplink-btn {
        padding: 10px;
        font-size: 11px;
    }
    
    /* Status section */
    .status-section {
        padding: 12px;
        margin-top: 15px;
    }
    
    .status-section h3 {
        font-size: 12px;
    }
    
    /* Main Content Area */
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Reorder sections on mobile */
    #btc-links-section {
        order: 1; /* Links + image section comes first */
    }
    
    #btc-main-message {
        order: 2; /* Hidden on mobile but set order anyway */
    }
    
    #btc-mobile-submit {
        order: 2; /* Shows after links section on mobile */
    }
    
    /* Terminal boxes more readable on mobile */
    .terminal-box {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .terminal-header h2 {
        font-size: 16px;
    }
    
    .terminal-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .terminal-content p {
        margin-bottom: 12px;
    }
    
    /* Images scale properly on mobile */
    .content-images {
        flex-direction: column;
        gap: 15px;
    }

    .personnel-photo,
    .content-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* All images responsive on mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Dossier photos on mobile */
    .dossier-photo {
        margin: 20px 0 !important;
        max-width: 100% !important;
        transform: rotate(0deg) !important; /* Straighten on mobile for readability */
    }

    .classified-stamp {
        font-size: 20px;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
    }
    
    /* Behind the Curtain grid */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-item img {
        max-height: 400px;
        object-fit: contain;
    }
    
    /* HIDE Lady Lazarus on Behind the Curtain page (mobile only) */
    body.behind-curtain .lady-lazarus-terminal {
        display: none !important;
    }
    
    .ll-header {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 50px;
    }
    
    .ll-title {
        font-size: 13px;
    }
    
    .ll-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
    
    .ll-content {
        padding: 15px;
        max-height: calc(50vh - 150px);
        min-height: 120px;
        font-size: 13px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .ll-message {
        margin-bottom: 10px;
        line-height: 1.5;
        font-size: 13px;
    }
    
    .ll-input-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    #ll-user-input {
        height: 44px; /* iOS recommended touch target */
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 12px;
    }
    
    #ll-send-btn {
        height: 44px;
        min-width: 70px;
        padding: 0 20px;
        font-size: 14px;
    }
    
    /* Mobile keyboard adjustment */
    .lady-lazarus-terminal.keyboard-open {
        max-height: 40vh;
    }
    
    /* Archive Page - Mobile */
    .music-list {
        padding: 15px;
    }
    
    .track-item {
        padding: 12px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    /* Audio Player - Mobile friendly */
    .audio-player {
        padding: 15px;
    }
    
    /* Hide background music player on mobile */
    #background-music-player,
    #music-controls {
        display: none !important;
    }
    
    .player-controls button {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    /* Email Signup Banner - Mobile */
    .email-signup-banner {
        padding: 15px;
        font-size: 12px;
    }

    .email-signup-banner input {
        font-size: 14px;
        padding: 10px;
    }

    .email-signup-banner button {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Close button - Mobile fix */
    .close-banner {
        position: absolute !important;
        top: 60px !important;
        left: 10px !important;
        right: auto !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 24px !important;
        z-index: 9999 !important;
    }
    
    /* Links and buttons - bigger touch targets */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
    }

    /* Link lists more tappable */
    .link-list li {
        margin-bottom: 20px;
        padding-left: 10px;
    }

    .link-list a {
        font-size: 15px;
        padding: 15px 10px;
        line-height: 1.6;
    }

    /* Blockquotes readable on mobile */
    blockquote {
        margin: 20px 0 !important;
        padding: 15px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    /* Lists with better spacing on mobile */
    ul, ol {
        padding-left: 25px;
    }

    li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    /* Text sizing for readability */
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    /* Reduce animations on mobile for performance */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Better spacing throughout */
    .terminal-box + .terminal-box {
        margin-top: 20px;
    }

    /* Prevent text overflow */
    .terminal-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Tables responsive on mobile */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Flex containers stack on mobile */
    .terminal-content > div[style*="display: flex"],
    .terminal-content > div[style*="display:flex"] {
        flex-direction: column !important;
    }

    /* Better spacing for content boxes */
    .terminal-content > div {
        margin-bottom: 15px;
    }

    /* Ensure all content stays within bounds */
    * {
        max-width: 100%;
    }

    .container,
    .main-content,
    .terminal-box {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* BEHIND THE CURTAIN - MOBILE OPTIMIZED */
    /* Hide the critical alert box on mobile - it's in the way */
    .terminal-box[style*="pulse-border"] {
        display: none !important;
    }
    
    /* Make sure links are prominent and easy to click on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] {
        flex-direction: column-reverse !important; /* Image comes AFTER links */
        gap: 20px !important;
    }
    
    /* Hide the second emoji on mobile - looks cleaner with just one */
    .emoji-right {
        display: none !important;
    }
    
    /* Image container on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Links container on mobile */
    .behind-curtain .terminal-content > div[style*="flex"] > div:last-child {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Make Behind The Curtain links extra prominent on mobile */
    .behind-curtain a[href*="onlyfans"],
    .behind-curtain a[href*="adultwork"] {
        padding: 30px 20px !important;
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
        margin: 15px 0 !important;
    }
    
    /* Make the "CLICK HERE" text even bigger on mobile */
    .behind-curtain a[href*="onlyfans"] > div:first-child,
    .behind-curtain a[href*="adultwork"] > div:first-child {
        font-size: 32px !important;
    }
    
    /* Make the titles bigger on mobile */
    .behind-curtain a[href*="onlyfans"] > div:nth-child(2),
    .behind-curtain a[href*="adultwork"] > div:nth-child(2) {
        font-size: 22px !important;
    }
    
    /* Dossier photo on Behind The Curtain page - mobile */
    .behind-curtain .dossier-photo {
        margin: 20px auto !important;
        max-width: 100% !important;
    }
    
    /* Hide system overload and return link on mobile */
    #btc-system-overload,
    #btc-return-link {
        display: none !important;
    }
    
    /* Hide the old message box and warning on mobile */
    #btc-main-message,
    #btc-warning-box {
        display: none !important;
    }
    
    /* Show the new mobile-only READY TO SUBMIT box */
    #btc-mobile-submit {
        display: block !important;
        border: 4px solid #ff0000 !important;
        padding: 30px !important;
        margin: 30px 0 !important;
    }
    
    /* Flashing animation for READY TO SUBMIT */
    @keyframes flash-text {
        0%, 100% { 
            opacity: 1; 
            text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
        }
        50% { 
            opacity: 0.3; 
            text-shadow: 0 0 10px #ff0000;
        }
    }
}

    /* Blog post pages - mobile optimization */
    .post-content {
        padding: 20px 15px !important;
    }

    .post-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .post-meta {
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    .post-header {
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
    }

    .post-body {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .post-body p {
        margin-bottom: 20px !important;
    }

    .post-body h2 {
        font-size: 20px !important;
        margin: 30px 0 15px 0 !important;
    }

    .back-link {
        margin-top: 40px !important;
        width: 100%;
        text-align: center;
        padding: 15px 20px !important;
    }

    /* Confession cards on mobile */
    .confession-grid {
        gap: 25px !important;
        margin-top: 20px !important;
    }

    .confession-card {
        margin-bottom: 20px;
    }

    .confession-header {
        padding: 20px 15px !important;
    }

    .confession-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .confession-meta {
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    .confession-excerpt {
        padding: 20px 15px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .confession-footer {
        padding: 15px !important;
    }

    .read-more {
        width: 100%;
        text-align: center;
        padding: 15px 20px !important;
        font-size: 12px !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .sidebar-header h1 {
        font-size: 14px;
    }

    nav ul li {
        flex: 1 1 100%;
    }

    .uplinks-grid {
        grid-template-columns: 1fr;
    }

    .lady-lazarus-terminal {
        width: 98% !important;
        left: 1% !important;
        right: 1% !important;
        max-height: 400px;
    }

    .ll-content {
        max-height: 240px;
    }

    #ll-user-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .post-title {
        font-size: 20px !important;
    }

    .post-body {
        font-size: 14px !important;
    }
}

/* ================================
   LADY LAZARUS EMBEDDED WIDGET & FULL INTERFACE STYLES
   ================================ */

/* Embedded Widget Container (Homepage) */
.ll-embed-container {
    padding: 20px;
    background: #000;
    position: relative;
}

.ll-embed-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #000;
    border: 1px solid #00ff00;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #001a00;
}

.ll-embed-messages::-webkit-scrollbar {
    width: 10px;
}

.ll-embed-messages::-webkit-scrollbar-track {
    background: #001a00;
    border-left: 1px solid #00ff00;
}

.ll-embed-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Full Interface Container (Full Page) */
.ll-full-terminal {
    background: #000;
    border: 2px solid #00ff00;
    padding: 0;
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.ll-full-messages {
    height: 600px;
    overflow-y: auto;
    padding: 30px;
    background: #000;
    border-bottom: 2px solid #00ff00;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #001a00;
}

.ll-full-messages::-webkit-scrollbar {
    width: 12px;
}

.ll-full-messages::-webkit-scrollbar-track {
    background: #001a00;
    border-left: 1px solid #00ff00;
}

.ll-full-messages::-webkit-scrollbar-thumb {
    background: #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Messages */
.ll-message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.ll-message-header {
    font-size: 10px;
    color: #00aa00;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ll-message.user .ll-message-header {
    text-align: right;
}

.ll-message.assistant .ll-message-content {
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid #00ff00;
    text-shadow: 0 0 2px #00ff00;
}

.ll-message.user .ll-message-content {
    background: rgba(0, 170, 42, 0.05);
    border-right: 3px solid #00aa2a;
    text-align: right;
}

.ll-message-content {
    padding: 12px 15px;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.ll-message-prefix {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 3px #00ff00;
}

/* Input Containers */
.ll-embed-input-container,
.ll-full-input-container {
    padding: 15px 20px;
    background: #001a00;
    display: flex;
    gap: 10px;
}

.ll-full-input-container {
    border-top: 2px solid #00ff00;
}

/* Input Fields */
.ll-embed-input,
.ll-full-input {
    flex: 1;
    background: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 15px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    text-shadow: 0 0 2px #00ff00;
}

.ll-embed-input:focus,
.ll-full-input:focus {
    box-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        inset 0 0 5px rgba(0, 255, 65, 0.1);
    border-color: #00ff00;
}

.ll-embed-input::placeholder,
.ll-full-input::placeholder {
    color: #004d15;
}

/* Send Buttons */
.ll-embed-send-btn,
.ll-full-send-btn {
    background: #001a00;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 25px;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: 0 0 3px #00ff00;
}

.ll-embed-send-btn:hover:not(:disabled),
.ll-full-send-btn:hover:not(:disabled) {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.ll-embed-send-btn:disabled,
.ll-full-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading Animation */
.ll-loading {
    color: #00ff00;
    font-style: italic;
    animation: blink 1s infinite;
    text-shadow: 0 0 3px #00ff00;
}

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

/* Welcome Message */
.ll-welcome {
    color: #00aa2a;
    font-size: 13px;
    text-align: center;
    margin: 30px 0;
    line-height: 1.8;
    text-shadow: 0 0 2px #00aa2a;
}

/* Link to Full Interface */
.ll-link-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff00;
    color: #00ff00;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: 0 0 3px #00ff00;
}

.ll-link-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ll-embed-messages {
        height: 300px;
    }
    
    .ll-full-messages {
        height: 400px;
    }
    
    .ll-embed-input-container,
    .ll-full-input-container {
        flex-direction: column;
    }
    
    .ll-embed-send-btn,
    .ll-full-send-btn {
        width: 100%;
    }
}

/* ============================================ */
/* LADY LAZARUS AVATAR STYLES */
/* ============================================ */

.ll-avatar-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #00ff00;
    padding: 0;
    position: relative;
    margin-bottom: 20px;
}

.ll-avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1/1;
}

.ll-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) brightness(0.9);
    background: #000;
}

.ll-avatar-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    padding: 5px 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.ll-status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: ll-pulse 2s infinite;
}

@keyframes ll-pulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 5px #00ff00; 
    }
    50% { 
        opacity: 0.3; 
        box-shadow: 0 0 2px #00ff00; 
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ll-avatar-container {
        margin-bottom: 0 !important;
        border-bottom: 2px solid #00ff00;
    }

    .ll-avatar-wrapper {
        max-width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .ll-avatar-status {
        font-size: 9px;
        padding: 4px 10px;
    }

    /* Ensure avatar + chat terminal work well together on mobile */
    .ll-avatar-container + .lady-lazarus-terminal {
        margin-top: 0;
        border-top: none;
    }
}

/* =====================================================
   FIX: LADY LAZARUS AVATAR OVERFLOW ON MOBILE (768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Main container for the right column/content */
    .ll-right-column {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        height: auto !important;
        /* ZERO out inherited padding/margin on the column container */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        display: block !important;
    }

    /* The Avatar container (`.ll-avatar-corner`) and the Chat Terminal (`.lady-lazarus-terminal`) */
    .ll-avatar-corner,
    .lady-lazarus-terminal {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        /* Ensure no horizontal margin/padding on the elements themselves */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;

        box-sizing: border-box !important;
    }

    /* The border overlay must now be 100% width since the container has 0 padding */
    .ll-avatar-corner::after {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
    }

    /* Visual cleanup for stacking */
    .ll-avatar-corner {
        margin-bottom: 0 !important; /* Remove space between image and chat */
        border-bottom: none !important;
        overflow: hidden !important;
    }

    .lady-lazarus-terminal {
        margin-top: 0 !important;
        border-top: none !important;
        margin-bottom: 20px !important; /* Add space below the whole module */
    }
}

/* =====================================================
   TEST-CYBERPUNK.CSS — MERGED BELOW
   ===================================================== */

/* =====================================================
   CYBERPUNK 2077 THEME OVERRIDE
   Production stylesheet for WOTE project

   This file overrides the green terminal aesthetic with
   Cyberpunk 2077 inspired colors and styling

   DEPLOYMENT: Add this stylesheet AFTER layout-fix.css
   ===================================================== */

/* =====================================================
   COLOR VARIABLE OVERRIDES
   ===================================================== */

:root {
    /* Primary Colors */
    --primary-green: #FF0040;        /* Changed to CP2077 red */
    --dark-bg: #0A0E1A;              /* Deep blue-black */
    --dim-green: #FF2D55;            /* Lighter red accent */
    --red-alert: #FF0040;            /* Keep red consistent */
    --amber-warn: #00F0FF;           /* Changed to cyan */

    /* New Cyberpunk Variables */
    --cp-cyan: #00F0FF;
    --cp-red: #FF0040;
    --cp-pink: #FF2D55;
    --cp-dark-1: #0A0E1A;
    --cp-dark-2: #1A1E2E;
    --cp-dark-3: #252938;
}

/* =====================================================
   BODY & BASE STYLES
   ===================================================== */

body {
    background-color: var(--cp-dark-1);
    color: var(--cp-cyan);

    /* Cyberpunk chromatic aberration - red/cyan shift */
    text-shadow:
        0.5px 0 0 rgba(255, 0, 64, 0.4),
        -0.5px 0 0 rgba(0, 240, 255, 0.4);
}

/* Update scanline to use red instead of green - DESKTOP ONLY */
@media (min-width: 769px) {
    body::before {
        background: repeating-linear-gradient(
            0deg,
            rgba(255, 0, 64, 0.08),
            rgba(255, 0, 64, 0.08) 1px,
            transparent 1px,
            transparent 2px
        ) !important;
    }

    /* VHS noise with red/cyan tint - OVERRIDE FOR MOVING GREEN LINE */
    body::after {
        /* FORCE RED/PINK MOVING SCANLINE */
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 5px !important; /* Height of the moving line */
        pointer-events: none !important;
        z-index: 9999 !important;

        /* FORCE RED/PINK GRADIENT */
        background: linear-gradient(
            90deg,
            transparent 0%,
            var(--cp-red) 50%, /* Red/Pink center */
            transparent 100%
        ) !important;
        background-image: none !important; /* Remove VHS noise background */
        box-shadow: 0 0 10px rgba(255, 0, 64, 0.8) !important;

        /* RE-APPLY THE ANIMATION */
        animation: scanline-move 10s linear infinite !important;
    }
}

/* =====================================================
   SIDEBAR NAVIGATION
   ===================================================== */

.sidebar {
    /* Animated Gradient Background */
    background: linear-gradient(
        180deg, /* Gradient runs top to bottom */
        rgba(255, 0, 64, 0.15) 0%, /* Start Red */
        rgba(10, 14, 26, 0.95) 50%, /* Dark Center */
        rgba(0, 240, 255, 0.15) 100% /* End Cyan */
    );
    background-size: 100% 400%; /* Makes the gradient height four times the element height */
    animation: gradient-shift 12s ease infinite; /* Slow, continuous vertical shift */

    /* Subtle Occult Grid Overlay */
    background-image:
        /* Faint Hexagram/Grid pattern */
        repeating-linear-gradient(
            -45deg,
            rgba(255, 0, 64, 0.05) 0px,
            rgba(255, 0, 64, 0.05) 1px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(0, 240, 255, 0.05) 0px,
            rgba(0, 240, 255, 0.05) 1px,
            transparent 1px,
            transparent 60px
        ),
        linear-gradient(
            180deg,
            rgba(255, 0, 64, 0.15) 0%,
            rgba(10, 14, 26, 0.95) 50%,
            rgba(0, 240, 255, 0.15) 100%
        );
    background-blend-mode: overlay; /* Allows it to blend with the animated gradient */

    border-right: 3px double var(--cp-red);
    border-top: 3px double var(--cp-red);
    border-bottom: 3px double var(--cp-red);
    /* Double border effect */
    box-shadow:
        0 0 30px rgba(255, 0, 64, 0.4),
        inset 0 0 30px rgba(0, 240, 255, 0.05),
        inset -3px 0 0 var(--cp-dark-2),
        inset -6px 0 0 var(--cp-red),
        inset 0 3px 0 var(--cp-dark-2),
        inset 0 6px 0 var(--cp-red),
        inset 0 -3px 0 var(--cp-dark-2),
        inset 0 -6px 0 var(--cp-red);

    /* Prevent overlap with stacking order */
    z-index: 100 !important;

    /* Allow scrolling but hide scrollbar */
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Edge */
.sidebar::-webkit-scrollbar {
    display: none !important;
}

.sidebar-header {
    border: 2px solid var(--cp-red);
    border-bottom: 3px solid var(--cp-red);
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    box-shadow:
        0 0 20px rgba(255, 0, 64, 0.3),
        inset 0 -2px 10px rgba(255, 0, 64, 0.2);
    /* NEW PULSE */
    animation: pulse 4s infinite; /* Make the whole header box glow/dim */
}

.sidebar-header h1 {
    color: var(--cp-cyan);
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px rgba(0, 240, 255, 0.5);
}

.sidebar-header .subtitle {
    color: var(--cp-red);
}

/* Navigation Sections */
.nav-section h2 {
    color: var(--cp-pink);
    text-shadow: 0 0 5px rgba(255, 45, 85, 0.6);
}

.nav-section ul li a {
    color: var(--cp-cyan);
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.nav-section ul li a:hover {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan);
    border-left-color: var(--cp-red);
    background: rgba(255, 0, 64, 0.1);
}

.nav-section ul li a.active {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan);
    border-left: 3px solid var(--cp-red);
    background: rgba(255, 0, 64, 0.15);
}

/* Signal Status */
.signal-status {
    border: 2px solid var(--cp-red);
    background: rgba(26, 30, 46, 0.6);
    box-shadow:
        0 0 15px rgba(255, 0, 64, 0.3),
        inset 0 0 20px rgba(10, 14, 26, 0.8);
}

.signal-bar {
    background-color: rgba(26, 30, 46, 0.5);
    border: 2px solid var(--cp-red);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.signal-fill {
    background: linear-gradient(90deg, var(--cp-red) 0%, var(--cp-pink) 100%);
    box-shadow:
        0 0 10px rgba(255, 0, 64, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

/* =====================================================
   TERMINAL BOXES
   ===================================================== */

.terminal-box {
    border: 3px double var(--cp-red);
    background: linear-gradient(
        135deg,
        rgba(255, 0, 64, 0.08) 0%, /* Faded Red (using --cp-red) */
        rgba(10, 14, 26, 0.9) 30%,  /* Darker Center (using --cp-dark-1) */
        rgba(255, 45, 85, 0.05) 100% /* Faded Pink (using --cp-pink) */
    );
    box-shadow:
        0 0 30px rgba(255, 0, 64, 0.4),
        inset 0 0 30px rgba(0, 240, 255, 0.05);
    position: relative;
}

/* Encrypted Hex / Occult Text at Corners */
.terminal-box::before {
    content: '0xDAEM0N'; /* Occult Hex */
    position: absolute;
    top: -15px; /* Position above the border */
    left: 10px;
    font-size: 10px;
    color: var(--cp-red);
    opacity: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--cp-red);
    z-index: 10;
}

.terminal-box:nth-of-type(2)::before { /* Apply different text to the second box */
    content: '0xARCAN4'; /* Occult Hex 2 */
    left: auto;
    right: 10px;
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
    animation: text-glow 5s infinite;
}

.terminal-header {
    border-bottom: 2px solid var(--cp-red);
    color: var(--cp-cyan);
    background: rgba(26, 30, 46, 0.4);
    text-shadow:
        0 0 8px var(--cp-cyan),
        0 0 15px rgba(0, 240, 255, 0.6);
}

.terminal-content {
    color: var(--cp-cyan);
    text-shadow:
        1px 0 0 rgba(255, 0, 64, 0.1),
        -1px 0 0 rgba(0, 240, 255, 0.1);
}

.terminal-content h2 {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-red),
        0 0 20px rgba(255, 0, 64, 0.6);
}

/* =====================================================
   LINKS
   ===================================================== */

.link-list a {
    color: var(--cp-cyan);
    position: relative;
    padding-left: 10px;
}

.link-list a::before {
    content: '▸';
    position: absolute;
    left: -5px;
    color: var(--cp-red);
    opacity: 0;
    transition: all 0.3s;
}

.link-list a:hover {
    color: #fff;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan),
        2px 0 0 rgba(255, 0, 64, 0.3);
}

.link-list a:hover::before {
    opacity: 1;
    left: 0;
}

/* =====================================================
   DOSSIER PHOTO & CLASSIFIED STAMP
   ===================================================== */

.dossier-photo {
    border: 15px solid #2a2a2a;
    background-color: #2a2a2a;
    box-shadow:
        0 0 0 3px var(--cp-red),
        0 0 30px rgba(255, 0, 64, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.classified-stamp {
    color: var(--cp-red);
    border: 4px solid var(--cp-red);
    background-color: rgba(255, 0, 64, 0.2);
    text-shadow:
        0 0 10px var(--cp-red),
        0 0 20px rgba(255, 0, 64, 0.8);
    box-shadow:
        0 0 20px rgba(255, 0, 64, 0.6),
        inset 0 0 10px rgba(255, 0, 64, 0.3);
}

.photo-label {
    background-color: #1a1a1a;
    color: var(--cp-cyan);
    border: 2px solid var(--cp-red);
    text-shadow: 0 0 5px var(--cp-cyan);
}

/* =====================================================
   LADY LAZARUS TERMINAL
   ===================================================== */

.lady-lazarus-terminal {
    background-color: rgba(10, 14, 26, 0.98);
    border: 3px solid var(--cp-red);
    box-shadow:
        0 0 40px rgba(255, 0, 64, 0.5),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.ll-header {
    background-color: rgba(26, 30, 46, 0.9);
    border-bottom: 2px solid var(--cp-red);
}

.ll-btn {
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.ll-btn:hover {
    background-color: var(--cp-cyan);
    color: var(--cp-dark-1);
    box-shadow: 0 0 15px var(--cp-cyan);
}

.ll-cursor {
    background-color: var(--cp-cyan);
    box-shadow: 0 0 5px var(--cp-cyan);
}

/* =====================================================
   LADY LAZARUS FULL INTERFACE
   ===================================================== */

.ll-full-terminal {
    background: var(--cp-dark-1);
    border: 3px double var(--cp-red);
    box-shadow:
        0 0 40px rgba(255, 0, 64, 0.5),
        inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.ll-full-messages {
    background: var(--cp-dark-1);
    border-bottom: 3px solid var(--cp-red);
    scrollbar-color: var(--cp-cyan) var(--cp-dark-2);
}

.ll-full-messages::-webkit-scrollbar-track {
    background: var(--cp-dark-2);
    border-left: 2px solid var(--cp-red);
}

.ll-full-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cp-cyan) 0%, var(--cp-red) 100%);
    box-shadow:
        inset 0 0 5px rgba(0, 240, 255, 0.5),
        0 0 5px rgba(255, 0, 64, 0.3);
}

.ll-message.assistant .ll-message-content {
    background: rgba(0, 240, 255, 0.08);
    border-left: 3px solid var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.4);
}

.ll-message.user .ll-message-content {
    background: rgba(255, 0, 64, 0.08);
    border-right: 3px solid var(--cp-red);
}

.ll-message-content {
    color: var(--cp-cyan);
}

.ll-message-header {
    color: var(--cp-pink);
}

/* Input Container */
.ll-full-input-container,
.ll-input-container {
    background: var(--cp-dark-2);
    border-top: 3px solid var(--cp-red);
}

.ll-full-input,
#ll-user-input {
    background: var(--cp-dark-1);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.3);
}

.ll-full-input:focus,
#ll-user-input:focus {
    box-shadow:
        0 0 15px rgba(0, 240, 255, 0.6),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
    border-color: var(--cp-cyan);
}

.ll-full-input::placeholder,
#ll-user-input::placeholder {
    color: rgba(0, 240, 255, 0.3);
}

/* Send Button */
.ll-full-send-btn,
#ll-send-btn {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.3) 0%, rgba(0, 240, 255, 0.2) 100%);
    border: 2px solid var(--cp-red);
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
    transition: all 0.3s;
}

.ll-full-send-btn:hover:not(:disabled),
#ll-send-btn:hover {
    background: linear-gradient(135deg, var(--cp-red) 0%, var(--cp-cyan) 100%);
    color: #fff;
    box-shadow:
        0 0 25px rgba(255, 0, 64, 0.8),
        0 0 15px rgba(0, 240, 255, 0.6);
    text-shadow: 0 0 10px #fff;
}

/* =====================================================
   EMAIL SIGNUP BANNER
   ===================================================== */

.email-signup-banner {
    background-color: rgba(10, 14, 26, 0.98);
    border-bottom: 4px solid var(--cp-red);
    box-shadow: 0 5px 40px rgba(255, 0, 64, 0.5);
}

.email-signup-content h2 {
    color: #fff;
    text-shadow:
        0 0 15px var(--cp-cyan),
        0 0 30px rgba(0, 240, 255, 0.6);
}

.email-form input[type="email"] {
    background-color: rgba(10, 14, 26, 0.9);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
}

.email-form input[type="email"]:focus {
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.6),
        inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.email-form button {
    background: linear-gradient(135deg, var(--cp-red) 0%, var(--cp-pink) 100%);
    color: #fff;
    border: 2px solid var(--cp-red);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.email-form button:hover {
    box-shadow:
        0 0 30px var(--cp-red),
        0 0 20px var(--cp-cyan);
    background: linear-gradient(135deg, var(--cp-pink) 0%, var(--cp-cyan) 100%);
}

.close-banner {
    position: absolute;
    top: 65px;
    left: 15px;
    width: 45px !important;
    height: 45px !important;
    font-size: 24px !important;
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    font-weight: bold;
    z-index: 10000;
    pointer-events: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.close-banner:hover {
    background-color: var(--cp-cyan);
    color: var(--cp-dark-1);
    box-shadow: 0 0 15px var(--cp-cyan);
    transform: scale(1.1);
}

/* =====================================================
   ANIMATIONS & EFFECTS
   ===================================================== */

/* Gradient shift animation for sidebar */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scanline movement animation */
@keyframes scanline-move {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* NEW: Keyframes to move the scanline */
@keyframes horizontal-scanline-move {
    0% {
        top: 0%; /* Starts at the top of the viewport */
    }
    100% {
        top: 100%; /* Moves to the bottom of the viewport */
    }
}

/* Pulse with red glow */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    }
}

/* Text glow with cyan */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 8px var(--cp-cyan);
    }
    50% {
        text-shadow:
            0 0 15px var(--cp-cyan),
            0 0 30px var(--cp-cyan),
            0 0 5px var(--cp-red);
    }
}

/* Hide the old green scanlines */
.moving-scanline,
.scan-line {
    display: none !important;
}

/* Hide scanline overlay on mobile — desktop only feature */
@media (max-width: 768px) {
    .moving-scanline-overlay {
        display: none;
    }
}

/* NEW: Defines the appearance and movement of the red/pink scanline - DESKTOP ONLY */
@media (min-width: 769px) {
    .moving-scanline-overlay {
        position: fixed;
        top: -100%; /* Starts above the screen */
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999; /* Ensure it's visible over content */
        pointer-events: none; /* Allows clicks to pass through */

        /* RED/PINK GRADIENT APPEARANCE */
        background: linear-gradient(
            0deg,
            transparent,
            rgba(255, 0, 64, 0.1), /* Red in the center - reduced to 0.1 for subtlety */
            transparent
        );

        /* ANIMATE IT DOWN THE SCREEN */
        animation: scanline-move 10s linear infinite; /* Moderate speed */
    }
}

/* VHS tracking with cyan/red */
.vhs-lines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(0, 240, 255, 0.04) 100px,
        rgba(0, 240, 255, 0.04) 102px
    );
}

/* Loading animation with dual colors */
@keyframes loading-pulse {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 5px var(--cp-red);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--cp-red), 0 0 10px var(--cp-cyan);
    }
    100% {
        opacity: 0.6;
        box-shadow: 0 0 5px var(--cp-red);
    }
}

/* =====================================================
   BEHIND THE CURTAIN - RED THEME ADJUSTMENTS
   ===================================================== */

.behind-curtain {
    border-color: var(--cp-red);
}

.behind-curtain .terminal-header {
    border-color: var(--cp-red);
    color: var(--cp-pink);
    text-shadow: 0 0 8px var(--cp-pink);
}

.behind-curtain .terminal-content {
    color: var(--cp-cyan);
}

.behind-curtain h2 {
    color: var(--cp-pink);
    text-shadow: 0 0 15px var(--cp-pink);
}

.behind-curtain a {
    color: var(--cp-pink);
    text-shadow: 0 0 5px rgba(255, 45, 85, 0.5);
}

.behind-curtain a:hover {
    color: #fff;
    text-shadow:
        0 0 15px var(--cp-red),
        0 0 10px var(--cp-cyan);
}

/* =====================================================
   AVATAR STYLES
   ===================================================== */

.ll-avatar-container {
    background: rgba(10, 14, 26, 0.9);
    border-bottom: 3px solid var(--cp-red);
}

.ll-avatar-status {
    background: rgba(10, 14, 26, 0.95);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
}

.ll-status-indicator {
    background: var(--cp-cyan);
    box-shadow: 0 0 8px var(--cp-cyan);
}

@keyframes ll-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--cp-cyan);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 15px var(--cp-cyan), 0 0 5px var(--cp-red);
    }
}

/* =====================================================
   SPECIAL ELEMENTS
   ===================================================== */

/* Blockquotes */
blockquote {
    border-left-color: var(--cp-cyan) !important;
    color: #fff;
}

/* Details/Summary */
details summary {
    color: var(--cp-red);
    border-color: var(--cp-red) !important;
    background: rgba(255, 0, 64, 0.1) !important;
    transition: all 0.3s;
}

details summary:hover {
    background: rgba(255, 0, 64, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
}

details div {
    border-left-color: var(--cp-cyan) !important;
}

/* User message color */
.ll-user-message {
    color: var(--cp-pink) !important;
}

/* Loading state */
.ll-loading {
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
}

/* Welcome message */
.ll-welcome {
    color: var(--cp-cyan);
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.4);
}

/* Link button */
.ll-link-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    text-shadow: 0 0 5px var(--cp-cyan);
}

.ll-link-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 10px rgba(255, 0, 64, 0.3);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

/* Fix layout at zoom levels and medium screens */
@media (max-width: 1200px) {
    .main-content {
        max-width: calc(100vw - 300px);
        margin-left: 280px;
    }
}

/* Tablet and zoom breakpoint */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 3px double var(--cp-red);
        top: 0 !important;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        border-right: none;
        border-bottom: 3px double var(--cp-red);
    }

    /* Add pulse animation to all terminal boxes on mobile */
    .terminal-box,
    .release-crt-container {
        animation: pulse 4s infinite;
    }
}

/* =====================================================
   ADDITIONAL CYBERPUNK FLOURISHES
   ===================================================== */

/* Add subtle corner accents to terminal boxes */
.terminal-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--cp-cyan);
    border-right: 2px solid var(--cp-cyan);
    opacity: 0.6;
}

/* Glitch effect with red/cyan */
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow:
            0.5px 0 0 rgba(255, 0, 64, 0.4),
            -0.5px 0 0 rgba(0, 240, 255, 0.4);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow:
            2px 0 0 rgba(255, 0, 64, 0.6),
            -2px 0 0 rgba(0, 240, 255, 0.6);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
        text-shadow:
            0.5px 0 0 rgba(255, 0, 64, 0.4),
            -0.5px 0 0 rgba(0, 240, 255, 0.4);
    }
}

/* Holographic shimmer effect */
@keyframes hologram-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sidebar-header {
    background-size: 200% 200%;
    animation: hologram-shimmer 8s ease infinite;
}

/* =====================================================
   UNIVERSAL BANNER SYSTEM
   Banner with Viking runes and neon line
   ===================================================== */

.cyberpunk-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: var(--cp-cyan);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 999999;
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow:
        0 0 10px var(--cp-cyan),
        0 0 20px var(--cp-cyan),
        0 0 30px rgba(0, 240, 255, 0.8);
    animation: banner-pulse 2s infinite;

    /* Neon red line at bottom */
    border-bottom: 2px solid var(--cp-red);
    box-shadow:
        0 2px 10px rgba(255, 0, 64, 0.8),
        0 2px 20px rgba(255, 0, 64, 0.6),
        0 2px 30px rgba(255, 0, 64, 0.4);

    /* Position for runes */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 45px;
}

/* Runes on left side */
.cyberpunk-banner::before {
    content: 'ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ';
    font-size: 16px;
    color: var(--cp-red);
    text-shadow:
        0 0 5px var(--cp-red),
        0 0 8px rgba(255, 0, 64, 0.2);
    animation: rune-flicker-left 3s infinite;
    letter-spacing: 20px;
    opacity: 0.12;
}

/* Runes on right side */
.cyberpunk-banner::after {
    content: 'ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛊ ᛏ ᛒ';
    font-size: 16px;
    color: var(--cp-cyan);
    text-shadow:
        0 0 5px var(--cp-cyan),
        0 0 8px rgba(0, 240, 255, 0.2);
    animation: rune-flicker-right 3s infinite;
    letter-spacing: 20px;
    opacity: 0.12;
}

/* Rune flicker animations */
@keyframes rune-flicker-left {
    0%, 100% {
        opacity: 0.12;
    }
    10% {
        opacity: 0.08;
    }
    20% {
        opacity: 0.18;
    }
    30% {
        opacity: 0.1;
    }
    50%, 90% {
        opacity: 0.15;
    }
}

@keyframes rune-flicker-right {
    0%, 100% {
        opacity: 0.12;
    }
    15% {
        opacity: 0.09;
    }
    25% {
        opacity: 0.19;
    }
    35% {
        opacity: 0.11;
    }
    50%, 85% {
        opacity: 0.15;
    }
}

@keyframes banner-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px var(--cp-cyan),
            0 0 20px var(--cp-cyan),
            0 0 30px rgba(0, 240, 255, 0.8);
    }
    50% {
        text-shadow:
            0 0 15px var(--cp-cyan),
            0 0 30px var(--cp-cyan),
            0 0 45px rgba(0, 240, 255, 1);
    }
}

/* Body padding for banner */
body.has-cyberpunk-banner {
    padding-top: 45px;
}

/* Ensure banner is above body effects */
body::before,
body::after {
    z-index: 1 !important;
}

.cyberpunk-banner {
    z-index: 999999 !important;
}

/* Fix sidebar to match banner height exactly */
body.has-cyberpunk-banner .sidebar {
    position: fixed !important;
    top: 45px !important;
    left: 0 !important;
    height: calc(100vh - 46px) !important;
}

/* LADY LAZARUS MOBILE - Match JS breakpoint of 1100px */
@media (max-width: 1100px) {
    /* CRITICAL FIX: Single border around entire module */
    .ll-mobile-stack {
        width: calc(100% + 6px) !important; /* Extra 6px for 3px borders on each side */
        max-width: calc(100% + 6px) !important;
        margin: 20px -3px !important; /* Negative margin pulls element into padding area */
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;

        /* Double border to match other terminal boxes */
        border: 3px double var(--cp-red) !important;
        border-radius: 4px !important;
        box-shadow: 0 0 40px rgba(255, 0, 64, 0.5) !important;
        background: rgba(10, 14, 26, 0.98) !important;
    }

    /* Avatar and Terminal - NO individual borders */
    .ll-mobile-stack .ll-avatar-corner,
    .ll-mobile-stack .lady-lazarus-terminal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Avatar - top section */
    .ll-mobile-stack .ll-avatar-corner {
        height: 350px !important;
        max-height: 350px !important;
        overflow: hidden !important;
        border-bottom: 3px double var(--cp-red) !important; /* Divider between avatar and terminal */
    }

    /* Terminal - bottom section */
    .ll-mobile-stack .lady-lazarus-terminal {
        background: transparent !important;
    }
}

/* Mobile responsive for banner */
@media (max-width: 768px) {
    .cyberpunk-banner {
        font-size: 10px;
        letter-spacing: 1px;
        gap: 15px;
    }

    .cyberpunk-banner::before,
    .cyberpunk-banner::after {
        font-size: 12px;
        letter-spacing: 10px;
    }
}

/* =====================================================
   ADSENSE SAFETY RULES
   ===================================================== */

/* AdSense Safety Rules */
.desktop-ad-container {
    min-height: 0;
}

/* STRICTLY HIDE ADS ON MOBILE */
@media (max-width: 1000px) {
    .desktop-ad-container {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* =====================================================
   DR. SHARMA SURVEILLANCE LOG STYLES
   ===================================================== */

/* Surveillance log card styling */
.surveillance-log-card {
    border-left: 4px solid var(--cp-cyan) !important;
    background: rgba(0, 240, 255, 0.03) !important;
}

.surveillance-log-card:hover {
    border-left-color: var(--cp-red);
    background: rgba(255, 0, 64, 0.05) !important;
}

/* Surveillance badge (🔊 AUDIO FILE) */
.surveillance-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.15);
    border: 2px solid var(--cp-cyan);
    color: var(--cp-cyan);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Surveillance status badge */
.surveillance-status {
    margin-top: 15px;
    padding: 8px 12px;
    background: rgba(255, 0, 64, 0.1);
    border-left: 3px solid var(--cp-red);
    color: var(--cp-red);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Audio player styling */
audio {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--cp-cyan);
    border-radius: 0;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    min-height: 54px;
}

/* Desktop: Show native audio player, hide custom */
.native-audio-player {
    display: block;
}

.custom-audio-player {
    display: none !important;
}

/* Mobile: Hide native audio player, show custom player */
@media (max-width: 768px) {
    .native-audio-player {
        display: none !important;
    }

    /* Flex Container: Aligns items in a single row */
    .custom-audio-player {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 12px; /* Consistent spacing */
    }

    /* Button: Fixed size, never shrinks or grows */
    .audio-play-btn {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        -webkit-appearance: none;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    /* THE FIX: Start at 0 width, grow to fill space */
    .audio-progress {
        flex: 1 1 0%; /* Use 0% flex-basis instead of auto */
        width: 0 !important; /* Forces input to surrender its default width */
        min-width: 0; /* WebKit override to allow shrinking */
        margin: 0;
        height: 40px !important; /* Maintain touch area */
        -webkit-appearance: none;
        background: transparent;
    }

    .audio-progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: #00F0FF;
        cursor: pointer;
        border-radius: 50%;
    }

    /* Time: Fixed size based on text content */
    .audio-time {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 11px;
        min-width: fit-content;
    }

    /* Legacy: Keep for any remaining native players */
    audio {
        min-height: 90px;
        padding: 15px 5px;
        margin: 25px 0;
        width: 100%;
    }
}

audio::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.8);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    background-color: var(--cp-cyan);
    border-radius: 0;
}

audio::-webkit-media-controls-timeline {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 0;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--cp-cyan);
}

/* Dr. Sharma image styling */
.dr-sharma-image {
    max-width: 300px;
    border: 2px solid var(--cp-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    filter: grayscale(100%);
}


/* =====================================================
   LAYOUT-FIX.CSS — MERGED BELOW
   ===================================================== */

/* =====================================================
   LAYOUT FIX: RIGHT COLUMN SIDEBAR (NUCLEAR CENTER)
   ===================================================== */

/* 1. TARGET THE CHAT BOX IN DESKTOP MODE (GLOBAL OVERRIDE) */
.lady-lazarus-terminal {
    /* Stop it from floating fixed on the screen */
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;

    /* Force it to fill the column width */
    width: 100% !important;
    max-width: 350px !important;

    /* Attach it to the video above */
    margin-top: 0 !important;
    border-top: none !important;

    /* Ensure it stacks correctly */
    display: block !important;
    z-index: 500 !important;
}

/* 2. ENSURE THE RIGHT COLUMN HOLDS IT */
.ll-right-column {
    width: 370px;
    height: 100vh;
    position: sticky;
    top: 0;
    right: 0;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column !important;

    /* Forces children to be full width */
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;

    /* Ensure it sits on top of other layers */
    z-index: 2000 !important;
    padding-top: 90px;
    margin-right: 20px;
    pointer-events: none;
}

/* TARGET CHILDREN DIRECTLY */
.ll-right-column > * {
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* =====================================================
   AVATAR FIX: BORDER OVERLAY TECHNIQUE
   ===================================================== */

/* 3. Ensure the Avatar matches chat width */
.ll-right-column .ll-avatar-corner,
.ll-avatar-corner {
    position: relative !important;
    top: auto !important;
    right: auto !important;

    /* Match chat box width */
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    height: 350px !important;

    /* REMOVE standard border (so video doesn't fight it) */
    border: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 902;
    display: block !important;
    pointer-events: auto;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.5);

    /* Clip anything strictly */
    overflow: hidden !important;
}

/* 2. The Border Overlay (Sits ON TOP of the video) */
.ll-right-column .ll-avatar-corner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* The Visible Border */
    border: 2px solid #FF0040;

    /* Critical: Let clicks pass through to the video */
    pointer-events: none;

    /* Ensure it sits above the video */
    z-index: 10;
    box-sizing: border-box;
}

/* FORCE CHAT BOX TO MATCH AVATAR WIDTH */
.ll-right-column .lady-lazarus-terminal,
.lady-lazarus-terminal {
    /* Fill the available space created by the video above */
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;

    /* Remove side margins so it touches the edges */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;

    /* Reset position */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    /* Visual cleanup */
    border-top: none !important;
    display: block !important;
    z-index: 901;
    pointer-events: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
}

/* =====================================================
   MOBILE FIX: CONSTRAIN AVATAR AND CHAT TO MOBILE CONTENT AREA
   ===================================================== */

@media (max-width: 768px) {
    /* 1. TARGET THE ENTIRE RIGHT COLUMN CONTAINER */
    .ll-right-column {
        /* Reset absolute positioning from desktop mode */
        position: relative !important;
        top: auto !important;
        right: auto !important;

        /* Force it to fill the mobile content area (e.g., 100% - (2 * 20px padding) */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        /* ZERO out all inherited spacing on the container */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        display: block !important;
    }

    /* 2. TARGET THE AVATAR CONTAINER - USE DESKTOP APPROACH */
    .ll-right-column .ll-avatar-corner,
    .ll-avatar-corner {
        /* DESKTOP APPROACH: Fill parent, let parent handle constraints */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;

        /* Zero out margins and padding */
        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    /* 2b. CHAT TERMINAL */
    .ll-right-column .lady-lazarus-terminal,
    .lady-lazarus-terminal {
        /* Fill parent */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
    }

    /* 3. ENSURE THE BORDER OVERLAY (ll-avatar-corner::after) MATCHES THE 100% WIDTH */
    .ll-avatar-corner::after {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        bottom: 0 !important;
    }

    /* 4. Avatar aspect ratio for proper display */
    .ll-right-column .ll-avatar-corner,
    .ll-avatar-corner {
        aspect-ratio: 16 / 9;
        overflow: hidden !important;
    }
}

/* =====================================================
   SCANLINE OVERLAY MOBILE FIX
   Ensures overlay never blocks content on mobile.
   pointer-events: none applied globally so it always
   passes clicks through. display: none on mobile hides
   it completely regardless of other rules.
   ===================================================== */

.moving-scanline-overlay {
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .moving-scanline-overlay {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* =====================================================
   MOBILE TERMINAL BOX CLEANUP
   Desktop has double red borders + 30px glow — looks
   great in a content column. On mobile the boxes are
   edge-to-edge so the double borders and overflow glow
   stack into a messy red grid. Simplify for mobile only.
   ===================================================== */

@media (max-width: 768px) {
    /* Single thin border instead of 3px double */
    .terminal-box {
        border: 1px solid rgba(255, 0, 64, 0.5) !important;
        box-shadow: none !important;
    }

    /* Hide the floating 0xDAEM0N / 0xARCAN4 text that sits
       at top:-15px and overflows outside the box */
    .terminal-box::before {
        display: none !important;
    }

    /* Hide the cyan corner accent — adds visual noise on mobile */
    .terminal-box::after {
        display: none !important;
    }

    /* Simplify sidebar: remove the diagonal crosshatch background
       grid and the multiple inset box-shadow lines. Keep a clean
       bottom border as the only divider. */
    .sidebar {
        background-image: none !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(255, 0, 64, 0.5) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Sidebar header: remove the inner glow that bleeds on mobile */
    .sidebar-header {
        box-shadow: none !important;
    }
}

/* =====================================================
   TOUCH DEVICE CRT OVERLAY SUPPRESSION
   Targets phones/tablets by hardware capability rather
   than viewport width — works even without a viewport
   meta tag. pointer:coarse = touchscreen primary input.
   hover:none = fallback for all non-hover devices.
   Desktop (mouse + hover) never matches either query.
   ===================================================== */

@media (pointer: coarse), (hover: none) {
    body::before,
    body::after {
        display: none !important;
        background: none !important;
    }
}
