/* ===========================================================
   FIREPOOL.IO — THEME
   Wasteland-industrial mining pool aesthetic.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* --- palette --- */
  --black:          #0a0806;
  --panel:          #14100c;
  --panel-raised:   #1b1510;
  --border-metal:   #4a3220;
  --border-metal-lt:#6b4a2a;
  --rust:           #cc4e1f;
  --rust-bright:    #e8792f;
  --rust-dim:       #7a3216;
  --gold:           #d4a13a;
  --cream:          #ece4d0;
  --tan:            #b89968;
  --tan-dim:        #7d6a4c;
  --green-ok:       #6fae4f;
  --red-warn:       #c9432f;

  /* --- type --- */
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-label:   'Oswald', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-panel: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  background-image:
    radial-gradient(ellipse at top, rgba(204,78,31,0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, transparent 1px, transparent 2px);
  color: var(--cream);
  font-family: var(--font-label);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--cream);
}

/* focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--rust-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- beveled metal panel (signature element) ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-panel);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.4);
  pointer-events: none;
}
.panel-cut {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.rivet {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a6b3f, #2a1c10);
}
.rivet.tl{ top:8px; left:8px; } .rivet.tr{ top:8px; right:8px; }
.rivet.bl{ bottom:8px; left:8px; } .rivet.br{ bottom:8px; right:8px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #100c09 0%, #0a0806 100%);
  border-bottom: 2px solid var(--border-metal);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 32px;
  min-height: 76px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-text .name {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.05em;
  color: var(--cream); line-height: 1;
}
.brand-text .tag {
  font-family: var(--font-label); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--rust-bright); text-transform: uppercase;
}
.brand-text .sub {
  font-family: var(--font-label); font-size: 9px; color: var(--tan-dim);
  letter-spacing: 0.06em;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--font-label); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--tan);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a.active { color: var(--rust-bright); border-color: var(--rust-bright); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  font-family: var(--font-label); font-weight: 600; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 3px; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s ease, background .15s ease;
}
.btn-ghost { background: transparent; border-color: var(--rust); color: var(--rust-bright); }
.btn-ghost:hover { background: rgba(204,78,31,0.1); }
.btn-solid { background: linear-gradient(180deg, var(--rust-bright), var(--rust)); color: #1a0d05; }
.btn-solid:hover { filter: brightness(1.1); }
.btn-block { width: 100%; text-align: center; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--border-metal); color: var(--cream); padding: 8px 10px; border-radius: 3px; }

@media (max-width: 900px) {
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--panel);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px;
    border-bottom: 2px solid var(--border-metal); display: none; }
  .main-nav.open { display: flex; }
  .nav-actions { display: none; }
  .nav-actions.open { display: flex; position: absolute; top: 76px; right: 24px; z-index: 101; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background-size: cover; background-position: center 30%;
  border-bottom: 2px solid var(--border-metal);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.94) 0%, rgba(10,8,6,0.65) 45%, rgba(10,8,6,0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.hero h1 .accent { color: var(--rust-bright); }
.hero .kicker { color: var(--rust-bright); font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; margin-top: 6px; }
.hero .lede { max-width: 520px; color: var(--tan); font-size: 14px; margin-top: 14px; }
.hero .divider { display:flex; align-items:center; gap:10px; margin: 16px 0; color: var(--tan-dim); }
.hero .divider::before, .hero .divider::after { content:""; flex:1; height:1px; background: var(--border-metal-lt); }

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 0; overflow-x: auto;
}
.stat-strip .stat {
  padding: 18px 20px; border-right: 1px solid var(--border-metal);
}
.stat-strip .stat:last-child { border-right: none; }
.stat .icon { color: var(--rust-bright); font-size: 18px; margin-bottom: 6px; }
.stat .value { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--cream); }
.stat .value.skeleton, .skel {
  display: inline-block; width: 70px; height: 20px; border-radius: 3px;
  background: linear-gradient(90deg, #241b13 25%, #382a1a 37%, #241b13 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; vertical-align: middle;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.stat .label { font-size: 11px; letter-spacing: 0.04em; color: var(--tan-dim); text-transform: uppercase; margin-top: 2px; }

/* ---------- feature bar (5 icons) ---------- */
.feature-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-metal); border-bottom: 1px solid var(--border-metal);
}
.feature-bar .feature { display:flex; gap:10px; align-items:flex-start; padding: 16px 18px; border-right: 1px solid var(--border-metal); }
.feature-bar .feature:last-child { border-right: none; }
.feature .f-icon { color: var(--rust-bright); font-size: 20px; flex-shrink:0; }
.feature .f-title { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--rust-bright); text-transform: uppercase; }
.feature .f-desc { font-size: 12px; color: var(--tan); margin-top: 2px; }
@media (max-width: 900px) { .feature-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- generic table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
.data-table th {
  text-align: left; font-family: var(--font-label); font-weight: 600; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--tan-dim);
  padding: 10px 14px; border-bottom: 1px solid var(--border-metal);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(74,50,32,0.4); color: var(--cream); }
.data-table tr:hover td { background: rgba(204,78,31,0.04); }
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; }
.status-pill.confirmed { color: var(--green-ok); background: rgba(111,174,79,0.12); }
.status-pill.pending { color: var(--gold); background: rgba(212,161,58,0.12); }
.status-pill.failed { color: var(--red-warn); background: rgba(201,67,47,0.12); }

/* empty / loading states for tables */
.table-empty, .table-loading { padding: 40px 20px; text-align: center; color: var(--tan-dim); font-size: 13px; }

/* new-block popup alerts */
.fp-toast-stack { position: fixed; bottom: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.fp-toast {
  display: flex; gap: 10px; align-items: center;
  background: var(--panel-raised); border: 1px solid var(--border-metal);
  border-left: 3px solid var(--rust-bright); border-radius: var(--radius-panel);
  padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  opacity: 0; transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.fp-toast.show { opacity: 1; transform: translateX(0); }
.fp-toast-title { font-size: 12px; font-weight: 700; color: var(--cream); text-transform: uppercase; letter-spacing: .03em; }
.fp-toast-sub { font-size: 11px; color: var(--tan-dim); margin-top: 2px; }
.table-empty .big { font-family: var(--font-display); font-size: 20px; color: var(--tan); display:block; margin-bottom: 6px; letter-spacing: .03em; }

/* ---------- section heading ---------- */
.section-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--cream); font-size: 26px; margin-bottom: 4px; }
.section-sub { color: var(--tan-dim); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- footer strip ---------- */
.footer-strip {
  border-top: 2px solid var(--border-metal); background: var(--panel);
  padding: 20px 0; margin-top: 40px;
}
.footer-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-strip .fs-item .f-title { color: var(--rust-bright); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.footer-strip .fs-item .f-desc { color: var(--tan); font-size: 11px; }
.footer-cta { font-family: var(--font-display); font-size: 20px; color: var(--rust-bright); letter-spacing: .02em; }
.footer-cta .dim { color: var(--tan); }

/* ---------- misc utility ---------- */
.badge-pill {
  display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:600;
  color: var(--rust-bright); border: 1px solid var(--rust-dim); padding: 4px 10px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .04em;
}
.coin-dot { width: 20px; height: 20px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; color:#0a0806; }
.grid-2 { display:grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.page-content { padding: 32px 0 20px; }

/* ---------- Firepool homepage hero card polish ---------- */
.fp-hero-card {
  min-height: 255px;
  padding: 14px 16px 16px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 15%, rgba(232,121,47,0.18), transparent 34%),
    linear-gradient(180deg, rgba(27,21,16,0.88), rgba(12,9,7,0.94));
  box-shadow: 0 20px 70px rgba(0,0,0,0.42);
}

.fp-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,8,6,0.08) 48%, rgba(10,8,6,0.76) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 18px);
  pointer-events: none;
  z-index: 1;
}

.fp-card-topline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tan-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fp-toon-stage {
  position: relative;
  z-index: 2;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 4px;
}

.fp-toon-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 44%;
  left: 11%;
  bottom: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(232,121,47,0.28), transparent 68%);
  filter: blur(10px);
}

.fp-toon-img {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  max-height: 205px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 18px 18px rgba(0,0,0,0.55))
    drop-shadow(0 0 12px rgba(204,78,31,0.20));
}

.fp-card-badge {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: -2px auto 0;
  padding: 9px 12px;
  width: min(100%, 315px);
  background: rgba(10,8,6,0.68);
  border: 1px solid rgba(204,78,31,0.30);
  border-radius: 3px;
}

.fp-card-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.fp-card-title {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  letter-spacing: .03em;
}

.fp-card-copy {
  color: var(--tan);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .fp-hero-card {
    min-height: 230px;
  }

  .fp-toon-stage {
    min-height: 145px;
  }

  .fp-toon-img {
    max-height: 180px;
  }
}

/* ---------- Firepool homepage hero final layout v3 ---------- */
.fp-home-hero {
  overflow: hidden;
}

.fp-home-hero-inner {
  padding: 54px 0 36px;
}

.fp-home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr);
  gap: 34px;
  align-items: center;
  min-height: 345px;
}

.fp-hero-copy {
  position: relative;
  z-index: 5;
}

.fp-hero-visual-zone {
  position: relative;
  min-height: 330px;
  z-index: 4;
}

.fp-hero-crew-cutout {
  position: absolute;
  z-index: 5;
  right: 315px;
  bottom: 2px;
  width: min(360px, 34vw);
  max-height: 330px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter:
    drop-shadow(0 22px 22px rgba(0,0,0,0.64))
    drop-shadow(0 0 16px rgba(204,78,31,0.22));
}

.fp-hero-side-card {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 315px;
  min-height: 190px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(232,121,47,0.13), transparent 42%),
    linear-gradient(180deg, rgba(27,21,16,0.88), rgba(12,9,7,0.94));
  box-shadow: 0 22px 70px rgba(0,0,0,0.44);
}

.fp-hero-side-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 10px rgba(204,78,31,0.22));
}

.fp-hero-side-title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream);
  line-height: 1;
  letter-spacing: .03em;
  text-align: center;
}

.fp-hero-side-copy {
  color: var(--tan);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 7px;
}

@media (max-width: 1100px) {
  .fp-home-hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fp-hero-visual-zone {
    min-height: 280px;
  }

  .fp-hero-side-card {
    right: 20px;
  }

  .fp-hero-crew-cutout {
    right: 315px;
    width: min(340px, 48vw);
    max-height: 290px;
  }
}

@media (max-width: 760px) {
  .fp-hero-visual-zone {
    min-height: 430px;
  }

  .fp-hero-side-card {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 315px);
  }

  .fp-hero-crew-cutout {
    left: 50%;
    right: auto;
    bottom: 150px;
    transform: translateX(-50%);
    width: min(94%, 350px);
    max-height: 285px;
  }
}

/* ---------- Firepool homepage hero crew polish v4 ---------- */
.fp-hero-visual-zone {
  perspective: 900px;
}

.fp-hero-visual-zone::before {
  content: "";
  position: absolute;
  z-index: 3;
  right: 270px;
  bottom: 8px;
  width: 365px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.48) 36%, rgba(204,78,31,0.10) 58%, transparent 76%);
  filter: blur(9px);
  opacity: 0.92;
  pointer-events: none;
}

.fp-hero-visual-zone::after {
  content: "";
  position: absolute;
  z-index: 6;
  right: 235px;
  bottom: 0;
  width: 430px;
  height: 86px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,8,6,0.18) 32%, rgba(10,8,6,0.64) 100%),
    radial-gradient(ellipse at center, rgba(232,121,47,0.08), transparent 70%);
  filter: blur(1px);
  pointer-events: none;
}

.fp-hero-crew-cutout {
  right: 292px;
  bottom: -11px;
  width: min(395px, 36vw);
  max-height: 365px;
  opacity: 0.94;
  transform: translateZ(-10px);
  filter:
    brightness(0.88)
    contrast(1.04)
    saturate(0.92)
    sepia(0.08)
    drop-shadow(0 24px 20px rgba(0,0,0,0.72))
    drop-shadow(0 0 14px rgba(204,78,31,0.18));
}

.fp-hero-side-card {
  background:
    radial-gradient(circle at 45% 10%, rgba(232,121,47,0.16), transparent 40%),
    linear-gradient(180deg, rgba(27,21,16,0.80), rgba(12,9,7,0.91));
  backdrop-filter: blur(1px);
}

@media (max-width: 1100px) {
  .fp-hero-crew-cutout {
    right: 288px;
    bottom: -8px;
    width: min(375px, 49vw);
    max-height: 335px;
  }

  .fp-hero-visual-zone::before {
    right: 260px;
    width: 330px;
  }

  .fp-hero-visual-zone::after {
    right: 225px;
    width: 395px;
  }
}

@media (max-width: 760px) {
  .fp-hero-crew-cutout {
    left: 50%;
    right: auto;
    bottom: 142px;
    transform: translateX(-50%);
    width: min(94%, 360px);
    max-height: 300px;
  }

  .fp-hero-visual-zone::before {
    left: 50%;
    right: auto;
    bottom: 150px;
    transform: translateX(-50%);
    width: min(86%, 330px);
  }

  .fp-hero-visual-zone::after {
    left: 50%;
    right: auto;
    bottom: 136px;
    transform: translateX(-50%);
    width: min(94%, 390px);
  }
}

/* ---------- Firepool homepage hero crew floor alignment v5 ---------- */
.fp-home-hero-inner {
  padding-bottom: 0 !important;
}

.fp-home-hero-layout {
  min-height: 405px !important;
  align-items: end !important;
}

.fp-hero-copy {
  align-self: center !important;
  padding-bottom: 22px;
}

.fp-hero-visual-zone {
  align-self: stretch !important;
  min-height: 405px !important;
}

.fp-hero-crew-cutout {
  right: 318px !important;
  bottom: -3px !important;
  width: min(390px, 35vw) !important;
  max-height: 395px !important;
  opacity: 0.93 !important;
  transform: none !important;
  filter:
    brightness(0.86)
    contrast(1.05)
    saturate(0.88)
    sepia(0.10)
    drop-shadow(0 24px 18px rgba(0,0,0,0.74))
    drop-shadow(0 0 12px rgba(204,78,31,0.14)) !important;
}

.fp-hero-visual-zone::before {
  right: 302px !important;
  bottom: -5px !important;
  width: 380px !important;
  height: 48px !important;
  opacity: 0.95 !important;
}

.fp-hero-visual-zone::after {
  right: 270px !important;
  bottom: -2px !important;
  width: 430px !important;
  height: 72px !important;
  opacity: 0.78 !important;
}

.fp-hero-side-card {
  top: 49% !important;
  right: 0 !important;
}

@media (max-width: 1100px) {
  .fp-home-hero-layout {
    min-height: 390px !important;
  }

  .fp-hero-visual-zone {
    min-height: 390px !important;
  }

  .fp-hero-crew-cutout {
    right: 305px !important;
    bottom: -3px !important;
    width: min(370px, 48vw) !important;
    max-height: 380px !important;
  }

  .fp-hero-visual-zone::before {
    right: 285px !important;
    bottom: -5px !important;
    width: 350px !important;
  }

  .fp-hero-visual-zone::after {
    right: 250px !important;
    bottom: -2px !important;
    width: 400px !important;
  }
}

@media (max-width: 760px) {
  .fp-home-hero-layout {
    min-height: auto !important;
  }

  .fp-hero-copy {
    padding-bottom: 0;
  }

  .fp-hero-visual-zone {
    min-height: 430px !important;
  }

  .fp-hero-crew-cutout {
    left: 50% !important;
    right: auto !important;
    bottom: 150px !important;
    transform: translateX(-50%) !important;
    width: min(94%, 360px) !important;
    max-height: 300px !important;
  }
}

/* ---------- Firepool stats polish v1 ---------- */
.stats-note-panel {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-live-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.03em;
}

.stats-note-copy {
  color: var(--tan);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 34ch;
}

.stats-chart-box {
  position: relative;
  height: 240px;
  min-height: 220px;
}

.stats-donut-box {
  height: 250px;
}

.stats-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.stats-chart-empty {
  min-height: 210px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--tan-dim);
  font-size: 13px;
  line-height: 1.5;
  padding: 18px;
  border: 1px dashed rgba(184,153,104,0.20);
  background: rgba(10,8,6,0.20);
}

/* Firepool block status polish */
.status-submitted,
.status-submit_ok {
  color: #8fd36a;
  background: rgba(80, 140, 50, 0.18);
  border-color: rgba(143, 211, 106, 0.22);
}

/* Firepool submitted block rows are successful pool submissions, not errors */
.status-pill.status-submitted,
.status-pill.status-submit_ok,
.status-submitted,
.status-submit_ok,
.badge-submitted,
.badge-submit_ok {
  color: #8fd36a !important;
  background: rgba(80, 140, 50, 0.22) !important;
  border-color: rgba(143, 211, 106, 0.30) !important;
}

/* Firepool payments polish */
#p-minpayout {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.15;
  white-space: nowrap;
}

.payments-layout {
  align-items: start;
}

.payments-layout > div {
  min-width: 0;
}

.payments-solo-section {
  margin-top: 24px;
}

.payments-scroll-panel {
  box-sizing: border-box;
  margin-top: 12px;
  max-height: 580px;
  max-width: 100%;
  overflow: auto;
  position: relative;
  width: 100%;
}

.prop-payout-scroll {
  max-height: 600px;
  overflow-x: hidden;
}

.solo-rewards-scroll {
  max-height: 560px;
}

.payments-scroll-panel .payments-table {
  min-width: 940px;
}

.prop-payout-scroll .payments-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.prop-payout-scroll .payments-table th,
.prop-payout-scroll .payments-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.prop-payout-scroll .payments-table th {
  line-height: 1.25;
  white-space: normal;
}

.prop-payout-scroll .payments-table th:nth-child(1) { width: 15%; }
.prop-payout-scroll .payments-table th:nth-child(2) { width: 7%; }
.prop-payout-scroll .payments-table th:nth-child(3) { width: 17%; }
.prop-payout-scroll .payments-table th:nth-child(4) { width: 13%; }
.prop-payout-scroll .payments-table th:nth-child(5) { width: 13%; }
.prop-payout-scroll .payments-table th:nth-child(6) { width: 13%; }
.prop-payout-scroll .payments-table th:nth-child(7) { width: 10%; }
.prop-payout-scroll .payments-table th:nth-child(8) { width: 12%; }

.payments-scroll-panel thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #1b130d;
  box-shadow: 0 1px 0 var(--border-metal);
}

.payments-table td,
.payments-table th,
#minerPaymentsBody td {
  vertical-align: middle;
}

.payments-table td:first-child,
.payments-table th:first-child {
  min-width: 142px;
  white-space: nowrap;
}

.prop-payout-scroll .payments-table td:first-child,
.prop-payout-scroll .payments-table th:first-child {
  min-width: 0;
  white-space: normal;
}

#propPayoutBody td:nth-child(4) {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payments-table .amount-cell {
  color: var(--rust-bright);
  white-space: nowrap;
}

#minerPaymentsBody .mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}

#minerPaymentsBody .mode-prop {
  color: #f4bd3f !important;
  background: rgba(244, 189, 63, 0.14) !important;
  border-color: rgba(244, 189, 63, 0.24) !important;
}

#minerPaymentsBody .mode-solo {
  color: #8fd36a !important;
  background: rgba(80, 140, 50, 0.18) !important;
  border-color: rgba(143, 211, 106, 0.26) !important;
}

.payments-table .txid-cell,
#minerPaymentsBody .txid-cell,
.txid-cell {
  color: var(--tan-dim);
  font-family: var(--font-mono, monospace);
  font-size: 0.86rem;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payments-table .miner-cell,
#minerPaymentsBody .miner-cell,
.miner-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prop-payout-scroll .status-pill {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.status-paid,
.status-closed {
  color: #8fd36a !important;
  background: rgba(80, 140, 50, 0.22) !important;
  border-color: rgba(143, 211, 106, 0.30) !important;
}

.status-pending,
.status-open,
.status-candidate,
.status-ready,
.status-review,
.status-reserved {
  color: #f4bd3f !important;
  background: rgba(244, 189, 63, 0.16) !important;
  border-color: rgba(244, 189, 63, 0.26) !important;
}


@media (max-width: 700px) {
  .prop-payout-scroll {
    overflow-x: hidden;
  }

  .prop-payout-scroll .payments-table,
  .prop-payout-scroll .payments-table thead,
  .prop-payout-scroll .payments-table tbody,
  .prop-payout-scroll .payments-table tr,
  .prop-payout-scroll .payments-table td {
    display: block;
    width: 100%;
  }

  .prop-payout-scroll .payments-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .prop-payout-scroll .payments-table tr {
    border-bottom: 1px solid rgba(74,50,32,0.55);
    padding: 10px 0;
  }

  .prop-payout-scroll .payments-table td {
    border-bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    padding: 6px 12px;
    white-space: normal;
  }

  .prop-payout-scroll .payments-table td::before {
    color: var(--tan-dim);
    content: attr(data-label);
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .prop-payout-scroll .payments-table .miner-cell,
  .prop-payout-scroll .payments-table .txid-cell {
    max-width: none;
  }
}

/* Firepool miner port matrix */
.firepool-port-matrix-section {
  margin-top: 2rem;
}

.firepool-port-matrix-section .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.firepool-port-matrix-section code {
  color: #32e875;
  font-family: var(--font-mono, monospace);
}

.port-matrix-table td,
.port-matrix-table th {
  white-space: nowrap;
}

.port-matrix-table td:nth-child(6) {
  min-width: 280px;
}

@media (max-width: 900px) {
  .payments-scroll-panel {
    max-height: 68vh;
  }

  .payments-scroll-panel .payments-table {
    min-width: 860px;
  }

  .prop-payout-scroll .payments-table {
    min-width: 0;
  }

  .firepool-port-matrix-section .section-head {
    flex-direction: column;
  }

  .port-matrix-table td:nth-child(6) {
    min-width: 220px;
  }
}

/* Firepool polished connection ports */
.firepool-connect-section {
  margin-top: 2rem;
  border: 1px solid rgba(255, 118, 31, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 118, 31, 0.045), rgba(0, 0, 0, 0)),
    rgba(18, 10, 6, 0.72);
  border-radius: 10px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.firepool-connect-section .connect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.firepool-connect-section h2 {
  margin-bottom: 0.35rem;
}

.firepool-connect-section code {
  color: #32e875;
  font-family: var(--font-mono, monospace);
  font-size: 0.95em;
}

.port-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.port-card {
  border: 1px solid rgba(212, 161, 58, 0.18);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 1rem;
}

.port-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.port-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.port-card-title small {
  color: var(--tan-dim);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mode-port-block {
  border-top: 1px solid rgba(212, 161, 58, 0.14);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.mode-port-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.mode-port-head span {
  color: var(--rust-bright);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.port-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.port-pills span {
  border: 1px solid rgba(212, 161, 58, 0.22);
  background: rgba(212, 161, 58, 0.08);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.86rem;
}

.connect-foot {
  margin-top: 1rem;
  color: var(--tan-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 950px) {
  .port-card-grid {
    grid-template-columns: 1fr;
  }

  .firepool-connect-section .connect-head {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .mode-port-head {
    align-items: flex-start;
  }

  .mode-port-head code {
    width: 100%;
    overflow-x: auto;
    display: block;
  }
}

/* Keep Pools connection guide above the shell footer */
.firepool-connect-section {
  margin-bottom: 2.5rem;
}

.firepool-connect-section + footer,
.firepool-connect-section + .site-footer,
.firepool-connect-section + .shell-footer {
  margin-top: 0;
}

