Not even the country’s technological wonders or its vibrant civil society can make up for its unappealing politics and policies. The result has been a dangerously rapid diminution of much-needed Western support.