loseBtn.addEventListener('click', async () => {
        modal.style.display = 'none';
        projectForm.reset();
        tabBtns.forEach(b => b.classList.remove('active'));
        tabContents.forEach(c => c.classList.remove('active'));
        document.querySelector('.tab-btn[data-tab="settings"]').classList.add('active');
        document.getElementById('settings').classList.add('active');
        setupBtns.forEach(b => b.classList.remove('selected'));
        setupInput.value = '';
        progressCont