/* CSS for Recharge Page */

/* PC DSL (79:2921) Variables */
:root {
    --recharge-banner-bg-url: url("../../images/hero/recharge-banner-pc.png"); /* paint_44:1450 */
    --recharge-banner-overlay-color: rgba(0, 0, 0, 0.5); /* paint_1:448 */
    --recharge-banner-text-color: #ffffff; /* paint_1:441 */
    --recharge-banner-font-family: "Source Han Sans", sans-serif; /* font_1:0086 family */
    --recharge-banner-font-size: 64px; /* font_1:0086 size */
    --recharge-banner-font-weight: bold; /* font_1:0086 style */
    --recharge-banner-line-height: 120px; /* font_1:0086 lineHeight */

    --recharge-step-indicator-bg: #f7981d; /* paint_44:1195 - used for step numbers */
    --recharge-step-indicator-text-color: #ffffff; /* paint_1:441 - for step numbers */
    --recharge-step-title-text-color: #101010; /* paint_1:523 */
    --recharge-step-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1545 family */
    --recharge-step-font-size: 20px; /* font_44:1545 size */
    --recharge-step-font-weight: 500; /* font_44:1545 style "Medium" */

    --recharge-section-title-color: #101010; /* paint_1:523 */
    --recharge-section-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1545 family */
    --recharge-section-title-font-size: 20px; /* font_44:1545 size */

    --recharge-login-prompt-text-color: #666666; /* paint_1:599 */
    --recharge-login-prompt-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1587 family */
    --recharge-login-prompt-font-size: 16px; /* font_44:1587 size */
    --recharge-login-button-bg: #1a73e8; /* paint_44:1394 */
    --recharge-login-button-text-color: #ffffff; /* paint_1:441 */
    --recharge-login-button-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2065 family */
    --recharge-login-button-font-size: 18px; /* font_44:2065 size */

    --recharge-payment-option-bg: #f4f4f4; /* paint_44:1249 first color */
    --recharge-payment-option-border-color: #e5e5e5; /* paint_1:0202 */
    --recharge-payment-option-text-color: #333333; /* paint_1:502 */
    --recharge-payment-option-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2399 family */
    --recharge-payment-option-font-size: 18px; /* font_44:2399 size */

    --recharge-topup-card-bg: #f4f4f4; /* paint_44:1249 first color, for card background */
    --recharge-topup-card-border-color: #e5e5e5; /* paint_1:0202 */
    --recharge-topup-card-crystal-text-color: #101010; /* paint_1:523 */
    --recharge-topup-card-crystal-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2065 */
    --recharge-topup-card-crystal-font-size: 18px; /* font_44:2065 */
    --recharge-topup-card-price-text-color: #333333; /* paint_1:502 */
    --recharge-topup-card-price-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2399 */
    --recharge-topup-card-price-font-size: 18px; /* font_44:2399 */
    --recharge-topup-card-discount-bg: #da0e3e; /* paint_44:1325 */
    --recharge-topup-card-discount-text-color: #ffffff; /* paint_1:441 */
    --recharge-topup-card-discount-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1554 */
    --recharge-topup-card-discount-font-size: 16px; /* font_44:1554 */

    --recharge-selected-border-color: #1a73e8; /* paint_44:1394 from selected DSL */
    --recharge-selected-bg-color: #eaf3ff; /* paint_44:2494 first color from selected DSL */
    --recharge-topup-card-selected-price-bg: #1a73e8; /* paint_44:1394 from selected DSL (price area of selected card) */
    --recharge-topup-card-selected-price-text-color: #ffffff; /* paint_1:441 for text on blue bg */

    --recharge-crystal-icon-url: url("../../images/content/crystal-icon.png"); /* paint_44:1317 */

    --recharge-summary-total-label-color: #333333; /* paint_1:502 */
    --recharge-summary-total-label-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2065 */
    --recharge-summary-total-label-font-size: 18px; /* font_44:2065 */
    --recharge-summary-total-amount-color: #101010; /* paint_1:523 */
    --recharge-summary-total-amount-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2399 */
    --recharge-summary-total-amount-font-size: 18px; /* font_44:2399 */
    --recharge-summary-button-bg: #1a73e8; /* paint_44:1394 */
    --recharge-summary-button-text-color: #ffffff; /* paint_1:441 */
    --recharge-summary-button-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2384 */
    --recharge-summary-button-font-size: 18px; /* font_44:2384 */
    --recharge-summary-button-line-height: 20px; /* font_44:2384 */
    /* Mobile DSL (79:2029 - Payment Success, but using for general mobile vars) */
    --recharge-m-primary-button-bg: #1a73e8; /* paint_44:1394 (Done button) */
    --recharge-m-primary-button-text-color: #ffffff; /* paint_1:441 (Done button text) */
    --recharge-m-primary-button-font-family: "Source Han Sans", sans-serif; /* font_79:1987 (Done button) */
    --recharge-m-primary-button-font-size: 32px; /* font_79:1987 (Done button) */

    --recharge-m-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1519 (Payment successful!) */
    --recharge-m-title-font-size: 40px; /* font_44:1519 */
    --recharge-m-title-color: #101010; /* paint_1:523 */

    --recharge-m-subtitle-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1200 (Thank you!) */
    --recharge-m-subtitle-font-size: 28px; /* font_44:1200 */
    --recharge-m-subtitle-color: #666666; /* paint_1:599 */

    --recharge-m-selected-payment-shadow: none; /* No specific shadow in M selected DSL */
    /* Recharge Completed (PC - 79:2515) Variables */
    --recharge-completed-pc-icon-bg-opacity: 0.15; /* From 79:2577 opacity */
    --recharge-completed-pc-icon-bg-color: #20d76d; /* paint_79:2066 / 79:2577 */
    --recharge-completed-pc-icon-main-color: #20d76d; /* paint_79:2066 / 79:2578 */
    --recharge-completed-pc-icon-checkmark-color: #ffffff; /* paint_1:611 in 79:2579 */
    --recharge-completed-pc-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_79:2604 family */
    --recharge-completed-pc-title-font-size: 22px; /* font_79:2604 size */
    --recharge-completed-pc-title-color: #101010; /* paint_1:523 / font_79:2604 */
    --recharge-completed-pc-message-font-family: "Alibaba Sans SEA", sans-serif; /* font_79:2593 family */
    --recharge-completed-pc-message-font-size: 16px; /* font_79:2593 size */
    --recharge-completed-pc-message-color: #666666; /* paint_1:599 / font_79:2593 */
    --recharge-completed-pc-button-bg-color: #1a73e8; /* paint_44:1394 / 79:2600 */
    --recharge-completed-pc-button-text-color: #ffffff; /* paint_1:441 / font_44:2065 */
    --recharge-completed-pc-button-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2065 family */
    --recharge-completed-pc-button-font-size: 18px; /* font_44:2065 size */
    --recharge-completed-pc-button-border-radius: 8px; /* 79:2600 borderRadius */
    /* Recharge Completed (Mobile - 79:2029) Variables */
    --recharge-completed-m-icon-bg-opacity: 0.15; /* From 79:2068 opacity */
    --recharge-completed-m-icon-bg-color: #20d76d; /* paint_79:2066 / 79:2068 */
    --recharge-completed-m-icon-main-color: #20d76d; /* paint_79:2066 / 79:2065 */
    --recharge-completed-m-icon-checkmark-color: #ffffff; /* Implied from PC, not directly in M checkmark path */
    --recharge-completed-m-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1519 family */
    --recharge-completed-m-title-font-size: 40px; /* font_44:1519 size */
    --recharge-completed-m-title-color: #101010; /* paint_1:523 / font_44:1519 */
    --recharge-completed-m-message-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1200 family */
    --recharge-completed-m-message-font-size: 28px; /* font_44:1200 size */
    --recharge-completed-m-message-color: #666666; /* paint_1:599 / font_44:1200 */
    --recharge-completed-m-button-bg-color: #1a73e8; /* paint_44:1394 / 79:2059 */
    --recharge-completed-m-button-text-color: #ffffff; /* paint_1:441 / font_79:1987 */
    --recharge-completed-m-button-font-family: "Source Han Sans", sans-serif; /* font_79:1987 family */
    --recharge-completed-m-button-font-size: 32px; /* font_79:1987 size */
    --recharge-completed-m-button-border-radius: 16px; /* 79:2059 borderRadius */
    /* Recharge Failed (PC - 79:2613) Variables */
    --recharge-failed-pc-icon-bg-opacity: 0.15; /* From 79:2650 opacity */
    --recharge-failed-pc-icon-bg-color: #d72020; /* paint_79:2647 / 79:2650 */
    --recharge-failed-pc-icon-main-color: #d72020; /* paint_79:2647 / 79:2646 */
    --recharge-failed-pc-icon-cross-color: #ffffff; /* paint_1:611 in 79:2649 */
    --recharge-failed-pc-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_79:2604 family */
    --recharge-failed-pc-title-font-size: 22px; /* font_79:2604 size */
    --recharge-failed-pc-title-color: #101010; /* paint_1:523 / font_79:2604 */
    --recharge-failed-pc-message-font-family: "Alibaba Sans SEA", sans-serif; /* font_79:2593 family */
    --recharge-failed-pc-message-font-size: 16px; /* font_79:2593 size */
    --recharge-failed-pc-message-color: #666666; /* paint_1:599 / font_79:2593 */
    --recharge-failed-pc-button-primary-bg-color: #1a73e8; /* paint_44:1394 / 79:2656 (Done button in this DSL) */
    --recharge-failed-pc-button-primary-text-color: #ffffff; /* paint_1:441 / font_44:2065 */
    --recharge-failed-pc-button-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:2065 family */
    --recharge-failed-pc-button-font-size: 18px; /* font_44:2065 size */
    --recharge-failed-pc-button-border-radius: 8px; /* 79:2656 borderRadius */
    /* Recharge Failed (Mobile - 79:2826) Variables */
    --recharge-failed-m-icon-bg-opacity: 0.15; /* From 79:2853 opacity */
    --recharge-failed-m-icon-bg-color: #d72020; /* paint_79:2647 / 79:2853 */
    --recharge-failed-m-icon-main-color: #d72020; /* paint_79:2647 / 79:2851 */
    --recharge-failed-m-icon-cross-color: #ffffff; /* paint_1:611 in 79:2852 */
    --recharge-failed-m-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1519 family */
    --recharge-failed-m-title-font-size: 40px; /* font_44:1519 size */
    --recharge-failed-m-title-color: #101010; /* paint_1:523 / font_44:1519 */
    --recharge-failed-m-message-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1200 family */
    --recharge-failed-m-message-font-size: 28px; /* font_44:1200 size */
    --recharge-failed-m-message-color: #666666; /* paint_1:599 / font_44:1200 */
    --recharge-failed-m-button-primary-bg-color: #1a73e8; /* paint_44:1394 / 79:2860 (Done button in this DSL) */
    --recharge-failed-m-button-primary-text-color: #ffffff; /* paint_1:441 / font_79:1987 */
    --recharge-failed-m-button-font-family: "Source Han Sans", sans-serif; /* font_79:1987 family */
    --recharge-failed-m-button-font-size: 32px; /* font_79:1987 size */
    --recharge-failed-m-button-border-radius: 16px; /* 79:2860 borderRadius */
    /* Recharge Pending (Shared PC/Mobile - 79:2778) Variables */
    --recharge-pending-icon-bg-opacity: 0.15; /* From 79:2789 opacity */
    --recharge-pending-icon-bg-color: #f4b812; /* paint_79:2790 / 79:2789 */
    --recharge-pending-icon-main-color: #f4b812; /* paint_79:2795 / 79:2794 */
    --recharge-pending-icon-symbol-color: #ffffff; /* paint_1:611 in 79:2793 (L-shape in DSL, using white for exclamation) */
    --recharge-pending-title-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1519 family */
    --recharge-pending-title-font-size: 40px; /* font_44:1519 size (from mobile DSL, will scale down for PC if needed) */
    --recharge-pending-title-color: #101010; /* paint_1:523 / font_44:1519 */
    --recharge-pending-message-font-family: "Alibaba Sans SEA", sans-serif; /* font_44:1200 family */
    --recharge-pending-message-font-size: 28px; /* font_44:1200 size (from mobile DSL) */
    --recharge-pending-message-color: #666666; /* paint_1:599 / font_44:1200 */
    /* Button styles will use the defaults from .status-button or .primary-button if not specified in DSL for pending */
    --recharge-pending-button-primary-bg-color: #1a73e8; /* paint_44:1394 / 79:2805 (Done button in this DSL, using for Back to Home) */
    --recharge-pending-button-primary-text-color: #ffffff; /* paint_1:441 / font_79:1987 */
    --recharge-pending-button-font-family: "Source Han Sans", sans-serif; /* font_79:1987 family */
    --recharge-pending-button-font-size: 32px; /* font_79:1987 size */
    --recharge-pending-button-border-radius: 16px; /* 79:2805 borderRadius */
    /* Mobile Banner background */
    --recharge-m-banner-bg-url: url("../../images/hero/recharge-banner-mobile.png");
}

body {
    background-color: #f9f9f9; /* A light grey for the page background if needed */
    /* overflow-x: hidden; /* Prevent horizontal scrollbar - Moved to common.css body/html */
}

.recharge-page {
    width: 100%;
    max-width: 1920px; /* Corresponds to PC design width */
    margin: 0 auto;
}

.recharge-status-page {
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 60px;
    background-image: var( --recharge-banner-bg-url ); /* PC background by default */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* min-height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 226px)); */ /* Let content define height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recharge-banner {
    width: 100%;
    height: 320px; /* From PC DSL node 79:3243 height */
    background-image: var(--recharge-banner-bg-url);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--recharge-banner-text-color);
    text-align: center;
    margin-top: 80px;
}

    .recharge-banner .banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--recharge-banner-overlay-color);
        z-index: 1;
    }

    .recharge-banner .banner-content {
        position: relative;
        z-index: 2;
    }

    .recharge-banner h1 {
        font-family: var(--recharge-banner-font-family);
        font-size: var(--recharge-banner-font-size);
        font-weight: var(--recharge-banner-font-weight);
        line-height: var(--recharge-banner-line-height);
        margin: 0;
    }

.recharge-content-area {
    width: 100%;
    padding: 0 280px;
    background-color: #ffffff; /* Main content area background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.recharge-steps {
    display: flex;
    justify-content: space-around;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0; /* Separator */
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    opacity: 0.5;
}

    .step-item.active {
        opacity: 1;
    }

.step-number {
    width: 24px; /* From DSL node 79:3261 */
    height: 24px; /* From DSL node 79:3261 */
    background-color: var(--recharge-step-indicator-bg);
    color: var(--recharge-step-indicator-text-color);
    font-family: var(--recharge-step-font-family);
    font-size: var(--recharge-step-font-size); /* Adjusted to fit */
    font-weight: var(--recharge-step-font-weight);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px 8px 2px 2px; /* From DSL node 79:3261 */
    margin-right: 10px;
}

.step-title {
    color: var(--recharge-step-title-text-color);
    font-family: var(--recharge-step-font-family);
    font-size: var(--recharge-step-font-size);
    font-weight: var(--recharge-step-font-weight);
}

.recharge-form-section {
    padding: 20px 0;
}

    .recharge-form-section h2 {
        color: var(--recharge-section-title-color);
        font-family: var(--recharge-section-title-font-family);
        font-size: var(--recharge-section-title-font-size);
        margin-bottom: 20px;
        padding-left: 36px; /* To align with step number */
        position: relative;
    }

        .recharge-form-section h2::before {
            content: "";
            width: 24px;
            height: 24px;
            background-color: var(--recharge-step-indicator-bg);
            border-radius: 2px 8px 2px 2px;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--recharge-step-indicator-text-color);
            font-family: var(--recharge-step-font-family);
            font-size: var(--recharge-step-font-size);
            font-weight: var(--recharge-step-font-weight);
        }

.game-selection h2 {
    /*padding-left: 0;*/
}

    .game-selection h2::before {
        content: "1";
    }

.login-selection h2::before {
    content: "1"; /* Corresponds to step 2 */
}

.payment-method-selection h2::before {
    content: "2"; /* Corresponds to step 2 */
}

.top-up-amount-selection h2::before {
    content: "3"; /* Corresponds to step 3 */
}

.area-selection h2::before {
    content: "1"; /* Corresponds to step 2 */
}

.game-purdir-selection h2::before {
    content: "2"; /* Corresponds to step 2 */
}

.payment-dirpur-method-selection h2::before {
    content: "3"; /* Corresponds to step 2 */
}

.top-up-dirpur-amount-selection h2::before {
    content: "4"; /* Corresponds to step 3 */
}

top-up-amount-selection h2 {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
}

.top-up-amount-selection h2 a {
    display: flex;
    align-items: center;
    margin-left: 8px; 
    position: absolute;
    text-decoration: underline;
    right: 0px;
    color: var(--recharge-payment-option-text-color);
    font-weight: 500;
}

.top-up-amount-selection h2 svg {
    display: block;
    margin-right: 8px;
}

.login-prompt {
    background-color: #f4f4f4; /* DSL paint_44:1391 */
    padding: 20px;
    border-radius: 8px; /* DSL node 79:3016 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 400px;
}

    .login-prompt p {
        color: var(--recharge-login-prompt-text-color);
        font-family: var(--recharge-login-prompt-font-family);
        font-size: var(--recharge-login-prompt-font-size);
        margin: 0;
    }

.logged-in {
    background-color: transparent;
    border: 1px solid #e5e5e5;
}

.login-btn-recharge {
    background-color: var(--recharge-login-button-bg);
    color: var(--recharge-login-button-text-color);
    font-family: var(--recharge-login-button-font-family);
    font-size: var(--recharge-login-button-font-size);
    padding: 10px 25px; /* DSL node 79:3234 height 44px */
    border: none;
    border-radius: 8px; /* DSL node 79:3234 */
    cursor: pointer;
}
.login-out-btn {
    background-color: var(--recharge-login-button-bg);
    color: var(--recharge-login-button-text-color);
    font-family: var(--recharge-login-button-font-family);
    font-size: var(--recharge-login-button-font-size);
    padding: 10px 25px; /* DSL node 79:3234 height 44px */
    border: none;
    border-radius: 8px; /* DSL node 79:3234 */
    cursor: pointer;
}


.game-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

    .game-options .game-icon {
        width: 78px;
        height: 78px;
        margin-right: 24px;
        border-radius: 16px;
    }

.game-option {
    position: relative;
    border: 1px solid var(--recharge-payment-option-border-color); /* DSL stroke */
    border-radius: 16px; /* DSL node 79:3009 */
    padding: 15px;
    display: flex;
    align-items: center;
    width: calc(25% - 15px); /* Adjust for 4 items with gap, approximate */
    min-width: 200px; /* Minimum width before wrapping */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .game-option:hover,
    .game-option.selected {
        border-color: var(--recharge-selected-border-color);
        background-color: var(--recharge-selected-bg-color);
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
    }

    .game-option.selected {
        border-width: 2px;
    }

    .game-option .tip {
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 0px 16px 0px 16px;
        background: #f7981d;
        color: #fff;
        font-size: 12px;
        padding: 2px 12px;
    }

.game-selection,
.payment-method-selection,
.top-up-amount-selection {
    margin-bottom: 40px;
}

.payment-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.payment-option {
    border: 1px solid var(--recharge-payment-option-border-color); /* DSL stroke */
    border-radius: 16px; /* DSL node 79:3009 */
    padding: 15px;
    display: flex;
    align-items: center;
    width: calc(25% - 15px); /* Adjust for 4 items with gap, approximate */
    min-width: 340px; /* Minimum width before wrapping */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .payment-option:hover,
    .payment-option.selected {
        border-color: var(--recharge-selected-border-color);
        background-color: var(--recharge-selected-bg-color);
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
    }

    .payment-option.selected {
        border-width: 2px;
    }

        .payment-option.selected i {
            border: 2px solid #1a73e8;
        }

            .payment-option.selected i::after {
                content: "";
                width: 12px;
                height: 12px;
                background-color: #1a73e8;
                border-radius: 50%;
            }

    .payment-option i {
        min-width: 24px;
        height: 24px;
        border: 1px solid #e5e5e5;
        border-radius: 50%;
        margin-right: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.payment-icon {
    width: 48px; /* DSL frame 79:3010 */
    height: 48px; /* DSL frame 79:3010 */
    margin-right: 15px;
    object-fit: contain;
}

.payment-option span {
    color: var(--recharge-payment-option-text-color);
    font-family: var(--recharge-payment-option-font-family);
    font-size: var(--recharge-payment-option-font-size);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(200px, 1fr) ); /* Responsive grid */
    gap: 20px;
    padding-top:20px;
}

.top-up-card {
    border: 1px solid var(--recharge-topup-card-border-color);
    border-radius: 16px; /* DSL node 79:3072 */
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .top-up-card:hover {
        border-color: var(--recharge-selected-border-color);
        background-color: var(--recharge-selected-bg-color);
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
    }

    .top-up-card.selected {
        border-color: var(--recharge-selected-border-color);
        border-width: 2px; /* Thicker border for selected */
        border-style: solid;
        background-color: var(--recharge-selected-bg-color);
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.3);
    }

        .top-up-card.selected .price {
            background-color: var(--recharge-topup-card-selected-price-bg);
            color: var(--recharge-topup-card-selected-price-text-color);
        }

.discount-badge {
    position: absolute;
    top: -12px;
    right: -2px;
    /* background-color: var(--recharge-topup-card-discount-bg); */
    background: url("../../images/icons/discount.png") no-repeat;
    color: var(--recharge-topup-card-discount-text-color);
    font-family: var(--recharge-topup-card-discount-font-family);
    font-size: var(--recharge-topup-card-discount-font-size);
    line-height: 1;
    width: 88px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-icon {
    width: 80px; /* DSL node 79:3080 */
    height: 80px; /* DSL node 79:3080 */
    margin-bottom: 15px;
    /* background-image: var(--recharge-crystal-icon-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center; */
}

.crystal-amount {
    color: var(--recharge-topup-card-crystal-text-color);
    font-family: var(--recharge-topup-card-crystal-font-family);
    font-size: var(--recharge-topup-card-crystal-font-size);
    margin: 20px 0;
}

.price {
    color: var(--recharge-topup-card-price-text-color);
    font-family: var(--recharge-topup-card-price-font-family);
    font-size: var(--recharge-topup-card-price-font-size);
    background-color: #eaf3ff; /* Default, will be overridden by .selected */
    padding: 10px;
    border-radius: 16px; /* DSL node 79:3073 / 79:4166 */
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.recharge-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0; /* DSL node 79:3081 */
    margin-top: 30px;
}

.total-label {
    color: var(--recharge-summary-total-label-color);
    font-family: var(--recharge-summary-total-label-font-family);
    font-size: var(--recharge-summary-total-label-font-size);
    margin-right: 10px;
}

.total-amount {
    color: var(--recharge-summary-total-amount-color);
    font-family: var(--recharge-summary-total-amount-font-family);
    font-size: var(--recharge-summary-total-amount-font-size);
    font-weight: bold;
    margin-right: 20px;
}

.btn-buy-now {
    background-color: var(--recharge-summary-button-bg);
    color: var(--recharge-summary-button-text-color);
    font-family: var(--recharge-summary-button-font-family);
    font-size: var(--recharge-summary-button-font-size);
    line-height: var(--recharge-summary-button-line-height);
    padding: 15px 30px; /* DSL node 79:3015 height 56px */
    border: none;
    border-radius: 16px; /* DSL node 79:3015 */
    cursor: pointer;
}

.recharge-bg {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1;
}
/* Styles for Recharge Completed, Failed, Pending pages */
.recharge-status-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: calc( 100vh - var(--header-height, 80px) - var(--footer-height, 160px) - 80px ); /* Adjust 120px if banner is not present */
    background-color: var(--recharge-content-bg, #ffffff);
    max-width: 800px; /* Max width for the content box */
    margin: 120px auto 40px; /* Centering the box */
    border-radius: var(--recharge-container-border-radius, 12px);
    box-shadow: var(--recharge-container-shadow, 0 4px 20px rgba(0, 0, 0, 0.1));
    z-index: 3;
    width: 80%;
}

.recharge-completed-page .recharge-status-section {
    /* Specific adjustments if any for completed page layout */
}

.status-icon-container {
    margin-bottom: 30px;
    /* Ensure container itself does not cause undue expansion if SVG has relative sizes */
    line-height: 0; /* Helps contain inline-block or inline SVGs if they have line-height issues */
}

    .status-icon-container svg.status-icon {
        width: 128px !important; /* Base size, increased specificity and !important for testing */
        height: 128px !important;
        display: inline-block; /* Or block, depending on layout needs */
        max-width: 100%; /* Ensure it doesn't overflow its container if container is smaller */
        max-height: 100%;
    }

.recharge-status-section img {
    width: 128px;
    height: 128px;
}

.recharge-status-section .status-title {
    margin-bottom: 16px;
}

.recharge-status-section .status-button {
    width: 80%;
    max-width: 380px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    margin-top: 32px;
}

.recharge-status-section .status-message {
    color: #666;
    margin: 0;
}

.failure-icon-container .status-icon circle:first-of-type {
    fill: var(--recharge-failed-pc-icon-bg-color);
    opacity: var(--recharge-failed-pc-icon-bg-opacity);
}

.failure-icon-container .status-icon circle:last-of-type {
    fill: var(--recharge-failed-pc-icon-main-color);
}

.failure-icon-container .status-icon path {
    fill: var(--recharge-failed-pc-icon-cross-color);
}

.pending-icon-container .status-icon circle:first-of-type {
    fill: var(--recharge-pending-icon-bg-color);
    opacity: var(--recharge-pending-icon-bg-opacity);
}

.pending-icon-container .status-icon circle:last-of-type {
    fill: var(--recharge-pending-icon-main-color);
}

.pending-icon-container .status-icon path {
    fill: var(--recharge-pending-icon-symbol-color);
}

/* 下拉选择框 */
.custom-select {
    width: 400px;
    position: relative;
    user-select: none;
    font-size: 16px;
}

.custom-select-selected {
    display: flex;
    align-items: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fff;
    cursor: pointer;
}

.custom-select-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    margin-right: 4px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="black" stroke-width="2" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 5l6 6 6-6"/></svg>') no-repeat center/16px 12px;
    transition: transform 0.2s;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(-180deg);
}

.custom-select-selected .option-img,
.custom-select-options li .option-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 16px;
}

.custom-select-options {
    position: absolute;
    top: 66px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .custom-select-options li {
        display: flex;
        align-items: center;
        margin: 6px;
        padding: 8px 10px;
        cursor: pointer;
        transition: background 0.2s;
        border-radius: 16px;
    }

        .custom-select-options li.selected {
            background: linear-gradient(0deg, #e3efff, #e3efff), #f4f4f4;
            font-weight: bold;
            border: 1px solid #1a73e8;
        }

        .custom-select-options li:hover {
            background: linear-gradient(0deg, #e3efff, #e3efff), #f4f4f4;
        }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .payment-option,
    .game-option {
        width: calc(33.333% - 14px); /* 3 items */
    }

    .amount-options {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .recharge-content-area {
        padding: 0 15px;
    }

    .payment-option,
    .game-option {
        width: calc(50% - 10px); /* 2 items */
    }

    .recharge-banner h1 {
        font-size: calc(var(--recharge-banner-font-size) * 0.75); /* Scale down */
        line-height: calc(var(--recharge-banner-line-height) * 0.75);
    }
}

@media (max-width: 768px) {
    .recharge-status-page {
        background-image: var(--recharge-m-banner-bg-url); /* Mobile background */
        padding-top: 20px;
        padding-bottom: 40px;
        /* min-height: calc(100vh - var(--header-height-mobile, 60px) - var(--footer-height-mobile, 150px)); */
    }

    .recharge-banner {
        height: 250px;
    }

        .recharge-banner h1 {
            font-size: var(--recharge-m-title-font-size); /* Use mobile title size */
            line-height: 1.2;
        }

    .recharge-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .step-item {
        width: 100%;
    }

    .recharge-form-section h2,
    .login-prompt,
    .payment-method-selection,
    .top-up-amount-selection {
        margin-left: 0; /* Remove left margin for mobile */
    }

    .login-prompt {
        gap: 15px;
    }

    .payment-options {
        flex-direction: column;
    }

    .payment-option,
    .game-option {
        width: 100%;
    }

    .amount-options {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .top-up-card {
        padding: 15px;
    }

    .crystal-icon {
        width: 60px;
        height: 60px;
    }

    .total-label,
    .total-amount {
        text-align: center;
        margin: 0;
    }

    .status-icon-container svg.status-icon {
        width: 96px !important; /* Smaller icon for mobile, increased specificity */
        height: 96px !important;
    }

    .status-icon-container {
        margin-bottom: 20px;
        line-height: 0; /* Helps contain inline-block or inline SVGs if they have line-height issues */
    }
}

@media (max-width: 480px) {
    .login-prompt {
        width: 100%;
        padding: 10px;
    }

        .login-prompt p {
            font-size: 14px;
        }

    .login-btn-recharge {
        font-size: 14px;
        padding: 8px 20px;
    }

    .recharge-banner {
        margin-top: 60px;
    }

        .recharge-banner h1 {
            font-size: 24px;
        }

    .step-number {
        font-size: 16px; /* Adjust for smaller screens */
    }

    .step-title,
    .total-amount {
        font-size: 18px; /* Adjust for smaller screens */
    }

    .recharge-form-section h2,
    .recharge-form-section h2::before {
        font-size: 16px;
    }

    .top-up-amount-selection h2 a {
        font-size: 12px;
    }

    .top-up-amount-selection h2 svg {
        width: 20px;
    }
    .payment-option span,
    .crystal-amount,
    .price,
    .total-label,
    .btn-buy-now {
        font-size: 14px;
    }

    .recharge-status-section {
        padding: 30px 10px;
    }

    .status-icon-container svg.status-icon {
        width: 80px !important; /* Even smaller for very small screens, increased specificity */
        height: 80px !important;
    }

    .game-option {
        padding: 8px;
        border-radius: 8px;
    }

    .game-options .game-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .game-option .tip {
        border-radius: 0px 8px 0px 8px;
    }

    .payment-options {
        flex-direction: unset;
    }

    .payment-option {
        border-radius: 8px;
        width: calc(50% - 9px);
        min-width: 100%;
    }

        .game-option.selected,
        .payment-option.selected,
        .payment-option.selected i,
        .top-up-card.selected {
            border-width: 1px;
        }

    .payment-icon {
        width: 28px;
        height: 28px;
    }

    .payment-option i {
        min-width: 14px;
        height: 14px;
        margin-right: 12px;
    }

    .payment-option.selected i::after {
        width: 8px;
        height: 8px;
    }

    .top-up-card {
        border-radius: 8px;
    }

    .amount-options {
        gap: 20px 15px;
    }

    .discount-badge {
        width: 64px;
        height: 28px;
        background-size: 100% 100%;
        font-size: 12px;
    }

    .price {
        border-radius: 8px;
    }

    .top-up-amount-selection {
        margin-bottom: 0;
    }

    .recharge-summary {
        margin-top: 0;
        font-size: 14px;
        justify-content: flex-start;
    }

    .btn-buy-now {
        width: auto;
        padding: 10px 20px;
        border-radius: 8px;
        position: absolute;
        right: 15px;
    }

    .recharge-bg {
        display: none;
    }

    .recharge-status-section {
        width: 100%;
        border-radius: 0;
        margin: 0;
        margin-top: 60px;
        min-height: calc( 100vh - var(--header-height, 80px) - var(--footer-height, 137px) );
    }

        .recharge-status-section img {
            width: 99px;
            height: 99px;
        }
    /* Completed Page - Small Mobile */
    .recharge-completed-page .status-title {
        font-size: 20px;
    }

    .recharge-completed-page .status-message {
        font-size: 14px;
    }

    .recharge-completed-page .status-button {
        padding: 10px 25px;
        font-size: 16px;
        width: 80%;
        box-sizing: border-box;
    }

    /* Failed Page - Small Mobile */
    .recharge-failed-page .status-title {
        font-size: 20px;
    }

    .recharge-failed-page .status-message {
        font-size: 14px;
    }

    .recharge-failed-page .status-button {
        padding: 10px 25px;
        font-size: 16px;
        width: 80%;
        box-sizing: border-box;
    }

    /* Pending Page - Small Mobile */
    .recharge-pending-page .status-title {
        font-size: 20px;
    }

    .recharge-pending-page .status-message {
        font-size: 14px;
    }

    .recharge-pending-page .status-button {
        padding: 10px 25px;
        font-size: 16px;
        width: 80%;
        box-sizing: border-box;
    }

    /* 下拉选择框 */
    .custom-select {
        width: 100%;
        font-size: 14px;
    }

    .custom-select-selected {
        padding: 10px 12px;
    }

        .custom-select-selected .option-img,
        .custom-select-options li .option-img {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            margin-right: 12px;
        }

    .custom-select-options {
        top: 50px;
    }

        .custom-select-options li {
            margin: 4px;
            padding: 6px 8px;
            border-radius: 8px;
        }
    .loading {
        /* 加载状态样式 */
        background-color: #ccc; /* 灰色 */
        cursor: wait;
    }
}
