:root {
  --market-bg: #040506;
  --market-panel: rgba(12, 15, 19, 0.92);
  --market-card: rgba(17, 21, 27, 0.9);
  --market-line: rgba(255, 255, 255, 0.09);
  --market-line-strong: rgba(255, 255, 255, 0.16);
  --market-text: #f4f7f1;
  --market-soft: #c9d2ca;
  --market-muted: #8d978f;
  --market-gold: #d8b15a;
  --market-gold-bright: #f2d27b;
  --market-green: #7dff8c;
  --market-red: #ff7878;
  --market-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --market-wrap: 1200px;
  --market-nav-height: 76px;
  --market-gutter: clamp(16px, 4vw, 28px);
  --market-radius-sm: 12px;
  --market-radius-md: 18px;
  --market-radius-lg: 24px;
  --market-card-pad: clamp(20px, 3vw, 28px);
}

.wrap {
  max-width: var(--market-wrap, 1200px);
  padding-inline: var(--market-gutter);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--market-nav-height);
  border-bottom: 1px solid rgba(216, 177, 90, 0.12);
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.topbar-inner {
  min-height: var(--market-nav-height);
  gap: 18px;
}

.brand-copy strong {
  letter-spacing: 0.02em;
}

.top-actions {
  min-width: 0;
}

.nav-group {
  gap: 6px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.nav-link {
  white-space: nowrap;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--market-text);
  border-color: rgba(242, 210, 123, 0.24);
  background: rgba(216, 177, 90, 0.075);
}

.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(242, 210, 123, 0.16);
  color: var(--market-gold-bright);
  font-size: 10px;
  font-weight: 900;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 70;
  display: grid;
  min-width: 300px;
  padding: 10px;
  border: 1px solid rgba(242, 210, 123, 0.16);
  border-radius: 18px;
  background: rgba(8, 10, 13, 0.98);
  box-shadow: var(--market-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--market-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--market-text);
  background: rgba(216, 177, 90, 0.09);
}

.locale-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.locale-links .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.locale-links .lang-switch:hover,
.locale-links .lang-switch:focus-visible {
  color: var(--market-text);
  border-color: rgba(242, 210, 123, 0.24);
  background: rgba(216, 177, 90, 0.075);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--market-text);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.mobile-nav-shell[hidden] {
  display: none;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(390px, calc(100vw - 28px));
  max-width: 100%;
  padding: 18px;
  border-left: 1px solid rgba(242, 210, 123, 0.16);
  background: rgba(8, 10, 13, 0.98);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.mobile-nav-shell[dir="ltr"] .mobile-nav-panel {
  left: 0;
  right: auto;
  border-left: 0;
  border-right: 1px solid rgba(242, 210, 123, 0.16);
  box-shadow: 28px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(-102%);
}

.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-open .mobile-nav-shell {
  pointer-events: auto;
}

.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-open .mobile-nav-panel,
.mobile-nav-open .mobile-nav-shell[dir="ltr"] .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.localized-ar .mobile-nav-head {
  letter-spacing: 0;
  text-transform: none;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--market-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-links {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.mobile-nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--market-text);
  font-size: 14px;
  font-weight: 800;
  text-align: start;
  text-decoration: none;
}

.mobile-nav-links .nav-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 210, 123, 0.14);
  border-radius: 16px;
  background: rgba(216, 177, 90, 0.045);
}

.mobile-nav-links .nav-menu > .nav-link {
  background: rgba(216, 177, 90, 0.08);
}

.mobile-nav-links .nav-dropdown {
  position: static;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav-links .nav-dropdown a {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.search-suggest-panel {
  position: absolute;
  z-index: 60;
  width: min(520px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(242, 210, 123, 0.18);
  border-radius: 16px;
  background: rgba(8, 10, 13, 0.98);
  box-shadow: var(--market-shadow);
}

.search-suggest-panel a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--market-text);
  text-decoration: none;
}

.search-suggest-panel a:hover,
.search-suggest-panel a:focus-visible,
.search-suggest-panel a.is-active {
  background: rgba(216, 177, 90, 0.09);
}

.search-suggest-panel span,
.search-suggest-panel small {
  color: var(--market-muted);
}

.analyzer-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.analyzer-brief-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ranking-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.ranking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(242, 210, 123, 0.9), rgba(125, 255, 140, 0.45));
}

.ranking-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ranking-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--market-soft);
  font-size: 11px;
  font-weight: 800;
}

.ranking-score {
  height: 7px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--market-gold), var(--market-green));
}

.localized-page .market-copy {
  line-height: 1.85;
}

.localized-ar {
  font-family: "IBM Plex Sans Arabic", "Cairo", Inter, system-ui, sans-serif;
  text-align: right;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

.localized-ar .topbar-inner,
.localized-ar .top-actions,
.localized-ar .nav-group,
.localized-ar .market-actions,
.localized-ar .insight-label-row,
.localized-ar .insight-card-meta {
  direction: rtl;
}

.localized-ar .breadcrumb {
  justify-content: flex-start;
  direction: rtl;
  gap: 10px;
  line-height: 1.7;
}

.localized-ar .insight-article-body {
  max-width: 880px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.localized-ar .market-card,
.localized-ar .insight-card,
.localized-ar .deep-link-card,
.localized-ar .market-panel,
.localized-ar .hero-copy,
.localized-ar .section-head,
.localized-ar .insight-article-body,
.localized-ar .insight-sidebar {
  text-align: right;
}

.localized-ar .market-btn,
.localized-ar .nav-link,
.localized-ar .lang-switch,
.localized-ar .insight-category-badge {
  letter-spacing: 0;
}

.localized-ar .market-hero h1,
.localized-ar .market-panel h1,
.localized-ar .market-panel h2,
.localized-ar .market-panel h3,
.localized-ar .market-copy,
.localized-ar .market-lead {
  letter-spacing: 0;
  line-height: 1.75;
}

.localized-ar .market-hero h1,
.localized-ar .hero-copy h1,
.localized-ar .detail-title h1,
.localized-ar .insight-hero-card h1 {
  font-family: "IBM Plex Sans Arabic", "Cairo", "Space Grotesk", sans-serif;
  font-weight: 800;
  line-height: 1.18;
  max-width: 920px;
}

.localized-ar .hero-lead,
.localized-ar .market-lead,
.localized-ar .insight-article-body p,
.localized-ar .market-copy {
  line-height: 1.95;
}

.localized-ar .insight-article-body p,
.localized-ar .insight-article-body li {
  font-size: 16.5px;
}

.localized-ar .insight-article-body h2 {
  margin-top: 50px;
  line-height: 1.42;
}

.localized-ar .insight-article-body h3 {
  line-height: 1.5;
}

.localized-ar .eyebrow,
.localized-ar .insight-category-badge,
.localized-ar .deep-link-card > span,
.localized-ar .insight-summary-box span,
.localized-ar .insight-meta-clusters strong,
.localized-ar .hero-stat span,
.localized-ar .metric-card span,
.localized-ar .score-row span:first-child {
  letter-spacing: 0;
  text-transform: none;
}

.localized-ar .topbar-inner {
  align-items: center;
}

.localized-ar .top-actions {
  justify-content: flex-end;
}

.localized-ar .nav-group {
  justify-content: flex-end;
}

.localized-ar .nav-link {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 12.5px;
  line-height: 1.35;
}

.localized-ar .locale-links {
  flex-direction: row-reverse;
}

.localized-ar .market-actions,
.localized-ar .cta-actions,
.localized-ar .hero-actions,
.localized-ar .insight-meta-bar,
.localized-ar .research-card-top,
.localized-ar .research-meta-row,
.localized-ar .research-symbol-row,
.localized-ar .insight-card-meta,
.localized-ar .tile-topline,
.localized-ar .tile-metrics,
.localized-ar .detail-meta,
.localized-ar .price-line {
  justify-content: flex-start;
  direction: rtl;
}

.localized-ar .market-btn,
.localized-ar .cta-btn,
.localized-ar .lang-switch {
  font-weight: 800;
  line-height: 1.25;
}

.localized-ar .insight-layout {
  grid-template-columns: 296px minmax(0, 1fr);
}

.localized-ar .insight-article-body {
  grid-column: 2;
}

.localized-ar .insight-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.localized-ar .insight-toc ol,
.localized-ar .insight-article-body ul,
.localized-ar .insight-article-body ol,
.localized-ar .insight-sources ul,
.localized-ar .insight-list,
.localized-ar .risk-list,
.localized-ar .spy-compare-col ul {
  padding-inline-start: 0;
  padding-inline-end: 22px;
}

.localized-ar .pull-quote {
  border-inline-start: 0;
  border-inline-end: 3px solid var(--market-gold-bright);
  border-radius: 14px 0 0 14px;
}

.localized-ar .rc-screener-cta {
  direction: rtl;
}

.localized-ar .data-status-top span:last-child {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.localized-disclaimer {
  font-size: 13px;
  color: var(--market-muted);
}

.market-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(216, 177, 90, 0.1), transparent 30%),
    linear-gradient(180deg, #050607 0%, #090b0f 46%, #040506 100%);
  color: var(--market-text);
}

.market-shell {
  padding: 44px 0 56px;
}

.market-hero,
.market-section {
  margin-bottom: 28px;
}

.market-hero-panel,
.market-panel,
.market-card {
  border: 1px solid var(--market-line);
  background: linear-gradient(180deg, rgba(17, 21, 27, 0.94), rgba(9, 11, 15, 0.92));
  box-shadow: var(--market-shadow);
  backdrop-filter: blur(18px);
}

.market-hero-panel {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  position: relative;
}

.market-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 210, 123, 0.55), transparent);
}

.market-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--market-gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-hero h1,
.market-section h2,
.detail-title h1 {
  margin: 14px 0 14px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--market-muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--market-gold-bright);
  text-decoration: none;
}

.market-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
}

.market-lead {
  max-width: 700px;
  color: var(--market-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.market-actions,
.search-row,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-row {
  margin-top: 24px;
}

.market-search {
  min-width: min(100%, 340px);
  min-height: 50px;
  border: 1px solid var(--market-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--market-text);
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.market-search:focus {
  border-color: rgba(242, 210, 123, 0.55);
  box-shadow: 0 0 0 4px rgba(216, 177, 90, 0.1);
}

.market-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--market-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--market-text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.market-btn:hover,
.market-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 210, 123, 0.4);
  background: rgba(216, 177, 90, 0.08);
}

.market-btn.primary {
  border: 0;
  color: #151006;
  background: linear-gradient(135deg, var(--market-gold-bright), var(--market-gold));
}

.search-error {
  min-height: 22px;
  margin-top: 10px;
  color: var(--market-gold-bright);
  font-size: 13px;
}

.hero-stat-grid,
.market-grid,
.detail-grid,
.metric-grid,
.related-grid,
.cta-grid {
  display: grid;
  gap: 16px;
}

.hero-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat {
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--market-line);
  background: rgba(255, 255, 255, 0.035);
}

.hero-stat span,
.metric-card span,
.score-row span:first-child {
  display: block;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.market-panel {
  border-radius: var(--market-radius-lg);
  padding: var(--market-card-pad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head p,
.market-copy,
.faq-preview p,
.disclaimer-note {
  color: var(--market-soft);
  line-height: 1.7;
}

.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-card {
  border-radius: var(--market-radius-md);
  padding: clamp(18px, 2.4vw, 22px);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.editorial-feature,
.editorial-card,
.spotlight-card {
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.editorial-feature {
  min-height: 100%;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(216, 177, 90, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.editorial-feature:hover,
.editorial-feature:focus-visible,
.editorial-card:hover,
.editorial-card:focus-visible,
.spotlight-card:hover,
.spotlight-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 210, 123, 0.35);
  background: rgba(216, 177, 90, 0.065);
}

.editorial-feature h3 {
  margin: 12px 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.editorial-feature p,
.editorial-card p,
.spotlight-card p {
  color: var(--market-soft);
  line-height: 1.7;
}

.editorial-stack {
  display: grid;
  gap: 12px;
}

.editorial-card,
.spotlight-card {
  display: block;
  padding: 18px;
}

.editorial-card h3,
.spotlight-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.25;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.theme-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--market-line);
  border-radius: 999px;
  color: var(--market-soft);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.theme-pill:hover,
.theme-pill:focus-visible {
  color: var(--market-gold-bright);
  border-color: rgba(242, 210, 123, 0.35);
}

/* ===== Humanized Market Research Layer ===== */
.research-head {
  margin-bottom: 18px;
}

.research-head h2 {
  margin: 10px 0;
}

.research-head p {
  max-width: 760px;
  color: var(--market-soft);
  line-height: 1.7;
}

.research-featured-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 16px;
}

.research-timeline-list {
  display: grid;
  gap: 12px;
}

.research-timeline-card,
.research-theme-card,
.research-highlight {
  display: block;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.research-featured-row > .research-timeline-card {
  min-height: 100%;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(216, 177, 90, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.research-timeline-card:hover,
.research-timeline-card:focus-visible,
.research-theme-card:hover,
.research-theme-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(242, 210, 123, 0.35);
  background: rgba(216, 177, 90, 0.065);
}

.research-card-top,
.research-meta-row,
.research-symbol-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.research-card-top {
  justify-content: space-between;
}

.research-timeline-card h3,
.research-theme-card h3,
.research-highlight h3 {
  margin: 10px 0;
  color: var(--market-text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.24;
}

.research-featured-row > .research-timeline-card h3 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.research-timeline-card p,
.research-theme-card p,
.research-highlight p {
  color: var(--market-soft);
  line-height: 1.7;
}

.research-signal,
.research-symbol {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(216, 177, 90, 0.24);
  border-radius: 999px;
  color: var(--market-gold-bright);
  background: rgba(216, 177, 90, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.research-symbol {
  color: var(--market-soft);
  border-color: var(--market-line);
  background: rgba(255, 255, 255, 0.035);
}

.research-meta-row {
  margin: 14px 0 10px;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
}

.research-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.research-highlight {
  margin-top: 16px;
}

.stock-tile {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.stock-tile:hover,
.stock-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(242, 210, 123, 0.32);
  background: rgba(216, 177, 90, 0.065);
}

.asset-card {
  position: relative;
  isolation: isolate;
}

.asset-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(242, 210, 123, 0.08), transparent 38%, rgba(125, 255, 140, 0.05));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.asset-card:hover::before,
.asset-card:focus-visible::before {
  opacity: 1;
}

.tile-topline,
.tile-metrics,
.detail-meta,
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tile-topline strong {
  font-size: 22px;
}

.setup-badge,
.risk-badge,
.heat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 177, 90, 0.24);
  color: var(--market-gold-bright);
  background: rgba(216, 177, 90, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.heat-hot {
  border-color: rgba(125, 255, 140, 0.3);
  color: var(--market-green);
  background: rgba(125, 255, 140, 0.1);
}

.heat-warm,
.heat-steady {
  color: var(--market-gold-bright);
}

.heat-volatile {
  border-color: rgba(255, 120, 120, 0.35);
  color: var(--market-red);
  background: rgba(255, 120, 120, 0.08);
}

.heat-cool {
  color: var(--market-soft);
}

.trend-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-inline-end: 6px;
  border-inline-start: 5px solid transparent;
  border-inline-end: 5px solid transparent;
}

.trend-arrow.up {
  border-bottom: 8px solid currentColor;
}

.trend-arrow.down {
  border-top: 8px solid currentColor;
}

.tile-name {
  margin-top: 10px;
  min-height: 44px;
  color: var(--market-soft);
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 5px;
  height: 46px;
  margin: 14px 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--market-line);
  background: rgba(255, 255, 255, 0.028);
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, var(--market-gold-bright), rgba(216, 177, 90, 0.45));
  animation: riseIn 0.75s ease both;
}

.mini-chart .bar-a { height: 42%; }
.mini-chart .bar-b { height: 64%; animation-delay: 0.05s; }
.mini-chart .bar-c { height: 52%; animation-delay: 0.1s; }
.mini-chart .bar-d { height: 82%; animation-delay: 0.15s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.tile-metrics {
  margin-top: auto;
  font-weight: 800;
}

.positive {
  color: var(--market-green);
}

.negative {
  color: var(--market-red);
}

.mini-score,
.score-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-score {
  margin: 14px 0 8px;
}

.mini-score span,
.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--market-gold), var(--market-green));
  transition: width 0.45s ease;
}

.tile-score {
  color: var(--market-muted);
  font-size: 13px;
}

.content-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-preview details,
.stock-faq details {
  border-top: 1px solid var(--market-line);
  padding: 16px 0;
}

.faq-preview summary,
.stock-faq summary {
  cursor: pointer;
  color: var(--market-text);
  font-weight: 800;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.detail-title h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
}

.detail-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--market-muted);
  font-weight: 700;
}

.price-line {
  justify-content: flex-start;
  margin-top: 26px;
}

.price-line strong {
  font-size: clamp(32px, 5vw, 54px);
}

.score-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.score-gauge {
  --score: 0deg;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #11151b 0 57%, transparent 58%),
    conic-gradient(var(--market-gold-bright) var(--score), rgba(255, 255, 255, 0.1) 0deg);
  transition: background 0.5s ease;
}

.score-gauge strong {
  font-size: 48px;
}

.score-card p {
  color: var(--market-soft);
  line-height: 1.6;
}

.detail-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  border: 1px solid var(--market-line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.score-row {
  display: grid;
  grid-template-columns: 110px 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--market-line);
}

.insight-list,
.risk-list {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--market-soft);
  line-height: 1.8;
}

.related-grid,
.cta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-link {
  display: block;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.related-link span {
  display: block;
  margin-top: 8px;
  color: var(--market-muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.data-status-card {
  border: 1px solid var(--market-line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.data-status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.data-status-top strong {
  color: var(--market-text);
}

.data-status-top span:last-child {
  margin-inline-start: auto;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--market-gold-bright);
  box-shadow: 0 0 0 5px rgba(216, 177, 90, 0.1);
}

.data-status-card p {
  color: var(--market-soft);
  line-height: 1.6;
}

.data-status-card summary {
  cursor: pointer;
  color: var(--market-gold-bright);
  font-weight: 800;
}

.status-live .data-status-dot,
.status-live.data-status-card .data-status-dot,
.status-live {
  border-color: rgba(125, 255, 140, 0.35);
}

.status-live .data-status-dot {
  background: var(--market-green);
}

.status-fallback .data-status-dot,
.status-stale .data-status-dot {
  background: var(--market-gold-bright);
}

.status-unavailable .data-status-dot {
  background: var(--market-red);
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.health-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.health-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(6, minmax(86px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.health-row span {
  color: var(--market-soft);
  font-size: 13px;
}

.health-row strong {
  display: block;
  color: var(--market-text);
  font-size: 14px;
}

.health-row small {
  display: block;
  margin-top: 3px;
  color: var(--market-muted);
  line-height: 1.35;
}

.health-head {
  background: rgba(216, 177, 90, 0.1);
}

.health-head span {
  color: var(--market-gold-bright);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.health-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid var(--market-line);
  font-size: 12px;
  font-weight: 800;
}

.health-healthy {
  color: var(--market-green);
  border-color: rgba(125, 255, 140, 0.35);
  background: rgba(125, 255, 140, 0.1);
}

.health-degraded,
.health-mock-only {
  color: var(--market-gold-bright);
  border-color: rgba(216, 177, 90, 0.35);
  background: rgba(216, 177, 90, 0.1);
}

.health-unavailable {
  color: var(--market-red);
  border-color: rgba(255, 91, 91, 0.35);
  background: rgba(255, 91, 91, 0.1);
}

.health-unknown {
  color: var(--market-soft);
  background: rgba(255, 255, 255, 0.05);
}

.trust-pill,
.compact-card,
.allocation-row,
.screener-row,
.screener-head {
  border: 1px solid var(--market-line);
  background: rgba(255, 255, 255, 0.035);
}

.trust-pill {
  border-radius: 16px;
  padding: 14px;
}

.trust-pill span,
.compact-card small,
.screener-row small {
  display: block;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 700;
}

.trust-pill strong {
  display: block;
  margin-top: 6px;
  color: var(--market-text);
}

.allocation-row {
  display: grid;
  grid-template-columns: 120px 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-card {
  border: 1px solid var(--market-line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.method-card h2,
.method-card h3 {
  margin-top: 0;
}

.method-card p {
  color: var(--market-soft);
  line-height: 1.7;
}

.theme-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compact-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 14px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.compact-card:hover,
.compact-card:focus-visible,
.related-link:hover,
.related-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 210, 123, 0.32);
  background: rgba(216, 177, 90, 0.065);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(7, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.screener-table {
  overflow-x: auto;
}

.screener-head,
.screener-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 90px 160px 100px 110px 170px;
  gap: 12px;
  align-items: center;
  min-width: 900px;
  padding: 12px 14px;
}

.screener-head {
  border-radius: 14px 14px 0 0;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screener-row {
  color: var(--market-text);
  text-decoration: none;
  border-top: 0;
  transition: background 0.18s ease;
}

.screener-row:hover,
.screener-row:focus-visible {
  background: rgba(216, 177, 90, 0.06);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ===== Phase 9 provider badge ===== */
.impl-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  margin-inline-start: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.impl-live {
  border: 1px solid rgba(125, 255, 140, 0.35);
  color: var(--market-green);
  background: rgba(125, 255, 140, 0.1);
}

.impl-stub {
  border: 1px solid rgba(216, 177, 90, 0.28);
  color: var(--market-gold-bright);
  background: rgba(216, 177, 90, 0.08);
}

.impl-fallback {
  border: 1px solid var(--market-line);
  color: var(--market-muted);
  background: rgba(255, 255, 255, 0.04);
}

.provider-warning-banner {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(255, 100, 100, 0.06);
  color: var(--market-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Symbol page depth content ===== */
.nvda-risk-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 120, 120, 0.18);
  background: rgba(255, 100, 100, 0.04);
}

.nvda-risk-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--market-text);
}

.nvda-risk-card p {
  margin: 0;
  color: var(--market-soft);
  font-size: 14px;
  line-height: 1.7;
}

.nvda-catalyst-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(125, 255, 140, 0.14);
  background: rgba(125, 255, 140, 0.03);
}

.nvda-catalyst-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--market-text);
}

.nvda-catalyst-card p {
  margin: 0;
  color: var(--market-soft);
  font-size: 13px;
  line-height: 1.65;
}

.deep-link-card {
  display: block;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--market-line);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.deep-link-card:hover,
.deep-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 210, 123, 0.35);
  background: rgba(216, 177, 90, 0.065);
}

.deep-link-card > span {
  display: block;
  margin-bottom: 6px;
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deep-link-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--market-gold-bright);
}

.deep-link-card > p {
  margin: 0;
  color: var(--market-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== SPY page depth content ===== */
.spy-macro-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(216, 177, 90, 0.18);
  background: rgba(216, 177, 90, 0.04);
}

.spy-macro-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--market-text);
}

.spy-macro-card p {
  margin: 0;
  color: var(--market-soft);
  font-size: 14px;
  line-height: 1.7;
}

.spy-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spy-compare-col {
  border: 1px solid var(--market-line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.spy-compare-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--market-gold-bright);
}

.spy-compare-col ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--market-soft);
  font-size: 14px;
  line-height: 1.8;
}

.spy-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.spy-sector-card {
  border: 1px solid var(--market-line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.spy-sector-card > span {
  display: block;
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.spy-sector-card > strong {
  display: block;
  font-size: 20px;
  color: var(--market-gold-bright);
  margin-bottom: 4px;
}

.spy-sector-card > p {
  margin: 0;
  color: var(--market-soft);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding-block: 10px;
  }

  .top-actions {
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin-inline-start: auto;
  }

  .nav-group {
    display: none;
  }

  .locale-links {
    justify-content: center;
    width: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .market-hero-grid,
  .editorial-grid,
  .research-featured-row,
  .detail-header,
  .detail-grid,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .metric-grid,
  .related-grid,
  .cta-grid,
  .trust-strip,
  .theme-grid,
  .method-grid,
  .spotlight-grid,
  .research-theme-grid,
  .diagnostics-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 14px;
  }

  .market-shell {
    padding-top: 28px;
  }

  .brand {
    min-width: 0;
    max-width: min(58vw, 260px);
  }

  .brand-copy span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-grid,
  .editorial-grid,
  .research-featured-row,
  .metric-grid,
  .hero-stat-grid,
  .related-grid,
  .cta-grid,
  .trust-strip,
  .theme-grid,
  .method-grid,
  .spotlight-grid,
  .research-theme-grid,
  .diagnostics-grid,
  .compact-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .health-row {
    grid-template-columns: 1fr;
  }

  .health-head {
    display: none;
  }

  .market-search,
  .market-btn {
    width: 100%;
  }

  .section-head,
  .tile-metrics,
  .price-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-row {
    grid-template-columns: 1fr 42px;
  }

  .score-track {
    grid-column: 1 / -1;
  }

  .analyzer-brief-grid {
    grid-template-columns: 1fr;
  }

  .allocation-row {
    grid-template-columns: 1fr 52px;
  }

  .allocation-row .score-track {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .spy-compare-grid,
  .spy-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .spy-compare-grid,
  .spy-sector-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Market Insights / Blog system ===== */
.insight-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--market-gold-bright), var(--market-gold));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

.insight-category-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 177, 90, 0.28);
  color: var(--market-gold-bright);
  background: rgba(216, 177, 90, 0.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 16px;
}

.insight-category-badge.muted {
  color: var(--market-soft);
  border-color: var(--market-line);
  background: rgba(255, 255, 255, 0.035);
}

.insight-hero-card h1 {
  margin: 10px 0 12px;
  max-width: 960px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
}

.insight-label-row,
.insight-chip-row,
.insight-meta-clusters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.insight-summary-box {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 177, 90, 0.22);
  border-radius: 16px;
  background: rgba(216, 177, 90, 0.055);
}

.insight-summary-box span,
.insight-meta-clusters strong {
  display: block;
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.insight-summary-box p {
  margin: 8px 0 0;
  color: var(--market-soft);
  line-height: 1.7;
}

.insight-meta-clusters {
  margin-top: 18px;
  align-items: flex-start;
}

.insight-meta-clusters > div {
  min-width: min(100%, 260px);
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid var(--market-line);
  border-radius: 999px;
  color: var(--market-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
}

.insight-chip.muted {
  color: var(--market-muted);
}

.insight-hero-disclaimer,
.insight-sidebar-note p {
  margin: 18px 0 0;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.7;
}

.insight-sidebar-note {
  padding: 20px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--market-line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(17, 21, 27, 0.94), rgba(9, 11, 15, 0.92));
  backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.insight-card:hover,
.insight-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 210, 123, 0.35);
  background: rgba(216, 177, 90, 0.065);
}

.insight-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.insight-card-meta time {
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 700;
}

.insight-card h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.3;
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--market-text);
}

.insight-card p {
  margin: 0 0 18px;
  color: var(--market-soft);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.insight-card-cta {
  color: var(--market-gold-bright);
  font-size: 13px;
  font-weight: 800;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 32px;
  align-items: start;
}

.insight-sidebar {
  position: sticky;
  top: 122px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-toc {
  padding: 22px;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 21, 27, 0.94), rgba(9, 11, 15, 0.92));
  backdrop-filter: blur(18px);
}

.insight-toc h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--market-muted);
}

.insight-toc ol {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--market-soft);
  font-size: 13px;
}

.insight-toc li {
  margin-bottom: 9px;
  line-height: 1.4;
}

.insight-toc a {
  color: var(--market-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.insight-toc a:hover {
  color: var(--market-gold-bright);
}

.insight-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--market-line);
  border-bottom: 1px solid var(--market-line);
  margin: 18px 0 32px;
}

.insight-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--market-muted);
  font-size: 13px;
  font-weight: 700;
}

.insight-meta-bar strong {
  color: var(--market-soft);
  font-weight: 600;
}

.insight-article-body {
  min-width: 0;
}

.insight-article-body h2 {
  margin: 44px 0 16px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.25;
  scroll-margin-top: 130px;
}

.insight-article-body h3 {
  margin: 28px 0 12px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--market-text);
}

.insight-article-body p {
  margin: 0 0 18px;
  color: var(--market-soft);
  line-height: 1.8;
  font-size: 16px;
}

.insight-article-body ul,
.insight-article-body ol {
  padding-inline-start: 22px;
  color: var(--market-soft);
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 18px;
}

.insight-article-body li {
  margin-bottom: 6px;
}

.pull-quote {
  margin: 32px 0;
  padding: 22px 26px;
  border-inline-start: 3px solid var(--market-gold-bright);
  border-radius: 0 14px 14px 0;
  background: rgba(216, 177, 90, 0.06);
}

.pull-quote p {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--market-text);
  line-height: 1.5;
}

.insight-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.insight-stat-card {
  border: 1px solid var(--market-line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.insight-stat-card > span {
  display: block;
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.insight-stat-card > strong {
  display: block;
  font-size: 22px;
  color: var(--market-gold-bright);
  margin-bottom: 4px;
}

.insight-stat-card > p {
  margin: 0;
  color: var(--market-soft);
  font-size: 12px;
  line-height: 1.5;
}

.insight-disclaimer {
  margin-top: 36px;
  padding: 18px 22px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.insight-disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--market-muted);
  line-height: 1.7;
}

.insight-sources {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.insight-sources h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--market-muted);
}

.insight-sources ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.8;
}

.insight-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .insight-grid,
  .insight-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-layout {
    grid-template-columns: 1fr;
  }

  .insight-sidebar {
    position: static;
  }

  .localized-ar .insight-layout {
    grid-template-columns: 1fr;
  }

  .localized-ar .insight-article-body,
  .localized-ar .insight-sidebar {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .insight-grid,
  .insight-related-grid,
  .insight-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Related Content Engine (rc) ===== */
.rc-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.rc-sub-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--market-muted);
  margin: 0 0 14px;
}

.rc-group {
  margin-top: 24px;
}

.rc-group + .rc-group {
  margin-top: 28px;
}

.rc-screener-cta {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: rgba(216, 177, 90, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.rc-screener-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--market-text);
}

.rc-screener-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--market-muted);
}

@media (max-width: 640px) {
  .rc-screener-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .localized-ar .topbar-inner {
    align-items: center;
  }

  .localized-ar .top-actions {
    align-items: center;
  }

  .localized-ar .nav-group {
    display: none;
  }

  .localized-ar .nav-link {
    min-height: 42px;
    justify-content: center;
    font-size: 13px;
    white-space: normal;
  }

  .localized-ar .hero-copy h1,
  .localized-ar .market-hero h1,
  .localized-ar .detail-title h1,
  .localized-ar .insight-hero-card h1 {
    font-size: clamp(31px, 10vw, 44px);
    line-height: 1.22;
  }

  .localized-ar .hero-lead,
  .localized-ar .market-lead,
  .localized-ar .insight-article-body p,
  .localized-ar .market-copy {
    font-size: 15.5px;
    line-height: 1.9;
  }

  .localized-ar .market-actions,
  .localized-ar .cta-actions,
  .localized-ar .hero-actions,
  .localized-ar .rc-screener-cta {
    align-items: stretch;
  }

  .localized-ar .market-btn,
  .localized-ar .cta-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .market-shell {
    padding-top: 20px;
  }

  .market-section {
    margin: 34px 0;
  }

  .market-hero-panel,
  .market-panel,
  .market-card {
    border-radius: 18px;
  }

  .search-row,
  .market-actions,
  .cta-actions {
    align-items: stretch;
  }

  .search-suggest-panel {
    inset-inline: 0;
    width: 100%;
    max-height: min(420px, calc(100vh - 180px));
    overflow-y: auto;
  }

  .screener-table {
    overflow-x: visible;
  }

  .screener-head {
    display: none;
  }

  .screener-row {
    grid-template-columns: 1fr;
    gap: 10px;
    border: 1px solid var(--market-line);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 16px;
  }

  .screener-row > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
  }

  .screener-row > span:first-child {
    display: block;
  }

  .screener-row .setup-badge {
    justify-content: center;
    width: 100%;
  }

  .ranking-card {
    min-height: auto;
  }

  .detail-header {
    gap: 18px;
  }

  .score-gauge {
    width: 156px;
  }

  .localized-ar .screener-row > span {
    flex-direction: row-reverse;
    text-align: right;
  }

  .localized-ar .screener-row > span:first-child {
    text-align: right;
  }
}

/* ── Premium nav enhancements ───────────────────────────────── */
.nav-group {
  gap: 4px;
  padding: 5px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.nav-link {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--market-gold-bright);
  border-color: rgba(242, 210, 123, 0.22);
  background: rgba(216, 177, 90, 0.1);
}

.nav-menu-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 180ms ease;
}

.nav-menu:hover .nav-menu-trigger::after,
.nav-menu:focus-within .nav-menu-trigger::after {
  transform: rotate(225deg) translateY(-2px);
  opacity: 0.9;
}

.nav-badge {
  background: rgba(242, 210, 123, 0.2);
  color: var(--market-gold-bright);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.nav-dropdown {
  top: calc(100% + 8px);
  min-width: 286px;
  max-width: min(340px, calc(100vw - 28px));
  padding: 8px;
  gap: 4px;
  border-radius: 18px;
  border-color: rgba(242, 210, 123, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.98), rgba(7, 9, 12, 0.98)),
    rgba(6, 8, 11, 0.98);
  backdrop-filter: blur(26px) saturate(1.65);
  -webkit-backdrop-filter: blur(26px) saturate(1.65);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.64),
    0 0 0 1px rgba(242, 210, 123, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.75px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  white-space: normal;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  color: var(--market-gold-bright);
  background: rgba(216, 177, 90, 0.1);
}

.locale-links {
  padding: 3px;
  gap: 2px;
  border-color: rgba(255, 255, 255, 0.08);
}

.locale-links .lang-switch {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

.locale-links .lang-switch[aria-current="true"],
.locale-links .lang-switch.active {
  color: var(--market-gold-bright);
  opacity: 1;
  border-color: rgba(242, 210, 123, 0.42);
  background: linear-gradient(180deg, rgba(216, 177, 90, 0.18), rgba(216, 177, 90, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(216, 177, 90, 0.08);
}

.mobile-nav-links .nav-link {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
}

.mobile-nav-links .nav-dropdown a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.mobile-nav-links .nav-menu {
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
}

/* RTL: flip dropdown to align right edge */
[dir="rtl"] .nav-dropdown,
.localized-ar .nav-dropdown {
  inset-inline-start: auto;
  inset-inline-end: 0;
  text-align: right;
}

.localized-ar .nav-dropdown a {
  justify-content: flex-start;
  direction: rtl;
  font-size: 13px;
  line-height: 1.45;
}

.localized-ar .system-card {
  line-height: 1.7;
}

.localized-ar .system-card-head,
.localized-ar .product-price-display,
.localized-ar .product-stats-bar,
.localized-ar .signal-price-row {
  direction: rtl;
}

.localized-ar .product-feature-list {
  display: grid;
  gap: 9px;
  padding-inline-start: 0;
  padding-inline-end: 0;
  line-height: 1.65;
}

.localized-ar .system-actions {
  align-items: flex-start;
}

.localized-ar .system-actions .cta-btn,
.localized-ar .signal-cta {
  text-align: center;
  justify-content: center;
}

.localized-ar .product-market,
.localized-ar .system-note {
  line-height: 1.65;
}

.signal-market-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.signal-market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.signal-market-row span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.signal-market-row strong {
  color: var(--green-strong);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-dir-label {
  max-width: 100%;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
}

.systems-grid-products .system-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: 20px;
}

.systems-grid-products .system-card-head {
  min-height: 34px;
}

.systems-grid-products .system-badge,
.systems-grid-products .system-type {
  min-height: 30px;
}

.systems-grid-products .product-market {
  min-height: 18px;
}

.systems-grid-products .product-price-display {
  min-height: 46px;
  align-items: center;
}

.systems-grid-products .product-price-free,
.systems-grid-products .product-price-soon {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.systems-grid-products .product-price-soon {
  color: var(--green-strong);
}

.systems-grid-products .product-card-secondary {
  opacity: 1;
  border-color: rgba(216, 177, 90, 0.32) !important;
  box-shadow:
    0 0 0 1px rgba(216, 177, 90, 0.1),
    0 28px 64px rgba(216, 177, 90, 0.1),
    var(--shadow-lg) !important;
}

.systems-grid-products .product-card-secondary:hover {
  opacity: 1;
}

.systems-grid-products .product-stats-bar {
  margin-top: auto;
  border-radius: 10px;
}

.systems-grid-products .system-actions {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.systems-grid-products .system-actions .cta-btn {
  width: 100%;
  min-height: 56px;
}

.localized-ar .signal-card,
.localized-ar .system-card,
.localized-ar .product-feature-list li,
.localized-ar .system-note {
  line-height: 1.75;
}

.localized-ar .signal-card-title,
.localized-ar .signal-stat-key,
.localized-ar .product-stats-bar strong,
.localized-ar .system-badge,
.localized-ar .system-type,
.localized-ar .signal-market-row strong {
  letter-spacing: 0;
}

/* ─────────────────────────────────────────────────────────── */

/* ── Phase 11: Ranking Tables + Live Screener ───────────────── */

/* Ranking table wrapper — horizontal scroll on mobile */
.ranking-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  border-radius: var(--market-radius-sm);
  border: 1px solid var(--market-line);
}

.ranking-table,
.screener-live-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--market-text);
}

.ranking-table thead,
.screener-live-table thead {
  background: rgba(216, 177, 90, 0.06);
  border-bottom: 1px solid var(--market-line-strong);
}

.ranking-table th,
.screener-live-table th {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--market-muted);
  white-space: nowrap;
  text-align: start;
}

[dir="rtl"] .ranking-table th,
[dir="rtl"] .screener-live-table th {
  text-align: start;
  letter-spacing: 0;
}

.ranking-table th.sortable,
.screener-live-table th.sortable,
.screener-live-wrap th[data-sort-col] {
  cursor: pointer;
  user-select: none;
  color: var(--market-soft);
}

.ranking-table th.sortable:hover,
.screener-live-table th.sortable:hover,
.screener-live-wrap th[data-sort-col]:hover {
  color: var(--market-gold);
}

.sort-icon {
  font-size: 10px;
  opacity: 0.65;
  margin-inline-start: 4px;
}

.ranking-table tbody tr,
.screener-live-table tbody tr {
  border-bottom: 1px solid var(--market-line);
  transition: background 120ms ease;
}

.ranking-table tbody tr:hover,
.screener-live-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ranking-table tbody tr:last-child,
.screener-live-table tbody tr:last-child {
  border-bottom: none;
}

.ranking-table td,
.screener-live-table td {
  padding: 10px 14px;
  vertical-align: middle;
}

/* Column widths */
.col-rank { width: 38px; text-align: center; }
.col-symbol { width: 80px; }
.col-name { min-width: 140px; }
.col-score { width: 140px; }
.col-price { width: 90px; }
.col-change { width: 90px; }
.col-sector { min-width: 120px; }
.col-momentum { width: 90px; }

.rank-num {
  font-weight: 700;
  color: var(--market-muted);
  font-size: 12px;
  text-align: center;
}

.symbol-link {
  color: var(--market-gold);
  text-decoration: none;
  font-size: 14px;
}

.symbol-link:hover { color: var(--market-gold-bright); text-decoration: underline; }

.asset-name a {
  color: var(--market-soft);
  text-decoration: none;
  font-size: 12.5px;
}

.asset-name a:hover { color: var(--market-text); }

/* Score badge */
.score-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.score-badge.badge-strong {
  background: rgba(125, 255, 140, 0.15);
  color: #7dff8c;
}

.score-badge.badge-watch {
  background: rgba(216, 177, 90, 0.15);
  color: var(--market-gold);
}

.score-badge.badge-neutral {
  background: rgba(255, 255, 255, 0.07);
  color: var(--market-muted);
}

.score-cell small {
  display: block;
  font-size: 10.5px;
  color: var(--market-muted);
  margin-top: 2px;
}

/* Live price cells */
.price-cell {
  font-weight: 600;
  font-size: 13px;
}

.change-cell {
  font-weight: 600;
  font-size: 13px;
}

.price-up { color: var(--market-green); }
.price-down { color: var(--market-red); }

.live-price,
.live-change {
  position: relative;
}

.live-price::after,
.live-change::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: var(--market-green);
  vertical-align: middle;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.live-loading {
  color: var(--market-muted);
  font-size: 11px;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Momentum indicators */
.momentum-up { color: var(--market-green); font-weight: 600; }
.momentum-down { color: var(--market-red); font-weight: 600; }
.momentum-neutral { color: var(--market-muted); }

.sector-cell {
  color: var(--market-soft);
  font-size: 12px;
}

/* Rankings navigation strip */
.rankings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 0 0;
}

.rankings-nav-link {
  padding: 6px 12px;
  border: 1px solid var(--market-line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--market-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 120ms, color 120ms, background 120ms;
}

.rankings-nav-link:hover {
  border-color: var(--market-gold);
  color: var(--market-gold);
  background: rgba(216, 177, 90, 0.06);
}

/* Live screener table wrapper */
.screener-live-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: var(--market-radius-sm);
  border: 1px solid var(--market-line);
}

/* Screener result count bar */
.screener-result-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
  font-size: 12.5px;
}

.muted-text {
  color: var(--market-muted);
}

/* Screener status bar */
.screener-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--market-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--market-line);
  font-size: 12.5px;
}

.status-note {
  color: var(--market-muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--market-green);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* status-live badge */
.setup-badge.status-live {
  background: rgba(125, 255, 140, 0.12);
  color: var(--market-green);
  border-color: rgba(125, 255, 140, 0.25);
}

/* Responsive: hide less important columns on small screens */
@media (max-width: 680px) {
  .col-sector, .col-momentum { display: none; }
  .ranking-table-wrap, .screener-live-wrap { border-radius: 0; margin-inline: calc(-1 * var(--market-gutter)); }
}

/* RTL adjustments for tables */
[dir="rtl"] .ranking-table th,
[dir="rtl"] .screener-live-table th {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .score-cell small { margin-top: 2px; }

/* ===== Phase 12: Watchlist ===== */
.watchlist-btn-wrap {
  margin-top: 12px;
}

.watchlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(216, 177, 90, 0.28);
  border-radius: 999px;
  background: rgba(216, 177, 90, 0.06);
  color: var(--market-gold-bright);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.watchlist-btn:hover,
.watchlist-btn:focus-visible {
  background: rgba(216, 177, 90, 0.12);
  border-color: rgba(216, 177, 90, 0.5);
  outline: none;
}

.watchlist-btn.in-watchlist {
  background: rgba(125, 255, 140, 0.1);
  border-color: rgba(125, 255, 140, 0.3);
  color: var(--market-green);
}

.watchlist-empty {
  color: var(--market-muted);
  font-size: 13.5px;
  margin: 0;
}

.watchlist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.watchlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--market-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--market-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.watchlist-chip:hover {
  border-color: rgba(216, 177, 90, 0.3);
  background: rgba(216, 177, 90, 0.06);
  color: var(--market-gold-bright);
}

.watchlist-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--market-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.watchlist-remove:hover {
  background: rgba(255, 100, 100, 0.2);
  color: #ff7e7e;
}

/* ===== Phase 12: Price Chart ===== */
.chart-panel h2 {
  margin-bottom: 16px;
}

.chart-container {
  min-height: 220px;
  border-radius: var(--market-radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--market-muted);
  font-size: 13px;
}

.tradingview-widget-container {
  width: 100%;
}

/* ===== Phase 12: Compare Section ===== */
.compare-panel h2 {
  margin-bottom: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: var(--market-soft);
  transition: border-color 0.16s, background 0.16s;
}

.compare-card:hover,
.compare-card:focus-visible {
  border-color: rgba(242, 210, 123, 0.32);
  background: rgba(242, 210, 123, 0.055);
}

.compare-card strong {
  font-size: 16px;
  color: var(--market-text);
}

.compare-card > span {
  font-size: 12px;
  color: var(--market-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--market-gold-bright) !important;
}

.compare-card small {
  font-size: 11px;
  color: var(--market-muted);
}

.comparison-header .score-card {
  align-items: stretch;
  text-align: start;
}

.comparison-price-line {
  justify-content: space-between;
  margin-top: 8px;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--market-line);
  text-align: start;
  vertical-align: top;
}

.comparison-table th {
  color: var(--market-text);
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table td {
  color: var(--market-soft);
}

.comparison-table td:first-child {
  color: var(--market-muted);
  font-weight: 700;
}

/* ===== Phase 12: Market Snapshot ===== */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.snapshot-card {
  padding: 14px 16px;
  border: 1px solid var(--market-line);
  border-radius: var(--market-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.snapshot-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--market-muted);
  margin-bottom: 6px;
}

.snapshot-card strong {
  display: block;
  font-size: 20px;
  color: var(--market-text);
}

.snapshot-sub {
  display: block;
  font-size: 12px;
  color: var(--market-muted);
  margin-top: 3px;
}

@media (max-width: 560px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.authority-freshness {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.authority-freshness small {
  color: var(--muted, #6b7280);
  font-size: 0.82rem;
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.authority-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  min-height: 150px;
}

.authority-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1rem;
  line-height: 1.3;
}

.authority-card p {
  margin: 0;
  color: var(--muted, #6b7280);
  line-height: 1.55;
}

.authority-label {
  display: inline-block;
  color: var(--accent, #13c296);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.authority-live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
}

.authority-live-row span {
  color: var(--muted, #6b7280);
}

.authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.authority-links a {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}

.authority-links a:hover {
  border-color: rgba(19, 194, 150, 0.55);
}

.positive {
  color: #16a34a;
}

.negative {
  color: #dc2626;
}
