/* ==========================================================================
   COSMOS UX — Interstellar Deep-Space Mining Command Deck Stylesheet
   Designed for Miningcore Multi-Coin & Merged Mining Clusters
   ========================================================================== */

:root {
  /* Color Palette: Void & Plasma */
  --void-bg: #030712;
  --void-dark: #060b18;
  --void-panel: rgba(10, 18, 36, 0.72);
  --void-panel-hover: rgba(16, 28, 56, 0.82);
  --void-panel-active: rgba(22, 38, 76, 0.90);
  --void-border: rgba(56, 189, 248, 0.18);
  --void-border-glow: rgba(56, 189, 248, 0.45);

  /* Accents & Energetics */
  --plasma-cyan: #00f5ff;
  --plasma-cyan-glow: 0 0 20px rgba(0, 245, 255, 0.5);
  --nebula-violet: #a855f7;
  --nebula-violet-glow: 0 0 20px rgba(168, 85, 247, 0.5);
  --nova-gold: #fbbf24;
  --nova-gold-glow: 0 0 20px rgba(251, 191, 36, 0.45);
  --warp-emerald: #10b981;
  --warp-emerald-glow: 0 0 20px rgba(16, 185, 129, 0.45);
  --solar-red: #ef4444;
  --solar-red-glow: 0 0 20px rgba(239, 68, 68, 0.45);

  /* Typography Colors */
  --text-bright: #f8fafc;
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  /* Typography Fonts */
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Layout */
  --header-height: 72px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img, svg {
  max-width: 100%;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--void-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas for Starfield & Gravitational Wave Particles */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Ambient Radial Nebula Lighting */
.ambient-nebula {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(0, 245, 255, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 70%);
}

/* Master Command Deck Container */
.cosmos-app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Command Deck HUD Strip
   ========================================================================== */

.cosmos-header {
  height: var(--header-height);
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--void-border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon-halo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid var(--plasma-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--plasma-cyan-glow);
  position: relative;
  overflow: hidden;
}

.brand-icon-halo img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 4px var(--plasma-cyan));
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff, var(--plasma-cyan), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--plasma-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Multi-Coin Star System Quick-Switcher */
.header-coin-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-coin-switcher::-webkit-scrollbar {
  display: none;
}

.header-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.header-coin-pill img {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.header-coin-pill:hover {
  color: var(--text-bright);
  border-color: var(--plasma-cyan);
  background: rgba(56, 189, 248, 0.12);
}

.header-coin-pill.active {
  color: var(--plasma-cyan);
  border-color: var(--plasma-cyan);
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

/* Interstellar Market Ticker */
.market-ticker-hub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
}

.market-ticker-hub::-webkit-scrollbar {
  display: none;
}

.ticker-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ticker-node:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--plasma-cyan);
}

.ticker-node img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-bright);
}

.ticker-price {
  color: var(--text-main);
}

.ticker-delta {
  font-size: 0.7rem;
  font-weight: 600;
}

.ticker-delta.positive {
  color: var(--warp-emerald);
}

.ticker-delta.negative {
  color: var(--solar-red);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Currency for values (ECB daily rates) */
.fiat-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  border-radius: 8px;
  padding: 0.25rem 0.35rem 0.25rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.fiat-select {
  background: transparent;
  border: none;
  color: var(--plasma-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.25rem;
}

.fiat-select:focus {
  outline: 1px solid var(--plasma-cyan);
  border-radius: 4px;
}

.fiat-select option {
  background: #0a0e1a;
  color: var(--text-main);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.hud-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

.hud-btn.active {
  background: rgba(0, 245, 255, 0.18);
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
}

.beacon-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warp-emerald);
}

.pulse-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warp-emerald);
  box-shadow: 0 0 8px var(--warp-emerald);
  animation: pulse-beacon 1.8s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--warp-emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   Navigation Bar (Star System Jumps)
   ========================================================================== */

.subspace-nav-bar {
  background: rgba(4, 9, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
}

.nav-jump-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-jump-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-jump-tab:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
}

.nav-jump-tab.active {
  color: var(--plasma-cyan);
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.nav-jump-tab svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Themed name on top, plain-language name below (e.g. "Stellar Vault" / "Payouts") */
.nav-jump-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-jump-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  opacity: 0.85;
}

.nav-jump-tab.active .nav-jump-hint {
  color: inherit;
  opacity: 0.75;
}

/* ==========================================================================
   Main Command Viewport
   ========================================================================== */

.viewport-content {
  flex: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem 1.5rem;
}

.view-section {
  display: none;
  animation: fadeInView 0.35s ease-out;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   Hero & Holographic Banners
   ========================================================================== */

.holo-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(6, 11, 24, 0.9) 100%);
  border: 1px solid var(--void-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.holo-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--plasma-cyan), var(--nebula-violet), transparent);
}

.hero-tag-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tag.cyan {
  background: rgba(0, 245, 255, 0.12);
  color: var(--plasma-cyan);
  border: 1px solid rgba(0, 245, 255, 0.35);
}

.hero-tag.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--plasma-cyan) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 880px;
}

/* ==========================================================================
   Telemetry Grid & Star System Cards
   ========================================================================== */

.system-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.star-system-card {
  background: var(--void-panel);
  border: 1px solid var(--void-border);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.star-system-card:hover {
  background: var(--void-panel-hover);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

.system-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.system-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.system-orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-orb img {
  width: 26px;
  height: 26px;
}

.system-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.system-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.system-resonance-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Metric Gauges */
.system-gauges-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.telemetry-cell {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.cell-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.cell-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
}

.cell-val.cyan {
  color: var(--plasma-cyan);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

.cell-val.gold {
  color: var(--nova-gold);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.cell-val.purple {
  color: #c084fc;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.cell-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.payout-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.55rem 0 0.35rem 0;
  width: 100%;
}

.payout-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease-out;
}

.payout-progress-bar.gold {
  background: linear-gradient(90deg, var(--nova-gold), var(--warp-emerald));
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.payout-progress-bar.purple {
  background: linear-gradient(90deg, #c084fc, #a855f7);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.payout-limit-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}


/* Action Strip */
.system-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.port-beacon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-action-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--plasma-cyan);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.card-action-btn:hover {
  background: var(--plasma-cyan);
  color: var(--void-bg);
  box-shadow: var(--plasma-cyan-glow);
}

/* ==========================================================================
   Fleet Command (Miner Console & Rig Harvesters)
   ========================================================================== */

.fleet-search-card,
.fleet-panel-card,
.fleet-report-card {
  background: var(--void-panel);
  border: 1px solid var(--void-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.fleet-card-title {
  font-family: var(--font-display, var(--font-heading));
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fleet-search-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.fleet-input {
  flex: 1;
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.fleet-input:focus {
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.25);
}

.fleet-search-btn {
  background: linear-gradient(135deg, var(--plasma-cyan), #0284c7);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.75rem;
  color: #030712;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fleet-search-btn:hover {
  box-shadow: var(--plasma-cyan-glow);
  transform: translateY(-1px);
}

/* Fleet Harvester Cards */
.harvester-flotilla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.harvester-ship-card {
  background: rgba(10, 18, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-smooth);
}

.harvester-ship-card:hover {
  border-color: var(--plasma-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.12);
}

.ship-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ship-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.ship-status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.ship-status-tag.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--warp-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.ship-status-tag.offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--solar-red);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.thruster-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.thruster-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--plasma-cyan), var(--nebula-violet));
  border-radius: 9999px;
  box-shadow: 0 0 8px var(--plasma-cyan);
  transition: width 0.5s ease-out;
}

/* ==========================================================================
   Celestial Observatory (Blocks & Gravitational Waves)
   ========================================================================== */

.observatory-table-card {
  background: var(--void-panel);
  border: 1px solid var(--void-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-header-strip {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pill rows placed directly in a table card (Fleet Command ledger) line up with the header text */
.observatory-table-card > .vault-filter-pills {
  padding: 0 1.5rem;
}

.table-header-strip h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.observatory-table {
  width: 100%;
  border-collapse: collapse;
}

.observatory-table th {
  background: rgba(4, 9, 20, 0.6);
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.observatory-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--text-main);
}

.observatory-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.containment-progress {
  width: 100%;
  max-width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.containment-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nova-gold), var(--warp-emerald));
  border-radius: 9999px;
}

/* Gravitational Ripple Toast / Supernova Alert */
.supernova-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(6, 11, 24, 0.95), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--plasma-cyan);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.35);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 440px;
  animation: slideToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Market Valuation Grid & Cards
   ========================================================================== */

.market-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.market-card {
  background: var(--void-panel);
  border: 1px solid var(--void-border);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
  user-select: none;
}

.market-card:hover {
  background: var(--void-panel-hover);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.22);
  transform: translateY(-3px);
}

.market-card-action-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.market-card:hover .market-card-action-hint {
  color: var(--plasma-cyan);
}

.market-card-action-hint svg {
  transition: transform 0.2s ease;
}

.market-card:hover .market-card-action-hint svg {
  transform: translateX(3px);
  color: var(--plasma-cyan);
}

.market-price-badge {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0.5rem 0;
}

.market-currency-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Historical Price Trajectory Modal Styles
   ========================================================================== */

.cosmos-modal-card.cosmos-modal-lg {
  max-width: 860px;
  width: 95%;
}

.mkt-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mkt-timeframe-selector {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--void-border);
  border-radius: 9999px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.mkt-tf-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mkt-tf-btn:hover {
  color: var(--text-bright);
}

.mkt-tf-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.22), rgba(168, 85, 247, 0.22));
  color: var(--plasma-cyan);
  border: 1px solid rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.35);
}

.mkt-modal-stats-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  background: rgba(10, 18, 36, 0.6);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mkt-stat-box {
  display: flex;
  flex-direction: column;
}

.mkt-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mkt-stat-val {
  font-size: 0.95rem;
  font-weight: 700;
}

.mkt-stat-val.gold { color: var(--nova-gold); }
.mkt-stat-val.purple { color: #c084fc; }
.mkt-stat-val.cyan { color: var(--plasma-cyan); }
.mkt-stat-val.green { color: var(--warp-emerald); }
.mkt-stat-val.red { color: var(--solar-red); }

.mkt-chart-container {
  background: rgba(6, 11, 24, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  height: 340px;
  width: 100%;
}

.mkt-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}

@media (max-width: 640px) {
  .mkt-tf-btn { padding: 0.4rem 0.7rem; }
  .mkt-modal-stats-strip { gap: 0.9rem; }
  .mkt-chart-container { height: 260px; padding: 0.75rem; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .system-cards-grid {
    grid-template-columns: 1fr;
  }
  .market-ticker-hub {
    display: none;
  }
}

@media (max-width: 768px) {
  .cosmos-header {
    padding: 0 1rem;
  }
  .brand-badge {
    display: none;
  }
  .viewport-content {
    padding: 1rem;
  }
  .hero-headline {
    font-size: 1.5rem;
  }
  .system-gauges-row {
    grid-template-columns: 1fr;
  }
  .fleet-search-bar {
    flex-direction: column;
  }
  .fleet-search-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Cosmos Flight Academy & Interactive Config Generator
   ========================================================================== */

.academy-target-strip {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.academy-target-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.academy-target-btn:hover {
  border-color: rgba(0, 245, 255, 0.4);
  color: var(--text-bright);
}

.academy-target-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(168, 85, 247, 0.25));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.25);
}

.config-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.config-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.config-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.config-field input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

.template-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.template-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.template-card:hover {
  border-color: rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.template-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(0, 245, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 255, 0.25);
}

.template-code-box {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a5f3fc;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--neon-cyan);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

/* ==========================================================================
   Orbit Detail View & Glowing Charts
   ========================================================================== */

.orbit-detail-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.orbit-detail-container.active {
  display: block;
}

.orbit-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-orbit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-orbit-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
}

.chart-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}

.chart-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(10, 14, 26, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.explorer-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
}

.explorer-link:hover {
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}

.status-badge-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge-orphaned {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Merged Dual-Mining Block Presentation */
.block-dual-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aux-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.aux-pill-tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explorer-link-aux {
  color: #d8b4fe;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.explorer-link-aux:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

/* Fleet ledger: merged-mined aux credits folded into their parent block row */
.ledger-aux-block {
  margin-top: 0.3rem;
}

.ledger-dual-tag {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ledger-repeat-tag {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ledger-aux-probe {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ledger-aux-probe span {
  color: #c084fc;
  font-weight: 700;
}

.ledger-aux-amount {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #c084fc;
}

.ledger-parent-hint {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Fleet ledger: per-coin running balance with progress toward the payout limit */
.ledger-balance-line {
  min-width: 9.5rem;
  max-width: 14rem;
}

.ledger-balance-line + .ledger-balance-line {
  margin-top: 0.45rem;
}

.ledger-balance-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.25);
}

.ledger-balance-bar {
  margin-top: 0.25rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.ledger-balance-fill {
  height: 100%;
  border-radius: 2px;
  box-shadow: 0 0 6px currentColor;
  transition: width 0.4s ease;
}

.ledger-balance-line.carried {
  opacity: 0.45;
}

.ledger-balance-line.carried .ledger-balance-value {
  font-weight: 500;
  font-size: 0.8rem;
  text-shadow: none;
}

.dual-reward-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dual-reward-primary {
  font-family: var(--font-mono);
  color: var(--warp-emerald);
  font-weight: 700;
}

.dual-reward-aux {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #c084fc;
  font-weight: 600;
}

.status-badge-dual {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}

/* ==========================================================================
   Stellar Vault Multi-Coin Ledger & Filters
   ========================================================================== */

.vault-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vault-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.vault-filter-pill:hover {
  color: var(--text-bright);
  border-color: var(--plasma-cyan);
  background: rgba(56, 189, 248, 0.12);
}

.vault-filter-pill.active {
  color: var(--plasma-cyan);
  border-color: var(--plasma-cyan);
  background: rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.25);
}

.vault-filter-pill.active.zkas {
  color: #c084fc;
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.vault-filter-pill.active.kas {
  color: var(--nova-gold);
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.vault-filter-count {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-family: var(--font-mono);
}

.kas-pill-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

/* ==========================================================================
   Cosmos Pagination Bar (Galactic Orbit Navigator)
   ========================================================================== */

.cosmos-pagination-bar {
  padding: 1.15rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 11, 24, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-info .page-current {
  color: var(--plasma-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.pagination-info .page-total {
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-weight: 700;
}

.pagination-info .page-items-count {
  color: var(--nova-gold);
  font-family: var(--font-mono);
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-nav-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.page-nav-btn:hover:not(:disabled) {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
  transform: translateY(-1px);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.page-jump-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0.2rem;
}

.page-num-pill {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 18, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num-pill:hover {
  border-color: rgba(0, 245, 255, 0.4);
  color: var(--text-bright);
}

.page-num-pill.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(168, 85, 247, 0.3));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.3);
}

.page-ellipsis {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0 0.2rem;
}

/* Fleet Payout Settings Button & Modal */
.fleet-gear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(0, 245, 255, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 10px;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.fleet-gear-btn:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 245, 255, 0.3));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
  transform: translateY(-1px);
}

.fleet-gear-btn svg {
  transition: transform 0.4s ease;
}

.fleet-gear-btn:hover svg {
  transform: rotate(60deg);
}

/* Modal Overlay & Card */
.cosmos-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 18, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.cosmos-modal-overlay.open,
.cosmos-modal-overlay.active {
  display: flex !important;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.cosmos-modal-card {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, rgba(13, 20, 36, 0.95), rgba(7, 11, 22, 0.98));
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.cosmos-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cosmos-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cosmos-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.2s;
}

.cosmos-modal-close-btn:hover {
  color: var(--plasma-cyan);
}

.cosmos-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cosmos-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cosmos-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.cosmos-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 16, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cosmos-form-input:focus {
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
}

.cosmos-input-with-btn {
  display: flex;
  gap: 0.5rem;
}

.cosmos-input-with-btn input {
  flex: 1;
}

.cosmos-detect-btn {
  padding: 0 0.85rem;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cosmos-detect-btn:hover {
  background: rgba(0, 245, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.cosmos-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cosmos-btn-secondary {
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cosmos-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
}

.cosmos-btn-primary {
  padding: 0.65rem 1.5rem;
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 8px;
  color: var(--neon-cyan, #00f5ff);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.25);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cosmos-btn-primary:hover {
  background: rgba(0, 245, 255, 0.28);
  border-color: rgba(0, 245, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.55);
  transform: translateY(-1px);
}

.cosmos-btn-primary:active {
  transform: translateY(0);
}

.cosmos-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cosmos-feedback-box {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.cosmos-feedback-box.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.cosmos-feedback-box.success {
  display: block !important;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}


/* ===== Block detail modal: block info, explorer link and reward distribution ===== */
#block-detail-modal .cosmos-modal-card { max-height: 90vh; overflow-y: auto; }
.block-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.block-modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.block-modal-coin { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--plasma-cyan); }
.block-modal-explorer {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--plasma-cyan);
  text-decoration: none;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.block-modal-explorer:hover { background: rgba(0, 240, 255, 0.1); }
.block-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem 1rem; }
.block-modal-grid > div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.block-modal-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.block-modal-mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.block-modal-subtitle { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.block-dist-scroll { max-height: 45vh; overflow: auto; }
.block-dist-table { width: 100%; }
.block-dist-pool-row td { color: var(--text-muted); font-style: italic; }
.block-modal-merged { font-size: 0.8rem; color: #c084fc; text-align: center; }
.block-modal-note, .block-modal-loading { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .block-modal-explorer { margin-left: 0; }
  .block-modal-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mining income report (Fleet Command)
   ========================================================================== */

/* Gap to the ledger card above (fleet cards only have a bottom margin) */
.fleet-report-card {
  margin-top: 1.75rem;
}

.fleet-report-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: -0.75rem 0 1rem;
}

.fleet-report-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.fleet-report-period {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fleet-report-period:hover {
  color: var(--text-bright);
}

.fleet-report-period.active {
  color: var(--plasma-cyan);
  border-color: rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.1);
}

.fleet-report-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.fleet-report-dates {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.fleet-report-dates input[type="date"] {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--void-border);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.3rem 0.4rem;
  font-family: var(--font-mono);
  color-scheme: dark;
}

.fleet-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fleet-report-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.fleet-report-table td.num {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.fleet-report-table .dim,
.fleet-report-days .dim {
  color: var(--text-dim);
}

.fleet-report-table .gold {
  color: var(--nova-gold);
  font-weight: 700;
}

.fleet-report-days {
  margin-top: 1rem;
}

.fleet-report-days summary {
  cursor: pointer;
  color: var(--plasma-cyan);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.fleet-report-note,
.fleet-report-empty {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.fleet-report-empty {
  font-style: italic;
  padding: 1rem 0;
}
