@property --p{
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.pie {
    --p:20;
    --b:40px;
    --c:var(--orange);
    --w:300px;

    width:var(--w);
    aspect-ratio:1;
    position:relative;
    display:inline-grid;
    margin:5px;
    place-content:center;
    font-family: "iransans";
}
.pie:before,
.pie:after {
    content:"";
    position:absolute;
    border-radius:50%;
}
.pie:before {
    inset:0;
    background:
            radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat,
            conic-gradient(var(--c) calc(var(--p)*1%),#0d0d0dba 0);
    -webkit-mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
    mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
}
.pie:after {
    inset:calc(50% - var(--b)/2);
    background:var(--c);
    transform:rotate(calc(var(--p)*3.6deg)) translateY(calc(50% - var(--w)/2));
}
.animate {
    animation:p 1s .5s both;
}
.no-round:before {
    background-size:0 0,auto;
}
.no-round:after {
    content:none;
}
@keyframes p {
    from{--p:0}
}

.wallet_box{
    min-height: calc(100vh - 255px);
    max-height: 100%;
    margin-top: -175px;
    flex: 1;
    position: relative;
    background: url(../img/base.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    width: 100%;
    overflow: hidden;
}
/*.wallet_box img{*/
/*    width: 100%;*/
/*    position: absolute;*/
/*    top: -20px;*/
/*}*/
.circle_box{
    width: 300px;
    height:300px ;
    border-radius: 50%;
    border-radius: 50%;
    left: 50%;
    transform: translate(-100%, 0px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wallet_price{
    font-weight: bold;
    font-size: 25px;
}
.wallet_price_title{
    color: var(--countColor);
}
.wallet_box .title_box{
    padding: 225px 20px 0px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-family: "iransans";
    font-size: 25px;
    color: var(--greyDark);

}
.transactions_box{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: auto;
    height: calc(100vh - 545px);
    padding: 30px 20px;
    overflow: auto;
}
.transactions_box .transaction{
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.10);
    width: 100%;
    height: 90px;
    padding: 16px;
    flex-direction: row-reverse;
    display: flex;
    font-family: "iransans";
    gap: 15px;
    align-items: center;
}
.transactions_box .transaction .center_text,.transactions_box .transaction .left_box{
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.transactions_box .transaction img {
    height: 60px;
}
.transactions_box .transaction .date{
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    color: var(--countColor);
}
.transactions_box .transaction .date > img{
    width: 14px;
    height: 14px;
}
.transactions_box .transaction .price{
    font-size: 17px;
    font-weight: 700;
    color: var(--colortext);
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.transactions_box .transaction .left_box .type{
    min-width: 35px;
    display: block;
    height: 18px;
    text-align: right;
    font-family: "iransans";
    font-size: 11px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px
}
.transactions_box .transaction.credit .left_box .type{
    background-color: #00ba884d;

    color: #00BA88;
}
.transactions_box .transaction.withdrawal .left_box .type{
    background-color: #dd2c2c36;
    color: #DD2C2C;
}
.transactions_box .transaction .left_box .time{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    font-size: 12px;
    gap: 5px;
    color: var(--colortext);
}
.transactions_box .transaction .left_box img{
    width: 14px;
    height: 14px;
}
.charging_wallet,.increase_charging_wallet{
    color: #FFF;
    font-family: "iransans";
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 24px; /* 120% */
    border-radius: 35px;
    background: var(--dark);
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(min(600px, 100%) - 40px);
    left: 50%;
    transform: translate(-50%, 0px);
    position: fixed;
    bottom: 20px;
    border: none;
    cursor: pointer;
}
.increase_charging_wallet{
    position: static !important;
    transform:unset !important;
}
.back_modal{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.50);
}
.charging_wallet_modal{
    min-height: 40vh;
    border-radius: 15px 15px 0px 0px;
    background: var(--white);
    position: fixed;
    bottom: 0px;
    width: min(600px, 100%);
    z-index: 200;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 16px 20px;
    transition: 0.3s;
}
.close_modal_charge{
    width: 75px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 15px;
    background:  #D3D3D3;
    border: none;
    cursor: pointer;
}
.charging_wallet_modal .title{
    color: var(--colortext);
    text-align: center;
    font-family: "iransans";
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.05px;
    margin-top: 16px;
}
.charging_wallet_modal .sub_text{
    color: var(--countColor);
    font-family: "iransans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-right: 5px;
    letter-spacing: -0.8px;
}
.charging_wallet_modal .all_charge{
    display: flex;
    justify-content: start;
    gap:18px 9px;
    margin-top: 30px;
    flex-wrap: wrap;

}
.charging_wallet_modal .charge_price{
    width: 115px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 2px solid rgba(254, 186, 39, 0.23);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--description);
    text-align: center;
    font-feature-settings: 'ss01' on;
    font-family: "iransans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.9px;
    transition: 0.3s;
    cursor: pointer;
}
.charging_wallet_modal .charge_price:hover,.charging_wallet_modal .charge_price.selected{
    border: 3px solid var(--orange);
    color:var(--orange);

}
.charging_wallet_modal .input_box{
    border-radius: 30px;
    border: 1px solid var(--orange);
    background: var(--white);
    padding: 14px;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    gap: 5px;
    flex-direction: row-reverse;

}
.charging_wallet_modal .input_box input{
    border: none;
    outline: none;
    width: calc(100% - 24px);
    direction: rtl;
    font-family: 'iransans';
    font-size: 16px;
    font-weight: 600;
    color: var(--colortex);
}
.dontShowModal{
    position: fixed !important;
    bottom: -100vh !important;
}
@media screen and (max-width:450px){
    .pie {
        --w:250px;
        --b:30px;
    }
    .circle_box{
        width: 250px !important;
        height: 250px !important;
        transform: translate(-50%, 20px);
    }
    .wallet_box{
        margin-top: -90px;
    }
    .wallet_box .title_box {
        padding: 170px 20px 0;
    }
    .transactions_box{
        height: calc(100vh - 500px);
    }
}
@media screen and (max-width: 375px) {
    .pie {
        --w: 200px;
    }
    .circle_box{
        width: 200px !important;
        height: 200px !important;
    }

}