/* NUCOIN-EXPLORER-SUBSCAN layer: transfers, products, tokens, tokenised assets, quick transfer, company footer line.
   Uses the premium skin tokens (--nx-*) so all three themes (White / Blue / Black) follow automatically. */
html[data-nx-sx] body > [data-nxsk] { display: none !important; }
html[data-nx-sx] body { display: flex; flex-direction: column; min-height: 100vh; background: var(--nx-bg); color: var(--nx-text); }
.sx { width: 100%; order: 2; }
.sx *, .sx *::before, .sx *::after { box-sizing: border-box; }
.sx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sx a { color: inherit; text-decoration: none; }
.sx a.sx-l, .sx .sx-l a { color: var(--nx-gold); }
.sx a.sx-l:hover, .sx .sx-l a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-mono { font-family: var(--nx-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12.5px; letter-spacing: .01em; }
.sx-dim { color: var(--nx-muted); }
.sx-3 { color: var(--nx-text-3); }

/* sub bar (same shape as the explorer's own) */
.sx-sub { border-bottom: 1px solid var(--nx-line); background: var(--nx-surface); }
.sx-sub .sx-wrap { display: flex; align-items: center; gap: 18px; min-height: 56px; overflow-x: auto; scrollbar-width: none; }
.sx-sub .sx-wrap::-webkit-scrollbar { display: none; }
.sx-sub-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; margin-right: auto; }
.sx-sub-brand img { width: 26px; height: 26px; }
.sx-sub nav { display: flex; gap: 4px; }
.sx-sub nav a { padding: 7px 11px; border-radius: 999px; font-size: 13.5px; color: var(--nx-muted); white-space: nowrap; border: 1px solid transparent; }
.sx-sub nav a:hover { color: var(--nx-text); background: var(--nx-surface-2); }
.sx-sub nav a[aria-current="page"] { color: var(--nx-gold); border-color: color-mix(in srgb, var(--nx-gold) 55%, transparent); background: color-mix(in srgb, var(--nx-gold) 9%, transparent); }

/* page head */
.sx-head { padding: 34px 0 18px; background: var(--nx-hero-glow); }
.sx-kick { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-gold); font-weight: 700; }
.sx-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sx-lede { margin: 10px 0 0; max-width: 820px; color: var(--nx-muted); font-size: 15.5px; line-height: 1.55; }
.sx-crumb { font-size: 13px; color: var(--nx-text-3); margin-bottom: 10px; }
.sx-crumb a:hover { color: var(--nx-gold); }

/* search */
.sx-search { display: flex; gap: 8px; margin: 18px 0 0; max-width: 760px; }
.sx-search input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--nx-line-strong); background: var(--nx-surface); color: var(--nx-text); padding: 0 16px; font: inherit; font-size: 14.5px; }
.sx-search input:focus { outline: 2px solid var(--nx-focus); outline-offset: 1px; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--nx-line-strong); background: var(--nx-surface); color: var(--nx-text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.sx-btn:hover { border-color: var(--nx-gold); }
.sx-btn.gold { background: var(--nx-gold); color: var(--nx-on-gold); border-color: var(--nx-gold); }
.sx-btn.gold:hover { filter: brightness(1.06); }
.sx-btn.sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.sx-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* tiles */
.sx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 22px 0 0; }
.sx-tile { border: 1px solid var(--nx-line); background: var(--nx-surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--nx-shadow); min-width: 0; }
.sx-tile span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-text-3); font-weight: 650; }
.sx-tile strong { display: block; margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sx-tile small { display: block; margin-top: 2px; color: var(--nx-muted); font-size: 12.5px; }

/* cards + tables */
.sx-body { padding: 22px 0 56px; display: grid; gap: 22px; }
.sx-card { border: 1px solid var(--nx-line); background: var(--nx-surface); border-radius: 18px; box-shadow: var(--nx-shadow); overflow: hidden; min-width: 0; }
.sx-card-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--nx-line); flex-wrap: wrap; }
.sx-card-h h2 { margin: 0; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sx-card-h .sx-sp { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sx-card-b { padding: 16px 18px; }
.sx-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--nx-brand-soft); color: var(--nx-gold); font-size: 12px; font-weight: 800; flex: none; }
.sx-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sx-tbl th { text-align: left; font-weight: 650; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-text-3); padding: 10px 14px; border-bottom: 1px solid var(--nx-line); white-space: nowrap; background: var(--nx-surface-2); }
.sx-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--nx-line); vertical-align: middle; }
.sx-tbl tr:last-child td { border-bottom: 0; }
.sx-tbl tbody tr:hover td { background: color-mix(in srgb, var(--nx-gold) 4%, transparent); }
.sx-tbl .r { text-align: right; white-space: nowrap; }
.sx-scroll { overflow-x: auto; }
.sx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid var(--nx-line); background: var(--nx-surface-2); color: var(--nx-muted); white-space: nowrap; }
.sx-pill.gold { color: var(--nx-gold); border-color: color-mix(in srgb, var(--nx-gold) 45%, transparent); background: color-mix(in srgb, var(--nx-gold) 9%, transparent); }
.sx-pill.ok { color: var(--nx-up); border-color: color-mix(in srgb, var(--nx-up) 45%, transparent); background: color-mix(in srgb, var(--nx-up) 9%, transparent); }
.sx-pill.bad { color: var(--nx-down-ink); border-color: color-mix(in srgb, var(--nx-down) 45%, transparent); background: color-mix(in srgb, var(--nx-down) 9%, transparent); }
.sx-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--nx-brand-soft); color: var(--nx-gold); font-size: 12px; }
.sx-amt { font-weight: 650; font-variant-numeric: tabular-nums; }
.sx-amt small { font-weight: 600; color: var(--nx-text-3); margin-left: 4px; }
.sx-tabs { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--nx-surface-2); border: 1px solid var(--nx-line); gap: 2px; }
.sx-tabs button { border: 0; background: transparent; color: var(--nx-muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.sx-tabs button[aria-pressed="true"] { background: var(--nx-surface); color: var(--nx-text); box-shadow: 0 1px 3px var(--nx-shadow-ink); }
.sx-pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--nx-line); gap: 10px; }
.sx-empty { padding: 34px 20px; text-align: center; color: var(--nx-muted); }
.sx-empty b { display: block; color: var(--nx-text); font-size: 15.5px; margin-bottom: 6px; }
.sx-empty p { margin: 0 auto; max-width: 560px; line-height: 1.55; font-size: 14px; }
.sx-note { margin: 0; padding: 12px 18px; font-size: 13px; color: var(--nx-muted); border-top: 1px solid var(--nx-line); background: var(--nx-surface-2); }
.sx-load { padding: 18px; display: grid; gap: 10px; }
.sx-load i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--nx-line) 0%, color-mix(in srgb, var(--nx-line) 40%, transparent) 50%, var(--nx-line) 100%); background-size: 200% 100%; animation: nxskP 1.3s ease-in-out infinite; }
.sx-load i:nth-child(2n) { width: 82%; } .sx-load i:nth-child(3n) { width: 64%; }
.sx-err { padding: 22px 18px; color: var(--nx-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sx-kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; margin: 0; }
.sx-kv dt, .sx-kv dd { padding: 11px 18px; border-bottom: 1px solid var(--nx-line); margin: 0; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.sx-kv dt { color: var(--nx-text-3); font-weight: 600; }
.sx-kv dt:last-of-type, .sx-kv dd:last-of-type { border-bottom: 0; }
.sx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { font-family: var(--nx-mono, ui-monospace, monospace); font-size: 12px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--nx-line); background: var(--nx-surface-2); color: var(--nx-muted); }

/* product directory */
.sx-groups { display: grid; gap: 26px; }
.sx-group h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-text-3); }
.sx-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.sx-prod { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--nx-line); background: var(--nx-surface); border-radius: 16px; padding: 16px; box-shadow: var(--nx-shadow); transition: border-color .15s, transform .15s; min-height: 150px; }
.sx-prod:hover { border-color: color-mix(in srgb, var(--nx-gold) 60%, transparent); transform: translateY(-1px); }
.sx-prod-t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.sx-prod p { margin: 0; color: var(--nx-muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.sx-prod-f { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--nx-text-3); }
.sx-hl { background: color-mix(in srgb, var(--nx-gold) 22%, transparent); color: inherit; border-radius: 3px; }

/* tokenised assets showcase */
.sx-show { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sx-cat { position: relative; border: 1px solid var(--nx-line); border-radius: 16px; padding: 16px; background: var(--nx-surface); display: flex; flex-direction: column; gap: 8px; min-height: 168px; box-shadow: var(--nx-shadow); }
.sx-cat-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--nx-brand-soft); color: var(--nx-gold); }
.sx-cat-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-cat b { font-size: 15px; }
.sx-cat p { margin: 0; font-size: 13px; color: var(--nx-muted); line-height: 1.5; flex: 1; }
.sx-cat .sx-cat-n { font-size: 12.5px; font-weight: 650; }
.sx-cat.live { border-color: color-mix(in srgb, var(--nx-gold) 55%, transparent); }
.sx-banner { border: 1px solid color-mix(in srgb, var(--nx-gold) 40%, var(--nx-line)); border-radius: 20px; padding: 22px 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--nx-gold) 10%, var(--nx-surface)), var(--nx-surface)); display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: center; }
.sx-banner h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.sx-banner p { margin: 0; color: var(--nx-muted); line-height: 1.6; font-size: 14.5px; }
.sx-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sx-steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--nx-muted); }
.sx-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--nx-gold); color: var(--nx-on-gold); font-size: 12px; font-weight: 800; }
.sx-steps b { color: var(--nx-text); }

/* home cards */
.sxh { order: 2; width: 100%; }
.sxh-in { max-width: 1240px; margin: 0 auto; padding: 0 24px 8px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.sxh[data-inapp] .sxh-in { max-width: none; padding: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sxh-side { display: grid; gap: 22px; align-content: start; }
.sxh .sx-tbl td { padding: 10px 14px; }
.sxh-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--nx-line); font-size: 13.5px; }
.sxh-row:last-child { border-bottom: 0; }
.sxh-row .sxh-m { min-width: 0; display: grid; gap: 2px; }
.sxh-row .sxh-m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxh-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; }
.sxh-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--nx-line); background: var(--nx-surface-2); font-size: 13.5px; font-weight: 600; min-width: 0; }
.sxh-links a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxh-links a:hover { border-color: var(--nx-gold); color: var(--nx-gold); }

/* strip links (NuGenesis network bar) */
.nxc-sx { display: flex; gap: 6px; flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nxc-sx::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .nxc-sx { flex: 1 1 100%; width: 100%; } }
html[data-nuc-theme] .nxc-sx a { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--nx-line); color: var(--nx-muted) !important; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none !important; background: transparent; }
html[data-nuc-theme] .nxc-sx a:hover { color: var(--nx-text) !important; border-color: var(--nx-line-strong); }
html[data-nuc-theme] .nxc-sx a[aria-current="page"] { color: var(--nx-gold) !important; border-color: color-mix(in srgb, var(--nx-gold) 60%, transparent); background: color-mix(in srgb, var(--nx-gold) 9%, transparent); }
html[data-nuc-theme] .nxc-sx a.qt { color: var(--nx-on-gold) !important; background: var(--nx-gold); border-color: var(--nx-gold); }

/* company line in the shared footer */
.nsf-co { margin: 0 0 6px; font-weight: 650; color: var(--nx-text); font-size: 13.5px; width: 100%; }
.nsf-co a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }

/* quick transfer modal */
.sxq-back { position: fixed; inset: 0; background: rgba(8, 8, 10, .55); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sxq { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--nx-surface); color: var(--nx-text); border: 1px solid var(--nx-line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sxq-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--nx-line); }
.sxq-h h2 { margin: 0; font-size: 16px; }
.sxq-h button { margin-left: auto; border: 0; background: transparent; color: var(--nx-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.sxq-b { padding: 18px; display: grid; gap: 14px; }
.sxq-f { display: grid; gap: 6px; }
.sxq-f label { font-size: 12.5px; font-weight: 650; color: var(--nx-text-3); }
.sxq-f input, .sxq-f select, .sxq-f textarea { width: 100%; border-radius: 12px; border: 1px solid var(--nx-line-strong); background: var(--nx-surface); color: var(--nx-text); padding: 11px 12px; font: inherit; font-size: 14px; }
.sxq-f small { color: var(--nx-text-3); font-size: 12px; }
.sxq-warn { border: 1px solid color-mix(in srgb, var(--nx-warn) 45%, transparent); background: color-mix(in srgb, var(--nx-warn) 9%, transparent); color: var(--nx-text); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.sxq-ok { border: 1px solid color-mix(in srgb, var(--nx-up) 45%, transparent); background: color-mix(in srgb, var(--nx-up) 9%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.sxq-bad { color: var(--nx-down-ink); font-size: 13px; min-height: 1.2em; margin: 0; }
.sxq-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--nx-line); flex-wrap: wrap; }
.sxq-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--nx-line); background: var(--nx-surface-2); color: var(--nx-text); font: inherit; cursor: pointer; }
.sxq-opt:hover { border-color: var(--nx-gold); }
.sxq-opt b { display: block; font-size: 14.5px; }
.sxq-opt span { color: var(--nx-muted); font-size: 13px; line-height: 1.45; }
.sxq-steps { display: grid; gap: 6px; }
.sxq-steps div { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--nx-text-3); }
.sxq-steps div.done { color: var(--nx-up); } .sxq-steps div.now { color: var(--nx-text); font-weight: 650; } .sxq-steps div.fail { color: var(--nx-down-ink); }

@media (max-width: 980px) {
  .sxh-in, .sx-grid2, .sx-banner, .sxh[data-inapp] .sxh-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sx-wrap, .sxh-in { padding: 0 14px; }
  .sxh[data-inapp] .sxh-in { padding: 0; grid-template-columns: 1fr; }
  .sx-head { padding: 22px 0 12px; }
  .sx-search { flex-direction: column; } .sx-search input { flex: none; width: 100%; }
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sx-tile strong { font-size: 17px; }
  .sx-kv { grid-template-columns: 1fr; }
  .sx-kv dt { border-bottom: 0; padding-bottom: 2px; }
  .sx-kv dd { padding-top: 0; }
  .sx-tbl .hide-s { display: none; }
  .sx-tbl th, .sx-tbl td { padding: 10px 10px; }
  .sxh-links { grid-template-columns: 1fr; }
  .sx-pager { flex-wrap: wrap; }
}

/* LedgerX flows */
.sx-lx-note { grid-template-columns: 1fr; margin: 0 0 18px; }
.sx-lx-note h2 { font-size: 19px; }
.sx-lxp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-lxtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-lxf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--nx-line); }
.sx-lxf label { display: grid; gap: 4px; font-size: 12px; color: var(--nx-muted); font-weight: 600; letter-spacing: .02em; }
.sx-lxf select, .sx-lxf input { height: 36px; min-width: 130px; border-radius: 10px; border: 1px solid var(--nx-line-strong); background: var(--nx-surface); color: var(--nx-text); padding: 0 10px; font: inherit; font-size: 13.5px; }
.sx-lxf input { width: 130px; }
@media (max-width: 640px) { .sx-lxf label { flex: 1 1 40%; } .sx-lxf select, .sx-lxf input { width: 100%; min-width: 0; } .sx-card-h .sx-lxtabs { width: 100%; } }
