:root {
  color-scheme: dark;
  --bg: #070a12;
  --surface: rgba(14, 20, 34, 0.82);
  --surface-strong: #11192a;
  --line: rgba(145, 168, 205, 0.14);
  --text: #f3f7ff;
  --muted: #8d9bb2;
  --cyan: #36d5ff;
  --green: #2ee6a6;
  --violet: #9d8cff;
  --amber: #ffbd59;
  --danger: #ff6f7d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(54, 213, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(157, 140, 255, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .18; }
.ambient-one { width: 260px; height: 260px; background: var(--cyan); left: -180px; top: 32%; }
.ambient-two { width: 320px; height: 320px; background: var(--violet); right: -240px; top: 56%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(24px);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--text); text-decoration: none; width: fit-content; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(54,213,255,.55);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(54,213,255,.2), rgba(157,140,255,.08));
  color: var(--cyan);
  font-weight: 850;
  box-shadow: inset 0 0 20px rgba(54,213,255,.08), 0 0 30px rgba(54,213,255,.08);
}
.brand strong { display: block; font-size: 1.04rem; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .24em; }

nav { display: flex; align-items: center; gap: 2.2rem; }
nav a { position: relative; padding: 1.75rem 0 1.65rem; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; }
nav a:hover, nav a:focus-visible, nav a.active { color: var(--text); }
nav a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--cyan); content: ""; box-shadow: 0 0 12px var(--cyan); }
.capture-state { justify-self: end; display: flex; align-items: center; gap: .55rem; color: #c8d5e9; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.pulse-dot, .healthy i, .online-chip i, .footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(46,230,166,.1), 0 0 16px rgba(46,230,166,.75); animation: pulse 2.4s infinite; }

main { width: min(1500px, 92vw); margin: 0 auto; padding: 5.2rem 0 3rem; }
.intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5vw; align-items: center; margin-bottom: 4rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.1rem, 6vw, 6.6rem); line-height: .95; letter-spacing: -.065em; font-weight: 760; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--cyan), #8de8ff 42%, var(--violet)); background-clip: text; }
.intro-copy { max-width: 680px; margin: 1.8rem 0 0; color: #aab7ca; font-size: 1.05rem; }

.observation-card { display: flex; align-items: center; gap: 1.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(17,25,42,.92), rgba(11,16,28,.72)); box-shadow: var(--shadow); }
.orbit-wrap { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.orbit { width: 100%; transform: rotate(-90deg); }
.orbit-track, .orbit-value { fill: none; stroke-width: 8; }
.orbit-track { stroke: rgba(255,255,255,.07); }
.orbit-value { stroke: url(#none); stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 323.1; filter: drop-shadow(0 0 8px rgba(54,213,255,.55)); }
.orbit-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.orbit-center strong { font-size: 2.25rem; letter-spacing: -.08em; line-height: 1; }
.orbit-center strong span { color: var(--muted); font-size: 1.1rem; }
.orbit-center small { margin-top: .35rem; color: var(--muted); font-size: .62rem; letter-spacing: .2em; }
.status-label { display: flex; align-items: center; gap: .5rem; color: var(--amber); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.status-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.observation-copy h2 { margin: .5rem 0 .35rem; font-size: 1.45rem; }
.observation-copy p { margin: 0; color: var(--muted); font-size: .9rem; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.metric-card, .panel { position: relative; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.metric-card { min-height: 226px; padding: 1.35rem; border-radius: 20px; overflow: hidden; }
.metric-card::after { position: absolute; right: -35px; bottom: -55px; width: 130px; height: 130px; border-radius: 50%; background: currentColor; opacity: .06; filter: blur(2px); content: ""; }
.metric-card > div:nth-child(2) { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.metric-card span { color: #a9b7ca; font-size: .82rem; }
.metric-card strong { font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.045em; }
.metric-card p { min-height: 3.2em; margin: .8rem 0 0; color: #a9b7ca; font-size: .75rem; line-height: 1.48; }
.metric-card small { display: block; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid rgba(145,168,205,.09); color: #74839a; font-size: .68rem; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid currentColor; border-radius: 9px; font-weight: 800; opacity: .9; }
.metric-card.cyan { color: var(--cyan); }.metric-card.green { color: var(--green); }.metric-card.violet { color: var(--violet); }.metric-card.amber { color: var(--amber); }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { color: var(--text); }

.insight-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: var(--shadow); }
.insight-strip article { min-width: 0; padding: 1rem 1.2rem; background: rgba(10,15,27,.94); }
.insight-strip span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.insight-strip strong { display: block; margin: .18rem 0 .28rem; color: var(--text); font-size: 1.28rem; letter-spacing: -.04em; }
.insight-strip p { margin: 0; color: #8290a6; font-size: .67rem; line-height: 1.45; }

.news-section { scroll-margin-top: 100px; margin: 1rem 0; padding: 2rem; border: 1px solid rgba(54,213,255,.18); border-radius: 26px; background: linear-gradient(135deg, rgba(13,24,39,.94), rgba(15,15,31,.88)); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.section-heading > div > p:last-child { max-width: 760px; margin: .65rem 0 0; color: #94a3b8; font-size: .82rem; }
.news-controls { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: .45rem .7rem; min-width: 250px; }
.news-controls label { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.news-controls select { padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #0c1321; color: var(--text); font: inherit; font-size: .75rem; }
.news-freshness { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; color: var(--green); font-size: .65rem; font-weight: 750; letter-spacing: .06em; }
.news-freshness i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(46,230,166,.7); }
.news-freshness.error { color: var(--amber); }.news-freshness.error i { background: var(--amber); box-shadow: 0 0 10px rgba(255,189,89,.7); }
.news-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.news-panel { padding: 0; overflow: hidden; }
.news-list { display: grid; }
.news-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; padding: 1.25rem 1.35rem; border-bottom: 1px solid rgba(145,168,205,.1); transition: background .2s ease; }
.news-card:last-child { border-bottom: 0; }.news-card:hover { background: rgba(54,213,255,.035); }
.impact-score { display: grid; width: 42px; height: 42px; place-items: center; align-self: start; border: 1px solid rgba(54,213,255,.24); border-radius: 12px; background: rgba(54,213,255,.07); color: var(--cyan); font-size: .68rem; font-weight: 850; }
.impact-score.high { border-color: rgba(255,111,125,.28); background: rgba(255,111,125,.08); color: var(--danger); }
.news-meta { display: flex; flex-wrap: wrap; gap: .42rem .75rem; color: #7f8da2; font-size: .65rem; }
.news-category { color: var(--violet); font-weight: 780; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { margin: .32rem 0 .4rem; font-size: .92rem; line-height: 1.35; }
.news-card p { margin: 0; color: #95a2b5; font-size: .72rem; line-height: 1.5; }
.asset-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }.asset-tags span { padding: .16rem .4rem; border-radius: 5px; background: rgba(157,140,255,.1); color: #b9afff; font-size: .58rem; font-weight: 750; }
.source-link { align-self: center; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); font-size: .68rem; font-weight: 700; text-decoration: none; }.source-link:hover, .source-link:focus-visible { border-color: rgba(54,213,255,.42); background: rgba(54,213,255,.06); }
.research-chip { padding: .32rem .55rem; border-radius: 7px; background: rgba(255,189,89,.08); color: var(--amber); font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
.opportunity-list { display: grid; gap: .7rem; }
.opportunity-card { padding: .9rem; border: 1px solid rgba(157,140,255,.14); border-radius: 13px; background: rgba(157,140,255,.045); }
.opportunity-card strong { display: block; font-size: .8rem; }.opportunity-card p { margin: .35rem 0 .55rem; color: #919eb2; font-size: .68rem; line-height: 1.45; }.opportunity-card a { color: var(--violet); font-size: .64rem; text-decoration: none; }.opportunity-card a:hover { text-decoration: underline; }
.news-empty { padding: 2rem; color: var(--muted); font-size: .78rem; text-align: center; }
.news-disclaimer { margin: 1rem 0 0; color: #74839a; font-size: .65rem; text-align: right; }

.dashboard-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.panel { border-radius: var(--radius); padding: 1.5rem; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.panel-heading h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.panel-description { max-width: 620px; margin: -.65rem 0 1.25rem; color: #8795aa; font-size: .73rem; line-height: 1.5; }
.chart-legend { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .72rem; }
.chart-legend span { width: 18px; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.activity-panel { min-height: 430px; }
.chart-wrap { position: relative; height: 290px; }
#activityChart { width: 100%; height: 100%; overflow: visible; }
.chart-tooltip { position: absolute; z-index: 5; display: none; min-width: 120px; padding: .65rem .75rem; border: 1px solid rgba(54,213,255,.25); border-radius: 10px; background: #11192a; color: var(--text); font-size: .75rem; pointer-events: none; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.chart-tooltip strong { display: block; color: var(--cyan); font-size: .92rem; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.chart-footer > span { display: flex; align-items: center; gap: .5rem; }
.mini-line { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.chart-footer strong { color: var(--text); font-size: 1rem; }
.chart-footer small { color: var(--muted); font-weight: 500; }

.snapshot-tag, .audit-tag, .online-chip, .healthy { padding: .32rem .55rem; border-radius: 7px; font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .09em; }
.snapshot-tag { color: var(--muted); background: rgba(255,255,255,.05); }
.donut-layout { display: grid; grid-template-columns: 170px 1fr; gap: 1.2rem; align-items: center; min-height: 220px; }
.donut { position: relative; width: 162px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--cyan) 0 42%, var(--violet) 42% 52%, #2b3343 52% 100%); box-shadow: 0 0 50px rgba(54,213,255,.08); }
.donut::after { position: absolute; inset: 21px; border: 1px solid var(--line); border-radius: 50%; background: #0c1220; content: ""; }
.donut-center { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 2.3rem; line-height: 1; letter-spacing: -.06em; }
.donut-center span { color: var(--muted); font-size: .65rem; letter-spacing: .16em; }
.donut-legend { display: grid; gap: .8rem; }
.donut-legend > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: .55rem; }
.donut-legend span { color: var(--muted); font-size: .76rem; }
.donut-legend strong { font-size: .85rem; }
.dot { width: 7px; height: 7px; border-radius: 2px; }.dot.bitvavo { background: var(--cyan); }.dot.okx { background: var(--violet); }.dot.excluded { background: #2b3343; }
.rule-note { padding: .85rem 1rem; border: 1px solid rgba(157,140,255,.18); border-radius: 12px; background: rgba(157,140,255,.06); color: #aeb8ca; font-size: .75rem; }
.rule-note span { margin-right: .5rem; color: var(--violet); font-weight: 750; }

.healthy, .online-chip { display: flex; align-items: center; gap: .45rem; color: var(--green); background: rgba(46,230,166,.08); }
.healthy i, .online-chip i, .footer-status i { width: 6px; height: 6px; box-shadow: 0 0 10px rgba(46,230,166,.7); }
.source-list { display: grid; }
.source-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid rgba(145,168,205,.09); }
.source-row:last-child { border: 0; }
.source-logo { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: .65rem; font-weight: 850; }
.source-logo.cg { color: #b5ef70; background: rgba(181,239,112,.1); }.source-logo.bv { color: var(--cyan); background: rgba(54,213,255,.1); }.source-logo.ok { color: var(--text); background: rgba(255,255,255,.09); }.source-logo.fr { color: var(--violet); background: rgba(157,140,255,.1); }.source-logo.eu { color: var(--amber); background: rgba(255,189,89,.1); }
.source-row strong { display: block; font-size: .84rem; }.source-row small { display: block; color: var(--muted); font-size: .68rem; }.source-row em { color: var(--green); font-size: .68rem; font-style: normal; font-weight: 650; }
.audit-tag { color: var(--violet); background: rgba(157,140,255,.1); }
.bar-list { display: grid; gap: .85rem; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 50px; align-items: center; gap: .75rem; font-size: .72rem; }
.bar-row span { color: #bdc7d8; font-weight: 650; }.bar-row strong { text-align: right; font-size: .72rem; }
.bar-row > div { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar-row i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 10px rgba(157,140,255,.45); }
.conservative-note, .infra-note { margin: 1.35rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

.lower-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.coverage-item { display: grid; grid-template-columns: minmax(145px, .8fr) 1fr 60px; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(145,168,205,.09); }
.coverage-item:last-child { border: 0; }.coverage-item strong { display: block; font-size: .78rem; }.coverage-item span { color: var(--muted); font-size: .67rem; }.coverage-item em { color: var(--green); font-size: .68rem; font-style: normal; text-align: right; }.coverage-item.pending em { color: var(--amber); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }.progress i { display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }.pending .progress i { background: linear-gradient(90deg, var(--amber), #ff7d5f); }
.infra-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.infra-stats > div { padding: .8rem .45rem; border: 1px solid rgba(145,168,205,.1); border-radius: 12px; background: rgba(255,255,255,.02); text-align: center; }
.infra-stats span, .infra-stats small { display: block; color: var(--muted); font-size: .6rem; }.infra-stats strong { display: block; margin: .25rem 0 .12rem; font-size: 1.3rem; }
.attention-count { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,189,89,.25); border-radius: 50%; color: var(--amber); font-size: .72rem; }
.attention-item { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid rgba(145,168,205,.09); }.attention-item:last-child { border: 0; }
.attention-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(255,189,89,.08); color: var(--amber); font-size: .62rem; font-weight: 800; }.attention-item strong { font-size: .78rem; }.attention-item p { margin: .28rem 0 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; width: min(1500px, 92vw); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
footer > div { display: flex; align-items: center; gap: .55rem; color: var(--text); }.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: .72rem; }.footer-status { justify-self: end; display: flex; align-items: center; gap: .5rem; }

@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.metric-card, .panel, .observation-card { animation: reveal .65s both; }
.metrics > :nth-child(2) { animation-delay: .06s; }.metrics > :nth-child(3) { animation-delay: .12s; }.metrics > :nth-child(4) { animation-delay: .18s; }

@media (max-width: 1150px) {
  .intro { grid-template-columns: 1fr; }.observation-card { max-width: 520px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .insight-strip { grid-template-columns: repeat(2, 1fr); }
  .lower-grid { grid-template-columns: 1fr 1fr; }.attention-panel { grid-column: 1 / -1; }
  .news-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 5vw; }.topbar nav { display: none; }
  main { padding-top: 3.2rem; }.intro { margin-bottom: 2.5rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }.attention-panel { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }.news-controls { width: 100%; }.news-freshness { justify-content: flex-start; }
  .activity-panel { min-height: 390px; }.chart-wrap { height: 240px; }
  footer { grid-template-columns: 1fr; gap: .7rem; }.footer-status { justify-self: start; }
}

@media (max-width: 560px) {
  .capture-state { font-size: 0; }.capture-state .pulse-dot { display: block; }
  .metrics { grid-template-columns: 1fr; }.metric-card { min-height: 0; }
  .metric-card p { min-height: 0; }
  .insight-strip { grid-template-columns: 1fr; }
  .observation-card { align-items: flex-start; }.orbit-wrap { width: 112px; height: 112px; }.orbit-center strong { font-size: 1.75rem; }
  .donut-layout { grid-template-columns: 132px 1fr; }.donut { width: 128px; }.donut::after { inset: 17px; }
  .panel { padding: 1.15rem; }.panel-heading { align-items: center; }
  .chart-legend { display: none; }.chart-footer { align-items: flex-start; gap: .8rem; }
  .coverage-item { grid-template-columns: 1fr 58px; }.coverage-item .progress { grid-column: 1 / -1; grid-row: 2; }.coverage-item em { grid-column: 2; grid-row: 1; }
  .infra-stats { grid-template-columns: repeat(2, 1fr); }
  .news-section { padding: 1.15rem; }.news-card { grid-template-columns: 42px 1fr; padding: 1rem; }.source-link { grid-column: 2; justify-self: start; }
}

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