.forum-follow-card .forum-user-card-copy,
.forum-directory-card .forum-user-card-copy {
    justify-content: flex-start;
}

.forum-overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.forum-overview-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.forum-users-sidebar-card h2, 
.forum-overview-card-head h2 {
    margin: 0;
    line-height: 1.1;
}

.forum-overview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-overview-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-overview-user-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-overview-user-main img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
}

.forum-overview-user-main span {
    font-weight: 700;
    line-height: 1.25;
}

.forum-overview-more {
    margin-top: auto;
    justify-content: center;
}

.forum-topic-table-body {
    gap: 10px;
}

.forum-topic-row {
    border-top: 0;
    border-radius: 16px;
    background: rgba(48, 58, 96, 0.72);
    box-shadow: inset 0 0 0 1px rgba(175, 189, 243, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forum-topic-row:hover,
.forum-topic-row:focus-within {
    transform: translateY(-2px);
    background: rgba(57, 70, 114, 0.88);
    box-shadow: 0 18px 38px rgba(9, 14, 27, 0.24), inset 0 0 0 1px rgba(169, 199, 255, 0.22);
}

.forum-topic-row-main h3 {
    transition: color 0.18s ease;
}

.forum-topic-row:hover .forum-topic-row-main h3,
.forum-topic-row:focus-within .forum-topic-row-main h3,
.forum-topic-row:hover .forum-topic-row-category a,
.forum-topic-row:focus-within .forum-topic-row-category a {
    color: #ffffff;
}

.forum-topic-row-category {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.forum-topic-row-category span {
    color: #9eabd1;
}

.forum-topic-row-category a {
    font-weight: 900;
    transform: translateY(4px); /* �����-������������ */
}

.forum-topic-row-stats {
    gap: 4px 14px;
}

.forum-topic-row-last {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.forum-topic-row-last strong {
    line-height: 1.2;
}

@media (max-width: 1180px) {
    .forum-overview-card {
        min-height: 0;
    }
}

@media (max-width: 820px) {
    .forum-overview-user {
        align-items: flex-start;
    }

    .forum-topic-row-last {
        grid-template-columns: minmax(0, 1fr);
    }
}

.forum-section-create-box {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(34, 42, 74, 0.78);
    box-shadow: inset 0 0 0 1px rgba(173, 189, 245, 0.08);
}

.forum-section-create-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-section-create-copy strong {
    color: #f6f8ff;
    font-size: 18px;
    line-height: 1.2;
}

.forum-section-create-copy p {
    margin: 0;
    color: #a9b6dd;
    line-height: 1.45;
}

.forum-user-meta-grid span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 7px 10px;
}

.forum-user-meta-grid strong,
.forum-profile-metrics dt,
.forum-profile-info-grid strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.forum-user-meta-grid strong i,
.forum-profile-metrics dt i,
.forum-profile-info-grid strong i {
    flex: 0 0 auto;
    width: 14px;
    color: #9eb5ff;
    font-size: 12px;
    text-align: center;
}

.forum-user-meta-grid strong span,
.forum-profile-metrics dt span,
.forum-profile-info-grid strong span {
    line-height: 1.15;
}

.forum-user-meta-grid em {
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 800;
    color: #f3f6ff;
    line-height: 1.1;
    text-align: right;
}

.forum-follow-card,
.forum-directory-card {
    width: min(100%, 920px);
    min-height: 126px;
    padding: 14px 18px;
}

.forum-follow-card .forum-user-meta-grid,
.forum-directory-card .forum-user-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.forum-follow-card .forum-user-card-copy,
.forum-directory-card .forum-user-card-copy {
    gap: 10px;
}

.forum-follow-card .forum-user-meta-grid strong span,
.forum-directory-card .forum-user-meta-grid strong span {
    line-height: 1.1;
}

.forum-user-card-identifiers {
    display: grid;
    grid-template-columns: 0.98fr 1fr;
    gap: 10px;
}

/* �������� */
.forum-user-card-identifiers > div {
    height: 70px; /* ?? ���������� ������ */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ������ ����� */
.forum-user-card-identifiers > div > :last-child {
    align-self: flex-start; /* ��� center ���� ����� */
}

.forum-user-card-info-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(24, 31, 58, 0.9);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
}

.forum-user-card-info-pill strong {
    flex: 1 1 auto;
    margin: 0;
    color: #9eabd1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-user-card-info-pill > span {
    flex: 0 0 auto;
    min-width: 0;
    padding-left: 14px;
    color: #f3f6ff;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.forum-profile-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
}

.forum-profile-metrics dt span {
    line-height: 1.1;
}

.forum-profile-metrics dd {
    margin: 0;
    flex: 0 0 auto;
    text-align: right;
}

.forum-profile-info-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 9px 12px;
    border-radius: 12px;
}

.forum-profile-info-grid strong span {
    line-height: 1.1;
}

.forum-profile-info-grid > div > span {
    flex: 0 0 auto;
    text-align: right;
}

.forum-profile-statusline {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(24, 31, 58, 0.9);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
    flex-wrap: nowrap;
    align-content: center;
}

.forum-profile-statusline strong {
    color: #9eabd1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-profile-statusline span {
    color: #f3f6ff;
    font-weight: 600;
    line-height: 1.2;
}

.forum-profile-publication-stats {
    display: grid;
    gap: 10px;
    justify-items: stretch;
    align-content: center;
    min-width: 136px;
}

.forum-profile-publication-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgb(60 36 14);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
}

.forum-profile-publication-stats > div span {
    color: #9eabd1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.forum-profile-publication-stats > div strong {
    color: #f3f6ff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.forum-node-icon,
.forum-node-icon *,
.forum-node-body,
.forum-node-body * {
    pointer-events: none;
}

.forum-node-meta,
.forum-node-meta * {
    pointer-events: auto;
}

.forum-page--section .forum-category-heading-actions,
.forum-page--section .forum-section-tabs {
    display: none !important;
}

.forum-topic-table-head {
    min-height: 52px;
    margin-bottom: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    justify-content: stretch;
}

.forum-topic-table-head > div {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.forum-page--latest .forum-topic-table-head,
.forum-page--section .forum-topic-table-head {
    grid-template-columns: 66px minmax(0, 1fr) 170px 190px;
}

.forum-page--latest .forum-topic-table-head > :nth-child(3),
.forum-page--latest .forum-topic-table-head > :nth-child(4),
.forum-page--section .forum-topic-table-head > :nth-child(3),
.forum-page--section .forum-topic-table-head > :nth-child(4) {
    justify-content: center;
    text-align: center;
}

.forum-topic-row-main > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.forum-topic-row-category {
    gap: 6px;
    margin-bottom: 4px;
}

.forum-topic-row-category span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.forum-topic-row-last {
    align-self: center;
    justify-items: end;
}

.forum-topic-row-last > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.forum-topic-row-last strong,
.forum-topic-row-last span {
    display: block;
    width: 100%;
    text-align: right;
    line-height: 1.2;
}

.forum-page--latest .forum-topic-row-main,
.forum-page--section .forum-topic-row-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.forum-page--latest .forum-topic-row-main p,
.forum-page--section .forum-topic-row-main p {
    margin: 0;
}

.forum-page--latest .forum-topic-row-main > span,
.forum-page--section .forum-topic-row-main > span {
    margin-top: 2px;
}

.forum-page--latest .forum-topic-row {
    grid-template-columns: 66px minmax(0, 1fr) 160px 190px;
}

.forum-page--latest .forum-topic-row-last {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.forum-page--latest .forum-topic-row-last strong,
.forum-page--latest .forum-topic-row-last span {
    width: auto;
    text-align: center;
}

.forum-page--section .forum-topic-row-last {
    align-self: center;
}

.forum-page--section .forum-topic-row-last > div {
    align-items: flex-start;
}

.forum-support-grid {
    display: grid;
    gap: 18px;
}

.forum-layout--support-full {
    grid-template-columns: minmax(0, 1fr);
}

.forum-content--support .forum-category-card {
    min-height: clamp(620px, calc(100vh - 270px), 920px);
    border-color: rgba(255, 184, 84, 0.16);
    background:
        linear-gradient(135deg, rgba(31, 41, 83, 0.9), rgba(16, 20, 44, 0.84)),
        rgba(12, 15, 34, 0.86);
    box-shadow: 0 22px 54px rgba(5, 8, 20, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.forum-support-form-card,
.forum-support-list-card {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(18, 21, 45, 0.9), rgba(10, 13, 31, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 38px rgba(4, 7, 20, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.forum-support-list-card {
    min-width: 320px;
    max-height: clamp(520px, calc(100vh - 330px), 820px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.forum-support-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 470px);
    align-items: stretch;
}

.forum-support-form-card label.forum-field {
    display: grid;
    gap: 9px;
    margin-bottom: 4px;
    padding: 2px 12px;
    align-items: start;
    justify-items: stretch;
    grid-auto-flow: row;
    justify-content: stretch;
    align-content: center;
}

.forum-support-form-card .forum-field input,
.forum-support-form-card .forum-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f3f6ff;
}

.forum-support-form-card .forum-field textarea {
    min-height: 160px;
    resize: vertical;
}

.forum-support-form-card .forum-composer-submit {
    display: flex;
    justify-content: flex-end;
}

.forum-support-list-header h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #ffffff;
}

.forum-support-list {
    display: grid;
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
}

.forum-support-ticket {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(31, 39, 75, 0.78), rgba(18, 22, 45, 0.72));
    border: 1px solid rgba(255, 188, 92, 0.12);
    display: grid;
    gap: 10px;
    min-width: 0;
}

.forum-support-ticket--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.forum-support-ticket--link:hover,
.forum-support-ticket--link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(160, 185, 255, 0.32);
    background: rgba(123, 146, 255, 0.08);
    box-shadow: 0 12px 24px rgba(7, 10, 26, 0.18);
}

.forum-support-ticket-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.forum-support-ticket-title strong {
    color: #f3f6ff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-support-ticket-title span {
    color: #9ed0ff;
    font-size: 0.92rem;
    flex: 0 0 auto;
}

.forum-support-ticket-title span.is-closed {
    color: #a8b1cf;
}

.forum-support-ticket-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #a2b0dd;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.forum-support-ticket p {
    margin: 0;
    color: #d4ddff;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.forum-support-ticket:target {
    border-color: rgba(155, 116, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(155, 116, 255, 0.18),
        0 18px 36px rgba(18, 12, 46, 0.28);
}

.forum-support-ticket-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid rgba(170, 190, 255, 0.12);
}

.forum-support-ticket-close-form {
    margin: 0;
}

.forum-support-ticket-action {
    min-width: 126px;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(9, 12, 28, 0.24);
}

.forum-support-ticket-action--view {
    background: linear-gradient(180deg, #7ea8ff, #546ed6);
}

.forum-support-ticket-action--close {
    background: linear-gradient(180deg, #a064ff, #7851ec);
}

.forum-support-ticket-action--closed {
    cursor: default;
    color: #c8d1ee;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.forum-support-ticket-action:hover,
.forum-support-ticket-action:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.forum-notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.forum-notification-read-form {
    margin: 0;
}

.forum-notification-action {
    min-width: 96px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 0.78rem;
}

.forum-reaction-palette {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(9, 13, 32, 0.46);
    border: 1px solid rgba(160, 184, 255, 0.12);
}

.forum-reaction-chip {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.forum-reaction-chip:hover,
.forum-reaction-chip:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 190, 90, 0.18);
}

.forum-reaction-chip.is-active {
    background: linear-gradient(180deg, #ffbe5a, #f08b2b);
    box-shadow: 0 10px 18px rgba(240, 139, 43, 0.28);
}

.forum-reaction-chip span {
    line-height: 1;
}

.forum-reply-actionsline {
    flex-wrap: wrap;
    gap: 8px;
}

.forum-toolbar-button--reply {
    background: rgba(126, 168, 255, 0.14);
}

.forum-reply-target,
.forum-reply-parent-note {
    border-radius: 16px;
    border: 1px solid rgba(255, 190, 90, 0.18);
    background: linear-gradient(135deg, rgba(255, 184, 84, 0.13), rgba(93, 111, 206, 0.14));
    color: #eaf0ff;
}

.forum-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.forum-reply-target[hidden] {
    display: none;
}

.forum-reply-target span,
.forum-reply-parent-note span {
    display: block;
    color: #ffcf83;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.forum-reply-target strong,
.forum-reply-parent-note a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.forum-reply-target p,
.forum-reply-parent-note p {
    margin: 4px 0 0;
    color: #cfd8ff;
    line-height: 1.45;
}

.forum-reply-target-clear {
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.forum-reply-parent-note {
    padding: 12px 14px;
    margin-bottom: 14px;
}

.forum-support-empty,
.forum-support-guest {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4ddff;
}

.forum-support-empty p:not(:first-child) {
    margin-top: 10px;
    color: #a2b0dd;
}

@media (max-width: 1000px) {
    .forum-support-grid {
        grid-template-columns: 1fr;
    }

    .forum-support-list-card {
        max-height: none;
    }
}

@media (max-width: 560px) {
    .forum-support-ticket-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-support-ticket-action,
    .forum-support-ticket-close-form {
        width: 100%;
    }
}


.forum-page--section .forum-topic-row-last strong,
.forum-page--section .forum-topic-row-last span {
    width: auto;
    text-align: left;
}

.forum-page--section .forum-topic-row-link {
    z-index: 5;
}

/* ��� ��� ��� ������ */
.forum-page--section .forum-topic-row > *:not(.forum-topic-row-link) {
    pointer-events: none;
    font-size: 10px;
}

.forum-message-dialog {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-height: 96px;
    padding: 12px 14px;
}

.forum-message-dialog-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

.forum-message-dialog-copy strong {
    line-height: 1.2;
    display: block;
}

.forum-message-dialog-copy span {
    line-height: 1.2;
    display: block;
}

.forum-message-dialog-copy p {
    margin: 2px 0 0;
    line-height: 1.25;
}

.forum-message-dialog-meta {
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.forum-message-dialog-meta span {
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.forum-message-dialog-meta strong {
    align-self: flex-end;
}

.forum-message-attachments {
    gap: 10px;
}

.forum-message-attachment {
    align-items: center;
    gap: 12px;
}

.forum-message-attachment[hidden] {
    display: none !important;
}

.forum-message-attachment-main strong {
    margin: 0 0 2px;
}

.forum-message-attachment .forum-toolbar-button--danger {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.forum-message-attachment .forum-toolbar-button--danger:hover,
.forum-message-attachment .forum-toolbar-button--danger:focus-visible {
    background: rgba(177, 71, 104, 0.92);
    box-shadow: 0 12px 24px rgba(87, 22, 42, 0.28);
    transform: translateY(-1px);
}

.forum-sidebar-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-sidebar-search-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(168, 183, 240, 0.12);
    background: rgba(23, 31, 56, 0.82);
    color: #eef3ff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forum-sidebar-search-input:hover,
.forum-sidebar-search-input:focus {
    outline: none;
    border-color: rgba(162, 189, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(113, 147, 255, 0.14);
    background: rgba(28, 37, 67, 0.94);
}

.forum-widget-button--compact {
    width: 100%;
    justify-content: center;
}

.forum-profile-posts--search {
    gap: 14px;
}

.forum-profile-search-meta {
    padding-top: 2px;
    border-top: 1px solid rgba(173, 189, 245, 0.08);
}

.forum-profile-search-meta strong {
    display: block;
    margin-bottom: 6px;
}

.forum-profile-search-meta p,
.forum-profile-search-meta span {
    margin: 0;
    display: block;
    line-height: 1.4;
}

.forum-profile-search-meta p {
    color: #f2f6ff;
    font-weight: 700;
}

.forum-profile-search-meta span {
    margin-top: 4px;
    color: #acb8dc;
}

.forum-field--gender {
    justify-content: flex-start;
}

.forum-settings-gender-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.forum-settings-gender-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(164, 180, 239, 0.16);
    background: rgba(16, 23, 43, 0.86);
    color: #eef3ff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.forum-settings-gender-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.forum-settings-gender-option i,
.forum-settings-gender-option strong {
    position: relative;
    z-index: 1;
}

.forum-settings-gender-option i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(127, 156, 255, 0.14);
}

.forum-settings-gender-option--female.is-selected,
.forum-settings-gender-option--female:has(input:checked) {
    border-color: rgba(255, 122, 184, 0.72);
    background: linear-gradient(135deg, rgba(87, 29, 73, 0.9), rgba(38, 31, 65, 0.9));
    box-shadow: 0 14px 28px rgba(143, 51, 114, 0.24);
}

.forum-settings-gender-option--male.is-selected,
.forum-settings-gender-option--male:has(input:checked) {
    border-color: rgba(104, 169, 255, 0.72);
    background: linear-gradient(135deg, rgba(28, 56, 98, 0.9), rgba(31, 38, 75, 0.9));
    box-shadow: 0 14px 28px rgba(50, 95, 170, 0.24);
}

.forum-settings-gender-option:hover,
.forum-settings-gender-option:focus-within {
    transform: translateY(-1px);
    border-color: rgba(190, 204, 255, 0.38);
}

@media (max-width: 990px) {
    .forum-user-card-identifiers {
        grid-template-columns: minmax(0, 1fr);
    }

    .forum-profile-statusline {
        width: 100%;
        justify-content: space-between;
    }

    .forum-section-create-box {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-message-dialog {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .forum-message-dialog-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        padding-top: 0;
    }

    .forum-message-dialog-meta span,
    .forum-message-dialog-meta strong {
        text-align: left;
    }

    .forum-user-meta-grid span,
    .forum-profile-metrics div,
    .forum-profile-info-grid div {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-user-meta-grid em,
    .forum-profile-metrics dd,
    .forum-profile-info-grid > div > span {
        text-align: left;
    }

    .forum-profile-publication-stats {
        width: 100%;
        min-width: 0;
    }

    .forum-settings-gender-switch {
        grid-template-columns: 1fr;
    }
}

/* Shared 2026 dark gold forum theme: removes old blue/purple panels across forum pages. */
body.forum-page {
    --forum-gold: #f0b255;
    --forum-gold-strong: #ff9d2d;
    --forum-orange: #d96f1f;
    --forum-bg-deep: #050505;
    --forum-panel-dark: rgba(10, 10, 10, 0.94);
    --forum-panel-soft: rgba(18, 16, 14, 0.9);
    --forum-panel-warm: rgba(31, 22, 15, 0.82);
    --forum-line-gold: rgba(255, 181, 74, 0.16);
    --forum-line-soft: rgba(255, 213, 150, 0.08);
    --forum-text-main: #f5ede2;
    --forum-text-muted: rgba(245, 234, 217, 0.66);
    color: var(--forum-text-main);
}

body.forum-page::before,
body.forum-page::after {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 154, 40, 0.08), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(255, 183, 83, 0.06), transparent 32%) !important;
    opacity: 0.9;
}

body.forum-page .forum-toolbar,
body.forum-page .forum-board-card,
body.forum-page .forum-widget,
body.forum-page .forum-category-heading,
body.forum-page .forum-category-card,
body.forum-page .forum-section-card,
body.forum-page .forum-section-create-box,
body.forum-page .forum-topic-card,
body.forum-page .forum-topic-post,
body.forum-page .forum-reply-card,
body.forum-page .forum-message-shell,
body.forum-page .forum-message-dialog,
body.forum-page .forum-message-thread,
body.forum-page .forum-notification-card,
body.forum-page .forum-user-card,
body.forum-page .forum-profile-hero,
body.forum-page .forum-profile-tab-panel,
body.forum-page .forum-settings-card,
body.forum-page .forum-composer,
body.forum-page .forum-support-panel,
body.forum-page .forum-support-card,
body.forum-page .forum-sidebar-card,
body.forum-page .forum-page-panel {
    border-color: var(--forum-line-gold) !important;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 161, 52, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(18, 16, 14, 0.94), rgba(7, 7, 7, 0.94)) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 232, 190, 0.045) !important;
}

body.forum-page .forum-toolbar {
    min-height: 70px;
}

body.forum-page .forum-board-chip,
body.forum-page .forum-breadcrumbs a,
body.forum-page .forum-category-heading span,
body.forum-page .forum-section-label,
body.forum-page .forum-pill,
body.forum-page .forum-profile-role,
body.forum-page .forum-profile-badge,
body.forum-page .forum-tab.is-active {
    border-color: rgb(79 53 19) !important;
    background: linear-gradient(180deg, rgb(218 147 52), rgb(209 121 38)) !important;
    color: #ffffff !important;
}

body.forum-page h1,
body.forum-page h2,
body.forum-page h3,
body.forum-page .forum-board-card h2,
body.forum-page .forum-category-heading h1,
body.forum-page .forum-category-heading h2,
body.forum-page .forum-topic-title,
body.forum-page .forum-profile-name {
    color: #fff2da !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

body.forum-page p,
body.forum-page small,
body.forum-page .forum-muted,
body.forum-page .forum-category-description,
body.forum-page .forum-board-card p,
body.forum-page .forum-widget p,
body.forum-page .forum-topic-meta,
body.forum-page .forum-profile-meta {
    color: var(--forum-text-muted) !important;
}

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

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

body.forum-page input,
body.forum-page textarea,
body.forum-page select,
body.forum-page .forum-input,
body.forum-page .forum-sidebar-search-input {
    border-color: rgba(255, 181, 74, 0.14) !important;
    background: rgba(8, 8, 8, 0.78) !important;
    color: #fff5e7 !important;
}

body.forum-page input:focus,
body.forum-page textarea:focus,
body.forum-page select:focus,
body.forum-page .forum-input:focus,
body.forum-page .forum-sidebar-search-input:focus {
    border-color: rgba(255, 181, 74, 0.34) !important;
    box-shadow: 0 0 0 3px rgba(255, 147, 37, 0.12) !important;
}


body.forum-page .forum-button--ghost,
body.forum-page .forum-widget-button--ghost,
body.forum-page .forum-auth-button--ghost {
    background: linear-gradient(180deg, rgba(24, 23, 21, 0.95), rgba(10, 10, 10, 0.95)) !important;
    color: #f6d08f !important;
}

body.forum-page .forum-layout,
body.forum-page .forum-two-column,
body.forum-page .forum-grid {
    color: var(--forum-text-main);
}

body.forum-page .forum-breadcrumbs,
body.forum-page .forum-social-strip {
    border-color: var(--forum-line-gold) !important;
    background: linear-gradient(180deg, rgba(17, 15, 13, 0.95), rgba(8, 8, 8, 0.95)) !important;
}

body.forum-page .forum-userbox-panel {
    border-color: rgba(255, 181, 74, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(18, 16, 14, 0.98), rgba(8, 8, 8, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 181, 74, 0.035) 0 1px, transparent 1px 12px) !important;
}
