Estimates of Petersson's inner squares of cusp forms and arithmetic applications