.nx-profile-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
    overflow: hidden;
}

.nx-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.nx-profile-kicker,
.nx-profile-rank small {
    color: #38bdf8;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.nx-profile-head h3 {
    margin: .25rem 0;
    color: var(--text-main);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 900;
}

.nx-profile-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: .82rem;
}

.nx-profile-rank {
    display: grid;
    min-width: 7rem;
    padding: .75rem;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 14px;
    background: rgba(56, 189, 248, .08);
    text-align: center;
    text-decoration: none !important;
}

.nx-profile-rank strong {
    color: var(--text-main);
    font-size: 1.35rem;
}

.nx-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

.nx-profile-stats div {
    display: grid;
    gap: .2rem;
    padding: .8rem;
    border: 1px solid var(--glass-inner-border);
    border-radius: 12px;
    background: var(--glass-inner-bg);
}

.nx-profile-stats strong {
    color: var(--text-main);
    font-size: 1.15rem;
}

.nx-profile-stats span,
.nx-profile-section small,
.nx-profile-empty {
    color: var(--text-muted);
    font-size: .72rem;
}

.nx-profile-progress {
    display: grid;
    gap: .4rem;
    margin-top: .85rem;
    padding: .8rem;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 14px;
    background: rgba(56, 189, 248, .07);
}

.nx-profile-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nx-profile-progress-track {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.nx-profile-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #f97316);
}

.nx-profile-progress small {
    color: var(--text-muted);
}

.nx-profile-section {
    margin-top: 1rem;
}

.nx-profile-section h4 {
    margin: 0 0 .65rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nx-profile-section h4 i {
    margin-right: .35rem;
    color: #38bdf8;
}

.nx-profile-forums,
.nx-profile-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.nx-profile-forums a,
.nx-profile-activity-grid a {
    display: grid;
    min-width: 0;
    gap: .25rem;
    padding: .7rem;
    border: 1px solid var(--glass-inner-border);
    border-radius: 12px;
    color: var(--text-main);
    background: var(--glass-inner-bg);
    text-decoration: none !important;
}

.nx-profile-forums span,
.nx-profile-activity-grid strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-profile-forums small {
    color: #fbbf24;
    font-weight: 800;
}

.nx-profile-forums em {
    width: fit-content;
    padding: .18rem .45rem;
    border: 1px solid rgba(249, 115, 22, .22);
    border-radius: 999px;
    color: #fb923c;
    background: rgba(249, 115, 22, .10);
    font-size: .64rem;
    font-style: normal;
    font-weight: 900;
}

.nx-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.nx-profile-badges div {
    display: grid;
    justify-items: center;
    gap: .35rem;
    width: 5rem;
    text-align: center;
}

.nx-profile-badges div > span {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid color-mix(in srgb, var(--nx-badge-color), transparent 50%);
    border-radius: 12px;
    color: var(--nx-badge-color);
    background: color-mix(in srgb, var(--nx-badge-color), transparent 88%);
}

.nx-profile-activity-grid a > span {
    width: fit-content;
    padding: .15rem .4rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nx-profile-activity-grid .is-thread {
    color: #38bdf8;
    background: rgba(56, 189, 248, .12);
}

.nx-profile-activity-grid .is-post {
    color: #a78bfa;
    background: rgba(167, 139, 250, .12);
}

.nx-profile-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 0 .25rem;
}

@media (max-width: 680px) {
    .nx-profile-head {
        display: grid;
    }

    .nx-profile-rank {
        justify-self: stretch;
    }

    .nx-profile-stats,
    .nx-profile-forums,
    .nx-profile-activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
