/* neb-ui-extra.css: block maturity cell + totals strip (Blocks), round details (index),
 * reward split (CoinInfos), extra tiles (YourStats). Built on the Material Dashboard tokens;
 * dark mode follows body.dark-version like the rest of the site. 2026-11-11 */

:root {
  --neb-accent: #FF6B35;            /* NEB orange: maturing */
  --neb-ok: #43A047;                /* mature / credited */
  --neb-bad: #E53935;               /* orphaned */
  --neb-track: #E9ECEF;
  --neb-ink: #344767;               /* Material Dashboard text-dark */
  --neb-muted: #7B809A;             /* Material Dashboard text-secondary */
  --neb-line: #EEF0F3;
}
body.dark-version {
  --neb-track: #2B3245;
  --neb-ink: #E9ECEF;
  --neb-muted: #A0A6BC;
  --neb-line: rgba(255, 255, 255, .08);
}

.neb-num { font-variant-numeric: tabular-nums; }

/* ---- status pill ---- */
.neb-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .12rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
}
.neb-pill::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.neb-pill--maturing { color: #C2410C; background: rgba(255, 107, 53, .12); }
.neb-pill--mature   { color: #2E7D32; background: rgba(67, 160, 71, .12); }
.neb-pill--orphaned { color: #C62828; background: rgba(229, 57, 53, .12); }
body.dark-version .neb-pill--maturing { color: #FF9A6E; background: rgba(255, 107, 53, .18); }
body.dark-version .neb-pill--mature   { color: #81C784; background: rgba(67, 160, 71, .18); }
body.dark-version .neb-pill--orphaned { color: #EF9A9A; background: rgba(229, 57, 53, .2); }

/* ---- block maturity: pill on top, a thin track with a tick at the payable point below ---- */
.neb-mat { display: grid; row-gap: .35rem; min-width: 14.5rem; max-width: 17rem; }
.neb-mat-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.neb-mat-track { position: relative; height: .3rem; border-radius: 999px; background: var(--neb-track); overflow: hidden; }
.neb-mat-track > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--neb-accent); }
.neb-mat-meta { font-size: .72rem; color: var(--neb-muted); white-space: nowrap; }
.neb-mat-meta b { color: var(--neb-ink); font-weight: 600; }

/* ---- totals strip above the blocks table ---- */
.neb-totals { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; padding: .25rem 0 1rem; }
.neb-total { min-width: 9rem; }
.neb-total-label { font-size: .78rem; color: var(--neb-muted); margin: 0; }
.neb-total-value { font-size: 1.35rem; font-weight: 700; color: var(--neb-ink); line-height: 1.25; margin: .1rem 0; font-variant-numeric: tabular-nums; }
.neb-total-value small { font-size: .8rem; font-weight: 600; color: var(--neb-muted); margin-left: .2rem; }
.neb-total-detail { font-size: .75rem; color: var(--neb-muted); margin: 0; }

/* ---- label / value list (round details on index) ---- */
.neb-kv { list-style: none; margin: 0; padding: 0; }
.neb-kv li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .42rem 0; border-top: 1px solid var(--neb-line); font-size: .82rem; }
.neb-kv li:first-child { border-top: 0; }
.neb-kv span { color: var(--neb-muted); }
.neb-kv b { color: var(--neb-ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* ---- reward split (CoinInfos) ---- */
.neb-split-bar { display: flex; height: .9rem; border-radius: 999px; overflow: hidden; background: var(--neb-track); margin: .75rem 0 1rem; }
.neb-split-bar > span { display: block; height: 100%; }
.neb-split-bar > span + span { box-shadow: inset 2px 0 0 #fff; }
body.dark-version .neb-split-bar > span + span { box-shadow: inset 2px 0 0 #1a2035; }
.neb-split-miners  { background: var(--neb-accent); }
.neb-split-fee     { background: #344767; }
.neb-split-project { background: #9AA3B5; }
body.dark-version .neb-split-fee { background: #E9ECEF; }
.neb-split-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem 1.5rem; }
.neb-split-legend .k { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--neb-muted); margin: 0; }
.neb-split-legend .k i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.neb-split-legend .v { font-size: 1.05rem; font-weight: 700; color: var(--neb-ink); margin: .1rem 0 0; font-variant-numeric: tabular-nums; }
.neb-split-legend .v small { font-size: .78rem; font-weight: 600; color: var(--neb-muted); margin-left: .25rem; }

/* average-effort footer row of the blocks table: readable in dark mode too */
body.dark-version #blockListTable tr.bg-gray-100 { background: rgba(255, 255, 255, .04) !important; }
body.dark-version #blockListTable tr.bg-gray-100 td { color: var(--neb-ink); }

/* round effort meter on index (replaces the donut, 2026-11-11): scale 0-200 %, tick at 100 % */
.neb-meter { position: relative; height: .75rem; border-radius: 999px; background: var(--neb-track); overflow: hidden; }
.neb-meter > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #1A73E8; transition: width .6s ease; }
.neb-meter.is-over > i { background: var(--neb-accent); }
.neb-meter-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; opacity: .9; }
body.dark-version .neb-meter-mark { background: #1a2035; }
.neb-meter-scale { display: flex; justify-content: space-between; gap: .5rem; margin-top: .35rem; font-size: .72rem; color: var(--neb-muted); }
.neb-meter-scale span:nth-child(2) { text-align: center; }
@media (prefers-reduced-motion: reduce) { .neb-meter > i { transition: none; } }
/* line chart that fills its (stretched) card */
.neb-chart-fill { position: relative; flex: 1 1 auto; min-height: 300px; }

/* ---- MCA reward ramp (2026-12-02): launch emission curve with a "you are here" triangle ---- */
.mca-ramp { position: relative; font-size: .75rem; line-height: 1.3; }
.mca-ramp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.mca-ramp-label { font-weight: 600; color: #344767; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.mca-ramp-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: #7b809a; color: #fff; font-size: .65rem; font-weight: 700; cursor: help; outline: none; }
.mca-ramp-tip { position: absolute; right: -6px; bottom: calc(100% + 8px); width: 290px; max-width: 80vw; padding: 10px 12px; border-radius: 8px;
  background: #1a2035; color: #fff; font-weight: 400; font-size: .75rem; line-height: 1.45; text-transform: none; letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s; z-index: 50; text-align: left; }
.mca-ramp-tip::after { content: ""; position: absolute; right: 10px; top: 100%; border: 6px solid transparent; border-top-color: #1a2035; }
.mca-ramp:hover .mca-ramp-tip, .mca-ramp-info:focus .mca-ramp-tip { opacity: 1; visibility: visible; transform: none; }
.mca-ramp-chart { position: relative; padding-bottom: 9px; border-radius: 6px; }
.mca-ramp-svg { display: block; width: 100%; height: 38px; border-radius: 6px; background: linear-gradient(180deg, rgba(123,128,154,.06), rgba(123,128,154,.14)); }
.mca-ramp[data-variant="full"] .mca-ramp-svg { height: 130px; }
.mca-ramp-arrow { position: absolute; bottom: 0; left: var(--pos); width: 0; height: 0; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #e91e63;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); animation: mcaRampPulse 2.4s ease-in-out infinite; cursor: help; }
@keyframes mcaRampPulse { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2px); } }
.mca-ramp-scale { display: flex; justify-content: space-between; color: #7b809a; font-size: .66rem; margin-top: 2px; }
.mca-ramp-status { margin-top: 3px; color: #344767; font-size: .72rem; }
.mca-ramp-status a { font-weight: 600; white-space: nowrap; }
.mca-ramp[data-variant="full"] { font-size: .85rem; }
.mca-ramp[data-variant="full"] .mca-ramp-status { font-size: .85rem; }
.mca-ramp[data-variant="full"] .mca-ramp-scale { font-size: .75rem; }
.mca-ramp[data-variant="full"] .mca-ramp-arrow { border-left-width: 9px; border-right-width: 9px; border-bottom-width: 13px; }
#mca-ramp-table tr.mca-ramp-now td { background: rgba(233,30,99,.08); font-weight: 600; }
#mca-ramp-table tr.mca-ramp-peakrow td { background: rgba(255,167,38,.12); font-weight: 600; }
.dark-version .mca-ramp-label, .dark-version .mca-ramp-status { color: #fff; }
#reward-ramp thead th { text-transform: none; }

/* ---- pool share of the network (2026-12-02, Pool rate card) ---- */
.mca-share { font-size: .72rem; cursor: help; }
.mca-share-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mca-share-label { font-weight: 600; color: #344767; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.mca-share-head b { color: #344767; font-size: .8rem; }
.mca-share-track { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(180deg, rgba(123,128,154,.10), rgba(123,128,154,.20)); overflow: hidden; }
.mca-share-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(123,128,154,.55); }
.mca-share-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #26c6da, #1a73e8); transition: width .8s ease; }
.mca-share-scale { display: flex; justify-content: space-between; color: #7b809a; font-size: .64rem; margin-top: 2px; }
.dark-version .mca-share-label, .dark-version .mca-share-head b { color: #fff; }
