Improved hard-thermal-loop effective action for hot QED and QCD☆