a light-bulb moment
An instance in which an ingenious idea or insight comes to one all of a sudden. A light-bulb moment came to me as I was taking a bath the other day. A: "The idea was Marvin's, and it was truly inspired." B: "What can I say, it was a light-bulb moment."