:root {
  color-scheme: dark;
  --ink: #f0f5ee;
  --muted: #8f9a90;
  --dim: #59635b;
  --surface: rgba(16, 21, 17, 0.88);
  --surface-strong: #121813;
  --line: rgba(219, 255, 226, 0.11);
  --mint: #69ff98;
  --lime: #c8ff38;
  --teal: #20d9b2;
  --orange: #ffb65b;
  --danger: #ff7185;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #080b09;
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(110px);
  opacity: .16;
  border-radius: 999px;
  z-index: 0;
}

.ambient-one { width: 420px; height: 420px; background: var(--mint); top: -180px; right: -120px; }
.ambient-two { width: 360px; height: 360px; background: #6f9bff; bottom: 10%; left: -240px; opacity: .08; }

.shell { position: relative; z-index: 1; width: min(1420px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 45px; height: 45px; display: grid; place-items: center;
  border: 1px solid rgba(105,255,152,.5); border-radius: 14px;
  background: linear-gradient(145deg, rgba(105,255,152,.18), rgba(105,255,152,.04));
  color: var(--mint); font-size: 30px; font-weight: 900; line-height: 1;
  box-shadow: inset 0 0 20px rgba(105,255,152,.08);
}
.brand strong, .brand small { display: block; letter-spacing: .14em; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 2px; font-size: 9px; color: var(--muted); }

.top-actions { display: flex; align-items: center; gap: 12px; }
.network-pill, .refresh-button, .unit-pill {
  border: 1px solid var(--line); background: rgba(12,16,13,.78); border-radius: 999px;
  color: #b6c0b7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.network-pill { padding: 11px 15px; }
.network-pill i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--muted); }
.network-pill i.online { background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.network-pill i.error { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
.refresh-button { padding: 10px 15px; cursor: pointer; transition: .2s ease; }
.refresh-button:hover { color: var(--ink); border-color: rgba(105,255,152,.42); transform: translateY(-1px); }
.refresh-button:disabled { opacity: .45; cursor: wait; transform: none; }
.refresh-button span { color: var(--mint); font-size: 16px; margin-right: 5px; }

.hero { display: grid; grid-template-columns: 1.45fr .55fr; gap: 70px; align-items: end; padding: 78px 0 54px; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.hero h1 { max-width: 880px; margin: 0; font-size: clamp(54px, 7.2vw, 112px); line-height: .86; letter-spacing: -.072em; font-weight: 730; }
.hero h1 em { color: var(--mint); font-style: normal; font-weight: 520; }
.hero-copy { max-width: 690px; margin: 31px 0 0; color: #a8b1aa; font-size: 17px; line-height: 1.7; }

.live-card { align-self: stretch; min-height: 228px; padding: 25px; border: 1px solid rgba(105,255,152,.18); border-radius: var(--radius); background: linear-gradient(145deg, rgba(105,255,152,.08), rgba(16,21,17,.8) 44%); box-shadow: var(--shadow); }
.live-card-top, .block-row { display: flex; align-items: center; justify-content: space-between; }
.live-card-top span { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #c8d0c9; }
.live-card-top b { color: var(--mint); font-size: 13px; }
.pulse-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(105,255,152,.08); }
.progress-track { height: 5px; margin: 25px 0 16px; overflow: hidden; background: rgba(255,255,255,.07); border-radius: 99px; }
.progress-track span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: inherit; transition: width .25s ease; }
.live-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.block-row { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.block-row strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.contract-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: rgba(12,16,13,.74); overflow: hidden; }
.contract-strip a { padding: 17px 19px; border-right: 1px solid var(--line); text-decoration: none; color: #99a29a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; transition: .2s ease; }
.contract-strip a:last-child { border-right: 0; }
.contract-strip a:hover { background: rgba(105,255,152,.06); color: var(--ink); }
.contract-strip span { margin-right: 9px; color: var(--mint); font-family: Inter, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .15em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 25px; }
.metric-card { position: relative; min-height: 194px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 38px rgba(0,0,0,.14); }
.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -65px; bottom: -65px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.accent-card { border-color: rgba(105,255,152,.25); background: linear-gradient(150deg, rgba(105,255,152,.105), var(--surface) 58%); }
.metric-label { display: flex; align-items: center; gap: 9px; color: #a4aea5; text-transform: uppercase; font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.metric-label span { color: var(--mint); font-family: ui-monospace, monospace; }
.metric-value { display: block; margin: 29px 0 7px; font-size: clamp(44px, 4.4vw, 67px); line-height: 1; letter-spacing: -.055em; }
.metric-value.compact { font-size: clamp(30px, 3vw, 47px); }
.metric-card p { margin: 0; color: var(--muted); font-size: 11px; }
.metric-card p b { color: var(--ink); font-weight: 600; }
.metric-spark { position: absolute; right: 23px; bottom: 27px; width: 62px; height: 22px; opacity: .5; }
.metric-spark::before, .metric-spark::after, .metric-spark span { content: ""; position: absolute; width: 17px; bottom: 0; border-radius: 3px 3px 0 0; background: var(--mint); }
.metric-spark::before { height: 8px; left: 0; opacity: .28; }
.metric-spark span { height: 14px; left: 22px; opacity: .55; }
.metric-spark::after { height: 22px; right: 0; }

.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(12,16,13,.7); }
.mini-grid div { display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; border-right: 1px solid var(--line); }
.mini-grid div:last-child { border: 0; }
.mini-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.mini-grid strong { font-size: 13px; }

.count-explainer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; margin-bottom: 14px; padding: 16px 19px; border: 1px solid rgba(255,182,91,.16); border-radius: 14px; background: linear-gradient(90deg, rgba(255,182,91,.065), rgba(12,16,13,.7)); }
.explainer-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,182,91,.1); color: var(--orange); font-size: 18px; font-weight: 800; }
.count-explainer strong { display: block; margin-bottom: 4px; font-size: 11px; }
.count-explainer p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.count-explainer code { padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.05); color: #d4ddd5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.market-card { position: relative; min-height: 190px; padding: 24px; overflow: hidden; border: 1px solid rgba(105,255,152,.18); border-radius: var(--radius); background: linear-gradient(145deg, rgba(105,255,152,.075), var(--surface) 56%); box-shadow: 0 16px 44px rgba(0,0,0,.15); }
.market-card-opensea { border-color: rgba(121,144,255,.2); background: linear-gradient(145deg, rgba(121,144,255,.085), var(--surface) 56%); }
.market-card::after { content: "$"; position: absolute; right: 22px; bottom: -32px; color: rgba(105,255,152,.045); font-size: 150px; font-weight: 900; line-height: 1; pointer-events: none; }
.market-card-opensea::after { content: "◇"; color: rgba(121,144,255,.055); font-size: 135px; }
.market-card header { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.market-card h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.market-card .section-kicker { margin-bottom: 7px; font-size: 8px; }
.source-pill { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #b6c0b7; font-size: 8px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: .2s ease; }
.source-pill:hover { color: var(--ink); border-color: rgba(105,255,152,.4); }
.market-value { position: relative; z-index: 1; display: block; margin: 27px 0 12px; font-size: clamp(36px, 4vw, 58px); line-height: .95; letter-spacing: -.055em; }
.market-details { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 10px; }
.market-details b { color: var(--ink); font-weight: 650; }
.market-details .positive { color: var(--mint); }
.market-details .negative { color: var(--danger); }

.purchase-comparison { margin-bottom: 14px; overflow: hidden; }
.comparison-header { align-items: center; }
.comparison-status {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.025); font-size: 9px;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.comparison-status.advantage { color: var(--mint); border-color: rgba(105,255,152,.25); background: rgba(105,255,152,.07); }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.comparison-option { position: relative; min-height: 230px; padding: 25px; overflow: hidden; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.comparison-option:last-child { border-right: 0; }
.comparison-option::after { content: ""; position: absolute; width: 190px; height: 190px; right: -115px; bottom: -115px; border: 1px solid rgba(255,255,255,.065); border-radius: 50%; }
.comparison-option.is-cheapest { background: linear-gradient(145deg, rgba(105,255,152,.09), rgba(255,255,255,.01) 58%); box-shadow: inset 0 0 0 1px rgba(105,255,152,.15); }
.opensea-option.is-cheapest { background: linear-gradient(145deg, rgba(121,144,255,.11), rgba(255,255,255,.01) 58%); box-shadow: inset 0 0 0 1px rgba(121,144,255,.18); }
.option-topline, .option-topline > div, .option-values, .option-breakdown { position: relative; z-index: 1; display: flex; align-items: center; }
.option-topline { justify-content: space-between; gap: 15px; }
.option-topline > div { gap: 10px; min-width: 0; }
.option-number { color: var(--mint); font-family: ui-monospace, monospace; font-size: 10px; }
.option-topline h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.cheapest-badge { display: none; padding: 6px 8px; border-radius: 6px; background: var(--mint); color: #061008; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.opensea-option .cheapest-badge { background: #8fa1ff; color: #080a12; }
.comparison-option.is-cheapest .cheapest-badge { display: inline-block; }
.option-primary { position: relative; z-index: 1; display: block; margin: 35px 0 13px; font-size: clamp(38px, 4.5vw, 66px); line-height: .9; letter-spacing: -.06em; }
.option-values { flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: 11px; }
.option-values b { color: var(--ink); font-weight: 650; }
.option-breakdown { justify-content: space-between; gap: 15px; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; }
.option-breakdown b { color: #abb5ac; font-weight: 600; }
.comparison-footer { display: flex; justify-content: space-between; gap: 35px; padding: 15px 24px; border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.comparison-footer p { margin: 0; color: var(--dim); font-size: 9px; line-height: 1.55; }
.comparison-footer p:first-child { color: #b9c3ba; font-weight: 650; }

.intelligence-panel { margin-bottom: 14px; overflow: hidden; }
.intelligence-header { align-items: flex-end; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--line); gap: 1px; }
.insight-card { min-width: 0; min-height: 205px; padding: 23px 24px; background: rgba(12,16,13,.94); }
.insight-card-featured { background: linear-gradient(145deg, rgba(105,255,152,.1), rgba(12,16,13,.94) 62%); }
.insight-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #aab4ab; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.insight-topline span { min-width: 0; }
.insight-topline b { flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--mint); font-size: 8px; letter-spacing: .1em; }
.insight-value { display: block; margin: 29px 0 12px; font-size: clamp(32px, 3.1vw, 49px); line-height: .94; letter-spacing: -.052em; }
.insight-value.positive { color: var(--mint); }
.insight-value.negative { color: var(--danger); }
.insight-value.neutral { color: #c9d1ca; }
.insight-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.insight-card p strong { color: var(--ink); font-weight: 650; }
.intelligence-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 17px 24px; border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.intelligence-footer p { margin: 0; color: var(--dim); font-size: 11px; line-height: 1.6; }
.intelligence-footer strong { color: #b9c3ba; }

.price-history-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 14px; margin-bottom: 14px; }
.price-chart-panel { min-width: 0; overflow: hidden; }
.chart-controls { display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; }
.chart-control-block { display: grid; gap: 5px; }
.chart-control-block > span { color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.chart-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.18); }
.chart-toggle button { min-width: 39px; min-height: 31px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--dim); cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.chart-toggle button.active { background: rgba(105,255,152,.12); color: var(--mint); }
.chart-current { color: var(--mint); font-family: ui-monospace, monospace; font-size: 13px; }
.price-legend { display: flex; flex-wrap: wrap; gap: 15px; padding: 0 24px 4px; color: var(--muted); font-size: 9px; }
.price-legend i { width: 16px; height: 2px; display: inline-block; margin: 0 5px 3px 0; }
.legend-anvil, .legend-yard { background: var(--mint); }
.legend-opensea { border-top: 2px dashed #8fa1ff; }
.price-chart-wrap { height: 270px; margin-top: 0; }
#costHistoryChart, #yardPriceChart, #tierHistoryChart, #activityHistoryChart { width: 100%; height: 100%; overflow: visible; }
.market-grid-line { stroke: rgba(255,255,255,.055); stroke-width: 1; }
.market-axis-label { fill: #69736b; font-size: 9px; font-family: ui-monospace, monospace; }
.chart-line-anvil, .chart-line-opensea, .chart-line-yard, .tier-history-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-line-anvil { stroke: var(--mint); stroke-width: 2.4; filter: drop-shadow(0 0 7px rgba(105,255,152,.26)); }
.chart-line-opensea { stroke: #8fa1ff; stroke-width: 1.8; stroke-dasharray: 7 7; opacity: .9; }
.chart-line-yard { stroke: var(--mint); stroke-width: 2.2; }
.yard-price-area { fill: url(#yardPriceGradient); opacity: .32; }
.chart-end-dot { fill: var(--mint); stroke: #0a0e0b; stroke-width: 3; vector-effect: non-scaling-stroke; }

.activation-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.tier-history-panel, .activity-bars-panel { min-width: 0; overflow: hidden; }
.tier-chart-legend, .activity-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; color: var(--muted); font-size: 8px; }
.tier-chart-legend span, .activity-legend span { white-space: nowrap; }
.tier-chart-legend i, .activity-legend i { width: 13px; height: 2px; display: inline-block; margin: 0 4px 3px 0; background: var(--tier); }
.activity-legend i { height: 7px; border-radius: 2px; }
.activity-activation { background: var(--mint) !important; }
.activity-upgrade { background: var(--lime) !important; }
.activity-void { background: var(--danger) !important; }
.activation-chart-wrap { height: 300px; }
.tier-history-line { stroke: var(--series); stroke-width: 2; opacity: .94; }
.activity-bar { opacity: .78; rx: 2; }
.activity-bar.activation { fill: var(--mint); }
.activity-bar.upgrade { fill: var(--lime); }
.activity-bar.void { fill: var(--danger); }
.activity-bar:hover { opacity: 1; }

.protocol-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 14px; padding: 18px 24px; }
.toolbar-copy { display: grid; gap: 4px; }
.toolbar-copy .section-kicker { margin: 0; }
.toolbar-copy strong { font-size: 14px; }
.toolbar-copy > span { max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.toolbar-controls { display: flex; align-items: flex-end; gap: 14px; flex: 0 0 auto; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 44px rgba(0,0,0,.15); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; }
.panel-header h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.panel-header .section-kicker { margin-bottom: 8px; font-size: 8px; }
.panel-note { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; }
.legend i { width: 16px; height: 2px; display: inline-block; margin: 0 5px 3px 0; }
.legend-active { background: var(--mint); }
.legend-stored { border-top: 2px dashed var(--orange); }
.legend-vault { background: #7990ff; }

.chart-wrap { position: relative; height: 310px; margin: 0 18px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 12px; }
.chart-grid { stroke: rgba(255,255,255,.055); stroke-width: 1; }
.evolution-panel { overflow: hidden; }
.evolution-series-grid { position: relative; display: grid; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.evolution-series-card { min-width: 0; padding-top: 18px; background: rgba(12,16,13,.88); }
.vault-series-card { background: rgba(12,15,18,.9); }
.series-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; }
.series-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.series-index { color: var(--mint); font-family: ui-monospace, monospace; font-size: 9px; }
.vault-series-card .series-index { color: #8fa1ff; }
.series-heading strong { font-size: 12px; }
.series-values { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 13px; text-align: right; }
.series-values b { color: var(--ink); font-family: ui-monospace, monospace; font-size: 11px; }
.series-values span { color: var(--orange); font-family: ui-monospace, monospace; font-size: 9px; }
.series-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 9px 24px 0; color: var(--muted); font-size: 8px; }
.series-legend i { width: 15px; height: 2px; display: inline-block; margin: 0 5px 3px 0; }
.evolution-chart-wrap { height: 190px; margin: 0 18px 10px; }
#activeEvolutionChart, #vaultEvolutionChart { width: 100%; height: 100%; overflow: visible; }
.chart-line-active, .chart-line-stored, .chart-line-vault { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-line-active { stroke: var(--mint); filter: drop-shadow(0 0 6px rgba(105,255,152,.3)); }
.chart-line-stored { stroke: var(--orange); stroke-width: 1.8; stroke-dasharray: 7 6; opacity: .9; }
.chart-line-vault { stroke: #7990ff; opacity: .86; }
.series-area { opacity: .26; }
.series-end-dot { stroke: #0a0e0b; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.active-dot { fill: var(--mint); }
.stored-dot { fill: var(--orange); }
.vault-dot { fill: #8fa1ff; }
.chart-label { fill: #69736b; font-size: 9px; font-family: ui-monospace, monospace; }
.chart-axis { display: flex; justify-content: space-between; padding: 4px 25px 19px; color: var(--dim); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.donut-layout { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 23px; padding: 20px 25px 32px; }
.donut { position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#202720 0 100%); transition: background .5s ease; }
.donut::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #111612; box-shadow: inset 0 0 25px rgba(0,0,0,.5); }
.donut > div { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; }
.donut strong { font-size: 32px; line-height: 1; letter-spacing: -.06em; }
.donut span { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.tier-legend { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.tier-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.tier-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--tier); box-shadow: 0 0 9px color-mix(in srgb, var(--tier), transparent 40%); }
.tier-legend strong { color: var(--ink); font-family: ui-monospace, monospace; font-size: 11px; }

.unit-pill { padding: 7px 10px; font-size: 8px; }
.burn-panel { min-height: 350px; }
.bar-chart { height: 245px; display: flex; align-items: end; gap: 7px; padding: 22px 25px 12px; border-top: 1px solid rgba(255,255,255,.025); }
.burn-bar { position: relative; flex: 1; min-width: 3px; height: max(2px, var(--h)); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--lime), rgba(105,255,152,.25)); opacity: .72; transition: .25s ease; }
.burn-bar:hover { opacity: 1; filter: drop-shadow(0 0 8px rgba(200,255,56,.35)); }
.burn-bar:hover::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: #0b0f0c; color: var(--ink); font-size: 9px; z-index: 5; }

.live-unit { color: var(--mint); }
.live-unit i { width: 5px; height: 5px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--mint); }
.feed { max-height: 277px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,.025); scrollbar-color: #314034 transparent; }
.feed-placeholder { padding: 40px 24px; color: var(--dim); font-size: 11px; text-align: center; }
.feed-item { display: grid; grid-template-columns: 35px 1fr auto; gap: 11px; align-items: center; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; transition: .2s ease; }
.feed-item:last-child { border: 0; }
.feed-item:hover { background: rgba(105,255,152,.04); }
.feed-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(105,255,152,.08); color: var(--mint); font-size: 14px; }
.feed-icon.upgrade { color: var(--lime); background: rgba(200,255,56,.08); }
.feed-icon.void { color: var(--danger); background: rgba(255,113,133,.08); }
.feed-icon.exit { color: #8fa1ff; background: rgba(121,144,255,.09); }
.feed-icon.entry { color: var(--orange); background: rgba(255,182,91,.08); }
.feed-copy strong, .feed-copy span { display: block; }
.feed-copy strong { margin-bottom: 4px; font-size: 11px; }
.feed-copy span { color: var(--muted); font-size: 9px; }
.feed-block { color: var(--dim); font-family: ui-monospace, monospace; font-size: 9px; }

.tiers-economy { margin-top: 14px; overflow: hidden; }
.table-note { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.tier-table { border-top: 1px solid var(--line); }
.tier-row { display: grid; grid-template-columns: 1.35fr .75fr 1fr 1fr; align-items: center; min-height: 54px; padding: 0 25px; border-bottom: 1px solid rgba(255,255,255,.05); color: #adb6ae; font-size: 12px; }
.tier-row:last-child { border: 0; }
.tier-row strong { color: var(--ink); }
.tier-head { min-height: 39px; color: var(--dim); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tier-dot { width: 8px; height: 8px; display: inline-block; margin-right: 9px; border-radius: 2px; }
.t0 { background: #dfffe6; }.t1 { background: #8cffaa; }.t2 { background: #42ef7f; }.t3 { background: var(--lime); }.t4 { background: var(--teal); }
.highlight-row { background: linear-gradient(90deg, rgba(32,217,178,.08), transparent 72%); }
.upgrade-callout { display: flex; align-items: center; gap: 15px; margin: 12px; padding: 16px 19px; border: 1px solid rgba(200,255,56,.15); border-radius: 13px; background: rgba(200,255,56,.045); }
.callout-icon { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(200,255,56,.1); color: var(--lime); }
.upgrade-callout p { margin: 0; color: #a6afa7; font-size: 11px; line-height: 1.6; }
.upgrade-callout strong, .upgrade-callout b { color: var(--ink); }

.method-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 14px 0 45px; padding: 21px 24px; border: 1px dashed rgba(105,255,152,.2); border-radius: 16px; background: rgba(105,255,152,.025); }
.method-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(105,255,152,.09); color: var(--mint); font-size: 23px; }
.method-card h3 { margin: 0 0 5px; font-size: 12px; }
.method-card p { max-width: 950px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.method-card a { color: var(--mint); font-size: 10px; text-decoration: none; white-space: nowrap; }

.footer { min-height: 80px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.footer span { color: var(--mint); padding: 0 5px; }

.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 430px; padding: 13px 16px; border: 1px solid rgba(255,113,133,.25); border-radius: 12px; background: #171012; color: #ffadb9; box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .live-card { min-height: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .contract-strip { grid-template-columns: repeat(2, 1fr); }
  .contract-strip a:nth-child(2) { border-right: 0; }
  .contract-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-grid div:nth-child(3n) { border-right: 0; }
  .mini-grid div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .price-history-grid, .activation-history-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protocol-toolbar { align-items: flex-start; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1420px); }
  .topbar { height: 76px; }
  .network-pill { display: none; }
  .hero { padding: 50px 0 38px; }
  .hero h1 { font-size: clamp(50px, 17vw, 72px); }
  .hero-copy { font-size: 14px; }
  .contract-strip, .metric-grid, .mini-grid, .market-grid, .comparison-grid { grid-template-columns: 1fr; }
  .contract-strip a, .contract-strip a:nth-child(2), .metric-card, .mini-grid div, .mini-grid div:nth-child(2), .mini-grid div:nth-child(3n) { border-right: 0; }
  .contract-strip a:not(:last-child), .mini-grid div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .metric-card { min-height: 170px; }
  .mini-grid div { min-height: 48px; }
  .panel-header { flex-direction: column; }
  .chart-controls { justify-content: flex-start; flex-wrap: wrap; width: 100%; }
  .protocol-toolbar { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px; }
  .toolbar-controls { flex-wrap: wrap; }
  .comparison-header { align-items: flex-start; }
  .comparison-status { white-space: normal; }
  .comparison-option { border-right: 0; border-bottom: 1px solid var(--line); }
  .comparison-option:last-child { border-bottom: 0; }
  .comparison-footer { flex-direction: column; gap: 8px; }
  .intelligence-header { align-items: flex-start; }
  .insight-grid, .intelligence-footer { grid-template-columns: 1fr; }
  .insight-card { min-height: 180px; padding: 21px 18px; }
  .insight-value { font-size: 39px; }
  .chart-wrap { height: 245px; }
  .series-heading { align-items: flex-start; padding-inline: 18px; }
  .series-values { display: grid; gap: 3px; }
  .series-legend { padding-inline: 18px; }
  .evolution-chart-wrap { height: 170px; margin-inline: 10px; }
  .price-chart-wrap, .activation-chart-wrap { height: 250px; }
  .tier-chart-legend, .activity-legend { justify-content: flex-start; }
  .donut-layout { grid-template-columns: 125px 1fr; gap: 16px; }
  .donut { width: 125px; }
  .tier-row { grid-template-columns: 1.3fr .7fr 1fr; padding: 0 15px; font-size: 10px; }
  .tier-row > :last-child { display: none; }
  .method-card { grid-template-columns: auto 1fr; }
  .method-card a { grid-column: 2; }
  .footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}

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