               showToast('Proposal submission failed: ' + error.message, 'error');
                });
            }
        }

        // Network switching
        function switchNetwork(network) {
            showToast(`Switched to ${network} network`, 'info');
            updateNetworkStatus();
        }

        // User menu functions
        function showWalletDetails() {
            if (!currentUser && !currentWallet) {
                showToast('No wallet connected', 'warning');
                retur