I tapped the Base screen coincidentally and unintentionally at the same moment that a popup appeared. Doing so cost me 500 valuable, non-refundable gems for items that I do not need.
Given the fact that these messages appear in the middle of the screen as you attempt to navigate the Base screen, an “Are you sure?” confirmation window should appear whenever you try to purchase using gems.