/**
 * ALEPH // ORACLE — Cyber-Terminal Design System & Stylesheet
 * High-Craft Institutional Dark Theme, Micro-Interactions & CRT Scanlines
 */

:root {
  --bg: #050817;
  --bg-alt: #070b1e;
  --panel: #090d1c;
  --panel-card: #0d1226;
  --line: rgba(148, 163, 184, 0.14);
  --line-bright: rgba(56, 189, 248, 0.35);
  
  --txt: #f8fafc;
  --txt-2: #94a3b8;
  --txt-3: #64748b;
  
  --cyan: #06b6d4;
  --cyan-bright: #38bdf8;
  --emerald: #10b981;
  --rose: #ef4444;
  --amber: #f59e0b;
  --purple: #c084fc;
  
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 8px;
}

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

body {
  background-color: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
}

.text-cyan { color: var(--cyan-bright); }
.text-emerald { color: var(--emerald); }
.text-rose { color: var(--rose); }
.text-amber { color: var(--amber); }

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--cyan-bright);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.brand-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--txt-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  color: var(--txt-3);
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-toggle-btn.active {
  background: var(--cyan);
  color: #fff;
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
  border: none;
  padding: 7px 16px;
  font-size: 12.5px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Hero Section with Dual ASCII Layout */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 64px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Hero ASCII Perspective Background */
.hero-ascii-bg-wrap {
  position: absolute;
  top: 0;
  left: -24px;
  right: -24px;
  bottom: 0;
  width: calc(100% + 48px);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.hero-ascii-bg-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan-bright);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 18px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 16px;
  color: var(--txt-2);
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--txt);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--txt-2);
  background: rgba(148, 163, 184, 0.18);
}

/* Radar Telemetry Card */
.telemetry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.telemetry-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-bright);
}

.radar-canvas-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(5, 8, 23, 0.8) 100%);
  border-radius: 4px;
}

.radar-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.r-cell {
  background: var(--panel-card);
  padding: 8px;
  border-radius: 4px;
}

.r-lbl {
  font-size: 9.5px;
  color: var(--txt-3);
  display: block;
}

.r-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
}

/* Section Common */
.section-wrap {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 32px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--txt-2);
  font-size: 14.5px;
}

/* Debrief Feed Card */
.debrief-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  margin-bottom: 24px;
}

/* Dispatches Feed Issue Badge Strip */
.dispatch-badge-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.dispatch-issue-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.epoch-tag {
  padding: 3px 8px;
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--txt-2);
}

/* ASCII Audio Equalizer */
.ascii-eq-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 6px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.ascii-eq-line {
  color: var(--purple);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
}

.debrief-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--txt-3);
  margin-bottom: 12px;
}

.regime-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.regime-tag.trend_bull {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.debrief-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.debrief-summary {
  font-size: 15px;
  color: var(--txt-2);
  margin-bottom: 24px;
}

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

.m-card {
  background: var(--panel-card);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.m-lbl {
  font-size: 10.5px;
  color: var(--txt-3);
  display: block;
  margin-bottom: 4px;
}

.m-val {
  font-size: 18px;
  font-weight: 800;
}

.debrief-media-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.media-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-btn {
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--purple);
}

.audio-btn:hover {
  background: rgba(192, 132, 252, 0.25);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.3);
}

.shorts-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
}

.shorts-btn:hover {
  background: rgba(245, 158, 11, 0.24);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.active-playing {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--emerald) !important;
  color: var(--emerald) !important;
  animation: pulsePlay 1.6s infinite ease-in-out;
}

@keyframes pulsePlay {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.view-map-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-bright);
}

.view-map-btn:hover {
  background: rgba(56, 189, 248, 0.22);
}

.debrief-body {
  color: var(--txt-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.debrief-body .subhead {
  color: var(--txt);
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px 0;
}

.debrief-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.debrief-body li {
  margin-bottom: 6px;
}

/* Delayed Liquidation Edge Snapshot Viewer */
.edge-preview-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}

.edge-banner-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(5, 8, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  border-radius: 4px;
}

.edge-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05);
}

/* Modal for Zoomed Map */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 16px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--rose);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
  z-index: 10;
}

/* Investor Cabinet Section & Components */
.cabinet-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.cabinet-sidebar {
  background: var(--panel-card);
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--txt-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cabinet-nav-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--txt);
}

.cabinet-nav-btn.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.cabinet-main-area {
  padding: 32px;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.view-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.view-sub {
  color: var(--txt-3);
  font-size: 13px;
  margin-top: 4px;
}

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

.t-cell {
  background: var(--panel-card);
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.t-lbl {
  font-size: 10.5px;
  color: var(--txt-3);
  display: block;
  margin-bottom: 4px;
}

.t-val {
  font-size: 17px;
  font-weight: 800;
}

.pnl-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-radius: 6px;
}

.pnl-banner.pnl-profit {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pnl-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--emerald);
}

.fuel-meter-box {
  background: var(--panel-card);
  padding: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.fuel-bar-wrap {
  width: 100%;
  height: 12px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  margin: 14px 0;
  overflow: hidden;
}

.fuel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  border-radius: 6px;
}

.fuel-explainer {
  color: var(--txt-3);
  font-size: 13px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--txt-3);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .cabinet-wrap {
    grid-template-columns: 1fr;
  }
  .debrief-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================================
   FEED TABS, ASCII TABLES & EDITORIAL STYLING
   ============================================================================ */

.feed-tabs-header {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.feed-tab-btn {
  background: var(--panel-card);
  color: var(--txt-2);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.feed-tab-btn:hover {
  color: var(--txt);
  border-color: var(--line-bright);
}

.feed-tab-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.epoch-tag {
  background: rgba(192, 132, 252, 0.15);
  color: var(--purple);
  border: 1px solid rgba(192, 132, 252, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.debrief-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan-bright);
  margin: 22px 0 10px 0;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.debrief-p {
  color: var(--txt-2);
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 14px;
}

.debrief-bullet {
  color: var(--txt);
  padding-left: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 13.5px;
  position: relative;
}

.debrief-divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 24px 0;
}

.debrief-ascii-table {
  background: #020308;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan-bright);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8);
}

.quiz-cta-box {
  margin: 24px 0 12px 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(192, 132, 252, 0.08) 100%);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
}

/* ============================================================================
   SYSTEM COMPUTATIONAL HEARTBEAT CARD
   ============================================================================ */

.heartbeat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.heartbeat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.heartbeat-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-bright);
}

.heartbeat-canvas-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  background: #050817;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.heartbeat-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.h-cell {
  background: var(--panel-card);
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.h-lbl {
  font-size: 9.5px;
  color: var(--txt-3);
  display: block;
  font-family: var(--mono);
}

.h-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  font-family: var(--mono);
}

/* ============================================================================
   INSTITUTIONAL MODEL GRID & PORTAL CALLOUT
   ============================================================================ */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}

.model-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: inline-block;
}

.model-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 8px;
}

.model-card-desc {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.6;
}

.portal-callout-card {
  background: linear-gradient(135deg, rgba(7, 11, 30, 0.95) 0%, rgba(13, 18, 38, 0.95) 100%);
  border: 1px solid var(--cyan-bright);
  border-radius: 12px;
  padding: 36px 32px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.15);
}

.portal-callout-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(4, 7, 17, 0.6);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.portal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt);
  font-family: var(--mono);
}

/* ============================================================================
   STANDALONE FULLSCREEN INVESTOR PORTAL (portal.html)
   ============================================================================ */

.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-meta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-selector {
  background: var(--panel-card);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}

.fuel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-family: var(--mono);
  font-weight: 600;
}

.portal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}


/* ============================================================================
   REALTIME LIQUIDATION TAPE (SUB-HEADER TICKER)
   ============================================================================ */

.tape-container {
  background: #030614;
  border-bottom: 1px solid var(--line);
  height: 38px;
  overflow: hidden;
  position: relative;
  z-index: 90;
}

.tape-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.tape-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #05081a;
  border-right: 1px solid var(--line);
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-bright);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
}

.tape-track-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent 100%);
}

.tape-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: tapeScroll 35s linear infinite;
  will-change: transform;
}

.tape-track:hover {
  animation-play-state: paused;
}

@keyframes tapeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.tape-time {
  color: var(--txt-3);
  font-size: 10.5px;
  font-family: var(--mono);
}

.tape-venue {
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.tape-badge {
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.tape-tag-long {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.tape-tag-short {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tape-size {
  font-weight: 700;
}

.tape-price {
  color: var(--amber);
  font-size: 11.5px;
}
