.popup__section {
    margin: auto;
    border: none;
    padding: 0;
    border-radius: var(--border-radius);
    background: var(--dark-accent-color);
}
.popup__section input {
    background: var(--background-color);
}
.popup__section .submit__button {
    height: 50px;
}
.popup__section::backdrop {
    background: rgba(30, 3, 66, 0.8);
    z-index: 1000;
}
.popup__content {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 90vw;
    max-width: 410px;
    padding: 24px 30px;
}
.research__popup-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 70vw;
    padding: 24px 30px;
}
.research__popup-container::-webkit-scrollbar {
    display: none;
}
.research__popup-content {
    display: flex;
    justify-content: space-between;
}
.research__popup-text {
    color: var(--text-color);
    font-size: 18px;
    max-width: 720px;
    line-height: 28px;
}
.research__popup-image img {
    width: 420px;
    height: 250px;
    max-width: 420px;
    /* height: auto; */
    object-fit: cover;
    border-radius: 10px;
}
.research__popup-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#horo-email,
#research-email {
    margin-bottom: 20px;
}
.popup__section::-webkit-scrollbar {
    display: none;
}

.close__popup {
    cursor: pointer;
}
.close__popup:hover svg{
    border-radius: 50%;
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 1px #eb57ea, 0 0 0 2px #46abf9;
}
.auth__code-content {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: 80px;
    gap: 10px;
}
.auth__description {
    color: var(--text-color);
    font-size: var(--small-text-size);
    text-align: center;
    width: 100%;
}
.auth__code-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth__code-block .error-message {
    margin-top: 0px;
}
.popup__form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.code__inputs {
    width: 100%;
    padding: 0px;
    height: 100%;
    border-radius: 20px;
    background: var(--background-color);
    text-align: center;
    outline: none;
    border: none;
}
.send__again-button {
    color: var(--text-color);
    font-size: var(--small-text-size);
}
.send__again-button:hover {
    color: var(--accent-color);
}
.empty__button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--button-font-size);
    font-weight: 700;
    width: 100%;
    height: 50px;
    border-radius: 20px;
    color: #fff;
    margin-top: 15px;
    transition: all ease 0.2s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.empty__button::before {
    border-radius: 20px;
}
.empty__button:focus,
.empty__button:hover {
    background: var(--gradient-color);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.forget__button {
    width: 100%;
    color: var(--text-color);
    font-size: var(--small-text-size);
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.forget__button:focus,
.forget__button:hover {
    opacity: 1;
}
.send-again-message {
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0.5;
    display: none;
    margin-top: 5px;
}

/* Общие стили для accessPopup */
.message__popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    opacity: 0;
    /* visibility: hidden; */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.message__popup-content {
    display: flex;
    color: var(--text-color);
    font-weight: 400;
    font-size: var(--small-text-size);
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.message__popup.visible {
    opacity: 1;
    visibility: visible;
}
.message__popup-icon {
    width: 25px;
    height: 25px;
}
#policy-popup .popup__content {
    max-width: 1440px;
}
.policy__popup-text {
    color: var(--text-color);
    font-size: 18px;
}

.payment-popup {
    margin: auto;
    border: none;
    padding: 0;
    border-radius: 32px;
    padding: 32px;
    width: 90vw;
    max-width: 728px;
    background: #180235;
    border: rgba(255, 255, 255, 0.2) solid 2px;
}
.payment-popup input {
    background: var(--background-color);
}
.payment-popup .submit__button {
    height: 60px;
}
.payment-popup::backdrop {
    background: rgba(30, 3, 66, 0.8);
    z-index: 1000;
}
.payment-popup {
    overflow: auto; /* или scroll */
    scrollbar-width: none; /* Firefox */
  }

  .payment-popup::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }
.balance-text{
    color: #fff;
    font-weight: bold;
    font-size: 48px;
}
.account-status{
    color: #fff;
    opacity: 0.5;
    font-size: 18px;
}
.payments-nav{
    display: flex;
}
.payment-section-text{
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
.payments-section{
    opacity: 0.6;
    padding: 12px 20px;
    border-bottom: 1px #fff solid ;
    font-size: 24px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.payments-section:hover{
    opacity: 1;
    padding: 12px 20px;
    border-bottom: 3px #fff solid ;
}
.payments-section.active{
    opacity: 1;
    padding: 12px 20px;
    border-bottom: 3px #fff solid ;
}
.payment-popup-content{
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.payments-section-block-content{
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.payments-block-header{
    font-size: 18px;
    color: #fff;
    opacity: 0.5;
}
.payments-block-row{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#payments-count {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: #fff;
    font-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    cursor: pointer;
  }

#payments-count:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.4);
}

/* Для Firefox — скрыть стандартную стрелку */
#payments-count::-ms-expand {
display: none;
}
.payments-block-content{
    color: rgb(255, 255, 255, 0.7);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.history {
    max-height: 500px;
    overflow-y: auto;
}
.payments-block-content.options {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    position: relative;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #EB57EA;
    border-radius: 50%;
    margin-right: 12px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.payment-option input[type="radio"]:checked + .payment-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 3px solid #EB57EA;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #EB57EA;
    box-sizing: border-box;
    position: absolute;
    left: -31px; /* Смещение влево, чтобы круг оказался на месте исходного */
}

.payment-label {
    user-select: none;
    font-size: 18px;
    color: #fff;
    position: relative;
}

.payment-label.description {
    opacity: 0.5;
}
.checkbox-option{
    padding: 16px;
}
.checkbox-label{
    font-size: 18px;
}
/* Стили для чекбокса */
.checkbox-option {
    display: flex;
    align-items: center;
    position: relative;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-option::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #EB57EA;
    border-radius: 4px;
    margin-right: 12px;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label::before {
    background: linear-gradient(135deg, #EB57EA 0%, #A92AA8 100%);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label::after {
    content: ""; /* Очищаем content */
    background-image: url(../images/check.svg);
    background-size: 26px 26px; /* или cover в зависимости от нужного эффекта */
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: -36px; /* Центрирование галочки */
    top: 50%;
    transform: translateY(-50%);
    color: #180235;
    font-size: 12px;
    border-radius: 2px;
    font-weight: bold;
    text-align: center;
    width: 24px;
    height: 25px;
}

.checkbox-label {
    user-select: none;
    font-size: 18px;
    color: #fff;
    position: relative;
}
.pay-history-image{
    width: 100%;
    max-width: 44px;
    height: 100%;
}
.history-content-block{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pay-history-block{
    display: flex;
    background: #29104C;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    border-top-right-radius: 36px;
    border-bottom-right-radius: 36px;
    padding: 16px;
    align-items: center;
    gap: 16px;
}
.pay-history-sum,
.pay-history-text{
    color: #fff;
    font-size: 18px;
}
.pay-history-details{
    margin-left: auto;
}
.pay-history-date,
.pay-history-card{
    color: #fff;
    font-size: 18px;
    opacity: 0.5;
}
.paymentcards-block{
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #29104C;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 240px;
}
.paymentcards-funcs-block{
    margin-left: auto;
}

.paymentcards-data-block{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.paymentcards-funcs-block img{
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}
.paymentcards-funcs-block img:hover{
    opacity: 1;
}
.paymentcards-data-block-cardbank{
    width: 32px;
    height: 100%;
}
.paymentcards-data-block-cardmunber{
    color: #fff;
    font-size: 18px;
}
.payment-popup-header{
    display: flex
    ;
        align-items: flex-start;
        justify-content: space-between;
}
button{
    background: inherit;
}
.add-card-container{
    cursor: pointer;
    width: 100%;
    max-width: 80px;
    height: 100%;
    background: #46ABF9;
    display: flex;
    padding: 48px 24px;
    justify-content: center;
    align-self: center;
    border-radius: 24px;
    transition: all 0.2s;
}
.add-card-container:hover{
    background: #4664f9;
}
.paymentcards-container{
    display: flex;
    gap: 16px;
    color: rgb(255, 255, 255, 0.7);
    font-size: 16px;
    align-items: center;
}
.payment-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E0342;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

/* States for the bottom sheet */
.payment-sheet.hidden {
    transform: translateY(100%);
}

.payment-sheet.collapsed {
    transform: translateY(calc(100% - 60px));
}

.payment-sheet.expanded {
    transform: translateY(0);
}
.drag-handle {
    width: 40px;
    height: 5px;
    background: #fff;
    border-radius: 3px;
    margin: 0 auto 10px;
}
.custom-dropdown {
    position: relative;
    width: 100%;
    font-size: 18px;
  }
  .selected-option {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
  }
  .dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #180235;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 5px;
    z-index: 100;
  }
  .dropdown-options li {
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
  }
  .dropdown-options li:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .custom-dropdown.open .dropdown-options {
    display: block;
  }
  .balancer-section{
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
@media screen and (width <= 1050px) {
    .auth__code-content {
        grid-template-columns: repeat(4, 60px);
        grid-template-rows: 60px;
    }

    .popup__section .submit__button {
        height: 40px;
    }
    .research__popup-content {
        flex-direction: column;
        gap: 20px;
    }
    .research__popup-image img {
        width: 100%;
        max-width: 100%;
    }
    .payment-popup{
        padding: 40px 20px;
    }
    .balance-text{
        font-size: 24px;
    }
    .account-status{
        font-size: 16px;
    }
    .payment-section-text{
        font-size: 16px;
    }
    .payments-nav{
        overflow: auto;
    }
    .payments-nav::-webkit-scrollbar {
        display: none;
    }
    .pay-history-sum, .pay-history-text{
        font-size: 16px;
    }
    .pay-history-date, .pay-history-card{
        font-size: 16px;
    }
    .payment-option input[type="radio"]:checked + .payment-label::before{
        top: 7px;
    }
}


/* @media screen and (768px < width <= 1050px) {

} */
/*
@media screen and (width <= 768px) {
} */
