.community-shell {
    padding-bottom: 4rem;
}

.community-shell a {
    color: #001b29;
}

.community-shell a:hover {
    color: #499f03;
}

.community-card {
    background: #fff;
    border: 1px solid #dbe3e8;
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 16px 40px rgba(0, 27, 41, 0.05);
}

.community-hero-card {
    padding: 1.75rem;
}

.community-avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #dbe3e8;
    display: block;
    margin-inline: auto;
}

.community-avatar-sm,
.community-avatar-xs {
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #dbe3e8;
    background: #eef2f4;
}

.community-avatar-sm {
    width: 52px;
    height: 52px;
}

.community-avatar-xs {
    width: 34px;
    height: 34px;
}

.community-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.community-stat-card {
    background: #f7fafc;
    border: 1px solid #dbe3e8;
    border-radius: 16px;
    padding: 1rem;
}

.community-stat-card h4,
.community-stat-card h5 {
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.community-meta,
.community-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #71808a;
    font-size: 0.92rem;
}

.community-badge,
.community-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.community-badge {
    background: #eef7e4;
    color: #2d6c03;
}

.community-level {
    background: #001b29;
    color: #fff;
}

.community-profile-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.community-pill {
    background: #f1f5f7;
    color: #001b29;
}

.community-pill-muted {
    background: #f6f8fa;
    color: #4a565c;
}

.community-dev-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(223, 255, 190, 0.34);
    background: linear-gradient(135deg, #001b29 0%, #0e405b 55%, #499f03 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(0, 27, 41, 0.14);
    white-space: nowrap;
}

.community-dev-badge__content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.community-dev-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.community-dev-badge__icon-core {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: #efffd7;
}

.community-dev-badge__label {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.community-dev-badge__sheen {
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 34%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: translate3d(0, 0, 0) skewX(-18deg);
    z-index: 1;
}

.community-dev-badge__particle {
    position: absolute;
    top: 50%;
    left: 14%;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(239, 255, 215, 0.92);
    opacity: 0;
    transform: translate3d(0, 0.2rem, 0) scale(0.7);
    z-index: 1;
}

.community-dev-badge__particle--2 {
    left: 28%;
    width: 0.22rem;
    height: 0.22rem;
}

.community-dev-badge__particle--3 {
    left: 46%;
    width: 0.18rem;
    height: 0.18rem;
}

.community-dev-badge--compact {
    min-height: 30px;
    padding: 0.28rem 0.65rem;
    box-shadow: 0 10px 20px rgba(0, 27, 41, 0.12);
}

.community-dev-badge--compact .community-dev-badge__label {
    font-size: 0.68rem;
}

.community-dev-badge--compact .community-dev-badge__icon {
    width: 0.9rem;
    height: 0.9rem;
}

.community-dev-badge--profile {
    min-height: 40px;
    padding-inline: 0.95rem;
}

.community-dev-badge.is-live .community-dev-badge__sheen {
    animation: communityDevSheen 2.8s linear infinite;
}

.community-dev-badge.is-live .community-dev-badge__particle--1 {
    animation: communityDevParticleOne 2.6s ease-out infinite;
}

.community-dev-badge.is-live .community-dev-badge__particle--2 {
    animation: communityDevParticleTwo 3s ease-out infinite 0.45s;
}

.community-dev-badge.is-live .community-dev-badge__particle--3 {
    animation: communityDevParticleThree 2.35s ease-out infinite 0.82s;
}

@keyframes communityDevSheen {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) skewX(-18deg);
    }
    18% {
        opacity: 0.62;
    }
    55% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translate3d(360%, 0, 0) skewX(-18deg);
    }
}

@keyframes communityDevParticleOne {
    0% {
        opacity: 0;
        transform: translate3d(0, 0.28rem, 0) scale(0.75);
    }
    18% {
        opacity: 0.75;
    }
    100% {
        opacity: 0;
        transform: translate3d(4.2rem, -0.8rem, 0) scale(1.08);
    }
}

@keyframes communityDevParticleTwo {
    0% {
        opacity: 0;
        transform: translate3d(0, 0.18rem, 0) scale(0.65);
    }
    22% {
        opacity: 0.66;
    }
    100% {
        opacity: 0;
        transform: translate3d(3.5rem, -1rem, 0) scale(1);
    }
}

@keyframes communityDevParticleThree {
    0% {
        opacity: 0;
        transform: translate3d(0, 0.22rem, 0) scale(0.6);
    }
    16% {
        opacity: 0.68;
    }
    100% {
        opacity: 0;
        transform: translate3d(2.9rem, -0.6rem, 0) scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-dev-badge,
    .community-dev-badge * {
        animation: none !important;
        transition: none !important;
    }

    .community-dev-badge__sheen,
    .community-dev-badge__particle {
        opacity: 0 !important;
    }
}

.community-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid #dbe3e8;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.community-tab-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: #001b29;
    font-weight: 600;
    cursor: pointer;
}

.community-tab-trigger.active {
    color: #499f03;
}

.community-tab-content .tab-pane {
    display: none;
}

.community-tab-content .tab-pane.active.show {
    display: block;
}

.community-list {
    display: grid;
    gap: 1rem;
}

.community-item {
    border: 1px solid #dbe3e8;
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
}

.community-table-wrap {
    overflow-x: auto;
}

.community-table {
    width: 100%;
}

.community-table th,
.community-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5edf2;
    vertical-align: top;
}

.community-empty {
    border: 1px dashed #dbe3e8;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #71808a;
    background: #fff;
}

.community-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.community-media-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    background: #eef2f4;
}

.community-thread-post {
    border-left: 3px solid #499f03;
    padding-left: 1rem;
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.community-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.community-composer textarea,
.community-composer input,
.community-composer select,
.community-inline-search input {
    width: 100%;
}

.community-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.community-settings-grid-mentions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-toggle-card-span-2 {
    grid-column: auto;
}

.community-toggle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.875rem;
    min-height: 0;
    border: 1px solid #dbe3e8;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: #f9fbfc;
    cursor: pointer;
}

.community-toggle-card-inline {
    min-height: 100%;
}

.community-toggle-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.community-toggle-copy strong {
    color: #001b29;
    font-size: 0.95rem;
    line-height: 1.25;
}

.community-toggle-copy small {
    color: #71808a;
    font-size: 0.92rem;
    line-height: 1.42;
}

.community-toggle-card .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.community-readonly-field {
    background: #f6f8fa;
    color: #4a565c;
}

.community-sticky-card {
    position: sticky;
    top: 1.5rem;
}

.community-copy-block {
    color: #24333b;
    line-height: 1.75;
    white-space: normal;
    word-break: break-word;
}

.community-inline-search {
    width: min(320px, 100%);
}

.community-board-card,
.community-thread-card {
    padding: 1.5rem;
}

.community-sidebar-column {
    display: grid;
    align-content: start;
}

.community-sidebar-card {
    height: auto;
}

.community-board-header,
.community-thread-card-top,
.community-thread-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.community-board-title-wrap {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.community-board-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #001b29;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.community-rank {
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #001b29;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
}

.community-board-preview-list {
    display: grid;
    gap: 0.75rem;
}

.community-board-preview {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid #e7edf1;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fbfcfd;
}

.community-board-latest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a565c;
    font-size: 0.9rem;
}

.community-avatar-md {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid #dbe3e8;
    background: #eef2f4;
    box-shadow: 0 8px 18px rgba(0, 27, 41, 0.07);
    flex: 0 0 auto;
}

.community-leader-card {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(73, 159, 3, 0.09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 28px rgba(0, 27, 41, 0.06);
}

.community-leader-card-muted {
    background:
        linear-gradient(180deg, #fbfcfd 0%, #f5f7f8 100%);
    border-color: #e1e7ea;
    box-shadow: none;
}

.community-leader-card-muted .community-avatar-md {
    filter: grayscale(1);
    opacity: 0.72;
    box-shadow: none;
}

.community-leader-card-muted .community-rank {
    background: #7f8d95;
}

.community-leader-card-muted .community-points-badge,
.community-leader-card-muted .community-leader-level {
    background: #eef2f4;
    color: #5f6d75;
    box-shadow: inset 0 0 0 1px #d7e0e5;
}

.community-leader-card-muted .community-leader-name,
.community-leader-card-muted .community-leader-name a,
.community-leader-card-muted .community-leader-handle {
    color: #7a878e;
}

.community-leader-card-muted .community-leader-name a:hover {
    color: #7a878e;
}

.community-leader-main {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
}

.community-leader-copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.community-leader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 0;
}

.community-leader-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: break-word;
}

.community-leader-name a {
    color: #001b29;
    text-decoration: none;
}

.community-leader-name a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.community-leader-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.community-leader-level {
    border: 1px solid #dbe3e8;
    background: #f5f8fa;
    color: #001b29;
    font-size: 0.78rem;
    padding: 0.28rem 0.62rem;
}

.community-leader-handle {
    color: #71808a;
    font-size: 0.88rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.community-leader-handle-muted {
    font-style: italic;
}

.community-points-badge {
    padding-inline: 0.75rem;
    min-height: 34px;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(73, 159, 3, 0.08);
    flex: 0 0 auto;
}

.message-thread-card {
    padding: 1.1rem 1.2rem;
}

.message-thread-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1 1 520px;
}

.message-thread-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.message-thread-preview {
    color: #24333b;
    line-height: 1.65;
}

.message-thread-stats {
    display: grid;
    gap: 0.75rem;
    justify-items: end;
    align-content: start;
}

.message-thread-stream {
    display: grid;
    gap: 1rem;
}

.message-bubble-row {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.message-bubble-row.is-own {
    flex-direction: row-reverse;
}

.message-bubble-avatar {
    flex: 0 0 auto;
}

.message-bubble {
    flex: 1 1 auto;
    border: 1px solid #dbe3e8;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: #fff;
}

.message-bubble-own {
    background: #f5faef;
    border-color: #d6e7c4;
}

.forum-post-card {
    padding: 1.4rem;
}

.forum-post-card-op {
    border-color: #cfe1ea;
    background: #fbfdff;
}

.forum-post-layout {
    display: grid;
    grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
    gap: 1.5rem;
}

.forum-post-author {
    text-align: center;
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.forum-post-author-link {
    display: inline-flex;
    justify-content: center;
}

.forum-post-badges {
    justify-content: center;
    margin-bottom: 0.15rem;
}

.forum-post-body {
    min-width: 0;
}

.forum-thread-tools {
    border-top: 1px solid #e6edf2;
    padding-top: 1rem;
}

.forum-thread-tools__stats {
    align-items: center;
}

.forum-reply-stack {
    display: grid;
    gap: 0.75rem;
}

.forum-reply-card,
.forum-inline-reply {
    border: 1px solid #e7edf1;
    border-radius: 14px;
    padding: 1rem;
    background: #fbfcfd;
}

.forum-reply-card {
    box-shadow: none;
}

.forum-reply-card .forum-post-layout {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: 1rem;
}

.forum-reply-card .community-avatar {
    width: 84px;
    height: 84px;
}

.forum-reply-card .forum-post-author {
    gap: 0.3rem;
}

.forum-like-button-active {
    box-shadow: inset 0 0 0 1px rgba(0, 27, 41, 0.08);
}

.forum-like-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: #4a565c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.forum-like-footer a {
    font-weight: 600;
}

.forum-like-footer__icon {
    color: #e43f6f;
    font-size: 0.9rem;
}

.forum-attachment-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.forum-attachment-image {
    height: 140px;
}

.forum-attachment-files {
    display: grid;
    gap: 0.75rem;
}

.forum-attachment-file {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid #dbe3e8;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #f9fbfc;
    text-decoration: none;
}

.forum-attachment-file__name {
    font-weight: 600;
    color: #001b29;
    word-break: break-word;
}

.forum-attachment-file__meta {
    color: #71808a;
    font-size: 0.8rem;
    white-space: nowrap;
}

.community-notification-item .community-copy-block {
    color: #33424a;
}

@media (max-width: 991.98px) {
    .community-settings-grid,
    .community-settings-grid-mentions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-sticky-card {
        position: static;
    }

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

    .forum-post-author {
        text-align: left;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .forum-post-badges {
        justify-content: flex-start;
    }

    .message-thread-stats {
        justify-items: start;
    }
}

@media (max-width: 767.98px) {
    .community-avatar {
        width: 96px;
        height: 96px;
    }

    .community-card,
    .community-board-card,
    .community-thread-card {
        padding: 1.125rem;
    }

    .community-settings-grid,
    .community-settings-grid-mentions {
        grid-template-columns: 1fr;
    }

    .community-toggle-card {
        align-items: flex-start;
    }

    .community-toggle-card-span-2 {
        grid-column: auto;
    }

    .community-board-title-wrap,
    .message-thread-main {
        flex-direction: column;
    }

    .community-board-header,
    .community-thread-card-top,
    .message-bubble-row {
        gap: 0.875rem;
    }

    .forum-reply-card .forum-post-layout {
        grid-template-columns: 1fr;
    }

    .forum-reply-card .community-avatar {
        width: 72px;
        height: 72px;
    }

    .community-leader-card {
        padding: 0.9rem;
    }

    .community-leader-main {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
        column-gap: 0.75rem;
        row-gap: 0.7rem;
    }

    .community-avatar-md {
        width: 54px;
        height: 54px;
        grid-column: 1;
        grid-row: 2;
    }

    .community-rank {
        min-width: 40px;
        height: 40px;
        font-size: 0.82rem;
        grid-column: 1;
        grid-row: 1;
    }

    .community-leader-copy {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .community-leader-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .community-leader-name {
        font-size: 0.96rem;
    }
}
