/* ==== PAY PAGE STYLES ==== */
#pay_mainblock {
    margin-top: 84px;
}
.pay_dashboard {
    display: flex;
    justify-content: center;
    color: #fff;
    font-family: "Inter", sans-serif;
    width: 100%;
}

.pay_container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    align-items: start;
}

/* ==== LEFT COLUMN - PACKAGES ==== */
.pay_packages_section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pay_packages_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pay_package_card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 16px;
    border: 1px solid rgba(234, 236, 239, 0.08);
    background: var(--Graphite-Gray, #1e2329);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pay_package_card:hover {
    border-color: rgba(240, 137, 11, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pay_package_card.beige {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 46, 0.15) 0%,
        rgba(30, 35, 41, 1) 100%
    );
    border-color: rgba(240, 137, 11, 0.2);
}

.pay_discount_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-radius: 32px;
    background: var(--Emerald-Neon, #00f0b5);
    backdrop-filter: blur(28px);
    color: var(--Night-Black, #0b0e11);
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 133.333% */
    z-index: 2;
}

.pay_package_icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.pay_package_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(240, 137, 11, 0.2));
}

.pay_package_title {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
}

.pay_package_price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pay_package_price_current {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 32px;
    background: rgba(240, 137, 11, 0.16);
    backdrop-filter: blur(28px);
    color: var(--Binance-Yellow, #f0890b);
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 133.333% */
}

.pay_package_price_old {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: line-through;
}

/* ==== RIGHT COLUMN - PAYMENT METHOD ==== */
.pay_method_section {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(234, 236, 239, 0.08);
    background: var(--Graphite-Gray, #1e2329);
}

.pay_method_header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pay_method_title {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.pay_method_subtitle {
    color: var(--Muted-Gray, #8b949e);
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.pay_method_logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.pay_method_logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pay_method_logos a:hover {
    transform: scale(1.1);
}

.pay_method_logos img {
    max-width: 100%;
    height: auto;
    filter: brightness(1);
    transition: filter 0.2s ease;
}

.pay_method_logos a:hover img {
    filter: brightness(1.2);
}

.pay_continue_button {
    display: flex;
    height: 48px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 32px;
    border: none;
    background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.04) 100%
        ),
        #1e2329;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px #1e2329,
        0 0 1px 1.5px rgba(0, 0, 0, 0.24), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay_continue_button:hover {
    background: linear-gradient(90deg, #f0890b 0%, #ff3358 100%);
    box-shadow: 0 8px 24px rgba(240, 137, 11, 0.3);
}

.pay_continue_button:active {
    transform: translateY(0);
}

.pay_continue_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.pay_continue_button:disabled:hover {
    background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.04) 100%
        ),
        #1e2329;
    transform: none;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ==== SELECTED STATE ==== */
.pay_package_card.selected {
    border-radius: 16px;
    border: 1px solid var(--Linear-Gradient, #f0890b);
    background: linear-gradient(
        90deg,
        rgba(240, 137, 11, 0.08) 0%,
        rgba(255, 51, 88, 0.08) 100%
    );
}

.pay_package_card.selected::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0890b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.3333 4L6 11.3333L2.66667 8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ==== RESPONSIVE STYLES ==== */

/* Large tablets and small desktops (1024px - 1199px) */
@media (max-width: 1199px) {
    .pay_container {
        grid-template-columns: 1fr 350px;
        gap: 20px;
    }

    .pay_packages_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .pay_package_card {
        padding: 20px 12px;
    }

    .pay_package_icon {
        width: 170px;
        height: 170px;
    }

    .pay_method_section {
        padding: 20px;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .pay_container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pay_packages_grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pay_method_section {
        position: relative;
        top: 0;
    }

    .pay_package_card {
        padding: 16px 12px;
        gap: 8px;
    }

    .pay_package_icon {
        width: 170px;
        height: 170px;
        margin-bottom: 4px;
    }

    .pay_package_title {
        font-size: 14px;
        line-height: 20px;
    }

    .pay_package_price_current {
        font-size: 18px;
        line-height: 24px;
    }

    .pay_package_price_old {
        font-size: 12px;
        line-height: 18px;
    }

    .pay_discount_badge {
        width: 36px;
        height: 36px;
        font-size: 11px;
        top: 8px;
        left: 8px;
    }
}

/* Mobile landscape and large phones (481px - 767px) */
@media (max-width: 767px) {
    .pay_dashboard {
        padding: 0 12px;
    }

    .pay_container {
        gap: 20px;
    }

    .pay_packages_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pay_package_card {
        padding: 16px 8px;
        gap: 8px;
    }

    .pay_package_icon {
        width: 150px;
        height: 150px;
    }

    .pay_package_title {
        font-size: 13px;
        line-height: 18px;
    }

    .pay_package_price_current {
        font-size: 16px;
        line-height: 22px;
    }

    .pay_package_price_old {
        font-size: 11px;
        line-height: 16px;
    }

    .pay_discount_badge {
        width: 32px;
        height: 32px;
        font-size: 10px;
        top: 6px;
        left: 6px;
    }

    .pay_method_section {
        padding: 20px;
    }

    .pay_method_title {
        font-size: 18px;
        line-height: 24px;
    }

    .pay_method_subtitle {
        font-size: 13px;
        line-height: 19px;
    }

    .pay_method_logos {
        padding: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .pay_continue_button {
        height: 44px;
        font-size: 13px;
    }
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .pay_dashboard {
        padding: 0 8px;
    }

    .pay_container {
        gap: 16px;
    }

    .pay_packages_section {
        gap: 16px;
    }

    .pay_packages_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pay_package_card {
        padding: 12px 8px;
        gap: 6px;
    }

    .pay_package_icon {
        width: 120px;
        height: 120px;
    }

    .pay_package_title {
        font-size: 12px;
        line-height: 16px;
    }

    .pay_package_price_current {
        font-size: 15px;
        line-height: 20px;
    }

    .pay_package_price_old {
        font-size: 10px;
        line-height: 14px;
    }

    .pay_discount_badge {
        width: 28px;
        height: 28px;
        font-size: 9px;
        top: 4px;
        left: 4px;
    }

    .pay_method_section {
        padding: 16px;
        gap: 20px;
    }

    .pay_method_title {
        font-size: 16px;
        line-height: 22px;
    }

    .pay_method_subtitle {
        font-size: 12px;
        line-height: 18px;
    }

    .pay_method_logos {
        padding: 12px;
        gap: 8px;
    }

    .pay_method_logos img {
        max-width: 180px;
    }

    .pay_continue_button {
        height: 40px;
        padding: 0 20px;
        font-size: 12px;
    }
}

/* Extra small mobile (max 360px) */
@media (max-width: 360px) {
    .pay_packages_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pay_package_card {
        padding: 10px 6px;
    }

    .pay_package_icon {
        width: 100px;
        height: 100px;
    }

    .pay_package_title {
        font-size: 11px;
        line-height: 14px;
    }

    .pay_package_price_current {
        font-size: 14px;
        line-height: 18px;
    }

    .pay_method_section {
        padding: 12px;
    }

    .pay_method_logos img {
        max-width: 180px;
    }
}
