Universal properties of the near-horizon optical geometry