/* --- ABCChat Premium Dark Theme --- */
:root {
    --bg-app: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-light: #334155;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --danger: #ef4444;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.abcchat-wrapper, .abcchat-wrapper * { box-sizing: border-box !important; }

.abcchat-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */
.abcchat-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 10000;
}
.abcchat-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    gap: 10px;
}

.abcchat-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.abcchat-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.abcchat-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.wpcr-status {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-surface-light);
    color: var(--text-muted);
}
.wpcr-status.connecting { color: #60a5fa; background: rgba(59, 130, 246, 0.1); }
.wpcr-status.connected { color: #34d399; background: rgba(16, 185, 129, 0.1); }
.wpcr-status.disconnected { color: #f87171; background: rgba(239, 68, 68, 0.1); }

/* MAIN LAYOUT */
.abcchat-main {
    display: flex;
    flex-direction: row;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    height: calc(100% - 70px);
}

/* VIDEO SECTION */
.abcchat-video-section {
    flex: 2;
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Remote video MUST fill the stage — absolute inset avoids 0-height collapse */
.abcchat-video-section {
    min-height: 320px;
}
.remote-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 240px !important;
    background: #000 !important;
    z-index: 1 !important;
    overflow: hidden !important;
}
.remote-container video,
#wpcr-remote-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    background: #111 !important;
    z-index: 5 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: none !important; /* never mirror remote */
}
#wpcr-remote-placeholder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 6 !important;
    background: rgba(15,23,42,0.92) !important;
}
#wpcr-remote-placeholder.hidden,
.video-placeholder.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* While connected, never cover remote video with start overlay */
.abcchat-wrapper.is-chatting #wpcr-start-screen {
    display: none !important;
}
.abcchat-wrapper.is-chatting #wpcr-remote-placeholder {
    display: none !important;
}
.local-container {
    z-index: 15 !important;
}
.abcchat-controls {
    z-index: 20 !important;
}

.wpcr-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 900;
    pointer-events: none;
    z-index: 10;
    user-select: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff8da1, #ffb86c, #f9ea8f, #85e0b6, #7bc5ff, #b592ff, #ff8da1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineWatermark 6s linear infinite;
    opacity: 0.25;
}

@keyframes shineWatermark {
    to { background-position: 200% center; }
}

.local-container {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 140px;
    height: 190px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-heavy);
    z-index: 10;
}
.local-container video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.local-container.rear-camera video { transform: none; }

.video-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 0.9rem; z-index: 1;
}
.video-placeholder.hidden { display: none; }

/* CONTROLLI */
.abcchat-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 20;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.controls-left, .controls-main { display: flex; align-items: center; gap: 10px; }

/* ICONE */
.abcchat-icon-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(51, 65, 85, 0.96);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.abcchat-icon-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(147, 197, 253, 0.7);
    transform: translateY(-1px);
}

.abcchat-icon-btn:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.75);
    outline-offset: 3px;
}

.abcchat-control-svg,
.abcchat-icon-btn svg {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    flex: 0 0 auto;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    overflow: visible;
}

.abcchat-icon-btn.muted {
    background: rgba(239, 68, 68, 0.95) !important;
    color: #ffffff !important;
    border-color: rgba(254, 202, 202, 0.85) !important;
}

.abcchat-icon-btn.muted:hover {
    background: #dc2626 !important;
}

.switch-camera-btn {
    color: #bfdbfe;
}

.switch-camera-btn.switching svg {
    animation: cameraSpin 0.7s linear infinite;
}

.switch-camera-btn:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

@keyframes cameraSpin {
    to { transform: rotate(360deg); }
}

/* PULSANTE ACCEDI / REGISTRATI CON ANIMAZIONE */
.login-btn {
    background: #e11d48;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.login-btn:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.logout-btn {
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.logout-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

/* Animazione Pop */
.pop-animation {
    animation: popIn 0.4s ease forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* OVERLAY START SCREEN */
.abcchat-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(5px);
    z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.abcchat-overlay.hidden { display: none; }

.abcchat-start-box {
    background: var(--bg-surface); padding: 32px; border-radius: var(--radius-lg); text-align: center;
    max-width: 520px; width: 100%; box-shadow: var(--shadow-heavy); border: 1px solid var(--border-color);
    margin: auto;
}

.abcchat-start-box h2 {
    position: relative;
    margin-top: 0;
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.abcchat-start-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* EFFETTO LETTERA PER LETTERA */
.cyber-gradient { display: inline-flex; gap: 0px; }
.cyber-gradient span { display: inline-block; transition: color 0.3s ease; }

.word-1 span:nth-child(1) { color: #ff0055; }
.word-1 span:nth-child(2) { color: #ff5500; }
.word-1 span:nth-child(3) { color: #ffaa00; }
.word-1 span:nth-child(4) { color: #ffee00; }
.word-1 span:nth-child(5) { color: #aaff00; }
.word-1 span:nth-child(6) { color: #00ffaa; }
.word-1 span:nth-child(7) { color: #00eeff; }
.word-1 span:nth-child(8) { color: #0088ff; }
.word-1 span:nth-child(9) { color: #aa00ff; }

.word-2 span:nth-child(1) { color: #ff0055; }
.word-2 span:nth-child(2) { color: #ff9900; }
.word-2 span:nth-child(3) { color: #ffee00; }
.word-2 span:nth-child(4) { color: #00ffaa; }
.word-2 span:nth-child(5) { color: #00eeff; }
.word-2 span:nth-child(6) { color: #0088ff; }
.word-2 span:nth-child(7) { color: #aa00ff; }

/* Badge Online */
.cyber-status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #85e0b6;
    background: rgba(133, 224, 182, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(133, 224, 182, 0.3);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* GRADIENTE ANIMATO SUL TESTO */
.text-gradient {
    background: linear-gradient(90deg, #ff8da1, #ffb86c, #f9ea8f, #85e0b6, #7bc5ff, #b592ff, #ff8da1);
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    font-weight: 700;
}
@keyframes shine { to { background-position: 200% center; } }

/* Box introduttivo */
.abcchat-intro-box {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px; border-radius: var(--radius-md); margin-bottom: 24px;
}
.abcchat-intro-box p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 500;
}
.abcchat-intro-box p:last-child { margin-bottom: 0; }

.abcchat-filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; text-align: left; }
.filter-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

.filter-group select {
    width: 100%; padding: 12px 36px 12px 12px; background: var(--bg-app); border: 1px solid var(--border-color);
    color: white; border-radius: var(--radius-md); outline: none; font-size: 1rem;
    appearance: auto; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}

.filter-group select option { background-color: #ffffff !important; color: #000000 !important; font-weight: 600; }

.mode-selector select { border-color: var(--primary); background-color: rgba(59, 130, 246, 0.1); font-weight: 600; }
.abcchat-tos { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; cursor: pointer; }

/* TEXT CHAT SECTION */
.abcchat-text-section {
    flex: 1; background: var(--bg-surface); display: flex; flex-direction: column;
    border-left: 1px solid var(--border-color); min-width: 320px; height: 100%;
}
.chat-header { padding: 16px; border-bottom: 1px solid var(--border-color); }
.chat-header h3 { margin: 0; font-size: 1rem; color: var(--text-main); }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.wpcr-chat-empty { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: auto; margin-bottom: auto; }

.wpcr-message { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; }
.wpcr-message.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.wpcr-message.partner { align-self: flex-start; background: var(--bg-surface-light); color: #fff; border-bottom-left-radius: 4px; }
.wpcr-message-system { align-self: center; background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.8rem; padding: 4px 12px; border-radius: 12px; }

.chat-input-area { padding: 16px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; background: var(--bg-surface); }
.chat-input-area input { flex: 1; background: var(--bg-app); border: 1px solid var(--border-color); color: white; padding: 12px 16px; border-radius: 24px; outline: none; transition: border 0.2s; }
.chat-input-area input:focus { border-color: var(--primary); }
.chat-input-area input:disabled { opacity: 0.5; cursor: not-allowed; }

/* BOTTONI */
.abcchat-btn {
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.abcchat-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.abcchat-btn.primary { background: var(--primary); color: white; }
.abcchat-btn.primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.abcchat-btn.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.abcchat-btn.danger:hover:not(:disabled) { background: var(--danger); color: white; }
.abcchat-btn.large { width: 100%; padding: 14px; font-size: 1.05rem; }
.abcchat-btn.full { width: 100%; }

.send-btn { background: var(--primary); color: white; width: 44px; height: 44px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* ==================== MODAL STYLING ==================== */
.abcchat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.abcchat-modal-content {
    background: #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
    border: 1px solid #334155;
}

.abcchat-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.abcchat-modal-close:hover {
    color: #fff;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid #334155;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: #fff;
    border-bottom: 3px solid #3b82f6;
}

/* Form */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    color: #fff;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.auth-form input:focus {
    border-color: #3b82f6;
}

.auth-form .full {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.auth-switch a {
    color: #60a5fa;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 12px;
    text-align: center;
}

#login-message,
#register-message {
    min-height: 20px;
    line-height: 1.35;
}

#login-message.success,
#register-message.success {
    color: #34d399 !important;
}

#login-message.error,
#register-message.error {
    color: #f87171 !important;
}

.auth-form button[disabled] {
    opacity: 0.72;
    cursor: wait;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .abcchat-wrapper { height: 100dvh; min-height: 0; border: none; border-radius: 0; }
    
    .abcchat-header-content { padding: 12px 10px; gap: 8px; }
    .abcchat-logo { font-size: 1.1rem; }
    .abcchat-header-right { gap: 8px; }
    .abcchat-credits, .wpcr-status { font-size: 0.75rem; padding: 4px 10px; }
    
    .abcchat-main { flex-direction: column; height: calc(100dvh - 60px); }
    .abcchat-video-section { flex: 0 0 55%; height: 55%; min-height: 45dvh; overflow: hidden; position: relative; } 
    .abcchat-text-section { flex: 0 0 45%; height: 45%; border-left: none; border-top: 1px solid var(--border-color); min-width: 100%; }

    .abcchat-overlay { 
        position: fixed; 
        top: 60px; 
        left: 0; right: 0; bottom: 0; 
        height: calc(100dvh - 60px); 
        z-index: 9999; 
        padding: 16px; 
        background: var(--bg-app); 
    }

    .abcchat-start-box { 
        padding: 20px; 
        width: 100%; 
        max-width: 500px;
        max-height: 100%; 
        margin: auto; 
        overflow-y: auto; 
    }
    
    .abcchat-intro-box { padding: 12px; margin-bottom: 16px; }
    .abcchat-filters { gap: 10px; margin-bottom: 16px; }
    .filter-group select { padding: 10px; font-size: 0.95rem; }
    .abcchat-tos { font-size: 0.75rem; margin-bottom: 16px; }
    .abcchat-btn.large { padding: 12px; font-size: 1rem; }

    .local-container { width: 90px; height: 120px; top: 12px; right: 12px; bottom: auto; z-index: 10; }
    
    .abcchat-controls { bottom: 12px; width: min(95%, 430px); padding: 8px 10px; justify-content: space-between; z-index: 20; gap: 8px; }
    .controls-left, .controls-main { gap: 8px; }
    .abcchat-btn { padding: 8px 14px; font-size: 0.85rem; }
    .abcchat-icon-btn { width: 42px; height: 42px; min-width: 42px; min-height: 42px; }
    .abcchat-control-svg, .abcchat-icon-btn svg { width: 23px !important; height: 23px !important; stroke-width: 2.9 !important; }

    .login-btn { padding: 8px 12px; font-size: 0.78rem; }
    .logout-btn { padding: 6px 10px; font-size: 0.75rem; }
    .abcchat-modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .abcchat-modal-content { max-width: 100%; padding: 24px 18px; margin: 48px auto 20px; }
    .auth-tab { padding: 10px 8px; }
    .auth-form input { padding: 13px 14px; font-size: 16px; }
}
    /* Fix header overflow */
    .abcchat-header-content { flex-wrap: wrap; }
    .abcchat-header-right { flex-wrap: wrap; justify-content: flex-end; }
    
    /* Hide status on very small screens to save space */
    @media (max-width: 500px) {
        .wpcr-status { display: none; }
        
        
        .abcchat-controls { width: 100%; border-radius: 0; bottom: 0; gap: 4px; padding: 6px; }
        .controls-left, .controls-main { gap: 4px; }
        .abcchat-btn { padding: 6px 8px; font-size: 0.75rem; white-space: nowrap; }
        .abcchat-icon-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
        
        #wpcr-btn-report { padding: 6px; }
        #wpcr-btn-stop { padding: 6px; }
        #wpcr-btn-next { padding: 6px; }
    }

    /* Override confusing button colors */
    .abcchat-icon-btn:hover {
        background: rgba(71, 85, 105, 1) !important;
        border-color: rgba(255,255,255,0.4) !important;
    }
    .abcchat-icon-btn:focus-visible, .abcchat-icon-btn:focus {
        outline: none !important;
    }
    .abcchat-icon-btn.muted:hover {
        background: #dc2626 !important;
    }

/* --- OVERLAY VIDEO STATUS --- */
.wpcr-video-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 25;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.wpcr-video-status.connecting {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.85);
}
.wpcr-video-status.connected {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(15, 23, 42, 0.85);
}
.wpcr-video-status.disconnected {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
}

/* Hide floating status unless chatting is active */
.abcchat-wrapper:not(.is-chatting) .wpcr-video-status {
    display: none !important;
}
    