/* Figma 11:626 Market Hub */

.content--market-hub {
  position: relative;
}

.main-shell:has(.content--market-hub)::before {
  content: "";
  position: absolute;
  inset: 72px 0 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 70% 0%, rgba(0, 229, 255, 0.08), transparent 55%);
  z-index: 0;
}

.content--market-hub {
  position: relative;
  z-index: 1;
}

.mh-clock {
  text-align: right;
}

.mh-clock__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-green);
}

.mh-clock__time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

.mh-indices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.mh-market-grid {
  display: grid;
  gap: 20px;
}

.mh-index {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.mh-index h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mh-index__v {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.mh-index__p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.mh-breadth {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  align-items: center;
  gap: 24px;
}

.mh-breadth__lead strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.mh-breadth__lead span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.mh-breadth__bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mh-breadth__bar-up {
  background: var(--accent-green);
}

.mh-breadth__bar-flat {
  background: var(--accent-amber);
}

.mh-breadth__bar-down {
  background: var(--accent-red);
}

.mh-breadth__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.mh-breadth__stats {
  margin: 8px 0 0;
  font-size: 11px;
}

.mh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.mh-legend__vol {
  margin-left: auto;
  color: var(--accent-cyan);
}

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

.mh-cell {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68, 72, 79, 0.35);
  background: rgba(21, 26, 33, 0.6);
}

.mh-cell span {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.mh-cell em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.mh-cell small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.mh-cell.pos {
  border-color: rgba(0, 255, 163, 0.25);
}

.mh-cell.neg {
  border-color: rgba(255, 113, 108, 0.25);
}

.mh-sectors-title {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mh-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.mh-movers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mh-movers ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.mh-movers li.pos {
  color: var(--accent-green);
}

.mh-movers li.neg {
  color: var(--accent-red);
}

.mh-mover-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.mh-movers li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mh-movers li strong {
  flex: 0 0 auto;
  font-family: var(--font-mono);
}
