/* Final dark-gold forum skin. Loaded last to keep every forum page in one palette. */
:root {
    --fi-gold-bg: rgba(8, 7, 6, 0.91);
    --fi-gold-panel: linear-gradient(145deg, rgba(20, 18, 15, 0.96), rgba(8, 8, 8, 0.94));
    --fi-gold-card: linear-gradient(145deg, rgba(26, 23, 19, 0.94), rgba(11, 10, 9, 0.94));
    --fi-gold-soft: rgba(255, 173, 58, 0.12);
    --fi-gold-line: rgba(255, 176, 64, 0.28);
    --fi-gold-line-soft: rgba(255, 204, 122, 0.13);
    --fi-gold-text: #fff5df;
    --fi-gold-muted: #c9b9a1;
    --fi-gold-accent: #ffb24a;
    --fi-gold-hot: #ff8f1f;
    --fi-gold-warm-glow: #b8792a;
    --fi-gold-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

body.forum-page::before {
    background:
        radial-gradient(circle at 74% 18%, rgba(160, 86, 28, 0.12), transparent 22%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.72));
}

body.forum-page .forum-topbar {
    grid-template-columns: minmax(210px, 0.92fr) minmax(560px, 2.35fr) auto;
    background:
        linear-gradient(145deg, rgba(20, 18, 15, 0.97), rgba(6, 6, 6, 0.95)),
        radial-gradient(circle at 9% 8%, rgba(255, 151, 35, 0.18), transparent 30%);
    border-color: rgba(255, 179, 73, 0.26);
    box-shadow: var(--fi-gold-shadow), inset 0 1px rgba(255, 255, 255, 0.06);
}

body.forum-page .forum-topbar-brandmark,
body.forum-page .forum-icon-button,
body.forum-page .forum-language-switch,
body.forum-page .forum-userbox-trigger,
body.forum-page .forum-auth-button {
    background: linear-gradient(145deg, rgba(28, 24, 18, 0.96), rgba(7, 7, 7, 0.96));
    border: 1px solid var(--fi-gold-line-soft);
    color: var(--fi-gold-text);
}

body.forum-page .forum-topbar-nav {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
}

body.forum-page .forum-topbar-nav-row {
    display: contents;
}

body.forum-page .forum-topbar-nav a {
    min-height: 46px;
    padding: 0 14px;
    justify-content: flex-start;
    background: linear-gradient(145deg, rgba(23, 21, 18, 0.96), rgba(8, 8, 8, 0.96));
    border: 1px solid var(--fi-gold-line-soft);
    color: var(--fi-gold-text);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.24);
}

body.forum-page .forum-topbar-nav a span {
    display: block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    color: var(--fi-gold-text);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

body.forum-page .forum-topbar-nav a i,
body.forum-page .forum-icon-button i {
    color: var(--fi-gold-accent);
}

body.forum-page .forum-topbar-nav a:hover,
body.forum-page .forum-topbar-nav a:focus-visible,
body.forum-page .forum-topbar-nav a.is-active,
body.forum-page .forum-language-switch a.is-active,
body.forum-page .forum-board-action,
body.forum-page .forum-auth-button:not(.forum-auth-button--ghost) {
    background:
        radial-gradient(circle at 50% -28%, rgba(255, 210, 128, 0.22), transparent 45%),
        linear-gradient(180deg, rgba(80, 49, 21, 0.98), rgba(31, 21, 13, 0.98) 58%, rgba(12, 10, 8, 0.98));
    border-color: rgba(219, 148, 58, 0.58);
    color: #fff3dc;
    box-shadow: 0 12px 26px rgba(179, 95, 26, 0.16), inset 0 1px rgba(255, 238, 202, 0.16);
}

body.forum-page .forum-main,
body.forum-page .forum-shell,
body.forum-page .forum-layout,
body.forum-page .forum-content,
body.forum-page .forum-breadcrumb,
body.forum-page .forum-toolbar,
body.forum-page .forum-category-card,
body.forum-page .forum-category-heading,
body.forum-page .forum-board-card,
body.forum-page .forum-section-card,
body.forum-page .forum-section-create-box,
body.forum-page .forum-topic-table,
body.forum-page .forum-topic-row,
body.forum-page .forum-topic-detail,
body.forum-page .forum-topic-author,
body.forum-page .forum-topic-article,
body.forum-page .forum-reply-card,
body.forum-page .forum-reply-box,
body.forum-page .forum-users-sidebar-card,
body.forum-page .forum-overview-card,
body.forum-page .forum-user-card,
body.forum-page .forum-message-dialog,
body.forum-page .forum-messages-sidebar,
body.forum-page .forum-messages-panel,
body.forum-page .forum-messages-thread,
body.forum-page .forum-message-form,
body.forum-page .forum-notification-card,
body.forum-page .forum-support-form-card,
body.forum-page .forum-support-list-card,
body.forum-page .forum-support-ticket,
body.forum-page .forum-profile-hero,
body.forum-page .forum-profile-tab-panel,
body.forum-page .forum-social-editor,
body.forum-page .forum-composer-form,
body.forum-page .forum-help-card,
body.forum-page .forum-page-panel,
body.forum-page .forum-empty-state,
body.forum-page .forum-userbox-panel {
    background: var(--fi-gold-card);
    border-color: var(--fi-gold-line-soft);
    color: var(--fi-gold-text);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.045);
}

body.forum-page .forum-category-card,
body.forum-page .forum-content,
body.forum-page .forum-profile-hero,
body.forum-page .forum-popularity-stage {
    background:
        radial-gradient(circle at 88% 6%, rgba(255, 147, 34, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(22, 20, 17, 0.93), rgba(8, 8, 8, 0.94));
    border: 1px solid var(--fi-gold-line);
}

body.forum-page h1,
body.forum-page h2,
body.forum-page h3,
body.forum-page h4,
body.forum-page strong,
body.forum-page .forum-user-card-login,
body.forum-page .forum-topic-row-title,
body.forum-page .forum-topic-copy h1,
body.forum-page .forum-category-heading h1 {
    color: var(--fi-gold-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

body.forum-page p,
body.forum-page small,
body.forum-page .forum-category-heading p,
body.forum-page .forum-topic-summary,
body.forum-page .forum-node-description,
body.forum-page .forum-topic-row-meta,
body.forum-page .forum-message-dialog-copy span,
body.forum-page .forum-notification-meta,
body.forum-page .forum-support-ticket-row {
    color: var(--fi-gold-muted);
}

body.forum-page a {
    color: #ffd17b;
}

body.forum-page .forum-board-chip,
body.forum-page .forum-page-link,
body.forum-page .forum-users-side-nav a,
body.forum-page .forum-toolbar-button,
body.forum-page .forum-support-ticket-action,
body.forum-page .forum-topic-author-badge,
body.forum-page .forum-user-card-status-pill {
    background: linear-gradient(145deg, rgba(43, 32, 18, 0.98), rgba(12, 12, 12, 0.96));
    border-color: rgba(255, 188, 82, 0.25);
    color: var(--fi-gold-text);
}

body.forum-page .forum-page-link.is-active,
body.forum-page .forum-users-side-nav a.is-active,
body.forum-page .forum-toolbar-button--primary,
body.forum-page .forum-toolbar-button:hover,
body.forum-page .forum-support-ticket-action--view {
    background: linear-gradient(135deg, #ffba50, #df7b18);
    border-color: rgba(255, 220, 144, 0.72);
    color: #fff9ec;
}

body.forum-page input,
body.forum-page textarea,
body.forum-page select,
body.forum-page .forum-composer-textarea,
body.forum-page .forum-editor-content {
    background: rgba(4, 5, 6, 0.82);
    border: 1px solid rgba(255, 190, 86, 0.2);
    color: var(--fi-gold-text);
    box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.32);
}

body.forum-page input::placeholder,
body.forum-page textarea::placeholder {
    color: rgba(224, 198, 157, 0.6);
}

body.forum-page .forum-topic-table-head,
body.forum-page .forum-topic-row-stats,
body.forum-page .forum-topic-row-last,
body.forum-page .forum-notification-status,
body.forum-page .forum-message-dialog-meta,
body.forum-page .forum-profile-tabs a,
body.forum-page .forum-settings-gender-option,
body.forum-page .forum-search-checkbox {
    color: var(--fi-gold-muted);
    border-color: rgba(255, 190, 86, 0.15);
}

body.forum-page .forum-home-board-icon,
body.forum-page .forum-board-icon,
body.forum-page .forum-section-icon,
body.forum-page .forum-topic-row-avatar,
body.forum-page .forum-node-meta-avatar {
    background: linear-gradient(145deg, rgba(94, 61, 23, 0.9), rgba(21, 16, 10, 0.98));
    border-color: rgba(255, 185, 76, 0.28);
    color: var(--fi-gold-accent);
    box-shadow: 0 12px 28px rgba(255, 138, 22, 0.1), inset 0 1px rgba(255, 255, 255, 0.1);
}

body.forum-page .forum-home-board-icon:hover,
body.forum-page .forum-board-icon:hover,
body.forum-page .forum-section-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 212, 125, 0.66);
    box-shadow: 0 18px 36px rgba(255, 138, 22, 0.22), inset 0 1px rgba(255, 255, 255, 0.16);
}

body.forum-page .forum-home-cta,
body.forum-page .forum-sidebar-play,
body.forum-page .forum-play-card,
body.forum-page .forum-home-widget--play {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 38%, rgba(255, 203, 90, 0.33), transparent 26%),
        linear-gradient(135deg, rgba(107, 50, 9, 0.98), rgba(226, 105, 12, 0.9), rgba(101, 23, 7, 0.96));
    border-color: rgba(255, 198, 82, 0.6);
    box-shadow: 0 0 22px rgba(255, 145, 25, 0.25), inset 0 1px rgba(255, 255, 255, 0.22);
}

body.forum-page .forum-home-cta::after,
body.forum-page .forum-sidebar-play::after,
body.forum-page .forum-home-widget--play::after {
    content: "";
    position: absolute;
    inset: -40% -70%;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 189, 0.28), transparent);
    transform: rotate(16deg);
    animation: forumGoldSweep 4.4s ease-in-out infinite;
}

body.forum-page .forum-home-widget--vote img,
body.forum-page .forum-widget-vote img {
    filter: saturate(1.12) contrast(1.05) drop-shadow(0 14px 26px rgba(184, 104, 32, 0.22));
}

body.forum-page .forum-home-latest-item,
body.forum-page .forum-home-user-row,
body.forum-page .forum-overview-user,
body.forum-page .forum-new-users-grid a {
    background: linear-gradient(145deg, rgba(21, 19, 16, 0.86), rgba(7, 7, 7, 0.9));
    border-color: rgba(255, 190, 86, 0.14);
}

body.forum-page .forum-composer-alert.is-success,
body.forum-page .forum-composer-alert {
    background: rgba(46, 32, 14, 0.94);
    border-color: rgba(255, 190, 86, 0.3);
    color: var(--fi-gold-text);
}

body.forum-page .forum-composer-alert.is-error {
    background: rgba(55, 11, 11, 0.94);
    border-color: rgba(255, 105, 93, 0.42);
}

body.forum-page ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f1a43a, #7a3612);
    border-radius: 999px;
}

@keyframes forumGoldSweep {
    0%, 45% {
        transform: translateX(-55%) rotate(16deg);
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: translateX(55%) rotate(16deg);
        opacity: 0;
    }
}

@media (max-width: 1320px) {
    body.forum-page .forum-topbar {
        grid-template-columns: 1fr;
    }

    body.forum-page .forum-topbar-nav {
        grid-template-columns: repeat(3, minmax(148px, 1fr));
    }
}

@media (max-width: 720px) {
    body.forum-page .forum-topbar-nav {
        grid-template-columns: 1fr;
    }

    body.forum-page .forum-topbar-nav a span {
        white-space: normal;
    }
}

/* Palette lock: brown-black glass and gold controls across the forum UI. */
body.forum-page {
    --fi-bronze-deep: #070605;
    --fi-bronze-900: #11100e;
    --fi-bronze-800: #191512;
    --fi-bronze-700: #241b13;
    --fi-bronze-600: #332315;
    --fi-bronze-gold: #f3b35a;
    --fi-bronze-gold-hot: #ff9d2a;
    --fi-bronze-gold-soft: rgba(255, 179, 76, 0.2);
    --fi-bronze-border: rgba(255, 178, 75, 0.26);
    --fi-bronze-border-hot: rgba(255, 205, 126, 0.7);
    --fi-bronze-text: #fff3db;
    --fi-bronze-muted: #d0bea3;
}

body.forum-page .forum-shell,
body.forum-page .forum-layout,
body.forum-page .forum-content,
body.forum-page .forum-category-card,
body.forum-page .forum-topic-detail,
body.forum-page .forum-profile-hero,
body.forum-page .forum-profile-tab-panel,
body.forum-page .forum-users-overview,
body.forum-page .forum-messages-layout,
body.forum-page .forum-support-grid,
body.forum-page .forum-popularity-stage {
    background:
        linear-gradient(120deg, rgba(255, 190, 96, 0.055), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(255, 157, 42, 0.13), transparent 28%),
        linear-gradient(145deg, rgba(43, 31, 21, 0.72), rgba(10, 9, 8, 0.88) 48%, rgba(29, 21, 15, 0.74)) !important;
    border: 1px solid var(--fi-bronze-border) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.48),
        inset 0 1px rgba(255, 245, 220, 0.08),
        inset 0 -1px rgba(255, 179, 76, 0.08) !important;
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    border-radius: 21px;
}

body.forum-page .forum-category-card::before,
body.forum-page .forum-profile-hero::before,
body.forum-page .forum-popularity-stage::before,
body.forum-page .forum-topic-detail::before {
    background:
        linear-gradient(90deg, rgba(255, 199, 112, 0.08), transparent 36%, rgba(255, 199, 112, 0.05)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 84px) !important;
    opacity: 0.75;
}

body.forum-page :where(
    .forum-board-card,
    .forum-section-card,
    .forum-section-create-box,
    .forum-topic-row,
    .forum-topic-author,
    .forum-topic-article,
    .forum-reply-card,
    .forum-reply-box,
    .forum-users-sidebar-card,
    .forum-overview-card,
    .forum-user-card,
    .forum-directory-card,
    .forum-message-dialog,
    .forum-messages-sidebar,
    .forum-messages-panel,
    .forum-messages-thread,
    .forum-message-form,
    .forum-notification-card,
    .forum-support-form-card,
    .forum-support-list-card,
    .forum-support-ticket,
    .forum-social-editor,
    .forum-composer-form,
    .forum-help-card,
    .forum-empty-state,
    .forum-home-widget,
    .forum-home-stat-card,
    .forum-home-quick-card,
    .forum-home-latest-item,
    .fi-market-card,
    .fi-market-order-card
) {
    background:
        linear-gradient(145deg, rgba(45, 32, 22, 0.72), rgba(9, 8, 7, 0.9)) !important;
    border: 1px solid rgba(255, 179, 76, 0.18) !important;
    color: var(--fi-bronze-text) !important;
    box-shadow: 0 15px 42px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 244, 220, 0.055) !important;
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

body.forum-page :where(
    .forum-topbar,
    .forum-breadcrumb,
    .forum-toolbar,
    .forum-category-heading,
    .forum-topic-table-head,
    .forum-messages-panel-head,
    .forum-support-list-header,
    .forum-userbox-panel,
    .fi-market-hero
) {
    background:
        linear-gradient(145deg, rgba(39, 29, 20, 0.84), rgba(9, 8, 7, 0.92)) !important;
    border-color: rgba(255, 179, 76, 0.24) !important;
    color: var(--fi-bronze-text) !important;
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
}

body.forum-page :where(
    .forum-topbar-nav a,
    .forum-icon-button,
    .forum-language-switch a,
    .forum-userbox-trigger,
    .forum-auth-button,
    .forum-board-action,
    .forum-toolbar-button,
    .forum-page-link,
    .forum-users-side-nav a,
    .forum-support-ticket-action,
    .forum-editor-tool,
    .forum-editor-select,
    .fi-market-filter,
    .fi-market-action,
    .fi-market-tab,
    button
) {
    background: linear-gradient(180deg, rgba(47, 34, 23, 0.95), rgba(13, 11, 9, 0.98)) !important;
    border: 1px solid rgba(255, 180, 78, 0.28) !important;
    color: var(--fi-bronze-text) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72) !important;
    box-shadow: inset 0 1px rgba(255, 244, 218, 0.08), 0 9px 24px rgba(0, 0, 0, 0.24) !important;
}

body.forum-page :where(
    .forum-topbar-nav a:hover,
    .forum-topbar-nav a:focus-visible,
    .forum-topbar-nav a.is-active,
    .forum-icon-button:hover,
    .forum-icon-button.is-active,
    .forum-language-switch a:hover,
    .forum-language-switch a.is-active,
    .forum-board-action:hover,
    .forum-toolbar-button:hover,
    .forum-toolbar-button--primary,
    .forum-page-link:hover,
    .forum-page-link.is-active,
    .forum-users-side-nav a:hover,
    .forum-users-side-nav a.is-active,
    .forum-support-ticket-action:hover,
    .forum-support-ticket-action--view,
    .forum-editor-tool:hover,
    .fi-market-filter:hover,
    .fi-market-filter.is-active,
    .fi-market-action:hover,
    .fi-market-tab.is-active
) {
    background:
        radial-gradient(circle at 50% -30%, rgba(255, 199, 106, 0.22), transparent 50%),
        linear-gradient(180deg, rgba(66, 42, 21, 0.96), rgba(28, 20, 13, 0.98) 58%, rgba(12, 10, 8, 0.98)) !important;
    border-color: rgba(238, 169, 78, 0.62) !important;
    color: #fff4dc !important;
    box-shadow:
        0 0 0 1px rgba(255, 208, 132, 0.12),
        0 12px 24px rgba(179, 95, 26, 0.14),
        inset 0 1px rgba(255, 238, 202, 0.16) !important;
}

body.forum-page :where(
    .forum-home-board-icon,
    .forum-board-icon,
    .forum-section-icon,
    .forum-topic-row-avatar,
    .forum-node-meta-avatar,
    .forum-user-card-main > img,
    .forum-topic-author img,
    .forum-reply-author img,
    .forum-message-dialog img,
    .forum-notification-card img
) {
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 207, 111, 0.18), transparent 50%),
        linear-gradient(180deg, rgba(63, 43, 22, 0.96), rgba(18, 13, 9, 0.98)) !important;
    border: 1px solid rgba(255, 191, 86, 0.34) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.33), inset 0 1px rgba(255, 243, 215, 0.13) !important;
}

body.forum-page :where(
    .forum-home-board-icon:hover,
    .forum-home-board-icon:focus-visible,
    .forum-board-icon:hover,
    .forum-section-icon:hover,
    .forum-topic-row:hover .forum-topic-row-avatar,
    .forum-section-card:hover .forum-section-icon,
    .forum-board-card:hover .forum-home-board-icon,
    .forum-message-dialog.is-active img,
    .forum-user-card:hover img
) {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 213, 117, 0.34), transparent 48%),
        linear-gradient(180deg, rgba(91, 59, 26, 0.98), rgba(25, 17, 10, 0.98)) !important;
    border-color: rgba(255, 219, 145, 0.78) !important;
    box-shadow: 0 0 0 1px rgba(255, 216, 144, 0.18), 0 18px 36px rgba(255, 141, 28, 0.18) !important;
}

body.forum-page :where(
    h1, h2, h3, h4,
    .forum-category-heading h1,
    .forum-topic-row-title,
    .forum-user-card-login,
    .forum-message-dialog-copy strong,
    .forum-support-ticket-title
) {
    color: var(--fi-bronze-text) !important;
}

body.forum-page :where(
    p, small, span, dd, dt,
    .forum-category-heading p,
    .forum-topic-summary,
    .forum-node-description,
    .forum-topic-row-meta,
    .forum-topic-row-category,
    .forum-message-dialog-copy span,
    .forum-notification-meta,
    .forum-support-ticket-row,
    .fi-market-card-meta
) {
    border-color: rgba(255, 179, 76, 0.14);
}

body.forum-page :where(.forum-board-chip, .forum-topic-author-badge, .forum-user-card-status-pill, .fi-market-badge) {
    background: linear-gradient(180deg, rgba(88, 57, 25, 0.96), rgba(25, 17, 10, 0.98)) !important;
    border-color: rgba(255, 198, 95, 0.42) !important;
    color: #ffd98c !important;
}

body.forum-page :where(input, textarea, select, .forum-composer-textarea, .forum-editor-content) {
    background: linear-gradient(180deg, rgba(24, 18, 14, 0.94), rgba(8, 7, 6, 0.96)) !important;
    border-color: rgba(255, 179, 76, 0.22) !important;
    color: var(--fi-bronze-text) !important;
}

body.forum-page :where(input:focus, textarea:focus, select:focus, .forum-editor-content:focus) {
    border-color: rgba(255, 209, 126, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(255, 158, 42, 0.16), inset 0 1px 10px rgba(0, 0, 0, 0.34) !important;
    outline: none !important;
}

body.forum-page :where(.forum-topbar-nav a span, .forum-toolbar-button, .forum-board-action, .forum-page-link, .forum-users-side-nav a) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

body.forum-page :where(.forum-home-cta, .forum-sidebar-play, .forum-play-card, .forum-home-widget--play) {
    background:
        radial-gradient(circle at 12% 35%, rgba(255, 220, 115, 0.34), transparent 24%),
        linear-gradient(135deg, #5d2d0d, #c96612 48%, #47150b) !important;
    border-color: rgba(255, 205, 111, 0.8) !important;
    box-shadow:
        0 0 0 1px rgba(255, 224, 151, 0.18),
        0 0 32px rgba(255, 137, 24, 0.34),
        inset 0 1px rgba(255, 246, 218, 0.28) !important;
}

body.forum-page .forum-home-widget--vote,
body.forum-page .forum-widget-vote {
    background:
        radial-gradient(circle at 82% 70%, rgba(168, 92, 28, 0.20), transparent 32%),
        linear-gradient(145deg, rgba(46, 30, 20, 0.86), rgba(9, 8, 7, 0.94)) !important;
    border-color: rgba(255, 179, 76, 0.28) !important;
}

body.forum-page :where(.forum-composer-alert, .forum-empty-actions, .forum-userbox-tabs button) {
    background: linear-gradient(145deg, rgba(42, 30, 20, 0.92), rgba(10, 9, 8, 0.94)) !important;
    border-color: rgba(255, 179, 76, 0.22) !important;
    color: var(--fi-bronze-text) !important;
}

body.forum-page * {
    scrollbar-color: #d48728 rgba(14, 11, 8, 0.86);
}

/* Matte bronze lock. This is intentionally last: it prevents old forum skins from bleeding through. */
body.forum-page {
    --fi-matte-panel: linear-gradient(145deg, rgba(24, 18, 13, 0.92), rgba(8, 7, 6, 0.96));
    --fi-matte-card: linear-gradient(145deg, rgba(31, 22, 15, 0.88), rgba(10, 8, 7, 0.94));
    --fi-matte-flat: linear-gradient(180deg, rgba(29, 22, 16, 0.94), rgba(9, 8, 7, 0.97));
    --fi-matte-active: radial-gradient(circle at 50% -30%, rgba(255, 199, 106, 0.22), transparent 50%), linear-gradient(180deg, rgba(66, 42, 21, 0.96), rgba(28, 20, 13, 0.98) 58%, rgba(12, 10, 8, 0.98));
    --fi-matte-hover: radial-gradient(circle at 50% -30%, rgba(255, 191, 91, 0.18), transparent 48%), linear-gradient(180deg, rgba(51, 34, 20, 0.96), rgba(18, 14, 10, 0.98));
    --fi-matte-border: rgba(170, 109, 45, 0.36);
    --fi-matte-border-hot: rgba(238, 169, 78, 0.62);
}

body.forum-page .forum-topbar {
    grid-template-columns: minmax(230px, 1fr) minmax(650px, 2.7fr) auto !important;
}

body.forum-page .forum-topbar-nav {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
    gap: 8px !important;
}

body.forum-page .forum-topbar-nav a {
    min-height: 42px !important;
    padding: 0 10px !important;
    gap: 8px !important;
}

body.forum-page .forum-topbar-nav a span,
body.forum-page .forum-userbox-trigger span {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    letter-spacing: -0.025em !important;
}

body.forum-page :where(
    .forum-shell,
    .forum-layout,
    .forum-main,
    .forum-content,
    .forum-category-card,
    .forum-category-heading,
    .forum-topic-detail,
    .forum-topic-article,
    .forum-reply-card,
    .forum-users-overview,
    .forum-users-sidebar-card,
    .forum-overview-card,
    .forum-support-grid,
    .forum-support-form-card,
    .forum-support-list-card,
    .forum-messages-layout,
    .forum-messages-sidebar,
    .forum-messages-panel,
    .forum-messages-thread,
    .forum-profile-hero,
    .forum-profile-tab-panel,
    .forum-profile-info-panel,
    .forum-notifications-list,
    .forum-popularity-stage,
    .forum-home-widget,
    .forum-sidebar-card,
    .forum-side-card,
    .forum-page-panel
) {
    background: var(--fi-matte-panel) !important;
    border-color: var(--fi-matte-border) !important;
    color: #fff3dc !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 221, 171, 0.055) !important;
    backdrop-filter: blur(14px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.05) !important;
}

body.forum-page :where(
    .forum-board-card,
    .forum-section-card,
    .forum-section-create-box,
    .forum-topic-row,
    .forum-topic-table-head,
    .forum-node,
    .forum-topic-author,
    .forum-reply-box,
    .forum-notification-card,
    .forum-message-dialog,
    .forum-message-bubble,
    .forum-message-bubble.is-own,
    .forum-message-trade-card,
    .forum-support-ticket,
    .forum-overview-user,
    .forum-user-card,
    .forum-directory-card,
    .forum-home-latest-item,
    .forum-home-user-row,
    .forum-home-stat-card,
    .forum-home-quick-card,
    .forum-profile-metrics > div,
    .forum-profile-stat,
    .forum-profile-info-card,
    .forum-profile-character-card,
    .forum-search-result,
    .forum-help-card,
    .forum-settings-card,
    .forum-composer-form,
    .forum-empty-state
    .fi-notification-card,
    .fi-market-card,
    .fi-market-order-card
) {
    background: var(--fi-matte-card) !important;
    border-color: rgba(164, 104, 43, 0.30) !important;
    color: #fff3dc !important;
    box-shadow: inset 0 1px rgba(255, 231, 190, 0.045), 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

body.forum-page :where(
    .forum-topbar,
    .forum-breadcrumb,
    .forum-toolbar,
    .forum-category-heading,
    .forum-messages-panel-head,
    .forum-support-list-header,
    .forum-userbox-panel
    .fi-market-hero
) {
    background: linear-gradient(145deg, rgba(31, 23, 16, 0.90), rgba(8, 7, 6, 0.96)) !important;
    border-color: rgba(170, 109, 45, 0.34) !important;
}

body.forum-page :where(
    .forum-topbar-nav a,
    .forum-icon-button,
    .forum-socials a,
    .forum-breadcrumb .forum-socials a,
    .forum-language-switch a,
    .forum-userbox-trigger,
    .forum-auth-button,
    .forum-board-action,
    .forum-toolbar-button,
    .forum-page-link,
    .forum-users-side-nav a,
    .forum-profile-tabs a,
    .forum-profile-actions button,
    .forum-profile-ai-button,
    .forum-support-ticket-action,
    .forum-notification-action,
    .forum-editor-tool,
    .forum-editor-select
    .fi-market-filter,
    .fi-market-action,
    .fi-market-tab,
    button
) {
    background: var(--fi-matte-flat) !important;
    border: 1px solid rgba(171, 109, 45, 0.34) !important;
    color: #f7e6c4 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.86) !important;
    box-shadow: inset 0 1px rgba(255, 231, 190, 0.055), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

body.forum-page :where(
    .forum-topbar-nav a:hover,
    .forum-topbar-nav a:focus-visible,
    .forum-topbar-nav a.is-active,
    .forum-language-switch a:hover,
    .forum-language-switch a.is-active,
    .forum-userbox-trigger:hover,
    .forum-auth-button:hover,
    .forum-board-action:hover,
    .forum-toolbar-button:hover,
    .forum-toolbar-button--primary,
    .forum-page-link:hover,
    .forum-page-link.is-active,
    .forum-users-side-nav a:hover,
    .forum-users-side-nav a.is-active,
    .forum-profile-tabs a:hover,
    .forum-profile-tabs a.is-active,
    .forum-profile-actions button:hover,
    .forum-profile-ai-button:hover,
    .forum-support-ticket-action:hover,
    .forum-support-ticket-action--view,
    .forum-notification-action:hover,
    .forum-editor-tool:hover,
    .fi-market-filter:hover,
    .fi-market-filter.is-active,
    .fi-market-action:hover,
    .fi-market-tab.is-active
) {
    background: var(--fi-matte-active) !important;
    border-color: var(--fi-matte-border-hot) !important;
    color: #fff4dc !important;
    box-shadow: 0 0 0 1px rgba(255, 208, 132, 0.12), 0 12px 24px rgba(179, 95, 26, 0.14), inset 0 1px rgba(255, 238, 202, 0.16) !important;
}

body.forum-page :where(
    .forum-home-board-icon,
    .forum-board-icon,
    .forum-section-icon,
    .forum-topic-row-avatar,
    .forum-node-meta-avatar,
    .forum-home-stat-icon,
    .forum-topic-author img,
    .forum-reply-author img,
    .forum-message-dialog img,
    .forum-notification-card img
) {
    background: radial-gradient(circle at 50% 20%, rgba(255, 197, 91, 0.22), transparent 48%), linear-gradient(180deg, #463019, #17110b) !important;
    border-color: rgba(224, 151, 62, 0.52) !important;
    color: #ffc466 !important;
}

body.forum-page :where(
    .forum-board-card:hover,
    .forum-section-card:hover,
    .forum-topic-row:hover,
    .forum-notification-card:hover,
    .forum-message-dialog:hover,
    .forum-message-dialog.is-active,
    .forum-overview-user:hover
    .forum-support-ticket:hover
) {
    background: linear-gradient(145deg, rgba(44, 30, 18, 0.94), rgba(13, 10, 7, 0.97)) !important;
    border-color: rgba(232, 155, 64, 0.45) !important;
}

body.forum-page :where(.forum-home-cta, .forum-sidebar-play, .forum-play-card, .forum-home-widget--play) {
    background:
        radial-gradient(circle at 16% 30%, rgba(255, 196, 96, 0.20), transparent 28%),
        linear-gradient(135deg, #4a210c, #9b4b14 54%, #3a1208) !important;
    border-color: rgba(222, 143, 54, 0.58) !important;
    box-shadow: 0 0 0 1px rgba(255, 200, 117, 0.12), 0 0 22px rgba(188, 89, 23, 0.20), inset 0 1px rgba(255, 231, 190, 0.16) !important;
}

body.forum-page :where(.forum-home-widget--vote, .forum-widget-vote) {
    background:
        radial-gradient(circle at 80% 65%, rgba(183, 94, 24, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(39, 26, 17, 0.88), rgba(9, 8, 7, 0.96)) !important;
}

body.forum-page :where(
    a,
    .forum-topic-row-category,
    .forum-node-latest-link strong,
    .forum-topic-author-link strong,
    .forum-message-dialog-time,
    .forum-notification-status
) {
    color: #ffd27f !important;
}

body.forum-page :where(
    p,
    small,
    dd,
    dt,
    .forum-topic-summary,
    .forum-node-description,
    .forum-message-dialog-copy span,
    .forum-notification-meta,
    .forum-support-ticket-row
    .fi-market-card-meta
) {
    color: #d4c0a0 !important;
}

body.forum-page :where(
    .forum-topbar-nav a span,
    .forum-userbox-trigger span,
    .forum-board-action span,
    .forum-toolbar-button span,
    .forum-page-link span,
    .forum-users-side-nav a span,
    .forum-profile-tabs a span,
    .forum-notification-action span,
    .forum-support-ticket-action span
    button span
) {
    color: inherit !important;
}

body.forum-page :where(
    input,
    textarea,
    select,
    .forum-composer-textarea,
    .forum-editor-content
) {
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.96), rgba(6, 5, 4, 0.98)) !important;
    border-color: rgba(158, 99, 39, 0.34) !important;
    color: #fff1d3 !important;
}

body.forum-page :where(
    .forum-board-chip,
    .forum-topic-author-badge,
    .forum-profile-badge,
    .fi-market-badge
) {
    background: linear-gradient(180deg, rgba(72, 47, 22, 0.96), rgba(20, 14, 9, 0.98)) !important;
    border-color: rgba(212, 141, 55, 0.42) !important;
    color: #ffd98c !important;
}

/* Final matte bronze forum pass: keep this block last. */
body.forum-page {
    --fi-final-page: rgba(9, 7, 5, 0.78);
    --fi-final-panel: linear-gradient(145deg, rgba(45, 32, 22, 0.76), rgba(12, 10, 8, 0.94) 56%, rgba(6, 5, 4, 0.98));
    --fi-final-card: linear-gradient(145deg, rgba(34, 25, 18, 0.80), rgba(10, 8, 6, 0.95));
    --fi-final-card-soft: linear-gradient(145deg, rgba(58, 40, 25, 0.50), rgba(12, 10, 8, 0.92));
    --fi-final-flat: linear-gradient(180deg, rgba(22, 17, 12, 0.96), rgba(8, 7, 5, 0.98));
    --fi-final-hover: linear-gradient(180deg, rgba(93, 58, 26, 0.88), rgba(32, 22, 14, 0.98));
    --fi-final-active: linear-gradient(180deg, rgba(146, 79, 23, 0.88), rgba(76, 39, 17, 0.96));
    --fi-final-border: rgba(165, 105, 47, 0.35);
    --fi-final-border-hot: rgba(215, 151, 74, 0.52);
    --fi-final-text: #f4e6cf;
    --fi-final-soft: #cdb99b;
    --fi-final-muted: #a99474;
    --fi-final-accent: #d4a45d;
    --fi-final-shadow: 0 18px 42px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 228, 176, 0.045);
}

body.forum-page .forum-shell,
body.forum-page .forum-main,
body.forum-page .forum-layout,
body.forum-page .forum-content {
    background: #01010142 !important;
}

body.forum-page :where(
    .forum-topbar,
    .forum-breadcrumb,
    .forum-toolbar,
    .forum-main-card,
    .forum-category-heading,
    .forum-page-hero,
    .forum-section-hero,
    .forum-support-page,
    .forum-support-panel,
    .forum-support-list,
    .forum-users-overview,
    .forum-user-directory,
    .forum-users-sidebar,
    .forum-profile-page,
    .forum-profile-hero,
    .forum-profile-tab-content,
    .forum-profile-tab-panel,
    .forum-profile-info-grid,
    .forum-messages-panel,
    .forum-messages-panel-head,
    .forum-message-thread,
    .forum-notifications-panel,
    .forum-settings-panel,
    .forum-topic-page,
    .forum-topic-list,
    .forum-topic-table,
    .forum-reply-box,
    .forum-composer-form
) {
    background: var(--fi-final-panel) !important;
    border: 1px solid var(--fi-final-border) !important;
    color: var(--fi-final-text) !important;
    box-shadow: var(--fi-final-shadow) !important;
    backdrop-filter: blur(13px) saturate(112%) !important;
}

body.forum-page :where(
    .forum-home-stat-card,
    .forum-board-card,
    .forum-section-card,
    .forum-section-create-box,
    .forum-topic-row,
    .forum-topic-table-head,
    .forum-node,
    .forum-node-meta,
    .forum-topic-row-last,
    .forum-topic-author,
    .forum-reply,
    .forum-reply-content,
    .forum-message-dialog,
    .forum-message-bubble,
    .forum-message-bubble.is-own,
    .forum-message-trade-card,
    .forum-notification-card,
    .forum-support-ticket,
    .forum-overview-user,
    .forum-user-card,
    .forum-directory-card,
    .forum-follow-card,
    .forum-userbox-panel,
    .forum-userbox-stat,
    .forum-users-sidebar-card,
    .forum-users-overview-card,
    .forum-user-card-stats div,
    .forum-user-card-identifiers > div,
    .forum-user-card-info-pill,
    .forum-home-widget,
    .forum-home-online-card,
    .forum-home-latest-item,
    .forum-home-user-row,
    .forum-online-stat,
    .forum-online-stats,
    .forum-online-stats div,
    .forum-mini-stat,
    .forum-widget-stat,
    .forum-profile-metrics > div,
    .forum-profile-metrics div,
    .forum-profile-stat,
    .forum-profile-info-card,
    .forum-profile-character-card,
    .forum-profile-topic-card,
    .forum-profile-topic,
    .forum-profile-ai-panel,
    .forum-profile-trade-rating,
    .forum-profile-statusline,
    .forum-settings-card,
    .forum-help-card,
    .forum-empty-state,
    .fi-notification-card,
    .fi-market-card,
    .fi-market-order-card,
    .fi-market-detail-card
) {
    background: var(--fi-final-card) !important;
    border: 1px solid rgb(35 23 11) !important;
    color: var(--fi-final-text) !important;
    box-shadow: 0 12px 32px rgb(0 0 0), inset 0 1px rgb(59 44 16 / 10%) !important;
    backdrop-filter: blur(20px) saturate(108%) !important;
}

body.forum-page :where(
    .forum-topic-row:hover,
    .forum-board-card:hover,
    .forum-section-card:hover,
    .forum-user-card:hover,
    .forum-directory-card:hover,
    .forum-follow-card:hover,
    .forum-notification-card:hover,
    .forum-message-dialog:hover,
    .forum-message-dialog.is-active,
    .forum-support-ticket:hover,
    .fi-notification-card:hover,
    .fi-market-card:hover,
    .fi-market-order-card:hover
) {
    background: var(--fi-final-card-soft) !important;
    border-color: var(--fi-final-border-hot) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(205, 134, 62, 0.10) !important;
}

body.forum-page :where(
    .forum-topbar-nav a,
    .forum-icon-button,
    .forum-socials a,
    .forum-language-switch a,
    .forum-userbox-trigger,
    .forum-auth-button,
    .forum-board-action,
    .forum-toolbar-button,
    .forum-page-link,
    .forum-users-side-nav a,
    .forum-profile-tabs a,
    .forum-profile-actions a,
    .forum-profile-actions button,
    .forum-profile-ai-button,
    .forum-support-ticket-action,
    .forum-notification-action,
    .forum-editor-tool,
    .forum-editor-select,
    .forum-submit-button,
    .forum-button,
    .forum-pagination a,
    .fi-market-filter,
    .fi-market-action,
    .fi-market-tab,
    .fi-market-submit,
    button
) {
    background: var(--fi-final-flat) !important;
    border: 1px solid var(--fi-final-border) !important;
    color: var(--fi-final-text) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92) !important;
    box-shadow: inset 0 1px rgba(255, 228, 176, 0.05), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

body.forum-page :where(
    .forum-topbar-nav a:hover,
    .forum-topbar-nav a:focus-visible,
    .forum-topbar-nav a.is-active,
    .forum-socials a:hover,
    .forum-language-switch a:hover,
    .forum-language-switch a.is-active,
    .forum-userbox-trigger:hover,
    .forum-auth-button:hover,
    .forum-board-action:hover,
    .forum-toolbar-button:hover,
    .forum-toolbar-button--primary,
    .forum-page-link:hover,
    .forum-page-link.is-active,
    .forum-users-side-nav a:hover,
    .forum-users-side-nav a.is-active,
    .forum-profile-tabs a:hover,
    .forum-profile-tabs a.is-active,
    .forum-profile-actions a:hover,
    .forum-profile-actions button:hover,
    .forum-profile-ai-button:hover,
    .forum-support-ticket-action:hover,
    .forum-support-ticket-action--view,
    .forum-notification-action:hover,
    .forum-editor-tool:hover,
    .forum-submit-button:hover,
    .forum-button:hover,
    .fi-market-filter:hover,
    .fi-market-filter.is-active,
    .fi-market-action:hover,
    .fi-market-tab.is-active,
    .fi-market-submit:hover
) {
    background: var(--fi-final-hover) !important;
    border-color: var(--fi-final-border-hot) !important;
    color: #fff0d2 !important;
    box-shadow: 0 0 0 1px rgba(218, 152, 75, 0.10), 0 10px 24px rgba(0, 0, 0, 0.30), inset 0 1px rgba(255, 230, 180, 0.12) !important;
}

body.forum-page :where(
    .forum-topbar-nav a.is-active,
    .forum-language-switch a.is-active,
    .forum-users-side-nav a.is-active,
    .forum-profile-tabs a.is-active
) {
    background: var(--fi-final-active) !important;
    border-color: rgba(218, 150, 72, 0.62) !important;
}

body.forum-page :where(
    .forum-board-chip,
    .forum-page-kicker,
    .forum-category-kicker,
    .forum-section-kicker,
    .forum-header-badge,
    .forum-topic-author-badge,
    .forum-online-pill,
    .forum-notification-status,
    .fi-market-badge
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    background: linear-gradient(180deg, rgba(61, 39, 20, 0.94), rgba(16, 12, 8, 0.98)) !important;
    border: 1px solid rgba(197, 129, 57, 0.42) !important;
    color: #e8c27e !important;
    box-shadow: inset 0 1px rgba(255, 224, 170, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

body.forum-page :where(
    h1,
    h2,
    h3,
    h4,
    .forum-page-title,
    .forum-topic-row-title,
    .forum-node-title,
    .forum-user-card-login,
    .forum-profile-name,
    .forum-profile-username,
    .forum-notification-title,
    .fi-market-title
) {
    color: #fff1d3 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.70), 0 0 16px rgba(176, 102, 36, 0.12) !important;
}

body.forum-page :where(
    a,
    .forum-topic-row-category,
    .forum-node-latest-link strong,
    .forum-topic-author-link strong,
    .forum-message-dialog-time,
    .forum-user-card-login,
    .forum-profile-metrics dd,
    .forum-profile-stat dd,
    .fi-market-price
) {
    color: #e0e0e0 !important;
}

body.forum-page :where(
    p,
    small,
    dd,
    dt,
    label,
    .forum-topic-summary,
    .forum-node-description,
    .forum-message-dialog-copy span,
    .forum-notification-meta,
    .forum-support-ticket-row,
    .forum-user-card-copy,
    .forum-profile-metrics dt,
    .forum-profile-stat dt,
    .forum-profile-statusline,
    .fi-market-card-meta
) {
    color: var(--fi-final-soft) !important;
}

body.forum-page :where(
    input,
    textarea,
    select,
    .forum-composer-textarea,
    .forum-editor-content,
    .forum-search-input
) {
    background: linear-gradient(180deg, rgba(13, 10, 7, 0.96), rgba(5, 4, 3, 0.98)) !important;
    border: -11px solid rgba(150, 93, 38, 0.38) !important;
    color: #f7e6c4 !important;
    box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.34) !important;
}

body.forum-page :where(input::placeholder, textarea::placeholder) {
    color: rgba(205, 185, 155, 0.62) !important;
}

body.forum-page :where(
    .forum-home-board-icon,
    .forum-board-icon,
    .forum-section-icon,
    .forum-home-stat-icon,
    .forum-topic-row-avatar,
    .forum-node-meta-avatar,
    .forum-message-dialog img,
    .forum-notification-card img,
    .forum-user-card-main img,
    .forum-profile-avatar
) {
    position: relative !important;
    background:
        radial-gradient(circle at 42% 26%, rgba(218, 153, 76, 0.30), transparent 44%),
        linear-gradient(180deg, rgba(64, 42, 23, 0.96), rgba(12, 9, 6, 0.98)) !important;
    border-color: rgba(212, 141, 62, 0.58) !important;
    color: var(--fi-final-accent) !important;
    box-shadow: 0 0 0 1px rgba(219, 151, 72, 0.12), 0 10px 24px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 225, 170, 0.08) !important;
}

body.forum-page :where(.forum-topic-row-avatar, .forum-node-meta-avatar, .forum-home-board-icon, .forum-board-icon, .forum-section-icon) {
    overflow: hidden !important;
}

body.forum-page :where(.forum-topic-row-avatar, .forum-node-meta-avatar, .forum-home-board-icon, .forum-board-icon, .forum-section-icon)::before {
    content: "" !important;
    position: absolute !important;
    inset: -2px !important;
    border-radius: inherit !important;
    background: conic-gradient(from 0deg, transparent, rgba(212, 142, 65, 0.26), transparent 45%, rgba(120, 72, 29, 0.20), transparent 78%) !important;
    opacity: 0.72 !important;
    animation: forumGoldOrbit 7s linear infinite !important;
    pointer-events: none !important;
}

body.forum-page :where(.forum-topic-row-avatar img, .forum-node-meta-avatar img, .forum-home-board-icon img, .forum-board-icon img, .forum-section-icon img) {
    position: relative !important;
    z-index: 1 !important;
}

body.forum-page .forum-topic-row:hover :where(.forum-topic-row-avatar, .forum-node-meta-avatar)::before,
body.forum-page :where(.forum-board-card:hover .forum-board-icon, .forum-section-card:hover .forum-section-icon)::before {
    opacity: 1 !important;
}

body.forum-page :where(.forum-notification-card, .forum-message-bubble, .forum-message-bubble.is-own, .forum-profile-topic-card, .forum-profile-publication-card) {
    background:
        linear-gradient(90deg, rgba(97, 59, 27, 0.24), transparent 28%),
        var(--fi-final-card) !important;
}

body.forum-page :where(.forum-notification-card)::before {
    background: linear-gradient(180deg, rgba(213, 144, 66, 0.74), rgba(92, 48, 18, 0.22)) !important;
}

body.forum-page .forum-profile-hero,
body.forum-page .forum-profile-hero-inner,
body.forum-page .forum-profile-hero-media,
body.forum-page .forum-profile-hero::before,
body.forum-page .forum-profile-hero-media::after {
    background-color: transparent !important;
    border-color: rgba(174, 109, 45, 0.42) !important;
}

body.forum-page .forum-profile-hero::after {
    background:
        radial-gradient(circle at 72% 35%, rgba(155, 79, 24, 0.18), transparent 34%),
        linear-gradient(90deg, rgba(7, 6, 5, 0.92), rgba(47, 31, 20, 0.52), rgba(8, 7, 6, 0.90)) !important;
}

body.forum-page :where(.forum-profile-metrics > div, .forum-profile-metrics div, .forum-profile-stat, .forum-profile-ai-panel) {
    background:
        radial-gradient(circle at 16% 14%, rgba(206, 139, 62, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(23, 17, 12, 0.92), rgba(6, 5, 4, 0.96)) !important;
}

body.forum-page :where(.forum-profile-metrics dt i, .forum-profile-stat dt i, .forum-user-card-info-pill i) {
    color: var(--fi-final-accent) !important;
}

body.forum-page.forum-page--users :where(.forum-page-hero, .forum-section-hero, .forum-users-overview > header),
body.forum-page.forum-page--latest :where(.forum-page-hero, .forum-section-hero),
body.forum-page.forum-page--notifications :where(.forum-page-hero, .forum-section-hero),
body.forum-page.forum-page--support :where(.forum-page-hero, .forum-section-hero) {
    display: block !important;
    padding: 20px 22px !important;
    min-height: auto !important;
}

body.forum-page.forum-page--users :where(.forum-page-kicker, .forum-section-kicker),
body.forum-page.forum-page--latest :where(.forum-page-kicker, .forum-section-kicker),
body.forum-page.forum-page--notifications :where(.forum-page-kicker, .forum-section-kicker),
body.forum-page.forum-page--support :where(.forum-page-kicker, .forum-section-kicker) {
    margin: 0 0 10px !important;
}

body.forum-page :where(.forum-home-widget--play, .forum-sidebar-play, .forum-play-card) {
    background:
        radial-gradient(circle at 14% 22%, rgba(222, 154, 75, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(82, 43, 18, 0.96), rgba(139, 75, 22, 0.82), rgba(43, 18, 10, 0.98)) !important;
    border-color: rgba(216, 145, 66, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(218, 152, 75, 0.10), 0 0 24px rgba(166, 82, 25, 0.18), inset 0 1px rgba(255, 225, 170, 0.12) !important;
}

body.forum-page :where(.forum-home-widget--vote, .forum-widget-vote, .forum-sidebar-vote) {
    background:
        radial-gradient(circle at 82% 70%, rgba(112, 61, 25, 0.20), transparent 36%),
        linear-gradient(145deg, rgba(36, 25, 17, 0.88), rgba(8, 7, 5, 0.97)) !important;
}

body.forum-page :where(.forum-topic-table-head, .forum-section-list-head, .forum-list-head, .forum-users-table-head) {
    background: linear-gradient(180deg, rgba(34, 24, 16, 0.90), rgba(8, 7, 5, 0.98)) !important;
    border-color: rgba(154, 97, 39, 0.32) !important;
    color: var(--fi-final-soft) !important;
}

body.forum-page :where(.forum-online-stat strong, .forum-search-card-stats strong, .forum-userbox-stat strong, .forum-home-stat-card strong) {
    color: #f2d39a !important;
}

body.forum-page :where(.forum-online-stat span, .forum-search-card-stats span, .forum-userbox-stat span, .forum-home-stat-card span) {
    color: var(--fi-final-soft) !important;
}

body.forum-page :where(.forum-notification-card, .forum-topic-row, .forum-user-card, .forum-profile-topic-card) {
    border-radius: 16px !important;
}

body.forum-page :where(.forum-topic-row-last, .forum-node-meta, .forum-topic-row-stats) {
    background:
        radial-gradient(circle at 20% 30%, rgba(213, 143, 66, 0.09), transparent 34%),
        linear-gradient(145deg, rgba(24, 17, 11, 0.88), rgba(7, 6, 4, 0.94)) !important;
}

body.forum-page :where(.forum-topic-row-last img, .forum-node-meta-avatar img) {
    border-radius: 12px !important;
}

body.forum-page :where(.forum-breadcrumb a, .forum-breadcrumb span, .forum-breadcrumb i) {
    color: #e4c17f !important;
}

body.forum-page :where(.forum-profile-statusline strong, .forum-profile-roleline strong) {
    color: #efd09a !important;
}

body.forum-page :where(.forum-notification-card.is-unread, .forum-message-dialog.is-unread, .fi-notification-card.is-unread) {
    background:
        linear-gradient(90deg, rgba(132, 75, 27, 0.22), transparent 36%),
        var(--fi-final-card) !important;
    border-color: rgba(214, 146, 68, 0.46) !important;
}

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

/* Targeted cleanup: only avatars glow in topic rows, viewer stays centered. */
body.forum-page :where(.forum-topic-row-last, .forum-node-meta, .forum-topic-row-stats) {
    background: transparent !important;
    box-shadow: none !important;
}

body.forum-page :where(.forum-topic-row-stats, .forum-topic-row-last) {
    border-color: rgba(126, 82, 36, 0.42) !important;
}

body.forum-page :where(.forum-topic-row-last .forum-node-meta-author, .forum-topic-row-last span, .forum-topic-row-stats strong, .forum-topic-row-stats span) {
    background: transparent !important;
    box-shadow: none !important;
}

body.forum-page .forum-topic-row-last .forum-node-meta-avatar {
    isolation: isolate !important;
}
