As a graft inquiry and turmoil roil Turkey, the government has increasingly curtailed personal freedoms.

ISTANBUL, TURKEY — In the labyrinthine alleyways of this ancient city's Grand Bazaar, currency dealer Sardar Kaya glanced around before making an impromptu confession: Even those like him, who daily turn volatility into profit, wonder if Turkey's biggest corruption scandal in recent memory has become too jarring a ride.

"Sure, a crisis like this is good for business, if you are clever enough," he said, lounging against a column in the sprawling market's informal gold-and-currency trading district, where chaotic scenes unfolded last week as the Turkish lira touched an all-time low. "But you can also fall on the wrong side of it."

Many in Turkey are feeling the same way as they try to sort through the implications of a vast and many-tentacled graft inquiry that has jeopardized Turkey's once-thriving economy and shaken the foundations of state control -- most particularly, the near-absolute power that Prime Minister Recep Tayyip Erdogan has enjoyed for more than a decade.

The burgeoning scandal, fueled by splits within Erdogan's Islamist-leaning Justice and Development Party, has ensnared members of the prime minister's inner circle, and analysts say Erdogan's increasingly authoritarian response to the inquiry has eroded Turkey's already fragile democracy.

The turmoil's chilling effect on personal freedoms has also stirred concern in Washington, particularly after the prime minister took a veiled swipe at the U.S. envoy to Turkey last month, in the scandal's early days -- a blunt warning against outside meddling. As a member of the North Atlantic Treaty Organization, Turkey is a key U.S. ally in the Middle East, and President Obama has attempted to cultivate relations with Erdogan, especially in regard to U.S. policy toward Syria.

"This is the biggest crisis of the Erdogan era, without any doubt," said Steven Cook, a senior fellow for Mideast studies at the U.S.-based Council on Foreign Relations. But the repercussions could take time to build, he said, with municipal elections in March the next looming test for Erdogan and his party.

The corruption inquiry became public nearly a month ago, when a series of early-morning police raids netted dozens of arrests and triggered a plethora of lurid news reports, including accounts of $4.5 million in cash discovered stuffed in shoe boxes at the home of the chief executive of a state-run bank. Those rounded up also included the sons of three Cabinet ministers (who quickly resigned) and a billionaire construction magnate with close ties to the prime minister.

Erdogan, previously lionized in the West as living proof that democracy and an Islamist outlook were not incompatible, promptly went on the offensive. His camp blamed a Turkish religious figure who lives in self-exile in the United States, alleging he orchestrated the investigation, and Erdogan began systematically purging the ranks of police and prosecutors involved in the inquiry. One prosecutor was pushed out after announcing that Erdogan's son Bilal was under investigation.

By early January, the Hurriyet newspaper said, nearly 2,000 in the police force, including 15 provincial police chiefs and the deputy head of the national police, had been removed or reassigned. Some police investigators with high-profile units reportedly were transferred to traffic duties. Erdogan's party -- known as the AKP in Turkish -- also launched a push to tighten government control over the appointments of judges and prosecutors.

The campaign against law enforcement officials and judicial figures was apparently spurred by the perception within the Erdogan camp that those targeted were under the sway of the Islamic cleric Fethullah Gulen, who lives in Pennsylvania. The ranks of Turkish public servants include substantial but uncounted numbers of "Gulenists," many of them products of a chain of preparatory schools run by his movement, called Hikmet, or Service.

Gulen and Erdogan, once politically close, had been drifting apart, but the breaking point seemed to come in November, when the government began laying legal groundwork for closing Hikmet's schools in Turkey, an important source of revenue and prestige for the movement. Within weeks, the scandal was in full bloom.

The investigation in some ways tracks with the dramatic transformation of Turkey's social and economic landscape over the last decade. Erdogan's ascension set the stage for the rise of a wealthy Turkish entrepreneurial class, particularly in the lucrative construction industry. Many of its members were overtly pious Muslims like him, but the AKP's backers also included personalities such as the flashy real-estate tycoon Ali Agaoglu, who was among those swept up in the Dec. 17 raids.

Agaoglu, known for his love of luxury cars, beautiful young women and appearing in his company's TV ads, was one of the prime movers behind what critics have called the rapacious development of historically or environmentally sensitive areas in Istanbul over the last decade.