/* SELLER DASHBOARD: earnings cards, in-progress list, payouts table */

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.dash-stat {
    padding: 18px 20px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dash-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dash-stat.is-earned .dash-stat-label i { color: var(--green); }
.dash-stat.is-held .dash-stat-label i { color: var(--accent); }
.dash-stat.is-transfer .dash-stat-label i { color: var(--orange); }
.dash-stat.is-active .dash-stat-label i { color: var(--text-dim); }

.dash-stat-value {
    font-size: 26px;
    font-weight: 800;
}

.dash-stat-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.dash-fee-note {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* In progress */

.dash-orders {
    display: flex;
    flex-direction: column;
}

.dash-order {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: inherit;
}

.dash-order:first-child { border-top: none; }
.dash-order:hover .dash-order-name { color: var(--accent); }

.dash-order-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-3);
}

.dash-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-order-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
}

.dash-order-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-order-name {
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-order-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-order-hint {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
}

.dash-order-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.dash-order-net {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dim);
}

.dash-order-go {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
}

.dash-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    white-space: nowrap;
}

.dash-badge.is-warn { background: rgba(245, 166, 35, 0.14); color: var(--orange); }
.dash-badge.is-info { background: var(--accent-soft); color: var(--accent); }

/* Payouts */

.dash-table-wrap {
    overflow-x: auto;
    margin-top: 6px;
}

.dash-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
}

.dash-table th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.dash-table td {
    padding: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.dash-table tbody tr:last-child td { border-bottom: none; }

.dash-table .num {
    text-align: right;
    white-space: nowrap;
}

.dash-listing {
    font-weight: 700;
    color: var(--text);
}

.dash-listing:hover { color: var(--accent); }

.dash-table .dash-net {
    font-weight: 800;
    color: var(--green);
}

.dash-fee-pct {
    margin-left: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Coins I accept (the picker itself is styled by coin-choice.css) */

.dash-coins-card {
    border-color: rgba(59, 130, 246, 0.45);
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 140px),
        var(--bg-1);
    scroll-margin-top: 84px; /* the sticky site nav is 64px tall, plus a gap */
}

.dash-coins-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

.dash-coins-card h2 i { color: var(--accent); }

/* Shown at the top of the page until the seller has saved their coin choice. */
.dash-nudge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.dash-nudge[hidden] { display: none; }

.dash-nudge:hover { border-color: var(--accent); }
.dash-nudge:focus-visible { outline: 2px solid #7db0ff; outline-offset: 2px; }

.dash-nudge > i {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 16px;
}

.dash-nudge-text {
    flex: 1;
    min-width: 0;
    color: var(--text-dim);
}

.dash-nudge-text strong { color: var(--text); }

.dash-nudge-go {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #7db0ff;
    white-space: nowrap;
}

/* Crypto payout addresses */

.dash-inline-msg {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius);
    font-size: 12.5px;
    color: #ef4444;
}

.dash-retry {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .dash-nudge { flex-wrap: wrap; }
    .dash-nudge-text { flex-basis: calc(100% - 40px); }
    .dash-nudge-go { margin-left: 28px; }

    .dash-order { flex-wrap: wrap; }
    .dash-order-main { flex-basis: calc(100% - 70px); }
    .dash-order-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex: 1;
    }
    .dash-order-go { display: none; }
    .dash-order-name { white-space: normal; }
}

@media (max-width: 480px) {
    /* A little less padding, so the coin tiles keep as much width as possible. */
    .dash-coins-card { padding: 16px; }
}
