:root {
    --b24-profile-blue: #1167e8;
    --b24-profile-blue-dark: #0747a6;
    --b24-profile-cyan: #18a7f8;
    --b24-profile-ink: #14213d;
    --b24-profile-muted: #6b7891;
    --b24-profile-line: #e8edf5;
    --b24-profile-soft: #f5f8fd;
    --b24-profile-white: #ffffff;
    --b24-profile-green: #19b36b;
}

.b24-profile-page {
    padding: 6px 0 46px;
    background:
        radial-gradient(circle at 5% 3%, rgba(24, 167, 248, .08), transparent 28%),
        linear-gradient(180deg, #f9fbff 0, #fff 360px);
}

.b24-profile-breadcrumb .breadcrumb {
    margin: 13px 0 16px;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.b24-profile-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid rgba(17, 103, 232, .10);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 10%, #f2f8ff 72%, #eaf7ff 100%);
    box-shadow: 0 18px 48px rgba(28, 60, 105, .10);
}

.b24-profile-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(17, 103, 232, .15), rgba(24, 167, 248, .04));
}

.b24-profile-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 26px;
}

.b24-profile-avatar-wrap {
    position: relative;
    flex: 0 0 132px;
}

.b24-profile-avatar {
    display: block;
    width: 132px;
    height: 132px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(17, 72, 145, .18);
}

.b24-profile-verified {
    position: absolute;
    right: 4px;
    bottom: 9px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--b24-profile-blue);
}

.b24-profile-copy {
    flex: 1;
    min-width: 0;
}

.b24-profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.b24-role-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 7px;
    padding: 5px 10px;
    color: #0b57bd;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(17, 103, 232, .15);
    border-radius: 999px;
    background: rgba(17, 103, 232, .08);
}

.b24-role-member {
    color: #69758b;
    border-color: #e1e6ef;
    background: #f3f5f8;
}

.b24-profile-name {
    margin: 0;
    color: var(--b24-profile-ink);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.b24-online-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: var(--b24-profile-muted);
    white-space: nowrap;
    font-size: 12px;
    border: 1px solid var(--b24-profile-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
}

.b24-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aab4c4;
}

.b24-online-status.is-online .b24-status-dot {
    background: var(--b24-profile-green);
    box-shadow: 0 0 0 4px rgba(25, 179, 107, .11);
}

.b24-profile-bio {
    max-width: 760px;
    margin: 12px 0 14px;
    color: #4b5870;
    font-size: 14px;
    line-height: 1.65;
}

.b24-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}

.b24-meta-item {
    display: inline-flex;
    gap: 6px;
    padding: 7px 10px;
    color: #46536a;
    font-size: 12px;
    border: 1px solid var(--b24-profile-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

.b24-meta-label {
    color: #8994a8;
}

.b24-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.b24-follow-form {
    margin: 0;
}

.b24-follow-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    color: #fff !important;
    font-weight: 700;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--b24-profile-blue), var(--b24-profile-cyan));
    box-shadow: 0 7px 18px rgba(17, 103, 232, .20);
}

.b24-follow-button:hover,
.b24-follow-button:focus {
    color: #fff;
    transform: translateY(-1px);
}

.b24-follow-button.is-following {
    color: #40506a !important;
    background: #eaf0f8;
    box-shadow: none;
}

.b24-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.b24-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #54627a;
    font-size: 14px;
    border: 1px solid var(--b24-profile-line);
    border-radius: 10px;
    background: #fff;
    transition: .2s ease;
}

.b24-social-links a:hover {
    color: #fff;
    border-color: var(--b24-profile-blue);
    background: var(--b24-profile-blue);
    transform: translateY(-2px);
}

.b24-profile-layout {
    display: flex;
    flex-wrap: wrap;
}

.b24-people-card,
.b24-articles-card {
    margin-bottom: 18px;
    border: 1px solid var(--b24-profile-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 57, 90, .06);
}

.b24-people-card {
    padding: 17px;
}

.b24-people-head,
.b24-articles-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.b24-people-head {
    margin-bottom: 13px;
}

.b24-card-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--b24-profile-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.b24-people-head h2,
.b24-articles-head h2 {
    margin: 0;
    color: var(--b24-profile-ink);
    font-weight: 800;
}

.b24-people-head h2 {
    font-size: 17px;
}

.b24-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    color: #0d5fcf;
    font-size: 12px;
    font-weight: 800;
    border-radius: 9px;
    background: #edf5ff;
}

.b24-avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
    padding: 2px;
}

.b24-avatar-link {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    margin: auto;
}

.b24-avatar-link img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(30, 52, 82, .14);
}

.b24-avatar-link:hover img {
    border-color: #a9d5ff;
    transform: scale(1.05);
}

.b24-mini-verified {
    position: absolute;
    right: -2px;
    bottom: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--b24-profile-blue);
}

.b24-empty-small {
    grid-column: 1 / -1;
    margin: 2px 0;
    color: var(--b24-profile-muted);
    font-size: 12px;
}

.b24-articles-card {
    overflow: hidden;
}

.b24-articles-head {
    padding: 19px 21px;
    border-bottom: 1px solid var(--b24-profile-line);
}

.b24-articles-head h2 {
    font-size: 21px;
}

.b24-article-total {
    color: var(--b24-profile-muted);
    font-size: 12px;
}

.b24-profile-posts {
    margin: 0;
    padding: 20px 6px 6px;
}

.b24-empty-state {
    margin: 5px 0 20px;
    padding: 35px 20px;
    color: var(--b24-profile-muted);
    text-align: center;
    border: 1px dashed #d9e2ef;
    border-radius: 15px;
    background: #fafcff;
}

.b24-empty-icon {
    display: block;
    margin-bottom: 8px;
    color: var(--b24-profile-blue);
    font-size: 25px;
}

.b24-profile-pagination {
    padding-top: 8px;
}

@media (max-width: 991px) {
    .b24-profile-layout {
        display: block;
    }

    .b24-profile-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .b24-avatar-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767px) {
    .b24-profile-page {
        padding-bottom: 28px;
    }

    .b24-profile-hero {
        margin-bottom: 15px;
        padding: 21px 17px;
        border-radius: 18px;
    }

    .b24-profile-info {
        align-items: flex-start;
        gap: 15px;
    }

    .b24-profile-avatar-wrap,
    .b24-profile-avatar {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .b24-profile-avatar {
        border-width: 4px;
    }

    .b24-profile-verified {
        right: -1px;
        bottom: 2px;
        width: 25px;
        height: 25px;
        font-size: 13px;
    }

    .b24-profile-title-row {
        display: block;
    }

    .b24-profile-name {
        font-size: 25px;
        word-break: break-word;
    }

    .b24-online-status {
        margin-top: 10px;
        white-space: normal;
    }

    .b24-profile-bio,
    .b24-profile-meta,
    .b24-profile-actions {
        margin-left: -101px;
    }

    .b24-profile-bio {
        margin-top: 21px;
    }

    .b24-profile-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .b24-avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .b24-avatar-link,
    .b24-avatar-link img {
        width: 44px;
        height: 44px;
    }

    .b24-people-card {
        padding: 14px;
        border-radius: 15px;
    }

    .b24-articles-head {
        align-items: flex-start;
        padding: 16px;
    }

    .b24-articles-head h2 {
        font-size: 18px;
    }

    .b24-profile-posts {
        padding-top: 14px;
    }
}

@media (max-width: 480px) {
    .b24-profile-sidebar {
        grid-template-columns: 1fr;
    }

    .b24-avatar-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .b24-profile-actions {
        align-items: flex-start;
    }
}