Account database is shared between both servers.
Regarding referral system on classic:
* Besides GJ, referred player will also obtain Brocade Box in their Account Stash.
* Old account WITHOUT assigned referral can assign it manually at Account->Referral (classic server only) - use your friends ID!