/* Orange Beam & Trail Effects */
.chat-beam {
    position: fixed !important;
    width: 3px !important;
    height: 3px !important; /* Perfect square 3x3 */
    background: #ff9d00 !important;
    z-index: 9999999 !important;
    pointer-events: none !important;
    border-radius: 50% !important;
    /* Concentrated core + soft aura */
    box-shadow: 0 0 8px #ff9d00, 0 0 15px rgba(255, 157, 0, 0.6), 0 0 25px rgba(255, 157, 0, 0.3) !important;
    display: block !important;
    visibility: visible !important;
}

.chat-trail {
    position: fixed !important;
    width: 1px !important;
    background: linear-gradient(to bottom, #ff9d00, transparent) !important;
    opacity: 0.6 !important;
    filter: blur(0.5px) !important;
    z-index: 9999998 !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
}

/* Integrated Chat Window */
.cyber-chat-window {
    position: fixed !important; 
    width: 0; 
    height: 0; 
    background: #000; 
    border: 1px solid var(--asguard-orange);
    display: flex !important;
    flex-direction: column;
    z-index: 1000002;
    overflow: hidden;
    visibility: hidden;
    box-shadow: -10px -10px 50px rgba(0,0,0,0.8);
}

.cyber-chat-window.open {
    visibility: visible;
}

/* Hide default LHC widgets but keep them accessible for the bubble/dot */
#lhc_status_widget_v2, .lhc-status-widget-v2 {
    opacity: 1 !important;
    visibility: visible !important;
}

#lhc_container_v2, .lhc-desktop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#lhc_container_v2.lhc-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Style the internal chat iframe */
.cyber-chat-window iframe {
    color-scheme: dark;
}

@media (max-width: 768px) {
    /* Mobile chat styles are handled entirely in style-v21.css and cyber-chat.js now */
    .cyber-chat-window {
        bottom: calc(30px + env(safe-area-inset-bottom)) !important; /* Close the gap perfectly */
        height: calc(100vh - (30px + env(safe-area-inset-bottom))) !important;
        height: calc(100dvh - (30px + env(safe-area-inset-bottom))) !important;
    }
}
