.users-profile-page {
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.users-profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.users-profile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.users-profile-card,
.users-profile-panel {
    background: var(--bs-body-bg);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.users-profile-card {
    padding: 1.5rem;
}

.users-profile-head {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.users-profile-avatar {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.users-profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 700;
    color: #0f172a;
}

.users-profile-kicker {
    margin: 0 0 0.35rem;
    color: #47607a;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.users-profile-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.users-profile-subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 1.05rem;
}

.users-profile-inline-meta {
    margin: 0.85rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: #475569;
}

.users-profile-inline-sep {
    color: #94a3b8;
}

.users-profile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.users-profile-status.is-ok {
    background: #e8f7ee;
    color: #196f3d;
    border-color: #b8e0c3;
}

.users-profile-status.is-pending {
    background: #fff5db;
    color: #8a5b00;
    border-color: #f4d27a;
}

.users-profile-status.is-blocked,
.users-profile-status.is-disabled {
    background: #fdeaea;
    color: #a11c1c;
    border-color: #efb2b2;
}

.users-profile-status.is-unknown {
    background: #eef2f7;
    color: #475569;
    border-color: #d6dde7;
}

.users-profile-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.users-profile-stat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 1rem 1.05rem;
    min-width: 0;
}

.users-profile-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.users-profile-stat-value {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #0f172a;
}

.users-profile-stat-meta {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.92rem;
}

.users-profile-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: -1rem -1.05rem;
    padding: 1rem 1.05rem;
    border-radius: 0.95rem;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.users-profile-stat-link:hover {
    background: linear-gradient(180deg, rgba(238, 244, 255, 0.9) 0%, rgba(248, 250, 252, 1) 100%);
    border-color: rgba(13, 110, 253, 0.18);
    box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.08);
    color: inherit;
}

.users-profile-stat-link:hover .users-profile-stat-label {
    color: #2563eb;
}

.users-profile-stat-link:hover .users-profile-stat-value {
    color: #1d4ed8;
}

.users-profile-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.users-profile-panel {
    padding: 1.25rem;
}

.users-profile-panel-wide {
    margin-top: 1rem;
}

.users-profile-panel-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.users-profile-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.users-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    line-height: 1;
}

.users-profile-tag strong {
    font-size: 0.95rem;
}

.users-profile-tag:hover {
    background: #eef4ff;
    border-color: rgba(13, 110, 253, 0.22);
    color: #0f172a;
}

.users-profile-tag-muted {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 400;
}

.users-profile-empty {
    margin: 0;
    color: #64748b;
}

.users-profile-biography {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .users-profile-card {
        padding: 1.15rem;
    }

    .users-profile-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .users-profile-avatar {
        margin: 0 auto;
    }

    .users-profile-inline-meta {
        justify-content: center;
    }

    .users-profile-stats,
    .users-profile-panels {
        grid-template-columns: 1fr;
    }
}
