Uniform bounds for Fourier coefficients of theta-series with arithmetic applications