Players don't lose unspent mana as steps and phases end.
Players can keep unspent mana indefinitely while this is on the battlefield, but once it leaves the battlefield, they have until the end of the current step (or phase) to use the mana before it disappears.