A large protein complex that catalyzes the synthesis or hydrolysis of ATP by a rotational mechanism, coupled to the transport of sodium ions across a membrane. The complex comprises a membrane sector (F0 or V0) that carries out ion transport and a cytoplasmic compartment sector (F1 or V1) that catalyzes ATP synthesis or hydrolysis.