You might be able to use the .visibleItemCount method to give you a total of visible items in a repeater, then as the repeater loops through itself, check if the current item is the last one. If it is, then show the different styling.
This thread may help: Repeater/Dataset Documentation (API, Item, TargetItem, Variables)