/* ==========================================================================
   The New Pool · BNT (Blocknet) Miner Web
   Design Language: Blocknet Official Site (blocknetcrypto.com)
   Palette: Deep Pitch Black #000000 · Neon Lime #aaff00 (#af0) · Muted #555
   Typography: Technical Monospace (ui-monospace, SFMono, Menlo, Consolas)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces & Backgrounds */
  --bg: #000000;
  --bg-subtle: #050505;
  --bg-hover: #050805;
  --card-bg: #000000;
  --card-hover: #050805;
  --input-bg: #000000;

  /* Borders */
  --border: #151515;
  --border-strong: #1f1f1f;
  --border-hover: #2a3a00;
  --border-active: #aaff00;

  /* Typography / Text */
  --ink-primary: #eeeeee;
  --ink-secondary: #999999;
  --ink-muted: #555555;
  --ink-faint: #333333;

  /* Blocknet Signature Neon Lime Accents */
  --bnt-lime: #aaff00;            /* #af0 */
  --bnt-lime-hover: #ccff33;      /* #cf3 */
  --bnt-lime-dark: #aaff00;       /* kept as alias for existing code */
  --bnt-lime-darker: #ccff33;
  --bnt-lime-surface: rgba(170, 255, 0, 0.05);
  --bnt-lime-border: #2a3a00;
  --bnt-lime-glow: rgba(170, 255, 0, 0.25);

  /* Status Indicators */
  --status-online: #aaff00;
  --status-online-bg: rgba(170, 255, 0, 0.06);
  --status-online-border: #2a3a00;

  --status-pending: #ffaa00;
  --status-pending-bg: rgba(255, 170, 0, 0.06);
  --status-pending-border: #3a2600;

  --status-offline: #ff4d4d;
  --status-offline-bg: rgba(255, 77, 77, 0.06);
  --status-offline-border: #4d1515;

  /* Font Stack */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max-width: 1200px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 9999px;
}

/* Reset & Universal Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
  background-color: #000000;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  color: var(--ink-secondary);
  overflow-x: hidden;
  position: relative;
}

/* Links */
a {
  color: var(--bnt-lime);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--bnt-lime-hover);
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

code, pre {
  font-family: var(--font-mono);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.g {
  color: var(--bnt-lime) !important;
}

.af0 {
  color: var(--bnt-lime) !important;
}

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

.accent-hash {
  color: var(--bnt-lime);
  margin-right: 4px;
}

.accent-prompt {
  color: var(--bnt-lime);
  margin-right: 6px;
}

/* Visibility Utilities */
.hide-desktop {
  display: none !important;
}

.overview-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

/* ==========================================================================
   Blocknet Signature Components: .pill, .cards, .card, .row, .note, .warn, .dl
   ========================================================================== */

/* Official Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--bnt-lime-border);
  color: var(--bnt-lime);
  font-size: 12px;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--bnt-lime);
  background: rgba(170, 255, 0, 0.08);
  color: var(--bnt-lime-hover);
  text-decoration: none;
}

.pill.hi {
  border-color: var(--bnt-lime);
  background: rgba(170, 255, 0, 0.05);
}

/* Official 1px Grid Cards Container */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.card {
  background: #000000;
  padding: 22px 22px 24px;
  transition: background 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  background: var(--card-hover);
}

.card .n {
  color: var(--ink-faint);
  font-size: 11px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.card:hover .n {
  color: var(--bnt-lime);
}

.card h3 {
  color: var(--ink-primary);
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 8px;
}

.card p {
  color: #777777;
  font-size: 13px;
  line-height: 1.6;
}

/* Key-Value Row */
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #111111;
  font-size: 13px;
}

.row:last-child {
  border-bottom: 0;
}

.row-k {
  color: var(--ink-muted);
}

.row-v {
  color: var(--ink-secondary);
  text-align: right;
}

/* Action Links / Download Item (.dl) */
.dl {
  display: block;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-left: 2px solid #1a1a1a;
  margin: 6px 0;
  text-decoration: none;
  color: #777777;
  font-size: 13px;
  transition: all 0.15s ease;
}

.dl:hover {
  border-left-color: var(--bnt-lime);
  color: var(--ink-primary);
  transform: translateX(3px);
  text-decoration: none;
}

.dl span {
  float: right;
  color: #333333;
  transition: all 0.15s ease;
}

.dl:hover span {
  color: var(--bnt-lime);
}

/* Note & Warning Callouts */
.note {
  margin-top: 24px;
  border: 1px solid #3a2600;
  border-left: 2px solid #ffaa00;
  padding: 14px 18px;
  color: #ccbb88;
  font-size: 13px;
  line-height: 1.6;
  background: rgba(255, 170, 0, 0.03);
}

.note b {
  color: #ffaa00;
  font-weight: normal;
}

.warn {
  color: #ffaa00;
  border: 1px solid #331a00;
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  text-align: center;
  background: rgba(255, 170, 0, 0.03);
}

/* Official Comparison Table (.cmp) */
.cmp {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.3fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #111111;
  font-size: 13px;
}

.cmp-row.head {
  color: #444444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cmp-row .k {
  color: var(--ink-muted);
}

.cmp-row .a {
  color: #777777;
}

.cmp-row .b {
  color: #ccffee;
}

.cmp-row .b::before {
  content: '→ ';
  color: var(--bnt-lime);
}

.cmp-row.head .b::before {
  content: '';
}

.cmp-row.head .b {
  color: var(--bnt-lime);
}

/* Official Timeline (.tl) */
.tl {
  margin-top: 32px;
  position: relative;
  padding-left: 28px;
}

.tl::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--bnt-lime), var(--bnt-lime-border) 60%, var(--border));
}

.tl-i {
  position: relative;
  margin-bottom: 24px;
}

.tl-i:last-child {
  margin-bottom: 0;
}

.tl-i::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--bnt-lime);
  background: #000000;
}

.tl-i.now::before {
  background: var(--bnt-lime);
  box-shadow: 0 0 10px var(--bnt-lime);
}

.tl-d {
  color: var(--bnt-lime);
  font-size: 12px;
}

.tl-t {
  color: var(--ink-primary);
  font-weight: 500;
  margin: 2px 0;
}

.tl-p {
  color: #777777;
  font-size: 13px;
}

/* ==========================================================================
   Topbar / Header Navigation
   ========================================================================== */

.topbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}

.mobile-nav-footer {
  display: flex;
  align-items: center;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #1a1a1a;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-primary);
  font-size: 15px;
  text-decoration: none;
  font-weight: normal;
}

.topbar-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.topbar-brand .g {
  color: var(--bnt-lime);
  font-weight: 700;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  font-size: 14px;
  color: var(--ink-primary);
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 14px;
  background-color: var(--border-strong);
}

.brand-coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--bnt-lime-border);
  background: rgba(0, 0, 0, 0.6);
  color: var(--bnt-lime);
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.brand-coin-badge:hover {
  border-color: var(--bnt-lime);
  color: var(--bnt-lime-hover);
  text-decoration: none;
}

.brand-coin-badge svg {
  width: 12px;
  height: 12px;
}

.pool-fee-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 6px 12px;
  color: var(--ink-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--bnt-lime);
  text-decoration: none;
}

.nav-link.active {
  color: var(--bnt-lime) !important;
  background: rgba(170, 255, 0, 0.06);
  border: 1px solid var(--bnt-lime-border);
}

.nav-link.active .accent-prompt {
  color: var(--bnt-lime);
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payout-countdown-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #1f1f1f;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.payout-countdown-pill strong {
  color: var(--bnt-lime);
  font-weight: 600;
}

.payout-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bnt-lime);
  box-shadow: 0 0 8px var(--bnt-lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.pref-select {
  padding: 4px 8px;
  background-color: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.pref-select:hover, .pref-select:focus {
  border-color: var(--bnt-lime);
  color: var(--ink-primary);
}

.nav-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #000000;
  color: var(--ink-primary);
}

/* ==========================================================================
   Hero Section & Address Search
   ========================================================================== */

.hero-section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 36px;
  padding: 72px 24px 56px;
  background: #000000;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-terminal-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  color: #eeeeee;
  font-weight: normal;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-size: clamp(34px, 6.5vw, 76px);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.95);
}

.hero-title .cur {
  color: var(--bnt-lime);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  color: var(--ink-secondary);
  font-size: clamp(13px, 1.6vw, 15px);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 740px;
  margin: 0 auto 16px;
  background: #000000;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  padding: 4px 6px 4px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search-form:focus-within {
  border-color: var(--bnt-lime);
  box-shadow: 0 0 16px rgba(170, 255, 0, 0.15);
}

.search-input-prefix {
  color: var(--bnt-lime);
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  margin-right: 8px;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-primary);
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--ink-faint);
  font-size: 12px;
}

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--bnt-lime-border);
  color: var(--bnt-lime);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--bnt-lime);
  color: #000000;
  border-color: var(--bnt-lime);
}

.search-feedback {
  min-height: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}

.search-feedback.error {
  color: var(--status-offline);
}

.search-feedback.success {
  color: var(--status-online);
}

.recent-searches {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
}

.recent-searches-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #000000;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  color: #777777;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recent-pill:hover {
  border-color: var(--bnt-lime);
  color: var(--ink-primary);
  background: var(--bg-hover);
}

.recent-pill-remove {
  color: #444444;
  font-size: 12px;
  line-height: 1;
}

.recent-pill-remove:hover {
  color: var(--status-offline);
}

/* ==========================================================================
   Network Upgrade Banner
   ========================================================================== */

.upgrade-banner {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  padding: 12px 18px;
  background: rgba(255, 170, 0, 0.03);
  border: 1px solid #3a2600;
  border-left: 2px solid #ffaa00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upgrade-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #ccbb88;
}

.upgrade-badge {
  padding: 2px 6px;
  background: #261700;
  border: 1px solid #ffaa00;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 10px;
  color: #ffaa00;
  text-transform: uppercase;
  white-space: nowrap;
}

.upgrade-banner-btn {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid #ffaa00;
  border-radius: var(--radius-sm);
  color: #ffaa00;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.upgrade-banner-btn:hover {
  background: #ffaa00;
  color: #000000;
}

/* ==========================================================================
   Section Headers & Common Panels
   ========================================================================== */

.metrics-section {
  max-width: var(--max-width);
  margin: 0 auto 36px;
  padding: 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 2px;
}

.section-title {
  color: #eeeeee;
  font-weight: normal;
  font-size: 15px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.section-title .accent-hash, .section-title .g {
  color: var(--bnt-lime);
  margin-right: 6px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  background: #000000;
  border: 1px solid var(--border);
  padding: 24px;
}

/* ==========================================================================
   Metrics Grid & Cards
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.metric-card {
  background-color: #000000;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.metric-card:hover {
  background-color: var(--card-hover);
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  transition: color 0.15s ease;
}

.metric-card:hover .metric-label {
  color: var(--bnt-lime);
}

.metric-pill {
  font-size: 10px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 26px;
  font-weight: normal;
  letter-spacing: -0.02em;
  color: #eeeeee;
  margin-bottom: 8px;
  line-height: 1.2;
}

.metric-value.highlight-lime {
  color: var(--bnt-lime);
}

.metric-desc {
  font-size: 11px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-subval {
  color: #888888;
}

/* ==========================================================================
   Hashrate Chart
   ========================================================================== */

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.pool {
  background-color: var(--bnt-lime);
  box-shadow: 0 0 6px var(--bnt-lime);
}

.legend-dot.network {
  background-color: #555555;
}

.period-buttons {
  display: inline-flex;
  border: 1px solid var(--border);
  background: #000000;
}

.period-btn {
  padding: 5px 12px;
  font-size: 11px;
  color: var(--ink-muted);
  border-right: 1px solid var(--border);
  transition: all 0.15s ease;
}

.period-btn:last-child {
  border-right: none;
}

.period-btn:hover {
  color: var(--bnt-lime);
  background: var(--bg-hover);
}

.period-btn.active {
  background-color: var(--bnt-lime);
  color: #000000;
  font-weight: 700;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

.svg-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #000000;
  border: 1px solid var(--bnt-lime-border);
  color: #eeeeee;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -115%);
  transition: opacity 0.1s ease;
  z-index: 20;
  white-space: nowrap;
}

.chart-tooltip .tt-time {
  color: var(--ink-muted);
  font-size: 10px;
  margin-bottom: 4px;
}

.chart-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.chart-tooltip .tt-lime {
  color: var(--bnt-lime);
  font-weight: 700;
}

/* ==========================================================================
   Quick Stratum Card
   ========================================================================== */

.stratum-card {
  background: #000000;
  border: 1px solid var(--border);
  border-left: 2px solid var(--bnt-lime);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stratum-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.stratum-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}

.stratum-chip {
  padding: 3px 8px;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-sm);
}

.stratum-chip strong {
  color: #eeeeee;
}

.stratum-code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050505;
  border: 1px solid #1a1a1a;
  padding: 10px 14px;
  font-size: 12px;
  overflow-x: auto;
}

.stratum-code {
  color: #eeeeee;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.stratum-code .cmd-accent {
  color: var(--bnt-lime);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--bnt-lime-border);
  border-radius: var(--radius-sm);
  color: var(--bnt-lime);
  font-size: 11px;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--bnt-lime);
  color: #000000;
  border-color: var(--bnt-lime);
}

/* ==========================================================================
   Earnings Calculator
   ========================================================================== */

.calculator-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
}

.calc-input-group {
  display: flex;
  border: 1px solid #1a1a1a;
  background: #000000;
  transition: border-color 0.15s ease;
}

.calc-input-group:focus-within {
  border-color: var(--bnt-lime);
}

.calc-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 16px;
  color: #eeeeee;
  outline: none;
}

.calc-unit-select {
  border: none;
  border-left: 1px solid #1a1a1a;
  background: #050505;
  padding: 0 12px;
  font-size: 12px;
  color: var(--ink-secondary);
  outline: none;
  cursor: pointer;
}

.calc-unit-select:hover {
  color: var(--bnt-lime);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calc-result-card {
  background: #000000;
  border: 1px solid #1a1a1a;
  padding: 14px 16px;
  transition: background 0.15s ease;
}

.calc-result-card:hover {
  background: var(--card-hover);
}

.calc-period-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.calc-bnt-amount {
  font-size: 18px;
  color: #eeeeee;
  margin-bottom: 2px;
}

.calc-bnt-amount span {
  font-size: 12px;
  color: var(--bnt-lime);
  margin-left: 2px;
}

.calc-disclaimer {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.5;
  border-top: 1px solid #111111;
  padding-top: 10px;
}

/* ==========================================================================
   Data Tables & Status Badges
   ========================================================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #000000;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

.data-table th {
  background-color: #000000;
  color: #444444;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: normal;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #111111;
  color: #888888;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background-color: var(--card-hover);
  color: #eeeeee;
}

.data-table a {
  color: var(--bnt-lime);
}

.data-table a:hover {
  color: var(--bnt-lime-hover);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-confirmed, .badge-settled, .badge-sent, .badge-online {
  background-color: var(--status-online-bg);
  border: 1px solid var(--status-online-border);
  color: var(--status-online);
}

.badge-pending, .badge-immature {
  background-color: var(--status-pending-bg);
  border: 1px solid var(--status-pending-border);
  color: var(--status-pending);
}

.badge-orphaned, .badge-failed, .badge-offline {
  background-color: var(--status-offline-bg);
  border: 1px solid var(--status-offline-border);
  color: var(--status-offline);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-dot.online {
  background-color: var(--status-online);
  box-shadow: 0 0 6px var(--status-online);
}

.status-dot.offline {
  background-color: var(--status-offline);
}

/* Pagination Controls */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 8px 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.pagination-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn {
  padding: 6px 14px;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #888888;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--bnt-lime);
  color: var(--bnt-lime);
}

.page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ==========================================================================
   Wallet Page Specifics
   ========================================================================== */

.wallet-header {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  background: #000000;
  border: 1px solid var(--border);
  padding: 24px;
}

.wallet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: #000000;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.wallet-back-btn:hover {
  color: var(--bnt-lime);
  border-color: var(--bnt-lime);
  text-decoration: none;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #050505;
  border: 1px solid #1a1a1a;
  border-left: 2px solid var(--bnt-lime);
  padding: 10px 14px;
  word-break: break-all;
}

.wallet-address-text {
  font-size: 13px;
  color: #eeeeee;
  font-family: var(--font-mono);
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.wallet-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.wallet-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.wallet-tab-btn:hover {
  color: var(--ink-primary);
}

.wallet-tab-btn.active {
  color: var(--bnt-lime);
  border-bottom-color: var(--bnt-lime);
}

/* ==========================================================================
   Help & Guide Page
   ========================================================================== */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.guide-card {
  background: #000000;
  border: 1px solid var(--border);
  padding: 24px;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: normal;
  color: #eeeeee;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.guide-card p {
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-code-box {
  background: #050505;
  border: 1px solid #1a1a1a;
  color: #eeeeee;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  overflow-x: auto;
}

.guide-generator-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
}

.form-input {
  padding: 8px 12px;
  background: #000000;
  border: 1px solid #1a1a1a;
  font-size: 12px;
  color: #eeeeee;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--bnt-lime);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  padding: 48px 16px 56px;
  border-top: 1px solid #111111;
  background: #000000;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand strong {
  color: #eeeeee;
  font-weight: normal;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--bnt-lime);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  background: #000000;
  border: 1px solid var(--bnt-lime-border);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(170, 255, 0, 0.1);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 16px;
  color: #eeeeee;
  font-weight: normal;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--bnt-lime);
}

.modal-body {
  font-size: 13px;
  line-height: 1.7;
  color: #888888;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cmp-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
  }
  .cmp-row .k {
    grid-column: 1 / -1;
    color: #888888;
  }
}

@media (min-width: 541px) and (max-width: 840px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wallet-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Visibility toggles */
  .hide-mobile {
    display: none !important;
  }
  .hide-desktop {
    display: block !important;
  }
  .hide-desktop.pill, span.hide-desktop {
    display: inline-flex !important;
  }

  /* Container & Layout gutters */
  main#app {
    padding: 0 12px;
  }
  .panel {
    padding: 18px 14px;
    margin-bottom: 20px;
  }
  .metrics-section {
    padding: 0;
    margin-bottom: 24px;
  }

  /* Topbar Navigation & Mobile Drawer */
  .topbar-wrapper {
    padding: 0;
  }
  .topbar {
    height: 56px;
    padding: 0 14px;
    padding-top: env(safe-area-inset-top, 0);
  }
  .topbar-brand {
    font-size: 14px;
    gap: 6px;
  }
  .brand-icon {
    width: 20px;
    height: 20px;
  }
  .topbar-controls {
    gap: 6px;
  }
  .pref-select {
    padding: 4px 6px;
    font-size: 11px;
  }
  .nav-toggle-btn {
    display: flex;
    width: 38px;
    height: 38px;
    border-color: #222222;
  }
  .nav-toggle-btn:hover, .nav-toggle-btn:focus {
    border-color: var(--bnt-lime);
    color: var(--bnt-lime);
  }
  .nav-toggle-btn svg.hidden {
    display: none;
  }

  /* Slide-down mobile drawer */
  .topbar-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 6, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid #1f1f1f;
    padding: 16px 16px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.98);
    z-index: 101;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .topbar-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-link.active {
    background: rgba(170, 255, 0, 0.1);
    border-color: var(--bnt-lime);
  }

  /* Hero Section */
  .hero-section {
    padding: 36px 12px 28px;
    margin-bottom: 24px;
  }
  .hero-terminal-prompt {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(28px, 8.5vw, 44px);
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .hero-pills {
    gap: 6px;
    margin-bottom: 22px;
  }
  .hero-pills .pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .hero-search-form {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 8px;
  }
  .search-input-prefix {
    display: none;
  }
  .hero-search-input {
    padding: 10px 12px;
    font-size: 16px; /* Prevents auto zoom in iOS Safari */
    text-align: center;
  }
  .hero-search-btn {
    width: 100%;
    height: 42px;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
  }

  /* Grids & Cards */
  .overview-tables-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  .guide-card {
    padding: 18px 14px;
  }
  .guide-card .form-input {
    font-size: 16px; /* Prevents auto zoom in iOS Safari */
  }

  /* Calculator */
  .calc-input {
    font-size: 16px; /* Prevents auto zoom in iOS Safari */
  }

  /* Quick Stratum Card */
  .stratum-card {
    padding: 18px 14px;
    margin-bottom: 24px;
  }
  .stratum-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .stratum-info-chips {
    gap: 6px;
    width: 100%;
  }
  .stratum-code-block {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .stratum-code {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    font-size: 11px;
    padding: 4px 0;
  }
  .copy-btn {
    margin-left: 0;
    width: 100%;
    height: 38px;
    justify-content: center;
    font-size: 12px;
  }

  /* Hashrate Chart */
  .chart-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .chart-header > div:last-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .chart-legend {
    justify-content: flex-start;
  }
  .period-buttons {
    width: 100%;
    display: flex;
  }
  .period-btn {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
  }
  .chart-container {
    height: 220px;
  }

  /* Data Tables Mobile Optimization */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 520px;
    font-size: 11px;
  }
  .data-table th, .data-table td {
    padding: 10px 10px;
  }

  /* Wallet Details View */
  .wallet-header {
    padding: 16px 14px;
    margin-bottom: 18px;
  }
  .wallet-address-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wallet-address-text {
    font-size: 11px;
    word-break: break-all;
    line-height: 1.5;
  }
  .wallet-address-box .copy-btn {
    width: 100%;
    height: 38px;
    justify-content: center;
    margin-left: 0;
  }
  .wallet-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 4px;
    padding-bottom: 2px;
  }
  .wallet-tab-btn {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Row key-value pairs */
  .row {
    flex-direction: column;
    gap: 4px;
  }
  .row-v {
    text-align: left;
  }

  /* Footer */
  .footer {
    padding: 36px 14px calc(44px + env(safe-area-inset-bottom, 0));
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  /* Modals */
  .modal-dialog {
    width: 95%;
    max-height: 85vh;
    padding: 18px 14px;
  }
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .wallet-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .calc-results-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card {
    padding: 16px 16px 18px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-desc {
    font-size: 10px;
  }
  .pagination {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .pagination-btns {
    width: 100%;
    display: flex;
  }
  .page-btn {
    flex: 1;
    text-align: center;
    height: 38px;
  }
}
