.public-profile-cover {
        position: relative;
        min-height: 240px;
        background:
            linear-gradient(180deg, rgba(5, 11, 24, 0.08) 0%, rgba(5, 11, 24, 0.55) 100%),
            radial-gradient(circle at top right, rgba(0, 255, 170, 0.18), transparent 35%),
            linear-gradient(135deg, #081325 0%, #0b1730 45%, #101d3a 100%);
        background-size: cover;
        background-position: center;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }

    .public-profile-cover__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.30) 100%);
        pointer-events: none;
    }

    .public-profile-header {
        position: relative;
        margin-top: -28px;
        padding: 24px 24px 24px 170px;
        min-height: 150px;
    }

    .public-profile-avatar {
        position: absolute;
        left: 24px;
        top: -18px;
        z-index: 3;
        width: 112px;
        height: 112px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid rgba(7, 14, 30, 0.98);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
        background: #0b1528;
        display: block;
    }

    .public-profile-header .row {
        align-items: end;
    }

    .public-profile-name {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.15;
        margin: 0 0 6px 140px;
        word-break: break-word;
        color: #1a2230;
    }

    .public-profile-handle {
        color: var(--bs-secondary-color, #6f7d92);
        font-size: 0.95rem;
        margin: 0 0 6px 140px;
        word-break: break-word;
    }

    .public-profile-location {
        margin-left: 140px;
        color: #5f6c80;
    }

    .public-social-item {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        padding: 14px 16px;
        height: 100%;
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(6px);
        transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .public-social-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .public-social-label {
        font-size: 0.85rem;
        color: var(--bs-secondary-color, #6f7d92);
        margin-bottom: 4px;
    }

    .public-social-link {
        word-break: break-word;
        color: #1a2230;
        text-decoration: none;
    }

    .public-social-link:hover {
        text-decoration: underline;
    }

    .public-website-link {
        word-break: break-word;
    }

    /* Dark mode */
    body.dark-mode .public-profile-name,
    [data-theme="dark"] .public-profile-name,
    html[data-theme="dark"] .public-profile-name {
        color: #f5f7fb !important;
    }

    body.dark-mode .public-profile-handle,
    [data-theme="dark"] .public-profile-handle,
    html[data-theme="dark"] .public-profile-handle {
        color: #a9b4c7 !important;
    }

    body.dark-mode .public-profile-location,
    [data-theme="dark"] .public-profile-location,
    html[data-theme="dark"] .public-profile-location {
        color: #c4ccda !important;
    }

    body.dark-mode .public-social-label,
    [data-theme="dark"] .public-social-label,
    html[data-theme="dark"] .public-social-label {
        color: #aeb8ca !important;
    }

    body.dark-mode .public-social-link,
    [data-theme="dark"] .public-social-link,
    html[data-theme="dark"] .public-social-link {
        color: #f3f6fb !important;
    }

    body.dark-mode .public-social-item,
    [data-theme="dark"] .public-social-item,
    html[data-theme="dark"] .public-social-item {
        background: rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    body.dark-mode .public-profile-header,
    [data-theme="dark"] .public-profile-header,
    html[data-theme="dark"] .public-profile-header {
        color: #eef3fb !important;
    }

    body.dark-mode .text-muted,
    [data-theme="dark"] .text-muted,
    html[data-theme="dark"] .text-muted {
        color: #aeb8ca !important;
    }

    body.dark-mode .public-website-link,
    [data-theme="dark"] .public-website-link,
    html[data-theme="dark"] .public-website-link {
        color: #f3f6fb !important;
    }

    @media (max-width: 767.98px) {
        .public-profile-cover {
            min-height: 180px !important;
            background-position: center center !important;
        }

        .public-profile-header {
            position: relative !important;
            margin-top: -18px !important;
            padding: 18px 16px 20px 124px !important;
            min-height: 120px !important;
        }

        .public-profile-avatar {
            position: absolute !important;
            left: 16px !important;
            top: -10px !important;
            width: 88px !important;
            height: 88px !important;
            border-width: 3px !important;
        }

        .public-profile-name {
            font-size: 1.5rem !important;
            line-height: 1.15 !important;
            margin: 0 0 6px 108px !important;
            word-break: break-word !important;
        }

        .public-profile-handle {
            font-size: 0.9rem !important;
            margin: 0 0 6px 108px !important;
            word-break: break-word !important;
        }

        .public-profile-location {
            margin-left: 108px !important;
        }
    }

    @media (max-width: 575.98px) {
        .public-profile-header {
            padding-bottom: 16px !important;
        }
    }
    /* Public profile VisionX results table dark-mode fix */
    html[data-theme="dark"] .public-profile-results-table,
    body.dark-mode .public-profile-results-table{
        background: rgba(8, 24, 39, 0.92) !important;
        color: #e5eefb !important;
    }

    html[data-theme="dark"] .public-profile-results-table th,
    html[data-theme="dark"] .public-profile-results-table td,
    body.dark-mode .public-profile-results-table th,
    body.dark-mode .public-profile-results-table td{
        background: rgba(8, 24, 39, 0.92) !important;
        color: #e5eefb !important;
        border-color: rgba(148, 163, 184, 0.16) !important;
    }

    html[data-theme="dark"] .public-profile-results-table thead th,
    body.dark-mode .public-profile-results-table thead th{
        background: rgba(15, 23, 42, 0.96) !important;
        color: #94a3b8 !important;
    }

    html[data-theme="dark"] .public-profile-results-table a,
    body.dark-mode .public-profile-results-table a{
        color: #67e8f9 !important;
    }

/* ===== Public profile platform width ===== */

.public-profile-page-wrap{
    max-width: 1320px !important;
}

.public-profile-cover-card{
    padding: 0;
}

