/* ── Market Sidebar ── */
.market-sidebar {
  width: var(--market-sidebar-width);
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: flex-start;
}
.market-sidebar__title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.market-sidebar__refresh {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .85rem;
  transition: color var(--transition);
  padding: 0;
  line-height: 1;
}
.market-sidebar__refresh:hover { color: var(--accent); }

.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.market-item:last-child { border-bottom: none; }
.market-item__left { display: flex; align-items: center; gap: 10px; }
.market-item__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.market-item__icon.index  { background: rgba(var(--accent-rgb), .12); }
.market-item__icon.crypto { background: rgba(255,152,0,.12); }
.market-item__label { font-size: .82rem; font-weight: 700; color: var(--text-secondary); }
.market-item__sub   { font-size: .68rem; color: var(--text-dim); }
.market-item__right { text-align: right; }
.market-item__price  { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.market-item__change { font-size: .72rem; margin-top: 2px; }
.market-item__change.up   { color: var(--signal-up); }
.market-item__change.down { color: var(--signal-dn); }

.market-divider { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); padding: 8px 0 4px; }
.market-loading  { color: var(--text-dim); font-size: .78rem; text-align: center; padding: 20px 0; }

/* ── Fear & Greed / Sentiment Indicators ── */
.sidebar-section {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 8px;
}
.fg-section-header {
  font-size: 11px; color: #666; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.fg-item-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.fg-label { font-size: 11px; color: #aaa; }
.fg-value-wrap { display: flex; align-items: center; gap: 5px; }
.fg-value { font-size: 15px; font-weight: 700; color: #fff; }
.fg-change { font-size: 11px; }
.fg-badge {
  font-size: 10px; padding: 2px 6px; border-radius: 10px;
  font-weight: 600; white-space: nowrap;
}
.badge-extreme-fear  { background: #c0392b; color: #fff; }
.badge-fear          { background: #e67e22; color: #fff; }
.badge-neutral       { background: #7f8c8d; color: #fff; }
.badge-greed         { background: #27ae60; color: #fff; }
.badge-extreme-greed { background: #1e8449; color: #fff; }

/* VIX bar */
.fg-bar-track {
  height: 7px; background: rgba(255,255,255,.1);
  border-radius: 4px; overflow: hidden;
}
.fg-bar-fill {
  height: 100%; border-radius: 4px; width: 0%;
  background: linear-gradient(to right, #2ecc71, #f1c40f, #e67e22, #c0392b);
  transition: width .8s ease;
}
.fg-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 9px; color: #555; margin-top: 3px;
}

/* Gauge */
.fg-gauge-wrap { display: flex; justify-content: center; margin: 2px 0 4px; }
.fg-gauge-svg  { width: 100%; max-width: 190px; }
#fg-needle {
  /* 좌표 직접 계산 방식으로 변경 — transform 불필요 */
}

/* 전일 비교 */
.fg-compare-row {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; font-size: 11px; margin-top: 2px;
}
