/* Hashmonkeys — obsidian + aurora */
:root {
  --void: #05040a;
  --surface: rgba(18, 14, 32, 0.65);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(180, 160, 255, 0.12);
  --text: #f0f4ff;
  --muted: rgba(200, 210, 255, 0.55);
  --coral: #ff6b4a;
  --mint: #3effd0;
  --violet: #a78bfa;
  --rose: #fb7185;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
}

/* Aurora mesh background */
.mh-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 10% -10%, rgba(120, 80, 200, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(0, 200, 180, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 90, 70, 0.12), transparent 45%),
    var(--void);
}

.mh-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
}

/* Nav — slimmer bar; logo scales down vs full hero */
.mh-nav {
  --nav-logo: clamp(48px, min(14vw, 12vmin), 104px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0 0.55rem;
  flex-wrap: nowrap;
  min-height: 0;
}

.mh-nav__start {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 1 auto;
  min-width: 0;
}

.mh-nav__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-block-alerts {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.nav-block-alerts__txt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.nav-block-alerts__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0.01;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-block-alerts__switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-block-alerts__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0f4ff;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.nav-block-alerts__input:checked + .nav-block-alerts__switch {
  background: rgba(62, 255, 208, 0.22);
  border-color: rgba(62, 255, 208, 0.45);
}

.nav-block-alerts__input:checked + .nav-block-alerts__switch::after {
  transform: translateX(18px);
}

.nav-block-alerts__input:focus-visible + .nav-block-alerts__switch {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .nav-block-alerts__txt {
    display: none;
  }
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark--logo-only {
  gap: 0;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark--logo-only:focus {
  outline: none;
}

.brand-mark--logo-only:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 6px;
  border-radius: 4px;
}

.brand-mark__logo {
  width: var(--nav-logo);
  height: var(--nav-logo);
  max-width: none;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.12);
}

/* Hero */
.hero {
  padding-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.55;
}

/* Home: text left — hero PNG on right; image scales inside a fixed-height frame without cropping (contain) */
.hero--brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 66%);
  gap: 1rem 1.75rem;
  align-items: start;
  margin-bottom: 0.85rem;
  padding-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
}

.hero--brand:has([data-mh-hero-wrap][hidden]) {
  grid-template-columns: 1fr;
}

.hero__copy {
  position: relative;
  z-index: auto;
  min-width: 0;
  max-width: min(52rem, 100%);
  padding: 0.15rem 0.75rem 0 0;
}

.hero--brand .hero-lead {
  max-width: 50ch;
}

.hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.hero-quote {
  margin: 0 0 1rem;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid rgba(167, 139, 250, 0.55);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--r);
  overflow: hidden;
  background: transparent;
  line-height: 0;
  box-shadow: none;
  width: 100%;
  height: clamp(400px, 52vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  /* Zoom inside the clipped frame (needs .hero__visual overflow) */
  transform: scale(1.28);
  transform-origin: center center;
}

@media (max-width: 900px) {
  .hero--brand {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: 1;
    order: -1;
    max-width: 100%;
    height: clamp(240px, 42vh, 400px);
  }

  .hero__copy {
    padding: 0;
  }

  .hero__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transform: scale(1.2);
    transform-origin: center center;
  }
}

.dash-intro {
  margin-bottom: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Miner address search → dashboard */
.miner-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r);
  background: rgba(18, 14, 32, 0.88);
  border: 1px solid var(--border);
  box-shadow: none;
}

.miner-search input[type="search"] {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.miner-search input[type="search"]::placeholder {
  color: rgba(200, 210, 255, 0.4);
}

.miner-search input[type="search"]:focus {
  outline: 2px solid rgba(62, 255, 208, 0.45);
  outline-offset: 1px;
  border-color: rgba(62, 255, 208, 0.45);
}

.miner-search-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: var(--void);
  background: linear-gradient(135deg, var(--mint), #00c4a8);
  box-shadow: none;
  transition: filter 0.2s, transform 0.15s;
}

.miner-search-btn:hover {
  filter: brightness(1.06);
}

.miner-search-btn:active {
  transform: scale(0.98);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.stat-card {
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: rgba(18, 14, 32, 0.88);
  border: 1px solid var(--border);
  box-shadow: none;
}

.stat-card small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat-card strong {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--mint);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #445;
  transition: background 0.3s;
}

.live-pill--on .dot {
  background: var(--mint);
  box-shadow: none;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Scheme + algorithm filter bar */
.scheme-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.scheme-toolbar-algo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.scheme-toolbar-algo-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.scheme-algo-select {
  min-width: 11.5rem;
  max-width: min(20rem, 100%);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 2rem 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  color-scheme: dark;
}

.scheme-algo-select option {
  background-color: #141024;
  color: #f0f4ff;
  font-weight: 600;
}

.scheme-algo-select:hover,
.scheme-algo-select:focus {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(0, 0, 0, 0.5);
  outline: none;
}

@media (max-width: 640px) {
  .scheme-toolbar-algo {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .scheme-algo-select {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
}

.scheme-toolbar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-right: 0.25rem;
}

.scheme-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.scheme-btn:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.35);
}

.scheme-btn.active {
  color: var(--void);
  background: linear-gradient(135deg, var(--mint), #00c4a8);
  border-color: transparent;
  box-shadow: none;
}

/* Pool grid */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.pool-card {
  position: relative;
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--r) + 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: none;
}

.pool-card-glow {
  display: none;
}

.pool-card-head {
  position: relative;
  margin-bottom: 1rem;
  padding-right: 2.6rem;
}

.pool-card-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.pool-head-main {
  display: block;
}

.pool-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
}

.pool-coin-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.pool-coin-logo--corner {
  position: absolute;
  top: 0;
  right: 0;
}

.pool-algo-label {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.scheme-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheme-pplns {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.scheme-prop {
  background: rgba(62, 255, 208, 0.12);
  color: var(--mint);
  border: 1px solid rgba(62, 255, 208, 0.25);
}

.scheme-solo {
  background: rgba(251, 113, 133, 0.2);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.scheme-other {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.pool-card-blocks {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.bc-item {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bc-label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.bc-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coral);
  display: block;
  line-height: 1.2;
}

.bc-sub {
  font-size: 0.65rem;
  color: var(--muted);
}

.bc-pend .bc-val {
  color: var(--violet);
  font-size: 1.05rem;
}

.pool-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.pool-stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.pool-stats dd {
  margin: 0;
  font-family: var(--font-mono);
}

.pool-stratum {
  position: relative;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pool-stratum small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stratum-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stratum-stack {
  width: 100%;
  justify-content: flex-start;
}

/* Single URL (<code>) and multi-port (<select>) share the same “input” look */
.stratum-url,
.stratum-select {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(200, 220, 255, 0.9);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  min-height: 2.15rem;
}

.stratum-url {
  display: flex;
  align-items: center;
  word-break: break-all;
}

.stratum-none {
  color: var(--muted);
  font-size: 0.85rem;
}

.stratum-select {
  cursor: pointer;
  /* Hint dark native chrome + improve open-list contrast where UA allows styled <option> */
  color-scheme: dark;
  font-weight: 500;
}

.stratum-select option {
  background-color: #141024;
  color: #f0f4ff;
  font-weight: 500;
}

.stratum-select:focus {
  outline: 2px solid rgba(62, 255, 208, 0.35);
  outline-offset: 1px;
  border-color: rgba(62, 255, 208, 0.35);
}

.stratum-copy-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(62, 255, 208, 0.35);
  background: rgba(62, 255, 208, 0.1);
  color: var(--mint);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.stratum-copy-btn:hover {
  background: rgba(62, 255, 208, 0.18);
  border-color: rgba(62, 255, 208, 0.55);
}

.mh-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.mh-empty--err {
  color: var(--rose);
}

/* Block celebration */
body.block-flash {
  animation: block-flash 0.85s ease-out;
}

@keyframes block-flash {
  0% {
    filter: brightness(1.2) saturate(1.15);
  }
  100% {
    filter: none;
  }
}

/* Top-right block notification (slides in from the right) */
.block-notice {
  position: fixed;
  top: max(4rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 10000;
  width: min(360px, calc(100vw - 1.75rem));
  margin: 0;
  padding: 1rem 2.6rem 1.1rem 1.15rem;
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(22, 18, 38, 0.97), rgba(8, 6, 16, 0.99));
  border: 1px solid rgba(62, 255, 208, 0.28);
  box-shadow: none;
  transform: translate3d(calc(100% + 1.5rem), 0, 0);
  opacity: 0;
  pointer-events: auto;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.85, 0.15, 1),
    opacity 0.2s ease;
}

.block-notice--show {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.block-notice--mine {
  background: linear-gradient(165deg, rgba(19, 45, 43, 0.97), rgba(8, 22, 24, 0.99));
  border-color: rgba(62, 255, 208, 0.45);
}

.block-notice__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.block-notice__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.block-notice__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.block-notice__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.block-notice__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.block-notice__coin {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: -0.15rem;
}

.block-notice__pool {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.block-notice__dl {
  margin: 0;
}

.block-notice__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.block-notice__row:last-child {
  margin-bottom: 0;
}

.block-notice__row dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.block-notice__row dd {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text);
  word-break: break-all;
}

.block-notice__addr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #e4e9ff;
}

.block-notice__worker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--mint);
}

/* Footer */
.mh-foot {
  padding: 2rem 0 3rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.mh-foot code {
  font-size: 0.7rem;
}

/* Dashboard page */
.dash-page {
  padding: 1rem 0 4rem;
}

.dash-page h1 {
  margin: 0 0 1.5rem;
}

.dash-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .dash-head {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.wallet-code {
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.4;
}

.dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.d-tile {
  padding: 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
}

.d-tile small {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.d-tile strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

/* Payout threshold — compact summary + modal */
.threshold-card {
  margin-bottom: 1.35rem;
  padding: 0.55rem 0.85rem 0.6rem;
  border-radius: var(--r);
  background:
    linear-gradient(135deg, rgba(62, 255, 208, 0.06), transparent 50%),
    var(--surface);
  border: 1px solid rgba(62, 255, 208, 0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.threshold-card__compact {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.28rem;
  align-items: center;
}

.threshold-card__row-eyebrow {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  line-height: 1;
}

.threshold-card__title-row {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.threshold-card__title {
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #fff 0%, var(--mint) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.threshold-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.threshold-badge--custom {
  color: var(--mint);
  border-color: rgba(62, 255, 208, 0.35);
  background: rgba(62, 255, 208, 0.07);
}

.threshold-badge--default {
  color: var(--muted);
  background: var(--surface-2);
}

.threshold-card__metrics {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  min-width: 0;
  padding: 0;
  font-family: var(--font-mono);
  line-height: 1.2;
  justify-self: start;
}

.threshold-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.threshold-metric__k {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1;
  padding-top: 0.06rem;
}

.threshold-metric__v {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.threshold-metric__unit {
  margin-left: 0.25em;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--violet);
  line-height: 1;
}

.threshold-metric__sep {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 1.15em;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0.45;
  user-select: none;
  padding: 0 0.05rem;
}

.threshold-open-btn {
  grid-column: 3;
  grid-row: 2;
  flex-shrink: 0;
  justify-self: end;
  align-self: center;
  margin-left: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.38rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--void);
  border: none;
  background: linear-gradient(135deg, var(--mint), #00c4a8);
  box-shadow: none;
  transition: filter 0.2s, transform 0.15s;
}

.threshold-open-btn:hover {
  filter: brightness(1.08);
}

.threshold-open-btn:active {
  transform: scale(0.98);
}

.threshold-progress {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.threshold-progress__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.threshold-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(62, 255, 208, 0.85), rgba(167, 139, 250, 0.95));
  box-shadow: none;
  transition: width 0.45s ease;
}

.threshold-progress--ready .threshold-progress__fill {
  background: linear-gradient(90deg, var(--mint), #7ee8c8);
  box-shadow: none;
}

.threshold-progress__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.threshold-progress__meta strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.threshold-progress__k {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  margin-right: 0.15rem;
}

.threshold-progress__coin {
  font-size: 0.62rem;
  color: var(--violet);
  font-weight: 500;
}

@media (max-width: 520px) {
  .threshold-card__compact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .threshold-card__row-eyebrow {
    grid-column: unset;
    grid-row: unset;
  }

  .threshold-card__title-row {
    grid-column: unset;
    grid-row: unset;
  }

  .threshold-card__metrics {
    grid-column: unset;
    grid-row: unset;
    justify-self: stretch;
  }

  .threshold-open-btn {
    grid-column: unset;
    grid-row: unset;
    justify-self: stretch;
    width: 100%;
  }
}

.mh-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mh-modal--open {
  display: flex;
}

.mh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, 0.78);
  backdrop-filter: blur(8px);
}

.mh-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: calc(var(--r) + 6px);
  background: linear-gradient(165deg, rgba(28, 24, 48, 0.98), rgba(12, 10, 22, 0.99));
  border: 1px solid rgba(62, 255, 208, 0.2);
  box-shadow: none;
}

.mh-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mh-modal__title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.mh-modal__x {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.mh-modal__x:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-2);
}

body.mh-modal-lock {
  overflow: hidden;
}

.threshold-panel {
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.threshold-panel--modal {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.threshold-help {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.threshold-help strong {
  color: var(--text);
  font-weight: 600;
}

.threshold-form {
  margin: 0;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.threshold-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.threshold-label input {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.threshold-label input::placeholder {
  color: rgba(200, 210, 255, 0.4);
}

.threshold-label input:focus {
  outline: 2px solid rgba(62, 255, 208, 0.45);
  outline-offset: 1px;
  border-color: rgba(62, 255, 208, 0.45);
}

.threshold-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.threshold-save {
  margin: 0;
}

.btn-threshold-ghost {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-threshold-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--surface-2);
}

.threshold-msg {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.threshold-msg--ok {
  color: var(--mint);
}

.threshold-msg--err {
  color: var(--rose);
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.worker-table-wrap {
  overflow: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.worker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.worker-table th,
.worker-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.worker-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.82rem;
}

.warn {
  color: var(--rose);
}

/* —— Miner dashboard: your blocks (collapsible) —— */
.miner-blocks-section {
  margin: 1.5rem 0 0;
}

.miner-blocks-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 1.1rem 0.85rem;
}

.miner-blocks-toggle {
  display: flex;
  width: calc(100% + 0.1rem);
  margin-left: -0.05rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-sizing: border-box;
}

.miner-blocks-toggle:hover {
  color: var(--text);
}

.miner-blocks-toggle:focus-visible {
  outline: 2px solid rgba(62, 255, 208, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.miner-blocks-toggle__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.miner-blocks-title {
  margin: 0;
}

.miner-blocks-toggle__hint {
  display: block;
  max-width: 36rem;
}

.miner-blocks-toggle__icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.miner-blocks-card--open .miner-blocks-toggle__icon {
  transform: rotate(90deg);
  color: var(--mint);
}

.miner-blocks-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.15rem;
}

.miner-blocks-table-wrap {
  margin-top: 0.35rem;
}

.miner-blocks-empty {
  margin: 0.5rem 0 0;
}

.miner-blocks-note {
  margin: 0.6rem 0 0;
}

/* —— Miner dashboard: payout history + print report —— */
.payment-print-zone {
  margin: 1.25rem 0 1.5rem;
}

.payment-print-banner {
  display: none;
}

.payment-print-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.payment-print-heading {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.payment-print-meta-wrap {
  display: none;
}

.payment-print-meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.payment-history-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 1.1rem 0.85rem;
}

.payment-history-toggle {
  display: flex;
  width: calc(100% + 0.1rem);
  margin-left: -0.05rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-sizing: border-box;
}

.payment-history-toggle:hover {
  color: var(--text);
}

.payment-history-toggle:focus-visible {
  outline: 2px solid rgba(62, 255, 208, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.payment-history-toggle__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.payment-history-title {
  margin: 0;
}

.payment-history-toggle__hint {
  display: block;
  max-width: 36rem;
}

.payment-history-toggle__icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.payment-history-card--open .payment-history-toggle__icon {
  transform: rotate(90deg);
  color: var(--mint);
}

.payment-history-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.15rem;
}

.payment-history-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.payment-period-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.payment-period-select {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 1.75rem 0.38rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  color-scheme: dark;
}

.payment-period-select option {
  background-color: #141024;
  color: #f0f4ff;
  font-weight: 600;
}

.payment-print-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.15);
  color: #e9e4ff;
  cursor: pointer;
}

.payment-print-btn:hover {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(167, 139, 250, 0.22);
}

.payment-table-scroll {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.payment-table th,
.payment-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-table th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.payment-table a {
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}

.payment-table a:hover {
  text-decoration: underline;
}

.payment-history-empty {
  margin: 0.5rem 0 0;
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .mh-bg,
  .mh-grid,
  .mh-nav,
  .dash-page > h1,
  .dash-intro,
  .miner-search,
  .dash-head,
  .dash-tiles,
  .threshold-card,
  .mh-modal,
  .worker-table-wrap,
  .workers-section-title,
  .miner-blocks-section,
  .payment-history-toggle {
    display: none !important;
  }

  .payment-history-panel[hidden],
  .payment-history-panel {
    display: block !important;
    border-top: none !important;
    padding-bottom: 0 !important;
  }

  .payment-print-zone {
    margin: 0;
  }

  .payment-print-banner {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.75rem;
  }

  .payment-print-heading {
    color: #111;
    font-size: 16pt;
  }

  .payment-print-meta-wrap {
    display: block !important;
    margin: 0 0 1rem;
    color: #333 !important;
  }

  .payment-print-meta {
    color: #333 !important;
    font-size: 10pt;
  }

  .payment-print-meta .muted {
    color: #555 !important;
  }

  .payment-history-card {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .payment-table-scroll {
    border: 1px solid #ccc;
    background: #fff;
  }

  .payment-table {
    color: #111;
    font-size: 9pt;
  }

  .payment-table th {
    color: #333;
  }

  .payment-table a {
    color: #0645ad;
  }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* —— Block explorer (blocks.html) —— */
.blocks-page {
  padding-bottom: 3rem;
}

/* Two filter selects on blocks.html: do not push both groups with margin-left:auto */
.blocks-page .scheme-toolbar-algo {
  margin-left: 0;
}

.blocks-page .scheme-toolbar-algo:last-of-type {
  margin-left: auto;
}

.blocks-page-head {
  margin: 1rem 0 1.25rem;
}

.blocks-page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.blocks-page-lead {
  margin: 0 0 0.75rem;
  max-width: 52rem;
}

.blocks-page-status {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.88rem;
  color: var(--muted);
}

.blocks-refresh-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.12);
  color: var(--text);
  cursor: pointer;
}

.blocks-refresh-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.2);
}

.blocks-explorer-pools {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blocks-pool-section {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1rem 1.1rem 1.25rem;
}

.blocks-pool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.blocks-pool-title {
  margin: 0;
  font-size: 1.15rem;
}

.blocks-pool-algo {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blocks-pool-err {
  color: var(--rose);
  margin: 0;
}

.blocks-pool-note {
  margin: 0.75rem 0 0;
}

.blocks-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.blocks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.blocks-table th,
.blocks-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.blocks-table th {
  padding: 0.55rem 0.65rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.blocks-table--sortable th {
  padding: 0;
}

.blocks-sort-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.blocks-sort-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.blocks-link {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.blocks-link:hover {
  text-decoration: underline;
}

.blocks-status {
  font-size: 0.78rem;
  font-weight: 600;
}

.blocks-status--ok {
  color: var(--mint);
}

.blocks-status--pend {
  color: #fcd34d;
}

.blocks-status--orph {
  color: var(--rose);
}

.block-maturity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.block-maturity__bar {
  flex: 1;
  min-width: 64px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.block-maturity__bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  min-width: 0;
}

.block-maturity__pct {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Mining calculator (Mining Pool Stats) */
.calc-page {
  padding: 1rem 0 4rem;
}

.calc-page-head h1 {
  margin: 0 0 0.75rem;
}

.calc-page-lead a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
}

.calc-page-lead a:hover {
  text-decoration: underline;
}

.calc-page-status {
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.calc-page-status--ok {
  color: var(--mint);
}

.calc-page-status--err {
  color: var(--rose);
}

.calc-data-banner {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  line-height: 1.45;
}

.calc-data-banner--critical {
  background: rgba(255, 160, 72, 0.12);
  border-color: rgba(255, 160, 72, 0.35);
  color: rgba(255, 245, 230, 0.95);
}

.calc-data-banner--soft {
  background: rgba(120, 200, 255, 0.08);
  border-color: rgba(120, 200, 255, 0.22);
  color: var(--muted);
}

.calc-data-banner__title {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 220, 180, 0.98);
}

.calc-data-banner__text {
  margin: 0 0 0.65rem;
}

.calc-data-banner__steps {
  margin: 0;
  padding-left: 1.15rem;
}

.calc-data-banner__steps li {
  margin: 0.35em 0;
}

.calc-detail-status {
  margin: 0.35rem 0 0;
  min-height: 1.2em;
}

.calc-detail-status--err {
  color: var(--rose);
}

.calc-hr-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.calc-hr-input {
  flex: 1 1 120px;
  min-width: 0;
}

.calc-hr-unit {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
  max-width: 100%;
}

.calc-hashrate-no-status {
  margin: 0.35rem 0 0;
  min-height: 1.2em;
}

.calc-hashrate-no-status--err {
  color: var(--rose);
}

.calc-card--rank {
  margin-top: 1.25rem;
  max-width: 100%;
}

.calc-rank-lead {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.calc-rank-scroll {
  overflow-x: auto;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.calc-rank-table th,
.calc-rank-table td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-rank-table thead th {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.calc-rank-th-usd {
  text-align: right;
}

.calc-rank-usd {
  text-align: right;
  color: var(--mint);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.35rem;
}

.calc-card__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.calc-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}

.calc-label:first-of-type {
  margin-top: 0;
}

.calc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.calc-input--mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.calc-input:focus {
  outline: none;
  border-color: rgba(62, 255, 208, 0.45);
  box-shadow: 0 0 0 2px rgba(62, 255, 208, 0.12);
}

.calc-hint {
  margin: 0.35rem 0 0;
}

.calc-coin-select {
  width: 100%;
  min-height: 14rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.82rem;
}

.calc-coin-select option {
  padding: 0.2rem 0.35rem;
}

.calc-run-btn {
  margin-top: 1rem;
  width: 100%;
}

.calc-meta {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.calc-results {
  margin: 0;
}

.calc-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: baseline;
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-row dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.calc-result-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.calc-result-row--highlight dd {
  color: var(--mint);
  font-weight: 600;
}

.calc-footnote {
  margin: 1rem 0 0;
  line-height: 1.5;
}
