/* ── Forum Shared Styles ────────────────────────────── */
.forum-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    margin-top: 20px;
    margin-bottom: 40px;
}
.forum-wrapper a {
    color: white;
    text-decoration: none;
}
.forum-wrapper a:hover {
    color: #0984e3;
    text-decoration: none;
}
.forum-header-bar {
    background: #939393;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.forum-header-bar h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.forum-header-bar .header-stats {
    font-size: 12px;
    color: white;
}
.forum-header-bar .header-stats span {
    margin-left: 15px;
}
.forum-category-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    transition: background 0.15s;
}
.forum-category-row:hover {
    background: #f8f9fa;
}
.forum-category-row:last-child {
    border-radius: 0 0 4px 4px;
}
.forum-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}
.forum-icon i {
    font-size: 20px;
    color: #fff;
}
.forum-icon.speech-bubble {
    background: #636e72;
    position: relative;
}
.forum-category-info {
    flex: 1;
    min-width: 0;
}
.forum-category-info h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 600;
}
.forum-category-info h4 a {
    color: #2d3436;
}
.forum-category-info h4 a:hover {
    color: #0984e3;
}
.forum-category-info p {
    margin: 0;
    font-size: 13px;
    color: #636e72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.forum-category-stats {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
    margin: 0 30px;
    text-align: center;
}
.forum-stat-item {
    text-align: center;
    min-width: 60px;
}
.forum-stat-item .stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    display: block;
}
.forum-stat-item .stat-label {
    font-size: 11px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.forum-last-post {
    flex-shrink: 0;
    width: 220px;
    font-size: 12px;
    color: #636e72;
    line-height: 1.5;
    text-align: right;
}
.forum-last-post a {
    color: #0984e3;
    font-weight: 500;
}
.forum-last-post .last-post-date {
    color: #b2bec3;
    font-size: 11px;
}
.forum-no-posts {
    color: #b2bec3;
    font-style: italic;
}
.forum-breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: #636e72;
    margin-bottom: 15px;
}
.forum-breadcrumb a {
    color: #0984e3;
}
.forum-breadcrumb a:hover {
    text-decoration: underline;
}
.forum-breadcrumb .separator {
    margin: 0 6px;
    color: #b2bec3;
}
.forum-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.forum-page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}
.forum-page-title .description {
    font-size: 14px;
    color: #636e72;
    margin-top: 4px;
}
.btn-forum {
    background: #0984e3;
    color: #fff !important;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-forum:hover {
    background: #0773c5;
    color: #fff !important;
    text-decoration: none;
}
.btn-forum-sm {
    padding: 5px 12px;
    font-size: 12px;
}
.btn-forum-outline {
    background: #f39c12;
    color: #fff !important;
    border: 1px solid #f39c12;
}
.btn-forum-outline:hover {
    background: #e67e22;
    color: #fff !important;
    border-color: #e67e22;
}
.btn-forum-danger {
    background: #d63031;
}
.btn-forum-danger:hover {
    background: #b71c1c;
}
.btn-forum-secondary {
    background: #636e72;
}
.btn-forum-secondary:hover {
    background: #4a5459;
}
.forum-search-bar {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border: none;
}
.forum-search-bar form {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: nowrap;
}
.forum-search-bar input[type="text"] {
    flex: 3;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    color: #999;
}
.forum-search-bar input[type="text"]:focus {
    border-color: #aaa;
    box-shadow: none;
    color: #333;
}
.forum-search-bar select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 0;
    font-size: 13px;
    background: #fff;
    outline: none;
    cursor: pointer;
    color: #555;
}
.forum-search-bar .btn-forum-search {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
    white-space: nowrap;
}
.forum-search-bar .btn-forum-search:hover {
    background: #a93226;
}
.forum-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}
.forum-tabs a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.forum-tabs a:hover {
    color: #0984e3;
}
.forum-tabs a.active {
    color: #0984e3;
    border-bottom-color: #0984e3;
}
.forum-topic-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}
.forum-topic-table thead th {
    background: #2d3436;
    color: #fff;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border: none;
}
.forum-topic-table thead th:first-child {
    border-radius: 4px 0 0 0;
}
.forum-topic-table thead th:last-child {
    border-radius: 0 4px 0 0;
}
.forum-topic-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}
.forum-topic-table tbody tr:hover {
    background: #f8f9fa;
}
.forum-topic-table tbody tr:last-child td {
    border-bottom: none;
}
.topic-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topic-title-cell .topic-icon {
    color: #636e72;
    font-size: 16px;
    flex-shrink: 0;
}
.topic-title-cell .topic-icon.sticky {
    color: #fdcb6e;
}
.topic-title-cell .topic-icon.locked {
    color: #d63031;
}
.topic-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.topic-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid #fff;
}
.topic-avatar-badge.sticky {
    background: #fdcb6e;
    color: #333;
}
.topic-avatar-badge.locked {
    background: #d63031;
    color: #fff;
}
.topic-title-cell .topic-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.topic-title-cell .topic-info h5 a {
    color: #2d3436;
}
.topic-title-cell .topic-info h5 a:hover {
    color: #0984e3;
}
.topic-title-cell .topic-info .topic-meta {
    font-size: 12px;
    color: #636e72;
    margin-top: 2px;
}
.topic-title-cell .topic-info .topic-meta a {
    color: #0984e3;
}
.forum-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 20px 0;
}
.forum-pagination a,
.forum-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #636e72;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.forum-pagination a:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #2d3436;
}
.forum-pagination span.current {
    background: #0984e3;
    color: #fff;
    border-color: #0984e3;
    font-weight: 600;
}
.forum-pagination span.dots {
    border: none;
    background: none;
}
.forum-post {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}
.forum-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.forum-post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.forum-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0984e3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.forum-post-user .user-info {
    line-height: 1.3;
}
.forum-post-user .user-info .username {
    font-weight: 600;
    font-size: 14px;
    color: #2d3436;
}
.forum-post-user .user-info .post-date {
    font-size: 12px;
    color: #636e72;
}
.forum-post-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    word-wrap: break-word;
}
.forum-post-body blockquote,
.forum-quote {
    border-left: 3px solid #0984e3;
    margin: 10px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #555;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}
/* Traditional Forum Post Style */
.forum-post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}
.forum-post-card-inner {
    display: flex;
}
.forum-post-userbar {
    width: 140px;
    min-width: 140px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 15px 10px;
    text-align: center;
}
.forum-post-userbar .fp-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.forum-post-userbar .fp-username {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    word-break: break-word;
}
.forum-post-userbar .fp-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 3px;
    margin-top: 4px;
}
.forum-post-userbar .fp-badge-author {
    background: #0984e3;
    color: #fff;
}
.forum-post-userbar .fp-badge-member {
    background: #e0e0e0;
    color: #555;
}
.forum-post-userbar .fp-posts-count {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}
.forum-post-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.forum-post-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #888;
}
.forum-post-topbar a {
    color: #0984e3;
    text-decoration: none;
    font-size: 12px;
}
.forum-post-topbar a:hover {
    text-decoration: underline;
}
.forum-post-body-area {
    padding: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    flex: 1;
    word-wrap: break-word;
}
/* Author's original post - bigger text, bold */
#post-original .forum-post-body-area,
.forum-post-card:first-child .forum-post-body-area {
    font-size: 17px;
    line-height: 1.75;
    font-weight: 600;
}
.forum-post-bottombar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-top: 1px solid #eee;
    background: #fff;
}
.forum-post-bottombar .fp-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
.forum-post-bottombar .fp-action {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 3px 8px;
    border: none;
    border-radius: 3px;
    color: #fff;
}
.forum-post-bottombar .fp-action:hover {
    opacity: 0.85;
    text-decoration: none;
}
/* Like button */
.forum-post-bottombar .fp-action-like {
    background: #0984e3;
}
.forum-post-bottombar .fp-action-like.fp-liked {
    background: #00b894;
}
/* Reply button */
.forum-post-bottombar .fp-action-reply {
    background: #636e72;
}
/* Pin button */
.forum-post-bottombar .fp-action-pin {
    background: #fdcb6e;
    color: #333;
}
/* Lock button */
.forum-post-bottombar .fp-action-lock {
    background: #e17055;
}
/* Edit button */
.forum-post-bottombar .fp-action-edit {
    background: #fdcb6e;
    color: #333;
}
/* Delete button */
.forum-post-bottombar .fp-action-danger {
    background: #d63031;
}
/* Reply thread indent */
.fp-thread {
    margin-left: 40px;
}
.fp-thread .forum-post-userbar {
    width: 100px;
    min-width: 100px;
}
.fp-thread .forum-post-userbar .fp-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.fp-thread .forum-post-body-area {
    padding: 10px 15px;
    font-size: 14px;
}
.fp-reply-to {
    color: #0984e3;
    font-weight: 600;
    text-decoration: none;
}
.fp-reply-to:hover {
    text-decoration: underline;
}
/* Inline reply */
.fp-inline-reply {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: #fff;
}
.fp-inline-reply-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.fp-inline-reply-row .fp-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-inline-reply-row .fp-reply-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}
.fp-inline-reply-row .fp-reply-input:focus {
    border-color: #0984e3;
}
.fp-inline-reply-row .fp-reply-send {
    background: #0984e3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
}
.fp-inline-reply-row .fp-reply-send:hover {
    background: #0770c2;
}
@media (max-width: 600px) {
    .forum-post-card-inner { flex-direction: column; }
    .forum-post-userbar { width: 100%; min-width: 100%; flex-direction: row; display: flex; align-items: center; gap: 10px; padding: 10px; border-right: none; border-bottom: 1px solid #eee; }
    .forum-post-userbar .fp-avatar { width: 36px; height: 36px; font-size: 14px; margin: 0; }
    .fp-thread { margin-left: 15px; }
}

/* Inline Reply (YouTube-style) */
.inline-reply-box {
    padding: 12px 20px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}
.inline-reply-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.inline-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0984e3;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}
.inline-reply-textarea {
    flex: 1;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    padding: 8px 0;
    resize: none;
    outline: none;
    overflow: hidden;
    min-height: 24px;
    transition: border-color 0.2s;
}
.inline-reply-textarea:focus {
    border-bottom: 2px solid #0984e3;
}
.inline-reply-actions {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-left: 44px;
}
.inline-reply-box.expanded .inline-reply-actions {
    display: flex;
}
.inline-reply-cancel {
    background: none;
    border: none;
    color: #636e72;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}
.inline-reply-cancel:hover {
    background: #f0f0f0;
}
.inline-reply-submit {
    background: #0984e3;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}
.inline-reply-submit:hover {
    background: #0770c2;
}

.forum-post-body code {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}
.forum-post-body pre {
    background: #2d3436;
    color: #dfe6e9;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}
.forum-post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.forum-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.forum-post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.forum-post-actions button,
.forum-post-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #636e72;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.forum-post-actions button:hover,
.forum-post-actions a:hover {
    background: #f0f0f0;
    color: #333;
}
.forum-post-actions .liked {
    color: #e17055;
    border-color: #e17055;
}
.forum-post-actions .like-count {
    font-weight: 600;
}
.forum-post-actions .admin-action {
    color: #d63031;
    border-color: #ffcccc;
}
.forum-post-actions .admin-action:hover {
    background: #fff5f5;
}
.forum-reply-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}
.forum-reply-form h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
}
.forum-formatting-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    flex-wrap: wrap;
}
.forum-formatting-toolbar button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.forum-formatting-toolbar button:hover {
    background: #e9ecef;
    color: #2d3436;
}
.forum-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    font-size: 16px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.forum-textarea:focus {
    border-color: #0984e3;
    box-shadow: 0 0 0 2px rgba(9, 132, 227, 0.15);
}
.forum-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.forum-input:focus {
    border-color: #0984e3;
    box-shadow: 0 0 0 2px rgba(9, 132, 227, 0.15);
}
.forum-stats-footer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin-top: 25px;
    display: flex;
    gap: 40px;
    align-items: center;
}
.forum-stats-footer .stat-block {
    text-align: center;
}
.forum-stats-footer .stat-block .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    display: block;
}
.forum-stats-footer .stat-block .stat-label {
    font-size: 12px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.forum-alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.forum-alert-info {
    background: #dfe6e9;
    color: #2d3436;
    border: 1px solid #b2bec3;
}
.forum-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.forum-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.forum-login-prompt {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    color: #636e72;
    font-size: 14px;
}
.forum-login-prompt a {
    color: #0984e3;
    font-weight: 600;
}
.forum-preview {
    background: #fff;
    border: 1px solid #0984e3;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    display: none;
}
.forum-preview h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #0984e3;
    font-weight: 600;
}
.forum-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.forum-badge-sticky {
    background: #ffeaa7;
    color: #856404;
}
.forum-badge-locked {
    background: #ffcccc;
    color: #721c24;
}
@media (max-width: 768px) {
    .forum-category-row {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    .forum-category-stats {
        margin: 10px 0;
        gap: 15px;
    }
    .forum-last-post {
        width: 100%;
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    .forum-header-bar {
        flex-wrap: wrap;
        gap: 5px;
    }
    .forum-header-bar .header-stats {
        width: 100%;
    }
    .forum-topic-table thead th:nth-child(2),
    .forum-topic-table thead th:nth-child(3),
    .forum-topic-table tbody td:nth-child(2),
    .forum-topic-table tbody td:nth-child(3) {
        display: none;
    }
    .forum-post-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .forum-post-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .forum-stats-footer {
        flex-wrap: wrap;
        gap: 20px;
    }
    .forum-search-bar form {
        flex-wrap: wrap;
    }
    .forum-search-bar input[type="text"] {
        width: 100%;
        border-right: 1px solid #ccc;
    }
    .forum-search-bar select {
        flex: 1;
        border-right: 1px solid #ccc;
    }
    .forum-search-bar .btn-forum-search {
        width: 100%;
        justify-content: center;
    }
    .forum-page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .forum-tabs {
        overflow-x: auto;
    }
    .forum-tabs a {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* toast (from topic.php) */
.forum-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #00b894; color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 99999; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.forum-toast-error { background: #d63031; }
.forum-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* centering wrapper (site.css has no .container) */
.forum-wrapper { max-width: 1280px; margin: 22px auto; padding: 0 16px; }

.forum-personal-note { display:flex; align-items:center; gap:8px; font-size: 12px; color:#0984e3; background:#eaf4fe; border:1px solid #cfe6fb; border-radius:8px; padding:9px 12px; margin:12px 0; }
.forum-personal-note i { font-size: 14px; }

/* voting */
.forum-vote-btn { background:#fff; color:#0984e3; border:1px solid #0984e3; }
.forum-vote-btn.voted { background:#0984e3; color:#fff; }
.forum-vote-btn .forum-vote-count { font-weight:800; }
.forum-vote-pill { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; min-width:52px; padding:5px 8px; border:1px solid #dfe6e9; border-radius:8px; background:#fff; color:#636e72; cursor:pointer; text-decoration:none; line-height:1.15; }
.forum-vote-pill i { font-size:14px; }
.forum-vote-pill .vnum { font-size:17px; font-weight:800; color:#2d3436; }
.forum-vote-pill .vlbl { font-size:10px; text-transform:uppercase; letter-spacing:.03em; color:#b2bec3; }
.forum-vote-pill.voted { border-color:#0984e3; background:#eaf4fe; color:#0984e3; }
.forum-vote-pill.voted .vnum { color:#0984e3; }
