Text this: Pilot-Efficient Beam Training and Codebook Design for Near-Field XL-MIMO Systems