N is a 9-digit duodecimal (base 12) palindrome such that:

The first two digits of N are not consecutive, and:

The sixth and seventh digits of N are not consecutive

What is the units digit of the sum of all possible values of N?

How about N being a 9-digit hexadecimal (base 16) palindrome instead?

*** N is of course positive and does not contain any leading zero.