﻿.pricing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pricing-header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pricing-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.pricing-header p {
    color: #666;
    font-size: 16px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.points-display {
    background: var(--color-primary-gradient);
    color: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(45, 106, 79, 0.3);
}

.points-info {
    display: flex;
    flex-direction: column;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.points-value {
    font-size: 36px;
    font-weight: bold;
}

.points-icon {
    font-size: 48px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(45, 106, 79, 0.2);
    border-color: var(--color-primary);
}

.package-card.popular {
    border-color: var(--color-primary);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.package-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.package-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.package-points {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.package-points-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.package-price {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.package-price span {
    font-size: 16px;
    color: #666;
}

.package-currency {
    font-size: 14px;
    color: #999;
}

.payment-history-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.payment-history-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 14px;
}

.refresh-btn:hover {
    text-decoration: underline;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-points {
    font-weight: bold;
    color: #333;
}

.history-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.history-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.history-status.completed {
    background: #d4edda;
    color: #28a745;
}

.history-status.pending {
    background: #fff3cd;
    color: #856404;
}

.history-status.failed {
    background: #f8d7da;
    color: #dc3545;
}

.pricing-footer {
    text-align: center;
    padding: 20px;
    color: #333;
    font-size: 14px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

.customer-service {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.cs-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cs-qr img {
    width: 140px;
    height: 140px;
    border-radius: 6px;
}

.cs-qr-caption {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.cs-qr-note {
    font-size: 13px;
    color: #333;
    margin: 0;
}

.cs-qr-note strong {
    color: #d6336c;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.payment-modal-header {
    background: var(--color-primary-gradient);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.payment-modal-body {
    padding: 30px;
    text-align: center;
}

.pay-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.pay-method-btn.paypal {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
}

.pay-method-btn.alipay {
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: white;
}

.pay-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cancel-btn {
    background: #e0e0e0;
    color: #666;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 600px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .points-display {
        flex-direction: column;
        text-align: center;
    }
    
    .points-icon {
        margin-top: 15px;
    }
}
