            });
                pinDigits[0].focus();
            };

            // Disable/Enable PIN inputs
            const setPinInputsDisabled = (disabled) => {
                pinDigits.forEach(digit => {
                    digit.disabled = disabled;
                    if (disabled) {
                        digit.classList.add('disabled');
                    } else {
                        digit.classList.remove('disabled');
                    }
                });
            };

            