Quantum corrected Cardy entropy for generic (1+1)-dimensional gravity