.referral-section {
    padding: 80px 0;
}
.referral-flow {
    margin-bottom: 40px;
}
.flow-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}
.flow-card:hover {
    border-color: rgba(102,126,234,0.3);
    transform: translateY(-4px);
}
.flow-step {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102,126,234,0.15);
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}
.flow-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}
.flow-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.flow-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}
.referral-benefits-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px;
}
.commission-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
.commission-table thead th {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.commission-table thead th:first-child {
    text-align: left;
}
.commission-table thead th small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255,255,255,0.3);
}
.commission-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease;
}
.commission-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.commission-table tbody td {
    padding: 14px 16px;
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}
.commission-table tbody td:first-child {
    text-align: left;
}
.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}
.rate-cell {
    font-weight: 700;
    font-size: 1rem;
}
.rate-primary { color: #667eea; }
.rate-secondary { color: #7c9cff; }
.rate-tertiary { color: #93afff; }
.recurring-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.recurring-badge.yes {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}
.recurring-badge.no {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary-modern:hover {
    background: #5a6fd6;
    color: #ffffff;
    gap: 12px;
}
@media (max-width: 991px) {
    .referral-section {
        padding: 50px 0;
    }
    .referral-benefits-box {
        padding: 24px 16px;
    }
    .flow-card {
        padding: 22px 16px;
    }
}

@media (max-width: 576px) {
    .referral-section {
        padding: 36px 0;
    }
    .super-app-title {
        font-size: 1.5rem;
    }
    .section-description {
        font-size: 0.9rem;
    }
    .flow-card {
        padding: 20px 14px;
    }
    .flow-step {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .flow-icon {
        font-size: 1.6rem;
    }
    .flow-title {
        font-size: 0.9rem;
    }
    .flow-desc {
        font-size: 0.78rem;
    }
    .referral-benefits-box {
        padding: 16px 12px;
        border-radius: 14px;
    }
    .referral-benefits-box h3 {
        font-size: 1.15rem;
    }
    .referral-benefits-box > p {
        font-size: 0.82rem;
    }
    .btn-primary-modern {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .commission-table thead { display: none; }
    .commission-table tbody tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .commission-table tbody tr:first-child {
        padding-top: 0;
    }
    .commission-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        text-align: right;
        font-size: 0.82rem;
    }
    .commission-table tbody td:first-child {
        text-align: left;
        padding-bottom: 8px;
    }
    .commission-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        color: rgba(255,255,255,0.4);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .service-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
        gap: 6px;
    }
    .rate-cell {
        font-size: 0.9rem;
    }
    .recurring-badge {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
}
