:root {
  --bg: #07111f;
  --bg-deep: #030814;
  --panel: rgba(9, 15, 28, 0.9);
  --panel-strong: rgba(11, 18, 32, 0.96);
  --line: rgba(148, 177, 214, 0.16);
  --line-strong: rgba(148, 177, 214, 0.3);
  --text: #edf7ff;
  --muted: #91a7c2;
  --cyan: #65f0d6;
  --cyan-deep: #26c8d1;
  --lime: #b7ff66;
  --amber: #ffc16f;
  --danger: #ff758d;
  --danger-soft: rgba(255, 117, 141, 0.14);
  --positive-soft: rgba(101, 240, 214, 0.14);
  --shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-ui: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  background:
    linear-gradient(180deg, #07101b 0%, #050913 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 176, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 176, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  pointer-events: none;
}

.background-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.45;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.32;
}

.orb-a {
  width: 16rem;
  height: 16rem;
  top: 3rem;
  right: -4rem;
  background: rgba(64, 230, 200, 0.18);
}

.orb-b {
  width: 18rem;
  height: 18rem;
  bottom: 14rem;
  left: -7rem;
  background: rgba(84, 118, 255, 0.18);
}

.orb-c {
  width: 12rem;
  height: 12rem;
  top: 38%;
  left: 48%;
  background: rgba(183, 255, 102, 0.08);
}

.mesh {
  position: absolute;
  inset: 10% 18%;
  border: 1px solid rgba(144, 180, 255, 0.04);
  border-radius: 50%;
  transform: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.app-shell-hidden {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  pointer-events: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top, rgba(101, 240, 214, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(4, 9, 19, 0.9), rgba(3, 8, 20, 0.97));
  opacity: 1;
  visibility: visible;
  transition:
    opacity 450ms ease,
    visibility 450ms ease;
  will-change: opacity;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-panel {
  width: min(100%, 42rem);
  display: grid;
  justify-items: center;
  text-align: center;
}

.boot-logo-wrap {
  display: grid;
  place-items: center;
  width: min(72vw, 13rem);
  margin-bottom: 1.7rem;
}

.boot-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.boot-copy h1 {
  margin: 0;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.boot-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.boot-progress {
  width: min(100%, 30rem);
  margin-top: 1.4rem;
}

.boot-progress-bar {
  position: relative;
  overflow: hidden;
  height: 0.9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.boot-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(101, 240, 214, 0.76), rgba(183, 255, 102, 0.52));
}

.boot-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: sweep 1.4s linear infinite;
}

.boot-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 0.7rem;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 18%);
  pointer-events: none;
}

.topbar.panel {
  background: rgba(10, 18, 31, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  border-radius: 18px;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0.46rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(101, 240, 214, 0.14);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.operator-badge {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.operator-badge::before {
  content: "session :: ";
  color: rgba(148, 177, 214, 0.78);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow,
.meta-label,
.live-label,
.stat-label,
.chip,
.stage-pill,
.status-pill,
.feed-time,
.position-meta,
.mini-label {
  font-family: var(--font-mono);
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "// ";
  color: rgba(101, 240, 214, 0.7);
}

.topbar-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.meta-card,
.status-pill {
  min-height: 4.2rem;
  border-radius: var(--radius-md);
}

.meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  contain: paint;
}

.meta-card-profit {
  grid-column: 1 / -1;
  min-height: 5.4rem;
  background: rgba(101, 240, 214, 0.03);
  border-color: rgba(101, 240, 214, 0.18);
  box-shadow: inset 3px 0 0 rgba(101, 240, 214, 0.55);
}

.meta-label,
.stat-label,
.live-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profit-value {
  margin-top: 0.15rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.meta-card-profit small {
  color: var(--muted);
}

.meta-card-profit.is-tick-up .profit-value {
  color: var(--lime);
}

.meta-card-profit.is-tick-down .profit-value {
  color: #ff9cae;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  background: rgba(101, 240, 214, 0.04);
  border: 1px solid rgba(101, 240, 214, 0.18);
  color: var(--cyan);
  contain: paint;
  border-radius: 8px;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: currentColor;
  animation: pulse-dot 2.4s steps(2, end) infinite;
}

.dashboard {
  display: grid;
  gap: 1rem;
}

.hero-grid,
.content-grid,
.content-grid.secondary {
  display: grid;
  gap: 1rem;
}

.hero-card,
.feed-card,
.positions-card,
.radar-card,
.modules-card,
.roadmap-card {
  padding: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading.compact {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(148, 177, 214, 0.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-beta {
  color: var(--amber);
  border-color: rgba(255, 193, 111, 0.24);
  background: rgba(255, 193, 111, 0.03);
}

.live-chip {
  color: var(--cyan);
  border-color: rgba(101, 240, 214, 0.2);
  background: rgba(101, 240, 214, 0.02);
}

.hero-main {
  display: grid;
  gap: 1rem;
}

.live-action {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(101, 240, 214, 0.16);
  position: relative;
  padding-left: 1.25rem;
}

.live-action::before {
  content: ">";
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.live-action p {
  margin: 0.35rem 0 0;
  font-size: clamp(1.02rem, 0.96rem + 0.7vw, 1.35rem);
  line-height: 1.35;
  max-width: 28ch;
  font-family: var(--font-mono);
}

.hero-stats {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.stat-box {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.stat-box strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.stat-box small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.hero-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.ghost-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ghost-button::before {
  content: "[ ";
}

.ghost-button::after {
  content: " ]";
}

.performance-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.performance-header,
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.performance-chart {
  width: 100%;
  height: 10rem;
  shape-rendering: geometricPrecision;
}

.chart-grid line {
  stroke: rgba(148, 177, 214, 0.18);
  stroke-width: 1;
  stroke-dasharray: 4 8;
  shape-rendering: crispEdges;
}

.chart-candle {
  color: rgba(148, 177, 214, 0.7);
}

.chart-candle .chart-wick {
  stroke: currentColor;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.chart-candle .chart-body {
  fill: rgba(148, 177, 214, 0.09);
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-candle[data-direction="up"] {
  color: var(--cyan);
}

.chart-candle[data-direction="up"] .chart-body {
  fill: rgba(101, 240, 214, 0.18);
}

.chart-candle[data-direction="down"] {
  color: var(--danger);
}

.chart-candle[data-direction="down"] .chart-body {
  fill: rgba(255, 122, 122, 0.18);
}

.simulation-card {
  display: grid;
  gap: 1rem;
}

.simulation-grid {
  display: grid;
  gap: 0.9rem;
}

.tool-block {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}

.tool-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(101, 240, 214, 0.18);
}

.tool-head {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
}

.tool-head strong {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.capital-inputs {
  display: grid;
  gap: 0.85rem;
}

.tool-range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: var(--cyan);
}

.tool-range::-webkit-slider-runnable-track {
  height: 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 177, 214, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.tool-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.38rem;
  border-radius: 50%;
  border: 2px solid #08101d;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(101, 240, 214, 0.32);
  cursor: pointer;
}

.tool-range::-moz-range-track {
  height: 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 177, 214, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.tool-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #08101d;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(101, 240, 214, 0.32);
  cursor: pointer;
}

.tool-number-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.3rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.tool-number-wrap span {
  padding-right: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-number {
  width: 100%;
  appearance: textfield;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.6rem 0.65rem;
  font: inherit;
  font-family: var(--font-mono);
}

.tool-number:focus-visible {
  outline: 0;
}

.tool-number::-webkit-outer-spin-button,
.tool-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tool-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.segmented-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  padding: 0.85rem 0.8rem;
  border-radius: 8px;
  font: inherit;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.segmented-button.is-active {
  color: var(--text);
}

.segmented-button[data-risk-level="low"].is-active {
  border-color: rgba(101, 240, 214, 0.32);
  background: rgba(101, 240, 214, 0.08);
  color: var(--cyan);
}

.segmented-button[data-risk-level="normal"].is-active {
  border-color: rgba(255, 193, 111, 0.28);
  background: rgba(255, 193, 111, 0.08);
  color: var(--amber);
}

.segmented-button[data-risk-level="high"].is-active {
  border-color: rgba(255, 117, 141, 0.3);
  background: rgba(255, 117, 141, 0.08);
  color: var(--danger);
}

.allocation-block {
  gap: 0.95rem;
}

.allocation-list {
  display: grid;
  gap: 0.8rem;
}

.allocation-row {
  display: grid;
  gap: 0.45rem;
}

.allocation-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.allocation-label {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.allocation-row strong {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.allocation-totals,
.simulation-summary {
  display: grid;
  gap: 0.8rem;
}

.simulation-stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.simulation-stat.compact {
  padding: 0.82rem 0.9rem;
}

.simulation-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.positive {
  color: var(--cyan);
}

.negative {
  color: var(--danger);
}

.feed-list,
.positions-list,
.watchlist,
.roadmap-list {
  display: grid;
  gap: 0.8rem;
}

.feed-list {
  max-height: 36rem;
  overflow: auto;
  padding-right: 0.25rem;
  gap: 0;
  border: 1px solid rgba(148, 177, 214, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
}

.feed-list::-webkit-scrollbar {
  width: 0.45rem;
}

.feed-list::-webkit-scrollbar-thumb {
  background: rgba(148, 197, 255, 0.18);
  border-radius: 999px;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(148, 177, 214, 0.18);
  border-bottom: 1px solid rgba(148, 177, 214, 0.1);
  animation: slide-up 220ms ease;
  contain: paint;
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 2px;
  box-shadow: none;
}

.feed-item[data-tone="positive"] .feed-dot {
  background: var(--cyan);
}

.feed-item[data-tone="warning"] .feed-dot {
  background: var(--amber);
}

.feed-item[data-tone="risk"] .feed-dot {
  background: var(--danger);
}

.feed-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.feed-time {
  display: inline-block;
  min-width: 5.6rem;
  color: var(--cyan);
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-card {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.metric-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.metric-card span:last-child {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--muted);
}

.position-card,
.watch-item,
.module-card,
.roadmap-item {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  contain: paint;
}

.position-card::before,
.watch-item::before,
.module-card::before,
.roadmap-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(101, 240, 214, 0.2);
}

.content-grid,
.content-grid.secondary {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.procurement-grid {
  display: grid;
  gap: 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 840px;
}

.procurement-card {
  padding: 1rem;
}

.procurement-total {
  color: var(--lime);
  border-color: rgba(183, 255, 102, 0.18);
  background: rgba(183, 255, 102, 0.03);
  font-family: var(--font-mono);
}

.procurement-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(148, 177, 214, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.procurement-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(148, 177, 214, 0.1);
  position: relative;
}

.procurement-item:last-child {
  border-bottom: 0;
}

.procurement-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(101, 240, 214, 0.22);
}

.procurement-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.procurement-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.procurement-price {
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.position-head,
.watch-head,
.module-head,
.roadmap-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.position-pair,
.watch-pair,
.module-head strong {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.position-meta,
.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.mini-stat strong,
.watch-price,
.module-score {
  display: block;
  margin-top: 0.28rem;
  font-size: 1rem;
  font-family: var(--font-mono);
}

.position-rationale {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.watch-item {
  overflow: hidden;
}

.watch-track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.mini-chart {
  width: 100%;
  height: 2.5rem;
}

.mini-line {
  fill: none;
  stroke: rgba(159, 205, 255, 0.9);
  stroke-width: 2;
}

.watch-item[data-trend="up"] .mini-line {
  stroke: var(--cyan);
}

.watch-item[data-trend="down"] .mini-line {
  stroke: var(--danger);
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.mini-chip {
  padding: 0.34rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.73rem;
  font-family: var(--font-mono);
}

.modules-grid {
  display: grid;
  gap: 0.8rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.015);
}

.module-card p {
  margin: 0.7rem 0 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.module-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.module-score {
  color: var(--cyan);
}

.roadmap-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--amber);
  font-size: 0.75rem;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (min-width: 720px) {
  .app-shell {
    padding: 1.3rem 1.3rem 2.5rem;
  }

  .brand-mark {
    width: 5.9rem;
    height: 5.9rem;
    padding: 0.58rem;
    border-radius: 1.35rem;
  }

  .boot-panel {
    width: min(100%, 48rem);
  }

  .boot-logo-wrap {
    width: min(44vw, 17rem);
    margin-bottom: 2rem;
  }

  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.25rem;
  }

  .topbar-meta {
    grid-template-columns: minmax(15rem, 1.3fr) repeat(3, minmax(0, auto));
    align-items: stretch;
  }

  .meta-card-profit {
    grid-column: auto;
  }

  .hero-main {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .hero-stats,
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capital-inputs {
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: center;
  }

  .simulation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .allocation-block {
    grid-column: 1 / -1;
  }

  .allocation-totals,
  .simulation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid.secondary {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .procurement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .orb {
    filter: blur(20px);
    opacity: 0.2;
  }

  .boot-screen {
    backdrop-filter: none;
  }

  .boot-logo,
  .brand-logo {
    filter: none;
  }

  .panel {
    background: rgba(8, 14, 25, 0.96);
    box-shadow: none;
  }

  .meta-card-profit {
    box-shadow: inset 2px 0 0 rgba(101, 240, 214, 0.5);
  }

  .status-dot {
    box-shadow: none;
  }

  .procurement-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .tool-head {
    align-items: flex-start;
  }

  .segmented-button {
    padding-inline: 0.5rem;
  }
}

@media (min-width: 1100px) {
  .brand-mark {
    width: 6.8rem;
    height: 6.8rem;
    padding: 0.68rem;
    border-radius: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.72fr;
    align-items: start;
  }

  .content-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .simulation-grid {
    grid-template-columns: 0.95fr 0.78fr 1.27fr;
  }

  .allocation-block {
    grid-column: auto;
  }

  .simulation-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .topbar {
    position: sticky;
    top: 1rem;
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .boot-progress-fill,
  .boot-screen,
  .app-shell {
    transition: none !important;
  }
}
