* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #3b5998;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: #2d4373;
    text-decoration: underline;
}

a:visited {
    color: #3b5998;
}

a:active {
    color: #1f2f4a;
}

/* Links in card bodies (slightly different) */
.card-body a {
    color: #3b5998;
    text-decoration: none;
    font-weight: 500;
}

.card-body a:hover {
    color: #2d4373;
    text-decoration: underline;
}

body {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    font-size: clamp(0.65rem, 0.9vw + 0.2rem, 0.95rem);
    background: #f5f6f8;
}

header {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    background: #3b5998;
    color: white;
    padding: clamp(5px, 1.5vw, 10px);
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

header h1 {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    font-weight: normal;
    margin-left: 0.6em;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header h1 a:hover,
header h1 a:visited,
header h1 a:active {
    text-decoration: none;
    color: inherit;
}

.header-nav {
    display: flex;
    flex-shrink: 0;
    align-items: baseline;
    gap: 0.6em;
    margin-left: 1.5em;
    margin-right: 3em;
}

.header-icon {
    fill: rgba(255, 255, 255, 0.75);
    transition: fill 0.2s ease, transform 0.15s ease;
    display: block;
    width: .9em;
    height: .9em;
}

.icon-link {
    display: inline-block;
    text-decoration: none;
    padding: 2px;
    line-height: 0;
}

.icon-link:hover .header-icon {
    fill: white;
    transform: scale(1.05);
}

.icon-link:active .header-icon {
    transform: scale(0.92);
}

.header-searchbar {
    flex: 1;
    min-width: 120px;
    max-width: 350px;
   
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3px;
    padding: 0.15em 0.6em;
    gap: 6px;
}

.search-input {
    border: none;
    padding: 0.15em 0;
    width: 100%;
    font-size: 0.6em;
    background: transparent;
    color: #333;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    fill: #999;
    flex-shrink: 0;
    width: 0.8em;
    height: 0.8em;
}

.search-highlight {
    background: #FFFF00;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

.search-counter {
    color: #999;
    font-size: 0.65em;
    margin-left: 4px;
    white-space: nowrap;
    font-weight: normal;
}

/* ============================================
   RETRO FOOTER — FACEBOOK 2009 (footer only)
   ============================================ */

footer {
  background: #f7f9fc;                /* classic light blue-grey */
  border-top: 2px solid #d8dfea;      /* subtle divider */
  padding: 14px 20px;
  margin-top: auto;                   /* pushes footer to bottom if body is flex */
  font-size: 12px;
  color: #666;
  font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif;
}

.footer-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 8px 16px;
}

/* --- Left side: copyright --- */
.footer-copy {
  color: #666;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.footer-copy .name {
  color: #3b5998;                    /* Facebook blue */
  font-weight: bold;
}
.footer-copy .middot {
  margin: 0 4px;
  color: #aaa;
}

/* --- Right side: links --- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
}
.footer-links a {
  color: #3b5998;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
  padding: 2px 0;
}
.footer-links a:hover {
  text-decoration: underline;
  color: #1d2b4f;                    /* darker blue on hover */
}
.footer-links .sep {
  color: #c0c8d4;
  font-size: 11px;
  user-select: none;
}

/* ============================================
   layout & cards
   ============================================ */

.container {
    display: flex;
    gap: 5px;
    padding: 10px;
    margin: 0 auto;
    width: 100%;
}

.sidebar {
    width: 25%;
    flex-grow: 1;
    max-width: 300px;
    min-width: 125px;
    
}

.main {
    width: 75%;
    flex-grow: 3;
    min-width: 0;
}

.main h2 {
    font-family: "Lobster", cursive;
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    font-weight: normal;
    color: black;
    margin-bottom: 10px;
}

/* ----- CARDS ----- */

/* ============================================
   RETRO FACEBOOK 2009 – Cards
   ============================================ */

.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    overflow: visible; /* ⭐ FIX: was "hidden", causing bookshelf clipping */
    background: #e9ebee;
}

/* ⭐ FIX: Ensure bookshelf card does not clip */
.card:has(.bookshelf-wrapper) {
    overflow: visible !important;
}

.card-header {
    background: #d8dfea;
    color: #3A5CA5;
    padding: 6px 10px;
    font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(0.65rem, 0.8vw + 0.15rem, 0.95rem);
    border-top: 4px solid #3b5998;
    border-left: 0px solid #3b5998;
    border-right: 0px solid #3b5998;
    border-bottom: 2px solid #d8dfea;
}

.card-body {
    display: flex;
    flex-direction: column;
    background: #e9ebee;
    padding: clamp(5px, 1.5vw, 20px);
    color: #1d1f23;
    border: 1px solid #d8dfea;
    border-top: 1px solid #d8dfea;
    overflow: visible; /* ⭐ FIX: prevent clipping of bookshelf shadows */
}

/* If a card ever lacks a .card-header, give it a top border anyway */
.card:not(:has(.card-header)) {
    border-top: 4px solid #3b5998;
}

/* ============================================
   BLOCKY SOCIALS BLUE – Card
   ============================================ */

.card2 {
    border: 1px solid #3b5998;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.card2-header {
    background: #3b5998;
    color: white;
    padding: 5px 10px;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: clamp(0.65rem, 0.8vw + 0.15rem, 0.95rem);
}

.card2-body {
    background: #e9ebee;
    padding: clamp(5px, 1.5vw, 20px);
    color: #1d1f23;
}

.card-body img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.card-body h3 {
    font-size: clamp(1rem, 2.5vw, 1rem);
    font-weight: strong;
    margin-bottom: 1.5rem;
}

.card-body p {
    margin-bottom: 6px;
}

.container-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
}

/* ============================================
   FRIEND GRID
   ============================================ */

.friends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}

.friend-tile {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1d1f23;
    background: none;
    border: 1px solid #d1d5da;
    border-radius: 0px;
    padding: 0px;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.friend-tile:hover {
    background: #dce0e6;
    border-color: #3b5998;
}

.friend-tile img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}

.friend-tile .friend-name {
    font-size: clamp(0.6rem, 0.8vw + 0.2rem, 0.85rem);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    color: #1d1f23;
    font-family: "Lato", Arial, sans-serif;
}

/* ============================================
   RETRO FILTER TABS
   ============================================ */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #f7f7f7;
    border-bottom: 1px solid #b3b3b3;
    padding: 2px 0 0 0;
}

.filter-btn {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent;
    padding: 4px 14px 3px 14px;
    font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    color: #3b5998;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0 !important;
}

.filter-btn:hover {
    background: #e0e0e0 !important;
}

.filter-btn.active {
    font-weight: bold;
    background: #fff !important;
    border-bottom-color: #3b5998;
    color: #3b5998;
}

.filter-btn:first-child {
    border-left: 1px solid #d8dfea;
    border-right: 1px solid #d8dfea;
    margin-left: 0;
}

.filter-btn.active:first-child {
    border-left: 1px solid #d8dfea;
    border-right: 1px solid #d8dfea;
}

/* ============================================
   GROUP / PAGE CARDS (Banner Style)
   ============================================ */

.groups-cards-grid,
.pages-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Card */
.group-card,
.page-card {
    background: white;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.group-card:hover,
.page-card:hover {
    background: #f0f2f5;
    border-color: #3b5998;
}

/* Small Banner Image */
.group-card-banner,
.page-card-banner {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #e9ebee;
    flex-shrink: 0;
}

.group-card-banner img,
.page-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body */
.group-card-body,
.page-card-body {
    padding: 12px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.group-card-title,
.page-card-title {
    font-weight: 700;
    font-size: 1em;
    color: #1d1f23;
    margin-bottom: 4px;
}

/* Meta info: "members 1 ● 🌐 Public ● category" */
.group-card-meta,
.page-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75em;
    color: #666;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.group-card-meta .meta-dot,
.page-card-meta .meta-dot {
    color: #b0b3b8;
    font-size: 0.5em;
}

.group-card-meta .meta-icon,
.page-card-meta .meta-icon {
    width: 12px;
    height: 12px;
    fill: #666;
    vertical-align: middle;
}

.group-card-meta .category-tag,
.page-card-meta .category-tag {
    background: #e9ebee;
    color: #666;
    font-size: 0.7em;
    padding: 1px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Visit Button */
.group-card-btn,
.page-card-btn {
    display: inline-block;
    background: #3b5998;
    color: white;
    font-weight: 700;
    font-size: 0.8em;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.group-card-btn:hover,
.page-card-btn:hover {
    background: #2d4373;
}

.group-card-btn:active,
.page-card-btn:active {
    background: #1f2f4a;
}

/* ============================================
   GALLERY THUMBNAIL GRID
   ============================================ */

.thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thumb-item {
    flex: 1 0 calc(33.333% - 6px);  /* Minimum 3 per row */
    max-width: 150px;               /* Max width */
    max-height: 150px;              /* Max height */
    min-width: 60px;                /* Minimum size so they don't get too tiny */
    aspect-ratio: 1 / 1;            /* Always square */
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumb-item:hover {
    transform: scale(1.02);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;              /* Crop to fill square */
    display: block;
}

/* ============================================
   LIGHTBOX / MODAL
   ============================================ */

.lightbox {
    display: none;                  /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.show {
    display: flex;                  /* Show when active */
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

.lightbox-close:hover {
    color: #ccc;
}

/* ============================================
   MINI-FEED STYLES
   ============================================ */

/* Mini-feed container */
.mini-feed {
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}

/* Individual feed item */
.mini-feed-item {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    gap: 10px;
    transition: background 0.15s ease;
    border-radius: 2px;
}

.mini-feed-item:hover {
    background: #f0f2f5;
}

/* Icon column */
.mini-feed-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-feed-icon svg {
    width: 18px;
    height: 18px;
    fill: #3b5998;
}

/* Text column */
.mini-feed-content {
    flex: 1;
    min-width: 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.mini-feed-content .feed-source {
    font-weight: 700;
    color: #3b5998;
}

.mini-feed-content .feed-title {
    color: #1d1f23;
    text-decoration: none;
}

.mini-feed-content .feed-title:hover {
    text-decoration: underline;
}

/* Time column */
.mini-feed-time {
    flex-shrink: 0;
    font-size: 0.7em;
    color: #999;
    white-space: nowrap;
    margin-left: 8px;
}

/* Thin divider */
.mini-feed-divider {
    border: none;
    border-top: 1px solid #e9ebee;
    margin: 0 4px;
    padding: 0;
    height: 0;
}

/* Empty state */
.mini-feed-empty {
    color: #999;
    font-size: 0.9em;
    text-align: center;
    padding: 20px 0;
}

/* Loading spinner (optional) */
.mini-feed-loading {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.9em;
}


/* ============================================
   LOADING SPINNER FOR NEWS FEED
   ============================================ */

.mini-feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #666;
    font-size: 0.9em;
    padding: 30px 0;
}

.mini-feed-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5da;
    border-top-color: #3b5998;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ============================================
   BOOKSHELF — RETRO WOODEN BOOKCASE
   LEFT-ALIGNED + 3D RIM + DEEP SHELVES
   ============================================ */

.bookshelf-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 4px;
    max-width: 100%;
    display: flex;
    margin-bottom: 20px;
}

.bookshelf {
    background: #5c3d2e;
    background: linear-gradient(180deg, #6b4c3b 0%, #4a3227 100%);
    padding: 20px 15px 10px 15px;
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: fit-content;
    min-width: 280px;
    border: 2px solid #2c1f16;
    border-bottom: none;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.3),
    
        /* top rim */
        inset 0 4px 0 #7a5a44,
    
        /* bottom rim */
        inset 0 -4px 0 #2c1f16,
    
        /* inner frame */
        inset 0 0 0 2px #3d2b1f,
    
        /* general interior darkness */
        inset 0 10px 20px rgba(0,0,0,0.2),
    
        /* left wooden wall */
        inset 5px 0 0 rgba(40,25,16,0.65),
    
        /* left wall falloff */
        inset 18px 0 20px -14px rgba(0,0,0,0.45);
}

/* Wood grain texture overlay */
.bookshelf::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px 4px 0 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(0,0,0,0.03) 40px,
            rgba(0,0,0,0.03) 41px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(255,255,255,0.02) 20px,
            rgba(255,255,255,0.02) 21px
        );
    pointer-events: none;
    z-index: 1;
}

/* Baseboard */
.bookshelf::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: -4px;
    right: -4px;
    height: 18px;
    background: linear-gradient(180deg, #3d2b1f, #1a110b);
    border-radius: 0 0 6px 6px;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.05);
    z-index: 0;
    border-top: 2px solid #5a3d2e;
}

/* ⭐ Each shelf row - FULL WIDTH DEPTH */
.bookshelf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 2px 4px;
    padding-left: 4px;   /* ⭐ Books start slightly inside */
    border-bottom: 3px solid #3d2b1f;
    position: relative;
    min-height: 100px;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2;
    min-width: 200px;
    
    /* ⭐ DEPTH SHADOW - Full width */
    background: radial-gradient(
        ellipse at bottom,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.15) 50%,
        transparent 80%
    );
    background-size: 100% 100%;
    border-radius: 0 0 4px 4px;
}

/* ⭐ Top shadow - FULL WIDTH */
.bookshelf-row::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -15px;
    right: -15px;
    height: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ⭐ Shelf lip - FULL WIDTH */
.bookshelf-row::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -14px;
    right: -14px;
    height: 8px;
    background: linear-gradient(180deg, #5a3d2e, #2c1f16);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 3;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* Last row doesn't need a bottom border */
.bookshelf-row:last-child {
    border-bottom: none;
}

/* Empty shelf placeholder */
.bookshelf-row:empty::before {
    content: '📚';
    color: rgba(255,255,255,0.12);
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Individual book */
.book {
    width: 60px;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    z-index: 3;
    margin: 2px 0;  /* ⭐ Small vertical spacing */
}

.book a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.book img {
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 9;
    object-fit: cover;
    border-radius: 0 2px 2px 0;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 4px 12px rgba(0,0,0,0.2);
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Book title (visible on hover) */
.book .book-title {
    display: none;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 0.6em;
    font-family: "Lato", Arial, sans-serif;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* Hover effects */
.book:hover {
    transform: translateY(-8px) rotate(-2deg);
    z-index: 5;
}

.book:hover img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4),
                0 4px 12px rgba(0,0,0,0.3);
}

.book:hover .book-title {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .book {
        width: 48px;
    }
    .bookshelf {
        padding: 12px 10px 6px 10px;
        gap: 8px;
        min-width: 200px;
    }
    .bookshelf-row {
        gap: 5px;
        min-height: 80px;
        padding: 2px 0 6px 0;
        padding-left: 3px;
        min-width: 150px;
    }
    .bookshelf-row::before {
        left: -10px;
        right: -10px;
    }
    .bookshelf-row::after {
        left: -14px;
        right: -14px;
    }
    .book:hover {
        transform: translateY(-4px) rotate(-1deg);
    }
}

@media (max-width: 400px) {
    .book {
        width: 40px;
    }
    .bookshelf {
        min-width: 160px;
    }
    .bookshelf-row {
        min-height: 70px;
        min-width: 120px;
        padding-left: 2px;
    }
    .bookshelf-row::before {
        left: -8px;
        right: -8px;
    }
    .bookshelf-row::after {
        left: -12px;
        right: -12px;
    }
    .book .book-title {
        font-size: 0.5em;
        bottom: -18px;
        padding: 1px 6px;
    }
}

/* ============================================
   KEEP EVEN SPACING IN THE PROFILE INFO SECTION
   ============================================ */

#profile-info strong {
    display: inline-block;
    width: 150px;
}

/* ============================================
   SCALE THE ENTIRE COMMENT BOX
   ============================================ */


#HCB_comment_box {
    font-size: clamp(0.65rem, 0.9vw + 0.2rem, 0.95rem) !important;
}

#HCB_comment_box div,
#HCB_comment_box label,
#HCB_comment_box input,
#HCB_comment_box textarea,
#HCB_comment_box .btn,
#HCB_comment_box span,
#HCB_comment_box p,
#HCB_comment_box .hcb-comment,
#HCB_comment_box .hcb-author,
#HCB_comment_box .hcb-text,
#HCB_comment_box .hcb-timestamp,
#HCB_comment_box .hcb-msg {
    font-size: 1em !important;
}


/* ============================================
   guestbook BUTTON
   ============================================ */

#HCB_comment_box input[type="submit"] {
    background: #3B5998 !important;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#4C6FA3), to(#2F4A7A)) !important;
    background: -webkit-linear-gradient(top, #4C6FA3, #2F4A7A) !important;
    background: -moz-linear-gradient(top, #4C6FA3, #2F4A7A) !important;
    background: -ms-linear-gradient(top, #4C6FA3, #2F4A7A) !important;
    background: -o-linear-gradient(top, #4C6FA3, #2F4A7A) !important;
    background: linear-gradient(to bottom, #4C6FA3, #2F4A7A) !important;

    border: 1px solid #2F4A7A !important;
    border-bottom-color: #1F3557 !important;
    border-radius: 4px !important;

    color: #FFFFFF !important;
    font-weight: bold !important;
    font-family: inherit !important;  /* Inherits the clamp font */
    padding: 6px 18px !important;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
                0 1px 2px rgba(0, 0, 0, 0.1) !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;

    /* Remove default browser styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Hover - Lighter blue */
#HCB_comment_box input[type="submit"]:hover {
    background: #4C6FA3 !important;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#5B82B5), to(#3B5998)) !important;
    background: -webkit-linear-gradient(top, #5B82B5, #3B5998) !important;
    background: -moz-linear-gradient(top, #5B82B5, #3B5998) !important;
    background: -ms-linear-gradient(top, #5B82B5, #3B5998) !important;
    background: -o-linear-gradient(top, #5B82B5, #3B5998) !important;
    background: linear-gradient(to bottom, #5B82B5, #3B5998) !important;
}

/* Active/Click - Darker, pressed effect */
#HCB_comment_box input[type="submit"]:active {
    background: #2F4A7A !important;
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#2A4370), to(#1F3557)) !important;
    background: -webkit-linear-gradient(top, #2A4370, #1F3557) !important;
    background: -moz-linear-gradient(top, #2A4370, #1F3557) !important;
    background: -ms-linear-gradient(top, #2A4370, #1F3557) !important;
    background: -o-linear-gradient(top, #2A4370, #1F3557) !important;
    background: linear-gradient(to bottom, #2A4370, #1F3557) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset !important;
}

/* Focus state - subtle outline */
#HCB_comment_box input[type="submit"]:focus {
    outline: 2px solid #8B9DC3 !important;
    outline-offset: 2px !important;
}