Modified logarithmic potential theory and applications