/* ════════════════════════════════════════════════════════════════════
   LIVE MARKET FEED — sağ sticky panel · premium terminal stili
   Mevcut tasarım diline uyumlu: dark, cyan/green/red neon, soft glow,
   glass panel, ince border. Mevcut .nc-panel'e dokunmaz.
   ════════════════════════════════════════════════════════════════════ */
.vd-lf {
  position: fixed;
  top: 92px;
  right: 14px;
  width: 268px;
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.92), rgba(2, 7, 14, 0.94));
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  z-index: 900;
  overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Header */
.vd-lf-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 212, 255, 0.03);
}
.vd-lf-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green, #00e5a0);
  box-shadow: 0 0 8px var(--green, #00e5a0);
  animation: vdLfPulse 1.8s ease-in-out infinite;
  flex: none;
}
.vd-lf-dot.st-connecting { background: var(--yellow, #ffc107); box-shadow: 0 0 8px var(--yellow, #ffc107); }
.vd-lf-dot.st-live       { background: var(--green, #00e5a0); box-shadow: 0 0 8px var(--green, #00e5a0); }
.vd-lf-dot.st-error      { background: var(--red, #ff3d6b); box-shadow: 0 0 8px var(--red, #ff3d6b); animation: none; }
.vd-lf-dot.st-idle       { background: var(--text3, #3a6080); box-shadow: none; animation: none; }
@keyframes vdLfPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.vd-lf-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text, #e8f4ff);
  white-space: nowrap;
}
.vd-lf-spot {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green, #00e5a0);
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 1.5px 5px;
  border-radius: 4px;
}
.vd-lf-sym {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--cyan, #00d4ff);
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}
.vd-lf-spot {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green, #00e5a0);
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 6px;
}
.vd-lf-collapse {
  background: none; border: none;
  color: var(--text3, #3a6080);
  font-size: 13px; cursor: pointer;
  padding: 0 2px; line-height: 1;
}
.vd-lf-collapse:hover { color: var(--cyan, #00d4ff); }

/* Body */
.vd-lf-body {
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}
.vd-lf-body::-webkit-scrollbar { width: 5px; }
.vd-lf-body::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 3px; }
.vd-lf.is-collapsed .vd-lf-body,
.vd-lf.is-collapsed .vd-lf-foot { display: none; }

.vd-lf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 16px;
  font-size: 11px;
  color: var(--text3, #3a6080);
  text-align: center;
}
.vd-lf-empty-ic { font-size: 22px; opacity: 0.6; }

/* Trade satırları */
.vd-lf-list { display: flex; flex-direction: column; }
.vd-lf-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  border-left: 2px solid transparent;
  animation: vdLfIn 0.25s ease;
}
@keyframes vdLfIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }
.vd-lf-row.buy  { border-left-color: rgba(0, 229, 160, 0.5); background: linear-gradient(90deg, rgba(0, 229, 160, 0.06), transparent 70%); }
.vd-lf-row.sell { border-left-color: rgba(255, 61, 107, 0.5); background: linear-gradient(90deg, rgba(255, 61, 107, 0.06), transparent 70%); }
.vd-lf-row.whale {
  border-left-color: var(--cyan, #00d4ff);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(0, 212, 255, 0.02) 80%);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.12) inset;
}
.vd-lf-row.is-dim { opacity: 0.5; }

.vd-lf-arr { font-size: 9px; text-align: center; }
.vd-lf-row.buy  .vd-lf-arr { color: var(--green, #00e5a0); }
.vd-lf-row.sell .vd-lf-arr { color: var(--red, #ff3d6b); }
.vd-lf-row.whale .vd-lf-arr { color: var(--cyan, #00d4ff); }

.vd-lf-price { color: var(--text, #e8f4ff); font-weight: 600; }
.vd-lf-val   { color: var(--text2, #7aaac8); font-weight: 700; }
.vd-lf-row.whale .vd-lf-val { color: var(--cyan, #00d4ff); }
.vd-lf-time  { color: var(--text3, #3a6080); font-size: 9.5px; min-width: 24px; text-align: right; }

/* Footer */
.vd-lf-foot {
  padding: 7px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}
.vd-lf-foot-lbl {
  font-size: 9px;
  color: var(--text3, #3a6080);
  letter-spacing: 0.03em;
}

/* ── Rail içine gömülü hâl (sağ rail'de AI BIAS + EN İYİ 3 FIRSAT altında) ── */
.vd-lf.vd-lf-railed {
  position: static;
  top: auto; right: auto; bottom: auto;
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  margin-top: 12px;
  z-index: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.vd-lf.vd-lf-railed .vd-lf-body { max-height: 240px; }

/* ── Responsive: dar ekranda alta toplanabilir ──────────────────────── */
@media (max-width: 1280px) {
  .vd-lf { width: 232px; top: 90px; }
}
@media (max-width: 1024px) {
  /* Sağ panel mevcut içeriği sıkıştırmasın → mobilde alta collapsible bar */
  .vd-lf {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 42vh;
    border-radius: 14px 14px 0 0;
    border-left: none; border-right: none; border-bottom: none;
  }
  .vd-lf.is-collapsed { max-height: none; }
  .vd-lf-list { max-height: 32vh; }
}
