Pakistan’s powerful military is struggling to keep its grip on power as the country seethes with anger over the rising cost of living caused by sluggish economic growth, political victimisation, narrowing space for freedom of expression, and the militarisation of politics.