Pošalji zapis e-mailom: A Bi-Level Optimization Model for Flexible Capacity Allocation with Coordinated Planning and Operation