.profile-badge-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}

.profile-badge-trigger img {
    display: block;
}


/* =========================================================
   DESKTOP POPOVER
========================================================= */

.profile-badge-popover {
    --bs-popover-max-width: none;
    --bs-popover-border-width: 1px;
    --bs-popover-border-radius: 18px;
    --bs-popover-border-color: rgba(112, 126, 164, .32);
    --bs-popover-bg: rgba(5, 17, 33, .78);

    width: auto !important;
    max-width: calc(100vw - 32px) !important;

    border-radius: 18px !important;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(104, 77, 210, .09),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(9, 24, 44, .78) 0%,
            rgba(6, 19, 33, .76) 54%,
            rgba(7, 17, 31, .80) 100%
        );

    box-shadow:
        0 5px 13px rgba(0, 0, 0, .30),
        0 0 0 1px rgba(95, 78, 155, .07);

    backdrop-filter: blur(8px) saturate(112%);
    -webkit-backdrop-filter: blur(8px) saturate(112%);

    overflow: hidden;
}

.profile-badge-popover .popover-arrow::before {
    border-bottom-color: rgba(112, 126, 164, .32);
}

.profile-badge-popover .popover-arrow::after {
    border-bottom-color: #09182c;
}

.profile-badge-popover .popover-body {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    padding: 20px 22px 18px;
    color: var(--vz-body-color);
}

.profile-badge-popover-card {
    width: max-content;
    min-width: 380px;
    max-width: calc(100vw - 76px);
}

.profile-badge-popover-hero {
    display: grid;
    grid-template-columns: 64px auto;
    align-items: center;
    gap: 16px;
}

.profile-badge-popover-art-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(83, 73, 163, .10);
    box-shadow:
        0 0 0 1px rgba(138, 111, 255, .34),
        0 0 14px rgba(80, 49, 160, .14);
}

.profile-badge-popover-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

.profile-badge-popover-title {
    margin: 0 0 7px;
    color: #f3f5fb;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.profile-badge-acquired {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8f9aaf;
    font-size: 12px;
    white-space: nowrap;
}

.profile-badge-acquired-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dce2ec;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-badge-acquired-value i {
    color: #9b7cff;
    font-size: 14px;
}

.profile-badge-divider {
    height: 1px;
    margin: 17px 0 10px;
    background: rgba(140, 154, 181, .18);
}

.profile-badge-detail-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    min-height: 40px;
}

.profile-badge-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #8f9aaf;
    font-size: 13px;
    white-space: nowrap;
}

.profile-badge-detail-label i {
    width: 17px;
    color: #9878ff;
    font-size: 17px;
    text-align: center;
}

.profile-badge-detail-value {
    min-width: 0;
    color: #f1f3f7;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}



.profile-badge-tier-row {
    grid-template-columns: 132px minmax(0, 1fr);
}

.profile-badge-tier-row .profile-badge-detail-value {
    margin-left: 6px;
}

.profile-badge-verified-list {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    white-space: nowrap;
}

.profile-badge-verified-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dce2ec;
    font-size: 12px;
    font-weight: 600;
}

.profile-badge-verified-item i {
    color: var(--vz-success);
    font-size: 15px;
}

/* =========================================================
   MOBILE MODAL
========================================================= */

.profile-badge-modal-surface {
    position: relative;
    max-height: calc(100vh - 2rem);
    overflow: hidden;

    backdrop-filter: blur(10px) saturate(115%);
    -webkit-backdrop-filter: blur(10px) saturate(115%);

    border: 1px solid rgba(118, 128, 165, .34);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(112, 76, 220, .10),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(10, 23, 42, .82) 0%,
            rgba(6, 19, 33, .80) 52%,
            rgba(8, 17, 31, .83) 100%
        );

    box-shadow:
        0 6px 16px rgba(0, 0, 0, .34),
        0 0 0 1px rgba(104, 82, 175, .07);
}

.profile-badge-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.profile-badge-modal-hero {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding-right: 38px;
}

.profile-badge-modal-art-wrap {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(82, 65, 164, .10);

    box-shadow:
        0 0 0 1px rgba(141, 107, 255, .48),
        0 0 18px rgba(82, 48, 168, .16);
}

.profile-badge-modal-image {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
}

.profile-badge-modal-title {
    margin: 0 0 10px;
    color: #f4f6fb;
    font-size: 21px;
    font-weight: 680;
    line-height: 1.3;
}

.profile-badge-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(142, 111, 255, .55);
    border-radius: 50%;

    background: #081426;
    color: #f2f4f8;

    font-size: 24px;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .30),
        0 0 10px rgba(102, 68, 190, .13);
}

.profile-badge-modal-close:hover {
    background: #0d1c32;
    color: #fff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 992px) {
    #profileBadgeInfoModal {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    #profileBadgeInfoModal .modal-dialog {
        margin: 14px;
    }

    .profile-badge-modal-body {
        padding: 24px 20px;
    }

    .profile-badge-modal-hero {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
    }

    .profile-badge-modal-art-wrap {
        width: 76px;
        height: 76px;
    }

    .profile-badge-modal-image {
        width: 68px;
        height: 68px;
    }

    .profile-badge-modal-title {
        font-size: 18px;
    }

    .profile-badge-detail-row {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
    }
}
