SNIP!
Yes religion still exists in the future, but as a hangover from a more ignorant age, an anachronism humanity has developed in spite of.
You mean "ignorant" according to YOU. STAR TREK never attacked "religion" itself, but rather two key components: dogma and cult of personality. In both cases, these traits are universal, as they were seen as controlling mechanisms. Starfleet and the Federation has always been depicted as looking at religious expressions as part of an alien species' cultural imperatives, and only when there has been an attempt to force these things unto the protagonists, had that religion been dismantled. And besides, what does religion has to do with treating addictions in the 24th century? All you have to do would be to use a mind sifter or equivalent to focus on removing the trait that is causing the addiction in the first place. SMH.