Problems I ran into
The main risk was treating the solenoid like a simple low-voltage load. Because it is inductive, switching it without protection can create voltage spikes that can damage control electronics.
The MOSFET gate needed predictable behavior. Without a pull-down path, the gate can float and cause unreliable or unsafe switching.
The project had tight physical constraints because the circuit had to fit around the safe's existing mechanical latch area.
A short or wiring mistake damaged part of the control path, which forced a more careful review of the MOSFET, diode orientation, and power wiring.