/* Fear & Greed dashboard */
.fg-landing { background: #f7f8fc; }
  .fg-page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; font-family: 'Inter','Segoe UI',Arial,sans-serif; }
  .fg-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
  .fg-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
  }
  .fg-card-head {
    padding: 13px 18px;
    border-bottom: 1px solid #e4e7ec;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .fg-card-head .fg-head-meta {
    font-size: 12px;
    font-weight: 500;
    color: #98a2b3;
    text-transform: none;
    letter-spacing: 0;
  }

  /* ---------- Gauge hero ---------- */
  .fg-gauge-card { display: flex; flex-direction: column; }
  .fg-gauge-body { padding: 18px 22px 0; flex: 1; }
  .fg-gauge-wrap { position: relative; max-width: 560px; margin: 0 auto; }
  .fg-gauge-wrap canvas { display: block; width: 100%; }
  .fg-gauge-overlay {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    width: 60%;
  }
  .fg-gauge-value {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    color: #1d253c;
    letter-spacing: -0.02em;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 18px #fff;
  }
  .fg-gauge-scale {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
  }
  .fg-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
  }
  .fg-zone-chip .fg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  .fg-zone-chip.extreme-fear { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
  .fg-zone-chip.fear { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
  .fg-zone-chip.neutral { background: #fefce8; color: #a16207; border-color: #fde68a; }
  .fg-zone-chip.greed { background: #f7fee7; color: #4d7c0f; border-color: #d9f99d; }
  .fg-zone-chip.extreme-greed { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
  .fg-zone-chip.unknown { background: #f9fafb; color: #667085; border-color: #e4e7ec; }
  .fg-gauge-footer {
    text-align: center;
    padding: 6px 22px 18px;
  }
  .fg-gauge-copy {
    margin: 12px auto 0;
    max-width: 480px;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
  }
  .fg-gauge-meta {
    margin-top: 10px;
    font-size: 12.5px;
    color: #98a2b3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .fg-delta { font-weight: 600; }
  .fg-delta.up { color: #067647; }
  .fg-delta.down { color: #d92d20; }
  .fg-empty {
    padding: 48px 24px;
    text-align: center;
    color: #98a2b3;
    font-size: 14px;
  }

  /* ---------- History snapshots ---------- */
  .fg-history-list { padding: 6px 0; }
  .fg-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #eaecf0;
  }
  .fg-history-row:last-child { border-bottom: none; }
  .fg-history-label { font-size: 14px; color: #667085; font-weight: 500; }
  .fg-history-sub { display: block; font-size: 11.5px; color: #98a2b3; margin-top: 1px; }
  .fg-history-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    background: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
  }
  .fg-history-pill .fg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  .fg-history-pill b { color: #1d253c; font-weight: 700; }

  /* ---------- Timeline ---------- */
  .fg-ranges { display: inline-flex; gap: 4px; background: #f2f4f7; border-radius: 8px; padding: 3px; }
  .fg-range-btn {
    border: none;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .fg-range-btn:hover { color: #344054; }
  .fg-range-btn.active { background: #fff; color: #1d253c; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1); }
  .fg-chart-wrap { padding: 12px 18px 18px; }
  .fg-chart-wrap canvas { width: 100% !important; height: 300px !important; }
  .fg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 18px 16px;
    font-size: 12px;
    color: #667085;
  }
  .fg-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .fg-legend .fg-dot { width: 9px; height: 9px; border-radius: 50%; }

  /* ---------- Components ---------- */
  .fg-components {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px 18px;
  }
  .fg-component {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    transition: all 0.2s ease;
  }
  .fg-component:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08); border-color: #d6bbfb; }
  .fg-component-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .fg-component b { color: #667085; font-size: 12.5px; font-weight: 600; }
  .fg-component .fg-component-value { font-size: 18px; font-weight: 700; color: #1d253c; }
  .fg-meter { position: relative; height: 6px; border-radius: 999px; overflow: visible; }
  .fg-meter-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 28%, #facc15 50%, #84cc16 72%, #22c55e 100%);
    opacity: 0.85;
  }
  .fg-meter-marker {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #344054;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  }
  .fg-meter-labels { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

  /* ---------- Zone guide ---------- */
  .fg-zones { margin-top: 16px; }
  .fg-zones-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fg-zones-grid > div { border-right: 1px solid #f2f4f7; padding: 14px 16px; border-top: 3px solid transparent; }
  .fg-zones-grid > div:last-child { border-right: none; }
  .fg-zones-grid > div.zg-extreme-fear { border-top-color: #ef4444; }
  .fg-zones-grid > div.zg-fear { border-top-color: #f97316; }
  .fg-zones-grid > div.zg-neutral { border-top-color: #facc15; }
  .fg-zones-grid > div.zg-greed { border-top-color: #84cc16; }
  .fg-zones-grid > div.zg-extreme-greed { border-top-color: #22c55e; }
  .fg-zones-grid h4 { margin: 0 0 6px; font-size: 13.5px; color: #1d253c; font-weight: 700; }
  .fg-zones-grid .zg-range { font-size: 11px; color: #98a2b3; font-weight: 600; margin-left: 6px; }
  .fg-zones-grid p { margin: 0; font-size: 12.5px; color: #667085; line-height: 1.45; }

  @media (max-width: 1024px) {
    .fg-grid { grid-template-columns: 1fr; }
    .fg-components { grid-template-columns: 1fr 1fr; }
    .fg-zones-grid { grid-template-columns: 1fr 1fr; }
    .fg-zones-grid > div:nth-child(2n) { border-right: none; }
    .fg-zones-grid > div { border-bottom: 1px solid #eaecf0; }
  }
  @media (max-width: 600px) {
    .fg-gauge-value { font-size: 40px; }
    .fg-components { grid-template-columns: 1fr; }
    .fg-zones-grid { grid-template-columns: 1fr; }
    .fg-zones-grid > div { border-right: none; }
    .fg-card-head { flex-wrap: wrap; }
    .fg-chart-wrap canvas { height: 240px !important; }
  }

/* Theme alignment with market tools */
/* Fear & Greed page: shared visual language with the market dashboards. */
.fg-landing {
  background: #f7f8fc !important;
  color: #1d253c;
  min-height: 100vh;
  padding: 42px 0 80px;
}
.fg-page {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  max-width: 1180px !important;
  padding: 0 28px 48px !important;
}
.fg-breadcrumb {
  color: #667085;
  display: flex;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .75rem;
  gap: .55rem;
  margin-bottom: 36px;
}
.fg-breadcrumb a { color: #6941c6; text-decoration: none; }
.fg-hero {
  align-items: end;
  border-bottom: 3px solid #1d253c;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 28px;
}
.fg-eyebrow {
  color: #6941c6;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}
.fg-hero h1 {
  color: #1d253c;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  letter-spacing: -.05em;
  line-height: .98;
  margin: 0;
}
.fg-hero > div:first-child > p:last-child {
  color: #667085;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 640px;
}
.fg-hero-read {
  background: #f4f3ff;
  border: 1px solid #d6bbfb;
  border-radius: 8px;
  min-width: 210px;
  padding: .8rem 1rem;
}
.fg-hero-read span,
.fg-hero-read small {
  color: #6941c6;
  display: block;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .67rem;
  text-transform: uppercase;
}
.fg-hero-read strong {
  color: #1d253c;
  display: block;
  font-size: 1.2rem;
  margin: .15rem 0;
}
.fg-card {
  border-color: #e4e7ec !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.fg-card-head {
  color: #6941c6 !important;
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  font-size: .7rem !important;
}
.fg-gauge-card {
  background: linear-gradient(145deg, #ffffff 0%, #f9f5ff 100%);
}
.fg-gauge-value { color: #1d253c !important; }
.fg-gauge-copy { color: #667085 !important; }
.fg-history-row:hover { background: #fcfcfd; }
.fg-history-pill { border-color: #e4e7ec !important; }
.fg-ranges { background: #f2f4f7 !important; }
.fg-range-btn.active {
  background: #6941c6 !important;
  box-shadow: none !important;
  color: #fff !important;
}
.fg-chart-wrap { padding-top: 18px !important; }
.fg-components { gap: 10px !important; }
.fg-component {
  border-color: #e4e7ec !important;
  border-radius: 8px !important;
}
.fg-component:hover {
  border-color: #d6bbfb !important;
  box-shadow: 0 6px 16px rgba(15, 110, 86, .10) !important;
}
.fg-zones-grid > div { border-color: #eaecf0 !important; }
.fg-zones-grid h4 { color: #1d253c !important; }
.fg-zones-grid p { color: #667085 !important; }
@media (max-width: 640px) {
  .fg-landing { padding-top: 26px; }
  .fg-page { padding: 0 16px 36px !important; }
  .fg-hero { align-items: flex-start; flex-direction: column; }
  .fg-hero-read { width: 100%; }
}

