.purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.purchase-modal-container {
    /*position: fixed;*/
    /*top: 20px;*/
    width: 90%;
    max-width: 500px;
    /*background: linear-gradient(145deg, #0a0a0a, #1a1a1a);*/
    background: var(--popup-bg);
    border-radius: 16px;
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* 紫色光效边框 */
.purchase-modal-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
    #8a2be2, #9370db, #8a2be2, #9370db,
    #8a2be2, #9370db, #8a2be2);
    background-size: 400%;
    border-radius: 18px;
    z-index: -1;
    animation: purchase-modal-borderGlow 8s linear infinite;
}

.purchase-modal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 16px;
    z-index: -1;
}

@keyframes purchase-modal-borderGlow {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.purchase-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.purchase-modal-sparkle-icon {
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
    animation: purchase-modal-sparkle 2s infinite alternate;
}

@keyframes purchase-modal-sparkle {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    }
    100% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    }
}

.purchase-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    /*background: linear-gradient(90deg, #8a2be2, #9370db);*/
    background: var(--primary-btn-bg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.purchase-modal-subtitle {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 5px;
}

.purchase-modal-step-container {
    margin-bottom: 20px;
}

.purchase-modal-step {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    /*border-left: 3px solid #8a2be2;*/
    border-left: 3px solid var(--theme-color);
    transition: all 0.3s ease;
}

.purchase-modal-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

.purchase-modal-step-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.purchase-modal-step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    /*background: linear-gradient(135deg, #8a2be2, #9370db);*/
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text-color);
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

.purchase-modal-step-text {
    font-size: 18px;
    font-weight: 500;
}

.purchase-modal-step-description {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.purchase-modal-btn {
    display: inline-block;
    padding: 12px 24px;
    /*background: linear-gradient(135deg, #8a2be2, #9370db);*/
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.purchase-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.purchase-modal-btn:active {
    transform: translateY(0);
}

.purchase-modal-btn-full {
    width: 100%;
}

.purchase-modal-input-group {
    margin-bottom: 15px;
}

.purchase-modal-input-field {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(40, 40, 40, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.purchase-modal-input-field:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.purchase-modal-redeem-btn {
    margin-top: 10px;
}

.purchase-modal-close-btn {
    z-index: 1;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.purchase-modal-close-btn:hover {
    color: #8a2be2;
}

.purchase-modal-word-count-info {
    text-align: center;
    /*margin-top: 10px;*/
    font-size: 14px;
    color: #aaa;
}

.purchase-modal-word-count {
    /*color: #8a2be2;*/
    color: var(--theme-color);
    font-weight: bold;
}