/* Elite Discount Badge */
.elite-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Terms Popup */
.wc-elite-terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wc-elite-terms-modal {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.wc-elite-terms-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.wc-elite-terms-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.wc-elite-terms-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    color: #000000;
}

.wc-elite-terms-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.wc-elite-terms-button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.wc-elite-terms-button.accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wc-elite-terms-button.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wc-elite-terms-button.decline {
    background: #6c757d;
    color: white;
}

.wc-elite-terms-button.decline:hover {
    background: #5a6268;
}

/* My Account Elite Profile */
.woocommerce-MyAccount-content .elite-profile-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.elite-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 30px -30px;
}

.elite-profile-header h2 {
    color: white;
    margin: 0;
}

.elite-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.elite-info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.elite-info-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.elite-info-value {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}

.elite-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.elite-details-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    width: 30%;
}

.elite-details-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .elite-info-grid {
        grid-template-columns: 1fr;
    }
    
    .elite-details-table th,
    .elite-details-table td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .elite-details-table th {
        background: #f8f9fa;
        font-weight: bold;
    }
    
    .wc-elite-terms-modal {
        width: 95%;
    }
    
    .wc-elite-terms-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .wc-elite-terms-button {
        width: 100%;
        margin: 5px 0;
    }
}