The lounge will be open, but that won't help you much since you need an invite to access the lounge and TK check-in won't open till around midnight. In fact, you probably won't even be allowed into the check-in area until TK check-in opens.
I'd suggest getting a hotel room and using that as a base for 6-7 hours between flights if your budget and logistics permit.