/* Extracted from CallingAgent.html */


/* --- Block 1 --- */

            /* Calling agent dashboard tabs: stable aspect ratio + faster tab switch */
            .ca-dashboard-frame .xb-video-wrap {
                overflow: hidden;
                width: 87.2%;
                max-width: none;
            }

            .ca-dashboard-frame .tab-pane {
                transition: none !important;
            }

            .ca-dashboard-frame .xb-tab-img {
                width: 100%;
                aspect-ratio: 16 / 9;
                max-height: none;
                border-radius: 0 0 12px 12px;
                overflow: hidden;
                background: #020816;
            }

            .ca-dashboard-frame .xb-tab-img img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                object-position: top center;
                backface-visibility: hidden;
                transform: translateZ(0);
            }

            @media (max-width: 1199px) {
                .ca-dashboard-frame .xb-video-wrap {
                    width: 88%;
                }
            }

            @media (max-width: 991px) {
                .ca-dashboard-frame .xb-video-wrap {
                    width: 90%;
                }
            }

            @media (max-width: 767px) {
                .ca-dashboard-frame .xb-tab-img {
                    max-height: none;
                }
            }
        



/* --- Block 2 --- */

                /* ========= SC PLAYER V2 — matches site design system ========= */
                .sc-pv2-card {
                    max-width: 900px;
                    margin: 0 auto;
                    background: var(--fx-card-bg);
                    border: 1px solid var(--fx-card-border);
                    border-radius: 20px;
                    overflow: hidden;
                    position: relative;
                    backdrop-filter: blur(16px);
                    -webkit-backdrop-filter: blur(16px);
                }
                /* Top accent line — same as .fx-audio-card::before */
                .sc-pv2-card::before {
                    content: '';
                    position: absolute; top: 0; left: 0; right: 0;
                    height: 1px;
                    background: linear-gradient(90deg, transparent, rgba(45,212,191,0.3), transparent);
                    z-index: 1;
                }

                /* ---- Layout ---- */
                .sc-pv2-body {
                    display: grid;
                    grid-template-columns: 190px 1fr;
                }

                /* ---- Left identity panel ---- */
                .sc-pv2-left {
                    background: rgba(15,23,42,0.5);
                    border-right: 1px solid var(--fx-card-border);
                    padding: 36px 22px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 14px;
                }

                /* Avatar */
                .sc-pv2-avatar {
                    position: relative;
                    width: 80px; height: 80px;
                    flex-shrink: 0;
                }
                .sc-pv2-ring {
                    position: absolute; inset: 0;
                    border-radius: 50%;
                    border: 1px solid rgba(45,212,191,0.15);
                    animation: sc-ring 3.2s ease-out infinite;
                }
                .sc-pv2-ring.r2 { animation-delay: 1.1s; }
                .sc-pv2-ring.r3 { animation-delay: 2.2s; }
                @keyframes sc-ring {
                    0%   { transform: scale(1);   opacity: 0.6; }
                    100% { transform: scale(2.1); opacity: 0; }
                }
                .sc-pv2-avatar-inner {
                    position: absolute; inset: 0;
                    border-radius: 50%;
                    background: var(--fx-green-dim);
                    border: 1.5px solid var(--fx-glass-border);
                    display: flex; align-items: center; justify-content: center;
                    font-size: 28px;
                    color: var(--fx-green);
                    transition: box-shadow 0.3s ease;
                }
                .sc-pv2-card.is-playing .sc-pv2-avatar-inner {
                    box-shadow: 0 0 24px var(--fx-green-glow);
                    animation: sc-bounce 1s ease-in-out infinite alternate;
                }
                @keyframes sc-bounce {
                    from { transform: scale(1); }
                    to   { transform: scale(1.06); }
                }

                /* Status */
                .sc-pv2-status {
                    display: flex; align-items: center; gap: 6px;
                    font-size: 10px; font-weight: 700; letter-spacing: 2px;
                    text-transform: uppercase;
                    color: var(--fx-text-muted);
                    font-family: var(--fx-font-mono);
                    transition: color 0.3s;
                }
                .sc-pv2-dot {
                    width: 6px; height: 6px; border-radius: 50%;
                    background: var(--fx-text-muted);
                    transition: all 0.3s;
                }
                .sc-pv2-card.is-playing .sc-pv2-dot {
                    background: var(--fx-green);
                    box-shadow: 0 0 6px rgba(45,212,191,0.6);
                    animation: pulseDot 2s ease-in-out infinite;
                }
                .sc-pv2-card.is-playing .sc-pv2-status { color: var(--fx-green); }

                .sc-pv2-agent-name {
                    font-size: 13px; font-weight: 700;
                    color: var(--fx-text); text-align: center; margin: 0; line-height: 1.3;
                }
                .sc-pv2-agent-sub {
                    font-size: 11px; color: var(--fx-text-muted);
                    text-align: center; margin: 0; line-height: 1.4;
                    font-family: var(--fx-font-mono); letter-spacing: 0.3px;
                }
                .sc-pv2-voice-tag {
                    background: rgba(45,212,191,0.06);
                    border: 1px solid rgba(45,212,191,0.15);
                    border-radius: 100px; padding: 4px 12px;
                    font-size: 10px; color: var(--fx-green);
                    font-family: var(--fx-font-mono); letter-spacing: 1px;
                    font-weight: 600;
                }

                /* EQ bars */
                .sc-pv2-eq {
                    display: flex; align-items: flex-end; gap: 3px; height: 20px;
                    opacity: 0.2; transition: opacity 0.4s;
                }
                .sc-pv2-card.is-playing .sc-pv2-eq { opacity: 1; }
                .sc-pv2-eq-bar {
                    width: 3px; background: var(--fx-green);
                    border-radius: 2px; height: 30%;
                    animation: sc-eq 0.8s ease-in-out infinite alternate;
                }
                .sc-pv2-eq-bar:nth-child(1){animation-delay:0s;  height:35%;}
                .sc-pv2-eq-bar:nth-child(2){animation-delay:.1s; height:70%;}
                .sc-pv2-eq-bar:nth-child(3){animation-delay:.2s; height:100%;}
                .sc-pv2-eq-bar:nth-child(4){animation-delay:.15s;height:60%;}
                .sc-pv2-eq-bar:nth-child(5){animation-delay:.05s;height:40%;}
                @keyframes sc-eq {
                    from { transform: scaleY(0.2); }
                    to   { transform: scaleY(1); }
                }

                /* ---- Right content panel ---- */
                .sc-pv2-right { padding: 34px 40px 34px 36px; }
                .sc-pv2-title {
                    font-size: 18px; font-weight: 700;
                    color: var(--fx-text); margin: 0 0 6px; line-height: 1.35;
                }
                .sc-pv2-desc {
                    font-size: 13px; color: var(--fx-text-dim);
                    margin: 0 0 22px; line-height: 1.65;
                }

                /* Waveform stage */
                .sc-pv2-stage {
                    background: rgba(255,255,255,0.02);
                    border: 1px solid var(--fx-card-border);
                    border-radius: 12px;
                    padding: 14px 16px 12px;
                    margin-bottom: 16px;
                }
                .sc-pv2-wave {
                    display: flex; align-items: center; gap: 2px; height: 60px;
                }
                .sc-pv2-wave .wv-bar {
                    flex: 1; border-radius: 100px; min-width: 2px;
                    transition: background 0.1s ease;
                }
                .sc-pv2-wave .wv-bar.played {
                    background: var(--fx-green);
                    box-shadow: 0 0 4px rgba(45,212,191,0.25);
                }
                .sc-pv2-wave .wv-bar.unplayed { background: rgba(148,163,184,0.1); }

                /* Controls */
                .sc-pv2-controls {
                    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
                }
                .sc-pv2-play {
                    width: 48px; height: 48px; min-width: 48px;
                    border-radius: 50%; border: none; cursor: pointer;
                    background: var(--fx-green);
                    display: flex; align-items: center; justify-content: center;
                    font-size: 16px; color: var(--fx-bg);
                    box-shadow: 0 4px 20px rgba(45,212,191,0.25);
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                    flex-shrink: 0;
                }
                .sc-pv2-play:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 8px 30px rgba(45,212,191,0.35);
                }
                .sc-pv2-play i { margin-left: 2px; }
                .sc-pv2-track-wrap {
                    flex: 1; display: flex; flex-direction: column; gap: 8px;
                }
                .sc-pv2-times {
                    display: flex; justify-content: space-between;
                    font-family: var(--fx-font-mono);
                    font-size: 11px; color: var(--fx-text-muted); letter-spacing: 0.5px;
                }
                .sc-pv2-times .sc-cur { color: var(--fx-green); }
                .sc-pv2-track {
                    height: 4px; background: rgba(148,163,184,0.1);
                    border-radius: 100px; overflow: hidden;
                }
                .sc-pv2-fill {
                    height: 100%; width: 0%;
                    background: var(--fx-green);
                    border-radius: 100px;
                    transition: width 0.25s linear;
                }

                /* Transcript toggle */
                .sc-pv2-transcript-toggle {
                    padding-top: 14px;
                    border-top: 1px solid var(--fx-card-border);
                }
                .sc-pv2-tbtn {
                    display: inline-flex; align-items: center; gap: 8px;
                    padding: 8px 18px;
                    background: rgba(255,255,255,0.02);
                    border: 1px solid rgba(255,255,255,0.06);
                    border-radius: 10px;
                    cursor: pointer;
                    color: var(--fx-text-dim);
                    font-size: 13px; font-weight: 600;
                    font-family: var(--fx-font-mono); letter-spacing: 0.5px;
                    transition: all 0.3s ease;
                }
                .sc-pv2-tbtn:hover {
                    background: rgba(45,212,191,0.08);
                    border-color: rgba(45,212,191,0.25);
                    color: var(--fx-green);
                }

                /* Transcript chat area */
                .sc-pv2-tchat {
                    display: none; flex-direction: column; gap: 12px;
                    padding-top: 18px; max-height: 260px; overflow-y: auto;
                }
                .sc-pv2-tchat.open { display: flex; }
                .sc-pv2-tchat::-webkit-scrollbar { width: 3px; }
                .sc-pv2-tchat::-webkit-scrollbar-thumb {
                    background: rgba(45,212,191,0.15); border-radius: 100px;
                }
                .sc-pv2-msg { display: flex; flex-direction: column; max-width: 80%; }
                .sc-pv2-msg.ai  { align-self: flex-start; }
                .sc-pv2-msg.hu  { align-self: flex-end; align-items: flex-end; }
                .sc-pv2-who {
                    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
                    text-transform: uppercase; margin-bottom: 5px;
                    font-family: var(--fx-font-mono);
                }
                .sc-pv2-msg.ai .sc-pv2-who { color: var(--fx-green); }
                .sc-pv2-msg.hu .sc-pv2-who { color: var(--fx-text-muted); }
                .sc-pv2-bubble {
                    padding: 10px 14px; border-radius: 12px;
                    font-size: 13px; line-height: 1.65;
                    color: var(--fx-text-dim);
                }
                .sc-pv2-msg.ai .sc-pv2-bubble {
                    background: rgba(45,212,191,0.06);
                    border: 1px solid rgba(45,212,191,0.12);
                    border-bottom-left-radius: 4px;
                }
                .sc-pv2-msg.hu .sc-pv2-bubble {
                    background: rgba(148,163,184,0.05);
                    border: 1px solid rgba(148,163,184,0.08);
                    border-bottom-right-radius: 4px;
                    text-align: right;
                }

                /* Responsive */
                @media (max-width: 767px) {
                    .sc-pv2-body { grid-template-columns: 1fr; }
                    .sc-pv2-left {
                        flex-direction: row; flex-wrap: wrap;
                        border-right: none;
                        border-bottom: 1px solid var(--fx-card-border);
                        padding: 20px 24px; gap: 12px; justify-content: flex-start;
                    }
                    .sc-pv2-avatar { width: 56px; height: 56px; }
                    .sc-pv2-avatar-inner { font-size: 20px; }
                    .sc-pv2-agent-name, .sc-pv2-agent-sub { text-align: left; }
                    .sc-pv2-eq { display: none; }
                    .sc-pv2-right { padding: 22px; }
                    .sc-pv2-title { font-size: 16px; }
                }
