What about Switzerland?
Czechia and Slovakia are seeing their affluence rise, they've escaped the middle income trap and are heading into the lower end of the affluent group. Czechia is about as landlocked as it gets and yet their economy has increasingly prospered over the past few decades (they'll probably catch up to Spain in GDP per capita in the coming decade; and they're already roughly 3x that of Russia).
Obviously helps a lot to have many excellent regional trading partners that are affluent.
Switzerland has always been able to/had to find a niche like banking or secrecy or regulatory arbitrage to prosper. But in theory they suffer from the same problem - limited trading partners and limited leverage.