       refreshMail();
            }
          );
        }

        function refreshMail() {
            const { user, domain } = getUserAndDomain();
            if (!user || !domain) return;

            const t = translations[currentLang];
            const emailsElement = $("#emails");
            emailsElement.empty();
            emailsElement.append(`
                <tr>
                    <td class="text-center p-6">
                        <i class="fas fa-spinner fa-spin text-4xl mb-4"></i>
     