:root {
  --bg: #040806;
  --panel: rgba(5, 12, 9, 0.82);
  --panel-2: rgba(8, 18, 14, 0.88);
  --line: rgba(196, 255, 42, 0.2);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f4fff0;
  --muted: #a3b89a;
  --green: #c4ff3a;
  --green-bright: #e5ff5c;
  --cyan: #6ecbd0;
  --green-dim: rgba(196, 255, 42, 0.12);
  --green-glow: rgba(212, 255, 0, 0.35);
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --display: var(--font-display);
  --danger: #00ff9d;
  --warn: #00ff9d;
  --ok: #00ff9d;
  --radius: 12px;
  --sidebar: 220px;
  --rail: 300px;
  --header: 72px;
  --glass-blur: blur(14px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

body {
  position: relative;
  background-color: #000;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #030504 url("/static/video/hero-poster-sm.jpg") center 42% / cover no-repeat;
}

.site-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.06) brightness(0.82);
  will-change: transform;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
}

.site-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(2, 6, 4, 0.88) 0%, rgba(2, 8, 5, 0.45) 34%, rgba(2, 8, 5, 0.35) 58%, rgba(2, 6, 4, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 45% at 52% 48%, rgba(196, 255, 42, 0.09), transparent 68%),
    radial-gradient(circle at 12% 78%, rgba(110, 203, 208, 0.06), transparent 40%),
    radial-gradient(circle at 88% 22%, rgba(0, 0, 0, 0.35), transparent 45%);
}

#app {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

.boot-splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: system-ui, "Segoe UI", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}
.boot-splash-mark {
  padding: 12px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, textarea { font: inherit; color: inherit; }

.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 18px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 255, 143, 0.5); }
  50% { opacity: .45; box-shadow: 0 0 8px 2px rgba(61, 255, 143, 0.35); }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(61, 255, 143, 0.4)); }
  50% { filter: drop-shadow(0 0 22px rgba(0, 206, 209, 0.55)); }
}
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes bar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.enter { animation: fade .28s ease both; }

.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed,
.reveal-hero.revealed {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: 56px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  animation: logo-glow 5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(61, 255, 143, 0.35));
}
.brand-landing .brand-logo {
  height: 56px;
  max-width: 72px;
}
.footer-logo {
  height: 40px;
  width: auto;
  max-width: 56px;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(61, 255, 143, 0.25));
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--rail);
  min-height: 100vh;
}

.sidebar {
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  margin: 18px 10px 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #4a4a4a;
  text-transform: uppercase;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #9a9a9a;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}
.nav-btn {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.nav-btn:hover {
  color: var(--text);
  background: rgba(0, 255, 157, 0.06);
  box-shadow: 0 0 14px rgba(61, 255, 143, 0.08);
}
.nav-btn.active {
  color: #fff;
  border-color: rgba(0, 255, 157, 0.45);
  background: var(--green-dim);
  box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.08), 0 0 18px rgba(61, 255, 143, 0.12);
}
.nav-btn.active .icon { color: var(--green); }

.sidebar-foot { margin-top: auto; }
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.user-card b { display: block; font-size: 13px; }
.user-card span { color: var(--muted); font-size: 12px; }

.main {
  min-width: 0;
  background: transparent;
}
.topbar {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.topbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(61, 255, 143, 0.18);
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
  color: #cfcfcf;
  font-size: 12px;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.08);
}
.online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s ease infinite;
}

.content { padding: 0 28px 40px; }

.rail {
  border-left: 1px solid var(--line);
  padding: 22px 16px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.rail-head .icon { color: var(--green); }
.count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #041208;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.job-card {
  border: 1px solid #1f1f1f;
  background: #0c0c0c;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.job-card .name { font-weight: 600; word-break: break-all; }
.job-card .time { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pbar {
  height: 3px;
  background: #161616;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a9d5c, var(--green-bright), var(--cyan), var(--green-bright), #2a9d5c);
  background-size: 220% 100%;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pbar.live i {
  animation: shimmer 2.4s linear infinite, bar-pulse 2s ease-in-out infinite;
}
.pbar.fat { height: 8px; margin: 12px 0 8px; }

.prog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.prog-title { font-weight: 700; font-size: 16px; }
.prog-sub { color: var(--muted); font-size: 12px; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.prog-pct { color: var(--green); font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.prog-count { color: var(--muted); font-size: 13px; }
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.prog-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #080808;
}
.prog-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.prog-grid b { font-size: 18px; color: var(--green); }
.prog-eta { margin-top: 12px; color: var(--green); font-size: 13px; font-weight: 600; }
.prog.compact .prog-title { font-size: 14px; }
.prog.compact .prog-pct { font-size: 20px; }
.prog.compact .prog-grid { grid-template-columns: 1fr 1fr; }
.prog.compact .prog-grid b { font-size: 15px; }
.job-log {
  font-size: 12px;
  color: #8f8f8f;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.job-log .ok { color: var(--green); }

.term {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 12px;
  font-family: "Inter Tight", monospace;
}

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

.card, .stat {
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover, .stat:hover {
  border-color: rgba(61, 255, 143, 0.32);
  box-shadow: 0 0 28px rgba(61, 255, 143, 0.1), 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.stat .label, .card .label, .muted {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat .value {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.04em;
}
.stat .delta { color: var(--green); font-size: 12px; margin-top: 8px; }

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  height: 220px;
  align-items: end;
  padding-top: 12px;
}
.week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.week-bar {
  flex: 1;
  width: 100%;
  background: #141414;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.week-bar i {
  display: block;
  width: 100%;
  background: var(--green);
  min-height: 4px;
}
.week-col span { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: #bdbdbd;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.tab.active {
  border-color: var(--green);
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--green);
  color: var(--green);
}
.badge.solid { background: var(--green); color: #041208; }
.badge.dim { opacity: .55; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover { color: var(--green); border-color: var(--green); }

.drop {
  border: 1px dashed var(--green);
  border-radius: 12px;
  background: #080808;
  padding: 56px 20px;
  text-align: center;
  cursor: pointer;
}
.drop .icon { width: 36px; height: 36px; color: var(--green); }
.drop.over { background: var(--green-dim); }
.drop p { margin: 10px 0 0; }
.drop .muted { text-transform: none; letter-spacing: 0; }

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
  color: #001a0f;
  font-weight: 700;
  box-shadow: 0 0 18px var(--green-glow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 26px rgba(0, 255, 157, 0.42);
  transform: translateY(-1px);
}
.btn:disabled { opacity: .4; cursor: default; filter: none; box-shadow: none; transform: none; }
.btn.ghost {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.12);
}
.btn.danger { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.btn.row { display: inline-flex; align-items: center; gap: 8px; }

.ok { color: var(--green); }
.danger, .warn { color: var(--green); }

.upload-standalone {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}
.upload-card {
  width: min(520px, 100%);
  padding: 28px 24px 22px;
}
.upload-brand {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--green);
}
.upload-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.upload-lead {
  margin: 0 0 18px;
  line-height: 1.55;
}
.upload-foot {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { color: var(--muted); font-size: 12px; }
.field input, .field textarea {
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }

.cselect { position: relative; }
.cselect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.cselect-btn:hover, .cselect.open .cselect-btn { border-color: var(--green); }
.cselect-list {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  z-index: 12;
}
.cselect.open .cselect-list { display: block; }
.cselect-opt {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.cselect-opt:hover, .cselect-opt.active { background: var(--green-dim); color: var(--green); }

.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 16px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tg-widget { min-height: 44px; margin-bottom: 12px; }

.progress-box { white-space: pre-wrap; font-size: 13px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
}

.report {
  white-space: pre-wrap;
  background: #080808;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  max-height: 420px;
  overflow: auto;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.toggle.on { border-color: var(--green); color: var(--green); }

.chart { width: 100%; height: 180px; display: block; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--green); }

.landing { min-height: 100vh; }
.l-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.l-links { display: flex; gap: 20px; align-items: center; }
.l-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.l-links a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.l-links a:hover {
  color: var(--green-bright);
  text-shadow: 0 0 12px rgba(61, 255, 143, 0.35);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px 48px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-eyebrow .icon { color: var(--green); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f8fff9;
  text-shadow: 0 0 32px rgba(196, 255, 42, 0.22), 0 2px 24px rgba(0, 0, 0, 0.65);
}
.hero p.lead {
  color: #dce8d4;
  max-width: 46ch;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-more { color: var(--muted); }
.hero-facts {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hero-facts em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--green-bright);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px rgba(61, 255, 143, 0.35);
}
.hero-facts span { color: var(--muted); font-size: 12px; }
.pill-live {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--green-dim);
}
.hero-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.hero-app-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
}
.hero-app-chips .icon { width: 14px; height: 14px; color: var(--green); }
.hero-app {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 32px rgba(61, 255, 143, 0.08);
  animation: float-y 5s ease-in-out infinite;
}
.hero-app-head, .hero-app-body { padding: 14px; }
.hero-app-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); }
.hero-app-head b { color: var(--text); }
.hero-app-file { display: flex; justify-content: space-between; margin-bottom: 12px; }
.bar { height: 3px; background: #161616; border-radius: 99px; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a9d5c, var(--green-bright), var(--cyan), var(--green-bright));
  background-size: 220% 100%;
  animation: shimmer 2.8s linear infinite;
}
.hero-app-meta { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 12px; }
.hero-app-meta strong { color: var(--green); }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}
.section-head { margin-bottom: 20px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--green-bright);
  text-shadow: 0 0 18px rgba(61, 255, 143, 0.22);
}
.section .sub { color: var(--muted); margin: 0; max-width: 52ch; line-height: 1.5; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.bento-compact { gap: 12px; }
.bento-card {
  grid-column: span 4;
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(8, 18, 14, 0.92), rgba(4, 10, 8, 0.78));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 255, 42, 0.08), transparent 55%);
  opacity: 0.6;
}
.bento-card:hover {
  border-color: rgba(196, 255, 42, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(196, 255, 42, 0.08);
}
.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-3 { grid-column: span 3; }
.bento-tall { min-height: 220px; }
.bento-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--green-dim);
  border: 1px solid var(--line);
  color: var(--green);
}
.bento-icon .icon { width: 20px; height: 20px; }
.bento-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bento-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.bento-tags {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
.bento-tags li {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: #c5d4bc;
  background: rgba(0, 0, 0, 0.3);
}

.mid-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 28px 48px;
}
.mid-hero-inner {
  position: relative;
  text-align: center;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 48px);
  border-radius: 24px;
  border: 1px solid rgba(196, 255, 42, 0.22);
  background:
    linear-gradient(165deg, rgba(6, 14, 10, 0.94) 0%, rgba(2, 8, 5, 0.88) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.mid-hero-glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 50% 45% at 50% 0%, rgba(196, 255, 42, 0.18), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(110, 203, 208, 0.12), transparent 45%);
  pointer-events: none;
}
.mid-hero-kicker {
  position: relative;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mid-hero-title {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.mid-hero-lead {
  position: relative;
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.mid-hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mid-hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-bright);
}
.mid-hero-stats span {
  font-size: 12px;
  color: var(--muted);
}
.mid-hero-actions {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.l-carousel { position: relative; }
.l-carousel-viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
}
.l-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.l-carousel-slide {
  flex: 0 0 100%;
  min-height: 200px;
  padding: clamp(24px, 4vw, 40px);
  box-sizing: border-box;
}
.l-carousel-slide .slide-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 12px;
}
.l-carousel-slide h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.l-carousel-slide h3 .icon { color: var(--green); }
.l-carousel-slide p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.l-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.l-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.l-carousel-dot.active {
  background: var(--green);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(196, 255, 42, 0.45);
}
.l-carousel-nav {
  display: flex;
  gap: 8px;
}
.l-carousel-prev,
.l-carousel-next {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.l-carousel-prev:hover,
.l-carousel-next:hover {
  border-color: var(--green);
  color: var(--green);
}
.l-carousel-next .icon { transform: rotate(-90deg); }
.l-carousel-prev .icon { transform: rotate(90deg); }

.split { display: grid; grid-template-columns: 140px 1fr; border-top: 1px solid var(--line); }
.split dt, .split dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.split dt { color: var(--muted); }
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px 36px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  z-index: 10000;
  overflow-y: auto;
}
.modal {
  width: min(400px, calc(100vw - 32px));
  max-height: min(90vh, 640px);
  overflow: auto;
  margin: auto;
  background: rgba(8, 14, 12, 0.92);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 255, 157, 0.22);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.12);
}

.rank-card {
  background: rgba(8, 14, 12, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
}
.rank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rank-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rank-title .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}
.rank-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.rank-earned {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}
.rank-earned b {
  display: block;
  color: var(--text);
  font-size: 18px;
}
.rank-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px;
}
.rank-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 999px;
}
.rank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.rank-pill {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
}
.rank-pill b { color: var(--text); font-weight: 600; }
.rank-list-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.rank-row:first-of-type { border-top: 0; }
.rank-row .icon { width: 22px; height: 22px; opacity: 0.85; }
.rank-row.current { background: rgba(196, 255, 42, 0.06); margin: 0 -12px; padding: 12px; border-radius: 10px; }
.rank-row-meta { font-size: 12px; color: var(--muted); line-height: 1.45; }
.rank-row-side {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.rank-row-side .tag-current {
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 72px 1fr; }
  .rail { display: none; }
  .nav-btn span, .nav-label, .user-card div { display: none; }
  .brand-logo { height: 36px; max-width: 44px; }
  .grid, .hero, .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 32px; }
  .bento-span-8,
  .bento-span-4,
  .bento-span-3 { grid-column: span 12; }
  .bento-tall { min-height: 0; }
  .section-head-row .l-carousel-nav { width: 100%; justify-content: flex-end; }
  .l-links a.hide-m { display: none; }
  .sidebar-foot { width: 100%; }
}

.fx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.fx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #121212;
  color: #cfcfcf;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.fx-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
}
.fx-pill.active {
  background: #181818;
  border-color: #3a3a3a;
  color: #fff;
}
.fx-pill[data-k="seeds"] .dot { background: #b57bff; }
.fx-pill[data-k="keys"] .dot { background: #ff5c6a; }
.fx-pill[data-k="addr"] .dot { background: #3ddc84; }
.fx-pill[data-k="wallets"] .dot { background: #ff9f43; }
.fx-pill[data-k="nft"] .dot { background: #5b9dff; }
.fx-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.fx-search input {
  flex: 1;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.fx-feed { display: flex; flex-direction: column; gap: 10px; }
.fx-card {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.fx-card:hover { border-color: #2a2a2a; }
.fx-card .fx-top {
  display: flex;
  justify-content: space-between;
  color: #9a9a9a;
  font-size: 12px;
  margin-bottom: 8px;
}
.fx-card .fx-kind { display: inline-flex; align-items: center; gap: 8px; }
.fx-card .fx-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: #ececec;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.fx-card .fx-src { margin-top: 10px; color: #7d7d7d; font-size: 12px; }
.fx-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  min-height: 520px;
}
.fx-side {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 72vh;
}
.fx-side-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
}
.fx-side-item.active { background: #161616; }
.fx-side-item b { display: block; font-size: 12px; }
.fx-side-item span { color: var(--muted); font-size: 11px; }
.fx-detail {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-height: 420px;
}
.fx-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mnemo-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; }
.mnemo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mnemo-grid div {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.mnemo-grid i { color: var(--muted); margin-right: 6px; font-style: normal; }
.fx-chains { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fx-chain {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.fx-chain code { font-size: 12px; word-break: break-all; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fx-copy { border: 1px solid var(--line); background: #151515; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 1100px) {
  .fx-explorer { grid-template-columns: 1fr; }
  .mnemo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar,
  .rail,
  .card,
  .l-nav,
  .hero-app,
  .bento-card,
  .mid-hero-inner,
  .l-carousel-viewport {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .fx-canvas { opacity: 0.22; }
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.lucky-banner {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 214, 140, 0.35);
  background: rgba(61, 214, 140, 0.08);
  color: var(--text);
}
.lucky-banner.active {
  border-color: rgba(61, 214, 140, 0.7);
  box-shadow: 0 0 20px rgba(61, 214, 140, 0.15);
}
.pwa-install {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
}
.hist-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hist-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.hist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.hist-id { font-weight: 700; letter-spacing: 0.04em; }
.hist-when { margin-left: auto; color: var(--muted); font-size: 12px; }
.hist-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.hist-metrics { color: var(--muted); }
.hist-diff { margin-top: 8px; font-size: 13px; color: var(--muted); }
.hist-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.delta.up { color: #3dd68c; font-weight: 600; }
.delta.down { color: #ff7b7b; font-weight: 600; }
.delta.zero { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .fx-canvas { display: none; }
  .site-bg-video { display: none; }
  .site-bg { transition: none; }
  .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .brand-logo,
  .hero-app,
  .bar i,
  .pbar.live i {
    animation: none !important;
  }
  .l-carousel-track { transition: none; }
  .card:hover, .stat:hover, .bento-card:hover {
    transform: none;
  }
}
