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

:root {
  --c1: #00ffe0;
  --c2: #7b2fff;
  --c3: #ff2d78;
  --c4: #f9c846;
  --c5: #3af5a4;
  --c6: #ff9f1c;
  --bg: #060b14;
  --bg2: #0c1524;
  --bg3: #111d31;
  --text: #c8e6ff;
  --muted: #4a6a8a;
  --border: rgba(255,255,255,.06);
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,224,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,224,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,.05) 3px, rgba(0,0,0,.05) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,255,224,.15);
  padding-bottom: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left { display: flex; align-items: center; gap: 14px; }

.logo-mark {
  width: 42px; height: 42px;
  border: 1.5px solid var(--c1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(0,255,224,.3);
  flex-shrink: 0;
}
.logo-inner {
  width: 20px; height: 20px;
  border: 1.5px solid var(--c2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-dot {
  width: 7px; height: 7px;
  background: var(--c1);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.55); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: .35; }
  100% { transform: translateX(220%); opacity: 0; }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

.brand-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 2.5px;
  color: var(--c1);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-top: 3px;
  font-family: 'Share Tech Mono', monospace;
}

.header-right { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(0,255,224,.08);
  border: 1px solid rgba(0,255,224,.2);
  font-size: 11px; font-family: 'Share Tech Mono', monospace;
  color: var(--c1);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c1);
  animation: pulse 1.5s ease-in-out infinite;
}
.last-updated {
  font-size: 10px;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
}

.hero-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-copy,
.hero-stat-panel {
  background: linear-gradient(180deg, rgba(17,29,49,.95), rgba(12,21,36,.95));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  animation: floatGlow 7s ease-in-out infinite;
}
.hero-copy::before,
.hero-stat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,255,224,.08), transparent 35%);
  pointer-events: none;
}
.hero-copy::after,
.hero-stat-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-120%);
  animation: shimmer 6.5s linear infinite;
  pointer-events: none;
}
.hero-kicker {
  color: var(--c1);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 30px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 10px;
}
.hero-text {
  color: var(--text);
  opacity: .88;
  max-width: 620px;
  line-height: 1.55;
  font-size: 14px;
}
.hero-side-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.hero-stat-label {
  color: var(--muted);
  font-size: 10px;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.hero-stat-value {
  font-size: 22px;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 6px;
}
.hero-stat-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.status-chip {
  background: rgba(12,21,36,.92);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
  position: relative;
  overflow: hidden;
}
.status-chip::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,224,.35), transparent);
}
.chip-label {
  color: var(--muted);
  font-size: 10px;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.chip-value {
  color: #fff;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.kpi-card:hover {
  border-color: rgba(0,255,224,.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18), 0 0 18px rgba(0,255,224,.05);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
}
.kpi-card.ac1::before { background: var(--c1); }
.kpi-card.ac2::before { background: var(--c2); }
.kpi-card.ac3::before { background: var(--c3); }
.kpi-card.ac4::before { background: var(--c4); }
.kpi-card.ac5::before { background: var(--c5); }
.kpi-card.ac6::before { background: var(--c6); }

.kpi-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  line-height: 1;
}
.kpi-sub { font-size: 10px; color: var(--muted); margin-top: 5px; }
.up { color: var(--c5); }
.down { color: var(--c3); }
.warn { color: var(--c4); }

.panel {
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .18s ease, box-shadow .18s ease;
}
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(123,47,255,.08), transparent 28%);
  opacity: .65;
  pointer-events: none;
}
.panel:hover {
  border-color: rgba(0,255,224,.18);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.24), 0 0 0 1px rgba(0,255,224,.05) inset;
}
.panel-corner {
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px;
  border-top: 2px solid var(--c1);
  border-right: 2px solid var(--c1);
  border-radius: 0 12px 0 0;
  opacity: .35;
}
.panel-title {
  font-size: 10px;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.panel-title-accent, .title-accent.cyan { color: var(--c1); }
.title-accent.purple { color: var(--c2); }
.title-accent.pink { color: var(--c3); }
.title-accent.warm { color: var(--c4); }
.subsection { margin-top: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.col-span-2 { grid-column: span 2; }
.section-gap { margin-bottom: 14px; }
.chart-section { margin-bottom: 14px; }

.chart-wrap {
  position: relative;
  height: 210px;
  background:
    linear-gradient(180deg, rgba(0,255,224,.05), rgba(0,255,224,0)),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 100% 36px, 72px 100%;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0,255,224,.03);
}
#equityChart { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 8px rgba(0,255,224,.12)); }
.chart-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
}
.chart-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0,255,224,.05), transparent 45%);
  pointer-events: none;
}
.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
}
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.legend-swatch { width: 24px; height: 2px; border-radius: 1px; }
.legend-line { background: var(--c1); }
.legend-peak { border-top: 2px dashed var(--c2); height: 0; }

.sig-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sig-table th {
  text-align: left;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sig-table td {
  padding: 9px 8px 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: 'Share Tech Mono', monospace;
  color: var(--text);
  font-size: 11px;
}
.sig-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: .5px;
  box-shadow: inset 0 0 10px rgba(255,255,255,.03), 0 0 10px rgba(0,0,0,.15);
}
.badge-long { background: rgba(58,245,164,.12); color: var(--c5); border: 1px solid rgba(58,245,164,.25); }
.badge-short { background: rgba(255,45,120,.12); color: var(--c3); border: 1px solid rgba(255,45,120,.25); }
.badge-hold { background: rgba(249,200,70,.12); color: var(--c4); border: 1px solid rgba(249,200,70,.25); }

.run-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.run-row:last-child { border-bottom: none; }
.run-key {
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
}
.run-val {
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
}

.mini-stat {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mini-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1;
}
.mini-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.health-list { display: flex; flex-direction: column; gap: 9px; }
.health-row { display: flex; align-items: center; gap: 10px; }
.health-sym {
  font-family: 'Share Tech Mono', monospace;
  color: var(--text);
  font-size: 10px;
  min-width: 78px;
}
.health-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.health-bar { height: 100%; border-radius: 2px; transition: width .6s ease; box-shadow: 0 0 10px currentColor; }
.health-pct {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  min-width: 38px;
  text-align: right;
  color: var(--muted);
}

.principle {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.principle:last-of-type { border-bottom: none; }
.principle-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--c2);
  margin-top: 2px;
  flex-shrink: 0;
}

.insight {
  background: var(--bg3);
  border-radius: 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--c2);
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}
.insight:last-child { margin-bottom: 0; }
.insight-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.chart-controls {
  display: flex;
  gap: 4px;
}
.chart-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}
.chart-btn:hover {
  border-color: rgba(0,255,224,.3);
  color: #fff;
}
.chart-btn.active {
  background: rgba(0,255,224,.12);
  border-color: var(--c1);
  color: var(--c1);
}

/* Positions row — sits right below KPI grid, same visual language */
.positions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.pos-kpi {
  flex: 1 1 120px;
  min-width: 110px;
  max-width: 180px;
  background: var(--bg2);
  border-radius: 10px;
  padding: 12px 14px 10px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.pos-kpi:hover {
  border-color: rgba(0,255,224,.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18), 0 0 18px rgba(0,255,224,.05);
}
.pos-kpi-accent {
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
}
.pos-kpi.long .pos-kpi-accent { background: var(--c5); }
.pos-kpi.short .pos-kpi-accent { background: var(--c3); }
.pos-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.pos-kpi-sym {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pos-kpi-dir {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: .5px;
}
.pos-kpi-entry {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1;
  margin-bottom: 8px;
}
.pos-kpi-bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  margin-bottom: 4px;
}
.pos-kpi-bar-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--c3), var(--c1));
  border-radius: 2px;
  opacity: .5;
}
.pos-kpi-bar-marker {
  position: absolute;
  top: -2px;
  width: 2px; height: 8px;
  background: var(--c1);
  border-radius: 1px;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--c1);
}
.pos-kpi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 4px;
}
.pos-kpi-meta {
  font-size: 9px;
  color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
}

@media (max-width: 980px) {
  .hero-strip { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .grid-2 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .status-strip { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
}

/* Position regime tag */
.pos-regime { font-size: 10px; opacity: .6; font-style: italic; }
