You realize that by the time the Soviets invaded Afghanistan they were at their peak? They had yet to being the arms race and no sane person would invade the Khyber pass when their own country is bankrupt. When the reds marched in everyone wrote off Afghanistan as another satellite state to be.
Nope, USSR's economy was stagnated and in trouble even before the Afgan war.
From Wiki:
The initial
Soviet deployment of the
40th Army in Afghanistan began on December 24, 1979 under Soviet leader
Leonid Brezhnev.
http://en.wikipedia.org/wiki/Soviet_War_in_Afghanistan#cite_note-bbc-4 The final
troop withdrawal started on May 15, 1988, and ended on February 15, 1989 under the last Soviet leader
Mikhail Gorbachev.
The
Soviet Union's dissolution into independent nations began early in 1985. After years of
Soviet military buildup at the expense of domestic development,
economic growth was at a standstill. Failed attempts at reform, a stagnant economy, and success of
Directorate for Inter-Services Intelligence against the soviets in war in Afghanistan led to a general feeling of discontent, especially[
citation needed] in the
Baltic republics and Eastern Europe. Greater political and social freedoms, instituted by the last Soviet leader,
Mikhail Gorbachev, created a bad atmosphere of open criticism of the
Moscow regime. The dramatic drop of the
price of oil in 1985 and 1986, and consequent
lack of foreign exchange reserves in following years to purchase grain profoundly influenced actions of the Soviet leadership.
http://en.wikipedia.org/wiki/Histor...85–1991)#cite_note-AEI-Gaidar-Grain_and_Oil-0
Several
Soviet Socialist Republics began resisting central control, and increasing democratization led to a weakening of the central government.
The USSR's trade gap progressively emptied the coffers of the union, leading to eventual bankruptcy. The Soviet Union finally collapsed in 1991 when
Boris Yeltsin seized power in the aftermath of a
failed coup that had attempted to topple
reform-minded Gorbachev.
Following the ousting of Khrushchev, another period of collective rule ensued, until
Leonid Brezhnev became the leader.
Kosygin reform, aimed into partial
decentralization of the
Soviet economy and shifting the emphasis from
heavy industry and weapons to
light industry and
consumer goods, was stifled by the conservative Communist leadership.
The era of 1970s and the early 1980s became known as Brezhnev stagnation.
In 1979 the Soviet forces entered Afghanistan at the request of its communist government. The occupation drained economic resources and dragged on without achieving meaningful political results. Ultimately the
Soviet Army was withdrawn from Afghanistan in 1989 because of international opposition, persistent anti-Soviet guerilla warfare (enhanced by the U.S.), and a lack of support from Soviet citizens.
From 1985 onwards, the last Soviet leader
Mikhail Gorbachev introduced the policies of
glasnost (openness) and
perestroika (restructuring) in an attempt to modernize the country and make it more
democratic. However, this led to the rise of strong nationalist and separatist movements.
Prior to 1991, the Soviet economy was the second largest in the world,
http://en.wikipedia.org/wiki/Russia#cite_note-71 but during its last years it was afflicted by shortages of goods in grocery stores, huge budget deficits and explosive growth in money supply leading to inflation.http://en.wikipedia.org/wiki/Russia#cite_note-72
In August 1991,
an unsuccessful military coup, directed against Gorbachev and aimed at preserving the Soviet Union,
instead led to its collapse and the end of socialist rule. The USSR
was dissolved into 15
post-Soviet states in December 1991.