- Enforce exact 10-digit mobile number requirement and input length restriction for India
- Add country-wise phone length rules, placeholders, and helper hints in AuthModal
- Synchronize dial code and country selection bidirectionally during registration
- Validate phone numbers against selected country rules during registration, profile update, and checkout
- Sanitize phone input in real time to filter out non-numeric characters
- Add modal.confirm_close: true to prompt confirmation and abort in-flight payments when user clicks Cancel (X)
- Implement modal.ondismiss to track cancellation and reset checkout loading state
- Add isPaymentCancelled guard in Razorpay handler callback to prevent unintended payment verification after dismissal
- Handle loading state cleanup on payment.failed event