/**
 * crypto-wallet-cleanup.css
 * "🧹 Wallet Cleanup" - deliberately small. Reuses .ct-modal*, .ct-menu-btn,
 * .ct-btn-*, .ct-explore-row, .ct-explore-chain-note/.ct-explore-stale-note,
 * .ct-positive/.ct-negative, .ct-screened-partial-badge from crypto-menu.css
 * rather than redefining them - only what's genuinely new to this feature
 * lives here. See js/crypto-wallet-cleanup-ui.js.
 */

/* Approval rows wrap a two-line label (token -> spender, then the approved
   amount) same as .ct-screened-row does for its own flags line - top-align
   rather than the default .ct-explore-row vertical centering. */
.ct-wc-approval-row {
    align-items: flex-start;
}

/* The action column (Revoke button -> pending/success/fail status + explorer
   link, see handleRevokeClick() in crypto-wallet-cleanup-ui.js) outgrows
   .ct-explore-change's 60px/single-line default - give it room to wrap
   without breaking the row grid it still shares with every other list. */
.ct-wc-row-action {
    min-width: 90px;
    white-space: normal;
    text-align: right;
    line-height: 1.4;
}

.ct-wc-row-action a {
    color: var(--ct-accent-blue);
    font-size: 11px;
}

/* Consolidate panel (Phase 3, 28 Oct 2026) - see renderConsolidatePanel()/
   handleSendAllClick() in crypto-wallet-cleanup-ui.js. Reuses .ct-form-group
   input's chrome values directly (that class itself isn't reused as-is since
   this panel isn't a .ct-form-group - no border/background box wanted here,
   just the same input/button sizing so it doesn't look like a foreign
   element dropped into the rest of the list-based UI). */
.ct-wc-consolidate-trigger {
    margin: 10px 0;
}

.ct-wc-consolidate-panel {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    background: var(--ct-bg-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-wc-consolidate-dest {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--ct-border);
    background: var(--ct-bg-darker);
    color: var(--ct-text-primary);
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
}

.ct-wc-consolidate-verify-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ct-text-secondary);
    cursor: pointer;
}

.ct-wc-consolidate-row .ct-explore-rank {
    cursor: pointer;
}

.ct-wc-send-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Top Up Invest Bot panel (Phase B step 1, 28 Oct 2026) - see
   renderTopUpSection()/handleTopUpSendClick() in crypto-wallet-cleanup-ui.js.
   Same chrome as .ct-wc-consolidate-panel (bordered box, not a bare list)
   since this is also a "take an input, confirm, send a real tx" form. */
.ct-wc-topup-panel {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    background: var(--ct-bg-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* "Which network is this" badge (28 Oct 2026 - Peter: "đỡ nhầm mode") - loud
   on purpose, same red as .ct-negative/.ct-btn-delete, since this app only
   ever shows BSC mainnet here and everything in this panel is real money. */
.ct-wc-topup-network-badge {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--ct-accent-red);
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--ct-accent-red);
    font-size: 11px;
    font-weight: 600;
}

.ct-wc-topup-address {
    font-family: monospace;
    font-size: 11px;
    color: var(--ct-text-primary);
    word-break: break-all;
}

.ct-wc-topup-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ct-wc-topup-token {
    padding: 8px 6px;
    border: 1px solid var(--ct-border);
    background: var(--ct-bg-darker);
    color: var(--ct-text-primary);
    border-radius: 6px;
    font-size: 12px;
}

.ct-wc-topup-amount {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--ct-border);
    background: var(--ct-bg-darker);
    color: var(--ct-text-primary);
    border-radius: 6px;
    font-size: 12px;
}

.ct-wc-topup-status {
    margin: 0;
    font-size: 12px;
}

.ct-wc-topup-status a {
    color: var(--ct-accent-blue);
    font-size: 11px;
}

/* Bot Dashboard (28 Oct 2026) - see renderBotDashboardSection()/
   loadBotTrades() in crypto-wallet-cleanup-ui.js. Same bordered-box chrome
   as .ct-wc-topup-panel/.ct-wc-consolidate-panel - this is informational,
   not a form, but still a distinct "the bot" grouping, same visual family. */
.ct-wc-dashboard-panel {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    background: var(--ct-bg-dark);
}

.ct-wc-dashboard-panel a {
    color: var(--ct-accent-blue);
}
