Celtic clinched Champions League knockout football for the first time in 12 years after Loris Benito's late own goal secured a dramatic victory over Young Boys on a nerve-shredding night in Glasgow.
It looked like the hosts - who had Daizen Maeda sent off late on - would squander the opportunity as Arne Engels missed a penalty and Kyogo Furughashi had three first-half goals ruled out.
At the other end, Kasper Schmeichel played an important part, denying two Darian Males efforts from close range to keep the tie level.
Most of the second half fell flat but the hosts eventually made the breakthrough when Adam Idah's 86th-minute effort was initially saved by goalkeeper Marvin Keller, only for the ball to rebound off captain Benito and bounce into the empty net.
That sparked frenzied celebrations in the stands after an incredible first half of frustration. Kyogo had strayed offside for his first disallowed goal, while the second was ruled out after a foul by Callum McGregor in the build-up.
Maeda was the offender the third time, mistiming his run before crossing to Kyogo at the back post.
The hosts were presented with a perfect chance when Greg Taylor was pulled back in the box, but Engels stuttered in his penalty run-up and sent a tame effort to the left of Keller, who saved easily.
Home fans were made to sweat when Maeda's yellow card, given for a lash out on Mohamed Ali Camara, was upgraded to red following a VAR review, but Celtic survived the final five minutes to seal qualification for the play-off round with a game to spare.