ata = LANG_DATA[lang] || LANG_DATA['ru'];
                        applyLanguage();
                    } catch (e) {
                        console.error("Failed to load language:", e);
                        langData = LANG_DATA['ru'];
                        applyLanguage();
                    }
                };
const loadingOverlay = document.getElementById('loading-overlay');
function showLoading() {
    btnPrimary.disabled = true;
    loadingOverlay.classList.remove('hidden');
}
function hideLoadi