final trimmedOtp = otptxt.text.trim();
Input with Whitespace: When users copy-paste the OTP from an SMS or manually type it, it might include spaces before or after the digits (e.g., " 123456 ") due to user error. Firebase would reject the OTP as invalid, leading to the "Invalid OTP" message.