nput'));
                const pin = inputs.map(input => input.value).join('').trim();
                
                try {
                    const response = await fetch('verify-pin', {
                        method: 'POST',
                        headers: {
                            'Content-Type': 'application/json',
                        },
                        body: JSON.stringify({ pin }),
                        credentials: 'same-origin', // Ensure cookies are sent
                     