0, 20) + '...';
                    document.getElementById('walletBalance').textContent = 
                        (currentUser.balance || 0) + ' ZHTP';
                }
            }
        }

        // Toggle user menu
        function toggleUserMenu() {
            const dropdown = document.getElementById('userDropdown');
            dropdown.classList.toggle('active');
        }

        // Update wallet display
        function updateWalletDisplay() {
            if (currentWallet) {
              