What is the difference between the path to nibanna and the path to higher planes? From what i understand, moha - loba - dosa - ( greed, hatred, attachment, delusion...) are mind qualities and actions that strengthen samsara and are the path to lower rebirth.
The opposite is also true, selflessness, compassion, non-attachment, non-self are path to higher rebirth but also nibbanna.

In the highest planes of existences, attachment toward body reduce more and more.
Therefore, what is the difference between the path to nibbana and the path to higher realms since you need to practice the same values and mind qualities to reach them?
Practicing Samatha meditations you reach higher realms.
Practicing Vipassana meditation you reach Nibbana.
Samath practice attenuates attachment aversion and ignorance.
Vipassana practice fully eradicates the attachment aversion and ignorance.