body.forum-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, 0.08), transparent 32%),
        linear-gradient(180deg, #0d0d0f 0%, #09090b 100%);
    color: #f5f5f5;
    font-family: "Manrope", sans-serif;
}

.forum-root {
    min-height: 100vh;
    min-height: 100svh;
}

.forum-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

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

.forum-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5f5f5;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.forum-back-link:hover {
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.forum-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.forum-title-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    flex: 0 0 auto;
}

.forum-title-copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.forum-title-copy p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.forum-main-panel,
.forum-panel {
    border: 1px solid rgba(251, 191, 36, 0.16);
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(13, 13, 16, 0.96));
    border-radius: 24px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.forum-list-head,
.forum-detail-head,
.forum-compose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-list-head h2,
.forum-compose-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.forum-list-head p,
.forum-compose-head p,
.forum-detail-head p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

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

.forum-topic-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
}

.forum-btn,
.forum-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.forum-btn {
    border: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #161616;
}

.forum-btn:hover {
    filter: brightness(1.04);
}

.forum-btn:disabled,
.forum-secondary-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.forum-btn--small {
    padding: 10px 14px;
    font-size: 14px;
}

.forum-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.forum-secondary-btn:hover {
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.forum-compose-wrap {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.forum-compose-body,
.forum-detail-main,
.forum-posts,
.forum-reply-wrap {
    padding: 20px;
}

.forum-form {
    display: grid;
    gap: 12px;
}

.forum-form-label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.forum-input,
.forum-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 8, 10, 0.9);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.forum-input:focus,
.forum-textarea:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.forum-form-note {
    min-height: 18px;
    color: #fca5a5;
    font-size: 12px;
}

.forum-form-note.is-success {
    color: #86efac;
}

.forum-auth-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    font-size: 14px;
}

.forum-auth-cta {
    margin-top: 12px;
}

.forum-list-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.forum-topic-row {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.forum-topic-row:hover {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
    transform: translateY(-1px);
}

.forum-topic-row-head,
.forum-post-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.forum-topic-row-meta,
.forum-post-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.forum-topic-row-count {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    white-space: nowrap;
}

.forum-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fbbf24;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
}

.forum-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-avatar > span {
    position: relative;
    z-index: 0;
    line-height: 1;
}

.forum-avatar--small {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.forum-topic-author,
.forum-post-author {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
}

.forum-topic-time,
.forum-post-time {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    margin-top: 2px;
}

.forum-topic-title {
    margin: 12px 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.forum-topic-preview,
.forum-post-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}

.forum-detail-head {
    padding-bottom: 14px;
}

.forum-detail-main {
    padding-top: 18px;
    padding-bottom: 8px;
}

.forum-detail-title {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.15;
}

.forum-posts {
    display: grid;
    gap: 12px;
    padding-top: 0;
}

.forum-post-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 16px;
}

.forum-post-card--starter {
    background: rgba(251, 191, 36, 0.05);
}

.forum-section-caption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.forum-reply-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.forum-detail-empty,
.forum-loading,
.forum-empty-note {
    padding: 32px 20px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 720px) {
    .forum-shell {
        padding: 12px;
    }

    .forum-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .forum-title-copy h1 {
        font-size: 22px;
    }

    .forum-list-head,
    .forum-detail-head,
    .forum-compose-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .forum-list-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .forum-compose-body,
    .forum-detail-main,
    .forum-posts,
    .forum-reply-wrap,
    .forum-list-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .forum-detail-title {
        font-size: 24px;
    }

    .forum-topic-row-head {
        flex-wrap: wrap;
    }

    .forum-topic-row-count {
        width: 100%;
        padding-left: 44px;
    }
}
