Maybe this will help you - last year my kid was accepted at UC Berkeley. She had some B’s on her high school transcript. She did not take the highest level of math (Pre-Calc senior year). Her reported AP exam scores were 3’s and 4’s, no 5’s. She’s a STEM major. She also got into UCD, UCSD and UCSB’s CCS program. Can you believe it?
Based on your imagined criteria she would never have made it.
As many have shared, UC admissions are holistic. Stop fixating on points, they don’t matter. Just be yourself, not who you think you need to be - do what makes you happy and work hard.
P.S. My kid did not accept an offer at any UC, and is having the most awesome college experience imaginable. It will all work out.