- Add validPrefixes and example fields to CountryCode interface in constants/countries.ts
- Refactor validatePhoneNumber in utils/validation.ts to generically enforce starting prefixes across all countries
- Clearly indicate starting prefix requirement (e.g. 'For Pakistan, the mobile number must start with 3.')
- Improve phone input error matching in AuthModal and ProfileDrawer for mobile validation errors
- Synchronize Billing Country and Phone dial code in BillingPhoneModal and ProfileDrawer
- Reset phone and clear errors upon country change so user can enter a valid number per country rules
- Display Billing Country in CartDrawer's Billing Profile prefill summary
- Prioritize country-based rules over dial code in validation to support shared dial codes accurately
- Integrate libphonenumber-js to validate country mobile numbering plans (e.g., France 06/07, India 6-9, UK 07)
- Add ISO-2 country codes to eliminate dropdown collisions between countries sharing dial codes (+1 for US and Canada)
- Automatically strip leading national trunk zero (0) when converting to standard international E.164 format
- Ensure new dependency is registered in package.json and package-lock.json for npm install
- Render country selection options dynamically from COUNTRY_CODES in AuthModal and ProfileDrawer
- Synchronize dial code, country, and currency generically using getCountryRuleByName and getCountryRuleByDialCode
- Eliminate hardcoded country options and country-specific checks in favor of registry-driven rules
- 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