.vip-modal-mask,
.vip-pay-mask,
.vip-success-mask {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(73, 94, 125, 0.18);
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.vip-modal-mask.is-open,
.vip-pay-mask.is-open,
.vip-success-mask.is-open {
    display: flex;
}

.vip-modal {
    width: min(1180px, 96vw);
    min-height: 560px;
    background: linear-gradient(135deg, #edf4ff 0%, #ffffff 55%, #f6fbff 100%);
    border: 1px solid #4477c9;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 26px 28px 22px;
    position: relative;
    color: #2f5fae;
}

.vip-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #4477c9;
    color: #fff;
    font-size: 28px;
    line-height: 42px;
    cursor: pointer;
}

.vip-limit-message {
    width: 84%;
    margin: 0 auto 20px;
    min-height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7f22;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.vip-title-line {
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7f22;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 26px;
    position: relative;
}

.vip-title-line::before,
.vip-title-line::after {
    content: "------------------------------";
    color: #ff7f22;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 8px;
}

.vip-card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.vip-card {
    position: relative;
    min-height: 230px;
    border: 1px solid #4477c9;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    padding: 12px 14px 10px;
    color: #2f5fae;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

.vip-card:hover,
.vip-card.is-selected {
    box-shadow: 0 0 0 2px rgba(68, 119, 201, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.vip-card-title,
.vip-card-valid,
.vip-card-price,
.vip-card-desc {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    padding: 8px 6px;
}

.vip-card-title {
    font-size: 22px;
    font-weight: 800;
}

.vip-card-valid {
    color: #777;
    font-size: 17px;
    font-weight: 700;
}

.vip-card-price {
    color: #2f5fae;
    font-size: 24px;
    font-weight: 800;
    margin-top: 18px;
}

.vip-card-desc {
    margin-top: 34px;
    border-top: 1px dashed #ff9c4c;
    color: #2f66d1;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.vip-card-red {
    color: #f00 !important;
}

.vip-card-title-red {
    color: #f00;
}

.vip-card-check {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 42px;
    background: #ef3340;
    color: #fff;
    font-size: 34px;
    line-height: 42px;
    font-weight: 800;
}

.vip-note {
    margin: 30px auto 14px;
    text-align: center;
    color: #777;
    font-size: 22px;
    font-weight: 800;
}

.vip-actions,
.vip-pay-actions {
    display: flex;
    justify-content: center;
    gap: 120px;
    align-items: center;
}

.vip-cancel-btn,
.vip-open-btn {
    min-width: 210px;
    height: 46px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.vip-cancel-btn {
    border: 1px solid #4477c9;
    background: rgba(255, 255, 255, 0.6);
    color: #777;
}

.vip-open-btn {
    border: 0;
    background: #70b344;
    color: #000;
}

.vip-open-btn:disabled,
.vip-cancel-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vip-pay-modal {
    width: min(760px, 92vw);
    min-height: 560px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    padding: 28px 34px;
    box-sizing: border-box;
    color: #333;
}

.vip-pay-title {
    text-align: center;
    font-size: 26px;
    color: #ff7f22;
    font-weight: 800;
    margin-bottom: 34px;
}

.vip-pay-qrcode-row {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-bottom: 26px;
}

.vip-pay-qrcode-box {
    width: 260px;
    text-align: center;
}

.vip-pay-qrcode {
    width: 260px;
    height: 260px;
    background: #f7f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.vip-pay-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vip-pay-text {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
}

.vip-pay-amount {
    text-align: center;
    color: #7a8ca5;
    font-size: 18px;
    margin: 18px 0;
}

.vip-pay-amount strong {
    color: #ff3131;
    font-size: 32px;
}

.vip-pay-note {
    text-align: center;
    color: #93a1b4;
    font-size: 15px;
    margin-bottom: 22px;
}

.vip-success-modal {
    width: min(620px, 90vw);
    height: 290px;
    border: 1px solid #4477c9;
    border-radius: 8px;
    background: linear-gradient(135deg, #edf4ff 0%, #ffffff 60%, #f6fbff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-success-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 42px;
    background: #4477c9;
    border: 0;
    border-radius: 0 8px 0 8px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.vip-success-text {
    color: #3c68b5;
    font-size: 30px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .vip-card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .vip-pay-qrcode-row {
        flex-direction: column;
        align-items: center;
    }

    .vip-actions,
    .vip-pay-actions {
        gap: 20px;
        flex-direction: column;
    }
}