.earnings-page,
.earnings-page * {
    box-sizing: border-box;
    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.earnings-page {
    min-height: 100vh;
    padding: 96px 16px 110px;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(220, 38, 38, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 94% 24%,
            rgba(15, 23, 42, 0.07),
            transparent 30%
        ),
        #f4f6fb;
    color: #0f172a;
}

.earnings-shell {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.earnings-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.earnings-back-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.earnings-back-btn ion-icon {
    font-size: 22px;
}

.earnings-header-copy {
    min-width: 0;
}

.earnings-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.earnings-header-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.15;
}

.earnings-header-copy p {
    max-width: 660px;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.earnings-header-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.earnings-header-icon ion-icon {
    font-size: 28px;
}

.earnings-hero-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 94% 5%,
            rgba(255, 255, 255, 0.16),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e293b 56%,
            #dc2626 150%
        );
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.earnings-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.earnings-balance-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
}

.earnings-main-balance {
    display: block;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.earnings-balance-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.earnings-balance-icon ion-icon {
    font-size: 28px;
}

.earnings-hero-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.earnings-hero-footer > div {
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.earnings-hero-footer span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.earnings-hero-footer strong {
    color: #ffffff;
    font-size: 17px;
}

.earnings-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.earnings-stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.055);
}

.earnings-stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.earnings-stat-icon ion-icon {
    font-size: 22px;
}

.earnings-stat-icon.pending {
    color: #b45309;
    background: #fff7ed;
}

.earnings-stat-icon.lifetime {
    color: #047857;
    background: #ecfdf5;
}

.earnings-stat-icon.successful {
    color: #1d4ed8;
    background: #eff6ff;
}

.earnings-stat-icon.commission {
    color: #dc2626;
    background: #fef2f2;
}

.earnings-stat-card div {
    min-width: 0;
}

.earnings-stat-card span:not(.earnings-stat-icon) {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.earnings-stat-card strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earnings-section-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.earnings-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.earnings-section-heading > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
}

.earnings-section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fef2f2;
    color: #dc2626;
}

.earnings-section-icon ion-icon {
    font-size: 21px;
}

.earnings-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
}

.earnings-section-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.earnings-status-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.earnings-status-pill.eligible {
    color: #047857;
    background: #ecfdf5;
}

.earnings-status-pill.pending {
    color: #b45309;
    background: #fff7ed;
}

.earnings-requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.earnings-requirement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #f8fafc;
}

.earnings-requirement.is-complete {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.earnings-requirement.is-incomplete {
    border-color: #fed7aa;
    background: #fffaf0;
}

.earnings-requirement-icon {
    width: 37px;
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #334155;
    background: #ffffff;
}

.earnings-requirement-icon ion-icon {
    font-size: 20px;
}

.earnings-requirement strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 12px;
}

.earnings-requirement span:not(.earnings-requirement-icon) {
    display: block;
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

.earnings-requirement-state {
    color: #94a3b8;
    font-size: 21px;
}

.earnings-requirement.is-complete
.earnings-requirement-state {
    color: #059669;
}

.earnings-requirement.is-incomplete
.earnings-requirement-state {
    color: #d97706;
}

.earnings-requirement-messages {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.earnings-requirement-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 13px;
    color: #92400e;
    background: #fffbeb;
    font-size: 11px;
    line-height: 1.5;
}

.earnings-requirement-message ion-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 17px;
}

.earnings-withdraw-btn {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 17px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: #dc2626;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.earnings-withdraw-btn ion-icon {
    font-size: 21px;
}

.earnings-withdraw-btn:disabled {
    color: #94a3b8;
    background: #e2e8f0;
    cursor: not-allowed;
}

.earnings-withdraw-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.earnings-referral-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
}

.earnings-referral-grid > div {
    padding: 18px;
    text-align: center;
    background: #f8fafc;
}

.earnings-referral-grid > div + div {
    border-left: 1px solid #e2e8f0;
}

.earnings-referral-grid span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
}

.earnings-referral-grid strong {
    color: #0f172a;
    font-size: 24px;
}

.earnings-refresh-btn {
    min-height: 34px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: #334155;
    background: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.earnings-refresh-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.earnings-loading {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #64748b;
    font-size: 12px;
}

.earnings-spinner {
    width: 22px;
    height: 22px;
    display: inline-block;
    border: 3px solid #e2e8f0;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: earnings-spin 0.75s linear infinite;
}

@keyframes earnings-spin {
    to {
        transform: rotate(360deg);
    }
}

.earnings-error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 15px;
    color: #991b1b;
    background: #fef2f2;
}

.earnings-error ion-icon {
    flex: 0 0 auto;
    font-size: 23px;
}

.earnings-error strong,
.earnings-error span {
    display: block;
}

.earnings-error strong {
    margin-bottom: 3px;
    font-size: 12px;
}

.earnings-error span {
    font-size: 11px;
    line-height: 1.5;
}

.earnings-empty {
    padding: 26px 16px 20px;
    text-align: center;
}

.earnings-empty > span {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #dc2626;
    background: #fef2f2;
}

.earnings-empty > span ion-icon {
    font-size: 30px;
}

.earnings-empty h3 {
    margin: 14px 0 6px;
    color: #0f172a;
    font-size: 17px;
}

.earnings-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: #64748b;
    font-size: 11px;
    line-height: 1.7;
}

.earnings-share-link {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: #0f172a;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.earnings-history-list {
    display: grid;
    gap: 10px;
}

.earnings-history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.earnings-history-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #047857;
    background: #ecfdf5;
}

.earnings-history-icon ion-icon {
    font-size: 21px;
}

.earnings-history-copy {
    min-width: 0;
}

.earnings-history-copy strong,
.earnings-history-copy span {
    display: block;
}

.earnings-history-copy strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earnings-history-copy span {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.earnings-history-amount {
    text-align: right;
}

.earnings-history-amount strong {
    display: block;
    color: #047857;
    font-size: 14px;
}

.earnings-history-status {
    display: inline-flex;
    margin-top: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 9px;
    font-weight: 700;
    text-transform: capitalize;
}

.earnings-history-status.available {
    color: #047857;
    background: #ecfdf5;
}

.earnings-history-status.reversed,
.earnings-history-status.cancelled {
    color: #b91c1c;
    background: #fef2f2;
}

.earnings-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid #bfdbfe;
    border-radius: 19px;
    color: #1e3a8a;
    background: #eff6ff;
}

.earnings-info-card > ion-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 23px;
}

.earnings-info-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.earnings-info-card p {
    margin: 0;
    font-size: 10px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .earnings-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .earnings-requirement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .earnings-page {
        padding: 78px 12px 100px;
    }

    .earnings-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 11px;
    }

    .earnings-header-icon {
        display: none;
    }

    .earnings-header-copy h1 {
        font-size: 25px;
    }

    .earnings-header-copy p {
        font-size: 11px;
    }

    .earnings-hero-card {
        padding: 20px;
        border-radius: 22px;
    }

    .earnings-main-balance {
        font-size: 42px;
    }

    .earnings-stat-grid {
        gap: 10px;
        margin-top: 12px;
    }

    .earnings-stat-card {
        align-items: flex-start;
        padding: 14px;
    }

    .earnings-stat-icon {
        width: 37px;
        height: 37px;
    }

    .earnings-stat-card strong {
        font-size: 16px;
    }

    .earnings-section-card {
        margin-top: 12px;
        padding: 17px;
        border-radius: 20px;
    }

    .earnings-section-heading {
        gap: 10px;
    }

    .earnings-section-heading h2 {
        font-size: 16px;
    }

    .earnings-section-heading p {
        font-size: 10px;
    }

    .earnings-status-pill {
        padding: 5px 8px;
        font-size: 9px;
    }

    .earnings-referral-grid > div {
        padding: 14px 8px;
    }

    .earnings-referral-grid span {
        min-height: 30px;
        font-size: 9px;
    }

    .earnings-referral-grid strong {
        font-size: 20px;
    }
}

@media (max-width: 430px) {
    .earnings-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .earnings-stat-card {
        display: block;
    }

    .earnings-stat-icon {
        margin-bottom: 10px;
    }

    .earnings-section-heading {
        align-items: flex-start;
    }

    .earnings-refresh-btn {
        width: 35px;
        padding: 7px;
        font-size: 0;
    }

    .earnings-refresh-btn ion-icon {
        font-size: 18px;
    }

    .earnings-history-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .earnings-history-amount {
        grid-column: 2;
        text-align: left;
    }
}

/*
|--------------------------------------------------------------------------
| User earnings history filters
|--------------------------------------------------------------------------
*/
.earnings-history-filters {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #f8fafc;
}

.earnings-history-filters label {
    min-width: 0;
}

.earnings-history-filters label > span {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
}

.earnings-history-filters input,
.earnings-history-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    background: #ffffff;
    font-size: 11px;
    outline: none;
}

.earnings-history-filters input:focus,
.earnings-history-filters select:focus {
    border-color: #dc2626;
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.08);
}

.earnings-filter-actions {
    display: flex;
    gap: 7px;
}

.earnings-filter-apply,
.earnings-filter-reset {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.earnings-filter-apply {
    color: #ffffff;
    background: #dc2626;
}

.earnings-filter-reset {
    color: #334155;
    background: #e2e8f0;
}

.earnings-filter-summary {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.earnings-filter-summary > div {
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
}

.earnings-filter-summary span,
.earnings-filter-summary strong {
    display: block;
}

.earnings-filter-summary span {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 9px;
}

.earnings-filter-summary strong {
    color: #0f172a;
    font-size: 14px;
}

.earnings-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.earnings-history-pagination button {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 11px;
    border: 0;
    border-radius: 11px;
    color: #334155;
    background: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.earnings-history-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.earnings-history-pagination span {
    min-width: 100px;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 760px) {
    .earnings-history-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .earnings-filter-actions {
        grid-column: span 2;
    }

    .earnings-filter-apply,
    .earnings-filter-reset {
        flex: 1;
    }
}

@media (max-width: 440px) {
    .earnings-history-filters {
        grid-template-columns: 1fr;
    }

    .earnings-filter-actions {
        grid-column: auto;
    }

    .earnings-history-pagination {
        gap: 7px;
    }

    .earnings-history-pagination button {
        padding: 7px 8px;
        font-size: 9px;
    }

    .earnings-history-pagination span {
        min-width: 80px;
        font-size: 9px;
    }
}

/*
|--------------------------------------------------------------------------
| User withdrawal request interface
|--------------------------------------------------------------------------
*/
.earnings-withdrawal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.earnings-withdrawal-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.earnings-withdrawal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.earnings-withdrawal-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 650;
}

.earnings-withdrawal-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.earnings-withdrawal-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #166534;
    background: #dcfce7;
}

.earnings-withdrawal-icon.history {
    color: #1d4ed8;
    background: #dbeafe;
}

.earnings-withdrawal-icon ion-icon {
    font-size: 22px;
}

.withdrawal-available-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 16px;
    color: #334155;
    background: #f8fafc;
}

.withdrawal-available-box span {
    font-size: 12.5px;
    font-weight: 500;
}

.withdrawal-available-box strong {
    color: #166534;
    font-size: 19px;
    font-weight: 700;
}

.withdrawal-eligibility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.withdrawal-badge,
.withdrawal-request-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 700;
    text-transform: capitalize;
}

.withdrawal-badge.success,
.withdrawal-request-status.paid,
.withdrawal-request-status.approved {
    color: #166534;
    background: #dcfce7;
}

.withdrawal-badge.warning,
.withdrawal-request-status.requested,
.withdrawal-request-status.under_review {
    color: #9a3412;
    background: #ffedd5;
}

.withdrawal-badge.neutral,
.withdrawal-request-status.processing {
    color: #1e40af;
    background: #dbeafe;
}

.withdrawal-request-status.rejected,
.withdrawal-request-status.cancelled {
    color: #991b1b;
    background: #fee2e2;
}

.withdrawal-panel-notice {
    margin: 0 0 14px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1.5;
}

.withdrawal-form-message {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.5;
}

.withdrawal-form-message.success {
    color: #166534;
    background: #dcfce7;
}

.withdrawal-form-message.error {
    color: #991b1b;
    background: #fee2e2;
}

.withdrawal-request-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdrawal-request-form label {
    margin-top: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.withdrawal-request-form input,
.withdrawal-request-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
}

.withdrawal-request-form input:focus,
.withdrawal-request-form select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.09);
}

.withdrawal-amount-field {
    position: relative;
}

.withdrawal-amount-field > span {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.withdrawal-amount-field input {
    padding-left: 29px;
}

.withdrawal-field-help {
    display: block;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.45;
}

.withdrawal-method-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdrawal-manual-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 11px;
    border-radius: 14px;
    color: #334155;
    background: #f1f5f9;
    font-size: 11px;
    line-height: 1.5;
}

.withdrawal-manual-note ion-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #166534;
    font-size: 18px;
}

.withdrawal-submit-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: #dc2626;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.withdrawal-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdrawal-request-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdrawal-request-item {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.withdrawal-request-item-head,
.withdrawal-request-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.withdrawal-request-item-head {
    margin-bottom: 8px;
}

.withdrawal-request-item-code {
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
}

.withdrawal-request-item-amount {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.withdrawal-request-item-row {
    align-items: flex-start;
    margin-top: 5px;
    color: #64748b;
    font-size: 10.8px;
    line-height: 1.45;
}

.withdrawal-request-item-row strong {
    color: #334155;
    font-weight: 600;
    text-align: right;
}

.withdrawal-request-alert {
    margin-top: 9px;
    padding: 9px 10px;
    border-radius: 12px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 10.8px;
    line-height: 1.45;
}

.withdrawal-list-loading,
.withdrawal-list-empty,
.withdrawal-list-error {
    padding: 24px 14px;
    border-radius: 16px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
    font-size: 12px;
}

.withdrawal-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.withdrawal-list-empty ion-icon {
    color: #94a3b8;
    font-size: 30px;
}

.withdrawal-list-empty strong {
    color: #334155;
}

.withdrawal-list-error {
    color: #991b1b;
    background: #fee2e2;
}

@media (max-width: 780px) {
    .earnings-withdrawal-grid {
        grid-template-columns: 1fr;
    }

    .earnings-withdrawal-card {
        padding: 15px;
        border-radius: 18px;
    }
}



/*
 * GNPM_MEMBER_REFERRAL_EARNINGS_STYLE_V1
 */
.member-referral-card {
    border-color: #bfdbfe;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #eff6ff
        );
}

.member-referral-locked {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    color: #64748b;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1.55;
}

.member-referral-content {
    margin-top: 16px;
}

.member-referral-content label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 10px;
    font-weight: 650;
}

.member-referral-input-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
}

.member-referral-input-row input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    font-size: 11px;
}

.member-referral-input-row button,
.member-referral-share-btn {
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    background: #dc2626;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
}

.member-referral-action-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.member-referral-action-row > span {
    color: #64748b;
    font-size: 10px;
}

.member-referral-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.6;
}

.member-referral-feedback {
    margin: 10px 0 0;
    color: #047857;
    font-size: 10px;
    font-weight: 650;
}

@media (max-width: 520px) {
    .member-referral-input-row {
        grid-template-columns:
            minmax(0, 1fr)
            82px;
    }

    .member-referral-input-row button {
        padding: 0 9px;
    }

    .member-referral-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .member-referral-share-btn {
        width: 100%;
    }
}
