“Credit and debit cards will soon become superfluous, and I wouldn’t be surprised if ATMs are phased out in future too, similar to what happened to public phone.”

Just because you’re carrying around your phone instead of the card plastics, doesn’t mean they go away. Banks are still required to issue cards , will continue to reissue cards, when the current ones expire or in case of a lost/stolen situation. Nobody is giving people “virtual cards” that can be
added to wallets. You have to have the physical card, that’s for security.

ATMs are going to be around as long as countries issue print currency