/* Binance Withdrawal Watch — copied from safu-watch, which carries the kimchi-watch / otc-launchpad-terminal
   web tokens (01_brand-assets/tokens) unchanged. Chart and table additions sit at the end. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono/GeistMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090B0C;
  --panel: #15181A;
  --widget: #1E2225;
  --widget-raised: #262B2E;
  --widget-line: #363D41;
  --line: #252C30;
  --line-strong: #404B51;
  --text: #FFFFFF;
  --text-2: #BBC5CA;
  --text-3: #8696A0;
  --text-4: #57656E;
  --green: #00FFA3;
  --green-2: #00C076;
  --green-soft: #61D38A;
  --green-dark: #06754E;
  --amber: #F5B445;
  --r-panel: 20px;
  --r-card: 16px;
  --r-widget: 10px;
  --r-btn: 8px;
  --r-chip: 4px;
  --font: "Geist", system-ui, sans-serif;
  --font-body: "Inter", "Geist", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r-chip); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--green); color: #090B0C; border-radius: var(--r-btn); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 24px; }
.na { color: var(--text-4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(9, 11, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1312px; height: 68px; margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; min-height: 40px; flex-shrink: 0; }
.brand img { display: block; width: 136px; height: auto; }
.nav-divider { width: 1px; height: 24px; background: var(--line-strong); }
.nav-product { font-size: 14px; font-weight: 600; white-space: nowrap; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
.dot.live { background: var(--green); }
.dot.loading { background: var(--text-3); animation: pulse 1.4s ease-in-out infinite; }
.dot.warning { background: var(--amber); }
@keyframes pulse { 50% { opacity: .3; } }

/* ── buttons, chips, pills ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { color: #090B0C; background: var(--green); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-secondary { color: var(--text); background: var(--widget); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-secondary:hover { background: var(--widget-raised); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.chip-sm { padding: 2px 8px; font-size: 11px; }
.chip-btn { transition: border-color .15s, color .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-hint { color: var(--green-soft); font-family: var(--font); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; color: #D9E0EB; background: rgba(255, 255, 255, .08); border-radius: var(--r-chip); font-size: 11px; white-space: nowrap; }
.tag.real { color: #252C30; background: var(--green); font-weight: 600; }
.tag.separate { color: #090B0C; background: var(--amber); font-weight: 600; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sw-green { background: var(--green); } .sw-light { background: var(--text-2); } .sw-grey { background: var(--text-3); }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; color: var(--green); border: 1px solid rgba(0, 255, 163, .3); border-radius: 999px; font-size: 13px; }
.kicker-pill i, .kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.link-pill { display: inline-flex; align-items: center; padding: 5px 12px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; transition: background .15s, color .15s; }
.link-pill:hover { color: var(--text); background: var(--widget); }

/* ── banner ── */
.banner { display: none; margin-top: 16px; padding: 12px 16px; color: #FFD6CC; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); border-radius: var(--r-widget); font-family: var(--font-body); font-size: 13px; }
.banner.show { display: block; }

/* ── hero ── */
.hero { position: relative; display: grid; justify-items: center; gap: 16px; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; background: radial-gradient(900px 380px at 50% 0%, rgba(4, 62, 69, .55), transparent 72%); pointer-events: none; }
.hero h1 { max-width: 860px; font-size: 48px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.lede b { color: var(--green); font-weight: 600; }
.lede { max-width: 720px; color: var(--text-3); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* ── KPI widgets ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { min-width: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.kpi span { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.kpi strong { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi strong.accent { color: var(--green); }
.kpi strong.na { color: var(--text-4); }
.kpi small { display: block; margin-top: 4px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── sections & panels ── */
.section { padding-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head > div:first-child { min-width: 0; max-width: 760px; }
.section-head h2 { margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.section-head p { margin-top: 8px; color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.section.two-col { align-items: start; }
.panel { position: relative; min-width: 0; padding: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel-flush { padding: 0; }
.panel-glow { background: radial-gradient(120% 90% at 0% 100%, rgba(4, 62, 69, .55), transparent 60%), linear-gradient(160deg, #161A1C, #101415); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-bar h3, .panel-title { font-size: 16px; font-weight: 500; }
.panel-title { margin-bottom: 16px; }
.note { margin-top: 16px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; line-height: 1.6; }
.note b { color: var(--text-2); font-weight: 500; }
.note a { color: var(--green-soft); }
.note-pad { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--line); }

/* ── tables ── */
.table-wrap { max-height: 560px; overflow: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; color: var(--text-3); background: var(--panel); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--text-2); font-variant-numeric: tabular-nums; }
td b { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-real td { background: rgba(0, 255, 163, .05); }
.right { text-align: right; }
.when b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.when small { display: block; color: var(--text-3); font-size: 11px; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 460px; }
.platform-chips b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-cell { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin small { display: block; max-width: 220px; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
td.ca { white-space: nowrap; }
.ca-btn { white-space: nowrap; padding: 2px 6px; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: var(--r-chip); font-family: var(--font-mono); font-size: 12px; }
.ca-btn:hover { color: var(--text); border-color: var(--line-strong); }
.logo { width: 28px; height: 28px; flex-shrink: 0; object-fit: cover; background: var(--widget); border: 1px solid var(--widget-line); border-radius: 50%; }
.logo.ph { display: grid; place-items: center; color: var(--text-2); font-family: var(--font-mono); font-size: 10px; }

/* ── sources ── */
.cta-panel { display: grid; align-content: start; gap: 12px; padding: 28px; }
.cta-panel h2 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.cta-panel p { color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.code-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-widget); }
.code-line span { color: var(--text-3); font-size: 13px; }
.code-line code { color: var(--green); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.source-grid dt, .source-grid dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.source-grid dt { color: var(--text-3); font-family: var(--font-body); }
.source-grid dd { color: var(--text-2); text-align: right; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; padding-bottom: 48px; color: var(--text-3); border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 13px; }
.footer span { max-width: 760px; line-height: 1.55; }
.footer a { color: var(--green-soft); }
.footer a:hover { text-decoration: underline; }

/* ── SAFU Watch additions ── */
/* Chart series colours, checked with the dataviz validate_palette script on #15181A and #090B0C
   (dark mode): lightness band, chroma floor, CVD and normal-vision separation, 3:1 contrast all pass.
   The brand green #00FFA3 sits outside the chart lightness band, so it stays the UI accent. */
:root { --series-bsc: #1baf7a; --series-sol: #3987e5; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-2); font-size: 12px; }
.legend span, .chain { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.key-bsc { background: var(--series-bsc); }
.key-sol { background: var(--series-sol); }
.chain { color: var(--text-2); font-size: 12px; }

.chart-panel { padding: 20px 20px 12px; }
.chart { position: relative; width: 100%; min-height: 220px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-svg .tick { fill: var(--text-3); font-family: var(--font-mono); font-size: 10px; }
.chart-svg .bar-bsc { fill: var(--series-bsc); }
.chart-svg .bar-solana { fill: var(--series-sol); }
.chart-svg .marker { stroke: var(--text-2); stroke-width: 1; }
.chart-svg .marker-label { fill: var(--text); font-size: 11px; font-weight: 500; }
.chart-svg .value-label { fill: var(--text-2); font-family: var(--font-mono); font-size: 10px; }
.chart-svg .hit { fill: transparent; }
.chart-svg .hit.on { fill: rgba(255, 255, 255, .06); }
.chart-svg .bar-muted { fill: var(--text-4); } /* the day before: de-emphasis, named by the marker labels */
.chart-svg .marker-label.muted { fill: var(--text-3); font-weight: 400; }
.chart-svg .bar-partial { fill-opacity: 0.45; } /* the current hour: named in the note under the chart and in the tooltip */
.seg { display: inline-flex; padding: 3px; background: var(--widget); border: 1px solid var(--line); border-radius: var(--r-btn); }
.seg-btn { min-height: 32px; padding: 4px 14px; color: var(--text-3); background: transparent; border: 0; border-radius: 6px; font-size: 13px; font-weight: 500; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { color: var(--text); background: var(--widget-raised); }
.seg-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.mono-addr { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.tooltip { position: absolute; top: 20px; z-index: 5; display: none; width: 188px; padding: 10px 12px; color: var(--text-2); background: var(--widget); border: 1px solid var(--widget-line); border-radius: var(--r-widget); font-size: 12px; pointer-events: none; }
.tooltip.show { display: block; }
.tip-head { margin-bottom: 6px; color: var(--text-3); font-size: 11px; }
.tip-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.tip-row b { min-width: 28px; color: var(--text); font-family: var(--font-mono); font-weight: 600; text-align: right; }
.tip-row .key { width: 10px; height: 2px; border-radius: 1px; }
.tip-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--widget-line); color: var(--text-3); }

.table-view { margin-top: 12px; border-top: 1px solid var(--line); }
.table-view summary { padding: 12px 0 4px; color: var(--text-3); font-size: 12px; cursor: pointer; }
.table-view summary:hover { color: var(--text); }
.table-wrap-short { max-height: 280px; margin-top: 8px; }
.table-wrap-auto { max-height: none; }
table.table-compact { min-width: 520px; }
.table-compact th, .table-compact td { padding: 9px 16px; }
.theme-panel { margin-top: 12px; }
.theme-panel table { min-width: 760px; }
.theme-panel th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.theme-panel th.right { max-width: 120px; }
td.rule { color: var(--text-3); font-size: 11px; max-width: 320px; white-space: normal; word-break: break-word; }

.revived-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.revived-card { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s; }
.revived-card:hover { border-color: var(--line-strong); }
.revived-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.revived-head .coin > div { min-width: 0; }
.revived-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.revived-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.revived-metrics span { display: block; color: var(--text-3); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.revived-metrics b { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text); font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.mult { padding: 1px 6px; color: #090B0C; background: var(--green); border-radius: var(--r-chip); font-family: var(--font); font-size: 11px; font-style: normal; font-weight: 600; }
.revived-foot { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 11px; }
.empty { color: var(--text-3); font-size: 13px; }
/* "How it is counted": values here are sentences, so the label column is fixed and values wrap
   left-aligned beside it instead of pushing the labels into one word per line */
#sources .source-grid { grid-template-columns: minmax(120px, 168px) minmax(0, 1fr); column-gap: 20px; }
#sources .source-grid dd { text-align: left; overflow-wrap: anywhere; line-height: 1.5; }
@media (max-width: 680px) {
  #sources .source-grid { grid-template-columns: minmax(0, 1fr); }
  #sources .source-grid dt { padding-bottom: 2px; border-bottom: 0; }
  #sources .source-grid dd { padding-top: 0; }
}

/* ── responsive (1120 / 900 / 680) ── */
@media (max-width: 1120px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-chips { justify-content: flex-start; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .section.two-col { gap: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .kpi-grid, .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-5 .kpi:last-child { grid-column: 1 / -1; }
  .hero h1 { font-size: 38px; }
  .nav-product, .nav-divider { display: none; }
}
@media (max-width: 680px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav .btn { display: none; }
  .brand img { width: 128px; }
  .hero { padding: 48px 0 28px; }
  .hero::before { inset: 0 -16px; } /* match the 16px gutter so the glow never widens the page */
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .kpi-grid { gap: 8px; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 19px; }
  .kpi small { white-space: normal; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 26px; }
  .panel { padding: 16px; }
  .panel-flush { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
