﻿:root {
  --bg: #04070d;
  --s1: #080d18;
  --s2: #0c1322;
  --line: rgba(148, 163, 184, 0.12);
  --line2: rgba(148, 163, 184, 0.06);
  --tx: #f1f5f9;
  --mu: #94a3b8;
  --fa: #64748b;
  --g: #22d3ee;
  --g2: #6366f1;
  --gd: rgba(34, 211, 238, 0.14);

  /* Desktop Client Palette */
  --bg-primary: #090d16;
  --bg-secondary: #0f1624;
  --bg-tertiary: #162033;
  --bg-hover: #1e293b;
  --bg-selected: rgba(34, 211, 238, 0.14);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-green: #22d3ee;
  --accent-green-dim: rgba(34, 211, 238, 0.18);
  --accent-blue: #818cf8;
  --accent-amber: #f59e0b;
  --accent-danger: #f43f5e;
  --border-color: #1e293b;
  --border-light: #334155;

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--tx);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--tx);
  overflow-x: hidden;
}

body.app-mode {
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.mono, code, pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.g, .text-green { color: var(--g); }
.mu { color: var(--mu); }
.fa { color: var(--fa); }
.text-white { color: #ffffff; }
.text-blue { color: var(--accent-blue); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }

/* =========================================================================
   LANDING PAGE (.lp) — Exact Match to torrent.land
   ========================================================================= */
.lp {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--tx);
  font-size: 15px;
  overflow-x: clip;
}

.lp ::selection {
  background: var(--g);
  color: #030914;
}

.lp a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.fx-grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.fx-guides {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 600px), var(--line2) calc(50% - 600px), var(--line2) calc(50% - 599px), transparent calc(50% - 599px)),
    linear-gradient(90deg, transparent calc(50% + 599px), var(--line2) calc(50% + 599px), var(--line2) calc(50% + 600px), transparent calc(50% + 600px));
}

/* Top Navbar */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(3, 5, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.lp-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--mu);
}

.lp-nav-links a {
  transition: color 0.18s ease;
}

.lp-nav-links a:hover {
  color: #ffffff;
}

.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sol-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mu);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--g);
  box-shadow: 0 0 10px var(--g);
  animation: lpPulse 2s infinite;
}

@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}

.x-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--tx);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.x-circle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Pill Buttons */
.btn-g, .btn-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease;
  border: none;
}

.btn-g {
  background: var(--g);
  color: #030914;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 10px 34px -10px rgba(34, 211, 238, 0.65);
}

.btn-g:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 14px 44px -8px rgba(34, 211, 238, 0.85);
}

.btn-o {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--tx);
}

.btn-o:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* HERO SECTION */
.hero-sec {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.hero-art-wrap {
  position: absolute;
  top: 52%;
  right: -4vw;
  transform: translateY(-50%);
  width: min(860px, 62vw);
  height: 760px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  filter: contrast(1.06) saturate(1.1);
}

.hero-voxel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-left {
  max-width: 650px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fa);
}

.label b {
  color: var(--g);
  font-weight: 500;
}

.grad {
  background: linear-gradient(180deg, #ffffff 38%, #8f9a96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-h {
  font-size: clamp(54px, 7.8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin-top: 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mu);
  letter-spacing: -0.005em;
}

.hero-lead {
  max-width: 490px;
  margin-top: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

/* Bottom Two Copy Pills (CA + Magnet) */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 54px;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.copy-pill:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(12, 18, 16, 0.92);
}

.ca-pill-box {
  padding-left: 7px;
  border-color: rgba(34, 211, 238, 0.28);
}

.ca-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--g);
  color: #030914;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-code {
  font-size: 12.5px;
  color: var(--tx);
}

.pill-copy-ic {
  background: transparent;
  border: none;
  color: var(--fa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.copy-pill:hover .pill-copy-ic {
  color: var(--tx);
}

/* LANDING PAGE SECTIONS */
.sec {
  position: relative;
  z-index: 5;
}

.sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 20%, rgba(34,211,238,0.32) 50%, rgba(255,255,255,0.07) 80%, transparent);
}

.py-sec {
  padding: 108px 0;
}

.h2 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.mt-title { margin-top: 14px; }
.mt-sub { margin-top: 16px; }
.mt-grid { margin-top: 44px; }
.max-640 { max-width: 640px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* How It Works Timeline */
.how-tl .track {
  position: relative;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 24px;
}

.how-tl .track > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, var(--g2), var(--g));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.node {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--g);
  box-shadow: 0 0 12px var(--g);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mu);
  flex: 1;
}

.step-code {
  font-size: 11.5px;
  color: var(--g);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Seed to Earn Split */
.seed-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

.seed-calc-card {
  margin-top: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--fa);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--tx);
}

.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--g);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 6px;
}

.calc-stat {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-stat.highlight {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.calc-stat span { font-size: 11px; }
.calc-stat strong { font-size: 20px; }

.terminal-card {
  overflow: hidden;
  height: 410px;
  display: flex;
  flex-direction: column;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--mu);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}

.term-body {
  padding: 16px 18px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--mu);
  overflow-y: auto;
  flex: 1;
}

/* Proof Section */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.proof-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mu);
}

.lp-bitmap-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 6px;
}

.lp-bit-cell {
  height: 24px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.45);
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}

.lp-bit-cell:hover, .lp-bit-cell.active {
  background: var(--g);
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--g);
}

.proof-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mu);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Files Table Section */
.files-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.files-table-card {
  overflow-x: auto;
}

.lp-files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-files-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 11.5px;
  color: var(--fa);
  border-bottom: 1px solid var(--line);
}

.lp-files-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line2);
}

.lp-files-table tr:last-child td {
  border-bottom: none;
}

.lp-files-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Docs Section */
.docs-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mu);
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}

.chip.is-active {
  color: var(--tx);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}

.chip.is-active .fa {
  color: var(--g);
}

.docs-panel-card {
  margin-top: 24px;
  padding: 32px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.doc-table th, .doc-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.doc-table th {
  color: var(--tx);
  font-weight: 500;
  width: 32%;
}

.doc-table td {
  color: var(--mu);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 24px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .plus {
  font-size: 20px;
  color: var(--g);
  transition: transform 0.2s;
}

.faq-item[open] .plus {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mu);
}

/* Footer */
.lp-footer {
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--mu);
}

.footer-links a:hover {
  color: #ffffff;
}
/* =========================================================================
   DESKTOP CLIENT VIEW (#appView) — Opens when clicking "Launch app ->"
   ========================================================================= */
.app-shell {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.back-home-btn {
  background: rgba(34, 211, 238, 0.1) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.toolbar {
  height: 46px;
  min-height: 46px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 10px;
}

.toolbar-left, .toolbar-right, .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-color);
  margin: 0 4px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.tool-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-light);
}

.tool-btn.primary {
  background-color: var(--accent-green);
  color: #030914;
  border-color: var(--accent-green);
  font-weight: 600;
}

.tool-btn.danger-hover:hover {
  border-color: rgba(245, 108, 108, 0.5);
  color: var(--accent-danger);
}

.tool-btn.danger-btn {
  background: rgba(245, 108, 108, 0.12);
  border-color: rgba(245, 108, 108, 0.4);
  color: var(--accent-danger);
}

.tool-btn.full-w {
  width: 100%;
  height: 32px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 8px;
  height: 30px;
  width: 215px;
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12px;
  width: 100%;
}

.ca-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
}

.ca-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.ca-ticker {
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-green);
}

.ca-pill code {
  font-size: 11px;
  color: var(--text-secondary);
}

.ca-copy-badge {
  font-size: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  width: 225px;
  min-width: 225px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 14px;
  overflow-y: auto;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 2px 6px 6px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
}

.sidebar-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-item.active {
  background-color: var(--bg-selected);
  color: #ffffff;
  font-weight: 500;
  border-left: 2px solid var(--accent-green);
}

.item-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0 5px;
  border-radius: 3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.all { background: #9da7b3; }
.status-dot.down { background: var(--accent-green); }
.status-dot.seed { background: var(--accent-blue); }
.status-dot.verify { background: var(--accent-amber); }
.status-dot.done { background: #2ea043; }
.status-dot.paused { background: #656f7d; }

.sidebar-dropzone {
  margin-top: auto;
  border: 1px dashed var(--border-light);
  background: rgba(31, 36, 45, 0.55);
  border-radius: 6px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
}

.sidebar-dropzone:hover {
  border-color: var(--accent-green);
  background: rgba(34, 211, 238, 0.08);
}

.dropzone-icon {
  font-size: 16px;
  color: var(--accent-green);
  margin-bottom: 3px;
}

.dropzone-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
}

.dropzone-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-node-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.node-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.node-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.node-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.table-container {
  flex: 1 1 54%;
  min-height: 180px;
  overflow: auto;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.shard-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.shard-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid rgba(40, 46, 56, 0.5);
  white-space: nowrap;
}

.col-num { width: 38px; text-align: center !important; }
.col-name { width: 26%; }
.col-size { width: 82px; }
.col-progress { width: 150px; }
.col-status { width: 110px; }
.col-seeds { width: 64px; }
.col-peers { width: 64px; }
.col-down { width: 98px; }
.col-up { width: 98px; }
.col-eta { width: 76px; }
.col-ratio { width: 64px; }
.col-cat { width: 125px; }

.shard-table tbody tr {
  border-bottom: 1px solid rgba(40, 46, 56, 0.55);
  cursor: pointer;
}

.shard-table tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.shard-table tbody tr.selected {
  background-color: var(--bg-selected);
}

.shard-table td {
  padding: 7px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-num {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.td-name {
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.file-icon {
  color: var(--accent-green);
}

.progress-wrap {
  position: relative;
  width: 100%;
  height: 16px;
  background-color: #0c0e12;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.progress-fill.seeding {
  background: linear-gradient(90deg, #2b6cb0, #4c9cf2);
}

.progress-fill.verifying {
  background: linear-gradient(90deg, #b7791f, #e6a23c);
}

.progress-fill.paused {
  background: #495260;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.Downloading { background: rgba(34, 211, 238, 0.14); color: var(--accent-green); }
.status-badge.Seeding { background: rgba(76, 156, 242, 0.14); color: var(--accent-blue); }
.status-badge.Verifying { background: rgba(230, 162, 60, 0.15); color: var(--accent-amber); }
.status-badge.Paused { background: rgba(157, 167, 179, 0.12); color: var(--text-secondary); }

.inspector-container {
  flex: 0 0 285px;
  height: 285px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

.inspector-tabs {
  display: flex;
  align-items: center;
  background-color: #14181e;
  border-bottom: 1px solid var(--border-color);
  padding: 0 10px;
  gap: 2px;
  height: 35px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
  height: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
  background: var(--bg-secondary);
  font-weight: 600;
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0 5px;
  border-radius: 3px;
}

.inspector-selected-label {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.tab-pane { display: none; height: 100%; }
.tab-pane.active { display: block; }

.pieces-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pieces-strip {
  flex: 1;
  height: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(64, 1fr);
  gap: 1px;
  padding: 2px;
}

.strip-cell { height: 100%; border-radius: 1px; background: #1d222b; }
.strip-cell.done { background: var(--accent-green); }
.strip-cell.seed { background: var(--accent-blue); }
.strip-cell.active { background: var(--accent-amber); }

.general-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.general-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.general-col { display: flex; flex-direction: column; gap: 4px; }
.kv-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.kv-row strong, .kv-row code { color: var(--text-primary); font-family: var(--font-mono); font-size: 11.5px; }

.hash-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hash-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 5px 8px;
  border-radius: 4px;
  min-width: 0;
}
.hash-field code { flex: 1; font-size: 11px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-copy-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
}

.sub-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sub-table th { text-align: left; padding: 6px 10px; background: var(--bg-primary); color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.sub-table td { padding: 6px 10px; border-bottom: 1px solid rgba(40, 46, 56, 0.5); }

.pieces-tab-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; height: 100%; }
.matrix-header { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-secondary); margin-bottom: 7px; }
.matrix-legend { display: flex; gap: 10px; font-size: 11px; }
.leg-box { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 3px; }
.leg-box.verified { background: var(--accent-green); }
.leg-box.active { background: var(--accent-amber); }
.leg-box.empty { background: #262c36; }

.pieces-matrix {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 5px;
}

.piece-block {
  height: 18px;
  border-radius: 2px;
  background: #202630;
  cursor: pointer;
}
.piece-block.selected { outline: 2px solid #ffffff; }
.piece-block.verified { background: var(--accent-green); }
.piece-block.seeding { background: var(--accent-blue); }
.piece-block.active { background: var(--accent-amber); }

.piece-inspector-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.piece-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.hex-dump-box {
  background: #0b0d11;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10.5px;
  color: #9ecbff;
}

.speed-header-bar { display: flex; justify-content: space-between; margin-bottom: 8px; }
.speed-stat-group { display: flex; gap: 14px; }
.speed-badge.down { color: var(--accent-green); }
.speed-badge.up { color: var(--accent-blue); }
.canvas-wrap { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 5px; padding: 6px; height: 185px; }
#speedCanvas { width: 100%; height: 100%; display: block; }

.vault-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; height: 100%; }
.vault-textarea {
  width: 100%;
  height: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: #a5d6ff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 10px;
  resize: none;
}
.vault-actions-col {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.shred-log {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  background: #0b0d11;
  border: 1px solid var(--border-color);
  padding: 5px 8px;
  border-radius: 4px;
}

.statusbar {
  height: 28px;
  background-color: #0e1116;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.status-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid var(--border-color);
  height: 100%;
}
.status-section.right-push { margin-left: auto; border-right: none; }
.status-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); }
.status-link { color: var(--accent-green); text-decoration: none; font-family: var(--font-mono); }

/* Modals & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 5, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
}
.modal-window {
  width: 520px;
  max-width: 94vw;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}
.modal-close { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; }
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.file-picker-box {
  border: 1.5px dashed var(--border-light);
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
}
.form-row { display: flex; flex-direction: column; gap: 5px; }
.modal-input, .modal-textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 7px 10px;
}
.preset-magnets { display: flex; flex-direction: column; gap: 6px; }
.preset-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}
.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 5, 0.9);
  border: 3px dashed var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 250;
}
.toast {
  background: #0d1512;
  border: 1px solid var(--g);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

@media (max-width: 980px) {
  .lp-nav-links { display: none; }
  .hero-art-wrap {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 360px;
    margin-bottom: -40px;
  }
  .hero-sec { flex-direction: column; padding-top: 84px; }
  .steps-grid, .seed-split, .proof-grid { grid-template-columns: 1fr; }
}
/* Interactive 3D Shard Core HUD Tag */
.hero-art-wrap {
  cursor: grab;
  pointer-events: auto;
}
.hero-art-wrap:active {
  cursor: grabbing;
}
.core-hud-tag {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.28);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mu);
  pointer-events: none;
  white-space: nowrap;
}
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
}