.voice-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.voice-call-overlay.visible {
    opacity: 1;
}

.vc-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transform: scale(1.1);
}

.vc-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.2) 60%,
        rgba(0,0,0,0.7) 100%
    );
}

.vc-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 60px 20px 50px;
    padding-top: max(60px, env(safe-area-inset-top, 60px));
    padding-bottom: max(50px, env(safe-area-inset-bottom, 50px));
}

.vc-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 30px;
}

.vc-avatar-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

.vc-avatar-wrap.ringing {
    animation: vc-pulse 2s ease-in-out infinite;
}

.vc-avatar-wrap.incoming-pulse {
    animation: vc-pulse 1.5s ease-in-out infinite;
}

.vc-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-name {
    font-size: 30px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.vc-status {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    text-transform: lowercase;
}

.vc-timer {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 2px;
}

.vc-bottom {
    display: flex;
    justify-content: center;
}

.vc-actions {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.vc-incoming-actions {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.vc-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vc-btn-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.vc-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.vc-btn:active {
    transform: scale(0.9);
    opacity: 0.8;
}

.vc-end, .vc-decline {
    background: #ff3b30;
    color: #fff;
}

.vc-accept {
    background: #34c759;
    color: #fff;
    animation: vc-shake 1.2s ease-in-out infinite;
}

.vc-mute, .vc-speaker {
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vc-mute.muted,
.vc-speaker.active {
    background: rgba(255,255,255,0.9);
    color: #000;
}

.vc-call-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mode-primary, #a855f7);
    padding: 6px 8px;
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-call-btn:hover {
    background: rgba(168, 85, 247, 0.1);
}

.message .call-event-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    justify-content: center;
    padding: 6px 0;
}

.message .call-event-bubble i {
    font-size: 12px;
}

.call-event-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
}

.call-event-marker i { font-size: 12px; }
.call-event-marker.missed i { color: #ef4444; }
.call-event-marker.completed i { color: #22c55e; }

.call-transcript-summary {
    cursor: pointer;
    user-select: none;
}

.call-transcript-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.message.ai .call-transcript-header {
    color: inherit;
    opacity: 0.7;
}

.call-transcript-header i { font-size: 11px; }

.cts-chevron {
    font-size: 9px !important;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.call-transcript-summary.expanded .cts-chevron {
    transform: rotate(180deg);
}

.call-transcript-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.call-transcript-summary.expanded .call-transcript-body {
    max-height: 2000px;
    margin-top: 8px;
}

@keyframes vc-pulse {
    0%, 100% {
        border-color: rgba(255,255,255,0.3);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
    }
    50% {
        border-color: rgba(255,255,255,0.6);
        box-shadow: 0 0 0 15px rgba(255,255,255,0);
    }
}

@keyframes vc-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-6deg); }
    20% { transform: rotate(6deg); }
    30% { transform: rotate(-4deg); }
    40% { transform: rotate(4deg); }
    50%, 100% { transform: rotate(0deg); }
}
