A 22-year-old primigravida at 32 weeks gestation presents with a severe headache, visual disturbances (flashing lights), and epigastric pain. Her blood pressure is 165/115 mmHg. Urinalysis shows 3+ proteinuria. What is the most important immediate step in her management?