body {
    background: radial-gradient(#393939, #080808);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.community-wrapper {
    width: min(1400px, 92vw);
    margin: 0 auto;
}

.community-hero {
    margin-top: 12vh;
    padding: 120px 0 40px;
}

.community-hero-head {
    text-align: center;
    margin-bottom: 32px;
}

.community-hero-head h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
}

.community-hero-head p {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.6;
}

.community-search-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
}

.community-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.community-search-input-wrap i {
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
}

.community-search-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.community-search-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.community-search-input-wrap button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3c37f1, #5752ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.community-search-input-wrap button:hover {
    filter: brightness(1.08);
}

.community-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.community-targets label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.community-targets label.active {
    border-color: rgba(60, 55, 241, 0.55);
    background: rgba(60, 55, 241, 0.18);
}

.community-targets input[type="radio"] {
    accent-color: #5c57ff;
}

.community-top-configs,
.community-results,
.community-latest {
    padding: 24px 0 44px;
}

.community-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.community-results-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.community-results-head span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
}

.community-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.community-top-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-top-card:hover {
    transform: translateY(-4px);
    border-color: rgba(104, 99, 255, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.community-top-card.rank-1 {
    border-color: rgba(255, 211, 79, 0.42);
}

.community-top-card.rank-2 {
    border-color: rgba(182, 192, 215, 0.38);
}

.community-top-card.rank-3 {
    border-color: rgba(214, 144, 83, 0.36);
}

.community-top-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-top-rank i {
    font-size: 1rem;
    color: #ffd34f;
}

.community-top-images {
    min-height: 120px;
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.24);
}

.community-top-images img {
    width: 30%;
    max-height: 82px;
    object-fit: contain;
}

.community-top-content {
    padding: 14px;
}

.community-top-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.community-top-price {
    background: linear-gradient(135deg, #3c37f1, #5752ff);
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.community-top-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffd76f;
    font-size: 0.84rem;
    font-weight: 600;
}

.community-result-block {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
}

.community-result-block h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.community-users-grid,
.community-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.community-user-card,
.community-component-card {
    border-radius: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.community-user-main strong,
.community-component-card strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.community-user-main span,
.community-component-card span,
.community-component-card small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.community-user-actions {
    margin-top: 10px;
}

.community-user-actions a {
    color: #8e8bff;
    font-weight: 600;
    font-size: 0.88rem;
}

.community-component-type {
    display: inline-block;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    background: rgba(60, 55, 241, 0.25);
    border: 1px solid rgba(60, 55, 241, 0.4);
}

.community-configs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.community-configs-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.community-config-card {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.community-config-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.community-config-header {
    position: relative;
    min-height: 120px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.community-config-header img {
    width: 40%;
    max-height: 90px;
    object-fit: contain;
}

.community-config-header span {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #3c37f1, #5752ff);
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.community-config-body {
    padding: 14px;
}

.community-config-author {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.community-config-spec {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

.community-config-spec span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.community-config-spec strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    text-align: right;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.community-pagination span {
    color: rgba(255, 255, 255, 0.65);
}

.community-page-btn {
    border-radius: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.empty-state {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    text-align: center;
}

.empty-state .icon i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.9rem;
}

.empty-state h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 1.1rem;
}

.empty-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1080px) {
    .community-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .community-hero {
        padding-top: 104px;
    }

    .community-results-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .community-wrapper {
        width: 94vw;
    }

    .community-top-grid {
        grid-template-columns: 1fr;
    }

    .community-search-input-wrap {
        flex-wrap: wrap;
    }

    .community-search-input-wrap button {
        width: 100%;
    }

    .community-top-configs,
    .community-results,
    .community-latest {
        padding: 20px 0 30px;
    }

    .community-config-header,
    .community-top-images {
        min-height: 110px;
    }
}
