/**
 * BITSS Client Portal — Crypto Modules & 3D Interactive Terminal Styles
 * Location: /assets/css/crypto.css
 */

/* 3D Flip Card Perspective & Preserves */
.perspective-1000 {
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.flip-card-container:hover .flip-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1.25rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Solvency Alert Banners */
.alert-banner-critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  border-radius: 12px;
  padding: 12px 16px;
  color: #EF4444;
  font-weight: 600;
  font-size: 0.85rem;
  animation: pulse-red 2s infinite;
}

.alert-banner-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid #F59E0B;
  border-radius: 12px;
  padding: 12px 16px;
  color: #D97706;
  font-weight: 600;
  font-size: 0.85rem;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Whale Detection Layer */
.whale-row {
  background: rgba(124, 58, 237, 0.08) !important;
}

.whale-row td:first-child {
  border-left: 3px solid #7C3AED;
}

.whale-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

.trade-pill-whale {
  font-size: 0.65rem;
  font-weight: 800;
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
}

/* ========================================================= */
/* BITSS L2 ORDER BOOK — MODERN HIGH-CONTRAST UI REDESIGN     */
/* ========================================================= */

/* ── FIX 1: Executive Hub Grid ─────────────────────────── */
.ob-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 1024px) {
  .ob-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ob-cards-grid { grid-template-columns: 1fr; }
}

.ob-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ob-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.ob-card--inflow {
  border-top: 3px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, #ffffff 65%) !important;
}
.ob-card--outflow {
  border-top: 3px solid #EF4444 !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, #ffffff 65%) !important;
}
.ob-card--surplus {
  border-top: 3px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 65%) !important;
}
.ob-card--deficit {
  border-top: 3px solid #EF4444 !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, #ffffff 65%) !important;
}
.ob-card--solvency,
.ob-card--absorption {
  border-top: 3px solid #6366F1 !important;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, #ffffff 65%) !important;
}

/* Label row */
.ob-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ob-card__dot--green { background: #10B981; box-shadow: 0 0 6px #10B98188; }
.ob-card__dot--red   { background: #EF4444; box-shadow: 0 0 6px #EF444488; }
.ob-card__arrow {
  color: #059669;
  font-weight: 900;
  margin-left: 2px;
}
.ob-card__arrow--down {
  color: #DC2626;
}

/* Main value */
.ob-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
  margin: 4px 0 2px;
  font-family: "JetBrains Mono", monospace;
}
.ob-card__value--red   { color: #DC2626; }
.ob-card__value--green { color: #059669; }
.ob-card__value--net {
  font-size: 2.05rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

/* Sub text */
.ob-card__sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 8px;
}

/* Row items */
.ob-card__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.ob-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
  padding: 4px 0;
  border-top: 1px solid #f1f5f9;
}
.ob-card__row-val {
  font-weight: 700;
  color: #1e293b;
  font-family: "JetBrains Mono", monospace;
}
.ob-card__row-val--green { color: #059669; }
.ob-card__row-val--red   { color: #DC2626; }

/* Status pill */
.ob-card__status-pill {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}
.pill--surplus { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.pill--deficit { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Coverage number — BIG */
.ob-card__coverage {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
}
.ob-card__coverage-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: "JetBrains Mono", monospace;
}
.coverage--healthy { color: #059669; }
.coverage--warn    { color: #d97706; }
.coverage--crit    { color: #dc2626; }
.ob-card__coverage-label { font-size: 0.68rem; color: #64748b; }

/* Mini bar */
.ob-card__mini-bar-wrap {
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 8px;
}
.ob-card__mini-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.mini-bar--green { background: linear-gradient(90deg, #10b981, #059669); }
.mini-bar--amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
.mini-bar--red   { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Slippage */
.ob-card__slippage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.ob-card__slippage-label { font-size: 0.62rem; letter-spacing: 0.07em; color: #64748b; text-transform: uppercase; font-weight: 700; }
.ob-card__slippage-val   { font-size: 0.85rem; font-weight: 700; font-family: "JetBrains Mono", monospace; color: #1e293b; }

/* Penalties */
.ob-card__penalties { display: flex; flex-direction: column; gap: 2px; }
.ob-card__penalties span { font-size: 0.65rem; font-family: "JetBrains Mono", monospace; }
.penalty--neg { color: #dc2626; font-weight: 600; }
.penalty--pos { color: #059669; font-weight: 600; }
.penalty--neu { color: #64748b; }

/* Backed badge */
.ob-card__backed {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: #CA212D;
  background: rgba(202, 33, 45, 0.08);
  border: 1px solid rgba(202, 33, 45, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── FIX 2: Solvency Score History Chart ────────────────── */
.solvency-chart-section {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.solvency-chart__header, .solvency-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.solvency-chart__title, .solvency-chart-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #475569;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.solvency-chart__title-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B98188;
}
.solvency-chart__live-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #15803d;
  letter-spacing: 0.08em;
}
.solvency-chart__score-block, .solvency-chart-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.solvency-chart__score-num, .solvency-score-num {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  font-family: "JetBrains Mono", monospace;
}
.solvency-chart__score-denom {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
}
.score--healthy { color: #059669; }
.score--stress, .score--warn { color: #d97706; }
.score--risk, .score--crit   { color: #dc2626; }

.solvency-chart__legend, .solvency-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  color: #64748b;
  font-family: "JetBrains Mono", monospace;
}
.solvency-chart__legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.swatch--healthy { background: #10B981; }
.swatch--stress  { background: #F59E0B; }
.swatch--risk    { background: #EF4444; }

/* Compact responsive SVG wrap - 60px height */
.solvency-chart__svg-wrap, .solvency-chart-wrap {
  position: relative !important;
  height: 60px !important;
  margin: 6px 0 6px 30px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.solvency-chart__svg, .solvency-svg {
  width: 100% !important;
  height: 100% !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  display: block !important;
}
.solvency-chart__y-labels, .solvency-chart-y-labels {
  position: absolute !important;
  left: -28px !important;
  top: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  font-size: 0.58rem !important;
  font-family: "JetBrains Mono", monospace !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}
.y-label { line-height: 1; }

.solvency-chart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  color: #64748b;
}
.solvency-chart__stable-time {
  display: flex;
  align-items: center;
  gap: 5px;
}
.stable-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}
.stress--recent { color: #d97706; font-weight: 700; }
.stress--older  { color: #059669; }
.solvency-chart__no-stress { color: #059669; }

/* ── FIX 3: CRITICAL & WARNING Alert Banners ─────────────── */
.ob-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px !important;
  border-radius: 12px;
  margin: 10px 0 !important;
  border-left: 4px solid transparent;
}
.ob-alert--critical {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #dc2626 !important;
  color: #991b1b !important;
  animation: alert-pulse 3s ease-in-out infinite;
}
.ob-alert--warning {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-left: 4px solid #d97706 !important;
  color: #92400e !important;
}
.ob-alert__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-alert__icon-wrap--critical {
  background: #fee2e2;
  color: #dc2626;
}
.ob-alert__icon-wrap--warning {
  background: #fef3c7;
  color: #d97706;
}
.ob-alert__content { flex: 1; }
.ob-alert__title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.ob-alert--critical .ob-alert__title { color: #991b1b !important; }
.ob-alert--warning  .ob-alert__title { color: #92400e !important; }
.ob-alert__desc {
  font-size: 0.72rem;
  line-height: 1.45;
}
.ob-alert--critical .ob-alert__desc { color: #b91c1c !important; }
.ob-alert--warning  .ob-alert__desc { color: #b45309 !important; }
.ob-alert__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: center;
}
.ob-alert__badge--critical {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.ob-alert__badge--warning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
}
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); }
}

/* ── FIX 4: Capital Equilibrium Bar ─────────────────────── */
.ob-equil {
  margin: 14px 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ob-equil__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: gap;
}
.ob-equil__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #475569;
  font-family: "JetBrains Mono", monospace;
}
.ob-equil__label strong { color: #0f172a; font-size: 0.85rem; }
.ob-equil__label--out { justify-content: flex-end; }
.ob-equil__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ob-equil__usd { font-size: 0.68rem; color: #64748b; }
.ob-equil__track {
  height: 10px;
  border-radius: 5px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
}
.ob-equil__fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ob-equil__fill--in  { background: linear-gradient(90deg, #10B981, #059669); border-radius: 5px 0 0 5px; }
.ob-equil__fill--out { background: linear-gradient(90deg, #DC2626, #EF4444); border-radius: 0 5px 5px 0; }
.ob-equil__verdict {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── FIX 5: Order Book Tables ───────────────────────────── */
.ob-table-section {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ob-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ob-table-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-table-total {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}
.ob-table-total--bid { color: #059669; }
.ob-table-total--ask { color: #dc2626; }

.ob-table { width: 100%; border-collapse: collapse; }
.ob-table thead th {
  padding: 8px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ob-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  position: relative;
}
.ob-table tbody tr:hover { background: #f8fafc; }

.ob-table tbody tr.bid-row {
  background: linear-gradient(
    to left,
    rgba(16, 185, 129, 0.08) var(--depth-pct, 0%),
    transparent var(--depth-pct, 0%)
  );
}
.ob-table tbody tr.ask-row {
  background: linear-gradient(
    to right,
    rgba(239, 68, 68, 0.08) var(--depth-pct, 0%),
    transparent var(--depth-pct, 0%)
  );
}
.ob-table td {
  padding: 6px 10px;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
}
.bid-price { color: #059669; font-weight: 700; }
.ask-price { color: #dc2626; font-weight: 700; }

@keyframes row-flash-bid {
  0%   { background: rgba(16, 185, 129, 0.2); }
  100% { background: transparent; }
}
@keyframes row-flash-ask {
  0%   { background: rgba(239, 68, 68, 0.2); }
  100% { background: transparent; }
}
.flash-bid { animation: row-flash-bid 0.6s ease-out; }
.flash-ask { animation: row-flash-ask 0.6s ease-out; }

.ob-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
}
.ob-connecting__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #CA212D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ── FIX 6: Market Trades Panel ─────────────────────────── */
.trades-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.trades-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.trades-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B98188;
  animation: live-blink 2s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.trades-net-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.trades-net-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.trades-net-val   { font-size: 1rem; font-weight: 800; font-family: "JetBrains Mono", monospace; }
.trades-net-val--pos { color: #059669; }
.trades-net-val--neg { color: #dc2626; }

.trade-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  transition: background 0.1s;
}
.trade-row:hover { background: #f8fafc; }
.trade-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.trade-pill--buy  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.trade-pill--sell { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.trade-price { color: #1e293b; flex: 1; text-align: right; }
.trade-usd   { color: #64748b; min-width: 70px; text-align: right; font-weight: 600; }
.trade-time  { color: #94a3b8; font-size: 0.65rem; min-width: 50px; text-align: right; }

.trades-awaiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
}
.trades-awaiting__icon {
  width: 28px;
  height: 28px;
  border: 2px solid #e2e8f0;
  border-top-color: #CA212D;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

/* ── FIX 7: Token Hero Banner Refinement ────────────────── */
.ob-hero {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ob-hero__left { display: flex; flex-direction: column; gap: 6px; }
.ob-hero__symbol {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ob-hero__exchange-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  letter-spacing: 0.05em;
}
.ob-hero__price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
}
.ob-hero__change {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.ob-hero__change--pos { background: #dcfce7; color: #15803d; }
.ob-hero__change--neg { background: #fee2e2; color: #b91c1c; }

.ob-hero__stats { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ob-hero__stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ob-hero__stat-label { font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; font-weight: 700; }
.ob-hero__stat-val   { font-size: 0.92rem; font-weight: 700; font-family: "JetBrains Mono", monospace; color: #0f172a; }

/* Stream Status & Latency Badges (Phase 2) */
.stream-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.status--valid {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.status--stale {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.status--resyncing {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.status--invalid {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.status--disconnected {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

/* Depth Bands Scope Selector (Phase 3) */
.depth-band-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.depth-band-btn {
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.depth-band-btn:hover {
  color: #0f172a;
}
.depth-band-btn.active {
  background: #ffffff;
  color: #CA212D;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.scope-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Holder Sell-Absorption Interactive Module (Phase 4) */
.absorption-deck {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.impact-selector-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.impact-selector-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
.impact-selector-btn.active {
  background: #CA212D;
  border-color: #CA212D;
  color: #ffffff;
}

/* ========================================================= */
/* UNIFIED BI-LATERAL CAPITAL FLOW LEDGER (NON-CARD DESIGN)   */
/* ========================================================= */
.ob-cockpit-ledger {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.ob-cockpit-ledger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981 0%, #10B981 40%, #6366F1 50%, #EF4444 60%, #EF4444 100%);
}
.ob-ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}
.ob-ledger-side {
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.ob-ledger-side--inflow {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.ob-ledger-side--outflow {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.ob-ledger-center {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}



