Add helper to calculate new card class names