/* =========================================================
   PROFILE EARNINGS PAGE
========================================================= */

.profile-earnings-page {
    padding: 40px 0 64px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.04), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.profile-earnings-page .container {
    width: min(100% - 40px, 1400px);
    margin-inline: auto;
}

.profile-earnings-page .profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.profile-earnings-page .card {
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.profile-earnings-page .card__body {
    padding: 24px;
    overflow-x: auto;
}

.profile-earnings-page .card__body h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.profile-earnings-page .profile-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.profile-earnings-page .profile-list li {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.7;
}

.profile-earnings-page .profile-list strong {
    color: #0f172a;
    font-weight: 800;
}

.profile-earnings-page .admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.profile-earnings-page .admin-table thead th {
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
}

.profile-earnings-page .admin-table thead th:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 14px;
}

.profile-earnings-page .admin-table thead th:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 14px;
}

.profile-earnings-page .admin-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.6;
    background: #ffffff;
    vertical-align: top;
}

.profile-earnings-page .admin-table tbody tr td:first-child {
    border-left: 1px solid #e2e8f0;
}

.profile-earnings-page .admin-table tbody tr td:last-child {
    border-right: 1px solid #e2e8f0;
}

.profile-earnings-page .admin-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.profile-earnings-page .admin-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

@media (max-width: 768px) {
    .profile-earnings-page {
        padding: 24px 0 48px;
    }

    .profile-earnings-page .container {
        width: min(100% - 24px, 1400px);
    }

    .profile-earnings-page .card__body {
        padding: 18px;
    }
}
