Text this: Two-Stage Power Allocation for IRS-Assisted Downlink NOMA: Intra-Group Optimization and Inter-Group Allocation