/* ============================================
   PicGallery Pro - VIP 购买界面样式
   ============================================ */

/* Purchase Options */
.pg-purchase-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
@media (max-width: 640px) {
    .pg-purchase-options { grid-template-columns: 1fr; }
}

.purchase-card {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.purchase-card.vip-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5f5 100%);
    border: 1px solid #fde68a;
}
.purchase-card.single-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
}

.purchase-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

.purchase-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

/* VIP Options */
.vip-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vip-option {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s;
    min-width: 120px;
}

.vip-option:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.15);
}

.vip-option.vip-recommend {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.vip-option .vip-badge-hot {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.vip-option .vip-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vip-option .vip-price {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 4px;
}

.vip-option .vip-desc {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* Single Purchase */
.single-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-points, .btn-cash {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s;
}

.btn-points {
    background: linear-gradient(135deg, #feca57, #f59e0b);
    color: #fff;
}
.btn-points:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254,202,87,0.4);
}

.btn-cash {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: #fff;
}
.btn-cash:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72,219,251,0.4);
}

.btn-points:disabled, .btn-cash:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* User VIP Status Badge */
.pg-user-vip-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}
.pg-user-vip-status.active {
    background: linear-gradient(135deg, #feca57, #ff9f43);
    color: #fff;
}
.pg-user-vip-status.expired {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Locked Image Placeholder */
.pg-locked-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
@media (max-width: 640px) {
    .pg-locked-images-grid { grid-template-columns: repeat(3, 1fr); }
}

.locked-image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
    position: relative;
}

.locked-image-placeholder::after {
    content: '🔒';
    position: absolute;
}

.locked-image-placeholder .locked-text {
    position: absolute;
    bottom: 8px;
    font-size: 10px;
    color: #64748b;
}

/* VIP Notice Enhanced */
.pg-vip-notice-enhanced {
    margin: 0 24px 24px;
    padding: 28px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5f5 100%);
    border-radius: 12px;
    border: 1px solid #fde68a;
    text-align: center;
}

.pg-vip-notice-enhanced .vip-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.pg-vip-notice-enhanced h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.pg-vip-notice-enhanced .vip-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
}

.pg-vip-notice-enhanced .stat-item {
    text-align: center;
}

.pg-vip-notice-enhanced .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
    display: block;
}

.pg-vip-notice-enhanced .stat-label {
    font-size: 12px;
    color: #64748b;
    display: block;
}

@media (max-width: 640px) {
    .pg-vip-notice-enhanced {
        margin: 0 16px 16px;
        padding: 20px;
    }
    .pg-vip-notice-enhanced .vip-stats {
        gap: 12px;
    }
    .pg-vip-notice-enhanced .stat-num {
        font-size: 22px;
    }
}

/* Loading Spinner */
.pg-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: pg-spin 1s linear infinite;
}
@keyframes pg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast */
.pg-toast-vip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 80%;
    text-align: center;
}
.pg-toast-vip.show { opacity: 1; }

/* Pay Notice */
.pg-pay-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px dashed #fca5a5;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    text-align: left;
    line-height: 1.7;
}
.pg-pay-notice strong {
    color: #ff6b6b;
}

/* Pay Dialog (cash order) */
.pg-pay-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.pg-pay-dialog-overlay.show {
    opacity: 1;
}
.pg-pay-dialog {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pg-pay-dialog h3 {
    font-size: 17px;
    color: #1e293b;
    margin-bottom: 14px;
}
.pg-pay-dialog-order {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 12px;
    white-space: pre-line;
}
.pg-pay-dialog-notice {
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 12px;
}
.pg-pay-dialog-tip {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 16px;
}
.pg-pay-dialog-close {
    display: inline-block;
    padding: 10px 32px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.pg-pay-dialog-close:hover {
    opacity: 0.9;
}

/* VIP Button Row */
.vip-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}
.vip-btn-row .btn-points,
.vip-btn-row .btn-cash {
    padding: 8px 16px;
    font-size: 12px;
}
