.irs--round .irs-min, .irs--round .irs-max {
    margin-top: 10px;
    margin-top: 0px;
    background: #fff;
    background: rgba(40, 51, 78, 0.61);
	background: rgb(27 37 59);
    color: #fff;
    /* box-shadow: 0 0 4px 1px rgba(187, 187, 187, 0.34); */
}

.donate-bns {
    color: #28334e9c;
    box-shadow: 0 0 5px -1px;
    background: #fff;
}

:is(.dark .donate-bns) {
    background-color: #28334e9c;
    box-shadow: 0 0 4px -1px rgba(187, 187, 187, 0.34);
    color: white;
}

.irs--round .irs-from, .irs--round .irs-to, .irs--round .irs-single {
    color: #28334e9c;
    box-shadow: 0 0 5px -1px;
    background: #fff;
}

:is(.dark .irs-single) {
    background-color: #eac485;
    /* box-shadow: 0 0 4px 1px rgba(187, 187, 187, 0.34); */
    color: #263147;
}

:is(.dark .irs-max) {
    background: rgba(40, 51, 78, 0.61);
	background: rgb(27 37 59);
    color: #fff;
    /* box-shadow: 0 0 4px 1px rgba(187, 187, 187, 0.34); */
}

:is(.dark #bonus_sum) {
    background: rgba(40, 51, 78, 0.61);
    color: #fff;
    box-shadow: 0 0 4px 1px rgba(187, 187, 187, 0.34);
	background: rgb(27 37 59);
    color: #fff;
    box-shadow: none;
    border-left: 1px solid #415172;
    border-radius: 0;
    padding: 11px 16px 9px 15px;
    margin-top: -1px;
}

#bonus_sum {
    color: #28334e9c;
    box-shadow: 0 0 5px -1px;
    background: #fff;
}

:is(.dark .box-donate) {
    /*box-shadow: 0 0 10px -4px #c000ff66;*/
}

.payment-img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color, transform 0.3s ease;
    box-shadow: 0 0 5px 1px;
    border-radius: 5px;
    height: 63px;
    min-width: 145px;
    max-width: 143px;
    color: #28334e9c;
    opacity: 1;
}

.card_pic1 {
    position: relative;
}

.flip_card_text {
    top: 0;
    position: absolute;
    padding: 5px 15px;
}

.card_frame {
    max-width: 100%;
    width: 100%;
}

input[type="radio"]:checked + img {
    opacity: .8;
    box-shadow: 0 0 5px 1px;
    transition: all .5s ease;
    background: #4e4e4e;
    cursor: default;
    pointer-events: none;
}

:is(.dark .payment-img) {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: transparent;
    border-radius: 5px;
    height: 63px;
    box-shadow: 0 0 1px 1px #ffffff2b;
}

:is(.dark input[type="radio"]:checked + img) {
    opacity: .5;
    transition: all .5s ease;
    cursor: default;
    pointer-events: none;
    border-color: #fff;
}

.main_li_donate > li {
    list-style: disc;
    margin-left: 20px;
}

@media (max-width: 1278px) {
    .grid-container {
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    .payment-img {
        justify-content: center;
    }
}

.grid-item {
    text-align: center !important;
}

.payment-imgs{
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 1;
    border-radius: 2px;
    transition: all .5s ease!important;
    max-width: 170px;
    min-width: 170px;
}
.payment-imgs.active{
    cursor: default;
    pointer-events: none;
    opacity: .8;
}
:is(.dark .payment-imgs.active){
    opacity: .6;
    background: transparent;
}
.payment-method-details {
    background: transparent;
    /* padding: 10px; */
	margin-bottom: -5px;
}
.currency-btn {
    transition: transform 0.3s ease;
    will-change: transform;
}
.currency-btn.active {
    transform: scale(1.02);
}
@media (max-width: 800px) {
    .irs-single {
        display: none !important;
    }
}

/*donate*/

@media (max-width: 768px) {
    .mobile-mono {
        display: none !important;
    }

    .mobile-mono-text {
        display: block !important;
    }
}

.mobile-mono-text {
    display: none;
}

:root {
    --bg-main: linear-gradient(145deg, #ffffff, #ffffff);
    --bg-card: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    --bg-info: rgba(255, 255, 255, .6);

    --color-text-main: #1f2a3d;
    --color-text-sub: #5b6b86;
    --color-text-info: #2c3a57;
    --color-highlight: #224777;
    --color-accent: #f8f8f8;

    --radius-main: 16px;
    --radius-inner: 12px;
    --radius-small: 8px;

    --shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
    --shadow-strong: 0 10px 24px rgba(0, 0, 0, .15);
}

.dark {
    --bg-main: linear-gradient(145deg, rgba(34, 44, 68, 0.7), rgba(22, 29, 47, 0.73));
    --bg-info: linear-gradient(145deg, rgb(26 34 54 / 22%), rgb(18 25 42 / 11%));
    --bg-card: linear-gradient(135deg, rgba(42, 53, 80, 0.67) 0%, rgba(28, 36, 58, .79) 100%);

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-strong: inset 0 0 18px rgb(0 0 0 / 20%), 0 8px 18px rgb(0 0 0 / 20%);;

    --color-text-main: #e5ecf8;
    --color-text-sub: #94a3c2;
    --color-text-info: #d7e2ff;
    --color-highlight: #6ea8ff;
    --color-accent: #5aa9ff;
}

/* DISCOUNT */

.discount-wrapper {
    background: var(--bg-main);
    border-radius: var(--radius-main);
    padding: 20px 22px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.discount-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 6px;
    color: var(--color-text-main);
    letter-spacing: .5px;
}

.donate-gift-icon {
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
	width: 24px;
    height: auto;
}

.discount-sub {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    text-align: center;
    color: var(--color-text-sub);
    display: block;
}

.discount-highlight {
    font-weight: 700;
    color: var(--color-highlight);
}

.discount-info {
    margin-top: 10px;
    padding: 14px 16px;
    background: var(--bg-info);
    border-radius: var(--radius-inner);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-info);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discount-block {
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow-strong);
}

/* Toggle "Бонус к сумме пополнения, пример:" — скрыто по умолчанию, плавное открытие/закрытие */
.discount-title--toggle {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}
.discount-title--toggle:hover {
    opacity: 0.9;
}
.discount-toggle-chevron {
    display: inline-block;
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.25s ease;
    opacity: 0.7;
}
.discount-block-example.is-open .discount-toggle-chevron {
    transform: rotate(180deg);
}
.discount-block-example .js-discount-example-content {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 16px;
    transition: max-height 0.35s ease-out, margin 0.3s ease, padding 0.3s ease;
}
.discount-block-example.is-open .js-discount-example-content {
    max-height: 420px;
    margin-top: 10px;
    padding: 14px 16px;
    margin-bottom: 0;
}

.discount-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.discount-list li, .main_li_donate li {
    list-style: disc !important;
    margin-left: 15px;
    font-size: 15px;
}

.discount-list li span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
    margin-top: 6px;
}

/* BONUS */

.bonus-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: 15px 0;
}

.bonus-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--bg-card);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, .04);
    box-shadow: var(--shadow-strong);
    transition: .25s ease;
    border-radius: var(--radius-inner);
}

.bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.bonus-card.bonus-card-active {
    background: linear-gradient(135deg, rgba(200, 168, 112, 0.18) 0%, rgba(200, 168, 112, 0.08) 100%);
    border-color: rgba(200, 168, 112, 0.6);
    box-shadow: 0 0 0 1px rgba(200, 168, 112, 0.25);
}

.dark .bonus-card.bonus-card-active {
    background: linear-gradient(135deg, rgb(112 200 127 / 20%) 0%, rgb(112 200 147 / 6%) 100%);
    border-color: rgb(112 200 143 / 50%);
    box-shadow: 0 0 0 1px rgba(200, 168, 112, 0.2);
}

.bonus-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .7;
    color: var(--color-text-sub);
}

.bonus-value {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
}

.bonus-value2 {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    display: block;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
}

.bonus-value img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .3);
}

.bonus-percent {
    /*font-weight: 800;*/
    font-size: 15px;
    color: var(--color-text-info);
	background-color: #39935c;
    border-radius: 5px;
    padding: 2px 6px 1px 6px;
    font-weight: 500;
}

/* Quick amount buttons (donate) */
.donate-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 16px;
    justify-content: center;
}

.donate-quick-amount-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 1px 12px 1px 0;
    min-height: 32px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
    color: var(--color-text-main);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-strong);
	transition: 0.2s;
}

.donate-quick-amount-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.dark .donate-quick-amount-btn {
    background: rgb(27 37 59);
    border-color: #415172;
}
.dark .donate-quick-amount-btn:hover {
    background: #374a736b;
    /* border-color: #d3b68133; */
}

.donate-quick-amount-value {
    padding: 5px 6px 5px 15px;
    line-height: 1.2;
}

.donate-quick-amount-badge {
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    background: var(--color-highlight);
    color: #fff;
    line-height: 1.2;
}

.dark .donate-quick-amount-badge {
    background: #eac485;
    color: #263147;
}

/* Ряд кнопок: «Цены Donate Shop» + «Оплатить». Если закомментировать первую — вторая растянется на всю ширину */
.donate-buttons-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}
.btn-donate-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    background: #6b7280;
    color: #fff;
}
.btn-donate-shop:hover {
    background: #4b5563;
    color: #fff;
    opacity: 0.95;
}
.donate-buttons-row .donate-btn-pay {
    flex: 1 1 0;
    min-width: 0;
}

/* Кнопка «Оплатить» — новая версия (иконка + сумма) */
.btn-pay-new {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: #1abc79 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-pay-new:hover {
    background: #fbc162 !important;
    color: #263147 !important;
    /* box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35); */
}

.btn-pay-new .btn-pay-new-inner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-pay-new .btn-pay-icon {
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
}

.btn-pay-new .btn-pay-icon svg {
    width: 100%;
    height: 100%;
}

.btn-pay-new:hover .btn-pay-icon {
    color: inherit;
}

/* тёмная тема: сохраняем новый вид кнопки (переопределяем общие .btn-pay) */
.dark .btn-pay-new {
    background: #1abc79 !important;
    color: #fff !important;
}

.dark .btn-pay-new:hover {
    background: #fbc162 !important;
    color: #263147 !important;
}

/* psys — выбор валюты и способов оплаты (по примеру Mmoweb) */
.psys {
    display: grid;
    width: 100%;
    gap: 10px;
}

@media (min-width: 350px) {
    .psys.psys_def {
        grid-template-columns: repeat(2, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 540px) {
    .psys.psys_def {
        grid-template-columns: repeat(3, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 700px) {
    .psys.psys_def {
        grid-template-columns: repeat(3, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1000px) {
    .psys.psys_def {
        grid-template-columns: repeat(3, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .psys.psys_def {
        grid-template-columns: repeat(4, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1300px) {
    .psys.psys_def {
        grid-template-columns: repeat(4, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1700px) {
    .psys.psys_def {
        grid-template-columns: repeat(5, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (min-width: 2000px) {
    .psys.psys_def {
        grid-template-columns: repeat(6, 1fr);
    }
    .psys.psys_systems {
        grid-template-columns: repeat(6, 1fr);
    }
}

.psys__item {
    text-decoration: none;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s all;
    position: relative;
    z-index: 0;
    border: 0;
    background: transparent;
    margin: 0;
    min-height: 66px;
    text-align: center;
}

.psys_systems .psys__item {
    min-height: 63px;
}

.psys__bg {
    z-index: -1;
    border: 1px solid #3c4b6f;
    border-radius: 5px;
    background: rgba(136, 135, 219, 0.05);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.psys__item:hover .psys__bg,
.psys__input:checked ~ .psys__bg,
.currency-btn.active .psys__bg {
    border: 1px solid #4d5e86;
    background: #4d5e86;
	background: #eac485;
}

.psys__img {
    opacity: 0.5;
}

.psys__item:hover .psys__img,
.psys__input:checked ~ .psys__img,
.currency-btn.active .psys__img {
    opacity: 1;
}

.psys__img {
    display: block;
    max-width: 100%;
    height: auto;
}

.psys__input {
    display: none;
    opacity: 0;
}

.psys .mmm_sizem {
    max-width: 150%;
    width: auto;
    height: 100%;
}

.psys .mmm_size {
    max-width: 100%;
}

/* обёртка тултипа заполняет ячейку грида (display:flex), чтобы Tippy мог корректно позиционировать подсказку относительно элемента */
/* Текст во всплывающих подсказках (tippy) над способами оплаты — по центру */
.tippy-content {
    text-align: center;
}

.psys_systems .psys-tooltip-no-wrap,
.psys_def .psys-tooltip-no-wrap {
    display: flex;
    min-width: 0;
    align-items: stretch;
    justify-content: center;
}

.psys_systems .psys-tooltip-no-wrap > *,
.psys_def .psys-tooltip-no-wrap > * {
    width: 100%;
    min-width: 0;
}

.donate-psys-ttl {
    margin: -8px 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Кнопка "All systems" — только текст, тот же размер и стиль что и остальные способы оплаты */
.psys__item_all .psys__item-all-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--color-text-main, #e2e8f0);
}

:is(.dark) .psys__item_all .psys__item-all-text {
    color: var(--color-text-main, #e2e8f0);
}

/* Виджет помощи по оплате и контактов (после «История пополнений») */
.donate-help-widget {
    padding: 0.5rem 0;
}
.donate-help-widget-tg:hover {
    opacity: 0.95;
    filter: brightness(1.05);
}
.donate-help-widget-disclaimer {
    line-height: 1.4;
}

a.donate-help-widget-tg.inline-flex.items-center.justify-center.gap-2.w-full.py-2\.5.px-4.rounded-lg.font-semibold.text-center {
    background: #eac485;
    color: #1e293b;
	transition: 0.3s;
}
a:hover.donate-help-widget-tg.inline-flex.items-center.justify-center.gap-2.w-full.py-2\.5.px-4.rounded-lg.font-semibold.text-center {
    background: #dfb16c;
}