Problems I ran into
The solenoid could not be treated like a simple low-voltage logic device. It is an inductive load, so the switching circuit needed protection.
The MOSFET gate needed a defined default state. A floating gate could make the latch behavior unreliable or unsafe.
The wiring had to fit around the safe's existing latch hardware, which made routing, strain relief, and serviceability harder than a bench-only prototype.
A short or wiring mistake damaged part of the control path, forcing a more careful review of the MOSFET, diode orientation, and power wiring.
Wireless control inside a metal safe is not ideal. The enclosure can weaken Wi-Fi, so this version should be treated as a learning prototype, not a finished commercial lock design.