/* -------------------------------------------------------------------------- */
/*  HYPERLIQ v2.0 – ARKHAM-STYLE DASHBOARD                                   */
/* -------------------------------------------------------------------------- */

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

:root {
  --bg-main: #0a0a0f;
  --bg-panel: #12121a;
  --bg-panel-deep: #0d0d14;
  --bg-table: #0f0f16;
  --border: #1f1f2e;
  --border-light: #2a2a3a;
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c0;
  --text-muted: #70707a;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --positive: #10b981;
  --negative: #ef4444;
  --warning: #f59e0b;
  --mega-whale: #10b981;
  --badge: #14141c;
  --chip-bg: #18182a;
  --scrollbar: #24243a;
  --table-hover: rgba(30, 40, 60, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --gradient-bullish: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(16, 185, 129, 0.05)
  );
  --gradient-bearish: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(239, 68, 68, 0.05)
  );
  --gradient-neutral: linear-gradient(
    135deg,
    rgba(100, 100, 120, 0.1),
    rgba(100, 100, 120, 0.03)
  );
  --font: "Inter", "SF Pro Display", "Manrope", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 12px;
  line-height: 1.25;
}

.layout {
  max-width: 1880px;
  margin: 0 auto;
  padding: 0 24px 36px;
}

/* -------------------------------------------------------------------------- */
/*  TOP BAR                                                                   */
/* -------------------------------------------------------------------------- */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.98),
    rgba(10, 10, 15, 0.95)
  );
  border-bottom: 2px solid var(--accent);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.08);
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.brand-copy h1 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  margin-bottom: 2px;
}

.pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 100px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.pill span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill strong {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: var(--text-primary);
}

.pill.price-pill strong {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.pill strong.price-up {
  color: var(--positive);
}

.pill strong.price-down {
  color: var(--negative);
}

/* Brain Dashboard Link Pill */
.pill.brain-pill {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: brain-glow 2s ease-in-out infinite;
}

.pill.brain-pill:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(168, 85, 247, 0.25));
  border-color: rgba(0, 212, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.pill.brain-pill span {
  color: var(--accent);
  font-weight: 600;
}

.pill.brain-pill strong {
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

@keyframes brain-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); }
}

/* -------------------------------------------------------------------------- */
/*  GRID + PANELS                                                             */
/* -------------------------------------------------------------------------- */

.dashboard {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-heading {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  font-size: 14px;
  margin-bottom: 2px;
}

.panel-heading p {
  font-size: 11px;
  color: var(--text-muted);
}

.panel-toolbar,
.chip,
.chip-group,
.filter {
  display: none;
}

.chip.live-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--positive);
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.3);
  }
}

/* -------------------------------------------------------------------------- */
/*  DERIVATIVES PANEL                                                         */
/* -------------------------------------------------------------------------- */

.derivatives-panel {
  padding-bottom: 16px;
}

.rekt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 8px;
}

.live-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 6px 18px 4px;
}

.live-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-panel-deep);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.live-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.8fr;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 14, 24, 0.85);
  font-size: 11px;
}

.live-row strong {
  font-size: 12px;
}

.live-row small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.live-row .positive {
  color: var(--positive);
}

.live-row .negative {
  color: var(--negative);
}

.trader-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.trader-meta-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 10, 20, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.trader-meta-card.positive strong {
  color: var(--positive);
}

.trader-meta-card.negative strong {
  color: var(--negative);
}

.trader-meta-card strong {
  font-size: 14px;
}

.ratio-delta {
  font-size: 10px;
  opacity: 0.75;
}

.rekt-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(
      circle at 20% 0%,
      rgba(0, 212, 255, 0.18),
      transparent 60%
    ),
    rgba(10, 15, 30, 0.9);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rekt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(
      140deg,
      rgba(0, 212, 255, 0.3),
      rgba(16, 185, 129, 0.1)
    )
    border-box;
  mask: linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.2;
  pointer-events: none;
}

.rekt-card.negative {
  background: radial-gradient(
      circle at 20% 0%,
      rgba(239, 68, 68, 0.16),
      transparent 60%
    ),
    rgba(10, 10, 20, 0.95);
}

.rekt-card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  transform: translateY(-4px);
}

.rekt-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rekt-total {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.rekt-split {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rekt-split div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rekt-split span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rekt-split strong {
  font-size: 14px;
  color: var(--text-primary);
}

.deriv-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 8px 18px 16px;
}

@media (max-width: 1400px) {
  .deriv-body {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 1200px) {
  .rekt-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .deriv-flow-values,
  .exchange-info,
  .trader-columns {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.deriv-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-panel-deep);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.section-head h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.section-head p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-head.mini-head h3 {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.section-head.mini-head p {
  font-size: 10px;
  color: var(--text-secondary);
}

.section-pill {
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.deriv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.deriv-flow-row,
.deriv-exchange-row,
.deriv-trader-row {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(8, 10, 20, 0.92);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deriv-flow-row:hover,
.deriv-exchange-row:hover,
.deriv-trader-row:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.deriv-flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-interval {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.flow-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.flow-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-chip.positive {
  color: var(--positive);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.flow-chip.negative {
  color: var(--negative);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.flow-bars-track {
  display: flex;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.flow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.flow-bar.long {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.9),
    rgba(16, 185, 129, 0.5)
  );
}

.flow-bar.short {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.6),
    rgba(239, 68, 68, 0.9)
  );
}

.deriv-flow-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.deriv-flow-values small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.deriv-flow-values strong {
  font-size: 12px;
}

.deriv-exchange-row {
  gap: 10px;
}

.exchange-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  overflow: hidden;
}

.exchange-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exchange-name {
  font-size: 13px;
  font-weight: 600;
}

.exchange-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.exchange-meter {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.exchange-meter .long {
  background: rgba(16, 185, 129, 0.8);
}

.exchange-meter .short {
  background: rgba(239, 68, 68, 0.8);
}

.exchange-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exchange-info small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.exchange-info strong {
  font-size: 13px;
}

.deriv-trader-row {
  gap: 10px;
}

.trader-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trader-name {
  font-size: 13px;
  font-weight: 600;
}

.trader-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.trader-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trader-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ratio-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ratio-track {
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.ratio-bar.long {
  background: rgba(16, 185, 129, 0.9);
}

.ratio-bar.short {
  background: rgba(239, 68, 68, 0.85);
}

.ratio-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.bias-chip {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bias-chip.positive {
  color: var(--positive);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.bias-chip.negative {
  color: var(--negative);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.deriv-list::-webkit-scrollbar {
  width: 4px;
}

.deriv-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
}

.deriv-body.deriv-extended {
  padding-top: 0;
}

.price-summary-grid,
.stat-pill-grid,
.coverage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.price-summary-card,
.stat-pill {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  background: rgba(12, 14, 24, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.price-summary-card strong,
.stat-pill strong {
  font-size: 14px;
}

.price-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.price-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 8, 18, 0.9);
  font-size: 11px;
}

.price-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-meta strong {
  font-size: 14px;
}

.price-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.price-volume {
  font-size: 12px;
  color: var(--text-secondary);
}

.change-chip {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.change-chip.positive {
  color: var(--positive);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.change-chip.negative {
  color: var(--negative);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.oi-row {
  display: grid;
  grid-template-columns: 0.9fr 0.6fr 0.6fr 0.6fr;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 8, 18, 0.92);
  font-size: 11px;
}

.oi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oi-meta strong {
  font-size: 13px;
}

.oi-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oi-change {
  font-size: 11px;
  font-weight: 600;
}

.oi-change.positive {
  color: var(--positive);
}

.oi-change.negative {
  color: var(--negative);
}

.coverage-pairs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 12, 20, 0.9);
  font-size: 11px;
}

.pair-row strong {
  font-size: 13px;
}

.coverage-coins {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coverage-coins-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.coverage-coins h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.coin-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

/* Enhanced rows */
.flow-row,
.exchange-row {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px;
  background: rgba(10, 12, 20, 0.9);
  display: grid;
  gap: 12px;
}

.flow-row {
  grid-template-columns: 120px 1fr 220px;
  align-items: center;
}

.flow-row .flow-meta strong {
  font-size: 13px;
}

.flow-bars {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
}

.flow-bars .long,
.flow-bars .short {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.flow-bars .long {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.8),
    rgba(16, 185, 129, 0.3)
  );
}

.flow-bars .short {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.8),
    rgba(239, 68, 68, 0.3)
  );
}

.flow-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: right;
}

.flow-stats small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.flow-stats strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.exchange-row {
  grid-template-columns: 220px 1fr 200px;
  align-items: center;
}

.exchange-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exchange-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.exchange-meta strong {
  display: block;
  font-size: 13px;
}

.exchange-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.exchange-bar {
  display: flex;
  height: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.04);
}

.exchange-bar .long,
.exchange-bar .short {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.exchange-bar .long {
  background: rgba(16, 185, 129, 0.75);
}

.exchange-bar .short {
  background: rgba(239, 68, 68, 0.7);
}

.exchange-stats {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.exchange-stats small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.exchange-stats strong {
  font-size: 13px;
}

.deriv-empty {
  padding: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* Total Liquidations (Time-based) */
.liq-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 20, 0.6),
    rgba(15, 15, 25, 0.4)
  );
}

.liq-time-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel-deep);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.liq-time-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.liq-time-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.liq-time-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.liq-time-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.liq-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.liq-time-row span {
  color: var(--text-secondary);
  font-size: 11px;
}

.liq-time-row strong {
  font-weight: 600;
}

/* Flow Row (Interval) */
.flow-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 0.7fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.7);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.flow-row:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.flow-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-meta strong {
  font-size: 13px;
  color: var(--accent);
}

.flow-meta span {
  font-size: 10px;
  color: var(--text-muted);
}

.flow-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-bar-container {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.flow-bar.long {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.8),
    rgba(16, 185, 129, 0.5)
  );
}

.flow-bar.short {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.5),
    rgba(239, 68, 68, 0.8)
  );
}

.flow-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.flow-net {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

/* Exchange Row */
.exchange-row {
  display: grid;
  grid-template-columns: 0.8fr 2.5fr 0.5fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.7);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.exchange-row:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.exchange-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exchange-meta strong {
  font-size: 13px;
  color: var(--text-primary);
}

.exchange-interval {
  font-size: 10px;
  color: var(--text-muted);
}

.exchange-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exchange-bar-wrap {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.exchange-bar.long {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.9),
    rgba(16, 185, 129, 0.6)
  );
}

.exchange-bar.short {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.6),
    rgba(239, 68, 68, 0.9)
  );
}

.exchange-stats {
  display: flex;
  justify-content: space-between;
}

.exchange-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 10px;
}

.stat-val {
  font-weight: 600;
}

.exchange-pct {
  text-align: right;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

/* Trader Row */
.trader-row {
  display: grid;
  grid-template-columns: 0.8fr 2.5fr 0.5fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.7);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.trader-row:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.trader-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trader-meta strong {
  font-size: 13px;
  color: var(--text-primary);
}

.trader-meta span {
  font-size: 10px;
  color: var(--text-muted);
}

.trader-ratios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trader-ratio-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ratio-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ratio-bar-wrap {
  display: flex;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.ratio-bar.long {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.9),
    rgba(16, 185, 129, 0.7)
  );
}

.ratio-bar.short {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.7),
    rgba(239, 68, 68, 0.9)
  );
}

.ratio-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.trader-bias {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid;
}

.trader-bias.positive {
  color: var(--positive);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.trader-bias.negative {
  color: var(--negative);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

/* -------------------------------------------------------------------------- */
/*  ON-CHAIN LIST                                                             */
/* -------------------------------------------------------------------------- */

.flow-table,
.intel-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  overflow-y: auto;
  max-height: 480px;
}

.flow-table .loading,
.intel-list .loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

.flow-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px 140px 70px;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  height: 42px;
  font-size: 12px;
}

.flow-row:nth-child(odd) {
  background: rgba(2, 6, 23, 0.35);
}

.flow-row.bullish {
  border-left: 3px solid rgba(16, 185, 129, 0.6);
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.05) 0%,
    transparent 100%
  );
}

.flow-row.bearish {
  border-left: 3px solid rgba(239, 68, 68, 0.6);
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.05) 0%,
    transparent 100%
  );
}

.flow-row.neutral {
  border-left: 3px solid var(--border);
}

.flow-row.mega-bullish {
  border-left: 4px solid rgba(16, 185, 129, 0.9);
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.12) 0%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.flow-row.mega-bearish {
  border-left: 4px solid rgba(239, 68, 68, 0.9);
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.12) 0%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.flow-row.mega-neutral {
  border-left: 4px solid rgba(148, 163, 184, 0.8);
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.08) 0%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.15);
}

.flow-time {
  display: flex;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
}

.flow-entities {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.flow-arrow {
  color: var(--text-muted);
}

.entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border);
  font-size: 11px;
}

.entity-badge img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
}

.token-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
}

.entity-name {
  color: var(--text-primary);
  font-weight: 500;
}

.entity-type {
  display: none;
}

.flow-asset {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
}

.token-chip img.token-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
}

.token-chip img.chain-logo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: contain;
  opacity: 0.7;
  margin-left: 2px;
}

.flow-value {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.flow-value.mega-whale {
  color: var(--mega-whale);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  font-size: 14px;
}

.flow-value.mega-whale-bearish {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  font-size: 14px;
  font-weight: 800;
}

.flow-actions a {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*  MARKET INTELLIGENCE                                                       */
/* -------------------------------------------------------------------------- */

.intel-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 50px;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  min-height: 55px;
  align-items: flex-start;
  font-size: 12px;
  transition: background 0.2s ease;
}

.intel-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.intel-row:nth-child(odd) {
  background: rgba(2, 6, 23, 0.25);
}

.intel-time {
  color: var(--text-secondary);
  font-size: 11px;
  display: flex;
  gap: 6px;
}

.intel-body {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.intel-meta {
  display: inline-flex;
  gap: 4px;
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.intel-meta .meta-chip {
  font-weight: 600;
}

.intel-meta .meta-chip:first-child {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.intel-meta .meta-chip:nth-child(2) {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a78bfa;
}

.intel-meta .meta-chip.polarity-bullish {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.intel-meta .meta-chip.polarity-bearish {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.intel-text {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.severity-pill {
  display: none;
}

.intel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 14px;
}

.intel-actions a:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.1);
}

.meta-chip {
  padding: 1px 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*  OVERVIEW CARDS                                                            */
/* -------------------------------------------------------------------------- */

.overview-panel,
.data-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.overview-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Eşit genişlik */
  gap: 20px;
}

.overview-left {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.overview-right {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-panel-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.status-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.status-item.healthy {
  border-left: 3px solid var(--positive);
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.08) 0%,
    var(--bg-panel-deep) 100%
  );
}

.status-item.warning {
  border-left: 3px solid var(--warning);
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.08) 0%,
    var(--bg-panel-deep) 100%
  );
}

.status-item.critical {
  border-left: 3px solid var(--negative);
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.08) 0%,
    var(--bg-panel-deep) 100%
  );
}

.status-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.status-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.status-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.sparkline-section {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.sparkline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sparkline-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sparkline {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.spark-bar {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.6),
    rgba(0, 212, 255, 0.1)
  );
  border-radius: 3px;
  min-height: 4px;
  transition: all 0.2s ease;
}

.spark-bar.warn {
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.7),
    rgba(245, 158, 11, 0.1)
  );
}

.spark-bar.danger {
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.8),
    rgba(239, 68, 68, 0.1)
  );
}

.sparkline-empty {
  font-size: 11px;
  color: var(--text-muted);
}

.section-heading {
  margin-bottom: 8px;
}

.section-heading h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overview-grid-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.overview-card {
  background: var(--bg-panel-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.overview-card.missing-data {
  opacity: 0.5;
  border-style: dashed;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.overview-card.bullish::before {
  background: var(--gradient-bullish);
}

.overview-card.bearish::before {
  background: var(--gradient-bearish);
}

.overview-card.neutral::before {
  background: var(--gradient-neutral);
}

.overview-card > * {
  position: relative;
  z-index: 1;
}

.overview-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.overview-card.bullish {
  border-top: 2px solid var(--positive);
}

.overview-card.bearish {
  border-top: 2px solid var(--negative);
}

.overview-card.neutral {
  border-top: 2px solid var(--text-muted);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tf {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.trend-badge {
  font-size: 14px;
  line-height: 1;
}

.trend-badge.bullish {
  color: var(--positive);
}

.trend-badge.bearish {
  color: var(--negative);
}

.trend-badge.neutral {
  color: var(--text-muted);
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  letter-spacing: -0.02em;
}

.card-signal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.card-signal.signal-buy {
  background: rgba(16, 185, 129, 0.15);
  color: var(--positive);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-signal.signal-buy .signal-dot {
  background: var(--positive);
  box-shadow: 0 0 8px var(--positive);
}

.card-signal.signal-buy-mild {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-signal.signal-buy-mild .signal-dot {
  background: #34d399;
}

.card-signal.signal-sell {
  background: rgba(239, 68, 68, 0.15);
  color: var(--negative);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-signal.signal-sell .signal-dot {
  background: var(--negative);
  box-shadow: 0 0 8px var(--negative);
}

.card-signal.signal-sell-mild {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-signal.signal-sell-mild .signal-dot {
  background: #f87171;
}

.card-signal.signal-neutral {
  background: rgba(100, 100, 120, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(100, 100, 120, 0.2);
}

.card-signal.signal-neutral .signal-dot {
  background: var(--text-muted);
}

.card-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
}

.metric {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  align-items: center;
}

.metric-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
}

.metric-value {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.metric-value.high {
  color: var(--negative);
  background: rgba(239, 68, 68, 0.1);
}

.metric-value.medium {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.metric-value.low {
  color: var(--text-secondary);
  background: rgba(176, 176, 192, 0.1);
}

.metric-value.hot {
  color: var(--negative);
  background: rgba(239, 68, 68, 0.15);
}

.metric-value.cold {
  color: var(--positive);
  background: rgba(16, 185, 129, 0.15);
}

.metric-value.neutral {
  color: var(--text-secondary);
  background: rgba(100, 100, 120, 0.08);
}

.metric-value.momentum-high {
  color: var(--positive);
  background: rgba(16, 185, 129, 0.15);
  font-weight: 800;
}

.metric-value.momentum-medium {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.metric-value.momentum-low {
  color: var(--negative);
  background: rgba(239, 68, 68, 0.1);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*  TIMEFRAME TABS                                                            */
/* -------------------------------------------------------------------------- */

.timeframe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.timeframe-btn {
  flex: 1;
  min-width: 70px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 0;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.timeframe-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/*  DATA TABLE                                                                */
/* -------------------------------------------------------------------------- */

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

.table-header h2 {
  font-size: 14px;
  margin-bottom: 2px;
}

.table-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-sentinel {
  text-align: center;
  padding: 10px 8px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 900px;
}

thead {
  background: #0a1324;
}

th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-muted);
}

tbody tr {
  border-bottom: 1px solid #0d1424;
}

tbody tr:hover {
  background: var(--table-hover);
}

td {
  padding: 7px 10px;
  color: var(--text-secondary);
}

.timestamp-cell {
  font-family: "Space Mono", "Roboto Mono", monospace;
}

.text-green {
  color: var(--positive);
}

.text-red {
  color: var(--negative);
}

.text-neutral {
  color: var(--text-secondary);
}

.text-green-subtle {
  color: rgba(34, 197, 94, 0.7);
}

.text-red-subtle {
  color: rgba(239, 68, 68, 0.7);
}

.text-yellow {
  color: #fcd34d;
}

.loading,
.onchain-empty,
.onchain-error,
.news-empty,
.news-error {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

.onchain-error,
.news-error {
  color: var(--negative);
}

footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/*  SCROLLBARS & RESPONSIVE                                                   */
/* -------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
}

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

  .overview-section {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .top-bar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand p {
    font-size: 10px;
  }

  .pill-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pill {
    font-size: 9px;
    padding: 4px 8px;
  }

  .dashboard {
    padding: 12px;
    gap: 12px;
  }

  .panel {
    padding: 12px;
    border-radius: 8px;
  }

  .panel-heading h2 {
    font-size: 13px;
  }

  .panel-heading p {
    font-size: 10px;
  }

  .flow-row,
  .intel-row {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    min-height: auto;
    gap: 8px;
  }

  .flow-time,
  .intel-time {
    font-size: 10px;
  }

  .flow-entities {
    flex-wrap: wrap;
    gap: 6px;
  }

  .entity-badge {
    font-size: 11px;
  }

  .entity-badge img {
    width: 16px;
    height: 16px;
  }

  .flow-asset,
  .intel-body {
    order: 2;
  }

  .flow-value {
    font-size: 13px;
  }

  .intel-text {
    font-size: 11px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .overview-card {
    padding: 10px;
  }

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

  .deriv-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .deriv-right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .card-metric {
    font-size: 18px;
  }

  .card-label {
    font-size: 9px;
  }

  .system-status-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .status-item {
    padding: 8px 10px;
  }

  .candles-table-wrapper {
    overflow-x: auto;
  }
}

/* Mobile Only */
@media (max-width: 768px) {
  .top-bar {
    padding: 10px 12px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .brand p {
    display: none;
  }

  .pill {
    font-size: 8px;
    padding: 3px 6px;
  }

  .dashboard {
    padding: 8px;
    gap: 10px;
  }

  .panel {
    padding: 10px;
  }

  /* Panel scroll heights for mobile */
  .panel > div[style*="overflow-y"],
  .panel > div[style*="height"] {
    max-height: 400px !important;
    height: auto !important;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .panel-heading h2 {
    font-size: 12px;
  }

  .chip.live-chip {
    font-size: 8px;
    padding: 3px 6px;
  }

  .flow-row,
  .intel-row {
    padding: 8px 10px;
    gap: 6px;
  }

  .flow-time span:first-child,
  .intel-time span:first-child {
    display: none;
  }

  .entity-badge {
    font-size: 10px;
    gap: 4px;
  }

  .entity-badge img {
    width: 14px;
    height: 14px;
  }

  .entity-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .token-chip {
    font-size: 10px;
    padding: 2px 6px;
  }

  .token-chip img {
    width: 12px;
    height: 12px;
  }

  .derivatives-grid {
    grid-template-columns: 1fr;
  }

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

  .flow-value {
    font-size: 12px;
    font-weight: 700;
  }

  .intel-meta {
    gap: 3px;
    margin-bottom: 4px;
  }

  .meta-chip {
    font-size: 7px;
    padding: 1px 3px;
  }

  .intel-text {
    font-size: 10px;
    line-height: 1.4;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    padding: 8px;
  }

  .card-metric {
    font-size: 16px;
  }

  .card-details {
    font-size: 9px;
    gap: 6px;
  }

  .system-status-grid {
    gap: 6px;
  }

  .status-item {
    padding: 6px 8px;
    gap: 8px;
  }

  .status-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
  }

  .status-label {
    font-size: 8px;
  }

  .status-value {
    font-size: 12px;
  }

  .status-sub {
    font-size: 8px;
  }

  /* Table horizontal scroll */
  .candles-table {
    font-size: 10px;
  }

  .candles-table th,
  .candles-table td {
    padding: 6px 8px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .top-bar {
    padding: 8px 10px;
  }

  .brand h1 {
    font-size: 13px;
  }

  .pill-row {
    display: none;
  }

  .dashboard {
    padding: 6px;
    gap: 8px;
  }

  .panel {
    padding: 8px;
    border-radius: 6px;
  }

  .panel-heading h2 {
    font-size: 11px;
  }

  .flow-row,
  .intel-row {
    padding: 6px 8px;
    gap: 5px;
    border-radius: 4px;
  }

  .entity-badge {
    font-size: 9px;
  }

  .flow-value {
    font-size: 11px;
  }

  .intel-text {
    font-size: 9px;
  }

  .overview-card {
    padding: 6px;
  }

  .card-metric {
    font-size: 14px;
  }

  .status-item {
    padding: 5px 6px;
  }
}

/* 🐦 Social Media News Styles (Simplified) */
.twitter-card {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: transparent;
  min-height: 60px;
  cursor: pointer; /* Tıklanabilir */
  position: relative;
  transition: background 0.2s ease;
}

.twitter-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.twitter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-panel-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  text-transform: uppercase;
  flex-shrink: 0;
}

.twitter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden; /* Metin taşmasını engeller */
}

.twitter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;
}

.twitter-handle {
  font-weight: 600;
  color: var(--text-primary);
}

.twitter-verified {
  color: #1d9bf0;
  display: flex;
  align-items: center;
}

.twitter-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.twitter-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
  word-break: break-word;
}

.twitter-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.twitter-actions {
  margin-left: auto;
  position: relative;
  z-index: 2; /* Link üstte kalsın */
}

.twitter-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  pointer-events: auto; /* Tıklanabilir */
}

.twitter-link:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline;
}

/* Overview Section Equality */
.overview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start; /* Yükseklikler içeriğe göre */
}

.overview-left,
.overview-right {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  height: 640px; /* Yükseklik %5+ artırıldı (600px -> 640px) */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#market-cards {
  flex: 1;
  /* Market cards already fit, no scroll needed mostly */
}

#twitter-list {
  flex: 1;
  overflow-y: auto; /* Sadece liste scroll olsun */
  padding-right: 4px;
}

/* Scrollbar styling for lists */
#market-cards::-webkit-scrollbar,
#twitter-list::-webkit-scrollbar {
  width: 4px;
}

#market-cards::-webkit-scrollbar-thumb,
#twitter-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   DERIVATIVES MONITOR - COINALYZE
   ═══════════════════════════════════════════════════════════ */

.derivatives-section {
  margin: 2rem 0;
}

.derivatives-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.derivatives-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.derivatives-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

/* OI flow style (ince, on-chain benzeri) */
.oi-total-flow {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.oi-total-flow .oi-total-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.oi-total-flow .oi-total-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.oi-flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.oi-flow-row {
  display: grid;
  grid-template-columns: 1.1fr 3fr 1fr;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.oi-flow-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 550;
}
.oi-flow-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}
.oi-flow-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  border-radius: 999px;
}
.oi-flow-val {
  text-align: right;
  color: var(--text-primary);
  font-weight: 550;
  font-size: 0.95rem;
}

.longshort-table {
  width: 100%;
  border-collapse: collapse;
}

.longshort-table thead th {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-secondary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #6366f1;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.longshort-table tbody td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.longshort-table tbody tr:hover {
  background: var(--table-hover);
}

.longshort-tf {
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.95rem;
}

.longshort-ratio {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.1rem;
}

.longshort-long {
  color: var(--positive);
  font-weight: 600;
}

.longshort-short {
  color: var(--negative);
  font-weight: 600;
}

.longshort-sentiment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.sentiment-bullish {
  background: rgba(16, 185, 129, 0.15);
  color: var(--positive);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment-bearish {
  background: rgba(239, 68, 68, 0.15);
  color: var(--negative);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Liquidation Periods */
.liquidation-periods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.liquidation-period {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.liquidation-period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.liquidation-label {
  color: #a78bfa;
  font-weight: 700;
  font-size: 1rem;
}

.liquidation-total {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.15rem;
}

.liquidation-bars {
  display: flex;
  gap: 0.5rem;
  height: 36px;
  margin-bottom: 0.5rem;
}

.liquidation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  transition: all 0.3s ease;
}

.liquidation-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.liquidation-bar-long {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.liquidation-bar-short {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.liquidation-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sentiment Gauge */
.sentiment-card {
  grid-column: 1 / -1;
}

.sentiment-gauge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 1rem;
}

.sentiment-circle {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--positive) 0deg,
    var(--positive) var(--long-deg, 180deg),
    var(--negative) var(--long-deg, 180deg),
    var(--negative) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.sentiment-circle-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-panel-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.sentiment-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sentiment-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sentiment-legend {
  display: flex;
  gap: 3rem;
}

.sentiment-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sentiment-legend-value {
  font-size: 2rem;
  font-weight: 700;
}

.sentiment-legend-long {
  color: var(--positive);
}

.sentiment-legend-short {
  color: var(--negative);
}

.sentiment-legend-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}


/* Derivatives 3-column grid */
.derivatives-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* OI Items */
.oi-items, .funding-items, .exchange-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oi-item, .funding-item, .exchange-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oi-exchange, .funding-exchange, .exchange-name {
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.95rem;
}

.oi-value {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.1rem;
}

.funding-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.funding-current {
  font-weight: 700;
  font-size: 1rem;
}

.funding-current.positive {
  color: var(--positive);
}

.funding-current.negative {
  color: var(--negative);
}

.funding-predicted {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.exchange-item {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.exchange-total {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}

.exchange-bars {
  display: flex;
  gap: 2px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.mini-bar {
  transition: all 0.3s ease;
}

.mini-bar-long {
  background: var(--positive);
}

.mini-bar-short {
  background: var(--negative);
}

.exchange-ratio {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.no-data {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Row 2: 3 Column Grid */
.derivatives-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Open Interest Display */
.oi-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.oi-total {
  text-align: center;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.oi-total-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.oi-total-value {
  color: #fbbf24;
  font-size: 2.5rem;
  font-weight: 700;
}

.oi-exchanges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oi-exchange-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.oi-exchange-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.oi-exchange-value {
  color: var(--positive);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Funding Rate Display */
.funding-display,
#funding-display,
#funding-rate-data,
.funding-list,
.funding-exchanges,
.funding-avg {
  display: none !important;
}
.funding-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.funding-avg {
  text-align: center;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.funding-avg-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.funding-avg-value {
  color: var(--positive);
  font-size: 2.2rem;
  font-weight: 700;
}

.funding-predicted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.funding-exchanges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funding-exchange-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
  font-size: 0.9rem;
}

.funding-rate-positive {
  color: var(--positive);
  font-weight: 600;
}

.funding-rate-negative {
  color: var(--negative);
  font-weight: 600;
}

/* Exchange Breakdown */
.exchange-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exchange-breakdown-row {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.exchange-breakdown-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.exchange-name-badge {
  color: #a78bfa;
  font-weight: 700;
  font-size: 1rem;
}

.exchange-total {
  color: #fbbf24;
  font-weight: 700;
}

.exchange-breakdown-bars {
  display: flex;
  gap: 0.5rem;
  height: 24px;
  margin-top: 0.5rem;
}

/* Liquidation Trend Chart */
.chart-card {
  grid-column: 1 / -1;
}

.liq-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  position: relative;
}

.liq-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.liq-bar-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 2px;
}

.liq-bar-segment {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.liq-bar-segment:hover {
  opacity: 0.8;
  transform: scaleX(1.05);
}

.liq-bar-long-seg {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.liq-bar-short-seg {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.liq-bar-time {
  color: var(--text-muted);
  font-size: 0.7rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}


/* ═══════════════════════════════════════════════════════════
   DERIVATIVES EXTENDED WIDGETS
   ═══════════════════════════════════════════════════════════ */

.derivatives-grid-extended {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.liquidation-trend-card {
  grid-column: 1 / -1;
}

/* OI Display */
.oi-total {
  text-align: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.oi-total-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.oi-total-value {
  color: #fbbf24;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.oi-exchanges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oi-exchange-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 6px;
}

.oi-exchange-name {
  color: var(--text-primary);
  font-weight: 600;
}

.oi-exchange-value {
  color: #a78bfa;
  font-weight: 700;
}

/* Funding Rate */
.funding-avg {
  text-align: center;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.funding-avg-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.funding-avg-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.funding-rate-positive {
  color: var(--positive);
}

.funding-rate-negative {
  color: var(--negative);
}

.funding-predicted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.funding-exchanges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funding-exchange-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Exchange Breakdown */
.exchange-breakdown-row {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 8px;
}

.exchange-breakdown-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.exchange-name-badge {
  color: #a78bfa;
  font-weight: 700;
  font-size: 1.05rem;
}

.exchange-breakdown-bars {
  margin-bottom: 0.5rem;
}

/* Liquidation Trend Chart */
#liq-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 1rem;
  height: 200px;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 8px;
}

.liq-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.liq-bar-stack {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  align-items: stretch;
}

.liq-bar-segment {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: all 0.3s ease;
}

.liq-bar-long-seg {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.liq-bar-short-seg {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.liq-bar-wrapper:hover .liq-bar-segment {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.liq-bar-time {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

