/* =========================================================
   FusionCMS Forum Module
   application/modules/forum/css/forum.css
========================================================= */

/* ---------------------------------------------------------
   Base forum layout
--------------------------------------------------------- */

.ff-forum {
    width: 100%;
}

.ff-forum-intro {
    color: rgba(225, 235, 245, 0.78);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.ff-forum-category-list,
.ff-topic-list,
.ff-post-list {
    display: grid;
    gap: 16px;
}

/* ---------------------------------------------------------
   Category overview
--------------------------------------------------------- */

.ff-forum-category,
.ff-topic-row,
.ff-post {
    display: block;
    padding: 24px;
    text-decoration: none !important;
    background:
        linear-gradient(to bottom, rgba(10, 18, 28, 0.92), rgba(5, 9, 15, 0.96));
    border: 1px solid rgba(125, 190, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.ff-forum-category:hover,
.ff-topic-row:hover {
    border-color: rgba(125, 190, 255, 0.34);
    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(80, 170, 255, 0.12);
}

.ff-forum-category {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.ff-forum-category h3,
.ff-topic-row h3 {
    margin: 0 0 10px;
    color: #f2f7ff;
}

.ff-forum-category p,
.ff-topic-row p {
    margin: 0;
    color: rgba(225, 235, 245, 0.68);
}

.ff-forum-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
    color: rgba(160, 205, 245, 0.78);
    font-size: 13px;
    text-align: right;
}

/* ---------------------------------------------------------
   Generic toolbar / links
--------------------------------------------------------- */

.ff-forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.ff-forum-link {
    color: #8fcaff !important;
    text-decoration: none !important;
}

.ff-forum-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(90, 180, 255, 0.45);
}

/* ---------------------------------------------------------
   Topic header: breadcrumb + staff toolbar
--------------------------------------------------------- */

.ff-topic-breadcrumb {
    display: block !important;
    margin-bottom: 18px !important;
}

.ff-topic-breadcrumb .ff-forum-link {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    position: static !important;
    z-index: auto !important;
}

.ff-topic-admin-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 24px !important;
    position: static !important;
}

.ff-topic-admin-actions form {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ff-move-topic-form {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    position: static !important;
}

.ff-move-topic-form::before,
.ff-move-topic-form::after {
    content: none !important;
}

.ff-topic-move-select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: auto !important;

    display: inline-block !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    height: 38px !important;

    padding: 0 10px !important;
    margin: 0 !important;

    border-radius: 6px !important;
    border: 1px solid rgba(125, 190, 255, 0.22) !important;
    background: rgba(5, 10, 18, 0.96) !important;
    color: #dff2ff !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 38px !important;

    box-shadow: none !important;
    overflow: hidden !important;
}

.ff-small-admin-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 38px !important;
    line-height: 38px !important;
    padding: 0 14px !important;
    margin: 0 !important;

    border-radius: 6px !important;
    border: 1px solid rgba(125, 190, 255, 0.25) !important;
    background:
        linear-gradient(to bottom, rgba(45, 95, 150, 0.86), rgba(18, 48, 85, 0.92)) !important;
    color: #f4fbff !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;

    cursor: pointer !important;
    box-shadow: none !important;
}

.ff-small-admin-button:hover {
    border-color: rgba(125, 190, 255, 0.45) !important;
    box-shadow: 0 0 12px rgba(80, 170, 255, 0.18) !important;
}

.ff-small-danger-button {
    border-color: rgba(255, 130, 110, 0.28) !important;
    background:
        linear-gradient(to bottom, rgba(145, 45, 35, 0.86), rgba(80, 20, 18, 0.92)) !important;
}

.ff-small-danger-button:hover {
    border-color: rgba(255, 130, 110, 0.48) !important;
    box-shadow: 0 0 12px rgba(255, 100, 80, 0.16) !important;
}

.ff-topic-locked-note {
    margin-top: 20px;
    color: rgba(220, 232, 244, 0.72);
    font-style: italic;
}

/* ---------------------------------------------------------
   Topic rows
--------------------------------------------------------- */

.ff-topic-row h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ff-topic-label {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(80, 170, 255, 0.16);
    border: 1px solid rgba(125, 190, 255, 0.24);
    color: #9fd0ff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.ff-topic-label-locked {
    background: rgba(160, 90, 70, 0.16);
    border-color: rgba(255, 160, 120, 0.24);
    color: #ffc2a0;
}

/* ---------------------------------------------------------
   Forum post layout
--------------------------------------------------------- */

.ff-post {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
    color: rgba(225, 235, 245, 0.88);
}

.ff-post-author {
    padding: 26px 20px;
    background: rgba(3, 8, 14, 0.46);
    border-right: 1px solid rgba(125, 190, 255, 0.10);
    text-align: center;
}

.ff-post-author img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(125, 190, 255, 0.26);
    box-shadow: 0 0 22px rgba(80, 170, 255, 0.14);
    margin-bottom: 14px;
}

.ff-post-author strong {
    display: block;
    color: #f2f7ff;
    font-size: 16px;
    margin-bottom: 8px;
}

.ff-role-player,
.ff-role-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ff-role-player {
    color: rgba(220, 232, 244, 0.55);
    border: 1px solid rgba(220, 232, 244, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.ff-role-badge {
    color: #dff2ff;
    border: 1px solid rgba(125, 190, 255, 0.36);
    background: rgba(35, 95, 155, 0.32);
    box-shadow: 0 0 16px rgba(80, 170, 255, 0.16);
}

.ff-post-author small {
    display: block;
    margin-top: 12px;
    color: rgba(220, 232, 244, 0.40);
    font-size: 11px;
}

.ff-post-main {
    min-width: 0 !important;
    overflow: hidden;
    padding: 26px 28px;
}

.ff-post-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;

    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(125, 190, 255, 0.12);
}

.ff-post-meta strong {
    color: #f2f7ff;
}

.ff-post-meta span {
    color: rgba(225, 235, 245, 0.50);
}

.ff-post-content {
    min-width: 0 !important;
    max-width: 100% !important;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: break-word !important;
}

.ff-post-content a {
    color: #8fcaff !important;
}

.ff-post-content a:hover {
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   Staff / Blue posts
--------------------------------------------------------- */

.ff-post-staff {
    border-color: rgba(95, 180, 255, 0.34) !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(80, 170, 255, 0.18) !important;
}

.ff-post-staff .ff-post-author {
    background:
        linear-gradient(to bottom, rgba(25, 70, 115, 0.42), rgba(3, 8, 14, 0.62));
    border-right-color: rgba(125, 190, 255, 0.22);
}

/* ---------------------------------------------------------
   Post actions: edit/delete
--------------------------------------------------------- */

.ff-post-actions {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ff-post-actions form {
    margin: 0;
}

.ff-post-edit {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(125, 190, 255, 0.22);
    background: transparent;
    color: #9fd0ff !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
}

.ff-post-edit:hover {
    color: #fff !important;
    border-color: rgba(125, 190, 255, 0.46);
    box-shadow: 0 0 12px rgba(80, 170, 255, 0.16);
}

.ff-post-delete {
    background: transparent !important;
    border: 1px solid rgba(255, 130, 110, 0.24) !important;
    color: #ffb3a0 !important;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.ff-post-delete:hover {
    color: #fff !important;
    border-color: rgba(255, 130, 110, 0.46) !important;
    box-shadow: 0 0 12px rgba(255, 100, 80, 0.16);
}

/* ---------------------------------------------------------
   Forms
--------------------------------------------------------- */

.ff-forum-form {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.ff-forum-form label {
    color: #f2f7ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.ff-forum-form input,
.ff-forum-form textarea,
.ff-forum-form select {
    width: 100%;
    background: rgba(3, 8, 14, 0.82) !important;
    border: 1px solid rgba(125, 190, 255, 0.16) !important;
    color: #eef7ff !important;
    border-radius: 5px !important;
    padding: 12px 14px;
}

.ff-forum-form input:focus,
.ff-forum-form textarea:focus,
.ff-forum-form select:focus {
    border-color: rgba(125, 190, 255, 0.42) !important;
    box-shadow: 0 0 16px rgba(80, 170, 255, 0.18) !important;
    outline: none !important;
}

/* ---------------------------------------------------------
   BBCode / markup
--------------------------------------------------------- */

.ff-bbcode-help {
    margin: -4px 0 8px;
    color: rgba(220, 232, 244, 0.55);
    font-size: 13px;
    line-height: 1.7;
}

.ff-bbcode-help code {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(3, 8, 14, 0.78);
    border: 1px solid rgba(125, 190, 255, 0.12);
    color: #9fd0ff;
}

.ff-bbcode-quote {
    margin: 10px 0 18px !important;
    padding: 16px 20px;
    border-left: 3px solid rgba(125, 190, 255, 0.48);
    background: rgba(35, 85, 140, 0.15);
    color: rgba(225, 235, 245, 0.82);
}

.ff-bbcode-code {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;

    margin: 10px 0 18px !important;
    padding: 14px 18px !important;
    line-height: 1.45 !important;

    border-radius: 8px;
    background: rgba(1, 5, 10, 0.92);
    border: 1px solid rgba(125, 190, 255, 0.14);
    color: #9fd0ff;
}

.ff-bbcode-code code {
    display: block;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    line-height: 1.45 !important;
}

.ff-bbcode-list {
    margin: 12px 0 20px 24px;
    padding-left: 18px;
    color: rgba(235, 245, 255, 0.9);
}

.ff-bbcode-list li {
    margin: 6px 0;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   Legacy button overrides, kept for older markup if present
--------------------------------------------------------- */

.ff-danger-button {
    background:
        linear-gradient(to bottom, rgba(145, 45, 35, 0.86), rgba(80, 20, 18, 0.92)) !important;
    border-color: rgba(255, 130, 110, 0.34) !important;
}

.ff-admin-button {
    background:
        linear-gradient(to bottom, rgba(45, 95, 150, 0.86), rgba(18, 48, 85, 0.92)) !important;
    border-color: rgba(125, 190, 255, 0.30) !important;
    color: #f4fbff !important;
}

.ff-admin-button:hover {
    box-shadow: 0 0 16px rgba(80, 170, 255, 0.20);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {
    .ff-topic-admin-actions {
        justify-content: flex-start !important;
    }

    .ff-move-topic-form {
        width: 100% !important;
    }

    .ff-topic-move-select {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

@media (max-width: 800px) {
    .ff-post {
        grid-template-columns: 1fr !important;
    }

    .ff-post-author {
        border-right: 0;
        border-bottom: 1px solid rgba(125, 190, 255, 0.10);
    }

    .ff-post-meta {
        justify-content: flex-start !important;
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (max-width: 700px) {
    .ff-forum-category {
        flex-direction: column;
    }

    .ff-forum-stats {
        text-align: left;
    }
}

/* Standard FusionCMS BBCode output */

.ff-post-content blockquote {
    margin: 12px 0 18px !important;
    padding: 16px 20px !important;
    border-left: 3px solid rgba(125, 190, 255, 0.48) !important;
    background: rgba(35, 85, 140, 0.15) !important;
    color: rgba(225, 235, 245, 0.84) !important;
}

.ff-post-content code {
    display: block !important;
    max-width: 100% !important;
    margin: 10px 0 18px !important;
    padding: 14px 18px !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    line-height: 1.45 !important;
    border-radius: 8px !important;
    background: rgba(1, 5, 10, 0.92) !important;
    border: 1px solid rgba(125, 190, 255, 0.14) !important;
    color: #9fd0ff !important;
}

.ff-post-content ul,
.ff-post-content ol {
    margin: 12px 0 20px 26px !important;
    padding-left: 18px !important;
}

.ff-post-content li {
    margin: 6px 0 !important;
    line-height: 1.7 !important;
}

.ff-post-content h1,
.ff-post-content h2,
.ff-post-content h3 {
    color: #f2f7ff !important;
    margin: 18px 0 12px !important;
}

.ff-post-content h1 {
    font-size: 28px !important;
}

.ff-post-content h2 {
    font-size: 23px !important;
}

.ff-post-content h3 {
    font-size: 19px !important;
}

/* TinyMCE dark editor fix */

.ff-forum .tox.tox-tinymce {
    border: 1px solid rgba(125, 190, 255, 0.18) !important;
    border-radius: 8px !important;
    background: #050a12 !important;
    overflow: hidden !important;
}

.ff-forum .tox .tox-editor-container,
.ff-forum .tox .tox-edit-area,
.ff-forum .tox .tox-sidebar-wrap {
    background: #050a12 !important;
}

.ff-forum .tox .tox-edit-area__iframe {
    background: #050a12 !important;
}

.ff-forum .tox .tox-toolbar,
.ff-forum .tox .tox-toolbar__primary,
.ff-forum .tox .tox-toolbar__overflow,
.ff-forum .tox .tox-editor-header,
.ff-forum .tox .tox-toolbar-overlord,
.ff-forum .tox .tox-statusbar {
    background: #08111d !important;
    border-color: rgba(125, 190, 255, 0.12) !important;
}

.ff-forum .tox .tox-tbtn {
    background: #0d2034 !important;
    color: #dff2ff !important;
}

.ff-forum .tox .tox-tbtn svg {
    fill: #dff2ff !important;
}

.ff-forum .tox .tox-tbtn:hover {
    background: #16395c !important;
}

.ff-forum .tox .tox-statusbar,
.ff-forum .tox .tox-statusbar a {
    color: rgba(225, 235, 245, 0.7) !important;
}

/* Hide FusionCMS/theme-generated fake select inside forum move form */
.ff-move-topic-form .select2,
.ff-move-topic-form .select2-container,
.ff-move-topic-form .selectbox,
.ff-move-topic-form .selectboxit,
.ff-move-topic-form .selectboxit-container,
.ff-move-topic-form .sbHolder,
.ff-move-topic-form .chosen-container,
.ff-move-topic-form .bootstrap-select,
.ff-move-topic-form .dropdown:not(.ff-keep-dropdown),
.ff-move-topic-form > div:not(:has(select)):not(:has(button)):not(:has(input)) {
    display: none !important;
}

/* Latest forum activity */

.ff-forum-category-main,
.ff-topic-main {
    min-width: 0;
    flex: 1;
}

.ff-latest-activity {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(125, 190, 255, 0.10);
    color: rgba(205, 225, 245, 0.62);
    font-size: 13px;
    line-height: 1.5;
}

.ff-latest-activity strong {
    color: #dff2ff;
    font-weight: 700;
}

.ff-latest-activity span {
    margin-left: 6px;
    color: rgba(160, 205, 245, 0.68);
}

.ff-muted {
    color: rgba(205, 225, 245, 0.42);
}

.ff-topic-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.ff-topic-stats {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    color: rgba(160, 205, 245, 0.72);
    font-size: 13px;
}

@media (max-width: 700px) {
    .ff-topic-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ff-topic-stats {
        text-align: left;
    }
}

/* Forum ACP */

.ff-admin-table-wrap {
    overflow-x: auto;
}

.ff-admin-table {
    width: 100%;
    border-collapse: collapse;
    background:
        linear-gradient(to bottom, rgba(10, 18, 28, 0.92), rgba(5, 9, 15, 0.96));
    border: 1px solid rgba(125, 190, 255, 0.14);
    border-radius: 10px;
    overflow: hidden;
}

.ff-admin-table th,
.ff-admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(125, 190, 255, 0.10);
    color: rgba(225, 235, 245, 0.82);
    vertical-align: top;
}

.ff-admin-table th {
    color: #f2f7ff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    background: rgba(3, 8, 14, 0.58);
}

.ff-admin-table small {
    color: rgba(160, 205, 245, 0.55);
}

.ff-admin-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ff-checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: rgba(225, 235, 245, 0.82) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
}

.ff-checkbox-row input {
    width: auto !important;
}

/* Extra BBCode: center + safe sizes */

.ff-post-content .ff-bbcode-center {
    text-align: center !important;
}

.ff-post-content .ff-bbcode-size-1 {
    font-size: 0.75em !important;
}

.ff-post-content .ff-bbcode-size-2 {
    font-size: 0.9em !important;
}

.ff-post-content .ff-bbcode-size-3 {
    font-size: 1em !important;
}

.ff-post-content .ff-bbcode-size-4 {
    display: inline-block;
    font-size: 1.25em !important;
    font-weight: 700;
    color: #f2f7ff;
    margin: 10px 0 6px;
}

.ff-post-content .ff-bbcode-size-5 {
    display: inline-block;
    font-size: 1.55em !important;
    font-weight: 800;
    color: #f2f7ff;
    margin: 14px 0 8px;
}

.ff-post-content .ff-bbcode-size-6 {
    display: inline-block;
    font-size: 1.9em !important;
    font-weight: 800;
    color: #f2f7ff;
    margin: 16px 0 10px;
}

.ff-post-content .ff-bbcode-size-7 {
    display: inline-block;
    font-size: 2.25em !important;
    font-weight: 900;
    color: #f2f7ff;
    margin: 18px 0 12px;
}

/* Make BBCode lists visibly list-like */
.ff-post-content ul {
    list-style-type: disc !important;
}

.ff-post-content ol {
    list-style-type: decimal !important;
}

.ff-post-content ul,
.ff-post-content ol {
    margin: 12px 0 20px 28px !important;
    padding-left: 22px !important;
}

.ff-post-content li {
    display: list-item !important;
    margin: 6px 0 !important;
    padding-left: 4px !important;
}

.ff-staff-reply-label {
    display: block;
    width: max-content;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(35, 95, 155, 0.28);
    border: 1px solid rgba(125, 190, 255, 0.24);
    color: #9fd0ff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Forum subcategories */

.ff-category-group {
    display: grid;
    gap: 10px;
}

.ff-forum-category-parent {
    margin-bottom: 0;
}

.ff-subcategory-list {
    display: grid;
    gap: 8px;
    margin-left: 26px;
    padding-left: 18px;
    border-left: 1px solid rgba(125, 190, 255, 0.16);
}

.ff-subcategory-row {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    text-decoration: none !important;
    background:
        linear-gradient(to bottom, rgba(8, 15, 24, 0.82), rgba(4, 8, 14, 0.92));
    border: 1px solid rgba(125, 190, 255, 0.10);
    border-radius: 8px;
}

.ff-subcategory-row:hover {
    border-color: rgba(125, 190, 255, 0.30);
    box-shadow: 0 0 18px rgba(80, 170, 255, 0.10);
}

.ff-subcategory-row strong {
    color: #eaf7ff;
}

.ff-subcategory-row p {
    margin: 6px 0 0;
    color: rgba(225, 235, 245, 0.62);
}

@media (max-width: 700px) {
    .ff-subcategory-list {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .ff-subcategory-row {
        flex-direction: column;
    }
}
/* Forum attachments */

.ff-attachments {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(125, 190, 255, 0.14);
}

.ff-attachments > strong {
    display: block;
    margin-bottom: 10px;
    color: #f2f7ff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ff-attachment {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(3, 8, 14, 0.62);
    border: 1px solid rgba(125, 190, 255, 0.14);
    text-decoration: none !important;
}

.ff-attachment:hover {
    border-color: rgba(125, 190, 255, 0.34);
    box-shadow: 0 0 18px rgba(80, 170, 255, 0.10);
}

.ff-attachment span {
    color: #dff2ff;
    font-weight: 700;
}

.ff-attachment small {
    color: rgba(160, 205, 245, 0.68);
    white-space: nowrap;
}

/* Staff reply label */

.ff-staff-reply-label {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: max-content !important;
    margin: 0 0 16px 0 !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    background: rgba(35, 95, 155, 0.28) !important;
    border: 1px solid rgba(125, 190, 255, 0.24) !important;
    color: #9fd0ff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* Forum file upload */

.ff-file-input {
    width: 100% !important;
    padding: 14px !important;
    background: rgba(3, 8, 14, 0.82) !important;
    border: 1px solid rgba(125, 190, 255, 0.16) !important;
    color: #eef7ff !important;
    border-radius: 6px !important;
}

.ff-file-input::file-selector-button {
    margin-right: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(125, 190, 255, 0.26);
    border-radius: 5px;
    background: linear-gradient(to bottom, rgba(45, 95, 150, 0.86), rgba(18, 48, 85, 0.92));
    color: #f4fbff;
    font-weight: 700;
    cursor: pointer;
}

.ff-file-input::file-selector-button:hover {
    border-color: rgba(125, 190, 255, 0.45);
    box-shadow: 0 0 12px rgba(80, 170, 255, 0.18);
}

/* Subcategories on category page */

.ff-category-subcategories {
    margin-bottom: 28px;
}

.ff-category-subcategories h3 {
    margin: 0 0 14px;
    color: #f2f7ff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ff-subcategory-list-category-page {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}

.ff-no-topics {
    margin-top: 18px;
    color: rgba(205, 225, 245, 0.55);
}

/* Match forum width with normal theme content pages */

.ff-forum {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ff-forum .ff-home-hero,
.ff-forum-category-list,
.ff-topic-list,
.ff-post-list,
.ff-forum-form,
.ff-category-subcategories,
.ff-forum-toolbar {
    max-width: 100%;
}

/* Match forum module width with normal theme content pages */

.box.type-forum {
    width: var(--ff-content-width, min(88vw, 1420px)) !important;
    max-width: 1420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.box.type-forum .box-body {
    width: 100%;
}

.ff-forum {
    width: 100%;
    max-width: none;
}

/* BBCode images */

.ff-bbcode-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px 0;
    border-radius: 8px;
    border: 1px solid rgba(125, 190, 255, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}