Refined Vafa-Witten invariants for projective surfaces