/* Referrals Page Styles */

.referrals-container {
    min-height: calc(100vh - 80px);
    padding-top: 120px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.earnings {
    background: linear-gradient(135deg, #00B894, #00D4AA);
}

.stat-icon.active {
    background: linear-gradient(135deg, #74B9FF, #0984E3);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #FDCB6E, #E17055);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Referral Link Card */
.referral-link-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.referral-link-card h4 {
    font-weight: 700;
    color: var(--text-dark);
}

.referral-link-card .form-control {
    border-radius: 15px 0 0 15px;
    border: 2px solid #E9ECEF;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.referral-link-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.btn-copy {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 0 15px 15px 0;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    color: white;
}

.referral-code {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E9ECEF;
    color: var(--text-light);
}

.referral-code strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Commission Card */
.commission-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.commission-card h4 {
    font-weight: 700;
    color: var(--text-dark);
}

.commission-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-gradient-start), white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.commission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.commission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.commission-item h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.commission-rate {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.commission-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Referral Tree */
.tree-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tree-card h4 {
    font-weight: 700;
    color: var(--text-dark);
}

.referral-tree {
    padding: 2rem 0;
}

.tree-level {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tree-node {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    position: relative;
}

.tree-node::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--primary-color);
}

.tree-level:last-child .tree-node::after {
    display: none;
}

.tree-node .node-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tree-node .node-earnings {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .commission-rate {
        font-size: 2rem;
    }
}






