Phone the embassy. Get the passport issue sorted out first. Everything else will follow.
You do want to minimise the time spent in IDC, there is no benefit to spending excess time behind bars. The process in IDC can be clinical, they have seen and heard it all before. So the gold standard here is to achieve what Philip said, arrive at an international airport, pay the fine, and leave.
It all starts with a passport, call the embassy today.