I wish people didn't overuse certain terms. Dopamine has a half life of 2 minutes in the body. It can't possibly keep you up at night.
It's just the caffeine, which in turn has a half-life of several hours. Also below a certain level it's eliminated approximately exponentially, so there's a long tail of residual caffeine.