.last-updated { font-size: 0.72rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); text-align: center; margin: 2px 0 0; opacity: 0.75; min-height: 20px; }

.indicator.expanded .indicator-agency, .indicator.expanded .indicator-content { margin-bottom: 6px; }

.indicator-content { display: flex; flex-direction: column; gap: 2px; overflow: visible; position: relative; z-index: 1; }

.data-rows-container { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* PAGE HEADER */

.categories { display: grid; gap: 15px }

.content { min-height: 80vh; contain: layout; }

.category { background: var(--bg-secondary); border-radius: var(--card-radius); padding: 1rem clamp(1rem, 2vw, 1.3rem) 1.1rem; box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease; word-break: break-word; content-visibility: auto; contain: layout paint; contain-intrinsic-size: 1px 500px; }

.category:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }

.category-title { font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--accent-primary); margin-top: 0; margin-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.7rem; display: flex; align-items: center; gap: 10px }

.category-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; color: var(--logo-teal); transition: transform 0.2s ease, color 0.2s ease }

.category:hover .category-icon { transform: scale(1.1); color: var(--logo-orange) }

.category-icon i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center }

.category-name { position: relative; top: 1px }

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: start;
    min-height: 800px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.indicator {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: var(--card-radius);
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: visible;
    animation: cardIn 0.2s ease-out both;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 220px 220px;
    min-width: 0;
}

.indicator:hover { box-shadow: var(--shadow-card-hover); }


/* Entrance animation for cards */
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.indicators-grid > :nth-child(1) { animation-delay: 0s; }
.indicators-grid > :nth-child(2) { animation-delay: 0.04s; }
.indicators-grid > :nth-child(3) { animation-delay: 0.08s; }
.indicators-grid > :nth-child(n+4) { animation-delay: 0.12s; }

.indicator-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }

.indicator-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; flex: 1; min-width: 0; word-break: normal; overflow-wrap: normal; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.new-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--logo-orange); padding: 2px 6px; border-radius: 3px; line-height: 1; animation: badgePulse 2s ease-in-out infinite; }

@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.data-headers { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding-bottom: 4px; }

.data-header-left, .data-header-right { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }

.data-header-right { text-align: right; margin-left: auto; }

.indicator-actions { display: flex; gap: 4px; flex-shrink: 0; }

.indicator-agency { font-size: 0.70rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; margin-bottom: 2px; display: block; position: relative; z-index: 1; }

.indicator-agency a { color: var(--text-muted); text-decoration: underline; }

.indicator-date { color: var(--logo-teal); font-weight: 600; }

.indicator.expanded .data-rows-container { max-height: 1200px; margin-top: 0; }

.latest-data-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; margin-bottom: 0; }

.latest-data-row, .last-data-row { background: linear-gradient(135deg, rgba(var(--logo-teal-rgb), 0.08) 0%, rgba(var(--logo-teal-rgb), 0.02) 100%); border-radius: 4px; padding: 3px 4px; margin: 2px 0; }

.latest-data-row .month-label, .last-data-row .month-label { color: var(--logo-teal); font-weight: 700; }
.latest-data-row .month-value, .last-data-row .month-value { color: var(--text-primary); font-weight: 700; font-size: 0.85rem; }

.data-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 0.8rem; margin-bottom: 0; gap: 8px; min-width: 0; border-bottom: 1px solid rgba(var(--border-color-rgb), 0.15); }

.data-row:last-child { border-bottom: none; }

  .month-label { font-weight: 600; color: var(--text-secondary); font-size: 0.7rem; word-break: keep-all; hyphens: none; flex-shrink: 0; }

.month-label[title] { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }

.month-value { font-weight: 600; color: var(--text-primary); text-align: right; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }

.surprise-positive { color: #22c55e; font-weight: 700; }

.surprise-negative { color: #ef4444; font-weight: 700; }

.month-change, .job-change-inline { font-size: 0.85rem; opacity: 0.8; font-weight: 600; }

.change-indicators { margin: 6px 0 8px 0; padding-bottom: 6px; display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-start; align-items: center; border-bottom: 1px solid rgba(var(--border-color-rgb), 0.4); overflow-x: clip; overflow-y: hidden; min-width: 0; position: relative; z-index: 1; }

.change-metric-block { display: flex; justify-content: center; align-items: center; padding: 0; flex-shrink: 1; min-width: 0; }

.change-metric-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); line-height: 1; opacity: 0.7; flex-shrink: 0; }

.change-metric-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 8px; height: 8px; flex-shrink: 0; }

.change-metric-title-icon i { width: 8px; height: 8px; stroke-width: 2.1px; }

.change-metric-btn { flex: 0 1 auto; width: fit-content; min-width: 0; max-width: none; border: none; border-radius: 6px; min-height: 24px; margin: 2px 0; padding: 3px 5px; display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 2px; white-space: nowrap; overflow: hidden; box-sizing: border-box; position: relative; font-weight: 600; font-size: 0.65rem; letter-spacing: 0.01em; }

.change-metric-btn svg { width: 0.85em !important; height: 0.85em !important; }

.change-metric-btn:focus-visible { outline: none; outline-offset: 0; }

.change-metric-btn:only-child { max-width: 100%; }

.change-metric-top { display: inline-flex; align-items: center; justify-content: flex-start; width: 100%; margin-bottom: 1px; gap: 4px; }

.change-metric-top .change-metric-title-icon { margin-left: auto; }

.change-metric-main { display: inline-flex; align-items: center; justify-content: flex-start; width: 100%; min-width: 0; overflow: visible; }

.change-metric-value { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.005em; flex-shrink: 0; line-height: 1; text-align: right; }

.change-metric-btn.change-positive .change-metric-value { color: #22c55e; }
.change-metric-btn.change-negative .change-metric-value { color: #ef4444; }

.change-metric-btn.change-positive, .change-metric-btn.change-negative, .change-metric-btn.change-neutral { background: transparent; border-color: transparent; }

.change-metric-btn.change-positive { background: rgba(34, 197, 94, 0.08); }
.change-metric-btn.change-positive:hover { background: rgba(34, 197, 94, 0.16); }
.change-metric-btn.change-negative { background: rgba(239, 68, 68, 0.08); }
.change-metric-btn.change-negative:hover { background: rgba(239, 68, 68, 0.16); }
.change-metric-btn.change-neutral { background: rgba(209, 213, 219, 0.08); }
.change-metric-btn.change-neutral:hover { background: rgba(209, 213, 219, 0.16); }

.change-metric-title-icon.change-positive { color: #22c55e; }
.change-metric-title-icon.change-negative { color: #ef4444; }
.change-metric-title-icon.change-neutral { color: #d1d5db; }
.expand-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 4px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; border-radius: 6px; width: 24px; height: 24px; }

.expand-toggle:hover { background: var(--bg-secondary); color: var(--logo-teal); }

.expand-toggle i { width: 16px; height: 16px; transition: transform 0.3s ease; }

.indicator.expanded .expand-toggle i { transform: rotate(180deg); }

.prediction-toggle-container { margin: 1rem 0; text-align: center }

.prediction-toggle-btn { background: var(--bg-secondary); color: var(--text-secondary); border: 2px solid var(--border-color); padding: 8px 16px; border-radius: var(--control-radius); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px }

.prediction-toggle-btn:hover { background: var(--logo-orange); color: var(--color-white); border-color: var(--logo-orange); transform: translateY(-1px) }

.prediction-toggle-btn i { width: 16px; height: 16px }

.prediction-markets-hidden { display: none !important }

.prediction-bar-container { margin: 6px 0 8px; display: flex; flex-direction: column; gap: 4px; }

.prediction-bar-row { display: flex; align-items: center; gap: 8px; }

.prediction-bar-label { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); min-width: 50px; flex-shrink: 0; }

.prediction-section-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 10px; margin-bottom: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--border-color); cursor: pointer; user-select: none; display: flex; align-items: center; gap: 4px; }
.prediction-section-label::before { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; }
.prediction-section-label.collapsed::before { transform: rotate(-45deg); }
.metric-section-body { overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 4px 0; }
.metric-section.collapsed .metric-section-body { max-height: 0; }
.metric-section.collapsed .prediction-section-label { margin-bottom: 0; border-bottom-color: transparent; }

.prediction-bar-track { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; position: relative; }

.prediction-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }

.prediction-bar-fill.yes-bar { background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); }
.prediction-bar-fill.no-bar { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }
.prediction-bar-fill.dem-bar { background: linear-gradient(90deg, #3498db 0%, #5dade2 100%); }
.prediction-bar-fill.gop-bar { background: linear-gradient(90deg, #e74c3c 0%, #f1948a 100%); }

.prediction-bar-fill.fomc-hold { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }
.prediction-bar-fill.fomc-hike { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.prediction-bar-fill.fomc-cut { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }

.bar-dem { background: linear-gradient(90deg, #3498db 0%, #5dade2 100%) !important; }
.bar-gop { background: linear-gradient(90deg, #e74c3c 0%, #f1948a 100%) !important; }
.bar-yes { background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%) !important; }
.bar-no { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%) !important; }

.prediction-bar-value { font-size: 0.75rem; font-weight: 700; min-width: 32px; text-align: right; }

.prediction-bar-value.yes-value { color: #22c55e; }
.prediction-bar-value.no-value { color: #ef4444; }
.prediction-change { font-size: 0.65rem; margin-left: 4px; font-weight: 600; }
.prediction-change.positive { color: #22c55e; }
.prediction-change.negative { color: #ef4444; }

.prediction-dual-bar .prediction-bar-track { height: 12px; }
.prediction-dual-bar .bar-yes { border-radius: 4px 0 0 4px; }
.prediction-dual-bar .bar-no { border-radius: 0 4px 4px 0; }

/* FOMC STACKED BAR */
.fomc-stacked-bar-row { margin-bottom: 8px; }
.fomc-stacked-bar-track { display: flex; height: 24px; background: var(--bg-tertiary); border-radius: 6px; overflow: hidden; position: relative; }
.fomc-segment { display: flex; align-items: center; justify-content: center; height: 100%; transition: width 0.4s ease; position: relative; min-width: 0; }
.fomc-segment-label { font-size: 11px; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.fomc-hold { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }
.fomc-hike { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.fomc-cut { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }
.fomc-legend { display: flex; gap: 12px; margin-top: 6px; justify-content: center; }
.fomc-legend-item { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.fomc-legend-color { width: 8px; height: 8px; border-radius: 2px; }

/* PREDICTION HISTORY */
.prediction-history-row { transition: background-color 0.2s ease; }
.prediction-history-row:hover { background-color: rgba(var(--logo-teal-rgb), 0.05); }
.prediction-history-date { cursor: help; }

.category[data-category="Financial Markets"] .indicators-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.category[data-category="Financial Markets"] .indicator { max-width: 100%; min-width: 0; }
.category[data-category="Financial Markets"] .indicator-name { overflow-wrap: break-word; word-break: break-word; font-size: 0.8rem; }
.category[data-category="Financial Markets"] .month-value { font-size: 0.75rem; }

.category[data-category="World Cup"] .indicators-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.category[data-category="World Cup"] .indicator {
  padding: 0.6rem;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.category[data-category="World Cup"] .indicator.expanded {
  overflow: visible;
}

.category[data-category="World Cup"] .indicator.expanded .explanation-text {
  display: block;
}

.category[data-category="World Cup"] .explanation-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.category[data-category="World Cup"] .explanation-text a {
  color: var(--logo-teal);
  text-decoration: underline;
}


/* CHART OVERLAY */
.chart-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-primary); -webkit-border-radius: var(--card-radius); border-radius: var(--card-radius); display: none; flex-direction: column; z-index: 100; opacity: 0; transform: scale(0.95); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); overflow: hidden; will-change: opacity, transform; }
.chart-overlay.show { display: flex; opacity: 1; transform: scale(1); }
.chart-overlay-header { display: none; }
.chart-overlay-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-overlay-title i { width: 18px; height: 18px; color: var(--color-primary); }
.chart-overlay-title-floating { position: absolute; bottom: 6px; left: 6px; right: 40px; margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--text-primary); z-index: 10; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-overlay-close { padding: 2px 8px; border: 1px solid var(--border-color); border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 0.7rem; font-weight: 500; line-height: 1; cursor: pointer; transition: all 0.15s ease; flex-shrink: 0; }
.chart-overlay-close:hover { background: var(--logo-teal); color: var(--color-white); border-color: var(--logo-teal); }
.chart-overlay-range-picker { display: flex; align-items: center; gap: 4px; padding: 8px 8px 4px 8px; justify-content: flex-start; }
.chart-overlay-range-picker .chart-overlay-close { margin-left: auto; }
.chart-overlay-range-picker .range-btn { padding: 2px 8px; font-size: 0.7rem; }
.chart-overlay-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; position: relative; }
.chart-overlay-body .chart-overlay-canvas { flex: 1; min-height: 0; width: 100% !important; height: 100% !important; background: var(--bg-primary); }
.chart-overlay-canvas { width: 100% !important; height: 100% !important; min-height: 0; background: var(--bg-primary); }
.chart-overlay-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); }
.chart-overlay-loading-spinner { width: 32px; height: 32px; border: 3px solid var(--color-gray-200); border-top: 3px solid var(--color-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.chart-overlay-error { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--text-muted); padding: 20px; }
.chart-overlay-error-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ICON BUTTON STYLING */
.info-btn, .chart-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition-hover);
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.info-btn:hover, .chart-btn:hover {
  background: var(--bg-secondary);
  color: var(--logo-teal);
}

.info-btn.active, .chart-btn.active {
  background: var(--logo-teal);
  color: #000000;
}

.info-btn i, .info-btn svg, .chart-btn i, .chart-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Explanation callout (info button) */
.explanation-text {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.explanation-text .explanation-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.explanation-text .explanation-header svg,
.explanation-text .explanation-header i {
  width: 14px;
  height: 14px;
  color: var(--logo-teal);
}
.explanation-text .explanation-body {
  margin: 0;
  color: var(--text-secondary);
}


/* RESPONSIVE */
@media (max-width: 768px) { .indicators-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; } .indicator { padding: 0.6rem; border-radius: 6px; } .month-label { font-size: 0.63rem; } .month-value { font-size: 0.68rem; gap: 2px; } .category-title { font-size: clamp(1rem, 4vw, 1.4rem); gap: 6px; } .category-icon { width: 1.25em; height: 1.25em; } .data-row { padding: 4px 0; gap: 4px; } .change-indicators { gap: 4px; } .change-metric-title { font-size: 0.58rem; } .change-metric-title-icon, .change-metric-title-icon i { width: 7px; height: 7px; } .change-metric-value { font-size: 0.8rem; } .latest-data-row { padding: 2px 0; } .search-wrapper { max-width: 240px; } #essay-filters { padding: 0.5rem 0 0; } }

@media (max-width: 480px) { .page-title { padding-left: 0.5rem; padding-right: 0.5rem; } .indicators-grid { grid-template-columns: repeat(2, 1fr); gap: 0.35rem; } .indicator { padding: 0.4rem; border-radius: 6px; gap: 0.2rem; } .indicator-name { font-size: 0.8rem; } .indicator-header { gap: 3px; } .indicator-agency { font-size: 0.7rem; } .latest-data-row { padding: 2px 0; } .data-label, .data-value { font-size: 0.75rem; } .data-row { padding: 2px 0; gap: 3px; } .month-label { font-size: 0.6rem; } .month-value { font-size: 0.63rem; gap: 2px; } .category { padding: 0.75rem 0.5rem; } .change-indicators { flex-wrap: nowrap; gap: 3px; } .change-metric-btn { padding: 2px 4px; font-size: 0.6rem; } .change-metric-title { font-size: 0.5rem; } .change-metric-value { font-size: 0.65rem; } }

@media (max-width: 360px) { .indicator-name { font-size: 0.8rem; } .indicator { padding: 0.4rem; } .indicators-grid { gap: 0.35rem; } .change-indicators { flex-wrap: wrap; } }



/* EXPLANATION MODAL */
.indicator { position: relative; }
.indicator-explanation {
  display: none;
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.85rem;
}

.indicator.info-open .indicator-explanation {
  display: block;
}

.indicator-explanation-header {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.indicator-explanation-body a {
  color: var(--logo-teal);
  text-decoration: underline;
}

.indicator-explanation-body a:hover {
  color: var(--logo-orange);
}

/* EMPTY STATE */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: 0.95rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--card-radius); }
.empty-state i { width: 32px; height: 32px; margin-bottom: 8px; opacity: 0.4; }

/* RANGE PICKER */
.chart-modal-range-picker { display: flex; align-items: center; gap: 4px; padding: 0.5rem 1.5rem; border-bottom: 1px solid var(--border-color); background: var(--bg-secondary); flex-shrink: 0; order: 2; }
.chart-modal-range-picker #closeChartModal { margin-left: auto; }
.range-btn { padding: 4px 12px; border: 1px solid var(--border-color); border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; }
.range-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.range-btn.active { background: var(--logo-teal); color: #fff; border-color: var(--logo-teal); }

@media (max-width: 400px) {
  .chart-overlay-title { display: none; }
  .chart-overlay-range-picker { justify-content: center; }
}

@media (max-width: 420px) {
  .indicators-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .indicator {
    padding: 0.5rem;
  }
  .category {
    padding: 0.5rem 0.5rem;
  }
  .category-title {
    font-size: 1rem;
    gap: 6px;
  }
  .change-indicators {
    gap: 4px;
  }
  .change-metric-btn {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}

/* ========================================
   HORMUZ CRISIS CARD - MINIMAL
   ======================================== */
.hormuz-card { display: flex; flex-direction: column; gap: 4px; }
.hormuz-top-row { display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.hormuz-count-num { font-size: 1.4rem; font-weight: 700; color: #dc2626; letter-spacing: -0.02em; }
.hormuz-count-unit { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.hormuz-status-badge { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #dc2626; background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.2); border-radius: 3px; padding: 1px 4px; margin-left: auto; }
.hormuz-capacity-row { display: flex; align-items: center; gap: 6px; }
.hormuz-capacity-track { flex: 1; height: 4px; background: rgba(var(--color-primary-rgb), 0.1); border-radius: 2px; overflow: hidden; }
.hormuz-capacity-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; min-width: 2px; }
.hormuz-capacity--critical { background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%); }
.hormuz-capacity--low { background: linear-gradient(90deg, #f97316 0%, #fb923c 100%); }
.hormuz-capacity--normal { background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); }
.hormuz-capacity-text { font-size: 0.6rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.hormuz-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px 0; }
.hormuz-metric { background: rgba(var(--color-primary-rgb), 0.05); border: 1px solid var(--border-color); border-radius: 4px; padding: 5px 8px; display: flex; flex-direction: column; gap: 2px; }
.hormuz-metric--danger { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.25); }
.hormuz-metric-val { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.hormuz-metric--danger .hormuz-metric-val { color: #dc2626; }
.hormuz-metric-lbl { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.hormuz-section-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 8px; margin-bottom: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--border-color); }
.hormuz-daily-list { display: flex; flex-direction: column; gap: 2px; }
.hormuz-daily-item { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 3px; font-size: 0.75rem; }
.hormuz-daily-item:hover { background: rgba(var(--color-primary-rgb), 0.05); }
.hormuz-daily--low { background: rgba(220, 38, 38, 0.06); }
.hormuz-daily--low .hormuz-daily-count { color: #dc2626; font-weight: 700; }
.hormuz-daily-date { color: var(--text-muted); min-width: 50px; font-weight: 500; }
.hormuz-daily-count { font-weight: 600; color: var(--text-primary); min-width: 24px; }
.hormuz-daily-badge { font-size: 0.6rem; color: #dc2626; font-weight: 600; margin-left: auto; }
.hormuz-monthly-grid { display: flex; gap: 12px; }
.hormuz-monthly-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hormuz-monthly-name { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.hormuz-monthly-val { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.hormuz-monthly--low { color: #dc2626; }
.sparkline-container { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; border-radius: inherit; }
.sparkline-container canvas { position: absolute; bottom: 0; left: 0; width: 100% !important; height: 100% !important; }
.indicator:focus-visible { outline: 2px solid var(--logo-teal); outline-offset: 2px; }
.indicator-deep-link { outline: 2px solid var(--logo-teal); outline-offset: 2px; animation: deep-link-pulse 1.8s ease-out; }
@keyframes deep-link-pulse { 0% { outline-color: var(--logo-teal); } 100% { outline-color: transparent; } }
#latest-13f-filings { margin-top: 1rem; }

#world-cup { min-height: 500px; }

/* =========================================
   Filter-driven section visibility
   All show/hide is handled via data-filter on #categories.
   No JS style.display needed for section toggling.
   ========================================= */

#latest-13f-filings-anchor { display: block; pointer-events: none; }
#categories #latest-13f-filings,
#categories #world-cup { display: block; }

/* When a specific data category is active: hide 13F and World Cup */
#categories[data-filter]:not([data-filter="all"]):not([data-filter="latest"]):not([data-filter="13F Holdings"]):not([data-filter="World Cup"]) #latest-13f-filings,
#categories[data-filter]:not([data-filter="all"]):not([data-filter="latest"]):not([data-filter="13F Holdings"]):not([data-filter="World Cup"]) #world-cup { display: none; }

/* When 13F filter is active: show only 13F, hide everything else */
#categories[data-filter="13F Holdings"] #indicator-categories,
#categories[data-filter="13F Holdings"] #world-cup { display: none; }
#categories[data-filter="13F Holdings"] #latest-13f-filings { display: block; }

/* When World Cup filter is active: show only World Cup, hide everything else */
#categories[data-filter="World Cup"] #indicator-categories,
#categories[data-filter="World Cup"] #latest-13f-filings { display: none; }
#categories[data-filter="World Cup"] #world-cup { display: block; }

/* ========================================
   POLL TABLE STYLES
   ======================================== */
.poll-table-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.poll-table-header {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.poll-date {
    color: var(--logo-teal);
}

.poll-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85rem;
}

.poll-candidate {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.poll-prob {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.poll-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.3);
}

.poll-history-date {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 50px;
}

.poll-history-prob {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: right;
}

.prediction-date-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
}

/* Inline style replacements */
.trend-arrow {
    margin-left: 4px;
    font-size: 11px;
}

.trend-arrow-small {
    margin-left: 2px;
    font-size: 11px;
}

.prediction-bar-row-inline {
    display: flex;
    align-items: center;
}

.prediction-value {
    font-size: 12px;
    margin-right: 4px;
    font-weight: bold;
}

.prediction-value-left {
    font-size: 12px;
    margin-left: 4px;
    font-weight: bold;
}

.prediction-bar-track-inline {
    height: 10px;
    flex: 1;
    position: relative;
}

.prediction-history-row-inline {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.15);
}

.prediction-history-date-inline {
    min-width: 70px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.prediction-history-content {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: space-around;
}

.prediction-yes-value {
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
}

.prediction-no-value {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
}

.prediction-hold-value {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
}

.prediction-hike-value {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
}

.prediction-cut-value {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
}

.prediction-history-item {
    display: flex;
    align-items: center;
}

.month-change-inline {
    margin-left: 8px;
    font-weight: 600;
}

/* Inline sparkline on card face */
.sparkline-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.sparkline-container canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.35;
}

.indicator:hover .sparkline-container canvas {
  opacity: 0.7;
}

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


/* Skeleton loading cards */
.skeleton-card {
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255,255,255,0.04) 100%);
  overflow: hidden;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.12) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 65%; }
.skeleton-line.medium { width: 85%; }
.skeleton-line.long { width: 95%; }
.skeleton-line.tiny { height: 10px; width: 40%; margin-top: 12px; }

.skeleton-category {
  background: rgba(var(--bg-secondary-rgb), 0.4);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(var(--border-color-rgb), 0.4);
}

/* ========================================
   WORLD CUP SCORE CARD
   ======================================== */
.match-score-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.team-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.team-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.match-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--logo-teal);
  letter-spacing: 1px;
  padding: 0 8px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}

.match-time {
  font-weight: 600;
  color: #ef4444;
}

#match-status-badge.live {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   13F HOLDINGS STYLES
   ======================================== */
.firm-card-title { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; letter-spacing: -0.01em; }
.firm-filter-buttons { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; padding: 0 0.2rem; flex-wrap: wrap; }
.firm-filter-btn { padding: 4px 10px; background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-weight: 500; transition: all 0.2s ease; }
.firm-filter-btn.active { background: var(--logo-teal); color: white; border-color: var(--logo-teal); font-weight: 600; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(var(--logo-teal-rgb), 0.25); }
.firm-filter-btn:hover:not(.active) { background: var(--bg-secondary); border-color: var(--text-muted); }
.firm-holdings-list { display: flex; flex-direction: column; gap: 3px; max-height: 320px; overflow-y: auto; padding-right: 3px; }
.holding-item { background: var(--bg-secondary); padding: 5px 8px 5px 12px; border-radius: 4px; font-size: 11px; transition: all 0.15s ease; display: flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent; position: relative; }
.holding-item:hover { background: var(--bg-tertiary); border-color: var(--border-color); transform: translateX(1px); }
.holding-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--pct-color, var(--logo-teal)); border-radius: 1px; transition: background 0.3s ease; }
.holding-ticker { font-weight: 700; color: var(--text-primary); font-size: 12px; letter-spacing: -0.02em; flex-shrink: 0; position: relative; z-index: 1; }
.holding-ticker a { color: var(--text-primary); text-decoration: none; transition: color 0.2s ease; }
.holding-ticker a:hover { color: var(--logo-teal); text-decoration: underline; }
.holding-name { font-weight: 500; color: var(--text-secondary); font-size: 10px; line-height: 1.2; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.holding-pct { color: var(--logo-teal); font-size: 10px; font-weight: 600; min-width: 28px; text-align: right; flex-shrink: 0; position: relative; z-index: 1; }
.firm-empty-state { text-align: center; padding: 1.5rem 0.75rem; color: var(--text-muted); font-size: 0.8rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; }
.firm-description { padding: 8px 0; border-top: 1px solid var(--border-color); margin-top: 8px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
.firm-description a { color: var(--logo-teal); text-decoration: none; font-weight: 500; }
.firm-description a:hover { text-decoration: underline; color: var(--logo-orange); }

/* 13F Mobile Responsiveness */
@media (max-width: 768px) {
  .firm-holdings-list { max-height: 280px; }
  .holding-item { padding: 4px 6px; }
  .firm-filter-btn { padding: 3px 8px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .firm-card-title { font-size: 0.85rem; }
  .firm-filter-buttons { gap: 0.3rem; }
  .firm-filter-btn { padding: 3px 7px; font-size: 0.65rem; }
  .holding-item { padding: 4px 5px; }
}

#firmCardsContainer { min-height: 400px; }
