This looks great, but any code that attempts to guess the card type using the first few numbers always makes me nervous
The algorithm is public domain and all it does is tell you who issued the card which doesn't seem like an issue to me
Easily solved by simply adding treatments for more card types, and styling the entire card isn't that much more effort than just displaying an issuer logo.
Where this starts to get really interesting (from a slick + branded perspective) is when you start handling gift cards.