I once nearly lost a client’s domain because the billing card had expired and nobody noticed the renewal emails. The site did not go offline immediately; most registrars give a grace period first, though email and some services can stop working sooner. After that comes redemption, where renewal costs more, and eventually pending delete before the name is released. Renew it as early as possible and enable auto-renew with a valid payment method. Also check the exact expiration date in your registrar account, because grace periods differ by TLD.
For a clear overview of the stages and drop timing, https://pendingdelete.net/ is useful. It explains what pending delete means and lets you see domains approaching release, which helped me understand why an old domain I wanted had not become available yet.