/*=========================================================
    MENU OVERLAY
=========================================================*/

.menu-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

    opacity:0;

    visibility:hidden;

    transition:.35s ease;

    z-index:1990;

}

.menu-overlay.active{

    opacity:1;

    visibility:visible;

}

/*=========================================================
    MENU PANEL
=========================================================*/

.menu{

    position:fixed;

    top:0;

    right:-430px;

    width:400px;

    max-width:100%;

    height:100dvh;

    overflow-y:auto;

    overflow-x:hidden;

    display:flex;

    flex-direction:column;

    background:

        linear-gradient(

            180deg,

            rgba(16,16,16,.96),

            rgba(6,6,6,.96)

        );

    backdrop-filter:blur(45px);

    -webkit-backdrop-filter:blur(45px);

    border-left:1px solid rgba(255,255,255,.08);

    box-shadow:

        -30px 0 80px rgba(0,0,0,.45),

        -5px 0 35px rgba(255,45,85,.08);

    transition:

        right .45s cubic-bezier(.22,1,.36,1);

    z-index:2000;

}

.menu.active{

    right:0;

}

/*=========================================================
    MENU BACKGROUND
=========================================================*/

.menu::before{

    content:"";

    position:absolute;

    top:-180px;

    right:-180px;

    width:340px;

    height:340px;

    border-radius:50%;

    background:

        rgba(255,45,85,.18);

    filter:blur(140px);

    pointer-events:none;

}

.menu::after{

    content:"";

    position:absolute;

    left:-160px;

    bottom:-180px;

    width:320px;

    height:320px;

    border-radius:50%;

    background:

        rgba(141,61,255,.14);

    filter:blur(140px);

    pointer-events:none;

}

/*=========================================================
    MENU CONTENT
=========================================================*/

.menu-content{

    position:relative;

    display:flex;

    flex-direction:column;

    height:100%;

    overflow-y:auto;

    z-index:2;

}

/*=========================================================
    MENU HEADER
=========================================================*/

.menu-header{

    position:relative;

    padding:28px;

    border-bottom:1px solid rgba(255,255,255,.06);

}

/*=========================================================
    CLOSE BUTTON
=========================================================*/

.menu-close{

    width:46px;

    height:46px;

    display:grid;

    place-items:center;

    margin-left:auto;

    border-radius:14px;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    cursor:pointer;

    transition:.35s;

}

.menu-close:hover{

    background:rgba(255,45,85,.08);

    border-color:rgba(255,45,85,.25);

    box-shadow:

        0 0 35px rgba(255,45,85,.18);

    transform:rotate(90deg);

}

.menu-close i{

    color:#ffffff;

    font-size:18px;

}

/*=========================================================
    PROFILE
=========================================================*/

.menu-profile{

    margin-top:15px;

    text-align:center;

}

.menu-profile h2{

    margin-bottom:10px;

    font-size:20px;

    font-weight:800;

}

.menu-profile span{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(255,45,85,.10);

    color:#ff7c9b;

    font-size:14px;

    font-weight:700;

    border:1px solid rgba(255,45,85,.18);

}
/*=========================================================
    BALANCE CARD
=========================================================*/

.menu-balance{

    position:relative;

    margin-top:15px;

    padding:15px;

    border-radius:25px;

    overflow:hidden;

    isolation:isolate;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.025)
        );

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(30px);

    -webkit-backdrop-filter:blur(30px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.35);

    transition:
        transform .35s,
        border-color .35s,
        box-shadow .35s;

}

.menu-balance:hover{

    transform:translateY(-6px);

    border-color:rgba(255,45,85,.25);

    box-shadow:
        0 25px 60px rgba(255,45,85,.12);

}

.menu-balance>*{

    position:relative;

    z-index:2;

}

.menu-balance::before{

    content:"";

    position:absolute;

    width:220px;

    height:220px;

    top:-110px;

    right:-90px;

    border-radius:50%;

    background:
        rgba(255,45,85,.18);

    filter:blur(120px);

    pointer-events:none;

}

.menu-balance::after{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.05),
            transparent,
            rgba(255,45,85,.04)
        );

    pointer-events:none;

}

/*=========================================================
    BALANCE HEADER
=========================================================*/

.menu-balance-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;

}

.menu-balance-title{

    display:flex;

    align-items:center;

    gap:10px;

    color:#d4d4d4;

    font-size:15px;

    font-weight:600;

}

.menu-balance-title i{

    color:#ffbf3d;

    font-size:18px;

}

/*=========================================================
    BALANCE ADD
=========================================================*/

.menu-balance-add{

    width:36px;

    height:36px;

    display:grid;

    place-items:center;

    border-radius:12px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

    cursor:pointer;

}

.menu-balance-add:hover{

    background:rgba(255,45,85,.10);

    border-color:rgba(255,45,85,.25);

    box-shadow:
        0 0 30px rgba(255,45,85,.18);

    transform:rotate(90deg);

}

.menu-balance-add i{

    color:#ffffff;

    font-size:14px;

}

/*=========================================================
    BALANCE VALUE
=========================================================*/

.menu-balance-value{

    margin-bottom:18px;

    font-size:42px;

    font-weight:900;

    letter-spacing:-1px;

    color:#ffffff;

}

/*=========================================================
    BALANCE INFO
=========================================================*/

.menu-balance-info{

    color:#9d9d9d;

    font-size:14px;

    line-height:1.7;

}
/*=========================================================
    MENU NAVIGATION
=========================================================*/

.menu-nav{

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:28px;

    margin-top:12px;

}

/*=========================================================
    MENU LINK
=========================================================*/

.menu-link{

    position:relative;

    display:flex;

    align-items:center;

    gap:18px;

    height:62px;

    padding:0 22px;

    overflow:hidden;

    border-radius:18px;

    color:#d5d5d5;

    font-size:16px;

    font-weight:600;

    transition:

        transform .35s,

        color .35s,

        background .35s,

        border-color .35s,

        box-shadow .35s;

}

/*=========================================================
    MENU LINK BACKGROUND
=========================================================*/

.menu-link::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    opacity:0;

    background:

        linear-gradient(

            90deg,

            rgba(255,45,85,.14),

            rgba(255,45,85,.04)

        );

    transition:.35s;

}

/*=========================================================
    ACTIVE BAR
=========================================================*/

.menu-link::after{

    content:"";

    position:absolute;

    left:0;

    top:50%;

    transform:

        translateY(-50%)

        scaleY(0);

    width:4px;

    height:70%;

    border-radius:50px;

    background:var(--primary);

    transition:.35s;

}

/*=========================================================
    MENU ICON
=========================================================*/

.menu-link i{

    position:relative;

    width:24px;

    font-size:19px;

    color:#bcbcbc;

    transition:

        transform .35s,

        color .35s;

}

/*=========================================================
    MENU TEXT
=========================================================*/

.menu-link span{

    position:relative;

    z-index:2;

}

/*=========================================================
    MENU HOVER
=========================================================*/

.menu-link:hover{

    color:#ffffff;

    transform:translateX(8px);

}

.menu-link:hover::before{

    opacity:1;

}

.menu-link:hover::after{

    transform:

        translateY(-50%)

        scaleY(1);

}

.menu-link:hover i{

    color:var(--primary);

    transform:scale(1.12);

}

/*=========================================================
    MENU ACTIVE
=========================================================*/

.menu-link.active{

    color:#ffffff;

    background:

        linear-gradient(

            90deg,

            rgba(255,45,85,.16),

            rgba(255,255,255,.02)

        );

    box-shadow:

        inset 0 0 0 1px rgba(255,45,85,.18),

        0 0 35px rgba(255,45,85,.10);

}

.menu-link.active::after{

    transform:

        translateY(-50%)

        scaleY(1);

}

.menu-link.active i{

    color:var(--primary);

}

/*=========================================================
    MENU DIVIDER
=========================================================*/

.menu-divider{

    width:calc(100% - 56px);

    height:1px;

    margin:8px auto;

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.08),

            transparent

        );

}
/*=========================================================
    MENU FOOTER
=========================================================*/

.menu-footer{

    margin-top:auto;

    padding:28px;

    border-top:1px solid rgba(255,255,255,.06);

}

/*=========================================================
    LOGOUT BUTTON
=========================================================*/

.menu-logout{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:14px;

    width:100%;

    height:60px;

    overflow:hidden;

    border-radius:18px;

    background:

        linear-gradient(

            180deg,

            rgba(255,45,85,.12),

            rgba(255,45,85,.06)

        );

    border:1px solid rgba(255,45,85,.18);

    color:#ffffff;

    font-size:16px;

    font-weight:700;

    transition:

        transform .35s,

        box-shadow .35s,

        border-color .35s,

        background .35s;

}

/*=========================================================
    LOGOUT SHINE
=========================================================*/

.menu-logout::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:45%;

    height:100%;

    transform:skewX(-25deg);

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.28),

            transparent

        );

    transition:.8s;

    pointer-events:none;

}

.menu-logout:hover::before{

    left:170%;

}

/*=========================================================
    LOGOUT HOVER
=========================================================*/

.menu-logout:hover{

    transform:translateY(-4px);

    border-color:rgba(255,45,85,.30);

    background:

        linear-gradient(

            180deg,

            rgba(255,45,85,.18),

            rgba(255,45,85,.08)

        );

    box-shadow:

        0 20px 45px rgba(255,45,85,.18),

        0 0 60px rgba(255,45,85,.10);

}

.menu-logout:active{

    transform:scale(.98);

}

.menu-logout i{

    color:#ff5d7c;

    transition:.35s;

}

.menu-logout:hover i{

    transform:translateX(-2px);

    color:#ffffff;

}

/*=========================================================
    MENU ANIMATION
=========================================================*/

.menu.active .menu-profile{

    animation:menuFade .45s ease forwards;

}

.menu.active .menu-balance{

    animation:menuFade .45s ease .08s forwards;

}

.menu.active .menu-link:nth-child(1){

    animation:menuFade .4s ease .12s forwards;

}

.menu.active .menu-link:nth-child(2){

    animation:menuFade .4s ease .18s forwards;

}

.menu.active .menu-link:nth-child(3){

    animation:menuFade .4s ease .24s forwards;

}

.menu.active .menu-link:nth-child(4){

    animation:menuFade .4s ease .30s forwards;

}

.menu.active .menu-link:nth-child(5){

    animation:menuFade .4s ease .36s forwards;

}

.menu.active .menu-footer{

    animation:menuFade .45s ease .42s forwards;

}

/*=========================================================
    INITIAL STATE
=========================================================*/

.menu-profile,
.menu-balance,
.menu-link,
.menu-footer{

    opacity:0;

    transform:translateX(35px);

}

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

@media(max-width:768px){

    .menu{

        width:81%;

    }

}

@media(max-width:420px){

    .menu-header{

        padding:22px;

    }

    .menu-nav{

        padding:22px;

    }

    .menu-footer{

        padding:22px;

    }

}

/*=========================================================
    KEYFRAMES
=========================================================*/

@keyframes menuFade{

    from{

        opacity:0;

        transform:

            translateX(35px);

    }

    to{

        opacity:1;

        transform:

            translateX(0);

    }

}
/*=========================================================
    PREMIUM AMBIENT LIGHT
=========================================================*/

.menu-ambient{

    position:absolute;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:0;

}

.menu-ambient::before{

    content:"";

    position:absolute;

    width:280px;

    height:280px;

    top:-120px;

    right:-80px;

    border-radius:50%;

    background:rgba(255,45,85,.16);

    filter:blur(130px);

    animation:menuGlowOne 12s ease-in-out infinite;

}

.menu-ambient::after{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    left:-120px;

    bottom:-120px;

    border-radius:50%;

    background:rgba(141,61,255,.12);

    filter:blur(130px);

    animation:menuGlowTwo 14s ease-in-out infinite;

}

/*=========================================================
    GLASS REFLECTION
=========================================================*/

.menu-glass{

    position:absolute;

    inset:0;

    pointer-events:none;

    overflow:hidden;

    border-radius:inherit;

}

.menu-glass::before{

    content:"";

    position:absolute;

    top:-40%;

    left:-65%;

    width:70%;

    height:180%;

    transform:rotate(28deg);

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.05),

            transparent

        );

    animation:glassMove 9s linear infinite;

}

.menu-glass::after{

    content:"";

    position:absolute;

    inset:0;

    background:

        linear-gradient(

            180deg,

            rgba(255,255,255,.025),

            transparent 35%

        );

}

/*=========================================================
    BORDER GLOW
=========================================================*/

.menu-border{

    position:absolute;

    inset:0;

    border-radius:inherit;

    pointer-events:none;

    border:1px solid rgba(255,255,255,.05);

    box-shadow:

        inset 0 1px 0 rgba(255,255,255,.05),

        inset 0 -1px 0 rgba(255,255,255,.02),

        0 0 60px rgba(255,45,85,.05);

}

/*=========================================================
    MENU NOISE
=========================================================*/

.menu-noise{

    position:absolute;

    inset:0;

    opacity:.03;

    pointer-events:none;

    background-image:

        radial-gradient(circle,#fff 1px,transparent 1px);

    background-size:8px 8px;

}

/*=========================================================
    MENU SHADOW
=========================================================*/

.menu-shadow{

    position:absolute;

    inset:0;

    pointer-events:none;

    box-shadow:

        inset 0 0 120px rgba(0,0,0,.18),

        inset 0 -120px 120px rgba(0,0,0,.18);

}

/*=========================================================
    MENU HOVER LIGHT
=========================================================*/

.menu-link{

    overflow:hidden;

}

.menu-link .hover-light{

    position:absolute;

    left:-120%;

    top:0;

    width:45%;

    height:100%;

    transform:skewX(-25deg);

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,.12),

            transparent

        );

    transition:.6s;

    pointer-events:none;

}

.menu-link:hover .hover-light{

    left:170%;

}

/*=========================================================
    MENU SCROLLBAR
=========================================================*/

.menu-content::-webkit-scrollbar{

    width:7px;

}

.menu-content::-webkit-scrollbar-track{

    background:transparent;

}

.menu-content::-webkit-scrollbar-thumb{

    border-radius:100px;

    background:

        linear-gradient(

            180deg,

            rgba(255,45,85,.5),

            rgba(255,45,85,.2)

        );

}

/*=========================================================
    MENU KEYFRAMES
=========================================================*/

@keyframes menuGlowOne{

    0%{

        transform:translate(0,0) scale(1);

    }

    50%{

        transform:translate(-35px,25px) scale(1.08);

    }

    100%{

        transform:translate(0,0) scale(1);

    }

}

@keyframes menuGlowTwo{

    0%{

        transform:translate(0,0) scale(1);

    }

    50%{

        transform:translate(30px,-20px) scale(.95);

    }

    100%{

        transform:translate(0,0) scale(1);

    }

}

@keyframes glassMove{

    from{

        left:-70%;

    }

    to{

        left:150%;

    }

}

@media (max-width:768px){

    .menu-header{
        padding:18px;
    }

    .menu-profile{
        margin-top:16px;
    }

    .menu-profile h2{
        font-size:22px;
    }

    .menu-balance{
        margin-top:16px;
        padding:18px;
    }

    .menu-balance-value{
        font-size:30px;
    }

    .menu-nav{
        padding:18px;
        gap:8px;
    }

    .menu-link{
        height:52px;
        font-size:15px;
        padding:0 18px;
    }

    .menu-footer{
        padding:18px;
    }

    .menu-logout{
        height:52px;
    }

}