.affiliate-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.affiliate-dashboard .stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.affiliate-dashboard .stat-card:hover { transform: translateY(-5px); }

.affiliate-dashboard .stat-card h3 {
    font-size: 14px !important;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.affiliate-dashboard .stat-card .value {
    font-size: 36px;
    color: #333;
    font-weight: bold;
}

.affiliate-dashboard .stat-card.primary {
    background: #e12f6c;
    color: white;
}

.affiliate-dashboard .stat-card.primary .value { color: white; }

.affiliate-dashboard .section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.affiliate-dashboard .section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.affiliate-dashboard .referral-link-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.affiliate-dashboard .referral-link-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.affiliate-dashboard .copy-button {
    background: #e12f6c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.affiliate-dashboard .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.affiliate-dashboard .data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.affiliate-dashboard .data-table th,
.affiliate-dashboard .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.affiliate-dashboard .data-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #666;
}

.affiliate-dashboard .data-table tr:hover { background: #f9f9f9; }

.affiliate-dashboard .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.affiliate-dashboard .status-paid { background: #10b981; color: white; }
.affiliate-dashboard .status-unpaid { background: #f59e0b; color: white; }

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

.affiliate-dashboard .load-more {
    text-align: center;
    margin-top: 20px;
}

.affiliate-dashboard .load-more a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.affiliate-dashboard .load-more a:hover { text-decoration: underline; }

.affiliate-dashboard .pagination {
    text-align: center;
    margin-top: 20px;
}

.affiliate-dashboard .pagination a,
.affiliate-dashboard .pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #667eea;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    display: inline-block;
}

.affiliate-dashboard .pagination span.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.affiliate-dashboard .pagination a:hover { background: #f5f5f5; }

.affiliate-dashboard .loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .affiliate-dashboard { padding: 15px; }
    .affiliate-dashboard .stats-grid { grid-template-columns: 1fr; }
    .affiliate-dashboard .referral-link-box { flex-direction: column; }
    .affiliate-dashboard .copy-button { width: 100%; }
}
