/* ═══ POLYSTATS — Crypto Live Terminal v2 Styles ═══ */

/* ── Terminal Container ── */
.cl-terminal {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 70px);
  background: var(--bg, #080f14);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Ticker Strip ── */
.cl-ticker-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  background: rgba(10, 18, 24, 0.95);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.cl-ticker-strip::-webkit-scrollbar { display: none; }
.cl-ticker-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  white-space: nowrap; transition: background 0.2s; font-size: 13px; flex-shrink: 0;
}
.cl-ticker-item:hover { background: rgba(255,255,255,0.05); }
.cl-ticker-item.active { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.15); }
.cl-ticker-icon { font-size: 16px; font-weight: 700; }
.cl-ticker-sym { font-weight: 600; color: rgba(255,255,255,0.7); font-size: 12px; }
.cl-ticker-price { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: #e0e8f0; }
.cl-ticker-change { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; }
.cl-ticker-change.cl-up { color: #00ff88; }
.cl-ticker-change.cl-down { color: #ff4466; }
.cl-ticker-status { margin-left: auto; display: flex; align-items: center; gap: 6px; padding-left: 16px; flex-shrink: 0; }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.cl-dot-live { background: #00ff88; box-shadow: 0 0 8px #00ff88; animation: cl-pulse 2s infinite; }
.cl-dot-connecting { background: #f59e0b; animation: cl-pulse 1s infinite; }
.cl-dot-dead { background: #ff4466; }
.cl-status-text { font-size: 11px; color: rgba(255,255,255,0.4); font-family: 'JetBrains Mono', monospace; }

@keyframes cl-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.cl-flash-up { animation: cl-glow-up 0.6s ease-out; }
.cl-flash-down { animation: cl-glow-down 0.6s ease-out; }
@keyframes cl-glow-up { 0%{color:#00ff88;text-shadow:0 0 8px #00ff88} 100%{color:#e0e8f0;text-shadow:none} }
@keyframes cl-glow-down { 0%{color:#ff4466;text-shadow:0 0 8px #ff4466} 100%{color:#e0e8f0;text-shadow:none} }

/* ── Category Bar (horizontal, under ticker) ── */
.cl-cat-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  background: rgba(10, 18, 24, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cl-cat-bar::-webkit-scrollbar { display: none; }
.cl-cat-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 12px; transition: all 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.cl-cat-btn:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.cl-cat-btn.active { background: rgba(0,212,255,0.1); color: #00d4ff; }
.cl-cat-fast.active { background: rgba(245,158,11,0.12); color: #f59e0b; }
.cl-cat-count {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 8px; min-width: 18px; text-align: center;
}

/* ── Content Area ── */
.cl-content {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cl-loading { display: flex; align-items: center; justify-content: center; min-height: 200px; color: rgba(255,255,255,0.4); font-size: 14px; }
.cl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; text-align: center; }
.cl-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.cl-empty-text { font-size: 16px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ── Sections ── */
.cl-section { margin-bottom: 24px; }
.cl-section-hdr { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500; }
.cl-section-badge { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.cl-section-badge.fast { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #f59e0b; }
.cl-section-badge.fast15 { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3); color: #a78bfa; }

/* ── Event Cards ── */
.cl-cards { display: flex; flex-direction: column; gap: 8px; }
.cl-card {
  background: rgba(13,26,34,0.8); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 14px 18px; cursor: pointer; transition: all 0.2s;
}
.cl-card:hover { border-color: rgba(0,212,255,0.2); background: rgba(13,26,34,1); }
.cl-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cl-card-title { font-size: 14px; font-weight: 600; color: #e0e8f0; line-height: 1.4; flex: 1; }
.cl-card-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cl-card-timer { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #f59e0b; background: rgba(245,158,11,0.1); padding: 2px 8px; border-radius: 4px; }
.cl-card-timer.ended { color: #ff4466; background: rgba(255,68,102,0.1); }
.cl-card-vol { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.cl-card-mkts { font-size: 11px; color: rgba(255,255,255,0.3); }
.cl-card-top { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.04); }
.cl-card-top-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.cl-card-top-pct { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; }

/* ── 5-Min Card ── */
.cl-card-5min { border-color: rgba(245,158,11,0.2); background: rgba(30,20,10,0.6); }
.cl-card-5min:hover { border-color: rgba(245,158,11,0.4); }
.cl-5min-prices { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cl-5min-side { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.6); }
.cl-5min-side.up { color: rgba(255,255,255,0.7); }
.cl-5min-side.down { color: rgba(255,255,255,0.7); }
.cl-5min-arrow { font-size: 18px; }
.cl-5min-pct { font-family: 'JetBrains Mono', monospace; font-size: 22px; }
.cl-5min-bar { flex: 1; height: 8px; background: rgba(255,68,102,0.25); border-radius: 4px; overflow: hidden; }
.cl-5min-bar-up { height: 100%; background: linear-gradient(90deg,#00cc66,#00ff88); border-radius: 4px; transition: width 0.3s; }
.cl-5min-btc { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; }
.cl-preview-btn { margin-top: 8px; padding: 4px 12px; background: rgba(255,152,0,0.1); color: #ff9800; border: 1px solid rgba(255,152,0,0.3); border-radius: 4px; cursor: pointer; font-size: 11px; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; }
.cl-preview-btn:hover { background: rgba(255,152,0,0.25); border-color: #ff9800; }
.cl-card-closed { opacity: 0.7; }
.cl-5min-closed { display: block; text-align: center; padding: 8px; margin-top: 8px; color: #f59e0b; font-size: 13px; font-weight: 600; animation: pulse5m 2s infinite; }
@keyframes pulse5m { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
/* Confidence & source badges */
.cl-5min-conf, .cl-5min-source { margin-left: 8px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; vertical-align: middle; }
.cl-conf-high { color: #00ff88; background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.25); }
.cl-conf-mid  { color: #fbbf24; background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.25); }
.cl-conf-low  { color: #ff4466; background: rgba(255,68,102,0.1);  border: 1px solid rgba(255,68,102,0.25); }
.cl-source-gamma { color: #7ab8cc; background: rgba(122,184,204,0.08); border: 1px solid rgba(122,184,204,0.2); }
/* Confidence в карточках истории */
.cl-hcard-conf { margin-left: 8px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.cl-hcard-vol { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ── Live 5-Min Card (all coins) ── */
.cl-card-live5min { border-color: rgba(0,212,255,0.2); background: rgba(10,30,45,0.7); }
.cl-card-live5min:hover { border-color: rgba(0,212,255,0.4); }
.cl-live5min-prices { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cl-live5min-side { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.7); }
.cl-live5min-pct { font-family: 'JetBrains Mono', monospace; font-size: 22px; }
.cl-live5min-bar { flex: 1; height: 8px; background: rgba(255,68,102,0.25); border-radius: 4px; overflow: hidden; }
.cl-live5min-bar-up { height: 100%; background: linear-gradient(90deg,#00a8e8,#00d4ff); border-radius: 4px; transition: width 0.3s; }
.cl-live5min-meta { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; }

/* ── History Section ── */
.cl-history-section { margin-top: 24px; }
.cl-history-hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cl-history-title { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cl-history-filters { display: flex; align-items: center; gap: 8px; }
.cl-history-date {
  background: rgba(13,26,34,0.8); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.7); cursor: pointer; outline: none;
}
.cl-history-date:focus { border-color: rgba(0,212,255,0.3); }
.cl-history-date::-webkit-calendar-picker-indicator { filter: invert(0.6); cursor: pointer; }
.cl-history-cards { display: flex; flex-direction: column; gap: 6px; }
.cl-hcard {
  display: flex; align-items: center; gap: 12px;
  background: rgba(13,26,34,0.5); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px; padding: 10px 14px; font-size: 13px;
}
.cl-hcard-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.35); min-width: 110px; }
.cl-hcard-result { font-weight: 700; font-size: 14px; min-width: 50px; text-align: center; }
.cl-hcard-result.up { color: #00ff88; }
.cl-hcard-result.down { color: #ff4466; }
.cl-hcard-result.unknown { color: rgba(255,255,255,0.3); }
.cl-hcard-prices { display: flex; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.cl-history-more {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 13px; text-align: center; transition: all 0.2s;
}
.cl-history-more:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.cl-history-loading { text-align: center; padding: 16px; color: rgba(255,255,255,0.3); font-size: 12px; }

/* ── History Time Separators ── */
.cl-hist-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.cl-hist-sep-hour { margin: 16px 0 8px; }
.cl-hist-sep-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,147,26,0.4), transparent);
}
.cl-hist-sep-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: rgba(247,147,26,0.7); white-space: nowrap; letter-spacing: 0.5px;
}
.cl-hist-sep-quarter { margin: 8px 0 4px; }
.cl-hist-sep-dot {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.cl-hist-sep-label-sm {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.25); white-space: nowrap;
}

/* ── History Card with Chart ── */
.cl-hcard-with-chart {
  flex-direction: column; gap: 6px; padding: 10px 14px 6px;
}
.cl-hcard-info {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.cl-hcard-btc {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(245,158,11,0.7); white-space: nowrap; margin-left: auto;
}
.cl-hcard-chart-wrap {
  width: 100%; border-radius: 4px; overflow: hidden;
  background: #080e14; min-height: 60px;
}
.cl-hcard-chart-wrap.cl-hcard-active {
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 8px rgba(0,212,255,0.08);
}
.cl-hcard-canvas { display: block; width: 100%; height: 60px; }

/* ── Detail Page ── */
.cl-detail { max-width: 800px; }
.cl-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 13px; transition: all 0.2s; margin-bottom: 16px;
}
.cl-back:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cl-detail-header { margin-bottom: 16px; }
.cl-detail-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #e0e8f0; }
.cl-detail-meta { font-size: 13px; color: rgba(255,255,255,0.5); font-family: 'JetBrains Mono', monospace; }
.cl-detail-timer { color: #f59e0b; font-weight: 600; }

/* Chart wrap */
.cl-chart-wrap { margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: #0a1218; }
.cl-chart-wrap canvas { display: block; width: 100%; }

/* Depth chart */
.cl-depth-wrap {
  margin-bottom: 16px; border-radius: 8px; overflow: hidden; background: #0a1218;
}
.cl-depth-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px 0; font-family: 'JetBrains Mono', monospace;
}
.cl-depth-title { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.cl-depth-mid { font-size: 12px; font-weight: 700; color: var(--cyan); }
.cl-depth-wrap canvas { display: block; width: 100%; }
.cl-depth-legend {
  display: flex; gap: 16px; padding: 6px 14px 10px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace; color: rgba(255,255,255,0.4);
}
.cl-depth-legend span::before {
  content: ''; display: inline-block; width: 10px; height: 3px;
  border-radius: 2px; margin-right: 5px; vertical-align: middle;
}
.cl-depth-legend .bid::before { background: #00ff88; }
.cl-depth-legend .ask::before { background: #ff4466; }

/* Orderbook Levels Table */
.ob-levels-wrap { margin: 0 0 12px; }
.ob-levels { background: rgba(8,15,20,0.8); border: 1px solid rgba(0,212,255,0.08); border-radius: 8px; overflow: hidden; }
.ob-header { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 11px; font-family: 'JetBrains Mono', monospace; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ob-h-bid { color: #00ff88; } .ob-h-ask { color: #ff4466; }
.ob-h-ratio { color: #4a7a8a; font-size: 12px; font-weight: bold; }
.ob-rows { max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0,212,255,0.2) transparent; }
.ob-row { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; height: 22px; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.ob-row:hover { background: rgba(255,255,255,0.03); }
.ob-row.ob-best { background: rgba(0,212,255,0.06); }
.ob-price { text-align: center; color: rgba(255,255,255,0.6); font-weight: bold; }
.ob-bar-cell { position: relative; height: 100%; display: flex; align-items: center; overflow: hidden; }
.ob-bid-cell { justify-content: flex-end; }
.ob-ask-cell { justify-content: flex-start; }
.ob-bar { position: absolute; top: 1px; bottom: 1px; border-radius: 2px; }
.ob-bar-bid { right: 0; background: rgba(0,255,136,0.15); }
.ob-bar-ask { left: 0; background: rgba(255,68,102,0.15); }
.ob-vol { position: relative; z-index: 1; padding: 0 6px; font-size: 10px; }
.ob-bid-cell .ob-vol { color: #00ff88; }
.ob-ask-cell .ob-vol { color: #ff4466; }

/* History Detail Page */
.hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.hd-card { background: rgba(10,20,30,0.7); border: 1px solid var(--border, rgba(0,212,255,0.1)); border-radius: 8px; padding: 10px 12px; }
.hd-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan, #00d4ff); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.hd-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; font-family: 'JetBrains Mono', monospace; }
.hd-row span:first-child { color: rgba(255,255,255,0.4); }
.hd-row span:last-child { color: rgba(255,255,255,0.85); }
.hd-section { margin: 14px 0; }
.hd-section .hd-label { margin-bottom: 8px; }

@media (max-width: 768px) {
  .hd-grid { grid-template-columns: 1fr; }
}

/* Detail prices (parser) */
.cl-detail-prices { margin-bottom: 16px; }
.cl-dp-row { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.cl-dp-row.sub { font-size: 12px; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; }
.cl-dp-side { font-size: 14px; color: rgba(255,255,255,0.7); }
.cl-dp-side.up b { color: #00ff88; }
.cl-dp-side.down b { color: #ff4466; }
.cl-dp-range { font-size: 11px; color: rgba(255,255,255,0.3); font-family: 'JetBrains Mono', monospace; }

/* Markets list (CLOB detail) */
.cl-clob-markets { margin-bottom: 16px; }
.cl-market-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cl-market-label { flex: 1; font-size: 13px; color: rgba(255,255,255,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-market-prices { display: flex; align-items: center; gap: 6px; width: 200px; flex-shrink: 0; }
.cl-yes { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: #00ff88; width: 36px; text-align: right; }
.cl-no { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: #ff4466; width: 36px; }
.cl-market-bar { flex: 1; height: 6px; background: rgba(255,68,102,0.2); border-radius: 3px; overflow: hidden; }
.cl-bar-fill { height: 100%; background: linear-gradient(90deg,#00cc66,#00ff88); border-radius: 3px; transition: width 0.3s; }
.cl-chart-btn { background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 3px 8px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.cl-chart-btn:hover { background: rgba(255,255,255,0.1); }
.cl-no-bots-msg { font-size: 12px; color: rgba(255,255,255,0.25); padding: 12px 0; }

/* ── Panel Headers ── */
.cl-panel-hdr { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; padding: 8px 0 6px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; }

/* ── Bot Panel ── */
.cl-bot-panel { margin-bottom: 16px; background: rgba(13,26,34,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px 14px; }
.cl-bot-list { display: flex; flex-direction: column; gap: 4px; }
.cl-bot-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px;
  color: rgba(255,255,255,0.7); transition: background 0.15s;
}
.cl-bot-item:hover { background: rgba(255,255,255,0.04); }
.cl-bot-item input[type="checkbox"] { accent-color: var(--bot-color, #00d4ff); width: 16px; height: 16px; cursor: pointer; }
.cl-bot-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cl-bot-name { flex: 1; }
.cl-bot-real { font-size: 10px; font-weight: 700; color: #ff4466; background: rgba(255,68,102,0.1); padding: 1px 6px; border-radius: 3px; }
.cl-bot-paper { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.3); }
.cl-bot-loading, .cl-bot-empty { font-size: 12px; color: rgba(255,255,255,0.3); padding: 8px 0; }

/* ── Position Panel ── */
.cl-position-panel { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.cl-pos-card {
  background: rgba(13,26,34,0.6); border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid; border-radius: 8px; padding: 12px 14px;
}
.cl-pos-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.cl-pos-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cl-pos-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.cl-pos-bar-wrap { margin: 6px 0; }
.cl-pos-bar { position: relative; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: visible; }
.cl-pos-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.cl-pos-bar-entry { position: absolute; top: -3px; width: 2px; height: 14px; background: #fff; border-radius: 1px; transform: translateX(-50%); }

/* ── Trade Table ── */
.cl-trade-table-wrap { margin-bottom: 16px; background: rgba(13,26,34,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px 14px; }
.cl-trade-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cl-trade-table thead th { text-align: left; padding: 6px 8px; color: rgba(255,255,255,0.35); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 11px; }
.cl-trade-table tbody td { padding: 6px 8px; color: rgba(255,255,255,0.65); border-bottom: 1px solid rgba(255,255,255,0.03); }
.cl-td-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .cl-cat-bar { padding: 4px 8px; gap: 2px; }
  .cl-cat-btn { padding: 4px 10px; font-size: 11px; }
  .cl-content { padding: 12px 10px; }
  .cl-market-prices { width: 160px; }
  .cl-detail-title { font-size: 16px; }
  .cl-5min-pct { font-size: 18px; }
}

/* ── Chart Period Buttons ── */
.cl-chart-period {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}
.cl-period-btn {
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  background: rgba(10, 18, 24, 0.6);
  color: #7ab8cc;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cl-period-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
}
.cl-period-btn.active {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
  color: #00d4ff;
}

/* ── Market Meta Row (spread, liquidity, volume) ── */
.cl-market-meta-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.cl-market-spread { color: #f59e0b; }
.cl-market-liq { color: #14f195; }
.cl-market-vol { color: #7ab8cc; }
.cl-modal-footer {
  padding: 10px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

/* ── Responsive (ticker + modal) ── */
@media (max-width: 768px) {
  .cl-ticker-strip { padding: 6px 8px; gap: 0; }
  .cl-ticker-item { padding: 5px 8px; font-size: 12px; }
  .cl-ticker-sym { display: none; }
  .cl-card { padding: 12px 14px; }
  .cl-market-prices { width: 160px; }
  .cl-modal-content { width: 96%; }
}
