yle.display = 'none';
                overlay.style.display = 'none';

                document.body.style.overflow = 'auto';

                const modalHeader = document.getElementById('modalHeader');
                const popupText = document.getElementById('popupText');
                const chatMessages = document.getElementById('chat-messages');
                const conversationContext = document.getElementById('conversationContext');

                modalHeader.innerHTML = null;
                pop