I am trying to achieving the exact same thing. I have created the ACF fields for the users.
I have tried your CSS code but it does not work for me. It stills showing social icons even if there is no URL.
Is there anything more I could do?