/* BNC Classic · flows: transaction review dialog (G5), burn receipt (G8), wallet picker, dev panel — Binance-yellow reskin. */

/* ==========================================================================
   Dialog (G5)
   ========================================================================== */
dialog.dlg { margin: auto; border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; }
dialog.dlg::backdrop { background: rgba(4, 5, 7, .72); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
dialog.dlg[open] { animation: dlgIn .28s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-box {
  position: relative; width: 448px; max-width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #20252C 0%, var(--bg-2) 120px, var(--bg-1) 100%); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop), 0 0 90px -30px rgba(240, 185, 11, .35);
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}
.dlg-h { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.dlg-h::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 185, 11, .5) 20%, var(--y-hi) 50%, rgba(240, 185, 11, .5) 80%, transparent);
  box-shadow: 0 0 16px rgba(240, 185, 11, .7);
}
/* the dialog mark: our coin (the "Nº" text stays in the DOM, unseen — a lone "Nº" without a number read as a leftover) */
.dlg-no {
  flex: none; display: inline-block; width: 28px; height: 28px; padding: 0; overflow: hidden;
  font-size: 0; line-height: 0; color: transparent; border-radius: 50%;
  background: url(../img/favicon.svg) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(240, 185, 11, .55));
}
.dlg-h h3 { font: 700 var(--t-title)/1.3 var(--f-sans); }
.dlg-x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: var(--bg-3); color: var(--text-2); cursor: pointer; border-radius: var(--r); transition: color .15s, background-color .15s, transform .25s var(--ease); }
.dlg-x:hover { color: var(--y); background: var(--bg-4); transform: rotate(90deg); }
.dlg-x svg { width: 12px; height: 12px; }
.dlg-b { padding: 16px 20px 20px; }
.dlg-lead { font-size: var(--t-data); line-height: 1.6; color: var(--text-2); margin-bottom: 12px; }
.dlg-big {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 0 14px;
  font: 800 30px/1.1 var(--f-display); font-stretch: 104%; color: var(--y-btn); font-variant-numeric: tabular-nums; text-shadow: var(--tglow);
}
.dlg-big small { font: 600 var(--t-data)/1 var(--f-sans); color: var(--text-3); text-shadow: none; }
.dlg-kv { border-top: 1px solid var(--line); }
.dlg-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dlg-kv dt { font-size: var(--t-data); color: var(--text-3); white-space: nowrap; }
.dlg-kv dd { font: 500 var(--t-data)/1.45 var(--f-num); color: var(--text); text-align: right; min-width: 0; }
.dlg-kv dd small { display: block; font-size: var(--t-caption); color: var(--text-3); }
.dlg-kv dd .gold { color: var(--y); }
.dlg-kv .cap-chip { margin-left: 6px; }
.dlg-note { margin-top: 12px; font-size: var(--t-caption); line-height: 1.6; color: var(--text-3); }
.dlg-note b { color: var(--text-2); font-weight: 500; }
.dlg-a { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }
.dlg-a .btn { height: 46px; border-radius: 10px; }
.dlg-a.one { grid-template-columns: 1fr; }

/* stepper: approve → send → confirm */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 4px 0 16px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: rgba(11, 14, 17, .35); }
.step { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-width: 0; font-size: var(--t-caption); color: var(--text-3); font-weight: 500; }
.step + .step { border-left: 1px solid var(--line-2); }
.step b { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid var(--line-3); border-radius: 50%; font: 700 var(--t-overline)/1 var(--f-num); color: var(--text-3); }
.step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.on { color: var(--text); background: linear-gradient(180deg, rgba(240, 185, 11, .08), transparent); }
.step.on b { border-color: var(--y); color: var(--y); box-shadow: 0 0 10px rgba(240, 185, 11, .55); animation: stepPulse 1.4s ease-in-out infinite; }
@keyframes stepPulse { 50% { box-shadow: 0 0 0 4px rgba(240, 185, 11, .12), 0 0 14px rgba(240, 185, 11, .7); } }
.step.done { color: var(--text-2); }
.step.done b { background: var(--y); border-color: var(--y); color: var(--y-ink); }
.step.done b svg { width: 10px; height: 10px; }
.step.skip { color: var(--text-3); }
.step.skip b { border-style: dashed; }
.step.fail b { border-color: var(--down); color: var(--down); }

.txs { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 10px; font-size: var(--t-data); }
.txs .spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--y); border-right-color: transparent; animation: spin .8s linear infinite; filter: drop-shadow(0 0 6px rgba(240, 185, 11, .7)); }
.txs p { line-height: 1.5; }
.txs small { display: block; margin-top: 2px; font: 400 var(--t-caption)/1.4 var(--f-code); color: var(--text-3); }
.txs a { color: var(--text-2); text-decoration: none; }
.txs a:hover { color: var(--y); }
.txs.ok { border-color: var(--y-a40); background: linear-gradient(90deg, rgba(240, 185, 11, .12), rgba(240, 185, 11, .03)); box-shadow: 0 0 30px -12px rgba(240, 185, 11, .6); }
.txs.ok .ok-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--y); color: var(--y-ink); display: grid; place-items: center; box-shadow: 0 0 12px rgba(240, 185, 11, .7); animation: okPop .45s var(--ease-out); }
@keyframes okPop { from { transform: scale(.4); } to { transform: none; } }
.txs.ok .ok-dot svg { width: 11px; height: 11px; }
.txs.err { border-color: rgba(246, 70, 93, .5); background: var(--down-a12); }
.txs.err .x-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--down); color: var(--down); display: grid; place-items: center; font: 700 12px/1 var(--f-num); }
.txs .err-zh { color: var(--text); }
.txs .err-en { color: var(--text-2); font-family: var(--f-code); font-size: var(--t-caption); }
.dlg-warn { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(246, 70, 93, .4); border-radius: 10px; background: rgba(246, 70, 93, .06); font-size: var(--t-caption); line-height: 1.55; color: var(--text); }
.dlg-soft { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); font-size: var(--t-caption); line-height: 1.55; color: var(--text-2); }

/* ==========================================================================
   Burn receipt 燃烧凭单 (G8) — the only place the certificate language appears
   ========================================================================== */
.rcpt { position: relative; padding: 0 20px 20px; overflow: hidden; }
.rcpt::before { content: ""; position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; background: url(../img/bncs-mark-256.png) center / contain no-repeat; opacity: .07; transform: rotate(-14deg); pointer-events: none; }
.rcpt-band { height: 26px; margin: 0 -20px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(240, 185, 11, .16), rgba(240, 185, 11, .04)); overflow: hidden; color: var(--y); }
.rcpt-band svg { width: 100%; height: 26px; filter: drop-shadow(0 0 4px rgba(240, 185, 11, .6)); }
.rcpt-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.rcpt-head h4 { font: 900 24px/1.2 var(--f-display); letter-spacing: .06em; color: var(--text); }
:root[data-lang="en"] .rcpt-head h4 { font-weight: 800; font-stretch: var(--wd); letter-spacing: -.01em; font-size: 24px; }
.rcpt-head .no { display: inline-flex; align-items: center; gap: 4px; font: 800 13px/1 var(--f-display); font-stretch: var(--wd); color: var(--y); white-space: nowrap; }
.rcpt-head .no b { font: 800 var(--t-title)/1 var(--f-display); font-stretch: 104%; color: var(--y-btn); margin-left: 4px; text-shadow: var(--tglow); }
.rcpt-sub { position: relative; margin-top: 10px; font: 500 var(--t-caption)/1.5 var(--f-num); color: var(--text-3); }
.rcpt-lines { position: relative; list-style: none; padding: 0; margin: 12px 0 0; }
.rcpt-lines li { display: grid; grid-template-columns: auto minmax(16px, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0; font-size: var(--t-data); }
.rcpt-lines .d { color: var(--text-2); white-space: nowrap; }
.rcpt-lines .lead { border-bottom: 1px dotted var(--line-3); transform: translateY(-4px); }
.rcpt-lines .v { font: 600 var(--t-data)/1.2 var(--f-num); color: var(--text); text-align: right; white-space: nowrap; }
.rcpt-lines .v small { color: var(--text-3); margin-left: 4px; font-weight: 500; }
.rcpt-total { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--y-a40); font-size: var(--t-data); color: var(--text-2); }
.rcpt-total b { font: 800 20px/1 var(--f-display); font-stretch: 104%; color: var(--y-btn); text-shadow: var(--tglow); }
.rcpt-cap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-caption); color: var(--text-2); }
.rcpt-cap b { font: 700 var(--t-data)/1 var(--f-num); color: var(--y); }
.rcpt-hash { position: relative; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font: 400 var(--t-overline)/1.6 var(--f-code); color: var(--text-3); word-break: break-all; }
.rcpt-hash a { color: var(--text-2); text-decoration: none; }
.rcpt-hash a:hover { color: var(--y); }
/* the moment it lands (once, reskin-integrate): the coin seal stamps in, a fan of light and a ring open behind the title,
   one sweep crosses the slip and the total flares; the hero coin bursts when the page is back at the top (js/ui/hero.js) */
.rcpt::before { animation: rcptStamp .95s cubic-bezier(.2, 1.35, .35, 1) .12s both; }
@keyframes rcptStamp { 0% { opacity: 0; transform: scale(1.8) rotate(-60deg); } 55% { opacity: .2; } 100% { opacity: .07; transform: rotate(-14deg); } }
.rcpt::after {
  content: ""; position: absolute; z-index: 3; top: -10%; bottom: -10%; left: 0; width: 42%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 236, 160, .1) 40%, rgba(255, 255, 255, .2) 50%, rgba(255, 236, 160, .1) 60%, transparent 100%);
  transform: translateX(-130%) skewX(-16deg); animation: rcptSweep 1.25s var(--ease) .4s both;
}
@keyframes rcptSweep { to { transform: translateX(340%) skewX(-16deg); } }
.rcpt-burst {
  position: absolute; z-index: 0; left: 50%; top: 66px; width: 460px; height: 460px; margin: -230px 0 0 -230px; pointer-events: none;
  background: repeating-conic-gradient(from 4deg, rgba(252, 213, 53, .5) 0deg 1.1deg, rgba(252, 213, 53, 0) 2.2deg 14deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 14%, #000 28%, rgba(0, 0, 0, .5) 50%, transparent 72%);
  mask-image: radial-gradient(closest-side, transparent 14%, #000 28%, rgba(0, 0, 0, .5) 50%, transparent 72%);
  opacity: 0; animation: rcptRays 1.6s cubic-bezier(.16, 1, .3, 1) .08s both;
}
.rcpt-burst::after {
  content: ""; position: absolute; inset: 38%; border-radius: 50%; border: 2px solid rgba(255, 226, 122, .9);
  box-shadow: 0 0 22px rgba(240, 185, 11, .8), inset 0 0 18px rgba(240, 185, 11, .5); opacity: 0; animation: rcptRing 1.1s ease-out .14s both;
}
@keyframes rcptRays { 0% { opacity: 0; transform: scale(.25) rotate(-12deg); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2) rotate(16deg); } }
@keyframes rcptRing { 0% { opacity: .95; transform: scale(.15); } 100% { opacity: 0; transform: scale(2.1); } }
.rcpt-total b { animation: rcptFlare 1.4s ease-out .5s both; }
@keyframes rcptFlare { 0% { text-shadow: var(--tglow); } 30% { color: #FFF1B8; text-shadow: 0 0 26px rgba(255, 210, 60, 1), 0 0 4px #fff; } 100% { text-shadow: var(--tglow); } }

/* ==========================================================================
   Wallet picker
   ========================================================================== */
.wl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wl button, .wl a {
  width: 100%; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg-2); color: var(--text); cursor: pointer; text-decoration: none; font-size: var(--t-body); font-weight: 600; text-align: left;
  transition: border-color .15s, background-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.wl button:hover, .wl a:hover { border-color: var(--y-a40); background: var(--bg-3); box-shadow: 0 10px 24px -14px rgba(240, 185, 11, .5); transform: translateY(-1px); }
.wl img, .wl .wi { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.wl .wi { display: grid; place-items: center; background: var(--y-a10); box-shadow: 0 0 0 1px var(--y-a24) inset; font: 800 13px/1 var(--f-display); color: var(--y); }
.wl .tag { margin-left: auto; }

/* ==========================================================================
   Dev panel (?dev=fake only) — hazard-striped, never mistaken for the product
   ========================================================================== */
.dev {
  position: fixed; left: 16px; bottom: calc(16px + var(--tabbar-h)); z-index: 150; width: 280px; overflow: hidden;
  background: rgba(20, 22, 27, .97); border: 1px dashed rgba(240, 185, 11, .7); border-radius: 10px; box-shadow: var(--shadow-pop);
  font-size: var(--t-caption); color: var(--text-2);
}
.dev-h {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 12px; border: 0;
  background: repeating-linear-gradient(135deg, rgba(240, 185, 11, .2) 0 8px, rgba(11, 14, 17, .6) 8px 16px);
  color: var(--y-btn); cursor: pointer; font: 700 var(--t-overline)/1 var(--f-sans); letter-spacing: .1em; text-align: left;
}
.dev-h .dev-clock { margin-left: auto; color: var(--text); letter-spacing: 0; font-family: var(--f-num); background: rgba(11, 14, 17, .7); padding: 3px 6px; border-radius: 4px; }
.dev-h .chev2 { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px); transition: transform .15s ease; }
.dev.collapsed .dev-h .chev2 { transform: rotate(45deg); }
.dev.collapsed .dev-b { display: none; }
.dev-b { padding: 4px 12px 12px; border-top: 1px dashed rgba(240, 185, 11, .35); max-height: min(70vh, 560px); overflow-y: auto; scrollbar-width: thin; }
.dev-sec { padding-top: 10px; }
.dev-sec > span { display: block; font: 600 var(--t-overline)/1 var(--f-sans); letter-spacing: .1em; color: var(--text-3); margin-bottom: 6px; text-transform: uppercase; }
.dev-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-row button { height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); color: var(--text); cursor: pointer; font: 500 var(--t-caption)/1 var(--f-num); transition: border-color .15s, color .15s; }
.dev-row button:hover { border-color: var(--y-a40); color: var(--y); }
.dev-row button[aria-pressed="true"] { border-color: var(--y); color: var(--y); background: var(--y-a10); }
.dev-row button[disabled] { opacity: .45; cursor: not-allowed; }
.dev-who { margin-top: 6px; font: 400 var(--t-overline)/1.5 var(--f-code); color: var(--text-3); }
.dev-log { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font: 400 var(--t-overline)/1.5 var(--f-code); color: var(--text-3); min-height: 16px; }

@media (max-width: 760px) {
  .dlg-box { width: 100%; border-radius: 14px; }
  dialog.dlg { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
  .dlg-h { padding: 16px; }
  .dlg-b { padding: 14px 16px 16px; }
  .rcpt { padding: 0 16px 16px; }
  .rcpt-band { margin: 0 -16px 14px; }
  .steps { grid-auto-flow: row; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-2); }
  .dev { left: 8px; bottom: calc(8px + var(--tabbar-h)); width: 252px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.dlg[open] { animation: none; }
  .txs .spin { animation-duration: 2.4s; }
  .step.on b, .txs.ok .ok-dot { animation: none; }
  .rcpt::before, .rcpt::after, .rcpt-burst, .rcpt-burst::after, .rcpt-total b { animation: none; }
  .dlg-x:hover { transform: none; }
  .wl button:hover, .wl a:hover { transform: none; }
}

/* spec v1.6c 分笔入金: the parts of a larger deposit, sent one after another (status per part, the current one lit) */
.split-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: rgba(11, 14, 17, .35); }
.split-list .sp { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 9px 12px; font-size: var(--t-caption); color: var(--text-3); }
.split-list .sp + .sp { border-top: 1px solid var(--line-2); }
.split-list .sp-k { font-weight: 600; color: var(--text-2); white-space: nowrap; }
.split-list .sp-amt { font: 500 var(--t-data)/1.4 var(--f-num); color: var(--text); text-align: right; white-space: nowrap; }
.split-list .sp-st { text-align: right; white-space: nowrap; }
.split-list .sp-st small { display: block; font-size: var(--t-overline); color: var(--text-4); }
.split-list .sp-confirmed .sp-st { color: var(--up); }
.split-list .sp-failed .sp-st { color: var(--down); }
.split-list .sp.is-cur { background: linear-gradient(90deg, rgba(240, 185, 11, .08), transparent); }
.split-list .sp.is-cur .sp-st { color: var(--y); }
@media (max-width: 760px) {
  .split-list .sp { grid-template-columns: auto 1fr; }
  .split-list .sp-st { grid-column: 1 / -1; text-align: left; white-space: normal; }
}
