... These both say the same thing. By January 5 at midnight = before January 6. I get confused by all the tonight/tomorrow talk, because I'm in another time zone, but AFAICT, you have to submit before January 6 starts, i.e. January 5 at 23:59:59 EST.
ETA: Now January does not look like word anymore to me.
Ohhh, I'm sorry to hear this! That is awful. But hey, as RWBG said, surely some programs won't start reviewing applications before next week? And anyway, this year can't have been a complete waste; you can still reapply next year, right?
Good luck anyway!