/* =========================
   Affiliate Dashboard Base
========================= */
.wca-dashboard {
    max-width: 1200px;
    margin: 60px auto;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #111;
}

/* =========================
   Cards
========================= */
.wca-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* =========================
   Header Card Layout
========================= */
.wca-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* =========================
   Profile Section
========================= */
.wca-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wca-avatar img {
    border-radius: 50%;
    border: 3px solid #f4c400;
}

.wca-profile-details h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.wca-profile-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

/* Active badge */
.wca-badge.active {
    background: #000;
    color: #f4c400;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* =========================
   Stats Section
========================= */
.wca-header-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    min-width: 420px;
}

.wca-stat-item {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
}

.wca-stat-item .label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wca-stat-item .value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* =========================
   Section Headings
========================= */
.wca-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.wca-card h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f4c400;
    display: block;
    margin-top: 8px;
}

/* =========================
   Tables
========================= */
.wca-div-table {
    overflow-x: auto;
}

.wca-table {
    width: 100%;
    border-collapse: collapse;
}

.wca-table thead th {
    background: #000;
    color: #fff;
    text-align: left;
    padding: 14px;
    font-size: 14px;
}

.wca-table tbody td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wca-table tbody tr:hover {
    background: #fafafa;
}

/* =========================
   Referral Input
========================= */
.wca-copy-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #f9f9f9;
    cursor: text;
}

/* =========================
   Buttons
========================= */
.wca-btn-small {
    display: inline-block;
    background: #000;
    color: #f4c400;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wca-btn-small:hover {
    background: #f4c400;
    color: #000;
}

/* =========================
   Empty State
========================= */
.wca-table tbody td[colspan] {
    text-align: center;
    padding: 30px;
    color: #777;
    font-style: italic;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
    .wca-report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wca-header-stats {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wca-header-stats {
        grid-template-columns: 1fr;
    }
}