
#profilesection {
    text-decoration: none;
}
#profilesection a {
    text-decoration: none;
}
#profilesection .text {
    font-size:var(--text-size-lg);
    font-weight:bold;
    color:var(--text-color-1);
}
#profilesection .rank {
    font-size:var(--text-size-sm);
    font-weight:900;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
}
#profilesection .profile {
    display:inline-block;
    text-align: center;
    position:relative;
    overflow:visible !important;
}
#profilesection .profile img {
    display:inline-block;
    text-align: center;
    height:50px;
    border-radius:50%;
    border:3px solid var(--text-color-1);
    transition:all ease 0.3s;
}
/*
#profilesection .profile::after {
    content:'';
    position:absolute;
    bottom:-5px;
    right:0px;
    width:18px;
    height:18px;
    background:rgb(69, 241, 69);
    border:4px solid var(--color-4);
    border-radius: 50%;
    z-index:11;
}
*/
#profilesection .profile::after {
    display: none !important;
    content: none !important;
}
.skin-avatar-3d {
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 50px;
    display: inline-block;
}
.skin-avatar-3d canvas {
    width: 96px !important;
    height: 96px !important;
    display: block;
    position: absolute;
    left: -24px;
    top: 0px;
}
.custom-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    margin-left: auto;
    margin-right: auto;
}

.custom-content iframe,
.custom-content video {
    max-width: 100%;
}

/* =========================================================
   HOMEPAGE PROFILE BAR — MOBILE RESTORATION
   ========================================================= */
@media screen and (max-width: 1100px) {

    .homepage-profile-fullwidth {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .homepage-profile-fullwidth > section {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .homepage-profile-fullwidth #profilesection {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 {
        overflow: visible !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex {
        width: 100% !important;
        height: auto !important;
        min-height: 64px !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        row-gap: 12px !important;
        overflow: visible !important;
        padding: 8px 12px !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > .d-flex {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        row-gap: 8px !important;
    }

    .homepage-profile-fullwidth .skin-avatar-3d,
    .homepage-profile-fullwidth .skin-avatar-3d canvas {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media screen and (max-width: 576px) {

    .homepage-profile-fullwidth > section {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* =========================================================
   Homepage profile - improved mobile layout
   ========================================================= */
@media (max-width: 768px) {

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex {
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > :first-child {
        margin-right: auto;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > :last-child {
        margin-left: auto;
    }

}

/* =========================================================
   Homepage profile — single-line mobile layout
   ========================================================= */
@media screen and (max-width: 768px) {

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-right: 4px !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > div:first-child > a {
        flex-flow: row nowrap !important;
        min-width: 0 !important;
    }

    .homepage-profile-fullwidth #profilesection > .col-12 > .d-flex > div:last-child {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important;
        white-space: nowrap !important;
    }

    .homepage-profile-fullwidth #profilesection .skin-avatar-3d {
        flex: 0 0 48px !important;
    }

    .homepage-profile-fullwidth #profilesection .ms-3 {
        margin-left: 6px !important;
        min-width: 0 !important;
    }

    .homepage-profile-fullwidth #profilesection .text,
    .homepage-profile-fullwidth #profilesection .rank {
        display: block !important;
        max-width: 88px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .homepage-profile-fullwidth #profilesection .me-3 {
        margin-right: 4px !important;
    }

    .homepage-profile-fullwidth #profilesection .btn {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
        padding: 7px 9px !important;
    }

    .homepage-profile-fullwidth #profilesection .btn .me-2 {
        margin-right: 0 !important;
    }
}

/* =========================================================
   PROFILE ACTION BUTTONS
   Wallet + Notifications
   ========================================================= */

#profilesection .btn {
    position: relative;
    overflow: hidden;
    transition:
        transform .18s ease,
        box-shadow .20s ease,
        border-color .20s ease,
        background-color .20s ease,
        color .20s ease;
}

#profilesection .btn i {
    transition:
        transform .20s ease,
        color .20s ease;
}

#profilesection .btn:hover {
    transform: translateY(-2px);
    border-color: rgba(110,180,255,.55);
    background: linear-gradient(
        180deg,
        rgba(70,90,180,.35),
        rgba(45,55,120,.45)
    );
    box-shadow:
        0 0 14px rgba(90,140,255,.35),
        0 8px 20px rgba(0,0,0,.28);
}

#profilesection .btn:hover i {
    color:#fff;
    transform:scale(1.08);
}

#profilesection .btn:active {
    transform:translateY(0);
}

/* Wallet */
#profilesection .btn[href*="wallet"]:hover,
#profilesection .btn[href*="balance"]:hover {
    border-color:rgba(70,220,120,.55);
    box-shadow:
        0 0 16px rgba(70,220,120,.30),
        0 8px 20px rgba(0,0,0,.30);
}

/* Notifications */
#profilesection .btn[data-bs-toggle="offcanvas"]:hover,
#profilesection .btn[data-bs-target*="notification"]:hover {
    border-color:rgba(255,185,70,.60);
    box-shadow:
        0 0 16px rgba(255,185,70,.32),
        0 8px 20px rgba(0,0,0,.30);
}

