/* ═══════════════════════════════════════════════════════════
   WAEYUK PREMIUM LIVEKIT — Night Black / OLED
   ═══════════════════════════════════════════════════════════ */

/* ── Call Loading Overlay ──────────────────────────────────── */
.call-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-family: 'Outfit', 'Tajawal', sans-serif;
}

.call-loading-overlay.active {
    display: flex;
}

/* Premium Spinner Container */
.loading-spinner-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.loading-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Cyan to Dark Purple gradient with a soft fading tail */
    background: conic-gradient(
        from 0deg,
        #00d2ff 0%,     /* Azraq Samawi */
        #a855f7 40%,    /* Mid Purple */
        #7c3aed 70%,    /* Banafseji Ghamiq */
        transparent 90% /* Fading tail */
    );
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}

/* Inner cutout to create the ring effect */
.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: #000; /* OLED Black match */
    border-radius: 50%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.call-loader-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    animation: loaderTextPulse 1.8s ease-in-out infinite;
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Call Modal Overlay */
.call-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    font-family: 'Outfit', 'Tajawal', sans-serif;
}

.call-modal.active {
    display: flex;
}

/* Layout Container */
.call-layout {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

/* Remote Stage - Full Screen */
.call-stage {
    flex: 1;
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.placeholder-status {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    animation: premiumPulse 2.5s ease-in-out infinite;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Session Timer Floating Capsule */
.session-timer {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid rgba(0, 210, 255, 0.2);
}

.session-timer.hidden {
    display: none !important;
}

#timerValue {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.timer-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Critical Time Glow */
.session-timer.low-time {
    border-bottom-color: #ef4444;
    animation: criticalGlow 2s infinite;
}

@keyframes criticalGlow {
    0%, 100% { box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 15px 45px rgba(239, 68, 68, 0.4); }
}

@keyframes premiumPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 0.8; transform: scale(1); }
}

/* Video Elements Container */
.video-participant {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-participant video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.video-participant video.blur-bg {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    z-index: 1;
    filter: blur(40px) brightness(0.4);
    opacity: 0.6;
}

/* Self View (Local Video) - Mirror for natural self-preview only */
.video-participant.local video {
    transform: scaleX(-1) !important;
    object-fit: cover !important;
}

/* Remote Video - Mirror to correct front-facing camera inversion */
.video-participant.remote video {
    transform: scaleX(-1) !important;
}

.self-view {
    position: absolute;
    bottom: 120px;
    right: 30px;
    width: 25%;
    max-width: 240px;
    min-width: 160px;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
}

.self-view.portrait {
    aspect-ratio: 9/16;
    width: 22%;
    max-width: 180px;
}

.self-view:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 210, 255, 0.1);
}



/* Controls Bar - Advanced Glass */
.call-controls-bar {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 14px 32px;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 200;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-controls-bar.controls-hidden {
    opacity: 0;
    transform: translate(-50%, 40px) scale(0.9);
    pointer-events: none;
}

/* Control Buttons */
.control-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.control-btn.active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* End Call Button - Premium Red Pill */
.btn-end {
    background: linear-gradient(135deg, #ef4444, #991b1b) !important;
    width: 80px !important;
    border-radius: 20px !important;
    border: none !important;
}

.btn-end:hover {
    background: linear-gradient(135deg, #ff4d4d, #b91c1c) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

/* Incoming Call Notification - Hyper Premium */
.incoming-call-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 380px;
    max-width: 92vw;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 28px;
    z-index: 10000;
    display: none;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: white;
    animation: premiumSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.incoming-call-notification.active {
    display: block;
}

@keyframes premiumSlideIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.caller-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.caller-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00d2ff;
    padding: 3px;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    animation: avatarPulse 2s infinite;
}

@keyframes avatarPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.caller-name {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.caller-type {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.call-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.btn-action {
    flex: 1;
    padding: 16px;
    border-radius: 18px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accept {
    background: linear-gradient(135deg, #00ff87, #00d2ff);
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 255, 135, 0.2);
}

.btn-accept:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 255, 135, 0.3);
}

.btn-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: translateY(-3px);
}

/* Incoming Call Notification - Premium Glassmorphism */
.incoming-call-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    width: 320px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 
                0 0 30px rgba(0, 210, 255, 0.15);
    direction: rtl;
    transform: translateX(400px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.incoming-call-notification.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.incoming-call-notification .caller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.incoming-call-notification .caller-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    animation: premiumPulseAvatar 2s infinite;
}

.incoming-call-notification .caller-details {
    flex: 1;
}

.incoming-call-notification .caller-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    display: block;
}

.incoming-call-notification .call-type {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.incoming-call-notification .call-actions {
    display: flex;
    gap: 12px;
}

.incoming-call-notification .call-actions button {
    flex: 1;
    height: 46px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.incoming-call-notification .btn-reject {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.incoming-call-notification .btn-reject:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.incoming-call-notification .btn-accept {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.incoming-call-notification .btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(34, 197, 94, 0.5);
}

/* Pulse animation for avatar */
@keyframes premiumPulseAvatar {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .self-view {
        width: 28%;
        max-width: 150px;
        min-width: 100px;
        bottom: 110px;
        right: 15px;
        border-radius: 18px;
    }

    .self-view.portrait {
        width: 24%;
        max-width: 130px;
        min-width: 90px;
    }

    .call-controls-bar {
        width: 85%;
        bottom: 30px;
        gap: 12px;
        padding: 12px 20px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .incoming-call-notification {
        top: 20px;
        right: 15px;
        width: calc(100vw - 30px);
        padding: 20px;
    }
}
/* Live Real-time Transcription Styling */
.live-transcription-container {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 650px;
    z-index: 150;
    pointer-events: none;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 10px;
    direction: rtl;
}

.live-transcription-container.visible {
    display: flex;
}

.transcription-line {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: transcriptionFadeIn 0.3s ease-out;
    max-width: fit-content;
    align-self: center;
}

.transcription-line .speaker-name {
    color: #00d2ff;
    font-weight: 800;
    font-size: 0.85rem;
    margin-left: 8px;
    text-transform: uppercase;
}

.transcription-line.partial {
    color: rgba(255, 255, 255, 0.7);
    border-style: dashed;
}

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

@media (max-width: 768px) {
    .live-transcription-container {
        bottom: 100px;
        font-size: 0.95rem;
    }
}


/* ===============================================================
   WAEYUK LIVE AI PANEL — Premium Transcription UI (conflict-safe)
   =============================================================== */

/* Use display:block !important so .hidden{display:none!important}
   from input-styles.css does NOT hide the panel.
   Visibility is controlled by transform + opacity instead. */
.waeyuk-live-panel {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: 380px;
    max-width: 92vw;
    z-index: 10001;
    font-family: 'Outfit', 'Tajawal', sans-serif;
    direction: rtl;
    transform: translateX(-110%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.35s;
    pointer-events: none;
    opacity: 0;
    display: block !important;   /* beats .hidden{display:none!important} */
}
.waeyuk-live-panel:not(.hidden) {
    transform: translateX(0) !important;
    pointer-events: all;
    opacity: 1;
}
.waeyuk-live-panel.hidden {
    transform: translateX(-110%) !important;
    pointer-events: none;
    opacity: 0;
}

/* Inner layout */
.wlp-inner {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    background: linear-gradient(180deg,#0a0d14 0%,#080b11 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 4px 0 40px rgba(0,0,0,.6),0 0 0 1px rgba(0,210,255,.04);
    overflow: hidden;
}

/* Header */
.wlp-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
    flex-shrink: 0;
}
.wlp-header-left {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.wlp-status-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: unset !important;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    transition: background .4s;
}
.wlp-status-dot.live {
    background: #22c55e !important;
    animation: wlpDotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34,197,94,.6);
}
@keyframes wlpDotPulse {
    0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,197,94,.5)}
    50%    {transform:scale(1.15);box-shadow:0 0 0 6px rgba(34,197,94,0)}
}
.wlp-title {
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
}
.wlp-title i {
    background: linear-gradient(135deg,#00d2ff,#7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wlp-subtitle {
    font-size: .72rem;
    color: #475569;
    margin-top: 2px;
    font-weight: 500;
}

/* Close button — beat global button{width:100%;background:#1da1f2} */
button.wlp-close-btn, .wlp-close-btn {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #64748b !important;
    width: 32px !important;
    height: 32px !important;
    min-width: unset !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    transition: all .2s;
    box-shadow: none !important;
}
button.wlp-close-btn:hover, .wlp-close-btn:hover {
    background: rgba(239,68,68,.12) !important;
    border-color: rgba(239,68,68,.25) !important;
    color: #ef4444 !important;
    transform: none !important;
}

/* Tabs row */
.wlp-tabs {
    display: flex !important;
    gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
    background: rgba(0,0,0,.2);
}

/* Tab buttons — beat global button{width:100%;background:#1da1f2;margin-top:10px} */
button.wlp-tab, .wlp-tab {
    flex: 1 !important;
    width: auto !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #475569 !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all .25s;
    font-family: 'Outfit','Tajawal',sans-serif !important;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 1.2;
}
button.wlp-tab:hover, .wlp-tab:hover {
    background: rgba(255,255,255,.04) !important;
    color: #94a3b8 !important;
    transform: none !important;
}
button.wlp-tab.active, .wlp-tab.active {
    background: rgba(0,210,255,.08) !important;
    border-color: rgba(0,210,255,.2) !important;
    color: #00d2ff !important;
}

/* Tab panels */
.wlp-tab-content           { display: none    !important; flex:1; overflow:hidden; flex-direction:column; }
.wlp-tab-content.active    { display: flex    !important; }

/* Empty state */
.wlp-empty-state {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 14px;
    color: #334155;
    font-size: .88rem;
    font-weight: 600;
    padding: 40px 20px;
    text-align: center;
    user-select: none;
}
.wlp-pulse-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0,210,255,.25);
    position: relative;
    animation: wlpPulse 2s ease-in-out infinite;
}
.wlp-pulse-ring::before,.wlp-pulse-ring::after {
    content:'';position:absolute;
    inset:-10px;border-radius:50%;
    border:1px solid rgba(0,210,255,.1);
    animation:wlpPulse 2s ease-in-out infinite;
    animation-delay:.4s;
}
.wlp-pulse-ring::after { inset:-20px; border-color:rgba(0,210,255,.05); animation-delay:.8s; }
@keyframes wlpPulse {
    0%,100%{transform:scale(.9);opacity:.4}
    50%    {transform:scale(1.1);opacity:1}
}

/* Transcript feed */
.wlp-transcript-feed {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.06) transparent;
}
.wlp-transcript-feed::-webkit-scrollbar       { width:4px }
.wlp-transcript-feed::-webkit-scrollbar-track { background:transparent }
.wlp-transcript-feed::-webkit-scrollbar-thumb { background:rgba(255,255,255,.08);border-radius:4px }

/* Bubble */
.wlp-bubble {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    animation: wlpBubbleIn .35s cubic-bezier(.16,1,.3,1);
}
@keyframes wlpBubbleIn {
    from{opacity:0;transform:translateY(12px)}
    to  {opacity:1;transform:translateY(0)}
}
.wlp-bubble-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}
.wlp-bubble-avatar.specialist { background:linear-gradient(135deg,#7c3aed,#4f46e5); color:#fff !important }
.wlp-bubble-avatar.client     { background:linear-gradient(135deg,#0284c7,#00d2ff); color:#fff !important }
.wlp-bubble-body { flex:1; min-width:0 }
.wlp-bubble-meta {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.wlp-bubble-name { font-size:.72rem; font-weight:800; color:#94a3b8 }
.wlp-bubble-time { font-size:.65rem; color:#334155; font-weight:500 }
.wlp-bubble-text {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 4px 14px 14px 14px;
    padding: 10px 14px !important;
    font-size: .88rem;
    color: #cbd5e1;
    line-height: 1.6;
    word-break: break-word;
    display: block;
    box-sizing: border-box;
    margin: 0 !important;
    width: 100%;
}
.wlp-bubble.partial .wlp-bubble-text {
    color: #64748b;
    border-style: dashed !important;
    border-color: rgba(0,210,255,.18) !important;
    background: rgba(0,210,255,.02);
}
.wlp-bubble.partial .wlp-bubble-text::after {
    content: ' ▍';
    animation: wlpCursor .7s steps(1) infinite;
    color: #00d2ff;
}
@keyframes wlpCursor {
    0%,100%{opacity:1} 50%{opacity:0}
}

/* Footer */
.wlp-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
    background: rgba(0,0,0,.2);
}
.wlp-footer-info {
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    color: #334155;
    font-weight: 600;
}
.wlp-word-count {
    font-size: .7rem;
    color: #475569;
    font-weight: 700;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    padding: 3px 10px;
    border-radius: 20px;
}

@media (max-width:500px) {
    .waeyuk-live-panel { width:100vw }
}
