Here's the answer:
“és um génio!”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- tu és um génio!
Fun fact: the hundreds of thousands of people learning Portuguese with Memrise get this phrase correct 95.34% of the time!