Dann the man for Blues
Scott Dann's last-gasp strike at Blackpool earned Birmingham their first away win of the season with their 2-1 success also moving them out of the Barclays Premier League relegation zone.
Alexander Hleb pounced on a mistake by Stephen Crainey to put the Blues ahead in the first half before DJ Campbell's 68th-minute equaliser.
Alex McLeish's side then sealed victory thanks to Dann's close-range effort with a minute of normal time remaining.
Blackpool, playing at home for the first time since November 20, were slow to get out of the blocks and fortunate not to be a goal down within the opening two minutes as Matt Derbyshire, with the goal at his mercy, could only prod his effort wide.
The visitors were in the ascendancy and took the lead when Crainey inadvertently laid the ball straight to Hleb on the edge of the box, and he gleefully took advantage by beating Richard Kingson in the 24th minute.
Blackpool emerged from the interval looking determined to find an equaliser but the Blues then nearly made it 2-0 as Cameron Jerome dinked the ball over Kingson only to be denied by the post.
Sebastian Larsson also struck the upright with a free-kick soon after, but moments later, the Seasiders were level.
Gary Taylor-Fletcher provided a knock-down from Neal Eardley's cross and Campbell was there to volley past Ben Foster.
Buoyed by their equaliser, the hosts attacked the Birmingham goal and although Charlie Adam got the ball beyond Foster with an angled shot, it came back off the far post.
Birmingham appeared to have held on for a point, but right at the death, they snatched all three. Roger Johnson rose in the box to head down substitute Jean Beausejour's delivery and Dann fired the ball in, with Kingson's appeals for offside proving futile.