/* ==========================================================================
   BTGS (BitcoinGold) MINING POOL — LUXOR-TIER INSTITUTIONAL FINTECH DESIGN
   Inspired by: Luxor Mining (app.luxor.tech), Linear.app, and Vercel
   Philosophy: Ultra-clean data hierarchy, warm gold obsidian, zero clutter.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* BTGS Deep Dark Warm Obsidian */
  --bg: #0c0b09;
  --bg-subtle: #100e0b;
  --surface: #16130e;
  --surface-hover: #1c1810;
  --surface-border: rgba(232, 196, 122, 0.10);
  --surface-border-hover: rgba(232, 196, 122, 0.38);

  /* Typography */
  --text-main: #f4efe4;
  --text-bright: #ffffff;
  --text-dim: #a39886;
  --text-muted: #6b5e4a;

  /* BTGS Signature Gold */
  --primary: #e8c47a;
  --primary-hover: #f0d090;
  --primary-glow: rgba(232, 196, 122, 0.25);
  --primary-subtle: rgba(232, 196, 122, 0.08);
  --primary-border: rgba(232, 196, 122, 0.22);

  /* Status Colors */
  --success: #6aaa8a;
  --warn: #e8a020;
  --danger: #e07a5f;
  --info: #7aace8;

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Legacy & Helper Aliases */
  --accent-neon: #e8c47a;
  --dim: #a39886;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0c0b09;
  background: #0c0b09;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #0c0b09;
  background: #0c0b09;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* Interactive Particle Constellation Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Subtle Ambient Gradient at Top */
.luxor-ambient-light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 380px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 196, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2010; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Container */
.luxor-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. TOP INSTITUTIONAL NAVBAR
   ========================================================================== */
.luxor-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(12, 11, 9, 0.88);
  border-bottom: 1px solid var(--surface-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.luxor-nav-wrap {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-emblem-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(232, 196, 122, 0.45));
  transition: transform 0.2s ease;
}
.brand-block:hover .brand-emblem-img {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name span.sub {
  color: var(--primary);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}

.nav-links-cluster {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 860px) {
  .nav-links-cluster { display: flex; }
}

.nav-item-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-item-link:hover {
  color: var(--text-bright);
}

.nav-meta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.status-indicator-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.status-pill.err {
  background: rgba(224, 122, 95, 0.1);
  border-color: rgba(224, 122, 95, 0.3);
  color: var(--danger);
}
.status-pill.err .status-indicator-dot {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* ==========================================================================
   2. TOP TICKER RIBBON
   ========================================================================== */
.market-ticker-ribbon {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--surface-border);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ticker-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-sizing: border-box;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.ticker-item strong {
  color: var(--text-bright);
}

.ticker-item span.green {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   3. HERO & COMMAND BAR SEARCH
   ========================================================================== */
.luxor-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-supertitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero-main-title {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-main-title span.highlight {
  background: linear-gradient(135deg, #ffffff 0%, #e8c47a 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-text {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Worker Command Bar (Search) */
.command-search-wrapper {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.command-search-bar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.command-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
}

.command-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.command-input-field {
  min-width: 0;
  width: 100%;
}

.command-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.command-input-field {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-bright);
  outline: none;
}

.command-input-field::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
}

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

.btn-search-primary {
  background: var(--primary);
  color: #1a1200;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-search-sample {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--surface-border);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-sample:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   4. KPI METRICS TILES (4 CARDS)
   ========================================================================== */
.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .kpi-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.kpi-card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--primary-subtle);
  color: var(--primary);
}

.kpi-value-massive {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-value-massive span.unit {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-subtext strong {
  color: var(--text-dim);
}

/* ==========================================================================
   5. WORKER TELEMETRY DRAWER
   ========================================================================== */
.worker-telemetry-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
  animation: slideFadeDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.worker-telemetry-panel.active {
  display: block;
}

@keyframes slideFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
  gap: 12px;
}

.worker-stat-pills-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .worker-stat-pills-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.worker-stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
  box-sizing: border-box;
}

.worker-stat-box .box-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.worker-stat-box .box-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 4px;
}
.worker-stat-box .box-val.green {
  color: var(--primary);
}

/* ==========================================================================
   6. 2-COLUMN MAIN CONTENT (ANALYTICS CHART + STRATUM)
   ========================================================================== */
.analytics-stratum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .analytics-stratum-row {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
}

.luxor-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s ease;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.luxor-card:hover {
  border-color: rgba(232, 196, 122, 0.18);
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend-chips {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}
.legend-dot.pool { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.legend-dot.net { background: var(--info); }

/* SVG Chart */
.chart-canvas-wrap {
  width: 100%;
  height: 230px;
  position: relative;
  cursor: crosshair;
}

.chart-canvas-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-dasharray: 4 4;
}

#chartCrosshair {
  stroke: rgba(232, 196, 122, 0.45);
  stroke-dasharray: 3 3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#chartHoverDot {
  fill: #e8c47a;
  stroke: #FFFFFF;
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 8px #e8c47a);
  transition: opacity 0.15s ease;
}

.chart-tooltip {
  position: absolute;
  top: 10px;
  left: 10px;
  pointer-events: none;
  background: rgba(22, 19, 14, 0.97);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px var(--primary-glow);
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.1s ease;
  z-index: 50;
  white-space: nowrap;
}

.chart-tooltip.show { opacity: 1; }
.chart-tooltip .val { color: var(--primary); font-weight: 700; }

/* Stratum Quick Connect Card */
.stratum-spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stratum-endpoint-box {
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stratum-url-lbl {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-bright);
}

.stratum-url-lbl span.accent {
  color: var(--primary);
  font-weight: 600;
}

.btn-copy-chip {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy-chip:hover {
  background: var(--primary);
  color: #1a1200;
}
.btn-copy-chip.active {
  background: var(--primary);
  color: #1a1200;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(232, 196, 122, 0.3);
}

/* Command Generator */
.cmd-box-institutional {
  background: #080601;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 14px;
}

.cmd-inputs-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cmd-field label {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cmd-input-element {
  width: 100%;
  background: #100e0b;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #FFFFFF;
  outline: none;
}
.cmd-input-element:focus {
  border-color: var(--primary);
}

.cmd-display-snippet {
  background: #060400;
  border: 1px solid rgba(232, 196, 122, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-display-snippet code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd-display-snippet code::-webkit-scrollbar { display: none; }

/* ==========================================================================
   7. DATA EXPLORER (TABBED)
   ========================================================================== */
.explorer-card-section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  margin-top: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.explorer-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-subtle);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.segmented-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.segmented-tab-btn:hover {
  color: var(--text-bright);
}

.segmented-tab-btn.active {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
}

.tab-counter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(232, 196, 122, 0.15);
}

.explorer-filter-input {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-bright);
  outline: none;
  min-width: 200px;
}
.explorer-filter-input:focus {
  border-color: var(--primary);
}

.tab-pane-view {
  display: none;
}
.tab-pane-view.active {
  display: block;
}

/* Institutional Tables */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

table.luxor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

table.luxor-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 14px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--surface-border);
}

table.luxor-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(232, 196, 122, 0.05);
  font-family: var(--font-mono);
  color: var(--text-main);
  transition: background 0.15s ease;
}

table.luxor-table tr:hover td {
  background: rgba(232, 196, 122, 0.03);
}

table.luxor-table td.num, table.luxor-table th.num { text-align: right; }
table.luxor-table td.center, table.luxor-table th.center { text-align: center; }

/* Rank Badges */
.rank-badge, .rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.rank-badge.rank-1, .rank-pill.gold {
  background: rgba(232, 196, 122, 0.18);
  color: #e8c47a;
  border: 1px solid rgba(232, 196, 122, 0.5);
  box-shadow: 0 0 10px rgba(232, 196, 122, 0.2);
}
.rank-badge.rank-2, .rank-pill.silver {
  background: rgba(192, 192, 192, 0.15);
  color: #E2ECE5;
  border: 1px solid rgba(192, 192, 192, 0.4);
}
.rank-badge.rank-3, .rank-pill.bronze {
  background: rgba(184, 135, 58, 0.18);
  color: #b8873a;
  border: 1px solid rgba(184, 135, 58, 0.45);
}
.rank-badge.rank-other, .rank-pill.standard {
  color: var(--text-muted);
}

/* Copyable Address Link */
.addr-copyable, .copyable-addr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text-bright);
  transition: all 0.15s ease;
  user-select: none;
}
.addr-copyable:hover, .copyable-addr-link:hover {
  color: var(--primary);
}
.addr-copyable svg, .copyable-addr-link svg {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.addr-copyable:hover svg, .copyable-addr-link:hover svg {
  opacity: 1;
}

/* Hashrate Pill */
.pill-hash, .hashrate-pill-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: 4px;
  padding: 2px 7px;
}

/* Status Badges */
.pill-conf, .badge-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill-conf.confirmed, .badge-status-chip.confirmed {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(232, 196, 122, 0.15);
}
.pill-conf.pending, .badge-status-chip.pending {
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.35);
  color: var(--warn);
}
.pill-conf.orphaned, .badge-status-chip.orphaned {
  background: rgba(224, 122, 95, 0.12);
  border: 1px solid rgba(224, 122, 95, 0.35);
  color: var(--danger);
}
.pill-conf.standby, .badge-status-chip.standby {
  background: rgba(163, 152, 134, 0.12);
  border: 1px solid rgba(163, 152, 134, 0.3);
  color: var(--text-dim);
}
.pill-conf:not(.confirmed):not(.pending):not(.orphaned):not(.standby) {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
}

/* Table Action Buttons */
.btn-table-action {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-table-action:hover {
  background: var(--primary);
  color: #1a1200;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Empty row message */
.empty-state-row, .empty-row-msg {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13.5px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.luxor-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.footer-nav-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.footer-nav-links a:hover {
  color: var(--text-bright);
}

.footer-copyright {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Toast */
.pool-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #16130e;
  border: 1px solid var(--primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pool-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Navigation Button & Dropdown */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-bright);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover, .mobile-menu-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 196, 122, 0.1);
  box-shadow: 0 0 10px var(--primary-glow);
}

.mobile-dropdown-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(12, 11, 9, 0.98);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 12px 20px 16px;
  gap: 4px;
}
.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 11px 12px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-item:hover, .mobile-menu-item:active {
  color: var(--text-bright);
  background: rgba(232, 196, 122, 0.08);
}
.mobile-menu-item.external {
  color: var(--text-muted);
  font-size: 13px;
}
.mobile-menu-item.external:hover {
  color: var(--primary);
}
.mobile-menu-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 6px 0;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN & MOBILE
   ========================================================================== */

@media (max-width: 860px) {
  .nav-links-cluster { display: none !important; }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .luxor-nav-wrap { padding: 0 16px; }
  .market-ticker-ribbon {
    width: 100%; max-width: 100%; overflow-x: auto;
    white-space: nowrap; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; box-sizing: border-box;
  }
  .market-ticker-ribbon::-webkit-scrollbar { display: none; }
  .ticker-inner {
    width: max-content; max-width: none; flex-wrap: nowrap;
    gap: 20px; padding: 0 16px; justify-content: flex-start; box-sizing: border-box;
  }
  .ticker-group { flex-wrap: nowrap; gap: 16px; flex-shrink: 0; }
  .ticker-item { flex-shrink: 0; }
  .luxor-container { padding: 0 16px 50px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .luxor-card { padding: 18px; border-radius: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .worker-telemetry-panel { padding: 18px; border-radius: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .command-input-field, .cmd-input-element, .explorer-filter-input { font-size: 16px !important; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; box-sizing: border-box; display: block; }
  table.luxor-table { min-width: 580px; }
  table.luxor-table th, table.luxor-table td { padding: 12px 14px; font-size: 12px; }
}

@media (max-width: 580px) {
  .luxor-nav-wrap { padding: 0 12px; }
  .brand-name { font-size: 15px; gap: 4px; }
  .status-pill { padding: 4px 8px; font-size: 10px; }
  .luxor-hero { padding: 24px 0 20px; }
  .hero-supertitle { font-size: 10.5px; padding: 3px 10px; margin-bottom: 12px; }
  .hero-main-title { font-size: clamp(22px, 6vw, 32px); line-height: 1.18; margin-bottom: 10px; word-break: break-word; overflow-wrap: break-word; }
  .hero-subtitle-text { font-size: 13.5px; line-height: 1.55; margin-bottom: 22px; padding: 0 4px; }
  .command-search-wrapper { width: 100%; max-width: 100%; box-sizing: border-box; }
  .command-search-bar { flex-direction: column; align-items: stretch; padding: 12px 14px; gap: 12px; border-radius: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .command-input-group { width: 100%; max-width: 100%; min-width: 0; }
  .command-actions { width: 100%; display: flex; gap: 8px; }
  .btn-search-primary, .btn-search-sample { flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
  .kpi-metrics-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; width: 100%; max-width: 100%; }
  .kpi-card { padding: 16px 18px; border-radius: 10px; width: 100%; max-width: 100%; min-width: 0; }
  .kpi-value-massive { font-size: 26px; }
  .worker-stat-pills-row { grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 100%; }
  .stratum-endpoint-box { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .stratum-url-lbl { font-size: 12px; word-break: break-all; text-align: center; }
  .stratum-endpoint-box .btn-copy-chip { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
  #minerTypeSelector { flex-wrap: wrap; gap: 6px; width: 100%; max-width: 100%; }
  #minerTypeSelector .btn-copy-chip { flex: 1 1 30%; text-align: center; padding: 6px 4px; font-size: 10.5px; }
  .cmd-inputs-row { display: flex !important; flex-direction: column !important; gap: 8px; width: 100%; max-width: 100%; }
  .cmd-field { width: 100% !important; max-width: 100%; }
  .cmd-display-snippet { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .cmd-display-snippet code { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; line-height: 1.5; }
  .cmd-display-snippet .btn-copy-chip { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; }
  .explorer-header-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; width: 100%; max-width: 100%; }
  .segmented-nav-tabs { width: 100%; max-width: 100%; display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; gap: 6px; padding-bottom: 2px; box-sizing: border-box; }
  .segmented-nav-tabs::-webkit-scrollbar { display: none; }
  .segmented-tab-btn { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; font-size: 12px; gap: 6px; }
  .explorer-filter-wrap { width: 100%; max-width: 100%; }
  .explorer-filter-input { width: 100%; max-width: 100%; min-width: 0; height: 40px; box-sizing: border-box; }
  .footer-main-row { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; max-width: 100%; }
  .footer-nav-links { flex-wrap: wrap; gap: 12px 18px; width: 100%; max-width: 100%; }
  .footer-copyright { flex-direction: column; gap: 6px; width: 100%; max-width: 100%; }
}

@media (max-width: 360px) {
  .luxor-nav-wrap { padding: 0 8px; }
  .brand-name { font-size: 14px; }
  .brand-name span.sub { display: none; }
  .luxor-container { padding: 0 10px 40px; }
  .kpi-value-massive { font-size: 22px; }
  .kpi-label { font-size: 9px; }
  .segmented-tab-btn { padding: 7px 10px; font-size: 11px; }
}

@media (max-width: 600px) {
  .pool-toast {
    left: 50% !important; right: auto !important; bottom: 16px !important;
    transform: translate(-50%, 20px) !important;
    width: max-content; max-width: calc(100vw - 32px);
    padding: 10px 16px; box-sizing: border-box;
  }
  .pool-toast.show { transform: translate(-50%, 0) !important; }
}
