/* 兑换券解锁弹窗样式 */
.coupon-redemption-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.coupon-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: couponModalSlideIn 0.3s ease-out;
}

@keyframes couponModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.coupon-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.coupon-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.coupon-modal-close:hover {
    color: #333;
}

.coupon-modal-body {
    padding: 20px;
}

/* 确认兑换区域 */
.modal-section.confirm-redeem {
    padding: 15px;
    background-color: #f0f9ff;
    border-radius: 8px;
}

.coupon-balance {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.balance-count {
    color: #16a34a;
    font-weight: 600;
    font-size: 18px;
}

.text-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
    text-decoration: underline;
}

.text-btn:hover {
    color: #1d4ed8;
}

.confirm-text {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* 底部按钮区域 */
.coupon-modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px 20px;
}

.confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.confirm-btn:active {
    transform: translateY(0);
}

.confirm-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-loading i {
    margin-right: 5px;
}