JUBA — US Secretary of State Hillary Clinton Friday urged South Sudan and Sudan to end an oil dispute that has brought the neighbors to the brink of war, during the highest-level visit of a US official to Juba since its independence a year ago. Clinton began her first visit to Africa's newest nation just hours after a UN Security Council deadline expired for the neighbors to solve a long list of disputes ranging from border security to oil payments. The two nations came to the brink of a full war in April after border fighting escalated, the worst violence since South Sudan became independent in July last year under a 2005 agreement that ended decades of civil war with Khartoum. The messy divorce failed to clarify where the border lay and how much landlocked South Sudan should pay to export its oil through the north. Oil is the lifeline of both economies. Clinton said the two nations should reach an oil deal as a first step to ending hostilities. Juba sent both economies into turmoil when it shut down its oil output in January to stop Khartoum seizing oil for what the latter called unpaid fees. “This is a delicate moment.. . Now we need to get those (oil) resources flowing again,” Clinton told reporters after meeting South Sudanese President Salva Kiir for more than one hour in his office, where she hugged him upon arrival. “A percentage of something is better than a percentage of nothing,” she said, referring to the importance of an oil deal. “Both countries will need to compromise to close the remaining gaps between them,” she said during her 3-hour visit to Juba, part of an 11-nation African tour. South Sudanese Foreign Minister Nhial Deng Nhial said Juba had made a “generous offer” to Sudan of a higher oil transit fee and a $3.2 billion package to compensate it for the loss of oil. “We hope the international community, with the US leadership, can persuade the Republic of Sudan to accept that,” Nhial said at a joint news conference with Clinton. The African Union has been trying to mediate between the neighbors but talks have made little progress. Both sides have made some concessions on oil but remain far from a deal. Sudan insists it wants a border security agreement first, before agreeing on oil. Khartoum accuses South Sudan of supporting rebels in two of its southern border states, claims some diplomats find credible despite Juba's denials. South Sudan itself accuses Khartoum of often bombing its side of the border. Khartoum denies this. Clinton vowed continued support for South Sudan, which Washington helped guide through years of talks with Khartoum that led to independence in July 2011. Before her Juba visit, Clinton called Sudanese Foreign Minister Ali Ahmed Karti Wednesday to signal continued US support for both nations to settle all disputes peacefully, the Sudanese state news agency SUNA said. Clinton later flew back to Uganda, where she had first arrived coming from Senegal, for talks with President Yoweri Museveni — a US security ally who nevertheless faces criticism for his authoritarian policies at home. Clinton will thank Museveni for helping in Somalia, where Ugandan troops form the backbone of an AfU peacekeeping force battling to restore order to the Horn of Africa nation after it was overrun by Al-Shabaab insurgents. — Reuters