.ea-no-access {
    color: #d6dbec;
    text-align: center;
    padding: 40px 20px;
}

.ea-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ea-container *,
.ea-container *::before,
.ea-container *::after {
    box-sizing: border-box;
}

/* --- Admin preview banner --- */

.ea-admin-banner {
    padding: 10px 16px;
    border-radius: 8px;
    background: #2a1f3d;
    border: 1px solid #6c4fa0;
    color: #c4a7e7;
    font-size: 0.875rem;
}

.ea-admin-banner strong {
    color: #e0d0f7;
}

/* --- Info banner --- */

.ea-info-banner {
    padding: 10px 16px;
    border-radius: 8px;
    background: #131d35;
    border: 1px solid #2d4a9a;
    color: #7fa8f5;
    font-size: 0.875rem;
}

.ea-info-banner strong {
    color: #a8c4fb;
}

/* --- Hero --- */

.ea-hero {
    min-width: 0;
    background: #2b2c3c;
    border: 1px solid #585b70;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
}

.ea-hero-divider {
    width: 1px;
    align-self: stretch;
    background: #45475a;
    flex-shrink: 0;
    margin: 0 8px;
}

.ea-stat-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 0 16px;
}

.ea-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #5ebdff;
    line-height: 1;
}

.ea-stat-lifetime {
    color: #ffffffab;
}

.ea-stat-label {
    font-size: 0.8rem;
    color: #b9bed5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Card --- */

.ea-card {
    min-width: 0;
    background: #2b2c3c;
    border: 1px solid #585b70;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ea-card-title {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.ea-config-divider {
    border: none;
    border-top: 1px solid #45475a;
    margin: 0;
}


label {
    margin: 0;
}

/* --- Fields --- */

.ea-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ea-field-label {
    font-size: 0.9rem;
    color: #d6dbec;
    font-weight: 500;
}

.ea-field-hint {
    margin: 0;
    font-size: 0.825rem;
    color: #a0a4bb;
    line-height: 1.5;
}

/* --- Network / payout mode selectors --- */

.ea-network-options {
    display: flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
}

.ea-network-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.ea-base-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: #2d54cc;
    border-radius: 4px;
    flex-shrink: 0;
}

.ea-network-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid rgb(7 7 9);
    background: rgb(30, 31, 43);
    color: #b1b7cf;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.ea-network-btn::before {
    content: '✓';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.ea-network-btn:hover {
    background: #313244;
    color: #cdd6f4;
}

.ea-network-btn.selected {
    border-color: #fff;
    background: #45475a;
    color: #fff;
    font-weight: 500;
}

.ea-network-btn.selected::before {
    opacity: 1;
}

/* --- Wallet input --- */

.ea-wallet-input {
    width: 100%;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* --- Checkbox --- */

.ea-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ea-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    min-width: 16px;
    width: 16px;
    height: 16px;
    accent-color: #a6e3a1;
    cursor: pointer;
}

.ea-checkbox-label {
    font-size: 0.875rem;
    color: rgb(214 219 236 / 90%);
    line-height: 1.55;
}

/* --- Card footer --- */

.ea-card-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ea-save-error {
    margin: 0;
    color: #f87171;
    font-size: 0.875rem;
    text-align: center;
    transition: opacity 0.4s;
}

.ea-save-success {
    margin: 0;
    color: #a6e3a1;
    font-size: 0.875rem;
    text-align: center;
    transition: opacity 0.4s;
}

/* --- Earnings table --- */

.ea-table-wrap {
    overflow-x: auto;
}

.ea-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ea-table th {
    text-align: left;
    padding: 10px 14px;
    color: #9399b2;
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #45475a;
    white-space: nowrap;
}

.ea-table td {
    padding: 12px 14px;
    color: #d6dbec;
    border-bottom: 1px solid #3b3c50;
}

.ea-empty-row td {
    text-align: center;
    color: #6c7086;
    padding: 36px 14px;
    border-bottom: none;
}

/* --- Pagination --- */

.ea-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ea-page-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #585b70;
    background: #1e1e2e;
    color: #cdd6f4;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ea-page-btn:hover:not(:disabled) {
    background: #313244;
    border-color: #7c7f93;
}

.ea-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ea-page-info {
    font-size: 0.875rem;
    color: #9399b2;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

/* --- Responsive --- */

@media (max-width: 500px) {
    .ea-stat-value {
        font-size: 1.8rem;
    }

    .ea-hero {
        flex-direction: column;
        padding: 20px 16px;
    }

    .ea-hero-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        margin: 8px 0;
    }

    .ea-stat-card {
        width: 100%;
        padding: 8px 0;
    }

    .ea-card {
        padding: 16px;
    }
}
