#tab-announce.tab-pane-community.active {
    background:
        radial-gradient(circle at 96% 2%, rgba(0, 168, 137, 0.12), transparent 28%),
        linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 48%, #F2FBF7 100%) !important;
    border-radius: 8px;
}

#tab-announce .community-layout {
    gap: 18px !important;
}

#tab-announce .community-subnav {
    background: #FFFFFF !important;
    border: 1px solid #F1E5DC !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
}

#tab-announce .community-subnav .subnav-btn {
    color: #6B7280 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

#tab-announce .community-subnav .subnav-btn.active {
    color: #F15A2B !important;
}

#tab-announce .community-subnav .subnav-btn.active::after {
    background: #F15A2B !important;
    border-radius: 999px;
    height: 3px !important;
}

#tab-announce .feed-filters {
    align-items: center;
    display: flex;
    gap: 10px !important;
    overflow-x: auto;
    padding: 2px 0 8px;
}

#tab-announce .filter-pill {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 999px !important;
    color: #4B5563 !important;
    flex: 0 0 auto;
    font-weight: 800 !important;
    min-height: 38px;
    padding: 8px 18px !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#tab-announce .filter-pill:hover {
    border-color: #FDBA74 !important;
    color: #F15A2B !important;
    transform: translateY(-1px);
}

#tab-announce .filter-pill.active {
    background: #F15A2B !important;
    border-color: #F15A2B !important;
    box-shadow: 0 12px 24px rgba(241, 90, 43, 0.18) !important;
    color: #FFFFFF !important;
}

#tab-announce .feed-composer-card,
#tab-announce .social-post-card,
#tab-announce .community-side-col > div {
    border: 1px solid #F1E5DC !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06) !important;
}

#tab-announce .feed-composer-card {
    background: rgba(255, 255, 255, 0.94) !important;
    padding: 16px !important;
}

#tab-announce .feed-composer-card:hover {
    border-color: #FDBA74 !important;
    box-shadow: 0 18px 48px rgba(241, 90, 43, 0.1) !important;
}

#tab-announce .feed-composer-card input,
#tab-announce .feed-composer-card .composer-placeholder {
    border-color: #FED7AA !important;
}

#tab-announce .social-post-card {
    overflow: hidden;
}

#tab-announce .social-post-card:hover {
    border-color: #FED7AA !important;
}

#tab-announce .social-post-header {
    padding-top: 16px !important;
}

#tab-announce .social-post-avatar,
#tab-announce .social-post-avatar img {
    border-radius: 50% !important;
}

#tab-announce .social-post-body {
    padding-bottom: 14px !important;
}

#tab-announce .social-action-row {
    border-color: #F3E8E0 !important;
}

#tab-announce .community-side-col > div {
    min-height: auto !important;
}

#tab-announce .community-side-col > div > div:first-child {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%) !important;
}

#tab-announce .announce-list-sidebar > div,
#tab-announce #announce-grid > div {
    border-radius: 8px !important;
}

#tab-leaderboard {
    background:
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.1), transparent 24%),
        linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 42%, #F0FDF9 100%);
    border-radius: 8px;
    padding: 4px;
}

#tab-leaderboard .leaderboard-title-row {
    margin: 4px 0 18px !important;
}

#tab-leaderboard .leaderboard-title-row h3 {
    align-items: center;
    display: flex;
    font-size: 1.25rem;
    gap: 8px;
}

#tab-leaderboard .leaderboard-title-row h3 i {
    align-items: center;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-right: 2px !important;
    width: 34px;
}

#tab-leaderboard .leaderboard-badge {
    background: #FFF7ED !important;
    border: 1px solid #FED7AA;
    border-radius: 999px !important;
    color: #F15A2B !important;
}

#tab-leaderboard .user-rank-card {
    background:
        linear-gradient(110deg, rgba(241, 90, 43, 0.96) 0%, rgba(253, 186, 116, 0.9) 48%, rgba(59, 130, 246, 0.8) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px !important;
    box-shadow: 0 18px 48px rgba(241, 90, 43, 0.18) !important;
    overflow: hidden;
    position: relative;
}

#tab-leaderboard .user-rank-card h4,
#tab-leaderboard .user-rank-card p,
#tab-leaderboard .user-rank-card #lb-user-name,
#tab-leaderboard .user-rank-card #lb-user-points {
    color: #FFFFFF !important;
    position: relative;
    z-index: 1;
}

#tab-leaderboard .user-rank-card #lb-user-rank {
    color: #FEF3C7 !important;
}

#tab-leaderboard .user-rank-card > div {
    position: relative;
    z-index: 1;
}

#lb-user-avatar-container .avatar-img,
#lb-user-avatar-container .avatar-fallback {
    border-radius: 50% !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
}

#tab-leaderboard .user-rank-card::after {
    color: rgba(255, 255, 255, 0.22);
    content: "\f091";
    font-family: "Font Awesome 6 Free";
    font-size: 7rem;
    font-weight: 900;
    position: absolute;
    right: 26%;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
}

.leaderboard-search-bar {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #F1E5DC;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.leaderboard-search-bar i {
    color: #F15A2B;
    flex: 0 0 auto;
}

.leaderboard-search-bar input {
    border: 0;
    color: #111827;
    flex: 1;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 0;
    outline: none;
}

.leaderboard-search-bar input::placeholder {
    color: #94A3B8;
    font-weight: 600;
}

.leaderboard-podium {
    align-items: end !important;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid #F3E8E0;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
    gap: 8px !important;
    margin-top: 42px !important;
    padding: 44px 18px 0;
}

.leaderboard-podium-item {
    align-items: center;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    position: relative;
    text-align: center;
}

.leaderboard-podium-item--1 {
    z-index: 2;
}

.leaderboard-crown {
    color: #F59E0B;
    filter: drop-shadow(0 4px 7px rgba(245, 158, 11, 0.25));
    font-size: 1.65rem;
    left: 50%;
    position: absolute;
    top: -34px;
    transform: translateX(-50%) rotate(-8deg);
}

.leaderboard-podium-avatar,
.leaderboard-list-avatar {
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    overflow: hidden;
}

.leaderboard-podium-avatar {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    height: 64px;
    margin-bottom: 8px;
    width: 64px;
}

.leaderboard-podium-item--1 .leaderboard-podium-avatar {
    border-color: #F59E0B;
    height: 76px;
    width: 76px;
}

.leaderboard-podium-item--2 .leaderboard-podium-avatar {
    border-color: #CBD5E1;
}

.leaderboard-podium-item--3 .leaderboard-podium-avatar {
    border-color: #FB923C;
}

.leaderboard-podium-avatar img,
.leaderboard-list-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.leaderboard-podium-avatar img.is-hidden,
.leaderboard-list-avatar img.is-hidden,
.lb-fallback.is-hidden {
    display: none;
}

.lb-fallback {
    align-items: center;
    color: #334155;
    display: flex;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.leaderboard-podium-name {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 900;
    max-width: 100%;
    overflow: hidden;
    padding: 0 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-podium-points {
    color: #F15A2B;
    font-size: 0.78rem;
    font-weight: 900;
    margin-top: 4px;
}

.leaderboard-podium-step {
    align-items: center;
    border-radius: 8px 8px 0 0;
    color: #FFFFFF;
    display: flex;
    font-size: 2rem;
    font-weight: 900;
    justify-content: center;
    margin-top: 10px;
    min-height: 82px;
    width: 100%;
}

.leaderboard-podium-item--1 .leaderboard-podium-step {
    background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
    min-height: 116px;
}

.leaderboard-podium-item--2 .leaderboard-podium-step {
    background: linear-gradient(180deg, #E2E8F0 0%, #94A3B8 100%);
}

.leaderboard-podium-item--3 .leaderboard-podium-step {
    background: linear-gradient(180deg, #FED7AA 0%, #F97316 100%);
    min-height: 70px;
}

.leaderboard-list-card {
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.leaderboard-list-row {
    align-items: center;
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    gap: 12px;
    min-height: 62px;
    padding: 12px 18px;
    transition: background 0.18s ease;
}

.leaderboard-list-row:hover {
    background: #F8FAFC;
}

.leaderboard-list-row:last-child {
    border-bottom: 0;
}

.leaderboard-list-rank {
    color: #94A3B8;
    flex: 0 0 42px;
    font-weight: 900;
}

.leaderboard-list-avatar {
    height: 42px;
    width: 42px;
}

.leaderboard-list-user {
    flex: 1;
    min-width: 0;
}

.leaderboard-list-user h5 {
    color: #111827;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-list-user p {
    align-items: center;
    color: #64748B;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 6px;
    margin: 0;
}

.leaderboard-rank-pill {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 8px;
}

.leaderboard-rank-pill.rank-a {
    background: #DCFCE7;
    color: #047857;
}

.leaderboard-rank-pill.rank-b {
    background: #FEF3C7;
    color: #B45309;
}

.leaderboard-rank-pill.rank-c {
    background: #F1F5F9;
    color: #64748B;
}

.leaderboard-list-points {
    color: #F15A2B;
    flex: 0 0 auto;
    font-size: 1.05rem;
    font-weight: 900;
}

.leaderboard-empty-row {
    color: #64748B;
    padding: 22px;
    text-align: center;
}

@media (max-width: 768px) {
    #tab-leaderboard {
        padding: 0;
    }

    #tab-leaderboard .user-rank-card {
        align-items: flex-start !important;
        gap: 14px;
    }

    #tab-leaderboard .user-rank-card::after {
        display: none;
    }

    .leaderboard-podium {
        gap: 4px !important;
        padding: 38px 8px 0;
    }

    .leaderboard-podium-avatar {
        height: 52px;
        width: 52px;
    }

    .leaderboard-podium-item--1 .leaderboard-podium-avatar {
        height: 62px;
        width: 62px;
    }

    .leaderboard-podium-name {
        font-size: 0.78rem;
    }

    .leaderboard-podium-step {
        font-size: 1.45rem;
        min-height: 60px;
    }

    .leaderboard-podium-item--1 .leaderboard-podium-step {
        min-height: 92px;
    }

    .leaderboard-list-row {
        gap: 9px;
        padding: 11px 12px;
    }

    .leaderboard-list-rank {
        flex-basis: 34px;
    }
}
