:root {
  --bg: #05070c;
  --panel: rgba(12, 16, 24, 0.72);
  --panel-solid: #0c1018;
  --line: rgba(140, 170, 210, 0.14);
  --line-strong: rgba(140, 170, 210, 0.28);
  --text: #e8eef8;
  --muted: #8b97ad;
  --cyan: #6ec8ff;
  --blue: #3d7cff;
  --ok: #3dffa8;
  --ok-dim: rgba(61, 255, 168, 0.14);
  --warn: #ff8a3d;
  --warn-dim: rgba(255, 138, 61, 0.14);
  --danger: #ff5d6c;
  --glow: 0 0 40px rgba(62, 130, 255, 0.18);
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
}

.hidden { display: none !important; }

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 70% 40%, rgba(40, 80, 160, 0.22), transparent 55%),
    radial-gradient(900px 500px at 15% 80%, rgba(20, 90, 120, 0.16), transparent 50%),
    linear-gradient(180deg, #060910 0%, #04060b 100%);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 42% 48%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 18% 42%, rgba(255,255,255,0.5), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}

.nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 40% 30% at 65% 45%, rgba(50, 110, 220, 0.12), transparent),
    radial-gradient(ellipse 35% 25% at 30% 60%, rgba(30, 160, 180, 0.08), transparent);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}

#app {
  height: 100%;
  min-height: 0;
}

/* —— Login —— */
.login-stage {
  position: relative;
  height: 100%;
  overflow: auto;
  animation: rise 0.55s ease both;
}

.login-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-stars {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image:
    radial-gradient(1px 1px at 4% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(180,220,255,0.9), transparent),
    radial-gradient(1px 1px at 22% 8%, #fff, transparent),
    radial-gradient(1px 1px at 31% 44%, rgba(255,255,255,0.55), transparent),
    radial-gradient(2px 2px at 48% 18%, rgba(160,210,255,0.85), transparent),
    radial-gradient(1px 1px at 61% 6%, #fff, transparent),
    radial-gradient(1px 1px at 73% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 84% 14%, #fff, transparent),
    radial-gradient(1px 1px at 91% 36%, rgba(180,220,255,0.7), transparent),
    radial-gradient(1px 1px at 16% 62%, #fff, transparent),
    radial-gradient(1px 1px at 38% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 57% 58%, rgba(160,255,210,0.55), transparent),
    radial-gradient(1px 1px at 69% 78%, #fff, transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,0.45), transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}

.login-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 35% at 70% 40%, rgba(50, 120, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 30% at 45% 55%, rgba(40, 200, 180, 0.12), transparent 55%),
    radial-gradient(ellipse 35% 28% at 80% 70%, rgba(90, 70, 220, 0.1), transparent 50%);
  filter: blur(28px);
  animation: drift 18s ease-in-out infinite alternate;
}

.login-beams {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 70px,
      rgba(110, 180, 255, 0.025) 70px 71px
    );
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}

.login-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.55) 30%, rgba(4, 8, 16, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(100, 160, 255, 0.07) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(100, 160, 255, 0.06) 34px 35px);
  transform: perspective(500px) rotateX(58deg);
  transform-origin: center bottom;
  opacity: 0.7;
}

.login-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(110, 200, 255, 0.04) 48%,
    rgba(110, 200, 255, 0.1) 50%,
    rgba(110, 200, 255, 0.04) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: login-scan 5.5s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.login-world {
  position: absolute;
  right: -2%;
  top: 46%;
  transform: translateY(-50%);
  width: min(720px, 72vw);
  height: min(720px, 72vw);
}

.fin-rings {
  position: absolute;
  inset: 8%;
  z-index: 0;
}
.fin-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.16);
  transform: translate(-50%, -50%);
}
.fin-ring.r1 { width: 48%; height: 48%; }
.fin-ring.r2 { width: 64%; height: 64%; border-style: dashed; animation: spin-slow 48s linear infinite; }
.fin-ring.r3 { width: 80%; height: 80%; border-color: rgba(61, 255, 168, 0.14); animation: spin-slow 64s linear infinite reverse; }
.fin-ring.r4 {
  width: 96%;
  height: 96%;
  border-color: rgba(140, 160, 255, 0.12);
  box-shadow: 0 0 40px rgba(40, 100, 220, 0.12);
}

.fin-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.fin-hub-glow {
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 168, 0.22), rgba(50, 120, 255, 0.18) 40%, transparent 70%);
  filter: blur(12px);
  animation: pulse 4s ease-in-out infinite;
}

.fin-hub-core {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 30% 28%, rgba(160, 220, 255, 0.28), transparent 40%),
    linear-gradient(160deg, #12325a 0%, #0a1a30 50%, #061018 100%);
  border: 1px solid rgba(140, 200, 255, 0.35);
  box-shadow:
    inset 0 0 40px rgba(40, 120, 255, 0.2),
    0 0 50px rgba(40, 120, 255, 0.28);
}

.fin-hub-grid {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(140, 200, 255, 0.08) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(140, 200, 255, 0.08) 14px 15px);
  opacity: 0.7;
  animation: spin-slow 70s linear infinite;
}

.fin-hub-chip {
  display: none;
}

.fin-paycard {
  position: relative;
  z-index: 1;
  width: 54%;
  aspect-ratio: 1.6 / 1;
  border-radius: 10px;
  border: 1px solid rgba(180, 220, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 42%),
    linear-gradient(160deg, #1c4f8c 0%, #0d2748 55%, #081624 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(80, 160, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.fin-paycard-chip {
  position: absolute;
  left: 12%;
  top: 22%;
  width: 18%;
  height: 28%;
  border-radius: 3px;
  border: 1px solid rgba(230, 210, 140, 0.55);
  background:
    linear-gradient(135deg, #f0e0a8, #b8963e 45%, #8a6a28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.fin-paycard-line {
  position: absolute;
  left: 38%;
  height: 4px;
  border-radius: 2px;
  background: rgba(200, 230, 255, 0.35);
}
.fin-paycard-line.l1 { top: 24%; width: 42%; }
.fin-paycard-line.l2 { top: 40%; width: 34%; opacity: 0.7; }
.fin-paycard-line.l3 { top: 56%; width: 28%; opacity: 0.5; }

.fin-paycard-wave {
  position: absolute;
  right: 10%;
  bottom: 16%;
  width: 28%;
  height: 22%;
  border-radius: 999px 999px 0 0;
  border: 1.5px solid rgba(120, 220, 255, 0.55);
  border-bottom: 0;
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(110, 200, 255, 0.35);
}

.fin-hub-mark {
  display: none;
}

.fin-hub-label {
  position: absolute;
  bottom: 12%;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.fin-gauge {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.fin-gauge circle {
  fill: none;
  stroke: rgba(140, 180, 255, 0.12);
  stroke-width: 3;
}
.fin-gauge-arc {
  stroke: url(#none);
  stroke: #3dffa8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 72 100;
  filter: drop-shadow(0 0 6px rgba(61, 255, 168, 0.7));
  animation: gauge-pulse 3.2s ease-in-out infinite;
}

.fin-card {
  position: absolute;
  z-index: 3;
  width: min(168px, 28%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 190, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(30, 60, 110, 0.55), rgba(8, 14, 24, 0.88));
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(40, 100, 220, 0.12);
  display: grid;
  gap: 2px;
  animation: card-float 5.5s ease-in-out infinite;
}
.fin-card strong {
  font-size: 0.95rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.fin-card em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}
.fin-card-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--ok);
  margin-bottom: 2px;
}
.fin-card-tag.out { color: var(--warn); }
.fin-card.c1 { left: 8%; top: 22%; }
.fin-card.c2 { right: 6%; top: 34%; animation-delay: 0.8s; }
.fin-card.c3 { left: 14%; bottom: 18%; animation-delay: 1.4s; }

.fin-bars {
  position: absolute;
  right: 14%;
  bottom: 16%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 190, 255, 0.2);
  background: rgba(6, 12, 22, 0.55);
  backdrop-filter: blur(10px);
}
.fin-bars i {
  display: block;
  width: 7px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8fd0ff, #3dffa8);
  opacity: 0.85;
  animation: bars 1.8s ease-in-out infinite;
}
.fin-bars i:nth-child(odd) { animation-delay: 0.15s; }
.fin-bars i:nth-child(3n) { animation-delay: 0.35s; }

.fin-token {
  position: absolute;
  z-index: 3;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #eaf4ff;
  border: 1px solid rgba(140, 200, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(110, 180, 255, 0.22), rgba(10, 20, 36, 0.85));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(60, 130, 255, 0.2);
  animation: card-float 5.5s ease-in-out infinite;
}
.fin-token.n1 { left: 26%; top: 14%; }
.fin-token.n2 { right: 16%; top: 18%; color: #b7f0d5; border-color: rgba(61, 255, 168, 0.35); animation-delay: 0.6s; }
.fin-token.n3 { right: 20%; bottom: 28%; animation-delay: 1.1s; }
.fin-token.n4 { left: 32%; bottom: 30%; color: #ffd2b0; border-color: rgba(255, 176, 74, 0.4); animation-delay: 1.7s; }

.fin-coin { display: none; }

.fin-flows {
  position: absolute;
  inset: 10%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.fin-flows path {
  fill: none;
  stroke: rgba(120, 190, 255, 0.28);
  stroke-width: 0.4;
  stroke-dasharray: 3 5;
  animation: dash-flow 10s linear infinite;
}
.fin-flows path:nth-child(2) {
  stroke: rgba(61, 255, 168, 0.28);
  animation-duration: 14s;
}
.fin-flows path:nth-child(3) {
  stroke: rgba(255, 176, 74, 0.22);
  animation-duration: 18s;
  animation-direction: reverse;
}

.login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px 22px 14px;
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(140, 170, 210, 0.1);
  animation: rise 0.45s ease both;
}

.login-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  vertical-align: 1px;
  animation: sat-pulse 1.8s ease-in-out infinite;
}

.login-clock {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 36px;
  align-items: center;
  padding: 4vh 0;
  max-width: 1180px;
}

.login-copy {
  animation: rise 0.55s ease 0.05s both;
  max-width: 34ch;
}

.login-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.login-pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: sat-pulse 1.6s ease-in-out infinite;
}

.login-brand {
  margin: 10px 0 0;
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 30px rgba(80, 150, 255, 0.45),
    0 0 80px rgba(40, 100, 255, 0.25);
}
.login-brand-accent {
  background: linear-gradient(120deg, #fff 20%, #7ec8ff 55%, #3dffa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-tagline {
  margin: 18px 0 0;
  color: #b7c4d8;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 28ch;
  white-space: normal;
}

.login-ticker {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.login-ticker span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(110, 200, 255, 0.22);
  background: rgba(40, 90, 180, 0.12);
  animation: ticker-fade 4s ease-in-out infinite;
}
.login-ticker span:nth-child(2) { animation-delay: 0.4s; color: var(--ok); border-color: rgba(61, 255, 168, 0.22); }
.login-ticker span:nth-child(3) { animation-delay: 0.8s; }
.login-ticker span:nth-child(4) { animation-delay: 1.2s; }

.login-stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 280px;
}

.login-stats li {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 170, 210, 0.16);
  background:
    linear-gradient(90deg, rgba(61, 124, 255, 0.1), transparent 55%),
    rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px 10px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-stats span {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-stats strong {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ok);
  text-align: right;
}

.stat-bar {
  grid-column: 1 / -1;
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stat-bar b {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--ok));
  box-shadow: 0 0 8px rgba(61, 255, 168, 0.45);
  animation: bar-in 1.1s ease both;
}

.login-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(140, 190, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(110, 200, 255, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(20, 40, 80, 0.55), rgba(8, 12, 20, 0.82));
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(50, 120, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: rise 0.55s ease 0.12s both;
  overflow: hidden;
}

.hud-corners::before,
.hud-corners::after,
.login-form::before,
.login-form::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(110, 200, 255, 0.75);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.login-form::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.login-form::after { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.hud-corners::before { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }
.hud-corners::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }

.login-form-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(110, 200, 255, 0.08), transparent);
  background-size: 100% 40%;
  animation: form-scan 3.8s ease-in-out infinite;
  pointer-events: none;
}

.login-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.login-form-head h2 { font-size: 1.4rem; }
.login-form-id {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(110, 200, 255, 0.25);
}

.login-field {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-field input,
input {
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(140, 170, 210, 0.2);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-field input:focus,
input:focus {
  border-color: rgba(110, 200, 255, 0.7);
  background: rgba(10, 20, 40, 0.65);
  box-shadow: 0 0 0 3px rgba(62, 130, 255, 0.18), 0 0 24px rgba(60, 130, 255, 0.15);
}

.login-field input::placeholder {
  color: rgba(139, 151, 173, 0.55);
}

.login-submit {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(40, 110, 255, 0.35);
}

.login-submit-arrow {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.login-submit:hover .login-submit-arrow {
  transform: translateX(4px);
}

.login-foot-mid code {
  color: var(--ok);
  font-family: inherit;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(140, 170, 210, 0.1);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: rise 0.5s ease 0.2s both;
}
.login-foot-mid { color: var(--cyan); }

.error {
  position: relative;
  z-index: 1;
  color: var(--danger);
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
}
.empty {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes login-scan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}
@keyframes form-scan {
  0%, 100% { transform: translateY(-120%); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(120%); opacity: 0; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -80; }
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes coin-spin {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-6px) rotateY(28deg); }
}
@keyframes gauge-pulse {
  0%, 100% { stroke-dasharray: 68 100; opacity: 0.85; }
  50% { stroke-dasharray: 78 100; opacity: 1; }
}
@keyframes ticker-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes bar-in {
  from { width: 0; }
  to { width: var(--w); }
}

/* iOS/Chrome autofill paints inputs near-white — keep dark theme */
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px rgba(6, 12, 22, 0.96) inset;
  transition: background-color 99999s ease-out;
}

@media (max-width: 860px) {
  .login-stage {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-shell {
    padding:
      max(12px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    min-height: 100dvh;
  }

  .login-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 22px;
    padding: 2.2vh 0 1.2vh;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .login-copy {
    max-width: none;
    text-align: center;
  }

  .login-pulse {
    justify-content: center;
  }

  .login-brand {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
    letter-spacing: 0.06em;
  }

  .login-tagline {
    margin: 12px auto 0;
    font-size: 0.98rem;
    max-width: 26ch;
  }

  /* Decorative theater overlaps brand on phones — keep sky only */
  .login-world {
    display: none;
  }

  .login-horizon {
    opacity: 0.28;
    height: 32%;
  }

  .login-beams,
  .login-scan {
    opacity: 0.35;
  }

  .login-ticker,
  .login-stats {
    display: none;
  }

  .login-top {
    padding-bottom: 10px;
  }

  .login-top .brand-sub {
    display: none;
  }

  .login-top-meta .chip {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .login-clock {
    display: none;
  }

  .login-form {
    padding: 18px 16px 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .login-form-head h2 {
    font-size: 1.28rem;
  }

  .login-field {
    font-size: 0.78rem;
    gap: 8px;
  }

  .login-field input {
    padding: 14px 14px;
    font-size: 1.02rem;
    border-radius: 12px;
    background: rgba(4, 8, 16, 0.72);
  }

  .login-submit {
    margin-top: 2px;
    min-height: 48px;
    padding: 14px 16px;
  }

  .login-foot {
    gap: 6px;
    justify-content: center;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 2px;
  }

  .login-foot > span:first-child {
    display: none;
  }

  .login-foot-mid {
    width: 100%;
    order: -1;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 420px) {
  .login-brand {
    font-size: 2.35rem;
  }

  .login-tagline {
    font-size: 0.92rem;
  }

  .login-top-meta .chip span,
  .login-top-meta .chip {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* —— Mission shell —— */
.mission {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 16, 0.75);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.brand-block { display: flex; align-items: baseline; gap: 10px; min-width: 160px; }
.brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: #fff;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.is-active {
  color: #fff;
  background: rgba(61, 124, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(110, 200, 255, 0.25);
}
.tab:disabled { opacity: 0.35; cursor: not-allowed; }

.topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.who {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 210, 0.12);
  background: rgba(255, 255, 255, 0.03);
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 210, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 12, 20, 0.55);
  user-select: none;
}
.link-meter-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-meter-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.link-meter-icon i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: rgba(140, 170, 210, 0.28);
  transform-origin: bottom;
}
.link-meter-icon i:nth-child(1) { height: 4px; }
.link-meter-icon i:nth-child(2) { height: 7px; }
.link-meter-icon i:nth-child(3) { height: 10px; }
.link-meter-icon i:nth-child(4) { height: 12px; }

.link-meter.is-ok {
  border-color: rgba(61, 255, 168, 0.28);
  box-shadow: 0 0 16px rgba(61, 255, 168, 0.08);
}
.link-meter.is-ok .link-meter-label { color: #b7f0d5; }
.link-meter.is-ok .link-meter-icon i {
  background: linear-gradient(180deg, #9dffe0, var(--ok));
  box-shadow: 0 0 6px rgba(61, 255, 168, 0.45);
  animation: link-bars 1.8s ease-in-out infinite;
}
.link-meter.is-ok .link-meter-icon i:nth-child(2) { animation-delay: 0.12s; }
.link-meter.is-ok .link-meter-icon i:nth-child(3) { animation-delay: 0.24s; }
.link-meter.is-ok .link-meter-icon i:nth-child(4) { animation-delay: 0.36s; }

.link-meter.is-sync {
  border-color: rgba(110, 200, 255, 0.35);
}
.link-meter.is-sync .link-meter-label { color: var(--cyan); }
.link-meter.is-sync .link-meter-icon i {
  background: linear-gradient(180deg, #9fd4ff, var(--blue));
  animation: link-bars 0.9s ease-in-out infinite;
}
.link-meter.is-sync .link-meter-icon i:nth-child(1),
.link-meter.is-sync .link-meter-icon i:nth-child(2) {
  opacity: 0.45;
}

.link-meter.is-bad,
.link-meter.is-down {
  border-color: rgba(255, 138, 61, 0.4);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.1);
}
.link-meter.is-bad .link-meter-label,
.link-meter.is-down .link-meter-label { color: #ffd2b0; }
.link-meter.is-bad .link-meter-icon i:nth-child(1),
.link-meter.is-bad .link-meter-icon i:nth-child(2) {
  background: linear-gradient(180deg, #ffb078, var(--warn));
}
.link-meter.is-bad .link-meter-icon i:nth-child(3),
.link-meter.is-bad .link-meter-icon i:nth-child(4),
.link-meter.is-down .link-meter-icon i:nth-child(2),
.link-meter.is-down .link-meter-icon i:nth-child(3),
.link-meter.is-down .link-meter-icon i:nth-child(4) {
  background: rgba(140, 170, 210, 0.18);
  opacity: 0.45;
}
.link-meter.is-down .link-meter-icon i:nth-child(1) {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 93, 108, 0.55);
  animation: sat-pulse 1.2s ease-in-out infinite;
}

@keyframes link-bars {
  0%, 100% { opacity: 0.55; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 140, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 120, 140, 0.14), rgba(40, 10, 18, 0.35));
  color: #ffd0d8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-logout-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 93, 108, 0.16);
  color: #ff8fa0;
}
.btn-logout:hover {
  border-color: rgba(255, 140, 160, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 120, 140, 0.22), rgba(60, 14, 24, 0.45));
  box-shadow: 0 0 18px rgba(255, 93, 108, 0.18);
  transform: translateY(-1px);
}
.btn-logout:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .btn-logout-text { display: none; }
  .btn-logout { padding: 7px; }
  .link-meter-label { display: none; }
  .link-meter { padding: 7px 9px; }
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 12px;
  padding: 12px;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

.fleet-panel .empty {
  margin: 8px 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(140, 170, 210, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise 0.45s ease both;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 10px;
  flex-shrink: 0;
}

.eyebrow {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow.warn { color: var(--warn); }

h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; color: #fff; }

.lede {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 42ch;
}

.badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-ok {
  color: var(--ok);
  background: var(--ok-dim);
  border-color: rgba(61, 255, 168, 0.28);
}
.chip-warn {
  color: var(--warn);
  background: var(--warn-dim);
  border-color: rgba(255, 138, 61, 0.35);
}

.btn-primary,
.btn-warn,
.btn-ghost,
.mode-pill {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
}

.btn-primary {
  border: 0;
  padding: 12px 16px;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(180deg, #8fd0ff, #3d7cff);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-warn {
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
  color: #1a0c04;
  background: linear-gradient(180deg, #ffb078, #ff8a3d);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Fleet —— */
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
  flex-shrink: 0;
}

.mode-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.mode-pill.is-active {
  color: #fff;
  border-color: rgba(110, 200, 255, 0.45);
  background: rgba(61, 124, 255, 0.2);
  box-shadow: 0 0 16px rgba(61, 124, 255, 0.2);
}

.fleet-list,
.chat-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 10px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-content: stretch;
}

.fleet-panel,
.chat-panel {
  position: relative;
  z-index: 5;
}

.chat-head h2 {
  letter-spacing: -0.02em;
}

.chat-filters {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2px;
}

.fleet-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fleet-item,
.chat-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: background 0.15s ease;
}
.chat-item:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: none;
  border-color: rgba(255, 255, 255, 0.04);
}
.chat-item.is-active {
  background: rgba(61, 124, 255, 0.14);
  box-shadow: inset 3px 0 0 #5aa8ff;
  border-color: rgba(255, 255, 255, 0.04);
}

.chat-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.28);
}
.chat-avatar.tone-0 {
  background: linear-gradient(145deg, #3d7cff, #1a3a7a);
}
.chat-avatar.tone-1 {
  background: linear-gradient(145deg, #2fd4a1, #14604a);
}
.chat-avatar.tone-2 {
  background: linear-gradient(145deg, #8b7cff, #3a2f8a);
}
.chat-avatar.tone-3 {
  background: linear-gradient(145deg, #ff9a4d, #8a3d12);
}
.chat-avatar.tone-4 {
  background: linear-gradient(145deg, #5ec8ff, #1a5578);
}
.chat-avatar.tone-5 {
  background: linear-gradient(145deg, #ff6b9d, #7a2048);
}

.chat-avatar-letters {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.chat-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid #0b1018;
  box-shadow: 0 0 8px rgba(61, 255, 168, 0.55);
}
.chat-online.has-mail {
  background: #5eb8ff;
  box-shadow: 0 0 10px rgba(94, 184, 255, 0.75);
}

.chat-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-row-top,
.chat-row-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chat-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: #f4f7fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(160, 180, 205, 0.72);
  font-variant-numeric: tabular-nums;
}

.chat-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: rgba(170, 190, 215, 0.78);
  line-height: 1.3;
}
.chat-preview.is-unread {
  color: #e8f2ff;
  font-weight: 600;
}

.chat-item.has-unread .chat-name {
  color: #fff;
  font-weight: 700;
}

.chat-unread {
  flex-shrink: 0;
  color: #6ab6ff;
  font-size: 0.55rem;
  line-height: 1;
}
.chat-unread-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(180deg, #8fd0ff, #3dffa8);
  box-shadow: 0 0 14px rgba(61, 255, 168, 0.35);
}

/* legacy asset styles kept for safety */
.asset-icon { display: none; }
.status-tag { display: none; }

/* —— Theater / ledger —— */
.theater-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(40, 90, 180, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 30% at 18% 78%, rgba(61, 255, 168, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.2), rgba(4, 8, 16, 0.55));
}

.telemetry-panel {
  min-height: 0;
  overflow: hidden;
}

.orbit-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orbit-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit-bloom {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(520px, 78%);
  height: min(520px, 78%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 170, 255, 0.22), rgba(40, 100, 220, 0.08) 38%, transparent 68%);
  filter: blur(8px);
  animation: pulse 5.5s ease-in-out infinite;
}
.orbit-bloom.b2 {
  width: min(360px, 56%);
  height: min(360px, 56%);
  background:
    radial-gradient(circle, rgba(61, 255, 168, 0.12), transparent 60%);
  animation-delay: -2s;
  animation-duration: 7s;
}

.orbit-scan {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(120, 190, 255, 0.05) 28deg,
    transparent 70deg,
    transparent 360deg
  );
  animation: spin-slow 28s linear infinite;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.orbit-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 28%, rgba(180, 220, 255, 0.55), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(140, 255, 210, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 64% 68%, rgba(200, 230, 255, 0.4), transparent),
    radial-gradient(1px 1px at 30% 74%, rgba(150, 200, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 54%, rgba(255, 220, 160, 0.35), transparent),
    radial-gradient(1px 1px at 46% 18%, rgba(180, 220, 255, 0.4), transparent);
  animation: twinkle 3.2s ease-in-out infinite alternate;
}

.orbit-trails {
  position: absolute;
  inset: 6% 4%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.orbit-ellipse {
  fill: none;
  stroke: rgba(120, 180, 255, 0.14);
  stroke-width: 0.18;
  stroke-dasharray: 1.2 1.6;
}
.orbit-ellipse.e2 {
  stroke: rgba(100, 170, 255, 0.2);
  stroke-dasharray: 0.8 1.4;
  animation: spin-slow 90s linear infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.orbit-ellipse.e3 {
  stroke: rgba(61, 255, 168, 0.12);
  stroke-dasharray: 0.5 1.8;
}
.orbit-spoke {
  fill: none;
  stroke: url(#none);
  stroke: rgba(110, 180, 255, 0.28);
  stroke-width: 0.22;
  stroke-linecap: round;
  opacity: 0.55;
  animation: spoke-fade 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.orbit-tip {
  fill: rgba(150, 220, 255, 0.85);
  filter: drop-shadow(0 0 2px rgba(100, 200, 255, 0.8));
}

.theater-rings {
  position: absolute;
  inset: 8%;
  z-index: 1;
}

.theater-rings .fin-ring.r5 {
  width: 94%;
  height: 94%;
  border-color: rgba(120, 180, 255, 0.08);
  border-style: dotted;
  animation: spin-slow 100s linear infinite reverse;
}

.theater-hub {
  position: relative;
  width: min(300px, 52%);
  height: min(300px, 52%);
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(70, 140, 255, 0.28));
}

.theater-hub .fin-hub-glow {
  background:
    radial-gradient(circle, rgba(120, 190, 255, 0.55), rgba(50, 120, 255, 0.18) 42%, transparent 70%);
  animation: pulse 4.2s ease-in-out infinite;
}

.theater-hub .fin-hub-core {
  box-shadow:
    inset 0 0 40px rgba(80, 150, 255, 0.18),
    0 0 0 1px rgba(140, 200, 255, 0.28),
    0 0 40px rgba(60, 130, 255, 0.25);
}

.theater-hub .fin-paycard {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(100, 180, 255, 0.25);
}

.theater-hub .fin-hub-label {
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(140, 200, 255, 0.45);
}

.sat-layer,
.fin-node-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.fin-node {
  appearance: none;
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 148px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 200, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(24, 40, 70, 0.92), rgba(8, 14, 26, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(40, 80, 140, 0.2),
    0 8px 22px rgba(0, 10, 30, 0.45),
    0 0 18px rgba(60, 130, 255, 0.18);
  font: inherit;
  color: #e7f1ff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  animation: node-float 3.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.fin-node.band-1 { max-width: 136px; }
.fin-node.band-2 { max-width: 128px; opacity: 0.95; }

.fin-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #fff, #6ab6ff 45%, #2a6fff 80%);
  box-shadow: 0 0 10px rgba(100, 180, 255, 0.85);
}

.fin-node-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.fin-node-text strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-node-text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.58rem;
  color: rgba(170, 200, 235, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-node:hover {
  animation-play-state: paused;
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(150, 220, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(80, 160, 255, 0.4);
  z-index: 5;
}

.fin-node.is-active {
  color: #041018;
  background: linear-gradient(135deg, #b8e4ff 0%, #7ad0ff 42%, #4dffc0 100%);
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 28px rgba(80, 230, 200, 0.55),
    0 10px 28px rgba(20, 80, 120, 0.35);
}
.fin-node.is-active .fin-node-dot {
  background: radial-gradient(circle at 35% 35%, #fff, #0a3a2a 70%);
  box-shadow: 0 0 10px rgba(10, 60, 40, 0.45);
}
.fin-node.is-active .fin-node-text em {
  color: rgba(10, 40, 35, 0.65);
}

.sat { display: none; }

.orbit-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  max-width: 36ch;
  padding: 14px 16px 15px;
  border-radius: 16px;
  border: 1px solid rgba(140, 190, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(20, 36, 64, 0.72), rgba(6, 10, 18, 0.78));
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.35);
}
.orbit-caption .eyebrow {
  color: #8ec8ff;
  letter-spacing: 0.14em;
}
.orbit-caption h2 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f4f8ff;
  text-shadow: 0 0 18px rgba(120, 180, 255, 0.25);
}
.orbit-caption .lede {
  margin: 0;
  color: rgba(180, 205, 235, 0.78);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* —— Feed —— */
.feed-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  position: relative;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.feed-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.feed-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 210, 0.2);
  background: rgba(8, 14, 26, 0.55);
}
.feed-filter {
  border: 0;
  background: transparent;
  color: rgba(180, 200, 225, 0.78);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.feed-filter:hover {
  color: #eef5ff;
}
.feed-filter.is-active {
  color: #041018;
  background: linear-gradient(180deg, #9fd0ff, #5ef0c0);
}
.feed[data-filter="pinned"] .pay-card:not(.is-pinned),
.feed[data-filter="pinned"] .note-card {
  display: none !important;
}
.feed[data-filter="unprocessed"] .pay-card.is-processed,
.feed[data-filter="unprocessed"] .note-card {
  display: none !important;
}

.pay-card-flags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.pay-flag-btn {
  border: 1px solid rgba(120, 160, 210, 0.25);
  background: rgba(12, 18, 30, 0.75);
  color: rgba(200, 215, 235, 0.88);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.pay-flag-btn:hover {
  border-color: rgba(140, 200, 255, 0.45);
  color: #fff;
}
.pay-processed-btn.is-on {
  border-color: rgba(61, 255, 168, 0.45);
  color: #041018;
  background: linear-gradient(180deg, #9dffe0, #3dffa8);
  box-shadow: 0 0 12px rgba(61, 255, 168, 0.25);
}
.pay-pin-btn {
  min-width: 28px;
  padding-left: 7px;
  padding-right: 7px;
  font-size: 0.85rem;
}
.pay-pin-btn.is-on {
  border-color: rgba(255, 200, 90, 0.5);
  color: #041018;
  background: linear-gradient(180deg, #ffe29a, #ffb84d);
  box-shadow: 0 0 12px rgba(255, 180, 70, 0.28);
}
.pay-card.is-processed {
  border-color: rgba(61, 255, 168, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(12, 24, 22, 0.96), rgba(8, 12, 18, 0.92));
}
.pay-card.is-processed .pay-card-amount {
  color: #e8fff4;
}
.pay-card.is-pinned {
  border-color: rgba(255, 190, 90, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 180, 70, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}
.pay-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.feed-toolbar #feed-live { margin-left: 0; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(110, 200, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(110, 180, 255, 0.16), rgba(20, 40, 70, 0.35));
  color: #e8f3ff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(60, 130, 255, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-back:hover {
  border-color: rgba(110, 200, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(110, 180, 255, 0.28), rgba(30, 60, 110, 0.45));
  box-shadow: 0 0 24px rgba(60, 140, 255, 0.28);
  transform: translateX(-2px);
}
.btn-back-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(110, 200, 255, 0.18);
  color: var(--cyan);
  font-size: 0.85rem;
  line-height: 1;
}

.feed-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.note-composer {
  flex-shrink: 0;
  display: grid;
  gap: 6px;
  padding: 10px 8px 4px 0;
  border-top: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.2), rgba(6, 10, 18, 0.55));
}
.note-composer-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 185, 215, 0.72);
}
.note-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.note-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 230, 0.22);
  background: rgba(10, 16, 28, 0.9);
  color: #eaf2ff;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
}
.note-composer textarea:focus {
  outline: none;
  border-color: rgba(100, 190, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(70, 150, 255, 0.15);
}
.note-send {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(100, 210, 180, 0.35);
  background: linear-gradient(180deg, rgba(70, 180, 150, 0.35), rgba(30, 90, 80, 0.85));
  color: #eafff6;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}
.note-send:hover:not(:disabled) {
  filter: brightness(1.08);
}
.note-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.note-error {
  margin: 0;
  color: #ff8f8f;
  font-size: 0.8rem;
}
.note-error[hidden] {
  display: none !important;
}

.note-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(180, 150, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(140, 110, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(20, 16, 36, 0.95), rgba(10, 12, 24, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.24);
  animation: slip 0.35s ease both;
}
.note-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #c4a8ff, #7b6cff);
}
.note-card.is-mine {
  border-color: rgba(110, 200, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(80, 150, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(14, 22, 38, 0.95), rgba(8, 12, 22, 0.92));
}
.note-card.is-mine::before {
  background: linear-gradient(180deg, #8fd0ff, #4d8dff);
}
.note-card.is-new {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(180, 150, 255, 0.35),
    0 0 22px rgba(140, 110, 255, 0.18);
}
.note-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.note-card-author {
  font-weight: 700;
  color: #f0e9ff;
  font-size: 0.88rem;
}
.note-card-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d8c8ff;
  background: rgba(140, 110, 255, 0.2);
  border: 1px solid rgba(180, 150, 255, 0.25);
}
.note-card-time {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(170, 185, 210, 0.72);
  font-variant-numeric: tabular-nums;
}
.note-card-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(230, 235, 250, 0.92);
  font-size: 0.92rem;
  line-height: 1.4;
}

.feed {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 2px 8px 10px 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 180, 255, 0.45) rgba(255, 255, 255, 0.04);
}
.feed::-webkit-scrollbar,
.chat-list::-webkit-scrollbar,
.tele-scroll::-webkit-scrollbar {
  width: 8px;
}
.feed::-webkit-scrollbar-track,
.chat-list::-webkit-scrollbar-track,
.tele-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  margin: 4px 0;
}
.feed::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb,
.tele-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(120, 190, 255, 0.55), rgba(61, 124, 255, 0.4));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.feed::-webkit-scrollbar-thumb:hover,
.chat-list::-webkit-scrollbar-thumb:hover,
.tele-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(150, 210, 255, 0.75), rgba(80, 150, 255, 0.55));
  background-clip: padding-box;
}
.chat-list,
.fleet-list,
.tele-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 180, 255, 0.4) rgba(255, 255, 255, 0.04);
}

.feed-new {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(110, 200, 255, 0.4);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(70, 140, 255, 0.35), rgba(20, 40, 80, 0.92));
  color: #eaf4ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(60, 140, 255, 0.25);
  backdrop-filter: blur(10px);
  animation: rise 0.25s ease both;
}
.feed-new.hidden,
.feed-new[hidden] {
  display: none !important;
}
.feed-new:hover {
  border-color: rgba(140, 220, 255, 0.65);
  filter: brightness(1.06);
}
.feed-new-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.8);
  animation: sat-pulse 1.4s ease-in-out infinite;
}

.pay-card.is-new {
  border-color: rgba(61, 255, 168, 0.45);
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(18, 36, 52, 0.98), rgba(10, 16, 28, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(61, 255, 168, 0.32),
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(61, 255, 168, 0.16);
  animation: slip 0.35s ease both;
}
.pay-card.is-new::before {
  width: 4px;
  background: linear-gradient(180deg, #9dfff0, #3dffa8);
  box-shadow: 0 0 12px rgba(61, 255, 168, 0.65);
}
.pay-card.is-new .pay-card-amount {
  color: #f3fff9;
}
.pay-card.is-new .pay-card-meta {
  color: rgba(200, 240, 220, 0.9);
  font-weight: 560;
}
@keyframes new-glow {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(61, 255, 168, 0.55),
      0 0 34px rgba(61, 255, 168, 0.35);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 28px rgba(0, 0, 0, 0.28);
  }
}

.feed-empty {
  position: absolute;
  inset: 72px 14px 14px;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
  animation: rise 0.45s ease both;
}
.feed-empty.hidden {
  display: none !important;
}

.feed-empty-glow {
  position: absolute;
  width: min(420px, 70%);
  height: min(420px, 70%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 160, 255, 0.18), rgba(40, 100, 200, 0.06) 42%, transparent 68%);
  filter: blur(6px);
  animation: pulse 5s ease-in-out infinite;
  z-index: 0;
}

.feed-empty-card {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(140, 200, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(40, 70, 120, 0.55), rgba(12, 20, 36, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(70, 140, 255, 0.22);
  animation: card-float 4.5s ease-in-out infinite;
}
.feed-empty-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f0d28a, #c9a24a);
  box-shadow: 0 0 10px rgba(240, 200, 120, 0.35);
}
.feed-empty-line {
  position: absolute;
  left: 12px;
  right: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(180, 210, 255, 0.28);
}
.feed-empty-line.l1 { top: 34px; width: 46%; }
.feed-empty-line.l2 { top: 43px; width: 34%; opacity: 0.65; }
.feed-empty-wave {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 200, 255, 0.15), rgba(61, 255, 168, 0.45));
}

.feed-empty-title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f7ff;
  letter-spacing: -0.01em;
}
.feed-empty-text {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  gap: 0.15em;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  color: rgba(170, 190, 215, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
}
.feed-empty-text span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .feed-empty-text {
    font-size: 0.82rem;
  }
}
.feed-empty-pulse {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 168, 0.22);
  background: rgba(61, 255, 168, 0.08);
  color: #b7f0d5;
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
.feed-empty-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

.receipt,
.pay-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 230, 0.16);
  background:
    linear-gradient(135deg, rgba(90, 150, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 32, 0.95), rgba(8, 12, 20, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
  animation: slip 0.35s ease both;
}
.pay-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--ok));
}
.pay-card.tone-bad::before {
  background: linear-gradient(180deg, #ff8a3d, var(--danger));
}
.pay-card.tone-wait::before {
  background: linear-gradient(180deg, #ffd166, #ff8a3d);
}

.pay-card-left {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.pay-card-amount {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #f2fff8;
  text-shadow: 0 0 22px rgba(61, 255, 168, 0.28);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-card-meta {
  color: #9eb0c8;
  font-size: 0.84rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-card-right {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex-shrink: 0;
}
.pay-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b7f0d5;
  background: rgba(61, 255, 168, 0.1);
  border: 1px solid rgba(61, 255, 168, 0.28);
  white-space: nowrap;
}
.pay-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(61, 255, 168, 0.7);
}
.pay-card.tone-bad .pay-card-status {
  color: #ffc2c8;
  background: rgba(255, 93, 108, 0.12);
  border-color: rgba(255, 93, 108, 0.3);
}
.pay-card.tone-bad .pay-card-status::before {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 93, 108, 0.55);
}
.pay-card.tone-wait .pay-card-status {
  color: #ffe0b8;
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.3);
}
.pay-card.tone-wait .pay-card-status::before {
  background: var(--warn);
}
.pay-card-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mission.is-feed .telemetry-panel {
  display: grid;
}
.mission.is-feed .mission-grid {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
}

@media (max-width: 760px) {
  .pay-card {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 13px 14px 12px 16px;
  }
  .pay-card-right {
    justify-items: start;
    grid-auto-flow: column;
    justify-content: space-between;
    width: 100%;
  }
  .pay-card-amount {
    font-size: 1.35rem;
  }
  .mission.is-feed .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission.is-feed .telemetry-panel {
    display: grid;
  }
}

/* —— Telemetry —— */
.telemetry-panel {
  min-height: 0;
  overflow: hidden;
}
.tele-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2px;
}
.tele-head h2 {
  letter-spacing: -0.02em;
}
.tele-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}

.tele-block {
  display: grid;
  gap: 6px;
  padding: 10px 14px 12px;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 170, 210, 0.1);
  background:
    linear-gradient(90deg, rgba(61, 124, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.18);
  font-size: 0.84rem;
}
.tele-row span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.tele-row strong {
  font-family: var(--mono);
  font-weight: 500;
  color: #fff;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}

.signal-card {
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(140, 170, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(110, 200, 255, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.2);
}
.signal-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.signal-head #signal-pct { color: var(--ok); }

.signal-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 42px;
  align-items: end;
}
.signal-bars i {
  display: block;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.75;
  animation: bars 1.6s ease-in-out infinite;
  height: 40%;
}
.signal-bars i:nth-child(odd) { animation-delay: 0.1s; height: 55%; }
.signal-bars i:nth-child(3n) { animation-delay: 0.25s; height: 80%; }
.signal-bars i:nth-child(4n) { animation-delay: 0.4s; height: 35%; }
.signal-bars i:nth-child(5n) { animation-delay: 0.15s; height: 95%; }

.alert-box {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 61, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 138, 61, 0.12), transparent 55%),
    rgba(20, 10, 4, 0.55);
}
.alert-text {
  margin: 6px 0 12px;
  color: #ffd2b0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.alert-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hint-card {
  margin: auto 14px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(140, 170, 210, 0.18);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.hint-card .lede {
  max-width: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes slip {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@keyframes drift {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -1%, 0) scale(1.04); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes spin-slow {
  to { transform: rotate(372deg); }
}
@keyframes orbit-tilt {
  to { transform: rotate(360deg) scaleY(0.55); }
}
@keyframes sat-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}
@keyframes node-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-3px); }
}
@keyframes spoke-fade {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.7; }
}
@keyframes bars {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1); }
}

@media (max-width: 1100px) {
  .mission-grid {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    overflow: auto;
  }
  .telemetry-panel { grid-column: 1 / -1; max-height: 320px; }
}

@media (max-width: 760px) {
  html, body { overflow: auto; }
  .mission {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .topnav {
    flex-wrap: wrap;
    gap: 10px;
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      10px
      max(12px, env(safe-area-inset-left));
  }
  .topnav .brand-sub { display: none; }
  .tabs {
    order: 3;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabs .tab {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
  }
  .mission-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    gap: 10px;
    padding: 0 10px 12px;
  }
  .fleet-panel {
    max-height: min(42vh, 380px);
    min-height: 260px;
  }
  .theater-panel {
    min-height: min(52vh, 460px);
  }
  .theater-hub {
    width: min(200px, 58%);
    height: min(200px, 58%);
  }
  .telemetry-panel {
    max-height: none;
  }
  .chat-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .mode-pill {
    flex: 0 0 auto;
  }
}
