Greek leaders clinched a long-stalled deal on reforms and austerity measures needed to secure a bailout and avoid a messy default, government sources said, hours before the country's financial backers were to meet in Brussels on Thursday.
Athens' partners in the European Union and the International Monetary Fund have been exasperated by a lack of agreement on the sacrifices they demanded in return for a 130 billion euro ($172 billion) bailout, with time running out for Greece before a major March 20 bond redemption.
Finance Minister Evangelos Venizelos set off for Brussels without a complete deal after all-night talks with leaders of the three Greek coalition parties and chief EU and IMF inspectors left one sensitive issue - pension cuts - unresolved.
But following further negotiation on Thursday, two government sources said an overall agreement had been reached.
"A few minutes ago, I got a call from the Prime Minister of Greece saying that an agreement had been reached and has been endorsed by the major parties," European Central Bank President Mario Draghi told a news conference in Frankfurt in the first official confirmation.
The euro and European stocks strengthened on news of the breakthrough, which raised prospects of averting a chaotic hard default by the euro zone's most indebted country within weeks, that could send tremors around the global economy.
The risk premium investors charge for holding Italian and Spanish bonds rather than safe-haven German Bunds fell back.
Euro zone officials say the full package must be agreed with Greece and approved by the EU, IMF and European Central Bank by February 15 so legal paperwork can be completed in time to avoid a chaotic default that may threaten the global economic recovery.
"The financial survival of the country in the coming years depends on the new program ... It is a time of responsibility for everyone," Venizelos said.
Greece's two major labor unions called a 48-hour strike for Friday and Saturday against the reforms that the party chiefs managed to agree on.
"The painful measures that create misery for the youth, the unemployed and pensioners do not leave us much room," secretary general of the ADEDY union, Ilias Iliopoulos, told Reuters.
"We won't accept them. There will be a social uprising."
Venizelos should now be able to present to fellow euro zone finance ministers a fully-fledged new bailout plan, including a commitment for 3.3 billion euros in budget cuts this year, when they meet at 1700 GMT.
Before then, all eyes will be on what the ECB is willing to do to help Greece at its monthly policy meeting.
Euro zone in graphics http://r.reuters.com/hyb65p
Interactive crisis timeline http://link.reuters.com/xuw36s
WRITTEN COMMITMENT SOUGHT
After the overnight talks, a senior government official said the party chiefs had agreed on how to make about 90 percent of the promised savings, leaving a relatively small hole in the calculations.
Asked how the differences over pension cuts had been resolved, another government official told Reuters: ""There will be cuts in other areas of public spending and we will see how we will minimize reductions in pensions."
International lenders are demanding that the party leaders commit themselves in writing to implement the program of pay and pension cuts, structural and administrative reforms.
The leaders have been loath to accept the lenders' tough conditions, which are certain to be unpopular with voters. They face parliamentary elections possibly as early as April.
"In these difficult hours we have to look after the ordinary people, the pensioners," conservative New Democracy leader Antonis Samaras said after the political leaders' meeting.
"I haven't got the right to not negotiate hard and I don't care what other people think about that. We have to make sure that people will suffer less."
Newspaper editorials criticized the harshness of the austerity measures demanded by Greece's lenders, but said there was no other option but to give in and agree.
"The memorandum seems, and in fact is, heavy and unbearable for the majority of the Greek people but unfortunately it is the only choice so that the country is not led over the cliff," financial daily Imerisia said.
Greece has been falling deeper into recession since it was rescued by a first bailout deal in May 2010, and latest unemployment data showed the country's jobless rate rose to a new record of 20.9 percent in November.
Industrial output fell 11.3 percent in December, in further proof of the deep economic malaise.
Prospects for a bailout deal had brightened when the finance ministers' chairman Jean-Claude Juncker called the Brussels meeting - which IMF managing director Christine Lagarde will attend - to examine the bailout plan.
On offer from the EU and IMF is a package involving the new rescue funds and a bond swap with private creditors to ease the nation's large debt burden.
Athens is also urging the ECB to forego profits on its Greek bond holdings in what could raise 12 billion euros or more. The bank's 23-member Governing Council met on Thursday but Draghi declined to say how the Greek bonds held by the ECB and national central banks would be handled.
For the bailout, Athens must accept conditions requiring big cuts in many Greeks' living standards. The smallest member of the coalition, the far-right LAOS party, was particularly uncomfortable with the measures.
Panos Beglitis, spokesman for PASOK which is in the coalition along with LAOS and the conservative New Democracy party, said the leaders had agreed to cut the minimum wage by 22 percent as part of efforts to make the economy more competitive. Plans to scrap holiday bonuses paid to private sector workers had been dropped.
Two sources said the government would promise spending cuts and tax rises worth 13 billion euros from 2012 to 2015, almost double the seven billion originally pledged.
Other elements of the deal have been gradually slotting into place, including the bond swap with private creditors to ease Greece's debt burden by reducing the value of government bonds held by banks and insurers.
Private bondholders are expected to take real losses of about 70 percent on their holdings as part of the swap, under which they receive new, longer-dated Greek bonds to try to reduce Greece's debt burden by about 100 billion euros.
Talks on the swap have dragged on for weeks, complicated by the position of hedge funds and demands that public creditors also chip in. Officials and bankers say the deal cannot be finalized until the rest of the rescue package is nailed down.
($1 = 0.7545 euros)