/* OBDX_WALLETS_LAYOUT_ONLY_V1 — shared theme lives in site.css */
.wallets-main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 36px; }
.eyebrow { margin: 0 0 9px; color: var(--acid); font: 800 9px/1 var(--mono); letter-spacing: .15em; }
.wallets-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 28px; }
.wallets-intro h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: -.055em; }
.wallets-intro > div > p:last-child { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.directory-status { min-width: 220px; padding: 17px 20px; border: 1px solid var(--line); background: rgba(12,15,16,.72); text-align: right; }
.directory-status span, .directory-status small { display: block; }
.directory-status span { color: var(--acid); font: 800 13px/1 var(--mono); }
.directory-status small { margin-top: 8px; color: var(--faint); font-size: 10px; }

.wallet-session-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 16px; padding: 14px 16px; border: 1px solid rgba(255,193,90,.25); background: rgba(255,193,90,.055); }
.wallet-session-card > div:first-child { display: flex; align-items: center; gap: 12px; }
.session-mark { display: grid; flex: 0 0 auto; width: 26px; height: 26px; place-items: center; color: var(--base); background: var(--amber); border-radius: 50%; font: 900 11px/1 var(--mono); }
.wallet-session-card p { margin: 0; }
.wallet-session-card strong, .wallet-session-card small { display: block; }
.wallet-session-card strong { font-size: 12px; }
.wallet-session-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.wallet-session-card.authenticated { border-color: rgba(216,255,62,.25); background: var(--acid-dim); }
.wallet-session-card.authenticated .session-mark { background: var(--acid); }
.session-actions { display: flex; gap: 8px; }
.session-actions a { min-height: 34px; padding: 10px 13px; color: var(--base); background: var(--acid); font: 800 9px/1 var(--mono); text-decoration: none; }
.session-actions a.secondary { color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); }

.wallet-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.wallet-summary article { min-height: 106px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.wallet-summary span, .wallet-summary strong, .wallet-summary small { display: block; }
.wallet-summary span { color: var(--faint); font: 800 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.wallet-summary strong { margin-top: 15px; color: var(--acid); font: 850 19px/1 var(--mono); }
.wallet-summary small { margin-top: 10px; color: var(--muted); font-size: 9px; }
.wallet-summary .warning { color: var(--amber); }

.wallet-directory-panel { border: 1px solid var(--line); background: var(--surface); }
.directory-toolbar { display: grid; grid-template-columns: auto 1fr minmax(240px, 330px); align-items: end; gap: 22px; padding: 20px; border-bottom: 1px solid var(--line); }
.directory-toolbar h2 { margin: 0; font-size: 18px; }
.wallet-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.wallet-filter { min-height: 34px; padding: 0 12px; color: var(--muted); border: 1px solid var(--line); background: var(--surface-2); font: 800 9px/1 var(--mono); }
.wallet-filter.active { color: var(--base); border-color: var(--acid); background: var(--acid); }
.wallet-search span { display: block; margin-bottom: 7px; color: var(--faint); font: 800 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wallet-search input { width: 100%; min-height: 38px; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line); background: #0c0f10; font: 11px/1 var(--mono); }
.wallet-search input::placeholder { color: #4f5653; }

.table-scroll { overflow-x: auto; }
.wallets-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.wallets-table th, .wallets-table td { height: 62px; padding: 0 15px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.wallets-table th { height: 46px; color: var(--faint); background: rgba(10,13,14,.76); font: 800 8px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wallets-table th:first-child, .wallets-table td:first-child { text-align: left; }
.wallets-table th:last-child, .wallets-table td:last-child { text-align: left; }
.wallets-table th button { padding: 7px 0; color: inherit; border: 0; background: transparent; font: inherit; text-transform: inherit; }
.wallets-table th[aria-sort="ascending"] button, .wallets-table th[aria-sort="descending"] button { color: var(--acid); }
.wallets-table tbody tr { transition: background 120ms ease; }
.wallets-table tbody tr:hover { background: rgba(216,255,62,.035); }
.coin-cell { display: inline-flex; align-items: center; gap: 11px; }
.asset-mark { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; color: var(--base); background: var(--acid); border-radius: 50%; font: 900 8px/1 var(--mono); }
.coin-name strong, .coin-name small { display: block; }
.coin-name strong { font: 850 11px/1 var(--mono); }
.coin-name small { max-width: 220px; margin-top: 6px; overflow: hidden; color: var(--faint); font: 8px/1 var(--mono); text-overflow: ellipsis; }
.numeric-cell { color: var(--muted); font: 10px/1 var(--mono); }
.numeric-cell.funded { color: var(--ink); }
.wallet-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); font: 800 8px/1 var(--mono); }
.wallet-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.wallet-status.open { color: var(--acid); border-color: rgba(216,255,62,.24); background: var(--acid-dim); }
.wallet-status.locked { color: var(--amber); border-color: rgba(255,193,90,.24); background: rgba(255,193,90,.06); }
.wallet-actions { display: flex; gap: 7px; }
.wallet-action { min-height: 32px; padding: 0 10px; color: var(--base); border: 1px solid var(--acid); background: var(--acid); font: 800 8px/1 var(--mono); text-decoration: none; line-height: 30px; }
.wallet-action.secondary { color: var(--ink); border-color: var(--line); background: var(--surface-2); }
.wallet-action.disabled { color: var(--faint); border-color: var(--line); background: transparent; cursor: not-allowed; }
.empty-row { height: 140px !important; color: var(--faint); text-align: center !important; font-size: 11px; }

.directory-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 66px; padding: 12px 20px; }
.directory-footer label, .directory-footer p { color: var(--faint); font: 9px/1 var(--mono); }
.directory-footer select { min-height: 32px; margin-left: 7px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); }
.directory-footer p { margin: 0; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pagination button { min-height: 32px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); font: 800 8px/1 var(--mono); }
.pagination button:disabled { color: var(--faint); cursor: not-allowed; }
.pagination span { min-width: 52px; color: var(--muted); font: 8px/1 var(--mono); text-align: center; }
.wallet-disclosure { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; color: var(--muted); border: 1px solid rgba(255,193,90,.25); background: rgba(255,193,90,.055); font-size: 11px; line-height: 1.55; }
.wallet-disclosure > span { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; color: var(--base); background: var(--amber); border-radius: 50%; font: 900 10px/1 var(--mono); }
.wallet-disclosure p { margin: 0; }
.wallet-operations { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 16px; margin-top: 16px; }
.wallet-operations.customer-live-only { grid-template-columns: minmax(0,1fr); }
.wallet-operations-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.operations-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.operations-heading h2 { margin: 0; font-size: 16px; }
.paper-label, .history-count { color: var(--acid); border: 1px solid rgba(216,255,62,.24); padding: 6px 8px; font: 800 8px/1 var(--mono); }
.paper-funding-form { display: grid; grid-template-columns: minmax(100px,.65fr) minmax(150px,1fr) auto; align-items: end; gap: 10px; padding: 20px; }
.paper-funding-form label { color: var(--faint); font: 800 8px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.paper-funding-form input, .paper-funding-form select { width: 100%; height: 40px; margin-top: 8px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); background: var(--surface-2); font: 10px/1 var(--mono); }
.paper-funding-form button { height: 40px; padding: 0 15px; color: var(--base); border: 1px solid var(--acid); background: var(--acid); font: 800 9px/1 var(--mono); }
.paper-funding-form button:disabled { opacity: .55; cursor: wait; }
.operations-note { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.operations-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.operations-table th, .operations-table td { padding: 13px 14px; border-top: 1px solid var(--line-soft); text-align: left; font-size: 10px; }
.operations-table th { color: var(--faint); font: 800 8px/1 var(--mono); text-transform: uppercase; }
.operations-table td { color: var(--muted); font-family: var(--mono); }
.operations-table .amount { color: var(--ink); }
.operations-status { display: inline-block; padding: 4px 6px; color: var(--amber); border: 1px solid rgba(255,193,90,.22); font: 800 8px/1 var(--mono); }
.operations-status.credited, .operations-status.approved, .operations-status.completed, .operations-status.confirmed { color: var(--acid); border-color: rgba(216,255,62,.24); }
.operations-status.rejected, .operations-status.failed, .operations-status.cancelled, .operations-status.reorged { color: #ff7068; border-color: rgba(255,112,104,.25); }
.cancel-funding-request { min-height: 30px; color: #ff7068; border: 1px solid rgba(255,112,104,.25); background: transparent; font: 800 8px/1 var(--mono); }
.history-tabs { display: flex; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.history-tabs button { min-height: 39px; padding: 0 16px; color: var(--muted); border: 0; background: var(--surface-2); font: 800 9px/1 var(--mono); }
.history-tabs button.active { color: var(--base); background: var(--acid); }
.transaction-reference { display: block; max-width: 240px; overflow: hidden; color: var(--cyan); text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; z-index: 80; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 14px 16px; color: var(--ink); border: 1px solid var(--acid); background: #111614; box-shadow: 0 18px 50px rgba(0,0,0,.42); font-size: 11px; }
.toast.error { border-color: #ff7068; }
.wallets-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 28px; color: var(--faint); font: 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .wallet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-toolbar { grid-template-columns: 1fr 1fr; }
  .wallet-operations { grid-template-columns: 1fr; }
  .directory-toolbar > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wallets-main, .wallets-footer { width: calc(100% - 24px); }
  .wallets-main { padding-top: 34px; }
  .wallets-intro, .wallet-session-card { align-items: stretch; flex-direction: column; }
  .directory-status { min-width: 0; text-align: left; }
  .wallet-summary { grid-template-columns: 1fr; }
  .paper-funding-form { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .directory-toolbar > div:first-child { grid-column: auto; }
  .directory-footer { grid-template-columns: 1fr; }
  .directory-footer p { text-align: left; }
  .pagination { justify-content: flex-start; }
  .wallets-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* OBDX_WALLETS_ASSET_LOGOS_V2 */

.obdx-wallet-coin-layout-v2 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 38px !important;
}

.obdx-wallet-asset-logo-v2 {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .obdx-wallet-coin-layout-v2 {
    gap: 9px !important;
    min-height: 32px !important;
  }

  .obdx-wallet-asset-logo-v2 {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex-basis: 32px !important;
  }
}

/* OBDX_WALLETS_NETWORK_TEXT_V4 */

.obdx-wallet-network-v4 {
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(
    --obdx-wallet-network-color,
    currentColor
  ) !important;
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .obdx-wallet-network-v4 {
    font-size: 13px !important;
  }
}

/* OBDX_WALLETS_NETWORK_TEXT_V5 */

.obdx-wallet-network-v4 {
  font-size: 13px !important;
}

@media (max-width: 640px) {
  .obdx-wallet-network-v4 {
    font-size: 12px !important;
  }
}
