*,
*::before,
*::after{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
}

body{
    width: 100%;
    height: auto;
    font-family: 'Roboto';
    font-size: 20px;
    font-weight: 400;
    color: var(--body-color);
    background-color: var(--body-bg);
}
h3{
    font-size: 24px;
    font-weight: 600;
}

.grid-wrapper{
    display: grid;
    grid-template-columns: 180px 1fr;
    grid-template-rows: 118px 1fr 50px;
    grid-template-areas: "hd hd"
                         "as mn"
                         "as ft";
    position: relative;
    width: 100%;
    max-width: 1440px;
    /* min-width: 440px; */
    height: 100vh;
    margin: 0 auto;
    padding: 0 40px;
}
input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
header{
    grid-area: hd;
    position: relative;
    width: 100%;
    .header__inner{
        width: 100%;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        margin: 30px 0;
        .header__item{
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-wrap: wrap;
            .logo{
                width: 118px;
                display: flex;
                justify-content: flex-start;
                align-items: end;
                img{
                    margin-right: 9px;
                }
                .logo-title{
                    font-size: 16px;
                    background-color: var(--buttons-bg);
                    color: var(--buttons-color);
                    width: 83px;
                    height: 29px;
                    border-radius: 5px;
                    text-align: center;
                    line-height: 2;
                }
            }
            .search{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 260px;
                height: 54px;
                .select-form{ /* Оставить только необходимое. См. Комент в HTML Стр. 31 */
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 100%;
                    margin-top: 0;
                    select{
                        height: 54px;
                    }
                }
                .search-form{ /* Оставить только необходимое. См. Комент в HTML Стр. 31 */
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 100%;
                    margin-top: 0;
                    .search-input{
                        width: 100%;
                        height: 54px;
                        background-color: var(--body-bg);
                        font-size: 20px;
                        color: var(--card-subtitle);
                        border: 1px solid var(--border);
                        border-radius: 10px;
                        padding-left: 20px;
                    }
                    .search-input::placeholder{
                        padding-left: 0px;
                        color: var(--card-subtitle);
                    }
                    button{
                        position: relative;
                        background-color: var(--body-bg);
                        cursor: pointer;
                        /* img{
                            position: absolute;
                            top: -11px;
                            right: 20px;
                        } */
                    }
                }
            }
            .sub-acc{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 200px;
                height: 54px;
                .title{
                    font-size: 20px;
                    font-weight: 600;
                    color: var(--card-subtitle);
                    margin-right: 10px;
                }
                .digit{
                    font-size: 20px;
                    font-weight: 600;
                }
            }
            .balance{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 200px;
                height: 54px;
                background-color: var(--card-bg);
                border-radius: 10px;
                p{
                    font-size: 20px;
                    font-weight: 600;
                }
                .top-topUp{
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 24px;
                    height: 24px;
                    margin-left: 30px;
                    background-color: var(--buttons-bg);
                    color: var(--buttons-color);
                    font-size: 20px;
                    border-radius: 50%;
                    cursor: pointer;
                    transition: all .5s ease-in-out;
                    &:hover{
                        transform: rotate(360deg);
                        color: var(--body-color);
                    }
                }
            }
            .service-btns{
                display: flex;
                align-items: center;
                justify-content: center;
                margin-left: 30px;
                .btnsTp{
                    width: 30px;
                    height: 30px;
                    margin-left: 10px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    color: var(--card-subtitle);
                    transition: all .3s ease-in-out;
                    &:hover{
                        color: var(--icon-sel);
                    }
                    i{
                        font-size: 23px;
                    }
                }
                .btnsMg{
                    width: 30px;
                    height: 30px;
                    margin-left: 10px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    color: var(--card-subtitle);
                    transition: all .3s ease-in-out;
                    &:hover{
                        color: var(--icon-sel);
                    }
                    i{
                        font-size: 23px;
                    }
                }
                .btnsHp{
                    width: 30px;
                    height: 30px;
                    margin-left: 10px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    color: var(--card-subtitle);
                    transition: all .3s ease-in-out;
                    &:hover{
                        color: var(--icon-sel);
                    }
                    i{
                        font-size: 23px;
                    }
                }
                .btnsAc{
                    width: 30px;
                    height: 30px;
                    margin-left: 10px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    color: var(--card-subtitle);
                    transition: all .3s ease-in-out;
                    &:hover{
                        color: var(--icon-sel);
                    }
                    i{
                        font-size: 23px;
                    }
                }
                .btnsMn{
                    width: 20px;
                    height: 20px;
                    margin-left: 40px;
                    display: none;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    img{
                        width: 34px;
                        height: 34px;
                    }
                }
            }
        }
    }
}

.lt, .dk{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 30px;
    margin: 2px 8px 0 0;
    cursor: pointer;
}
.lt{
    background: var(--them-toggle);
}
.dk{
    background: var(--them-toggle);
}


.boxTopSupport, .boxTopMessage, .boxTopHelps, .boxTopUsers{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 100px;
    right: 0;
    width: 400px;
    height: auto;
    background: var(--sbcard-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    z-index: 9999;
    backdrop-filter: blur(20px);
    form{
        width: 100%;
        height: auto;
        textarea{
            width: 100%;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            color: var(--card-subtitle);
            font-family: 'Roboto';
            font-size: 16px;
        }
        small{
            display: block;
            font-size: 14px;
            color: var(--icon-nosel);
            margin: -1px 0 16px 5px;
        }
        button{
            width: 100%;
            height: 46px;
            color: var(--body-bg);
            background: var(--buttons-bg);
            border-radius: 10px;
            font-size: 20px;
            transition: color .3s ease-in-out;
            &:hover{
                color: var(--body-color);
            }
        }
    }
}

.btnMessage {
  position: relative;
}

.btnMessage::before {
  content: attr(data-count);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 3px;
  right: 0px;
  font-size: 10px;
  font-weight: 700;
  background-color: var(--counter-bg);
  color: var(--counter-color);
  border-radius: 8px;
  width: auto;
  height: 15px;
  padding: 0 5px;
}

.btnMessage[data-count="0"]::before {
  display: none;
}
.topCard-flexRow{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: auto;
    .topCardClose{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        background-color: var(--buttons-bg);
        color: var(--buttons-color);
        font-size: 26px;
        font-weight: 400;
        line-height: 26px;
        transform: rotate(45deg);
        border-radius: 50%;
        cursor: pointer;
        transition: all .5s ease-in-out;
        &:hover{
            transform: rotate(405deg);
            color: var(--body-color);
        }
    }
}
.notification-actions{
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-clear{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: var(--buttons-bg);
    border: 0;
    border-radius: 50%;
    color: var(--buttons-color);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all .3s ease-in-out;
}
.notification-clear:hover{
    color: var(--body-color);
    transform: scale(1.08);
}
.notification-clear[hidden]{
    display: none;
}
.topHelp{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 30px;
    a{
        font-size: 20px;
        color: var(--icon-sel);
        text-decoration: none;
        margin-bottom: 5px;
        &:hover{
            text-decoration: underline;
            text-underline-offset: 4px;
        }
    }
}
.boxTopMessage{
    max-height: 745px;
    overflow-y: scroll;
}
.boxTopMessage::-webkit-scrollbar{
    width: 0;
}
.messages-box{
    display: flex;
    flex-direction: column;
    width: 100%;
    /* max-width: 745px; */
    height: auto;
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    .date{
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--icon-nosel);
    }
    .text{
        font-size: 16px;
        color: var(--icon-nosel);
    }
}
.messages-box[data-read="true"]{
    opacity: .72;
}
.notification-body{
    color: var(--icon-nosel);
    font-size: 16px;
    line-height: 1.45;
}
.notifications-empty{
    width: 100%;
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--icon-nosel);
    font-size: 16px;
}
.TopUsers-info{
    width: 100%;
    .title{
        color: var(--body-color);
        font-size: 20px;
        font-weight: 600;
        margin: 30px 0 10px 0;
    }
    .subtitle{
        color: var(--body-color);
        font-size: 20px;
        font-weight: 400;
    }
    .info{
        color: var(--body-color);
        font-size: 18px;
        font-weight: 400;
        margin: 0 0 20px 0;
    }
}
.TopUsersLogoff{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 59px;
    font-size: 20px;
    font-weight: 500;
    background-color: var(--card-bg);
    color: var(--buttons-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-top: 20px;
    cursor: pointer;
    transition: color .3s;
    &:hover{
        color: var(--subbtn-color);
    }
}
.aside{
    display: block;
    grid-area: as;
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    .aside__inner{
        width: 100%;
        height: auto;
        .aside__item{
            width: 180px;
            margin-bottom: 30px;
            .logoff-btn{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 59px;
                font-size: 24px;
                font-weight: 600;
                background-color: var(--card-bg);
                color: var(--buttons-bg);
                border-radius: 15px;
                cursor: pointer;
                transition: color .3s;
                &:hover{
                    color: var(--subbtn-color);
                }
            }
            .aside-title{
                font-size: 24px;
                font-weight: 600;
                color: var(--sidebar-title);
                margin-bottom: 20px;
            }
            ul{
                list-style: none;
                li{
                    font-size: 20px;
                    /* margin-bottom: 15px; */
                    padding: 7.5px 0;
                    cursor: pointer;
                    transition: all .2s ease-in-out;
                    &:hover{
                        color: var(--sidebar-title);
                        background: var(--card-bg);
                        border-radius: 6px;
                        padding-left: 10px;
                        font-weight: 400;
                    }
                }
            }
        }
        .aside__item:nth-child(7){
            margin-bottom: 40px;
        }
    }
}
.btnDashboard{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 59px;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: 600;
    background-color: var(--card-bg);
    color: var(--buttons-bg);
    border-radius: 15px;
    cursor: pointer;
    transition: color .3s;
    &:hover{
        color: var(--subbtn-color);
    }
}
.aside-open{
    position: absolute;
    top: 10px;
    left: 10px;
    display: block;
    height: 98vh;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 280px;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    animation: asideOpen .5s ease-in-out;
    .aside__inner{
        width: 100%;
        height: auto;
        .aside__item{
            width: 256px;
            margin-bottom: 30px;
            .logoff-btn{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 59px;
                font-size: 20px;
                font-weight: 600;
                background-color: var(--card-bg);
                color: var(--buttons-bg);
                border-radius: 15px;
                cursor: pointer;
                transition: color .3s;
                &:hover{
                    color: var(--subbtn-color);
                }
            }
            .aside-title{
                font-size: 24px;
                font-weight: 600;
                color: var(--sidebar-title);
                margin-bottom: 20px;
            }
            ul{
                list-style: none;
                li{
                    font-size: 20px;
                    /* margin-bottom: 15px; */
                    padding: 7.5px 0;
                    cursor: pointer;
                    transition: all .2s ease-in-out;
                    &:hover{
                        color: var(--sidebar-title);
                        background: var(--card-bg);
                        border-radius: 6px;
                        padding-left: 10px;
                        font-weight: 400;
                    }
                }
            }
        }
        .aside__item:nth-child(7){
            margin-bottom: 40px;
        }
    }
}

.aside::-webkit-scrollbar{
    width: 0;
}
.aside-open::-webkit-scrollbar{
    width: 0;
}

.overlay{
    position: fixed;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0);
}
.overlay-open{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    z-index: 99;
}


@keyframes asideOpen {
    from{
        left: -300px;
        opacity: 0;
    }
    to{
        left: 10px;
        opacity: 1;
    }
}

main{
    grid-area: mn;
    width: 100%;
    padding: 0 0 0 20px;
    overflow-y: scroll;
    section{
        width: 100%;
        height: auto;
        .welcome-card{
            width: 100%;
            height: 400px;
            margin-bottom: 20px;
            background-color: var(--card-bg);
            background-image: var(--bg-img-a);
            background-size: contain;
            background-position: right;
            background-repeat: no-repeat;
            background-blend-mode: var(--blend-mod);
            border-radius: 20px;
            .title{
                margin-bottom: 0;
                font-size: 34px;
                font-weight: 600;
                padding: 40px;
            }
            .small-card-wrapper{
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                gap: 20px;
                width: 100%;
                padding: 0 40px;
                .card{
                    display: flex;
                    flex-direction: column;
                    width: 236px;
                    height: 113px;
                    margin-top: 51px;
                    padding: 20px;
                    border: 1px solid var(--border);
                    border-radius: 15px;
                    backdrop-filter: blur(20px);
                    .card-title{
                        font-size: 20px;
                        font-weight: 400;
                        color: var(--card-subtitle);
                        margin-bottom: 20px;
                    }
                    .counter{
                        font-size: 24px;
                        font-weight: 600;
                        color: var(--card-color);
                    }
                }
            }
        }
    }
}

.small-card-wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
    .card{
        display: flex;
        flex-direction: column;
        width: 236px;
        height: 113px;
        margin-top: 51px;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 15px;
        backdrop-filter: blur(20px);
        .card-title{
            font-size: 20px;
            font-weight: 400;
            color: var(--card-subtitle);
            margin-bottom: 20px;
        }
        .card-title-bold{
            font-weight: 900;
            color: var(--table-cell-green);
        }
        .counter{
            font-size: 24px;
            font-weight: 600;
            color: var(--card-color);
        }
    }
}

main::-webkit-scrollbar{
    width: 0;
}
.main__inner{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    gap: 20px;
    width: 100%;
    .main__item{
        width: 50%;
        max-width: calc(50% - 10px);
        min-width: 300px;
        height: 322px;
        padding: 40px;
        border-radius: 20px;
        background-color: var(--card-bg);
        .box-title{
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 71px;
        }
        .card-title{
            font-size: 20px;
            font-weight: 400;
            color: var(--card-subtitle);
            margin-bottom: 10px;
        }
        .card-info{
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 30px;
        }
        .charts{
            width: 452px;
            height: 192px;
            margin-top: -40px;
            background-image: url(../img/demo-chart.png);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }
    }
    .main__item-full{
        width: 100%;
        min-width: 400px;
        height: auto;
        padding: 40px;
        border-radius: 20px;
        background-color: var(--card-bg);
    }
    .pag-form{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
    .main__item-full-back{
        width: 100%;
        min-width: 400px;
        height: auto;
        margin: 20px 0 10px 0;
        padding: 40px;
        border-radius: 20px;
        background-color: var(--border);
    }
    .main__item-ha{
        align-self: normal;
        width: 50%;
        max-width: calc(50% - 10px);
        min-width: 400px;
        height: auto;
        padding: 40px;
        border-radius: 20px;
        background-color: var(--card-bg);
        
        
    }
    .main__item-pay{
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;

        max-width: 216px;
        height: 130px;
        /* max-width: 164px;
        height: 100px; */

        padding: 20px;
        /* padding: 20px; */

        /* background-color: var(--card-bg); */
        border-radius: 20px;
        input[type=radio]{
            width: 22px;
            height: 22px;
            /* width: 20px;
            height: 20px; */
            accent-color: var(--icon-sel);
            cursor: pointer;
        }
        label{
            margin: -1px 0 0 10px;
            /* margin: 0px 0 0 10px; */

            padding: 0;
            font-size: 20px;
            /* font-size: 18px; */
            color: var(--body-color);
            font-weight: 600;
            cursor: pointer;
            /* text-shadow: 3px 3px 5px black; */
        }
    }
}

.esims-search-forms{
    width: 100%;
    height: auto;
    input{
        margin-bottom: 20px;
    }
}

.own-logo{
    background-image: var(--logo-own), radial-gradient(at 400px 600px, var(--cimpay-grad), var(--card-bg));
    background-size: cover;
}
.btc-logo{
    background-image: var(--logo-btc), radial-gradient(at 400px 600px, var(--btc-grad), var(--card-bg));
    background-size: cover;
}
.cryptms-logo{
    background-image: var(--logo-crpms), radial-gradient(at 400px 600px, var(--cryptms-grad), var(--card-bg));
    background-size: cover;
}
.cimpay-logo{
    background-image: var(--logo-simpay), radial-gradient(at 400px 600px, var(--cimpay-grad), var(--card-bg));
    background-size: cover;
}

.apple-logo{
    background-image: var(--logo-apple), radial-gradient(at 400px 600px, var(--apple-grad), var(--card-bg));
    background-size: cover;
}
.wire-logo{
    background-image: var(--logo-wire), radial-gradient(at 400px 600px, var(--wire-grad), var(--card-bg));
    background-size: cover;
}
.stripe-logo{
    background-image: var(--logo-stripe), radial-gradient(at 400px 600px, var(--stripe-grad), var(--card-bg));
    background-size: cover;
}

.payment-method-unavailable{
    opacity: .58;
}
.main__item-pay.payment-method-unavailable input[type=radio],
.main__item-pay.payment-method-unavailable label{
    cursor: not-allowed;
}
.payment-method-status{
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--card-subtitle);
}

.payments-card{
    width: 100%;
    height: auto;
    padding: 30px 0;
    border-radius: 20px;
    margin-bottom: 20px;
    .payments-balance{
        font-size: 34px;
        font-weight: 600;
        margin: 0 0 40px 40px;
        /* padding-top: 40px; */
        text-shadow: 0 0 2px var(--body-bg);
        .payments-discount{
            font-size: 16px;
            font-weight: 400;
            margin-left: 20px;
            color: var(--card-subtitle);
        }
    }
    h3{
        font-size: 24px;
        font-weight: 600;
        margin-left: 40px;
    }
}    
.esim-summary-card{
    padding: 36px 40px;
}
.esim-summary-card__top{
    gap: 32px;
    margin-bottom: 56px;
}
.esim-summary-card .payments-balance{
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin: 0;
    line-height: 1;
}
.esim-summary-card .payments-balance .payments-discount{
    margin-left: 0;
    white-space: nowrap;
}
.esim-summary-card h3{
    margin-left: 0;
}
.esim-recent-purchase-strip{
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(75, 211, 148, .32);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(75, 211, 148, .16), rgba(16, 24, 34, .56));
    box-shadow: inset 4px 0 0 var(--table-cell-green), 0 14px 34px rgba(0, 0, 0, .16);
}
.esim-recent-purchase-strip__status{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.esim-recent-purchase-strip__identity{
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
    min-width: 0;
}
.esim-recent-purchase-strip__label{
    color: var(--table-cell-green);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}
.esim-recent-purchase-strip__summary{
    color: var(--body-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.esim-recent-purchase-strip__value{
    color: var(--body-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}
.esim-recent-purchase-strip__value span,
.esim-recent-purchase-strip__detail span{
    color: var(--card-subtitle);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.esim-recent-purchase-strip__detail{
    color: var(--card-subtitle);
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.esim-recent-purchase-strip__download{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 134px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}
.table-btn.esim-recent-purchase-strip__download:hover,
.table-btn.esim-recent-purchase-strip__download:focus-visible{
    background-color: var(--table-cell-green);
    color: var(--body-bg);
    outline: 1px solid var(--body-color);
    outline-offset: 2px;
}
@media (max-width: 900px){
    .esim-recent-purchase-strip{
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .esim-recent-purchase-strip__download{
        width: 100%;
    }
}
.period.esim-history-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 38px;
    margin-left: 0;
    padding: 0 24px;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}
.payments-cardHheadin{
    width: 100%;
    .payments-balance{
        font-size: 34px;
        font-weight: 600;
    }
}
.card-bg-a{
    background-color: var(--card-bg);
    background-image: var(--bg-img-b);
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    background-blend-mode: var(--blend-mod);
}
.card-bg-c{
    background-color: var(--card-bg);
    background-image: var(--bg-img-c);
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    /* background-blend-mode: color-dodge; */
}

.input-wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.pay-form{
    width: 100%;
    height: auto;
    margin-top: 24px;
    label{
        display: block;
        font-size: 20px;
        color: var(--card-subtitle);
        width: 100%;
        margin-bottom: 15px;
    }
    input[type=number]{
        width: 100%;
        /* max-width: 496px; */
        max-width: calc(50% - 5px);
        height: 46px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0 20px;
        color: var(--body-color);
        font-size: 20px;
    }
    input[type=number]::placeholder{
        color: var(--card-subtitle);
        font-size: 20px;
        font-weight: 400;
        padding: 0;
        line-height: 20px;
    }
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { 
        -webkit-appearance: none; margin: 0; 
    }
    input[type=submit]{
        width: 100%;
        height: 46px;
        background: var(--buttons-bg);
        color: var(--buttons-color);
        border-radius: 10px;
        font-size: 20px;
        font-weight: 500;
        cursor: pointer;
        transition: color .3s ease-in-out;
        &:hover{
            color: var(--body-color);
        }
    }
    input[type=submit]:disabled{
        background: var(--card-subtitle);
        color: var(--border);
        cursor: auto;
    }
    svg{
        margin: 3px 0 0 -52px;
    }
    svg circle, svg path{
        stroke: var(--body-color);
    }
    .submit-topSize{
        margin-top: 30px;
    }
    input::placeholder{
        font-size: 20px;
        font-weight: 400;
        padding-left: 20px;
        color: var(--body-color);
    }
    select{
        appearance: none;
        width: 100%;
        /* max-width: 494px; */
        max-width: calc(50% - 5px);
        height: 46px;
        padding-left: 20px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--card-subtitle);
        overflow: hidden;
        background: url('../img/selectArrow.svg') no-repeat;
        background-position: 450px 16px;
        font-size: 20px;
        option{
            background: var(--card-bg);
            color: var(--body-color);
        }
    }
}

form{
    width: 100%;
    height: auto;
    margin-top: 24px;
    label{
        display: block;
        font-size: 20px;
        color: var(--card-subtitle);
        width: 100%;
        margin-bottom: 15px;
    }
    input[type=text]{
        width: 100%;
        height: 46px;
        margin-bottom: 24px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding-left: 20px;
        color: var(--body-color);
        font-size: 20px;
    }
    input[type=text]::placeholder{
        padding-left: 0px;
    }
    input[type=number]{
        width: 100%;
        max-width: 496px;
        height: 46px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0 20px;
        color: var(--body-color);
        font-size: 20px;
    }
    input[type=number]::placeholder{
        color: var(--card-subtitle);
        font-size: 20px;
        font-weight: 400;
        padding: 0;
        line-height: 20px;
    }
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { 
        -webkit-appearance: none; margin: 0; 
    }

    input[type=date]{
        width: 100%;
        height: 46px;
        margin-bottom: 24px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding-left: 20px;
        color: var(--subbtn-color);
        font-size: 20px;
        font-weight: 400;
    }
    input[type=date]::-webkit-calendar-picker-indicator{
        filter: invert(.6) sepia(90%) hue-rotate(180deg) saturate(690%) brightness(.9);
        padding-right: 20px;   
    }
    
    .search-inbox{
        position: relative;
        width: 100%;
        height: 48px;
        background-color: var(--card-bg);
        background-image: url(../img/search.svg);
        background-repeat: no-repeat;
        background-size: 22px 22px;
        background-position: 95% 13px;
        font-size: 20px;
        color: var(--card-subtitle);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding-left: 20px;
        margin-bottom: 30px;
    }
    
    input[type=submit]{
        width: 100%;
        height: 46px;
        background: var(--buttons-bg);
        color: var(--buttons-color);
        border-radius: 10px;
        font-size: 20px;
        font-weight: 500;
        cursor: pointer;
        transition: color .3s ease-in-out;
        &:hover{
            color: var(--body-color);
        }
    }
    input[type=submit]:disabled{
        background: var(--card-subtitle);
        color: var(--border);
        cursor: auto;
    }
    svg{
        margin: 3px 0 0 -52px;
    }
    svg circle, svg path{
        stroke: var(--body-color);
    }
    .submit-topSize{
        margin-top: 30px;
    }

    input::placeholder{
        font-size: 20px;
        font-weight: 400;
        padding-left: 20px;
        color: var(--body-color);
    }
}

select{
    appearance: none;
    width: 100%;
    max-width: 494px;
    height: 46px;
    padding-left: 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--card-subtitle);
    overflow: hidden;
    background: url('../img/selectArrow.svg') no-repeat;
    background-position: 450px 16px;
    font-size: 20px;
    option{
        background: var(--card-bg);
        color: var(--body-color);
    }
}

.balance-modal{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(5, 7, 16, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}
.balance-modal.hidden{
    display: none;
}
.balance-modal__panel{
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 20px;
    background: var(--sb-card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}
.balance-modal__header{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.balance-modal__header h3{
    margin: 4px 0 0;
    color: var(--body-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}
.balance-modal__eyebrow{
    margin: 0;
    color: var(--card-subtitle);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.balance-modal__close,
.balance-modal__secondary,
.balance-modal__primary{
    border: 0;
    font: inherit;
    cursor: pointer;
}
.balance-modal__close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    color: var(--subbtn-color);
    border: 1px solid var(--icon-nosel);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
.balance-modal__summary{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 14px;
}
.balance-modal__summary div{
    min-width: 0;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.balance-modal__summary dt,
.balance-modal__preview span,
.balance-modal__field span{
    display: block;
    margin-bottom: 6px;
    color: var(--card-subtitle);
    font-size: 12px;
    font-weight: 700;
}
.balance-modal__summary dd{
    margin: 0;
    color: var(--body-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.balance-modal__field{
    display: block;
    margin-bottom: 14px;
}
.balance-modal__field input{
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--body-color);
    font-size: 16px;
}
.balance-modal__field input:focus-visible,
.balance-modal__close:focus-visible,
.balance-modal__secondary:focus-visible,
.balance-modal__primary:focus-visible{
    outline: 2px solid var(--icon-sel);
    outline-offset: 2px;
}
.balance-modal__preview{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    background: rgba(0, 178, 255, .08);
    border: 1px solid rgba(0, 178, 255, .28);
    border-radius: 8px;
}
.balance-modal__preview span{
    margin-bottom: 0;
}
.balance-modal__preview output{
    color: var(--body-color);
    font-size: 18px;
    font-weight: 800;
}
.balance-modal__status{
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--card-subtitle);
    font-size: 14px;
}
.balance-modal__status[data-state="success"]{
    color: var(--table-cell-green);
}
.balance-modal__status[data-state="error"]{
    color: #ff7b7b;
}
.balance-modal__actions{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.balance-modal__secondary,
.balance-modal__primary{
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}
.balance-modal__secondary{
    background: transparent;
    color: var(--subbtn-color);
    border: 1px solid var(--icon-nosel);
}
.balance-modal__primary{
    background: var(--icon-sel);
    color: var(--body-bg);
}
.balance-modal[data-busy="true"] .balance-modal__primary{
    opacity: .7;
    cursor: wait;
}
@media (max-width: 520px){
    .balance-modal__summary{
        grid-template-columns: 1fr;
    }
    .balance-modal__actions{
        flex-direction: column-reverse;
    }
    .balance-modal__secondary,
    .balance-modal__primary{
        width: 100%;
    }
}

.search-full-width{
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-search-full{
    width: 120px;
    height: 46px;
    background: var(--buttons-bg);
    color: var(--buttons-color);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: color .3s ease-in-out;
}
.search-inbox-full{
        position: relative;
        width: 100%;
        height: 48px;
        background-color: var(--card-bg);
        background-image: url(../img/search.svg);
        background-repeat: no-repeat;
        background-size: 22px 22px;
        background-position: 97% 13px;
        font-size: 20px;
        color: var(--card-subtitle);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding-left: 20px;
        margin-right: 10px;
    }
.input-inbox-full{
    width: 100%;
    height: 48px;
    background-color: var(--card-bg);
    font-size: 20px;
    color: var(--card-subtitle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 20px;
    margin-right: 10px;
    &::placeholder{
        color: var(--icon-nosel);
        padding-left: 0;
    }
    &::-webkit-inner-spin-button{
        appearance: none;
    }

}
.input-inbox-full::-webkit-inner-spin-button,
.input-inbox-full::-webkit-outer-spin-button{
    appearance: none;
}
.btn-input-full{
    width: 120px;
    height: 46px;
    background: var(--buttons-bg);
    color: var(--buttons-color);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: color .3s ease-in-out;
}
.period{
    height: 35px;
    padding: 8px 20px;
    margin-left: 30px;
    background: transparent;
    border: 1px solid var(--icon-nosel);
    border-radius: 30px;
    color: var(--subbtn-color);
    text-decoration: none;
    transition: all .3s ease-in-out;
    cursor: pointer;
    &:hover{
        border: 1px solid var(--icon-sel);
        color: var(--icon-sel);
    }
}

.select-period{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    .period{
        height: 35px;
        padding: 8px 20px;
        margin-left: 0;
        background: transparent;
        border: 1px solid var(--icon-nosel);
        border-radius: 30px;
        color: var(--subbtn-color);
        transition: all .3s ease-in-out;
        cursor: pointer;
        &:hover{
            border: 1px solid var(--icon-sel);
            color: var(--icon-sel);
        }
    }
}
.topups-filter{
    width: 100%;
    margin-top: 24px;
}
.main__inner .topups-filter-panel{
    align-self: flex-start;
}
.topups-filter__periods{
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.topups-filter__period{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 42px;
    padding: 0 18px;
    line-height: 1;
    white-space: nowrap;
}
.topups-filter__period.is-active{
    border-color: var(--icon-sel);
    color: var(--icon-sel);
    background: rgba(4, 137, 179, .12);
    box-shadow: inset 0 0 0 1px rgba(4, 137, 179, .55);
}
.topups-filter__range{
    margin-top: 0;
}
.topups-filter__range .select-date{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.topups-filter__field{
    min-width: 0;
}
.topups-filter__field label{
    margin-bottom: 10px;
}
.topups-filter__field input[type=date],
.topups-filter__field input[type=text],
.topups-filter__field input[type=number]{
    height: 52px;
    margin-bottom: 0;
    padding: 0 44px 0 16px;
}
.topups-filter__actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}
.topups-filter__submit{
    height: 48px;
    background: var(--buttons-bg);
    color: var(--buttons-color);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: color .3s ease-in-out, background-color .3s ease-in-out;
}
.topups-filter__submit:hover,
.topups-filter__submit:focus-visible{
    color: var(--body-color);
}
.topups-filter__reset{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--subbtn-color);
    text-decoration: none;
    transition: border-color .3s ease-in-out, color .3s ease-in-out;
}
.topups-filter__reset:hover,
.topups-filter__reset:focus-visible{
    border-color: var(--icon-sel);
    color: var(--icon-sel);
}
@media (max-width: 640px){
    .topups-filter__period{
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }
    .topups-filter__range .select-date{
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .topups-filter__actions{
        grid-template-columns: 1fr;
    }
    .topups-filter__reset{
        width: 100%;
    }
}
.select-period-res{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    .period{
        height: 35px;
        padding: 8px 20px;
        margin-left: 0;
        background: transparent;
        border: 1px solid var(--icon-nosel);
        border-radius: 30px;
        color: var(--subbtn-color);
        transition: all .3s ease-in-out;
        cursor: pointer;
        &:hover{
            border: 1px solid var(--icon-sel);
            color: var(--icon-sel);
        }
    }
}
.button-container{
    width: 100%;
    height: auto;
    padding: 30px 0;
}
.check-read{
    height: 35px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--icon-nosel);
    border-radius: 30px;
    color: var(--subbtn-color);
    transition: all .3s ease-in-out;
    cursor: pointer;
    &:hover{
        border: 1px solid var(--icon-sel);
        color: var(--icon-sel);
    }
}
.flex-col-x2{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.flex-row-x2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    .showqr{
        color: var(--icon-sel);
        background: transparent;
        font-size: 20px;
        cursor: pointer;
        text-decoration: none;
        &:hover{
            text-decoration: underline;
            text-underline-offset: 4px;
        }
    }
}
.flex-row-start{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}
.pag-rows{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 30px 0 40px 0;
    span{
        margin: 0 30px;
        color: var(--icon-nosel);
        font-size: 18px;
    }
    a{
        color: var(--border);
        text-decoration: none;
        font-size: 18px;
    }
}
.qrcode{
    width: 400px;
    height: 400px;
    background-color: var(--border);
    border-radius: 20px;
    margin: 200px auto;
    animation: showqrc .3s ease-in-out;
    .qr-box{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 400px;
        height: 400px;
    }
}
@keyframes showqrc {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.select-rows{
    width: 213px;
    label{
        width: 110px;
        color: var(--icon-nosel);
        font-size: 16px;
        margin-right: 20px;
        margin-bottom: 0;
    }
    select{
        appearance: none;
        width: 82px;
        height: 35px;
        padding-left: 20px;
        background: transparent;
        border: 1px solid var(--icon-nosel);
        border-radius: 10px;
        color: var(--subbtn-color);
        overflow: hidden;
        background: url('../img/selectArrow.svg') no-repeat;
        background-position: 54px 10px;
        font-size: 16px;
        option{
            background: var(--card-bg);
        }
    }
}
.select-inbox{
    appearance: none;
    width: 100%;
    height: 48px;
    margin-bottom: 30px;
    padding-left: 20px;
    background: transparent;
    border: 1px solid var(--icon-nosel);
    border-radius: 10px;
    color: var(--subbtn-color);
    overflow: hidden;
    background: url('../img/selectArrow.svg') no-repeat;
    background-position: 94% 17px;
    font-size: 16px;
    option{
        background: var(--card-bg);
    }
}
.card-text{
    font-size: 24px;
    color: var(--subbtn-color);
}
.card-manual{
    font-size: 20px;
    font-weight: 400;
    color: var(--card-subtitle);
    margin: 30px 0;
}
.card-title-white{
    color: var(--body-color);
    font-size: 36px;
    font-weight: 600;
    margin-top: 20px;
}
.card-title-blue{
    color: var(--icon-sel);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
}
.card-subtitle{
    font-size: 20px;
    font-weight: 400;
    color: var(--icon-nosel);
}
.card-link{
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    color: var(--icon-sel);
    font-size: 20px;
}

details{
    width: 100%;
    font-family: 'Roboto';
    font-size: 20px;
    font-weight: 400;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--icon-nosel);
}

summary{
    cursor: pointer;
    list-style: none;
    position: relative;
}
summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: url(../img/marker.svg);
    position: absolute;
    top: 6px;
    right: 15px;
    width: 12px;
    height: 24px;
    transition: transform 0.3s;
    transform: rotate(-90deg);
}

details[open] summary::before {
    transform: rotate(0deg);
}

.InvoiceNumber{
    color: var(--sidebar-title);
    font-weight: 600;
}

/* Table style */
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    thead{
        margin-bottom: 20px;
    }
    thead tr th{
        height: 44px;
        font-size: 20px;
        font-weight: 400;
        text-align: left;
        color: var(--card-subtitle);
        border-bottom: 1px solid var(--border);
    }
    tbody tr td{
        height: 54px;
        font-size: 14px;
        font-weight: 400;
        text-align: left;
        color: var(--body-color);
        border-bottom: 1px solid var(--border);
    }
}
.esim-list-table .esim-list-row{
    cursor: pointer;
    transition: background-color .3s ease-in-out, outline-color .3s ease-in-out;
}
.esim-list-table .esim-list-row:hover,
.esim-list-table .esim-list-row:focus-visible{
    background-color: rgba(0, 178, 255, .08);
    outline: 1px solid var(--icon-sel);
    outline-offset: -1px;
}
.esim-list-table .esim-list-row:hover td,
.esim-list-table .esim-list-row:focus-visible td{
    color: var(--body-color);
}
.esim-list-action{
    width: 112px;
    text-align: right;
}
.esim-details-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 96px;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}
.table-link{
    color: var(--icon-sel);
    font-size: 20px;
    text-decoration: none;
    &:hover{
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}
.table-btn{
    width: 80px;
    border: 0;
    background-color: var(--icon-sel);
    color: var(--body-bg);
    border-radius: 4px;
    text-align: center;
    padding: 3px;
    font: inherit;
    cursor: pointer;
    transition: all .3s ease-in-out;
    &:hover{
        background-color: var(--table-cell-green);
        transition: all .3s ease-in-out;
    }
}
.table-btn.esim-details-link:hover,
.table-btn.esim-details-link:focus-visible{
    background-color: var(--icon-sel);
    color: var(--body-bg);
    outline: 1px solid var(--body-color);
    outline-offset: 2px;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 178, 255, .18);
}
.esim-history-table-wrap{
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}
.esim-purchase-history-table{
    min-width: 1180px;
    table-layout: fixed;
}
.esim-purchase-history-table th,
.esim-purchase-history-table td{
    padding-right: 14px;
    vertical-align: middle;
    white-space: nowrap;
}
.esim-history-col-date{width: 190px;}
.esim-history-col-invoice{width: 300px;}
.esim-history-col-status{width: 100px;}
.esim-history-col-vendor{width: 90px;}
.esim-history-col-quantity{width: 72px;}
.esim-history-col-balance{width: 100px;}
.esim-history-col-price{width: 150px;}
.esim-history-col-method{width: 130px;}
.esim-history-col-action{width: 80px;}
.esim-purchase-row{
    cursor: pointer;
    transition: background-color .3s ease-in-out, outline-color .3s ease-in-out;
}
.esim-purchase-row:hover,
.esim-purchase-row:focus-visible{
    background-color: rgba(0, 178, 255, .08);
    outline: 1px solid var(--icon-sel);
    outline-offset: -1px;
}
.esim-purchase-invoice{
    white-space: normal;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.25;
}
.esim-purchase-action{
    text-align: right;
}
.esim-purchase-download-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 58px;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}
.table-btn.esim-purchase-download-link:hover,
.table-btn.esim-purchase-download-link:focus-visible{
    background-color: var(--table-cell-green);
    color: var(--body-bg);
    outline: 1px solid var(--body-color);
    outline-offset: 2px;
}
.esim-purchase-highlight td{
    background: rgba(75, 211, 148, .12);
    box-shadow: inset 4px 0 0 var(--table-cell-green);
}
.table-title{
    font-size: 20px;
    color: var(--icon-nosel);
}
.cell-red{
    color: var(--table-cell-red);
}
.cell-green{
    color: var(--table-cell-green);
}
.back-flex{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    img{
        margin-right: 20px;
    }
    div{
        font-size: 24px;
        font-weight: 500;
    }
}
.top-res tbody tr td{
    height: 26px;
}
.top-res tbody tr td:nth-child(1){
    text-transform: uppercase;
    color: var(--icon-sel);
    cursor: pointer;
    transition: color .3s ease-in-out;
    &:hover{
        text-decoration: underline;
        text-underline-offset: 3px;
        color: var(--table-cell-green);
        transition: color .3s ease-in-out;
    }
}
.top-res tbody tr td:nth-child(3){
    width: 20%;
}
.tableresinfo tbody tr td:nth-child(1){
    color: var(--icon-nosel);
}
.tableactivesim tbody tr td:nth-child(3){
    color: var(--icon-sel);
    cursor: pointer;
    transition: all .3s ease-in-out;
    &:hover{
        color: var(--table-cell-green);
        text-decoration: underline;
        transition: all .3s ease-in-out;
    }
}
.notes{
    color: darkorange;
    margin: 20px 0 30px 0;
    text-decoration: underline;
    text-underline-offset: 5px;
}
footer{
    grid-area: ft;
    width: 100%;
    height: auto;
    padding-top: 7px;
    .footer__inner{
        padding: 10px;
        .footer__item{
            text-align: center;
            font-size: 14px;
            color: var(--card-subtitle);
        }
    }
}
.hidden{
    display: none;
}
.payment-toast{
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--icon-sel);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .26);
    color: var(--body-color);
    animation: paymentToastLifecycle 8s ease forwards;
    will-change: opacity, transform, visibility;
}
.payment-toast strong{
    font-size: 16px;
    color: var(--card-title);
}
.payment-toast span{
    font-size: 14px;
    line-height: 1.4;
    color: var(--card-subtitle);
}
.payment-toast--success{
    border-left-color: var(--table-cell-green);
}
.payment-toast--error{
    border-left-color: #f95d6d;
}
.aside .aside__item ul li.nav-active{
    color: var(--sidebar-title);
    background: var(--card-bg);
    border-radius: 6px;
    padding-left: 10px;
    font-weight: 500;
}
.aside .aside__item ul li.nav-attention{
    color: var(--table-cell-green);
    background: rgba(75, 211, 148, .14);
    box-shadow: inset 4px 0 0 var(--table-cell-green), 0 0 0 1px rgba(75, 211, 148, .24);
    animation: esimNavAttention 1.15s ease-in-out 7;
}
@keyframes paymentToastLifecycle {
    0%{
        opacity: 0;
        visibility: visible;
        transform: translateY(-10px);
    }
    8%,
    72%{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    100%{
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
    }
}
@keyframes esimNavAttention {
    0%,
    100%{
        color: var(--table-cell-green);
        background: rgba(75, 211, 148, .14);
        box-shadow: inset 4px 0 0 var(--table-cell-green), 0 0 0 1px rgba(75, 211, 148, .24);
        transform: translateX(0);
    }
    50%{
        color: #ffffff;
        background: rgba(75, 211, 148, .32);
        box-shadow: inset 4px 0 0 var(--table-cell-green), 0 0 18px rgba(75, 211, 148, .55);
        transform: translateX(4px);
    }
}
.highlighted{
    color: var(--icon-sel);
}

.dashboard-action{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
}

.dashboard-action a{
    text-decoration: none;
}

.dashboard-action__hero{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 350px;
    padding: 32px;
    background-color: var(--card-bg);
    background-image: var(--bg-img-a);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    background-blend-mode: var(--blend-mod);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.dashboard-action__hero-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.dashboard-action__intro{
    max-width: 560px;
}

.dashboard-action__eyebrow,
.dashboard-action__panel-head p{
    margin: 0 0 8px 0;
    color: var(--card-subtitle);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-action__intro h1{
    max-width: 520px;
    margin: 0 0 14px 0;
    color: var(--body-color);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.12;
}

.dashboard-action__intro p:last-child{
    max-width: 500px;
    margin: 0;
    color: var(--card-subtitle);
    font-size: 18px;
    line-height: 1.45;
}

.dashboard-action__status{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--body-bg);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-action__status.is-warning{
    color: var(--table-cell-red);
}

.dashboard-action__status.is-healthy{
    color: var(--table-cell-green);
}

.dashboard-action__hero-metrics,
.dashboard-action__grid{
    display: grid;
    gap: 20px;
}

.dashboard-action__hero-metrics{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.dashboard-action__grid{
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.dashboard-action__metric,
.dashboard-action__panel{
    border: 1px solid var(--border);
    border-radius: 8px;
}

.dashboard-action__metric{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 22px;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dashboard-action__panel{
    background: var(--card-bg);
}

.dashboard-action__metric p{
    margin: 0;
    color: var(--card-subtitle);
    font-size: 15px;
    font-weight: 700;
}

.dashboard-action__metric strong{
    display: block;
    margin: 18px 0;
    color: var(--body-color);
    font-size: 28px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dashboard-action__metric a,
.dashboard-action__quick-link,
.dashboard-action__notifications-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid var(--icon-nosel);
    border-radius: 999px;
    background: transparent;
    color: var(--subbtn-color);
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    gap: 8px;
    cursor: pointer;
    transition: border-color .3s ease-in-out, color .3s ease-in-out;
}

.dashboard-action__metric a:hover,
.dashboard-action__quick-link:hover,
.dashboard-action__notifications-button:hover{
    border-color: var(--icon-sel);
    color: var(--icon-sel);
}

.dashboard-action__panel{
    min-width: 0;
    padding: 24px;
}

.dashboard-action__panel-head{
    margin-bottom: 18px;
}

.dashboard-action__panel-head h3{
    margin: 0;
    color: var(--body-color);
}

.dashboard-action__steps{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-action__step{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--body-color);
}

.dashboard-action__step span{
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 800;
}

.dashboard-action__step small{
    color: var(--card-subtitle);
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-action__step.is-warning{
    border-color: var(--table-cell-red);
}

.dashboard-action__step.is-warning span{
    color: var(--table-cell-red);
}

.dashboard-action__step.is-muted span{
    color: var(--table-cell-green);
}

.dashboard-action__details{
    display: grid;
    gap: 14px;
    margin: 0;
}

.dashboard-action__details div,
.dashboard-action__money div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 0 0 14px 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-action__details div:last-child,
.dashboard-action__money div:last-child{
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-action__details dt,
.dashboard-action__money span{
    color: var(--card-subtitle);
    font-size: 15px;
    font-weight: 700;
}

.dashboard-action__details dd,
.dashboard-action__money strong{
    margin: 0;
    color: var(--body-color);
    font-size: 18px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.dashboard-action__details .dashboard-action__notifications{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;
}

.dashboard-action__notifications-button{
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.dashboard-action__notifications-button i{
    font-size: 14px;
}

.dashboard-action__money{
    display: grid;
    gap: 14px;
}

.dashboard-action__quick-links{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-action__chart{
    min-height: 306px;
}

.dashboard-action__chart-canvas{
    position: relative;
    height: 220px;
}

.dashboard-action__empty{
    margin: 0;
    color: var(--card-subtitle);
    font-size: 18px;
}

@media (max-width: 992px){
    .dashboard-action__hero-metrics,
    .dashboard-action__grid{
        grid-template-columns: 1fr;
    }

    .dashboard-action__hero{
        min-height: 0;
        background-size: cover;
    }
}

@media (max-width: 720px){
    .dashboard-action__hero,
    .dashboard-action__hero-head{
        flex-direction: column;
    }

    .dashboard-action__hero{
        padding: 22px;
    }

    .dashboard-action__intro h1{
        font-size: 28px;
    }

    .dashboard-action__quick-links{
        grid-template-columns: 1fr;
    }

    .dashboard-action__status,
    .dashboard-action__metric a,
    .dashboard-action__quick-link,
    .dashboard-action__notifications-button{
        width: 100%;
    }

    .dashboard-action__details .dashboard-action__notifications{
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard-action__notifications-button{
        grid-column: 1 / -1;
    }
}

.topup-confirmation-backdrop{
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(11, 11, 15, .72);
    backdrop-filter: blur(6px);
}

.topup-confirmation-modal{
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: min(520px, calc(100vw - 40px));
    max-height: min(620px, calc(100vh - 40px));
    margin: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--body-color);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    overflow: auto;
}

.topup-confirmation-modal::backdrop{
    background: transparent;
}

.topup-confirmation__title{
    margin: 0 0 22px 0;
    color: var(--body-color);
    font-size: 28px;
    font-weight: 700;
}

.topup-confirmation__amount{
    margin: 0;
    color: var(--icon-sel);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.topup-confirmation__meta,
.topup-confirmation__fee,
.topup-confirmation__note{
    margin: 14px 0 0 0;
    color: var(--card-subtitle);
    font-size: 18px;
    font-weight: 700;
}

.topup-confirmation__fee{
    color: var(--body-color);
}

.topup-confirmation__note{
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    line-height: 1.4;
}

.topup-confirmation__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.topup-confirmation__primary,
.topup-confirmation__secondary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.topup-confirmation__primary{
    background: var(--buttons-bg);
    color: var(--buttons-color);
}

.topup-confirmation__secondary{
    border: 1px solid var(--border);
    color: var(--body-color);
}

@media (max-width: 720px){
    .topup-confirmation-modal{
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 24px 20px;
    }

    .topup-confirmation__actions a{
        width: 100%;
    }

    .topup-confirmation__amount{
        font-size: 34px;
    }
}
