Text this: Improved effective Łojasiewicz inequality and applications