Question: is tarde masculine or feminine?
Answer: día is a masculine noun, and the adjective has to agree with it. Hence ¡Buenos días! noche and tarde are feminine nouns. Thus you get ¡Buenas mañanas! and ¡Buenas tardes!