/* ============================================================================
   LxWallet page styles — FX Exchange Client Portal
   Ported from the LxWallet design mockup (v5). Every rule is scoped under the
   `.lxw` wrapper so these generic class names (.card / .page / .status / .select
   / thead th / tbody td …) do NOT leak into the Bootstrap portal chrome.
   The mockup's own shell (util-bar / header / nav / footer / chat bubble) is
   intentionally dropped — MainLayout already supplies the portal chrome.
   Tokens are scoped to `.lxw` (not :root) for the same reason.
   ========================================================================== */

.lxw {
  /* teal design tokens */
  --teal: #199caa;
  --teal-dark: #147f8b;
  --teal-tint: rgba(25, 156, 170, 0.10);
  --bg: #eef5f6;
  --card: #ffffff;
  --text: #333333;
  --muted: #888888;
  --th: #838383;
  --muted2: #aab4bf;
  --border: #e4ecee;
  --ctrl-border: #808184;
  --th-bg: #f3f6f9;
  --row-border: #dbdade;
  --shadow: 0 2px 10px rgba(24, 80, 88, 0.08);
  --pill: 800px;
  --amber: var(--teal);
  --green: #1f9d57;
  --green-bg: #e7f6ee;
  --usdt: #26a17b;
  --usdc: #2775ca;

  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  /* Inherit the portal (MainLayout) body background so the page body and the Footer — which sits
     outside .lxw on the white body — are the same colour. (Was `var(--bg)` #eef5f6, which tinted
     only the content area and left a white footer strip.) */
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
.lxw * { box-sizing: border-box; }
.lxw a { color: inherit; text-decoration: none; }
.lxw button, .lxw select, .lxw input, .lxw textarea { font-family: inherit; }
.lxw button { cursor: pointer; }

/* ---------- Page frame ---------- */
.lxw-page { max-width: 1180px; margin: 0 auto; padding: 22px 30px 60px; }
.lxw .breadcrumb { color: var(--muted); font-size: 13px; margin: 6px 0 18px; display: flex; gap: 8px; align-items: center; background: none; padding: 0; }
.lxw .breadcrumb .cur { color: var(--text); }
.lxw .back-link { color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; }

.lxw .back-prev { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--muted); font-weight: 500; font-size: 13.5px; transition: color .15s ease; background: none; border: none; padding: 0; }
.lxw .back-prev:hover { color: var(--teal); }
.lxw .back-prev .back-ic { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 15px; line-height: 1; padding-bottom: 2px; transition: border-color .15s ease, background .15s ease; }
.lxw .back-prev:hover .back-ic { border-color: var(--teal); background: var(--teal-tint); }
.lxw .page-title { font-size: 26px; font-weight: 700; margin: 2px 0 22px; }

/* ---------- Pill sub-nav ---------- */
.lxw .pillnav { display: flex; gap: 14px; margin-bottom: 22px; }
.lxw .pillnav .pill { flex: 1; max-width: 290px; text-align: center; border-radius: var(--pill); height: 42px; border: 1px solid #cfd8dc; color: var(--ctrl-border); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.lxw .pillnav .pill.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Cards ---------- */
.lxw .card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 24px; width: auto; }
.lxw .card.tight { padding: 18px 22px; }

.lxw .hist-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.lxw .hist-head h3 { margin: 0; font-size: 16px; }
.lxw .hist-head .btn-xls { margin-left: auto; }
.lxw .info-i { width: 15px; height: 15px; border-radius: 50%; border: none; background: #e8f6f7; color: #199caa; font-size: 9px; font-weight: 700; font-style: normal; display: inline-grid; place-items: center; cursor: pointer; }
.lxw .info-i:hover, .lxw .info-i:focus-visible { background: #d3edef; color: #0e6f7a; outline: none; }

/* Balance header */
.lxw .vh-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.lxw .vh-total { min-width: 0; }
.lxw .label-muted { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.lxw .total-value { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.lxw .total-value .amt { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.lxw .total-value .cur { font-size: 16px; color: var(--muted); font-weight: 600; }
.lxw .approx { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lxw .vh-mid { display: flex; gap: 34px; padding-left: 34px; border-left: 1px solid var(--border); flex-wrap: wrap; }
.lxw .vh-mid .k { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.lxw .vh-mid .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lxw .vh-mid .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.lxw .vh-act { margin-left: auto; }
.lxw .vh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lxw .vh-top .back-link { margin: 0; }

.lxw .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lxw .action { border: none; border-radius: var(--pill); height: 39px; padding: 8px 22px; font-weight: 600; font-size: 14px; background: #eef2f5; color: var(--text); }
.lxw .action.primary { background: var(--teal); color: #fff; }
.lxw .action:hover { filter: brightness(.97); }

/* overview "what is LxWallet" explainer banner */
.lxw .lx-hero { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(135deg, rgba(25,156,170,.13), rgba(25,156,170,.03) 60%, #fff); border: 1px solid rgba(25,156,170,.22); border-radius: 12px; padding: 20px 22px; margin-bottom: 22px; }
.lxw .lx-hero-main { flex: 1; min-width: 0; }
.lxw .lx-hero-ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, #1fb0bf, #147f8c); box-shadow: 0 6px 16px rgba(20,127,140,.28); }
.lxw .lx-hero-h { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.lxw .lx-hero-p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 760px; }
.lxw .lx-hero-p b { color: var(--text); font-weight: 600; }
.lxw .lx-hero-art { position: relative; flex: none; align-self: center; display: flex; margin: 0 20px 0 8px; }
.lxw .lx-hero-art::before { content: ""; position: absolute; inset: -16px -12px; z-index: 0; background: radial-gradient(circle, rgba(25,156,170,.20), transparent 70%); }
.lxw .lx-hero-art .lx-coin { position: relative; z-index: 1; width: 56px; height: 56px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.lxw .lx-hero-art .lx-coin + .lx-coin { margin-left: -20px; }
@media (max-width: 760px) and (min-width: 701px) { .lxw .lx-hero-art { display: none; } }

/* ---------- Tables ---------- */
.lxw table { width: 100%; border-collapse: collapse; }
.lxw thead th { text-align: center; background: var(--th-bg); color: var(--th); font-weight: 400; font-size: 12px; padding: 12px; white-space: nowrap; }
.lxw tbody td { padding: 12px; border-bottom: 1px solid var(--row-border); font-size: 12.8px; line-height: 1.5; vertical-align: middle; text-align: center; }
.lxw tbody tr:last-child td { border-bottom: none; }
.lxw .tscroll { margin: 0 -24px; overflow-x: auto; }
.lxw .tscroll > table { width: 100%; min-width: 720px; }
.lxw .tscroll > table th:first-child, .lxw .tscroll > table td:first-child { padding-left: 24px; }
.lxw .tscroll > table th:last-child, .lxw .tscroll > table td:last-child { padding-right: 24px; }
.lxw .t-center { text-align: center; }
.lxw .assets thead th:first-child, .lxw .assets tbody td:first-child { text-align: left; }
.lxw .assets thead th:nth-child(2), .lxw .assets thead th:nth-child(3), .lxw .assets thead th:nth-child(4),
.lxw .assets tbody td[data-l] { text-align: right; font-variant-numeric: tabular-nums; }
.lxw .assets thead th:last-child, .lxw .assets tbody td.cell-actions { text-align: right; }
@media (min-width: 701px) {
  .lxw .assets tbody td { padding-top: 16px; padding-bottom: 16px; }
  .lxw .tscroll:has(.assets) { margin-bottom: -17px; }
}
.lxw .cell-actions a { color: var(--teal); font-weight: 600; margin-right: 14px; cursor: pointer; }
.lxw .cell-actions a:last-child { margin-right: 0; }
.lxw .hash { color: var(--teal); font-family: "Roboto Mono", monospace; font-size: 12px; }
.lxw a.hash:hover { text-decoration: underline; }
.lxw .hash .ext { font-size: 10px; opacity: .65; font-family: Roboto, sans-serif; }

.lxw .coin { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; vertical-align: middle; }
.lxw .coin-icon { width: 26px; height: 26px; border-radius: 50%; flex: none; font-size: 0; color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat; }
.lxw .coin-icon.usdt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000'%3E%3Cpath fill='%2353ae94' d='M1000,0c552.26,0,1000,447.74,1000,1000S1552.24,2000,1000,2000,0,1552.38,0,1000,447.68,0,1000,0'/%3E%3Cpath fill='%23fff' d='M1123.42,866.76V718h340.18V491.34H537.28V718H877.5V866.64C601,879.34,393.1,934.1,393.1,999.7s208,120.36,484.4,133.1v476.5h246V1132.7c276-12.74,483.48-67.46,483.48-133s-207.48-120.26-483.48-133m0,225.64v-0.12c-6.94.44-42.6,2.58-122,2.58-63.48,0-108.14-1.8-123.88-2.62v0.2C633.34,1081.66,451,1039.12,451,988.22S633.36,894.84,877.62,884V1050.1c16,1.1,61.76,3.8,124.92,3.8,75.86,0,114-3.16,121-3.8V884c243.8,10.86,425.72,53.44,425.72,104.16s-182,93.32-425.72,104.18'/%3E%3C/svg%3E"); }
.lxw .coin-icon.usdc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000'%3E%3Cpath fill='%232775ca' d='M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z'/%3E%3Cpath fill='%23fff' d='M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z'/%3E%3Cpath fill='%23fff' d='M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zM1229.17 295.83c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 12.5 12.5 29.17 25 37.5 325 116.67 491.67 479.17 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.34-25 20.84-25 41.67V1675c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-487.5z'/%3E%3C/svg%3E"); }
.lxw .coin-icon.sm { width: 20px; height: 20px; }

.lxw .status { display: inline; font-weight: 400; font-size: 13px; }
.lxw .status.pending, .lxw .status.success, .lxw .status.failed { color: var(--text); }

/* flags (used by the transfer screen) */
.lxw .flag, .lxw .coin-flag { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.lxw .flag-usd { background: radial-gradient(circle at 30% 30%, #4a7dd1, #2b5ca8); }

/* ---------- Toolbar / filters / pager ---------- */
.lxw .toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.lxw .toolbar .spacer { margin-left: auto; }
.lxw .chip { border: none; background: #eef2f5; color: var(--text); border-radius: var(--pill); height: 34px; padding: 0 18px; font-weight: 600; font-size: 13px; }
.lxw .chip.active { background: var(--teal); color: #fff; }
.lxw .select, .lxw .input { border: 1px solid var(--row-border); border-radius: 10px; height: 40px; padding: 0 12px; font-size: 14px; background: #fff; color: var(--text); display: inline-flex; align-items: center; min-width: 142px; }
.lxw select.select { -webkit-appearance: none; appearance: none; cursor: pointer; padding: 8px 34px 8px 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808184' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.lxw .select:focus, .lxw .input:focus, .lxw .select:focus-within, .lxw .input:focus-within,
.lxw .daterange.set, .lxw .daterange.open { border-color: var(--teal); border-width: 2px; outline: none; }
.lxw .search { position: relative; }
.lxw .search .input { padding-left: 34px; min-width: 230px; }
.lxw .search svg { position: absolute; left: 11px; top: 12px; color: var(--muted2); }

.lxw .daterange { position: relative; cursor: pointer; min-width: 184px; gap: 10px; }
.lxw .daterange .dr-ph { color: var(--muted2); }
.lxw .daterange.set .dr-ph { color: var(--text); }
.lxw .daterange .cal, .lxw .daterange .cv { stroke: var(--ctrl-border); fill: none; flex-shrink: 0; }
.lxw .daterange .cv { margin-left: auto; }
.lxw .dr-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; cursor: default; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 14px; width: 230px; display: flex; flex-direction: column; gap: 10px; }
.lxw .dr-pop[hidden] { display: none; }
.lxw .dr-field { display: flex; flex-direction: column; gap: 4px; }
.lxw .dr-field label { font-size: 12px; color: var(--muted); }
.lxw .dr-field input { border: 1px solid var(--border); border-radius: 7px; height: 36px; padding: 0 10px; font-family: inherit; font-size: 13px; color: var(--text); }
.lxw .dr-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.lxw .dr-act button { border-radius: 7px; height: 32px; padding: 0 14px; font-weight: 600; font-size: 13px; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.lxw .dr-act button.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.lxw .btn-teal { background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: var(--pill); height: 39px; padding: 0 22px; font-weight: 600; }
.lxw .btn-teal:hover { background: var(--teal-dark); }

.lxw .btn-xls { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 10px; height: 40px; padding: 0 20px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lxw .btn-xls:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.lxw .btn-xls .xi { font-size: 15px; line-height: 1; }

.lxw .showing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.lxw .showing select { height: 32px; border: 1px solid var(--border); border-radius: 6px; }
.lxw .pager { display: flex; align-items: center; gap: 6px; }
.lxw .pager button { width: 30px; height: 30px; border: 1px solid var(--row-border); background: #fff; border-radius: 50%; color: var(--muted); font-size: 13px; }
.lxw .pager .cur { width: 30px; height: 30px; border: 1px solid var(--teal); color: var(--teal); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lxw .table-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

/* ---------- Empty state ---------- */
.lxw .empty { text-align: center; padding: 60px 0; color: var(--muted); }
.lxw .empty .cube { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 12px; background: #eef3f6; display: grid; place-items: center; color: var(--muted2); }

/* ---------- Forms ---------- */
.lxw .grid2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start; }
.lxw .grid2 > * { min-width: 0; }
@media (max-width: 920px) { .lxw .grid2 { grid-template-columns: 1fr; } }
.lxw .step { display: block; margin-bottom: 22px; }
.lxw .step .num { width: 22px; height: 22px; border-radius: 50%; background: #20242b; color: #fff; font-size: 12px; display: grid; place-items: center; float: left; margin: 1px 9px 0 0; }
.lxw .step h4 { margin: 0 0 12px; font-size: 16px; line-height: 22px; }
/* Coin/network dropdowns + inputs now use Bootstrap .form-select / .form-control / .input-group
   (exactly like FX CRM) — no custom field styling needed here. */
.lxw .field-note { color: var(--teal); font-size: 12px; margin-top: 8px; line-height: 1.5; }
.lxw .field-note.warn { color: var(--amber); }
.lxw .chev-r { margin-left: auto; color: var(--muted); }

.lxw .address-box { background: #f5fafd; border-radius: 10px; padding: 16px; display: flex; gap: 16px; align-items: center; }
.lxw .qr { width: 92px; height: 92px; background: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0/16px 16px, #fff; border: 4px solid #fff; outline: 1px solid var(--border); flex: none; }
.lxw .address-box .addr-label { color: var(--muted); font-size: 12px; }
.lxw .address-box .addr { font-family: "Roboto Mono", monospace; font-size: 13px; word-break: break-all; }
.lxw .addr-line { display: flex; align-items: center; gap: 8px; }
.lxw .copy-btn { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--teal); cursor: pointer; padding: 0; transition: background .15s, border-color .15s, color .15s; }
.lxw .copy-btn:hover { background: var(--teal-tint); border-color: var(--teal); }
.lxw .copy-btn .ic-check { display: none; }
.lxw .copy-btn.copied { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.lxw .copy-btn.copied .ic-copy { display: none; }
.lxw .copy-btn.copied .ic-check { display: block; }
.lxw .meta-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.lxw .meta-row:last-child { border-bottom: none; }
.lxw .meta-row .k { color: var(--muted); }
.lxw .note-warn { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 14px; }
.lxw .note-warn b { color: var(--amber); }

.lxw .btn-block { width: 100%; height: 50px; border-radius: var(--pill); background: var(--teal); color: #fff; border: none; font-weight: 700; font-size: 15px; margin-top: 10px; }

.lxw .faq h3 { margin: 0 0 14px; font-size: 16px; }
.lxw .faq-item { border-bottom: 1px solid var(--row-border); }
.lxw .faq-q { padding: 14px 2px; display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-size: 13.5px; cursor: pointer; user-select: none; }
.lxw .faq-q:hover { color: var(--teal); }
.lxw .faq-q .chev { color: var(--muted2); transition: transform .2s ease; flex: none; }
.lxw .faq-item.open .faq-q { color: var(--teal); }
.lxw .faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--teal); }
.lxw .faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.lxw .faq-item.open .faq-a { max-height: 260px; }
.lxw .faq-a .inner { padding: 0 2px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* internal transfer */
.lxw .xfer-card { max-width: 700px; margin: 0 auto; }
.lxw .xfer-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; padding: 8px 0; gap: 16px; }
.lxw .xfer-row > .lbl { font-weight: 600; }
.lxw .xfer-select { border: 0; border-radius: 10px; height: 52px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: #f5fafd; }
.lxw .xfer-select .bal { color: var(--muted); }
.lxw .xfer-select .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lxw .xfer-select select { border: none; background: transparent; font-weight: 600; outline: none; color: var(--text); }
.lxw .xfer-amount { border: 0; border-radius: 10px; height: 52px; padding: 0 14px; display: flex; align-items: center; background: #f5fafd; }
.lxw .xfer-amount:focus-within { outline: 2px solid #cdeaf0; outline-offset: 0; }
.lxw .xfer-amount input { border: none; outline: none; flex: 1; font-size: 15px; font-family: inherit; background: transparent; }
.lxw .xfer-amount .cur { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.lxw .btn-confirm { background: var(--teal); color: #fff; border: none; border-radius: var(--pill); height: 50px; padding: 0 40px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; }
.lxw .new-badge { background: var(--amber); color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; }

.lxw .hidden { display: none !important; }

/* ---- hover pop-tip (info bubble) ---- */
.lxw .tip { position: relative; cursor: pointer; }
.lxw .tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); width: 240px; background: #20303a; color: #e8f0f2; font: 400 12px/1.45 "Roboto", sans-serif; text-align: left; padding: 9px 12px; border-radius: 9px; box-shadow: 0 10px 24px rgba(20,40,50,.28); white-space: normal; opacity: 0; visibility: hidden; transition: opacity .13s; z-index: 60; pointer-events: none; }
.lxw .tip::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); border: 6px solid transparent; border-top-color: #20303a; opacity: 0; visibility: hidden; transition: opacity .13s; z-index: 60; pointer-events: none; }
.lxw .tip.show::after, .lxw .tip.show::before,
.lxw .tip:hover::after, .lxw .tip:hover::before,
.lxw .tip:focus-visible::after, .lxw .tip:focus-visible::before { opacity: 1; visibility: visible; }

/* ---- OTP modal ---- */
.lxw-otp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; font-family: "Roboto", sans-serif; }
.lxw-otp-overlay[hidden] { display: none; }
.lxw-otp-overlay .otp-card { position: relative; background: #fff; border-radius: 10px; width: 490px; max-width: 92vw; padding: 40px 48px 34px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.lxw-otp-overlay .otp-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 22px; line-height: 1; color: #9aa3ab; cursor: pointer; }
.lxw-otp-overlay .otp-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #333; }
.lxw-otp-overlay .otp-sub { margin: 0 0 28px; font-size: 14px; color: #888; }
/* OTP boxes — the shared <OTPInput> component renders a Bootstrap `.row.verification-code` with
   `.col > input.OTP.form-control`. Neutralise that grid and lay the six boxes out in one centered row,
   otherwise the row collapses and the Submit button overlaps the inputs. */
.lxw-otp-overlay .verification-code { display: flex; flex-wrap: nowrap; gap: 14px; justify-content: center; align-items: center; max-width: 100%; margin: 0 auto 28px; }
.lxw-otp-overlay .verification-code .col { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
.lxw-otp-overlay .OTP, .lxw-otp-overlay .OTP:focus { width: 44px; height: auto; padding: 8px 0; border: 0; border-bottom: 2px solid #d7e3e6; border-radius: 0; background: transparent; text-align: center; font-size: 24px; font-weight: 600; color: #2b3138; outline: none; box-shadow: none; }
.lxw-otp-overlay .OTP:focus { border-bottom-color: #199caa; }
.lxw-otp-overlay .otp-submit { display: block; width: 100%; max-width: 100%; margin: 8px auto 0; padding: 13px 0; border: none; border-radius: 999px; background: #199caa; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.lxw-otp-overlay .otp-submit:hover { background: #147f8b; }
.lxw-otp-overlay .otp-resend { margin: 22px 0 0; font-size: 13px; color: #888; }
.lxw-otp-overlay .otp-resend-btn { border: none; background: none; padding: 0; font: inherit; font-weight: 600; color: #199caa; cursor: pointer; }
.lxw-otp-overlay .otp-resend-btn:disabled { cursor: default; }

@media (pointer: coarse) {
  .lxw .info-i { width: 22px; height: 22px; font-size: 11px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .lxw-page { padding: 16px 16px 40px; }

  .lxw .lx-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 7px; align-items: center; padding: 18px 20px; }
  .lxw .lx-hero-main { display: contents; }
  .lxw .lx-hero-ic { grid-area: 1 / 1; width: 40px; height: 40px; border-radius: 10px; }
  .lxw .lx-hero-ic svg { width: 21px; height: 21px; }
  .lxw .lx-hero-h { grid-area: 1 / 2; margin-bottom: 0; }
  .lxw .lx-hero-art { grid-area: 1 / 3; margin: 0; }
  .lxw .lx-hero-p { grid-area: 2 / 1 / auto / span 3; }
  .lxw .lx-hero-art .lx-coin { width: 38px; height: 38px; border-width: 2px; }
  .lxw .lx-hero-art .lx-coin + .lx-coin { margin-left: -13px; }

  .lxw .back-link { margin: 0 0 10px; }
  .lxw .page-title { font-size: 22px; margin: 0 0 16px; }
  .lxw .hist-head h3 { flex: 1 1 100%; }

  .lxw .step { margin-bottom: 20px; }
  .lxw .vh-row { gap: 18px; }
  .lxw .vh-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 14px; width: 100%; }
  .lxw .vh-mid > div:last-child { text-align: right; }
  .lxw .vh-act { margin-left: 0; width: 100%; }
  .lxw .vh-act .actions { width: 100%; }

  .lxw .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lxw .action { padding: 8px 0; text-align: center; font-size: 13px; }

  .lxw .pillnav { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .lxw .pillnav::-webkit-scrollbar { display: none; }
  .lxw .pillnav .pill { flex: none; max-width: none; padding: 0 16px; font-size: 13px; white-space: nowrap; }

  .lxw .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .lxw .toolbar .select, .lxw .toolbar .input { width: 100%; min-width: 0; }
  .lxw .toolbar .spacer { display: none; }
  .lxw .toolbar > select:nth-of-type(3), .lxw .toolbar .daterange, .lxw .toolbar .btn-xls { grid-column: 1 / -1; }

  .lxw .table-footer { flex-wrap: wrap; gap: 10px; }

  .lxw .tscroll:has(.assets) { margin: 0 0 -9px; overflow-x: visible; }
  .lxw .tscroll > table.assets { min-width: 0; }
  .lxw .assets thead { display: none; }
  .lxw .assets tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; padding: 0; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .lxw .assets tbody tr:first-child { margin-top: 8px; }
  .lxw .assets tbody td { display: block; min-width: 0; border: 0; text-align: left; font-size: 13px; white-space: normal; }
  .lxw .assets tbody td::before { content: none; }
  .lxw .assets tbody td:first-child { grid-area: 1 / 1; background: var(--th-bg); padding: 11px 6px 11px 14px; font-size: 14px; font-weight: 600; }
  .lxw .assets tbody td[data-l="Balance"] { grid-area: 1 / 2; background: var(--th-bg); display: flex; align-items: center; justify-content: flex-end; padding: 11px 14px 11px 6px; font-size: 14px; font-weight: 700; color: var(--text); }
  .lxw .assets tbody td[data-l="Available Balance"] { grid-area: 2 / 1 / auto / span 2; padding: 11px 14px 3px; }
  .lxw .assets tbody td[data-l="On Hold"] { grid-area: 3 / 1 / auto / span 2; padding: 3px 14px 11px; }
  .lxw .assets tbody td[data-l="Available Balance"],
  .lxw .assets tbody td[data-l="On Hold"] { display: flex; justify-content: space-between; gap: 14px; text-align: left; font-size: 13px; }
  .lxw .assets tbody td[data-l="Available Balance"]::before,
  .lxw .assets tbody td[data-l="On Hold"]::before { content: attr(data-l); color: var(--muted); }
  .lxw .assets tbody td.cell-actions { grid-area: 4 / 1 / auto / span 2; border-top: 1px solid var(--border); padding: 10px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; }
  .lxw .assets tbody td.cell-actions a:nth-child(2) { text-align: center; }
  .lxw .assets tbody td.cell-actions a:nth-child(3) { text-align: right; }

  .lxw .address-box { flex-direction: column; align-items: stretch; gap: 12px; }
  .lxw .address-box .qr { width: 132px; height: 132px; align-self: center; }
  .lxw .address-box .addr { font-size: 13.5px; }

  .lxw .xfer-row { grid-template-columns: 1fr; gap: 4px; }
  .lxw .xfer-select { flex-wrap: wrap; height: auto; padding: 10px 14px; row-gap: 4px; }
  .lxw .xfer-select .right { margin-left: 0; width: 100%; order: -1; }

  .lxw-otp-overlay .otp-card { padding: 32px 20px 26px; }
  .lxw-otp-overlay .verification-code { gap: 8px; }
  .lxw-otp-overlay .OTP, .lxw-otp-overlay .OTP:focus { width: 38px; font-size: 20px; }
}
