/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

.referral-dashboard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.referral-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.referral-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.referral-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.referral-input-group {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.referral-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.referral-input:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.copy-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #27ae60;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}



.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.referral-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referral-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.referral-item:hover {
    background: #e3f2fd;
    transform: translateX(4px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.user-email {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .referral-dashboard {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
}
/* Products Container */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image.mens-pack {
    background-image: url('https://logowebservices.com/mlm/wp-content/uploads/2025/08/man.jpg');
}

.product-image.womens-pack {
    background-image: url('https://logowebservices.com/mlm/wp-content/uploads/2025/08/woman.jpg');
}

/* Overlay for better text visibility */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

/* Product Content */
.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5568;
    margin: 0 0 1.5rem 0;
}

.product-price::before {
    content: "$";
    font-size: 1rem;
    vertical-align: super;
    margin-right: 2px;
}

/* Order Button */
.order-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.order-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

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

/* Login Message */
.login-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 500px;
    margin: 2rem auto;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Animation for button click */
@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.order-btn.ordering {
    animation: buttonClick 0.3s ease;
    background: #2d74b5;
}
/* Referral Earnings Container */
.referral-earnings {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.referral-earnings h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

/* Earnings Table */
.earnings-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    background: white;
}

.earnings-table th {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.earnings-table tr:last-child td {
    border-bottom: none;
}

.earnings-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.earnings-table tr:hover {
    background-color: #f1f5f9;
}

/* Specific column styling */
.earnings-table td:nth-child(1) { /* Order ID */
    color: #4299e1;
    font-weight: 600;
}

.earnings-table td:nth-child(3) { /* Level */
    text-align: center;
}

.earnings-table td:nth-child(4) { /* Amount */
    color: #38a169;
    font-weight: 700;
    text-align: right;
}

.earnings-table td:nth-child(5) { /* Date */
    color: #718096;
    font-size: 0.9rem;
}

/* Summary Cards */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-left: 4px solid #4299e1;
}

.summary-card.total {
    border-left-color: #38a169;
}

.summary-card h4 {
    margin: 0 0 0.5rem 0;
    color: #718096;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.summary-card .amount::before {
    content: "$";
    font-size: 1rem;
    vertical-align: super;
    margin-right: 2px;
}

/* Empty State */
.earnings-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.earnings-empty p {
    font-size: 1.2rem;
    color: #a0aec0;
    margin: 0 0 1.5rem 0;
}

.earnings-empty .icon {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

/* Login Message */
.earnings-login-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 500px;
    margin: 2rem auto;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .earnings-table {
        display: block;
        overflow-x: auto;
    }
    
    .earnings-table th,
    .earnings-table td {
        padding: 0.75rem;
    }
    
    .earnings-summary {
        grid-template-columns: 1fr;
    }
    
    .referral-earnings {
        padding: 0.5rem;
    }
    
    .referral-earnings h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .referral-earnings {
        max-width: 100%;
        padding: 0;
    }
    
    .earnings-table {
        box-shadow: none;
    }
    
    .earnings-summary {
        page-break-inside: avoid;
    }
}



/* Withdrawal Container */
.withdrawal-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.balance-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.balance-amount::before {
    content: "$";
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 4px;
}

/* Messages */
.withdrawal-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.withdrawal-message.error {
    background-color: #fed7d7;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.withdrawal-message.success {
    background-color: #c6f6d5;
    color: #2f855a;
    border-left: 4px solid #2f855a;
}

/* Withdrawal Form */
.withdrawal-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.withdrawal-form h4 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.minimum-notice {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #744210;
}

.minimum-notice h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

/* Withdrawal History */
.withdrawal-history {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.withdrawal-history h4 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Table Styling */
.withdrawal-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.withdrawal-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.withdrawal-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.withdrawal-table tr:last-child td {
    border-bottom: none;
}

.withdrawal-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.withdrawal-table tr:hover {
    background-color: #f1f5f9;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fefcbf;
    color: #744210;
}

.status-approved {
    background: #c6f6d5;
    color: #2f855a;
}

.status-rejected {
    background: #fed7d7;
    color: #c53030;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .withdrawal-container {
        padding: 0.5rem;
    }
    
    .balance-card {
        padding: 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .withdrawal-form,
    .withdrawal-history {
        padding: 1.5rem;
    }
    
    .withdrawal-table {
        display: block;
        overflow-x: auto;
    }
    
    .withdrawal-table th,
    .withdrawal-table td {
        padding: 0.75rem;
    }
}

/* Animation for form submission */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.submitting {
    animation: pulse 0.5s ease;
}


/*admin*/
