.paymentCont {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-top: 50px;
}


:root {
    --skeleton-payment-bg: rgba(148, 163, 184, 0.16);
    --skeleton-payment-highlight: rgba(255, 255, 255, 0.28);
}

@keyframes skeletonShimmerPayment {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Container overlay (non-blocking) */
body.loading-payment .paymentCont>.topup {
    position: relative;
    overflow: hidden;
}

body.loading-payment .paymentCont>.topup::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--skeleton-payment-bg) 25%, var(--skeleton-payment-highlight) 37%, var(--skeleton-payment-bg) 63%);
    background-size: 400% 100%;
    animation: skeletonShimmerPayment 1.1s ease-in-out infinite;
    z-index: 0;
}

/* Hide content colors so overlay looks correct */
body.loading-payment .paymentCont>.topup>*,
body.loading-payment .paymentCont>.topup>.info-block>*,
body.loading-payment .paymentCont>.topup>.bonus-cards-payment>* {
    color: transparent !important;
}

/* Specific skeletons to avoid uneven height jumps */
body.loading-payment .paymentCont>.topup>img {
    opacity: 0;
}

body.loading-payment .paymentCont>.topup>h1,
body.loading-payment .paymentCont>.topup>b,
body.loading-payment .paymentCont>.topup>.info-block>b,
body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-card-block,
body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-checkbox-block,
body.loading-payment .paymentCont>.topup>button {
    position: relative;
    background: linear-gradient(90deg, var(--skeleton-payment-bg) 25%, var(--skeleton-payment-highlight) 37%, var(--skeleton-payment-bg) 63%);
    background-size: 400% 100%;
    animation: skeletonShimmerPayment 1.1s ease-in-out infinite;
    border-radius: 10px;
}

body.loading-payment .paymentCont>.topup>h1 {
    min-height: 2.2rem;
}

body.loading-payment .paymentCont>.topup>b {
    min-height: 1.2rem;
}

body.loading-payment .paymentCont>.topup>.info-block>b {
    min-height: 1.1rem;
}

body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-card-block,
body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-checkbox-block {
    min-height: 1.1rem;
}

body.loading-payment .paymentCont>.topup>button {
    min-height: 50px;
}

@media (prefers-reduced-motion: reduce) {

    body.loading-payment .paymentCont>.topup::after,
    body.loading-payment .paymentCont>.topup>h1,
    body.loading-payment .paymentCont>.topup>b,
    body.loading-payment .paymentCont>.topup>.info-block>b,
    body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-card-block,
    body.loading-payment .paymentCont>.topup>.bonus-cards-payment .bonus-checkbox-block,
    body.loading-payment .paymentCont>.topup>button {
        animation: none;
    }
}

.paymentCont::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 8%),
        radial-gradient(circle at 25% 65%, rgba(126, 34, 206, 0.07) 0%, transparent 7%);
    pointer-events: none;
}

.paymentCont>.topup {
    min-width: 340px;
    max-width: 680px;
    width: 100%;
    height: auto;
    background: linear-gradient(145deg,
            rgba(38, 35, 78, 0.95),
            rgba(23, 19, 61, 0.85));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    padding: 80px 48px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(126, 34, 206, 0.5) inset;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.paymentCont>.topup::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(147, 51, 234, 0.7),
            rgba(168, 85, 247, 0.8),
            rgba(147, 51, 234, 0.7),
            transparent);
    z-index: 1;
    bottom: 0;
}

.paymentCont>.topup>div>b {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s ease;
}

.paymentCont>.topup>div>b>span {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.paymentCont>.topup>button {
    width: 100%;
    height: 50px;
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
}

.paymentCont>.topup>button span {
    position: relative;
    z-index: 2;
}

.paymentCont>.topup>button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #7e22ce, #9333ea, #7e22ce);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.paymentCont>.topup>button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
}

.paymentCont>.topup>button:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

#checkout-button {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

#checkout-button::before {
    background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
    background-size: 200% 100%;
}

#checkout-button:hover {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

.paymentCont>.topup>b {
    color: #e2e8f0;
    font-size: 1.1rem;
    background: none;
    padding: 0;
    border: none;
    text-shadow: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.paymentCont>.topup>h1 {
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.info-block {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.info-block>b {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-weight: 500;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.info-block>b:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-block>b>span {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cleanup old generic selector */
.paymentCont>.topup>div {
    height: auto;
    background: none;
    border: none;
    padding: 0;
}

.paymentCont>.topup>img {
    border: 4px solid rgba(147, 51, 234, 0.3);
    position: absolute;
    top: -50px;
    width: 120px;
    height: 120px;
    left: 50%;
    transform: translate(-50%, 0%);
    border-radius: 50%;
    transition: all 0.3s ease;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .paymentCont {
        padding-top: 60px;
        padding-left: 15px;
        padding-right: 15px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .paymentCont>.topup {
        width: 100%;
        max-width: 620px;
        min-width: 350px;
        padding: 70px 30px 30px 30px;
        gap: 20px;
        margin: 0 auto;
        border-radius: 14px;
    }

    .paymentCont>.topup>h1 {
        font-size: 3.2rem;
        text-align: center;
        margin-bottom: 8px;
    }

    .paymentCont>.topup>b {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.4;
    }

    .paymentCont>.topup>img {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    .info-block {
        padding: 12px;
        gap: 8px;
        border-radius: 10px;
    }

    .info-block>b {
        font-size: 0.9rem;
        padding: 0 0 8px 0;
        line-height: 1.3;
    }

    .info-block>b>span {
        font-size: 0.9rem;
    }

    .paymentCont>.topup>button {
        height: 45px;
        font-size: 14px;
        letter-spacing: 1.5px;
        border-radius: 7px;
    }

    .paymentCont>.topup>div>b {
        padding: 14px 0;
        font-size: 0.95rem;
    }

    .paymentCont>.topup>div>b>span {
        font-size: 0.95rem;
    }
}

/* Promo code activation inside the payment card */
.bonus-code-payment {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    margin-bottom: 10px;
    max-height: 44px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    transition: max-height .28s ease, margin .28s ease, opacity .2s ease, transform .28s ease;
}

.bonus-code-payment--applied {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
}

.bonus-code-payment input,
.bonus-code-payment__apply {
    height: 44px;
    box-sizing: border-box;
    border-radius: 9px;
    font: inherit;
}

.bonus-code-payment input {
    min-width: 0;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(168, 85, 247, 0.42);
    background: rgba(15, 23, 42, 0.56);
    color: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bonus-code-payment input::placeholder {
    color: rgba(226, 232, 240, 0.56);
}

.bonus-code-payment input:focus {
    border-color: #a855f7;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.14);
}

.bonus-code-payment__apply {
    width: 100%;
    padding: 0 18px;
    border: 0;
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease, opacity .2s ease;
}

.bonus-code-payment__apply:hover:not(:disabled) {
    transform: scale(1.02);
    background: linear-gradient(90deg, #7e22ce, #9333ea, #7e22ce);
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
}

.bonus-code-payment__apply:disabled {
    cursor: wait;
    opacity: .62;
}

.payment-promo-message {
    display: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.payment-promo-message--success {
    color: #20d87a;
    background: rgba(32, 216, 122, 0.1);
    border: 1px solid rgba(32, 216, 122, 0.2);
}

.payment-promo-message--error {
    color: #ff6b78;
    background: rgba(255, 67, 87, 0.1);
    border: 0;
}

.payment-promo-message.t-error-msg.is-error {
    box-sizing: border-box;
    margin: 8px 0 14px;
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

@media (max-width: 600px) {
    .paymentCont>.topup {
        min-width: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .bonus-code-payment {
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 96px;
        margin-bottom: 14px;
    }

    .bonus-code-payment--applied {
        max-height: 0;
        margin-bottom: 0;
    }
}

/* Mobile Large */
@media (max-width: 480px) and (min-width: 361px) {
    .paymentCont {
        padding-top: 80px;
        padding-left: 10px;
        padding-right: 10px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .paymentCont>.topup {
        padding: 65px 25px 25px 25px;
        min-width: 320px;
        width: 100%;
        max-width: 100%;
        gap: 18px;
        border-radius: 12px;
        margin: 0 auto;
    }

    .paymentCont>.topup>h1 {
        font-size: 2.8rem;
        text-align: center;
        margin-bottom: 6px;
    }

    .paymentCont>.topup>b {
        font-size: 0.85rem;
        letter-spacing: 1px;
        text-align: center;
        line-height: 1.3;
    }

    .paymentCont>.topup>img {
        width: 90px;
        height: 90px;
        top: -45px;
    }

    .info-block {
        padding: 10px;
        gap: 6px;
        border-radius: 8px;
    }

    .info-block>b {
        font-size: 0.8rem;
        padding: 0 0 6px 0;
        line-height: 1.2;
    }

    .info-block>b>span {
        font-size: 0.8rem;
    }

    .paymentCont>.topup>button {
        height: 42px;
        font-size: 13px;
        letter-spacing: 1px;
        border-radius: 6px;
    }

    .paymentCont>.topup>div>b {
        padding: 12px 0;
        font-size: 0.85rem;
    }

    .paymentCont>.topup>div>b>span {
        font-size: 0.85rem;
    }
}

/* Mobile Medium */
@media (max-width: 360px) and (min-width: 321px) {
    .paymentCont {
        padding-top: 100px;
        padding-left: 8px;
        padding-right: 8px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .paymentCont>.topup {
        padding: 60px 20px 22px 20px;
        min-width: 280px;
        width: 100%;
        max-width: 100%;
        gap: 16px;
        border-radius: 10px;
        margin: 0 auto;
    }

    .paymentCont>.topup>h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 4px;
    }

    .paymentCont>.topup>b {
        font-size: 0.8rem;
        letter-spacing: 0.8px;
        text-align: center;
        line-height: 1.2;
    }

    .paymentCont>.topup>img {
        width: 80px;
        height: 80px;
        top: -40px;
    }

    .info-block {
        padding: 8px;
        gap: 5px;
        border-radius: 6px;
    }

    .info-block>b {
        font-size: 0.75rem;
        padding: 0 0 5px 0;
        line-height: 1.1;
    }

    .info-block>b>span {
        font-size: 0.75rem;
    }

    .paymentCont>.topup>button {
        height: 40px;
        font-size: 12px;
        letter-spacing: 0.8px;
        border-radius: 5px;
    }

    .paymentCont>.topup>div>b {
        padding: 10px 0;
        font-size: 0.8rem;
    }

    .paymentCont>.topup>div>b>span {
        font-size: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 320px) {
    .paymentCont {
        padding-top: 120px;
        padding-left: 6px;
        padding-right: 6px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .paymentCont>.topup {
        padding: 55px 18px 20px 18px;
        min-width: 260px;
        width: 100%;
        max-width: 100%;
        gap: 14px;
        border-radius: 8px;
        margin: 0 auto;
    }

    .paymentCont>.topup>h1 {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 3px;
    }

    .paymentCont>.topup>b {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        text-align: center;
        line-height: 1.1;
    }

    .paymentCont>.topup>img {
        width: 70px;
        height: 70px;
        top: -35px;
        /* Force center positioning */
        left: 50% !important;
        transform: translate(-50%, 0%) !important;
        position: absolute !important;
    }

    .info-block {
        padding: 6px;
        gap: 4px;
        border-radius: 5px;
    }

    .info-block>b {
        font-size: 0.7rem;
        padding: 0 0 4px 0;
        line-height: 1.0;
    }

    .info-block>b>span {
        font-size: 0.7rem;
    }

    .paymentCont>.topup>button {
        height: 38px;
        font-size: 11px;
        letter-spacing: 0.5px;
        border-radius: 4px;
    }

    .paymentCont>.topup>div>b {
        padding: 8px 0;
        font-size: 0.75rem;
    }

    .paymentCont>.topup>div>b>span {
        font-size: 0.75rem;
    }
}

/* Emergency mobile image centering - override any conflicting styles */
@media screen and (max-width: 1024px) {
    .paymentCont>.topup>img {
        /* Force absolute centering */
        position: absolute !important;
        left: 50% !important;
        top: -35px !important;
        transform: translate(-50%, 0%) !important;
        /* Prevent any shifting */
        margin: 0 !important;
        padding: 0 !important;
        /* Disable animations that could cause shifting */
        transition: none !important;
        animation: none !important;
        /* Ensure proper sizing - even smaller size */
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        /* Remove any filters or effects */
        filter: none !important;
        -webkit-filter: none !important;
        will-change: auto !important;
        /* Prevent text wrapping issues */
        white-space: nowrap !important;
        overflow: hidden !important;
        /* Ensure proper circular cropping */
        border: 4px solid rgba(147, 51, 234, 0.3) !important;
        box-sizing: border-box !important;
    }


}

/* Landscape mobile (phones held sideways) */
@media (orientation: landscape) and (max-height: 600px) {
    .paymentCont {
        padding-top: 8px;
        padding-left: 8px;
        padding-right: 8px;
        align-items: stretch;
        min-height: 100vh;
    }

    .paymentCont>.topup {
        width: 100vw;
        max-width: none;
        min-width: 0;
        min-height: calc(100vh - 16px);
        max-height: none;
        border-radius: 12px;
        padding: 16px 14px 12px 14px;
        gap: 10px;
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: min-content min-content min-content min-content min-content;
        grid-template-areas:
            "title title"
            "img img"
            "amount amount"
            "info info"
            "bonus bonus"
            "actions actions";
        align-content: start;
        overflow: hidden;
        margin: 8px auto;
        width: 96vw;
    }

    .paymentCont>.topup>img {
        display: none !important;
        /* hide avatar in landscape to avoid overlap */
    }

    .paymentCont>.topup>h1 {
        font-size: 2.2rem;
        text-align: center;
        grid-area: amount;
        margin: 0;
    }

    .paymentCont>.topup>b {
        font-size: 0.95rem;
        text-align: center;
        letter-spacing: 1px;
        grid-area: title;
        align-self: center;
        margin: 0;
    }

    .info-block {
        padding: 10px;
        gap: 6px;
        border-radius: 10px;
        grid-area: info;
        min-width: 0;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.45);
        border: 1px solid rgba(147, 51, 234, 0.22);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .info-block>b {
        font-size: 0.9rem;
        padding: 0 0 6px 0;
    }

    .info-block>b>span {
        font-size: 0.9rem;
    }

    .bonus-cards-payment {
        margin-top: 6px;
        margin-bottom: 6px;
        grid-area: bonus;
        min-width: 0;
        background: rgba(147, 51, 234, 0.06);
        border: 1px solid rgba(147, 51, 234, 0.18);
        border-radius: 10px;
        padding: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.82em;
        padding: 6px 8px;
    }

    .bonus-checkbox-block label {
        font-size: 0.82em;
    }

    #actual-payment-info {
        font-size: 0.82em;
    }

    .paymentCont>.topup>button {
        height: 36px;
        font-size: 12px;
        letter-spacing: 0.8px;
        border-radius: 6px;
        grid-area: actions;
        align-self: end;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }
}

/* --- Bonus card payment section improvements --- */
.bonus-cards-payment {
    width: 100%;
    background: none;
    border-radius: 12px;
    padding: 0;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.bonus-card-block {
    width: 100%;
    background: rgba(22, 163, 74, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.88em;
    color: #16a34a;
    font-weight: 600;
}

.bonus-checkbox-block {
    width: 100%;
    background: rgba(147, 51, 234, 0.07);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 6px;
    font-size: 1em;
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid rgba(168, 85, 247, 0.42);
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bonus-checkbox-block::before,
.bonus-checkbox-block::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    width: 112px;
    height: 86px;
    background: url("../img/Logo/Cards.webp") center / contain no-repeat;
    opacity: 0.055;
    pointer-events: none;
    filter: none;
}

.bonus-checkbox-block::before {
    left: -54px;
    transform: translateY(-50%) rotate(13deg) scaleX(-1);
}

.bonus-checkbox-block::after {
    right: -54px;
    transform: translateY(-50%) rotate(-13deg);
}

.bonus-checkbox-block > * {
    position: relative;
    z-index: 1;
}

.bonus-checkbox-block:hover:not(.is-disabled) {
    border-color: rgba(192, 132, 252, 0.85);
    background: rgba(147, 51, 234, 0.14);
}

.bonus-checkbox-block.is-selected {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.32), rgba(21, 128, 61, 0.22));
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.bonus-checkbox-block.is-selected .bonus-card-use-button {
    background: linear-gradient(45deg, #15803d, #16a34a);
    border-color: rgba(134, 239, 172, 0.72);
}

.bonus-checkbox-block.is-selected::before,
.bonus-checkbox-block.is-selected::after {
    opacity: 0.085;
}

.bonus-checkbox-block.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.bonus-checkbox-block label {
    flex: 1;
    margin: 0;
    color: #f8fafc;
    cursor: inherit;
}

.bonus-checkbox-label {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.bonus-checkbox-block input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 3px solid #a855f7;
    border-radius: 12px;
    background: rgba(7, 12, 32, 0.72);
    display: grid;
    place-items: center;
    cursor: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bonus-checkbox-block input[type="checkbox"]::after {
    content: "✓";
    color: #ffffff;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    transform: scale(0);
    transition: transform 0.16s ease;
}

.bonus-checkbox-block input[type="checkbox"]:checked {
    border-color: #22c55e;
    background: #16a34a;
}

.bonus-checkbox-block input[type="checkbox"]:checked::after {
    transform: scale(1);
}

.bonus-checkbox-block input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

/* Keep the redesigned bonus action authoritative over legacy breakpoint rules. */
.bonus-checkbox-block {
    min-height: 112px !important;
    padding: 16px 18px !important;
    justify-content: space-between !important;
    gap: 22px !important;
}

.bonus-checkbox-block input#use-bonus-card {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    flex: 0 0 1px !important;
}

@media (max-width: 560px) {
    .bonus-checkbox-block {
        min-height: 102px !important;
        padding: 13px 14px !important;
        gap: 12px !important;
    }
}

/* Match the main Checkout button exactly. */
.bonus-card-use-button {
    width: auto;
    min-width: 178px;
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(45deg, #16a34a, #22c55e);
    box-shadow: 0 2px 8px rgba(34, 197, 94, .2);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.bonus-card-use-button span {
    position: relative;
    z-index: 2;
}

.bonus-card-use-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}

.bonus-card-use-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    box-shadow: 0 0 15px rgba(34, 197, 94, .5);
    transform: translateY(-2px);
}

.bonus-card-use-button:hover:not(:disabled)::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

.bonus-card-use-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.35);
}

/* Payment-page bonus card: a compact action on the left and card art on the right. */
.bonus-checkbox-block {
    min-height: 96px;
    padding: 14px 18px !important;
    justify-content: flex-start;
    gap: 0;
    background: linear-gradient(135deg, rgba(62, 32, 105, .48), rgba(30, 28, 70, .76));
    border: 1px solid rgba(168, 85, 247, .38);
}

.bonus-checkbox-block::before,
.bonus-checkbox-block::after {
    content: none;
}

.bonus-checkbox-block input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bonus-card-action-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.bonus-card-count-display {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d9fbe5;
    font-size: 15px;
    font-weight: 800;
}

.bonus-card-count-display strong {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.28);
    font-size: 22px;
    line-height: 1;
}

.bonus-card-payment-art {
    display: block;
    position: absolute;
    top: 50%;
    right: -48px;
    width: 168px;
    max-height: 118px;
    object-fit: contain;
    transform: translateY(-50%) rotate(-8deg);
    opacity: .2;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .32));
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 560px) {
    .bonus-checkbox-block {
        min-height: 92px;
        padding: 13px 14px !important;
        gap: 0;
    }

    .bonus-card-count-display {
        gap: 7px;
        font-size: 12px;
    }

    .bonus-card-count-display strong {
        min-width: 38px;
        height: 34px;
        font-size: 19px;
    }

    .bonus-card-payment-art {
        right: -42px;
        width: 138px;
    }

    .bonus-card-use-button {
        min-width: 154px;
        height: 38px;
        min-height: 38px;
        padding: 0 14px;
        font-size: 12px;
    }
}

#actual-payment-info {
    font-size: 0.88em;
    color: #16a34a;
    font-weight: 700;
    background: rgba(22, 163, 74, 0.13);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    /* Animation Properties */
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    padding: 0 10px;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#actual-payment-info.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    padding: 7px 10px;
    margin-top: 6px;
}

/* Bonus cards responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .bonus-cards-payment {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.85em;
        padding: 6px 10px;
        margin-bottom: 5px;
        border-radius: 7px;
    }

    .bonus-checkbox-block label {
        font-size: 0.85em;
        margin-left: 5px;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 3px;
    }

    #actual-payment-info {
        font-size: 0.85em;
        border-radius: 7px;
    }

    #actual-payment-info.visible {
        padding: 6px 8px;
        margin-top: 5px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .bonus-cards-payment {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.82em;
        padding: 5px 8px;
        margin-bottom: 4px;
        border-radius: 6px;
        min-height: auto;
        line-height: 1.2;
    }

    .bonus-checkbox-block label {
        font-size: 0.82em;
        margin-left: 4px;
        line-height: 1.2;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 3px;
    }

    #actual-payment-info {
        font-size: 0.82em;
        border-radius: 6px;
    }

    #actual-payment-info.visible {
        padding: 5px 7px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) and (min-width: 361px) {
    .bonus-cards-payment {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.8em;
        padding: 4px 7px;
        margin-bottom: 3px;
        border-radius: 5px;
        min-height: auto;
        line-height: 1.1;
    }

    .bonus-checkbox-block label {
        font-size: 0.8em;
        margin-left: 3px;
        line-height: 1.1;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 2px;
    }

    #actual-payment-info {
        font-size: 0.8em;
        border-radius: 5px;
    }

    #actual-payment-info.visible {
        padding: 4px 6px;
        margin-top: 3px;
    }
}

@media (max-width: 360px) and (min-width: 321px) {
    .bonus-cards-payment {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.75em;
        padding: 3px 6px;
        margin-bottom: 2px;
        border-radius: 4px;
        min-height: auto;
        line-height: 1.0;
    }

    .bonus-checkbox-block label {
        font-size: 0.75em;
        margin-left: 2px;
        line-height: 1.0;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 2px;
    }

    #actual-payment-info {
        font-size: 0.75em;
        border-radius: 4px;
    }

    #actual-payment-info.visible {
        padding: 3px 5px;
        margin-top: 2px;
    }
}

@media (max-width: 320px) {
    .bonus-cards-payment {
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .bonus-card-block,
    .bonus-checkbox-block {
        font-size: 0.7em;
        padding: 2px 4px;
        margin-bottom: 1px;
        border-radius: 3px;
        min-height: auto;
        line-height: 0.9;
    }

    .bonus-checkbox-block label {
        font-size: 0.7em;
        margin-left: 1px;
        line-height: 0.9;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        width: 26px;
        height: 26px;
        margin-right: 1px;
    }

    #actual-payment-info {
        font-size: 0.7em;
        border-radius: 3px;
    }

    #actual-payment-info.visible {
        padding: 2px 4px;
        margin-top: 1px;
    }
}

/* Final mobile override: keep the bonus action square and readable. */
@media (max-width: 1024px) {
    .bonus-checkbox-block {
        min-height: 68px;
        box-sizing: border-box;
        padding: 11px 12px;
        margin: 0 0 8px;
        gap: 11px;
        border-radius: 10px;
        line-height: 1.3;
    }

    .bonus-checkbox-block label {
        min-width: 0;
        margin: 0;
        line-height: 1.3;
    }

    .bonus-checkbox-label {
        font-size: 14px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin: 0;
        border-width: 3px;
        border-radius: 10px;
    }

    .bonus-checkbox-block input[type="checkbox"]::after {
        font-size: 27px;
    }
}

@media (max-width: 768px) {
    .bonus-checkbox-block input[type="checkbox"] {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    .bonus-checkbox-block {
        padding: 10px;
        gap: 9px;
    }

    .bonus-checkbox-label {
        font-size: 13px;
    }

    .bonus-checkbox-block input[type="checkbox"] {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

/* Important bonus information must remain readable at every breakpoint. */
.bonus-card-block,
#actual-payment-info {
    font-size: 15px;
    line-height: 1.35;
}

.bonus-card-block {
    padding: 9px 12px;
}

#actual-payment-info.visible {
    padding: 9px 12px;
}

@media (max-width: 480px) {
    .bonus-card-block,
    #actual-payment-info {
        font-size: 14px;
    }

    .bonus-card-block,
    #actual-payment-info.visible {
        padding: 8px 10px;
    }
}

/* Present the complete checkout at roughly the same density as browser zoom 90%. */
.paymentCont {
    box-sizing: border-box;
    padding-left: clamp(12px, 3vw, 32px);
    padding-right: clamp(12px, 3vw, 32px);
}

.paymentCont > .topup {
    zoom: 0.9;
    margin-left: auto;
    margin-right: auto;
}

@supports not (zoom: 1) {
    .paymentCont > .topup {
        transform: scale(0.9);
        transform-origin: top center;
    }
}

/* Final safeguard against legacy responsive checkbox sizing. */
.bonus-checkbox-block {
    min-height: 96px !important;
    padding: 14px 18px !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

.bonus-checkbox-block input#use-bonus-card {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    flex: 0 0 1px !important;
}

@media (max-width: 560px) {
    .bonus-checkbox-block {
        min-height: 92px !important;
        padding: 13px 14px !important;
        gap: 0 !important;
    }
}
