﻿/* §SIM — conversational sim panel (page-unique, do not modify) */
.cv-panel {
    background: var(--lux-teal);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    max-width: 760px;
    margin: 0 auto
}

.cv-topbar {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.02)
}

.cv-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.cv-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    transition: background .4s,box-shadow .4s
}

.cv-icon-idle {
    background: rgba(200,16,46,.4)
}

.cv-icon-active {
    background: #c8102e;
    box-shadow: 0 0 16px rgba(200,16,46,.45)
}

.cv-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.2px
}

.cv-subtitle {
    color: rgba(255,255,255,.4);
    font-size: 14px;
    margin-top: 1px
}

.cv-status {
    display: flex;
    align-items: center;
    gap: 6px
}

.cv-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36e889;
    box-shadow: 0 0 8px rgba(52,211,153,.5);
    animation: cvPulse 2s ease-in-out infinite
}

.cv-status-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em
}

.cv-scenario {
    padding: 12px 24px;
    background: rgba(200,16,46,.06);
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: var(fs-7);
    color: rgba(255,255,255,.8);
    line-height: 1.5
}

.cv-scenario-tag {
    color: rgba(255,255,255,.25);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .1em;
    margin-right: 8px
}

.cv-messages {
    padding: 20px 24px 24px;
    min-height: 180px;
    max-height: 520px;
    overflow-y: auto
}

.cv-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    gap: 20px
}

.cv-start-text {
    color: rgba(255,255,255,.2);
    font-size: 14px;
    text-align: center;
    line-height: 1.6
}

.cv-btn-run {
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Lato',sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(200,16,46,.35);
    transition: transform .15s,box-shadow .15s
}

    .cv-btn-run:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(200,16,46,.45)
    }

.cv-btn-replay {
    background: transparent;
    color: rgba(255,255,255,.4);
    border: 1px solid rgba(255,255,255,.12);
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Lato',sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .2s,border-color .2s
}

    .cv-btn-replay:hover {
        color: #fff;
        border-color: rgba(255,255,255,.3)
    }

.cv-phase {
    text-align: center;
    padding: 20px 0 16px
}

.cv-phase-divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 0 0 20px
}

.cv-phase-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #eaf94a;
    background: rgba(200,16,46,.1);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 6px
}

.cv-phase-label {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px
}

.cv-phase-intro {
    color: rgba(255,255,255,.35);
    font-size: 13px;
    margin-top: 4px
}

.cv-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.cv-msg-guest {
    margin-bottom: 8px
}

.cv-msg-ai {
    margin-bottom: 16px;
    justify-content: flex-end
}

.cv-guest-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.cv-bubble-guest {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px 14px 14px 14px;
    padding: 11px 16px;
    max-width: 75%
}

.cv-bubble-ai {
    border-radius: 14px 4px 14px 14px;
    padding: 11px 16px;
    max-width: 75%;
    transition: background .3s,border-color .3s
}

.cv-bubble-ai-ready {
    background: rgba(200,16,46,.1);
    border: 1px solid rgba(200,16,46,.2)
}

.cv-bubble-ai-typing {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06)
}

.cv-msg-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px
}

.cv-msg-label-guest {
    color: rgba(255,255,255,.3)
}

.cv-msg-label-ai {
    color: #9fe8e6
}

.cv-msg-text {
    font-size: 16px;
    line-height: 1.5
}

.cv-msg-text-guest {
    color: rgba(255,255,255,.8)
}

.cv-msg-text-ai {
    color: rgba(255,255,255,.9);
    font-weight: 500
}

.cv-typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 0
}

    .cv-typing-dots span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255,255,255,.6);
        animation: cvPulse 1.1s ease-in-out infinite
    }

        .cv-typing-dots span:nth-child(2) {
            animation-delay: .18s
        }

        .cv-typing-dots span:nth-child(3) {
            animation-delay: .36s
        }

@keyframes cvPulse {
    0%,80%,100% {
        opacity: .25;
        transform: scale(.85)
    }

    40% {
        opacity: 1;
        transform: scale(1.1)
    }
}

@keyframes cvFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes cvFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.cv-appear {
    animation: cvFadeUp .4s ease-out both
}

.cv-phase-appear {
    animation: cvFadeIn .5s ease-out both
}

@media(max-width:767.98px) {
    .cv-panel {
        border-radius: 10px
    }

    .cv-topbar, .cv-scenario, .cv-messages {
        padding-left: 16px;
        padding-right: 16px
    }

    .cv-bubble-guest, .cv-bubble-ai {
        max-width: 85%
    }

    .cv-messages {
        max-height: 440px
    }
}
