Quran 7:11-13
And We have certainly created you, [O Mankind], and given you [human] form. Then We said to the angels, "Prostrate to Adam"; so they prostrated, except for Iblees. He was not of those who prostrated.
[ Allah ] said, "What prevented you from prostrating when I commanded you?" [Satan] said, "I am better than him. You created me from fire and created him from clay."
[ Allah ] said, "Descend from Paradise, for it is not for you to be arrogant therein. So get out; indeed, you are of the debased.
There is a huge problem in those verses :
Allah ordered to angels to prostrate, but Iblees didn't, so Iblees is a an angel. But, the following verse states that Ibless was made from fire (so probably a Jinn). This is confirmed at 18:50 :
And [mention] when We said to the angels, "Prostrate to Adam," and they prostrated, except for Iblees. He was of the jinn and departed from the command of his Lord. Then will you take him and his descendants as allies other than Me while they are enemies to you? Wretched it is for the wrongdoers as an exchange.
But then, why did Allah mention Iblees amongst the Angels :
"WE SAID TO THE ANGELS... SO THEY PROSTRATED, EXCEPT FOR IBLEES" What the hell ? This makes no sense.
The only explanations are the following:
1) Qu'ran is contradicting itself
2) A Jinn is, or can be an Angel
The second explanation is impossible, because 16:49-50
And to Allah prostrates whatever is in the heavens and whatever is on the earth of creatures, and the angels [as well], and they are not arrogant. They fear their Lord above them, and they do what they are commanded.
Angels cannot disobey Allah, but Iblees is amongst the Angels and disobeid Allah, so he is not an angel, but then, what the hell is he doing amongst the angels ?
Please, explain this by only using the verses of the Quran. (!!!)