.discord-sidebar {
    transition: none;
}

.discord-ts-tree span[style*="e67e22"] {
    display: block;
    font-size: 10px;
    padding-left: 5px;
    margin-top: 1px;
    color: #e67e22 !important;
    font-weight: normal;
}

/* TeamSpeak collapsed icon — shown when sidebar is narrow */
.discord-ts-collapsed-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-collapsed-width);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--emerald-fuel);
    cursor: default;
    box-sizing: border-box;
    flex-shrink: 0;
}

.discord-ts-collapsed-icon i {
    font-size: 14px;
}

.discord-ts-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--emerald-fuel);
    margin-top: 2px;
}

/* Show collapsed icon only when sidebar is collapsed */
.discord-sidebar.expanded .discord-ts-collapsed-icon {
    display: none;
}

/* Show full TS block only when sidebar is expanded */
.discord-ts-expanded {
    display: none;
}

.discord-sidebar.expanded .discord-ts-expanded {
    display: block;
    width: var(--sidebar-expanded-width);
    padding: 8px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

/* =============================================================
   Emerald Obsidian Theme — extra.css
   ============================================================= */

:root {
    --emerald-fuel: #2ecc71;
    --amber-gold: #e8a020;
    --obsidian-bg: #0d0d0d;
    --border-subtle: rgba(46, 204, 113, 0.15);
    --sidebar-collapsed-width: 35px;
    --sidebar-expanded-width: 220px;
    --topbar-height: 50px;
    --qr-height: 0px;
}

/* -------------------------------------------------------------
   Top bar
   ------------------------------------------------------------- */
.jb-topbar {
    background: var(--obsidian-bg);
    border-bottom: 2px solid var(--emerald-fuel);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}

#logo {
    font-family: 'Segoe UI', sans-serif !important;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    margin-left: auto;
}

#logo i {
    color: var(--emerald-fuel);
    margin-right: 12px;
}

#logo:hover {
    color: #ffffff !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    transition: none !important;
}

#avatarheader {
    cursor: pointer;
    border-radius: 50%;
}

#avatarheader:hover {
    opacity: 0.6;
}

/* -------------------------------------------------------------
   Navigation Menu
   ------------------------------------------------------------- */
#menu-deroulant,
#menu-deroulant ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#menu-deroulant {
    display: flex;
    align-items: center;
}

#menu-deroulant li {
    position: relative;
    display: inline-block;
    margin-left: 25px;
}

#menu-deroulant a {
    text-decoration: none;
    display: block;
}

#menu-deroulant li a {
    color: rgb(230, 230, 230);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 25px 14px;
    transition: background-color 200ms, color 200ms;
    display: flex;
    align-items: center;
    gap: 8px;
}

#menu-deroulant ul {
    position: absolute;
    left: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    text-align: left;
    z-index: 1000;
}

#menu-deroulant ul li {
    display: block;
    margin-left: 0;
}

#menu-deroulant li:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#menu-deroulant li:hover ul li a {
    background-color: #242424;
    padding: 13px;
    width: 100%;
    box-sizing: border-box;
}

#menu-deroulant li:hover ul li:hover a {
    background: rgb(18, 18, 18);
    color: #2ECC71;
}

#menu-deroulant li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--emerald-fuel);
    transition: width 0.3s ease, left 0.3s ease;
}

#menu-deroulant li:hover a::after {
    width: 100%;
    left: 0;
}

#menu-deroulant li:hover {
    background: rgb(18, 18, 18);
    border-bottom: 2px solid var(--emerald-fuel);
    transition: background 0.3s ease;
}

#menu-deroulant li:hover > a {
    color: #fff;
}

/* -------------------------------------------------------------
   Main layout
   ------------------------------------------------------------- */
.jb-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--topbar-height));
    align-items: flex-start;
}

/* -------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------- */
.discord-sidebar {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
    background: #111111;
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    overflow-x: clip;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    transition: width 0.2s ease, min-width 0.2s ease, max-width 0.2s ease;
    position: sticky;
    top: 0;
    max-height: calc(100vh - var(--topbar-height) - var(--qr-height));
    align-self: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.discord-sidebar::-webkit-scrollbar {
    display: none;
}

.discord-sidebar.expanded {
    width: var(--sidebar-expanded-width);
    min-width: var(--sidebar-expanded-width);
    max-width: var(--sidebar-expanded-width);
}

.discord-sidebar-inner {
    width: var(--sidebar-expanded-width);
    padding: 4px 0 20px;
    box-sizing: border-box;
}

.discord-rail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: rgba(232, 160, 32, 0.08);
    border: none;
    border-bottom: 2px solid rgba(232, 160, 32, 0.3);
    color: var(--amber-gold);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    box-sizing: border-box;
    padding: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.discord-rail-toggle:hover {
    background: rgba(232, 160, 32, 0.18);
    color: #fff;
}

.discord-rail-toggle-bottom {
    margin-top: auto;
    border-bottom: none;
    border-top: 2px solid rgba(232, 160, 32, 0.3);
}

.discord-ts-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-fuel);
    margin-bottom: 6px;
}

.discord-ts-tree {
    font-size: 12px;
    color: #888;
}

.discord-category {
    margin-top: 14px;
    width: var(--sidebar-expanded-width);
}

.discord-category-name {
    display: block;
    padding: 4px 16px 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-channel {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px 5px 6px;
    color: #777;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.3;
    transition: background 0.1s ease, color 0.1s ease;
    white-space: nowrap;
    overflow: hidden;
    justify-content: flex-start;
}

.discord-sidebar.expanded .discord-channel {
    margin: 1px 4px;
    width: calc(var(--sidebar-expanded-width) - 8px);
    border-radius: 4px;
}

.discord-channel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    text-decoration: none !important;
}

.discord-channel.active {
    background: rgba(46, 204, 113, 0.1);
    color: #fff;
}

.discord-channel.active .discord-channel-hash,
.discord-channel.active.unread .discord-channel-hash {
    color: var(--emerald-fuel);
}

.discord-channel-hash {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #444;
    line-height: 1;
    transition: color 0.1s ease;
}

.discord-channel:hover .discord-channel-hash {
    color: #888;
}

.discord-channel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.discord-channel.unread .discord-channel-name {
    color: #ddd;
    font-weight: 500;
}

.discord-channel.unread .discord-channel-hash {
    color: #7746e1;
}

.discord-unread-dot {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7746e1;
    align-self: center;
}

.discord-channel.active.unread .discord-unread-dot {
    background: var(--emerald-fuel);
}

/* Base size & spacing inside the sidebar row */
.discord-channel .discord-channel-icon.forum-card-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    font-size: 11px;
    flex-shrink: 0;
    margin-right: 7px;
    background: rgba(46, 204, 113, 0.05);
    border: 1px solid rgba(46, 204, 113, 0.10);
    /* Override the card transition to match channel speed */
    transition:
        background  0.10s ease,
        box-shadow  0.10s ease,
        border-color 0.10s ease,
        color        0.10s ease;
}

.discord-channel:hover .discord-channel-icon.forum-card-icon {
    background: rgba(46, 204, 113, 0.10);
    border-color: rgba(46, 204, 113, 0.30);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.18);
    color: var(--emerald-fuel);
}

/* Active (currently viewing this forum) */
.discord-channel.active .discord-channel-icon.forum-card-icon {
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.30);
    color: var(--emerald-fuel);
}

/* Unread — matches the purple unread dot colour */
.discord-channel.unread .discord-channel-icon.forum-card-icon {
    color: #9b72f5;
    border-color: rgba(119, 70, 225, 0.28);
    background: rgba(119, 70, 225, 0.07);
}

/* Unread + Active — emerald wins */
.discord-channel.active.unread .discord-channel-icon.forum-card-icon {
    color: var(--emerald-fuel);
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.16);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.30);
}

/* -------------------------------------------------------------
   Mobile nav (hidden on desktop)
   ------------------------------------------------------------- */
.discord-mobile-nav {
    display: none;
}

/* -------------------------------------------------------------
   Content area
   ------------------------------------------------------------- */
.discord-content {
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
}

#content {
    overflow: visible;
}

/* -------------------------------------------------------------
   Quick reply
   ------------------------------------------------------------- */
#quick_reply_form {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1200px);
    z-index: 9999;
    background-color: #1e1e1e;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #333;
    border-bottom: none;
    border-top: 3px solid var(--emerald-fuel);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

#quick_reply_form .thead {
    background: #111;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    user-select: none;
}

#quick_reply_form .thead::after {
    content: '▲ click to collapse';
    font-size: 10px;
    color: var(--emerald-fuel);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

#quickreply_e {
    display: none;
    padding: 15px;
}

#quickreply_e table {
    width: 100%;
    box-sizing: border-box;
}

/* -------------------------------------------------------------
   Scroll buttons
   ------------------------------------------------------------- */
.scrollToTop, .scrollToPrev, .scrollToNext, .scrollToDown {
    background: #2ECC71;
    color: white;
    position: fixed;
    z-index: 10000;
    right: 12px;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    display: block;
    font-size: 16px;
    min-width: 36px;
    text-align: center;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.scrollToTop:hover, .scrollToPrev:hover,
.scrollToNext:hover, .scrollToDown:hover {
    opacity: 0.9;
}

.scrollToTop  { top: calc(50% - 90px); }
.scrollToPrev { top: calc(50% - 42px); }
.scrollToNext { top: calc(50% + 6px);  }
.scrollToDown { top: calc(50% + 54px); }

/* -------------------------------------------------------------
   SCEditor toolbar
   ------------------------------------------------------------- */
div.sceditor-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 4px 6px !important;
}

div.sceditor-group {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: space-evenly !important;
    margin: 1px 2px !important;
}

/* -------------------------------------------------------------
   Forum display — thread list
   ------------------------------------------------------------- */
.fd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fd-toolbar-bottom {
    margin-top: 14px;
    margin-bottom: 0;
}

.fd-toolbar-left,
.fd-toolbar-right {
    display: flex;
    align-items: center;
}

.fd-thread-list {
    width: 100%;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    background: #181818;
}

.fd-thread-list-header {
    display: flex;
    align-items: center;
    padding: 7px 12px 7px 16px;
    background: #1f1f1f;
    border-bottom: 1px solid #252525;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
}

.fd-thread-list-header .fd-col-thread {
    padding-left: 16px;
}

.fd-thread-row {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid #1e1e1e;
    cursor: pointer;
    transition: background 0.1s ease;
    position: relative;
}

.fd-thread-row:last-child {
    border-bottom: none;
}

.fd-thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fd-thread-indicator {
    width: 3px;
    min-width: 3px;
    align-self: stretch;
    margin-right: 13px;
    border-radius: 0 2px 2px 0;
    background: transparent;
    transition: background 0.1s ease;
}

.fd-thread-row.subject_new .fd-thread-indicator {
    background: #2ecc71;
}

.fd-thread-row.subject_new .fd-thread-title {
    color: #ffffff !important;
    font-weight: 600;
}

.fd-thread-row.subject_new {
    background: rgba(46, 204, 113, 0.03);
}

.fd-thread-row.subject_new .fd-stat-value {
    color: #888;
}

.fd-thread-row.forumdisplay_sticky .fd-thread-indicator {
    background: #b8860b;
}

.fd-thread-row.forumdisplay_sticky .fd-thread-title {
    color: #d4a017 !important;
}

.fd-thread-row.forumdisplay_announcement .fd-thread-indicator {
    background: var(--emerald-fuel);
}

.fd-col-thread {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fd-col-stat {
    width: 70px;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.fd-col-last {
    width: 160px;
    min-width: 160px;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fd-thread-title {
    font-size: 13px;
    color: #ccc;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.1s ease;
}

.fd-thread-row:hover .fd-thread-title {
    color: #fff !important;
    text-decoration: none !important;
}

.fd-thread-meta {
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fd-thread-meta a { color: #555 !important; }
.fd-thread-meta a:hover { color: #2ecc71 !important; }

.fd-stat-value {
    font-size: 12px;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.fd-last-date,
.fd-last-by {
    display: block;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.fd-last-by a { color: #666 !important; }
.fd-last-by a:hover { color: #2ecc71 !important; }

/* -------------------------------------------------------------
   Postbit
   ------------------------------------------------------------- */
#posts {
    display: flex;
    flex-direction: column-reverse;
}

.dc-post {
    background: #1e1e1e;
    border: none;
    border-bottom: 2px solid #111;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.dc-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #252525;
    padding-bottom: 10px;
}

.dc-avatar-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.dc-avatar-wrap img,
.dc-avatar-wrap a img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dc-post-meta {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.dc-post-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.dc-post-username a {
    color: #fff !important;
    text-decoration: none !important;
}

.dc-post-username a:hover {
    color: #2ecc71 !important;
}

.dc-post-usertitle {
    font-size: 11px;
    color: #666;
}

.dc-post-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.dc-post-date {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.dc-post-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.dc-post:hover .dc-post-buttons {
    opacity: 1;
}

.dc-post-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dc-post-sidebar {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
    font-size: 11px;
    color: #555;
    line-height: 2;
    border-right: 1px solid #252525;
    padding-right: 12px;
    align-self: stretch;
}

.dc-post-sidebar span {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.dc-post-content {
    flex: 1;
    min-width: 0;
    color: #a3a3a3;
    font-size: 13px;
    line-height: 1.6;
}

.dc-post-content .post_body {
    margin-bottom: 10px;
}

.dc-post-content .post_meta {
    font-size: 11px;
    color: #555;
    margin-top: 6px;
}

.dc-post-reactions {
    margin-top: 8px;
}

/* Signatures — max height with fade */
.post_content .signature,
.dc-post-content .signature {
    max-height: 125px;
    overflow: hidden;
    position: relative;
}

.post_content .signature::after,
.dc-post-content .signature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, #1e1e1e);
}

/* -------------------------------------------------------------
   Responsive — 1280px
   ------------------------------------------------------------- */
@media (max-width: 1280px) {
    .scrollToTop, .scrollToPrev, .scrollToNext, .scrollToDown {
        right: 6px;
    }
}

/* -------------------------------------------------------------
   Responsive — 768px (mobile)
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        overflow-x: clip;
        max-width: 100vw;
    }

    .jb-topbar {
        padding: 0 12px;
    }

    #menu-deroulant {
        display: none;
    }

    .jb-layout {
        max-width: 100vw;
        overflow-x: clip;
    }

    .discord-content {
        min-width: 0;
        max-width: calc(100vw - var(--sidebar-collapsed-width));
        overflow-x: clip;
    }

    .discord-mobile-nav {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--border-subtle);
        padding: 8px 0;
        margin-bottom: 4px;
        width: var(--sidebar-expanded-width);
    }

    .discord-mobile-nav a {
        padding: 6px 12px;
        font-size: 12px;
        color: #888;
        text-decoration: none !important;
        transition: color 0.1s;
    }

    .discord-mobile-nav a:hover {
        color: var(--emerald-fuel);
        text-decoration: none !important;
    }

    #quick_reply_form {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
    }

    .fd-col-stat,
    .fd-thread-list-header .fd-col-stat {
        display: none;
    }

    .fd-col-last {
        width: 110px;
        min-width: 110px;
    }

    .dc-post-sidebar {
        display: none;
    }

    .dc-post-buttons {
        opacity: 1;
    }

    .dc-post-body {
        gap: 0;
    }

    .dc-post-content .signature {
        display: none;
    }

    .scrollToTop, .scrollToPrev, .scrollToNext, .scrollToDown {
        width: 28px;
        min-width: 28px;
        height: 28px;
        padding: 0;
        font-size: 13px;
        opacity: 0.15;
        right: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scrollToTop:active, .scrollToPrev:active,
    .scrollToNext:active, .scrollToDown:active {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* =============================================================
   JOOSEBOX — FORUM CARD OVERHAUL
   Append this entire block to the bottom of extra.css
   ============================================================= */

/* -------------------------------------------------------------
   Forum Index — Category Wrapper
   ------------------------------------------------------------- */
.forum-category {
    margin-bottom: 24px;
}

.forum-category-header {
    background: linear-gradient(90deg, #111 0%, #0d0d0d 100%);
    border-left: 3px solid var(--emerald-fuel);
    border-radius: 0 4px 4px 0;
    padding: 13px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 0 24px rgba(46, 204, 113, 0.05);
    user-select: none;
}

.forum-category-header .expander-wrap {
    color: var(--emerald-fuel);
    font-size: 12px;
    opacity: 0.7;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.forum-category-header .forum-cat-title a {
    color: var(--emerald-fuel) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow:
        0 0 8px  rgba(46, 204, 113, 0.55),
        0 0 20px rgba(46, 204, 113, 0.20);
}

.forum-category-header .forum-cat-title a:hover {
    text-shadow:
        0 0 12px rgba(46, 204, 113, 0.80),
        0 0 30px rgba(46, 204, 113, 0.35);
}

.forum-category-header .forum-cat-desc {
    font-size: 11px;
    color: #c8c8c8;           /* ↑ contrast — was ~#666 */
    margin-top: 2px;
    font-style: italic;
}

/* Card grid layout */
.forum-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

/* -------------------------------------------------------------
   Individual Forum Card
   ------------------------------------------------------------- */
.forum-card {
    background: #131313;
    border: 1px solid rgba(46, 204, 113, 0.10);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.20s ease,
        box-shadow   0.20s ease,
        transform    0.15s ease,
        background   0.20s ease;
    text-align: left;
}

/* Neon top-edge accent that appears on hover */
.forum-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-fuel) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.20s ease;
}

/* Subtle scan-line texture — cyberpunk flavour */
.forum-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.20s ease;
}

.forum-card:hover {
    background: #151515;
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.10),
        0 0 18px rgba(46, 204, 113, 0.14),
        0 6px 20px rgba(0,0,0,0.45);
    transform: translateY(-2px);
}

.forum-card:hover::before { opacity: 1; }
.forum-card:hover::after  { opacity: 1; }

/* Read-indicator dot (top-right) */
.forum-card .forum-read-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 7px;
    color: var(--emerald-fuel);
    opacity: 0.4;
}

/* ---- Card top row: icon + name ---- */
.forum-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.forum-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: rgba(46, 204, 113, 0.07);
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--emerald-fuel);
    transition:
        background  0.20s ease,
        box-shadow  0.20s ease,
        border-color 0.20s ease;
    flex-shrink: 0;
}

.forum-card:hover .forum-card-icon {
    background: rgba(46, 204, 113, 0.14);
    border-color: rgba(46, 204, 113, 0.40);
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.28);
}

/* -------------------------------------------------------
   PER-FORUM ICON OVERRIDES
   Find each forum's fid from Admin CP → Forums & Posts.
   Add an override for each forum below.

   Available FA5-Free icons (use the Unicode code point):
     General Chat  \f086  (comments)
     Announcements \f0a1  (bullhorn)
     Tech Talk     \f0ad  (wrench)
     Racing        \f11e  (flag-checkered)
     Table Top     \f6cf  (dice-d20)
     Gaming        \f11b  (gamepad)
     Music         \f001  (music)
     Movies/TV     \f008  (film)
     Sports        \f1e3  (futbol)
     Art/Creative  \f53f  (palette)
     Introductions \f2b5  (address-card)

   ------------------------------------------------------- */

.forum-card-icon[class*="fid-"] i.fa::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}
.forum-card-icon.fid-2  i.fa::before { content: '\f086'; } /* Chad */
.forum-card-icon.fid-3  i.fa::before { content: '\f0ad'; } /* Tech Talk */
.forum-card-icon.fid-4  i.fa::before { content: '\f06c'; } /* Nature */
.forum-card-icon.fid-5  i.fa::before { content: '\f1ea'; } /* News */
.forum-card-icon.fid-6  i.fa::before { content: '\f2e7'; } /* Food */
.forum-card-icon.fid-7  i.fa::before { content: '\f144'; } /* Videos */
.forum-card-icon.fid-8  i.fa::before { content: '\f025'; } /* Music */
.forum-card-icon.fid-9  i.fa::before { content: '\f11e'; } /* Racing */
.forum-card-icon.fid-10 i.fa::before { content: '\f201'; } /* Stonkz */
.forum-card-icon.fid-11 i.fa::before { content: '\f53f'; } /* Art */
.forum-card-icon.fid-12 i.fa::before { content: '\f1e3'; } /* Sports */
.forum-card-icon.fid-14 i.fa::before { content: '\f11b'; } /* Game Rec */
.forum-card-icon.fid-15 i.fa::before { content: '\f05b'; } /* FPS */
.forum-card-icon.fid-16 i.fa::before { content: '\f6d3'; } /* MMO */
.forum-card-icon.fid-17 i.fa::before { content: '\f54c'; } /* Warhammer */
.forum-card-icon.fid-18 i.fa::before { content: '\f1b2'; } /* Minecraft */
.forum-card-icon.fid-19 i.fa::before { content: '\f522'; } /* Random */
.forum-card-icon.fid-22 i.fa::before { content: '\f504'; } /* MMA */

.forum-card-title-wrap { flex: 1; min-width: 0; }

.forum-card-name a {
    color: #e6e6e6 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.forum-card:hover .forum-card-name a {
    color: var(--emerald-fuel) !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.40);
}

.forum-viewers-text {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* ---- Description ---- */
.forum-card-desc {
    font-size: 12px;
    color: #bcbcbc !important;   /* ↑ contrast — was #555 / "smalltext" default */
    line-height: 1.5;
    margin: 0;
}

/* ---- Sub-forum links inside card ---- */
.forum-card-subforums {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.forum-card-subforums a {
    font-size: 10px;
    color: #888 !important;
    background: rgba(255,255,255,0.04);
    border: 1px solid #222;
    border-radius: 3px;
    padding: 1px 6px;
    text-decoration: none !important;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.forum-card-subforums a:hover {
    color: var(--emerald-fuel) !important;
    border-color: rgba(46, 204, 113, 0.25);
}

/* ---- Stats + last post footer ---- */
.forum-card-footer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid #1c1c1c;
}

.forum-card-stats {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.forum-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    line-height: 1;
}

.forum-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #ddd;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.forum-stat-label {
    font-size: 9px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

.forum-card-last {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: #c0c0c0 !important;    /* ↑ contrast — was #555 */
    text-align: right;
    line-height: 1.5;
}

.forum-card-last a {
    color: #c0c0c0 !important;    /* ↑ contrast */
    text-decoration: none !important;
    transition: color 0.12s ease, text-shadow 0.12s ease;
}

.forum-card-last a:hover {
    color: var(--emerald-fuel) !important;
    text-shadow: 0 0 6px rgba(46, 204, 113, 0.30);
}

.forum-card-last strong a {
    color: #e0e0e0 !important;    /* ↑ contrast for post subject */
    font-weight: 600;
}

/* Sub-category card (depth-2 cat) */
.forum-card.forum-card-subcat {
    background: #101010;
    border-style: dashed;
    border-color: rgba(46, 204, 113, 0.12);
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
}

.forum-card.forum-card-subcat::before { display: none; }

/* -------------------------------------------------------------
   Glow & Depth — Cyberpunk Accents
   ------------------------------------------------------------- */

/* Thread list headers & active nav links */
.thead a,
.jb-topbar a,
.forum-category-header a {
    transition: text-shadow 0.20s ease;
}

/* Emerald glow on primary action buttons */
.button:not(.button-secondary) {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
    transition: box-shadow 0.20s ease, background 0.20s ease;
}

.button:not(.button-secondary):hover {
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.35);
}

/* Neon border on focussed inputs */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.40) !important;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.12);
}

/* Thead section header glow */
.tborder .thead,
.forum-category-header {
    position: relative;
}

/* Sub-forum icon in threaded view */
.subforumicon i {
    text-shadow: 0 0 6px rgba(46, 204, 113, 0.4);
}

/* -------------------------------------------------------------
   Typography Contrast Fixes (global overrides)
   These lift all the #555 grays in the thread list
   ------------------------------------------------------------- */
.fd-last-date,
.fd-last-by {
    color: #b8b8b8 !important;   /* was #555 */
}

.fd-last-by a  { color: #b8b8b8 !important; }
.fd-last-by a:hover { color: var(--emerald-fuel) !important; }

.fd-stat-value { color: #b8b8b8 !important; }

.fd-thread-meta         { color: #999 !important; }
.fd-thread-meta a       { color: #999 !important; }
.fd-thread-meta a:hover { color: var(--emerald-fuel) !important; }

.dc-post-date     { color: #888 !important; }   /* post timestamps */
.dc-post-usertitle{ color: #888 !important; }   /* user titles */

/* smalltext global lift */
.smalltext { color: #b4b4b4 !important; }

/* -------------------------------------------------------------
   Responsive — Forum Cards
   ------------------------------------------------------------- */
@media (max-width: 960px) {
    .forum-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .forum-card-grid {
        grid-template-columns: 1fr;
    }

    .forum-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .forum-card-last {
        text-align: left;
    }

    .forum-stat-value {
        font-size: 13px;
    }
}

/* =============================================================
   Joosebox Feed — extra.css additions (v1.1)
   Replace your previous jbfeed block with this entire section
   ============================================================= */

/* ── Wrapper ───────────────────────────────────────────────── */
.jbfeed-wrapper {
    width: 100%;
}

/* ── Section header ────────────────────────────────────────── */
.jbfeed-header {
    background: linear-gradient(90deg, #111 0%, #0d0d0d 100%);
    border-left: 3px solid var(--emerald-fuel);
    border-radius: 0 4px 4px 0;
    padding: 13px 18px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--emerald-fuel);
    text-shadow:
        0 0 8px  rgba(46, 204, 113, 0.55),
        0 0 20px rgba(46, 204, 113, 0.18);
    box-shadow: 0 0 24px rgba(46, 204, 113, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.jbfeed-card {
    background: #0f0f0f;
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-left: 3px solid rgba(46, 204, 113, 0.22);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
    transition:
        border-color 0.20s ease,
        box-shadow   0.20s ease,
        opacity      0.30s ease,
        transform    0.30s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Permanent thin emerald top accent — brightens further on hover */
.jbfeed-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-fuel), transparent 70%);
    opacity: 0.25;
    transition: opacity 0.20s ease;
}

.jbfeed-card:hover {
    border-color: rgba(46, 204, 113, 0.42);
    border-left-color: rgba(46, 204, 113, 0.70);
    box-shadow:
        0 0 22px rgba(46, 204, 113, 0.10),
        0 4px 20px rgba(0, 0, 0, 0.50);
}

.jbfeed-card:hover::before { opacity: 0.75; }

/* ── Card header ────────────────────────────────────────────── */
.jbfeed-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #1e1e1e;
    background: rgba(255, 255, 255, 0.01);
}

/* Icon + forum name stacked in a fixed-width left column */
.jbfeed-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

/* Icon inherits all styling from forum-card-icon in extra.css */
.jbfeed-card-header .forum-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 15px;
    flex-shrink: 0;
    text-decoration: none !important;
}

.jbfeed-forum-name {
    font-size: 10px;
    color: #777;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    display: block;
}

.jbfeed-forum-name a {
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.12s ease;
}

.jbfeed-forum-name a:hover { color: var(--emerald-fuel) !important; }

.jbfeed-thread-info {
    flex: 1;
    min-width: 0;
}

.jbfeed-thread-title {
    font-size: 15px;
    font-weight: 700;
    color: #e8e8e8 !important;
    text-decoration: none !important;
    line-height: 1.3;
    display: block;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.jbfeed-thread-title:hover {
    color: var(--emerald-fuel) !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.40);
}

.jbfeed-thread-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.jbfeed-stat  { color: #bbb; }
.jbfeed-stat strong { color: #e0e0e0; font-weight: 600; }
.jbfeed-sep   { color: #333; }

.jbfeed-lastpost {
    width: 100%;
    text-align: right;
    color: #bbb;
    font-size: 11px;
}

.jbfeed-lastpost a {
    color: #d0d0d0 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.12s ease;
}

.jbfeed-lastpost a:hover { color: var(--emerald-fuel) !important; }

/* ── Post body ──────────────────────────────────────────────── */
.jbfeed-body {
    padding: 14px 18px;
    font-size: 13px;
    color: #c0c0c0;
    line-height: 1.65;
    border-bottom: 1px solid #1e1e1e;
}

.jbfeed-body img,
.jbfeed-body video { max-width: 100%; height: auto; border-radius: 4px; }

.jbfeed-body iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: block;
    margin: 8px 0;
    border-radius: 4px;
}

.jbfeed-body blockquote,
.jbfeed-body .mycode_quote {
    border-left: 3px solid rgba(46, 204, 113, 0.30);
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 0 4px 4px 0;
    color: #999;
    font-size: 12px;
}

.jbfeed-readmore {
    color: var(--emerald-fuel) !important;
    font-size: 11px;
    text-decoration: none !important;
    margin-left: 4px;
}

/* ── Action buttons ─────────────────────────────────────────── */
.jbfeed-actions {
    display: flex;
    gap: 8px;
    padding: 10px 18px 12px;
}

.jbfeed-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #aaa !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.jbfeed-btn:hover {
    border-color: rgba(46, 204, 113, 0.30);
    color: #e0e0e0 !important;
    background: #1e1e1e;
}

.jbfeed-btn-primary {
    border-color: rgba(46, 204, 113, 0.25);
    color: var(--emerald-fuel) !important;
    background: rgba(46, 204, 113, 0.05);
}

.jbfeed-btn-primary:hover {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.50);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.18);
    color: var(--emerald-fuel) !important;
}

/* ── Spinner ────────────────────────────────────────────────── */
.jbfeed-spinner {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 13px;
}

.jbfeed-spinner i {
    color: var(--emerald-fuel);
    margin-right: 6px;
    opacity: 0.8;
}

/* ── Load More button (button mode) ────────────────────────── */
#jbfeed-loadmore-wrap {
    text-align: center;
    padding: 12px 0 4px;
}

.jbfeed-loadmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 28px;
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.22);
    border-radius: 6px;
    color: var(--emerald-fuel);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        background  0.20s ease,
        box-shadow  0.20s ease,
        border-color 0.20s ease;
}

.jbfeed-loadmore-btn:hover {
    background: rgba(46, 204, 113, 0.13);
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.20);
}

.jbfeed-loadmore-btn:active {
    transform: scale(0.97);
}

/* ── "All caught up" end state ──────────────────────────────── */
.jbfeed-end {
    text-align: center;
    padding: 24px;
    color: #444;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.jbfeed-end i {
    margin-right: 6px;
    color: rgba(46, 204, 113, 0.35);
}

/* ── Empty state ─────────────────────────────────────────────── */
.jbfeed-empty {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 14px;
}

.jbfeed-empty i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .jbfeed-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .jbfeed-thread-meta {
        justify-content: flex-start;
        flex-direction: row;
        width: 100%;
    }

    .jbfeed-lastpost { text-align: left; }
}

/* ── Subscription prompts ────────────────────────────────────── */
.jbfeed-prompt {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}

.jbfeed-prompt i {
    display: block;
    font-size: 32px;
    margin-bottom: 16px;
    color: rgba(46, 204, 113, 0.40);
}

.jbfeed-prompt p {
    margin: 0 0 6px;
    color: #bbb;
}

.jbfeed-prompt a {
    color: var(--emerald-fuel) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: text-shadow 0.15s ease;
}

.jbfeed-prompt a:hover {
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.40);
}

.jbfeed-prompt-sub {
    font-size: 12px !important;
    color: #666 !important;
}
		
/* -------------------------------------------------------------
   OP pinned at top with gold border
   ------------------------------------------------------------- */
#posts > a:first-of-type {
    order: 9999;
}

#posts > a:first-of-type + div.post {
    order: 9999;
    border: 1.5px solid #EF9F27;
    border-radius: 4px;
}

#posts > a:first-of-type + div.post .dc-post-username::after {
    content: 'OP';
    font-size: 10px;
    font-weight: 500;
    background: #EF9F27;
    color: #412402;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Divider — targets the reply that visually appears just below the OP */
#posts > a:nth-of-type(2) + div.post {
    border-top: 2px solid rgba(239, 159, 39, 0.4);
    margin-top: 8px;
    padding-top: 8px;
}