In an election, there are two candidates, A and B, and voting takes place in two phases.
In the first phase, 60% of the total votes were cast, and candidate A received 1.16 times the votes received by candidate B.
In the second phase, the remaining votes were cast, and candidate A received 1.25 times the votes received by candidate B.
If candidate A received 816 more votes than candidate B across both phases, what was the total number of votes cast?