body.frm-preview-page,
body.forum-page {
    background: var(--forum-darker);
}

body.frm-preview-page header.frm-header {
    display: none;
}

body.frm-preview-page main,
body.forum-page main {
    padding: 0;
}

.frm-shell {
    min-height: 80vh;
    padding: 30px 0 56px;
    background: var(--forum-darker);
}

.frm-container {
    max-width: 1280px;
}

.frm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: var(--forum-dark);
    border: 1px solid var(--forum-border);
}

.frm-hero__user.forum-user-info {
    margin-bottom: 0;
    min-width: 220px;
    align-items: flex-end;
}

.frm-hero__user .forum-user-actions {
    width: 100%;
}

.frm-main-search {
    margin-bottom: 1rem;
}

.frm-main-search .frm-search {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.frm-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--forum-primary);
    line-height: 1.2;
}

.frm-hero__subtitle {
    margin: 0;
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--forum-text-light);
    line-height: 1.55;
}

.frm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--forum-border);
    border-radius: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.frm-search:focus-within {
    border-color: var(--forum-primary);
    box-shadow: 0 0 0 2px rgba(247, 158, 11, 0.2);
}

.frm-search i {
    color: var(--forum-text-muted);
    font-size: 0.9rem;
}

.frm-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--forum-text);
    font-size: 0.9rem;
    outline: none;
}

.frm-search input::placeholder {
    color: var(--forum-text-muted);
}

.frm-search__submit {
    border: 1px solid var(--forum-primary);
    background: rgba(247, 158, 11, 0.15);
    color: var(--forum-primary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.frm-search__submit:hover,
.frm-search__submit:focus {
    background: rgba(247, 158, 11, 0.25);
    color: #ffbf47;
    outline: none;
}

.frm-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.frm-panel {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--forum-dark);
    border: 1px solid var(--forum-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.frm-panel:hover {
    border-color: rgba(247, 158, 11, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.frm-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--forum-primary);
    border-bottom: 1px solid var(--forum-border);
}

.frm-panel__title i {
    color: var(--forum-primary);
}

.frm-stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frm-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(58, 35, 135, 0.2);
    border-radius: 8px;
    border: 1px solid var(--forum-border);
}

.frm-stat-item--online .frm-stat__value {
    color: #5ee08a;
}

.frm-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forum-primary);
    line-height: 1.1;
    white-space: nowrap;
}

.frm-stat__label {
    font-size: 0.85rem;
    color: var(--forum-text-muted);
    font-weight: 600;
    line-height: 1.2;
}

.frm-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.frm-recent-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--forum-border);
}

.frm-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.frm-recent-item__title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--forum-text);
    line-height: 1.35;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.frm-recent-item__title:hover {
    color: var(--forum-primary);
    text-decoration: none;
}

.frm-recent-item__meta {
    font-size: 0.85rem;
    color: var(--forum-text-muted);
}

.frm-recent-item__author {
    color: var(--forum-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.frm-recent-item__author:hover {
    color: #FF8C00;
    text-decoration: none;
}

.frm-panel__divider {
    height: 1px;
    margin: 14px 0;
    background: var(--forum-border);
}

.frm-panel__title--sub {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.frm-online-title-dot {
    color: #5ee08a;
    font-size: 0.55rem;
    vertical-align: middle;
    margin-right: 4px;
}

.frm-online-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.frm-online-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--forum-border);
}

.frm-online-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.frm-online-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ee08a;
    box-shadow: 0 0 8px rgba(94, 224, 138, 0.45);
    flex-shrink: 0;
}

.frm-online-item__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--forum-primary);
    line-height: 1.3;
    word-break: break-word;
}

.frm-online-item__time {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--forum-text-muted);
    white-space: nowrap;
}

.frm-online-list--full .frm-online-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--forum-border);
}

.frm-online-list--full .frm-online-item:last-child {
    border-bottom: none;
}

.frm-online-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 14px 18px 18px;
}

.frm-online-group + .frm-online-group {
    padding-top: 14px;
    border-top: 1px solid var(--forum-border);
}

.frm-online-group__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--forum-primary);
}

.frm-online-inline {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--forum-text-light);
    word-break: break-word;
}

.frm-online-more {
    display: block;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(247, 158, 11, 0.35);
    background: rgba(247, 158, 11, 0.08);
    color: var(--forum-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.frm-online-more:hover {
    background: rgba(247, 158, 11, 0.16);
    border-color: rgba(247, 158, 11, 0.55);
    color: #ffbf47;
    text-decoration: none;
}

.frm-panel--link {
    padding: 10px;
}

.frm-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(247, 158, 11, 0.35);
    background: rgba(247, 158, 11, 0.08);
    color: var(--forum-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.frm-sidebar-link:hover {
    background: rgba(247, 158, 11, 0.16);
    border-color: rgba(247, 158, 11, 0.55);
    color: #ffbf47;
    text-decoration: none;
}

.frm-sidebar-link i {
    font-size: 0.95rem;
}

.frm-members-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frm-members-nav__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.frm-members-nav__btn:hover {
    background: rgba(247, 158, 11, 0.1);
    border-color: rgba(247, 158, 11, 0.35);
    color: #ffbf47;
}

.frm-members-nav__btn.is-active {
    background: rgba(247, 158, 11, 0.16);
    border-color: rgba(247, 158, 11, 0.55);
    color: #ffbf47;
}

.frm-members-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.frm-members-nav__label i {
    width: 14px;
    text-align: center;
}

.frm-members-nav__count {
    flex-shrink: 0;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.frm-recent-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
    line-height: 1.45;
}

.frm-topic--container .frm-topic__icon {
    color: var(--forum-primary);
}

.frm-container-table .frm-topic__last strong {
    display: none;
}

.frm-board {
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--forum-dark);
    border: 1px solid var(--forum-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.frm-board:hover {
    border-color: rgba(247, 158, 11, 0.6);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.frm-board--gold .frm-board__icon,
.frm-board--violet .frm-board__icon,
.frm-board--crimson .frm-board__icon {
    background: rgba(247, 158, 11, 0.1);
    color: var(--forum-primary);
    border-color: var(--forum-border);
}

.frm-board__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--forum-border);
    background: var(--forum-dark);
}

.frm-board__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 50%;
    border: 1px solid var(--forum-border);
    background: rgba(247, 158, 11, 0.1);
    color: var(--forum-primary);
}

.frm-board__info {
    flex: 1;
    min-width: 0;
}

.frm-board__title.forum-section-title {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    display: block;
    color: var(--forum-primary);
}

.frm-board__title.forum-section-title::after {
    width: 50px;
    height: 3px;
    bottom: -8px;
    background: var(--forum-primary);
}

.frm-board__desc.forum-section-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.frm-board__action {
    flex-shrink: 0;
}

.frm-topic-table__head,
.frm-topic {
    display: grid;
    grid-template-columns: 1fr 80px 110px 150px;
    column-gap: 20px;
    row-gap: 12px;
    align-items: center;
    padding: 1rem 1.25rem;
}

.frm-topic-table__head {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--forum-text-muted);
    border-bottom: 1px solid var(--forum-border);
    background: rgba(58, 35, 135, 0.2);
}

.frm-topic {
    border-bottom: 1px solid var(--forum-border);
    border-left: 3px solid transparent;
    background: rgba(58, 35, 135, 0.3);
    transition: all 0.2s ease;
}

.frm-topic:last-child {
    border-bottom: none;
}

.frm-topic:hover {
    background: rgba(58, 35, 135, 0.5);
    transform: translateX(3px);
    border-left-color: var(--forum-primary);
}

.frm-topic--pinned {
    background: rgba(58, 35, 135, 0.45);
    border-left-color: var(--forum-primary);
}

.frm-topic--locked .frm-topic__title {
    color: var(--forum-text-muted);
}

.frm-topic__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.frm-topic__icon {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    padding-top: 2px;
    color: var(--forum-primary);
    font-size: 0.95rem;
}

.frm-topic__icon--multi {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 28px;
}

.frm-topic__icon--multi .fa-lock {
    font-size: 0.78rem;
}

.frm-topic--locked .frm-topic__icon {
    color: #ff6b6b;
}

.frm-topic--locked.frm-topic--pinned .frm-topic__icon .fa-thumb-tack {
    color: var(--forum-primary);
}

.frm-topic--locked .frm-topic__icon .fa-lock {
    color: #ff6b6b;
}

.frm-topic__body {
    min-width: 0;
}

.frm-topic__title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forum-text);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.frm-topic__title:hover {
    color: var(--forum-primary);
    text-decoration: none;
}

.frm-topic__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
}

.frm-topic__stat {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--forum-text);
}

.frm-topic-table__head span:nth-child(3),
.frm-topic__stat:nth-child(3) {
    padding-right: 8px;
}

.frm-topic-table__head span:nth-child(4),
.frm-topic__last {
    padding-left: 4px;
}

.frm-topic__last {
    font-size: 0.85rem;
    color: var(--forum-text-muted);
    line-height: 1.35;
}

.frm-topic__last strong {
    display: block;
    color: var(--forum-text);
    font-weight: 600;
}

.frm-tag {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 4px;
    background: rgba(247, 158, 11, 0.15);
    color: var(--forum-primary);
    border: 1px solid var(--forum-border);
}

.frm-tag--hot {
    background: rgba(247, 158, 11, 0.25);
    color: #FF8C00;
}

.frm-topic-posts,
.frm-post-preview {
    margin-top: 8px;
    border-radius: 10px;
    background: var(--forum-dark);
    border: 1px solid var(--forum-border);
    overflow: hidden;
}

.frm-topic-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    overflow: visible;
}

.frm-topic-posts .frm-post {
    border-radius: 10px;
    border: 1px solid var(--forum-border);
    overflow: hidden;
    background: rgba(58, 35, 135, 0.15);
}

.frm-topic-posts .frm-post:first-of-type {
    border-top: 1px solid var(--forum-border);
}

.frm-breadcrumb {
    margin-bottom: 1rem;
}

.frm-topic-header {
    margin-bottom: 1.5rem;
}

.frm-topic-header__title {
    margin-bottom: 0.75rem;
}

.frm-topic-header--compact {
    padding: 0.95rem 1.1rem;
    margin-bottom: 1rem;
}

.frm-topic-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.frm-topic-header__text {
    min-width: 0;
    flex: 1;
}

.frm-topic-header__create {
    flex-shrink: 0;
    white-space: nowrap;
}

.frm-topic-header--compact .frm-topic-header__title {
    margin-bottom: 0;
}

.frm-topic-header--compact .forum-main-subtitle {
    margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
    .frm-topic-header__top {
        flex-direction: column;
        align-items: stretch;
    }

    .frm-topic-header__create {
        width: 100%;
        text-align: center;
    }
}

.frm-topic-badge {
    background: var(--forum-primary);
    color: #000;
    font-weight: 600;
}

.frm-topic-header__meta {
    color: var(--forum-text-muted);
    margin-left: 10px;
}

.frm-topic-header__meta strong {
    color: var(--forum-primary);
}

.frm-reply-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.frm-reply-box__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forum-primary);
}

.frm-reply-box__title i {
    margin-right: 8px;
}

.frm-reply-box__input {
    width: 100%;
    margin-bottom: 1rem;
}

.frm-reply-box__actions {
    display: flex;
    justify-content: flex-end;
}

.frm-reply-box.frm-notice {
    text-align: center;
    padding: 2rem 1.5rem;
}

.frm-notice__icon {
    display: block;
    margin: 0 auto 1rem;
    font-size: 2rem;
    line-height: 1;
}

.frm-notice--locked .frm-notice__icon,
.frm-notice--banned .frm-notice__icon {
    color: #f87171;
}

.frm-notice__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--forum-primary);
    line-height: 1.3;
}

.frm-notice__text {
    margin: 0;
    max-width: 36rem;
    margin-inline: auto;
    font-size: 0.95rem;
    color: var(--forum-text-muted);
    line-height: 1.5;
}

.frm-notice__text strong {
    color: var(--forum-text-light);
}

.frm-post-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--forum-border);
    background: var(--forum-dark);
}

.frm-post-preview__head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forum-primary);
}

.frm-post-preview__head h2 i {
    color: var(--forum-primary);
    margin-right: 8px;
}

.frm-post {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    border-top: 1px solid var(--forum-border);
}

.frm-post:first-of-type {
    border-top: none;
}

.frm-post__sidebar {
    padding: 1.25rem 1rem;
    text-align: center;
    background: rgba(58, 35, 135, 0.2);
    border-right: 1px solid var(--forum-border);
    min-width: 0;
    overflow: hidden;
}

.frm-post__sidebar.forum-post-author {
    border-right: 1px solid var(--forum-border);
    padding-right: 1rem;
}

.frm-post__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    background: var(--forum-secondary);
    border-radius: 50%;
    border: 2px solid var(--forum-border);
}

.frm-post__avatar--skin,
.frm-post__avatar--skin.frm-post__avatar--leader {
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #f79e0b, #dc3545);
    border-color: rgba(247, 158, 11, 0.45);
}

.frm-post__avatar--skin img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 12%;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.frm-post__avatar--leader {
    background: linear-gradient(135deg, #f79e0b, #dc3545);
    border-color: rgba(247, 158, 11, 0.45);
}

.frm-post__author {
    display: block;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 0 2px;
    box-sizing: border-box;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.frm-post__badges {
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
    max-width: 132px;
    margin-left: auto;
    margin-right: auto;
}

.frm-post__sidebar .forum-profile-badge {
    display: block;
    width: 100%;
    max-width: 132px;
    min-width: 132px;
    box-sizing: border-box;
    white-space: normal;
}

.frm-post__top time i {
    color: var(--forum-primary);
    margin-right: 5px;
}

.frm-post__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
}

.frm-post__content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.frm-post__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
}

.frm-post__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--forum-text-light);
}

.frm-post__text p:last-child {
    margin-bottom: 0;
}

.frm-post__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--forum-border);
    justify-content: flex-end;
}

.frm-post__actions button {
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--forum-primary);
    background: transparent;
    border: 1px solid var(--forum-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frm-post__actions button:hover {
    color: #000;
    border-color: var(--forum-primary);
    background: var(--forum-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(247, 158, 11, 0.2);
}

.frm-post__actions button i {
    margin-right: 5px;
}

@media (max-width: 991px) {
    .frm-layout {
        grid-template-columns: 1fr;
    }

    .frm-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }

    .frm-sidebar .frm-panel {
        margin-bottom: 0;
    }

    .frm-hero {
        padding: 1.25rem;
    }

    .frm-hero__user.forum-user-info {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .frm-hero__user .forum-user-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .frm-topic-table__head {
        display: none;
    }

    .frm-topic {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 1rem;
    }

    .frm-topic__stat,
    .frm-topic__last {
        text-align: left;
        padding-left: 40px;
        font-size: 0.85rem;
    }

    .frm-topic__stat::before {
        color: var(--forum-text-muted);
        font-weight: 600;
        margin-right: 6px;
    }

    .frm-topic__stat:nth-child(2)::before {
        content: 'Ответы: ';
    }

    .frm-topic__stat:nth-child(3)::before {
        content: 'Просмотры: ';
    }

    .frm-topic__last::before {
        content: 'Последнее: ';
        color: var(--forum-text-muted);
        font-weight: 600;
    }

    .frm-board__head {
        flex-wrap: wrap;
    }

    .frm-board__action {
        width: 100%;
    }

    .frm-board__action .btn {
        width: 100%;
    }

    .frm-post {
        grid-template-columns: 1fr;
    }

    .frm-post__sidebar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--forum-border);
    }

    .frm-post__avatar {
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .frm-post__stats {
        flex-direction: row;
        gap: 12px;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .frm-shell {
        padding-top: 12px;
    }

    .frm-search {
        gap: 8px;
    }

    .frm-search__submit {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
}

.frm-board__title.forum-section-title a {
    color: inherit;
    text-decoration: none;
}

.frm-board__title.forum-section-title a:hover {
    color: #FF8C00;
}

.frm-category-list {
    display: flex;
    flex-direction: column;
}

.frm-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px 64px 64px auto;
    gap: 12px;
    align-items: center;
    padding: 14px 1.25rem;
    border-top: 1px solid var(--forum-border);
}

.frm-category-row:first-child {
    border-top: none;
}

.frm-category-row__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--forum-text);
    text-decoration: none;
}

.frm-category-row__title:hover {
    color: var(--forum-primary);
}

.frm-category-row__title i {
    color: var(--forum-primary);
}

.frm-category-row__desc {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
    line-height: 1.4;
}

.frm-category-row__stat {
    text-align: center;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
}

.frm-category-row__stat span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--forum-text);
}

.frm-category-row__stat--spacer {
    visibility: hidden;
}

.frm-category-row__action {
    justify-self: end;
}

.frm-panel.frm-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 0;
}

.frm-empty__icon {
    display: block;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--forum-primary);
    opacity: 0.55;
}

.frm-empty__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--forum-primary);
    line-height: 1.3;
}

.frm-empty__text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--forum-text-muted);
    line-height: 1.5;
}

.frm-board__topics {
    border-top: 1px solid var(--forum-border);
}

.frm-board__topics .frm-topic-table__head {
    background: rgba(58, 35, 135, 0.12);
}

.frm-board__empty {
    padding: 2rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--forum-border);
    background: rgba(58, 35, 135, 0.15);
}

.frm-board__empty p {
    margin: 0 0 12px;
    color: var(--forum-text-muted);
    font-size: 0.95rem;
}

body.forum-page .frm-panel.frm-empty .text-muted {
    color: var(--forum-text-muted) !important;
}

body.forum-page .frm-panel.frm-empty h3 {
    color: var(--forum-primary);
}

.frm-alert {
    margin-bottom: 1rem;
}

.frm-post__mod {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.frm-post__top {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.frm-reply-box .rich-editor-container {
    margin-bottom: 1rem;
}

.frm-reply-box .rich-editor-container textarea#content {
    min-height: 200px;
}

@media (max-width: 768px) {
    .frm-category-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .frm-category-row__stat {
        text-align: left;
    }

    .frm-category-row__stat span {
        display: inline;
    }

    .frm-category-row__action {
        justify-self: start;
    }
}

.frm-admin__head {
    margin-bottom: 1rem;
}

.frm-admin__roles-note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--forum-text-muted);
    line-height: 1.45;
}

.frm-admin__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.frm-admin .forum-admin-card {
    background: var(--forum-dark);
    border: 1px solid var(--forum-border);
    border-radius: 10px;
}

.frm-admin .list-group-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--forum-border);
    color: var(--forum-text-light);
}

.frm-admin .topic-admin-item {
    border-color: var(--forum-border);
}

.frm-admin .topic-admin-title a {
    color: var(--forum-primary) !important;
}

.frm-notice--warning {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(247, 158, 11, 0.35);
    background: rgba(247, 158, 11, 0.1);
    color: var(--forum-text-light);
    line-height: 1.5;
}

.frm-admin-btn-danger,
.btn.frm-admin-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border: 1px solid rgba(220, 53, 69, 0.8);
    color: #fff;
    font-weight: 600;
}

.frm-admin-btn-danger:hover,
.btn.frm-admin-btn-danger:hover {
    background: linear-gradient(135deg, #e04b59 0%, #c82333 100%);
    border-color: #dc3545;
    color: #fff;
}

.frm-admin-btn-outline-danger:hover {
    border-color: #dc3545 !important;
    color: #ff8a94 !important;
    background: rgba(220, 53, 69, 0.12) !important;
}

.frm-admin-btn-outline-success:hover {
    border-color: #28a745 !important;
    color: #7ddea0 !important;
    background: rgba(40, 167, 69, 0.12) !important;
}

@media (max-width: 768px) {
    .frm-admin__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .frm-admin__actions .btn {
        flex: 1 1 auto;
    }
}

.frm-online-more:hover {
    color: #ffbf47;
    text-decoration: none;
}

.frm-user-link {
    color: var(--forum-text);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.frm-user-link:hover,
.frm-user-link:focus {
    color: var(--forum-primary);
    text-decoration: underline;
    outline: none;
}

.frm-user-card {
    position: absolute;
    z-index: 1200;
    width: min(360px, calc(100vw - 24px));
    pointer-events: auto;
}

.frm-user-card[hidden] {
    display: none !important;
}

.frm-user-card__inner {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #24153f;
    border: 1px solid rgba(247, 158, 11, 0.35);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.frm-user-card__avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--forum-secondary);
    border: 2px solid rgba(247, 158, 11, 0.35);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.frm-user-card__avatar--skin {
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #f79e0b, #dc3545);
    border-color: rgba(247, 158, 11, 0.45);
}

.frm-user-card__avatar--skin img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 12%;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.frm-user-card__body {
    min-width: 0;
    flex: 1;
}

.frm-user-card__name {
    margin-bottom: 6px;
    color: #7ce08f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.frm-user-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.frm-user-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.frm-user-card__badge--superadmin {
    background: #dc3545;
}

.frm-user-card__badge--admin {
    background: #f79e0b;
    color: #111;
}

.frm-user-card__badge--leader {
    background: rgba(92, 184, 92, 0.25);
    color: #9be7a8;
    border: 1px solid rgba(92, 184, 92, 0.45);
}

.frm-user-card__meta {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--forum-text-light);
}

.frm-user-card__meta + .frm-user-card__meta {
    margin-top: 4px;
}

.frm-user-card__meta span {
    color: var(--forum-text-muted);
}

.frm-user-card__activity.is-online {
    color: #7ce08f;
    font-weight: 600;
}

.frm-user-card__loading {
    padding: 18px 12px;
    text-align: center;
    color: var(--forum-text-muted);
    font-size: 0.85rem;
}

.frm-user-card__arrow {
    width: 14px;
    height: 14px;
    margin: -7px auto 0;
    transform: rotate(45deg);
    background: #24153f;
    border-right: 1px solid rgba(247, 158, 11, 0.35);
    border-bottom: 1px solid rgba(247, 158, 11, 0.35);
}

.frm-user-card.is-above .frm-user-card__arrow {
    margin-top: 0;
    margin-bottom: -7px;
    order: -1;
    transform: rotate(225deg);
}

.frm-post__author.frm-user-link,
.frm-recent-item__author.frm-user-link,
.frm-topic__meta .frm-user-link {
    display: inline;
}

.frm-post__author.frm-user-link {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.frm-topic__last .frm-user-link {
    display: block;
    color: var(--forum-text);
}

.frm-online-inline .frm-user-link {
    display: inline;
}

.frm-topic-header__meta .frm-user-link {
    font-weight: 700;
}

/* Disable forum motion effects on load/refresh and hover. */
body.forum-page .frm-panel,
body.forum-page .frm-board,
body.forum-page .frm-topic,
body.forum-page .forum-category-card,
body.forum-page .forum-section-card,
body.forum-page .forum-admin-card,
body.forum-page .topic-admin-item,
body.forum-page .list-group-item,
body.forum-page .btn.forum-btn-primary,
body.forum-page .btn.forum-btn-secondary,
body.forum-page .forum-btn-admin {
    transition: none !important;
    animation: none !important;
}

body.forum-page .frm-panel:hover,
body.forum-page .frm-board:hover,
body.forum-page .frm-topic:hover,
body.forum-page .forum-category-card:hover,
body.forum-page .forum-section-card:hover,
body.forum-page .forum-admin-card:hover,
body.forum-page .topic-admin-item:hover,
body.forum-page .list-group-item:hover,
body.forum-page .btn.forum-btn-primary:hover,
body.forum-page .btn.forum-btn-secondary:hover,
body.forum-page .forum-btn-admin:hover {
    transform: none !important;
}
