/* Voice call modal — load after Bootstrap */
.voice-call-modal-wrap .modal-backdrop {
    background: rgba(15, 12, 20, 0.72);
}

.voice-call-modal {
    max-width: 380px;
    width: calc(100% - 32px);
    margin: 1rem auto;
}

#voiceCallModal .modal-content {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    background: linear-gradient(165deg, #2a2230 0%, #1a1520 55%, #120e16 100%) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(235, 79, 131, 0.12);
    color: #fff;
}

#voiceCallModal .modal-header {
    border: none !important;
    padding: 20px 20px 0;
    background: transparent !important;
    justify-content: center;
    position: relative;
}

#voiceCallModal .modal-title {
    margin: 0;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8b4cc;
    background: rgba(235, 79, 131, 0.2);
    border: 1px solid rgba(235, 79, 131, 0.35);
    border-radius: 999px;
}

#voiceCallModal .modal-header .close {
    position: absolute;
    top: 12px;
    right: 14px;
    margin: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    border: none !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 22px;
    line-height: 36px;
    text-shadow: none;
    opacity: 1;
}

#voiceCallModal .modal-header .close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

#voiceCallModal .modal-body {
    padding: 12px 24px 32px;
    background: transparent !important;
}

#voiceCallModal .voice-call-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

#voiceCallModal .voice-call-avatar img,
#voiceCallModal #voiceCallAvatar {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #EB4F83 !important;
    box-shadow: 0 6px 24px rgba(235, 79, 131, 0.35);
}

#voiceCallModal .voice-call-name {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
    word-break: break-word;
}

#voiceCallModal .voice-call-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 14px 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    border: none !important;
}

#voiceCallModal .voice-call-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0ad4e;
    flex-shrink: 0;
}

#voiceCallModal .voice-call-timer {
    font-size: 2.5rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #fff !important;
    margin: 4px 0 24px;
    line-height: 1.2;
    background: transparent !important;
    border: none !important;
}

#voiceCallModal .modal-body:has(.voice-call-timer:not([style*="display: none"])) .voice-call-status::before {
    background: #5ce0a0;
    box-shadow: 0 0 8px rgba(92, 224, 160, 0.7);
    animation: voiceCallLive 1.4s ease-in-out infinite;
}

@keyframes voiceCallLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

#voiceCallModal .voice-call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}

#voiceCallModal .btn-call-control {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    -webkit-appearance: none;
    appearance: none;
}

#voiceCallModal .btn-call-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#voiceCallModal .btn-call-control:active {
    transform: scale(0.94);
}

#voiceCallModal .btn-mute-audio-voice {
    background: #5a6270 !important;
}

#voiceCallModal .btn-mute-audio-voice:hover {
    background: #6d7685 !important;
}

#voiceCallModal .btn-mute-audio-voice.muted {
    background: #EB4F83 !important;
    box-shadow: 0 4px 16px rgba(235, 79, 131, 0.45);
}

#voiceCallModal .btn-end-call {
    background: #e53935 !important;
}

#voiceCallModal .btn-end-call:hover {
    background: #ef5350 !important;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

#voiceCallModal .btn-end-call .fa-phone {
    display: inline-block;
    transform: rotate(135deg);
}
