Q-Can nails be cut or trimmed after Maghrib Salah?
In terms of Shariah, there is no prohibition or restriction of cutting ones nails during the night. It is permissible to cut ones nails during any hour of the day or night.
Note: In the past, it is possible that people were advised not to cut their nails during darkness or at night due to the lack of brightness or light, which could result in harming themselves in the process. However, this holds no legal bearing in Shariah.
And Allah Ta’ala Knows Best
https://islamqa.info/en/answers/11993/ruling-on-burying-nails-cutting-them-at-night-and-saying-bismillaah-over-them
https://darulifta-deoband.com/home/en/Clothing--Lifestyle/46681
https://jamiat.org.za/clipping-ones-nails-at-night/