/* ════════════════════════════════════════════════════════════
   deep_journey.css — Deep.Journey Carousel Theme
   Carousel cards matching home_journey visual style.
   Uses jc-* classes from home_journey.css for card shell,
   dj-* classes for internal content elements.
   ════════════════════════════════════════════════════════════ */

/* ── Filter Bar ── */
.dj-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(8, 8, 22, .6);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dj-filter-bar::-webkit-scrollbar { display: none; }

.dj-period-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid var(--border, rgba(255,255,255,.06));
}

.dj-period-select {
  min-width: 96px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: rgba(255,255,255,.04);
  color: var(--jc-text-secondary, #cbd5e1);
  font-size: 0.75rem;
  font-family: inherit;
  padding: 0 8px;
  outline: none;
}

.dj-period-select:focus {
  border-color: rgba(34, 211, 238, .6);
}

.dj-filter-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255,255,255,.06));
  background: transparent;
  color: var(--jc-text-muted, #94a3b8);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dj-filter-btn:hover {
  border-color: rgba(124, 58, 237, .4);
  color: var(--jc-text-secondary, #cbd5e1);
  background: rgba(124, 58, 237, .06);
}

.dj-filter-btn.active {
  border-color: var(--jc-purple, #a78bfa);
  background: rgba(124, 58, 237, .15);
  color: var(--jc-purple, #a78bfa);
  font-weight: 600;
}

.dj-filter-icon {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.dj-refresh-btn {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,.06));
  background: transparent;
  color: var(--jc-text-muted, #94a3b8);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

.dj-refresh-btn:hover {
  border-color: var(--jc-cyan, #22d3ee);
  color: var(--jc-cyan, #22d3ee);
}

.dj-refresh-btn.spinning i {
  animation: dj-spin 1s linear infinite;
}

@keyframes dj-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   Hook Card Content
   ══════════════════════════════════════════════════════════ */

.dj-hook-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
  line-height: 1.4;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dj-hook-sub {
  font-size: 0.8125rem;
  color: var(--jc-text-secondary, #cbd5e1);
  margin-bottom: 16px;
  line-height: 1.55;
}

.dj-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dj-stat-card {
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: all .2s;
}

.dj-stat-card:hover {
  border-color: rgba(124, 58, 237, .3);
  transform: translateY(-1px);
}

.dj-stat-card.highlight {
  border-color: rgba(124, 58, 237, .5);
  background: linear-gradient(145deg, rgba(124, 58, 237, .12), rgba(6, 182, 212, .06));
}

.dj-stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.dj-stat-metric {
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.dj-stat-change {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 3px;
}

.dj-stat-change.pos { color: var(--jc-green, #34d399); }
.dj-stat-change.neg { color: var(--jc-red, #f87171); }

.dj-overview-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

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

.dj-overview-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 10px;
}

.dj-overview-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jc-text, #e2e8f0);
  line-height: 1.35;
}

.dj-overview-sub {
  margin-top: 2px;
  margin-bottom: 8px;
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
}

.dj-symbol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dj-symbol-chip {
  border: 1px solid rgba(167,139,250,.35);
  background: rgba(124, 58, 237, .14);
  color: var(--jc-purple, #a78bfa);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
}

.dj-symbol-chip:hover {
  background: rgba(124, 58, 237, .25);
}

.dj-more-filter {
  margin-top: 8px;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .12);
  color: var(--jc-cyan, #22d3ee);
  border-radius: 8px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}

.dj-more-list {
  margin-top: 8px;
  margin-right: 6px;
  border: 1px solid rgba(167, 139, 250, .35);
  background: rgba(124, 58, 237, .12);
  color: var(--jc-purple, #a78bfa);
  border-radius: 8px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}

.dj-sector-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dj-sector-panel {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
}

.dj-sector-panel.positive {
  background: linear-gradient(145deg, rgba(16,185,129,.12), rgba(16,185,129,.03));
  border-color: rgba(16,185,129,.25);
}

.dj-sector-panel.negative {
  background: linear-gradient(145deg, rgba(239,68,68,.12), rgba(239,68,68,.03));
  border-color: rgba(239,68,68,.25);
}

.dj-sector-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dj-sector-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
}

.dj-sector-name {
  color: var(--jc-text-secondary, #cbd5e1);
}

.dj-sector-value {
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
  font-variant-numeric: tabular-nums;
}

.dj-sector-empty {
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
}

.dj-qoq-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-qoq-strip {
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 8px 10px;
}

.dj-qoq-strip.recover {
  background: linear-gradient(145deg, rgba(16,185,129,.1), rgba(16,185,129,.03));
}

.dj-qoq-strip.decline {
  background: linear-gradient(145deg, rgba(239,68,68,.1), rgba(239,68,68,.03));
}

.dj-qoq-title {
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--jc-text, #e2e8f0);
}

.dj-list-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  background: rgba(2, 6, 23, .56);
  display: flex;
  justify-content: flex-end;
}

.dj-list-panel {
  width: min(560px, 95vw);
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
}

.dj-list-head {
  height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dj-list-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
}

.dj-list-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--jc-text-secondary, #cbd5e1);
  cursor: pointer;
}

.dj-list-body {
  flex: 1;
  padding: 12px;
  overflow: auto;
}

.dj-list-meta {
  font-size: 0.6875rem;
  color: var(--jc-text-muted, #94a3b8);
  margin-bottom: 10px;
}

.dj-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-list-item {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.dj-list-item:hover {
  border-color: rgba(34,211,238,.35);
}

.dj-list-sym {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
}

.dj-list-name {
  margin-top: 2px;
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
}

.dj-list-metrics {
  font-size: 0.625rem;
  color: var(--jc-cyan, #22d3ee);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dj-list-empty {
  font-size: 0.75rem;
  color: var(--jc-text-muted, #94a3b8);
  text-align: center;
  padding: 22px;
}

/* ══════════════════════════════════════════════════════════
   Deep Fact Card Content
   ══════════════════════════════════════════════════════════ */

.dj-fact-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--jc-text, #e2e8f0);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dj-fact-impact {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.dj-fact-impact.positive {
  background: rgba(16, 185, 129, .15);
  color: var(--jc-green, #34d399);
}

.dj-fact-impact.negative {
  background: rgba(239, 68, 68, .15);
  color: var(--jc-red, #f87171);
}

.dj-fact-impact.neutral {
  background: rgba(245, 158, 11, .15);
  color: var(--jc-yellow, #fbbf24);
}

.dj-fact-narrative {
  font-size: 0.8125rem;
  color: var(--jc-text-secondary, #cbd5e1);
  line-height: 1.65;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--jc-purple, #a78bfa);
}

.dj-fact-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  color: var(--jc-purple, #a78bfa);
  font-size: 0.6875rem;
  font-weight: 600;
}

.dj-fact-examples {
  margin-top: 10px;
}

.dj-fact-examples-label {
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
  margin-bottom: 6px;
  font-weight: 600;
}

.dj-fact-widget-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dj-fact-widget {
  border: 1px solid rgba(167,139,250,.3);
  background: rgba(124,58,237,.1);
  border-radius: 10px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.dj-fact-widget:hover {
  background: rgba(124,58,237,.16);
}

.dj-fact-widget-sym {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--jc-purple, #a78bfa);
  margin-bottom: 4px;
}

.dj-fact-widget-spark {
  width: 100%;
  height: 30px;
}

.dj-fact-spark {
  width: 100%;
  height: 100%;
  display: block;
}

.dj-mini-chart-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--jc-text-muted, #94a3b8);
  padding: 12px;
}

/* ══════════════════════════════════════════════════════════
   Risk & Safety Card Content
   ══════════════════════════════════════════════════════════ */

.dj-risk-summary {
  font-size: 0.8125rem;
  color: var(--jc-text-secondary, #cbd5e1);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dj-safety-gauge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 14px;
}

.dj-gauge-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
}

.dj-gauge-circle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.dj-gauge-circle.safe {
  background: rgba(16, 185, 129, .15);
  color: var(--jc-green, #34d399);
}
.dj-gauge-circle.safe::after { border-color: var(--jc-green, #34d399); }

.dj-gauge-circle.caution {
  background: rgba(245, 158, 11, .15);
  color: var(--jc-yellow, #fbbf24);
}
.dj-gauge-circle.caution::after { border-color: var(--jc-yellow, #fbbf24); }

.dj-gauge-circle.danger {
  background: rgba(239, 68, 68, .15);
  color: var(--jc-red, #f87171);
}
.dj-gauge-circle.danger::after { border-color: var(--jc-red, #f87171); }

.dj-gauge-info { flex: 1; }

.dj-gauge-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--jc-text, #e2e8f0);
  margin-bottom: 3px;
}

.dj-gauge-desc {
  font-size: 0.6875rem;
  color: var(--jc-text-muted, #94a3b8);
  line-height: 1.4;
}

.dj-risk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dj-risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 10px;
  transition: border-color .2s;
}

.dj-risk-item:hover {
  border-color: rgba(255,255,255,.12);
}

.dj-risk-level {
  width: 5px;
  min-height: 28px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dj-risk-level.high { background: var(--jc-red, #f87171); }
.dj-risk-level.medium { background: var(--jc-yellow, #fbbf24); }
.dj-risk-level.low { background: var(--jc-green, #34d399); }

.dj-risk-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jc-text, #e2e8f0);
  margin-bottom: 2px;
}

.dj-risk-detail {
  font-size: 0.6875rem;
  color: var(--jc-text-muted, #94a3b8);
  line-height: 1.4;
}

/* ── Key Ratios Grid ── */
.dj-ratios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.dj-ratio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}

.dj-ratio-label {
  font-size: 0.625rem;
  color: var(--jc-text-muted, #94a3b8);
  font-weight: 600;
}

.dj-ratio-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--jc-text, #e2e8f0);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════
   Actionable Card Content
   ══════════════════════════════════════════════════════════ */

.dj-action-summary {
  font-size: 0.8125rem;
  color: var(--jc-text-secondary, #cbd5e1);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dj-picks-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.dj-pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}

.dj-pick-card:hover {
  border-color: rgba(167, 139, 250, .4);
  background: linear-gradient(145deg, rgba(124, 58, 237, .1), rgba(255,255,255,.03));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.dj-pick-symbol {
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--jc-purple, #a78bfa);
  min-width: 55px;
}

.dj-pick-info { flex: 1; }

.dj-pick-reason {
  font-size: 0.6875rem;
  color: var(--jc-text-secondary, #cbd5e1);
  line-height: 1.4;
}

.dj-pick-metric {
  font-size: 0.625rem;
  color: var(--jc-cyan, #22d3ee);
  font-weight: 600;
  margin-top: 2px;
}

.dj-pick-fit {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.dj-pick-fit.high {
  background: rgba(16, 185, 129, .15);
  color: var(--jc-green, #34d399);
}

.dj-pick-fit.medium {
  background: rgba(245, 158, 11, .15);
  color: var(--jc-yellow, #fbbf24);
}

/* Watchlist */
.dj-watchlist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dj-watchlist-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  color: var(--jc-text-secondary, #cbd5e1);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.dj-watchlist-tag:hover {
  border-color: var(--jc-purple, #a78bfa);
  color: var(--jc-purple, #a78bfa);
  background: rgba(124, 58, 237, .1);
}

.dj-watchlist-label {
  font-size: 0.6875rem;
  color: var(--jc-text-muted, #94a3b8);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════
   Mini Chart Widget (embedded inside cards)
   ══════════════════════════════════════════════════════════ */

.dj-mini-chart {
  margin-top: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--jc-card-border, rgba(255,255,255,.08));
  padding: 10px 12px;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.dj-mini-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ══════════════════════════════════════════════════════════
   Loading & Error States
   ══════════════════════════════════════════════════════════ */

.dj-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  gap: 16px;
  padding: 40px;
}

.dj-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--jc-purple, #a78bfa);
  border-radius: 50%;
  animation: dj-spin .8s linear infinite;
}

.dj-loading-text {
  font-size: 0.8125rem;
  color: var(--jc-text-muted, #94a3b8);
  font-weight: 500;
}

.dj-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  gap: 12px;
  padding: 40px;
}

.dj-error-icon {
  font-size: 2rem;
}

.dj-error-msg {
  font-size: 0.8125rem;
  color: var(--jc-text-muted, #94a3b8);
  text-align: center;
  max-width: 400px;
}

.dj-retry-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--jc-purple, #a78bfa);
  background: rgba(124, 58, 237, .15);
  color: var(--jc-purple, #a78bfa);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

.dj-retry-btn:hover {
  background: rgba(124, 58, 237, .3);
}

/* ══════════════════════════════════════════════════════════
   Deep Journey Scoped Overrides
   Ensure cards fit within #journeyView carousel context
   ══════════════════════════════════════════════════════════ */

/* Track inside deep mockup fills available space */
#journeyView .journey-track {
  padding-bottom: 20px;
}

/* Light theme support */
:root[data-mockup-theme-resolved="light"] .dj-filter-bar {
  background: rgba(241, 245, 249, .8);
  border-bottom-color: rgba(0,0,0,.06);
}

:root[data-mockup-theme-resolved="light"] .dj-filter-btn {
  color: #64748b;
  border-color: rgba(0,0,0,.08);
}

:root[data-mockup-theme-resolved="light"] .dj-filter-btn.active {
  color: #6d28d9;
  border-color: #6d28d9;
  background: rgba(109,40,217,.08);
}

:root[data-mockup-theme-resolved="light"] .dj-period-wrap {
  border-right-color: rgba(0,0,0,.08);
}

:root[data-mockup-theme-resolved="light"] .dj-period-select {
  color: #334155;
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
}

:root[data-mockup-theme-resolved="light"] .dj-hook-headline {
  background: linear-gradient(135deg, #6d28d9, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-mockup-theme-resolved="light"] .dj-mini-chart {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.06);
}

:root[data-mockup-theme-resolved="light"] .dj-stat-card {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.06);
}

:root[data-mockup-theme-resolved="light"] .dj-risk-item {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.06);
}

:root[data-mockup-theme-resolved="light"] .dj-pick-card {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.06);
}

:root[data-mockup-theme-resolved="light"] .dj-overview-panel,
:root[data-mockup-theme-resolved="light"] .dj-qoq-strip {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.08);
}

:root[data-mockup-theme-resolved="light"] .dj-symbol-chip {
  border-color: rgba(109,40,217,.25);
  background: rgba(109,40,217,.1);
  color: #6d28d9;
}

:root[data-mockup-theme-resolved="light"] .dj-fact-widget {
  border-color: rgba(109,40,217,.2);
  background: rgba(109,40,217,.08);
}

:root[data-mockup-theme-resolved="light"] .dj-list-panel {
  background: #f8fafc;
  border-left-color: rgba(0,0,0,.1);
}

:root[data-mockup-theme-resolved="light"] .dj-list-head {
  border-bottom-color: rgba(0,0,0,.1);
}

:root[data-mockup-theme-resolved="light"] .dj-list-title {
  color: #0f172a;
}

:root[data-mockup-theme-resolved="light"] .dj-list-item {
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

:root[data-mockup-theme-resolved="light"] .dj-list-sym {
  color: #0f172a;
}

:root[data-mockup-theme-resolved="light"] .dj-list-close {
  color: #334155;
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.03);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dj-filter-bar {
    padding: 8px 10px;
  }
  .dj-period-wrap {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
  .dj-period-select {
    min-width: 84px;
    font-size: 0.6875rem;
    height: 28px;
  }
  .dj-filter-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .dj-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dj-overview-grid,
  .dj-sector-wrap {
    grid-template-columns: 1fr;
  }
  .dj-fact-widget-row {
    grid-template-columns: 1fr;
  }
  .dj-list-panel {
    width: 100vw;
  }
  .dj-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .dj-list-metrics {
    white-space: normal;
  }
  .dj-mini-chart {
    height: 150px;
  }
  .dj-hook-headline {
    font-size: 1.05rem;
  }
}

/* AI Journey Premium Styling & Typography Updates */
.jc-h-title {
  font-family: 'Nunito Sans', 'Noto Sans Thai', sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
}

.jc-h-sub {
  font-family: 'Nunito Sans', 'Noto Sans Thai', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--jc-purple, #a78bfa) !important;
  margin-top: 5px !important;
  letter-spacing: 0.2px !important;
}

.dj-fact-title {
  font-family: 'Nunito Sans', 'Noto Sans Thai', sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: var(--jc-cyan, #22d3ee) !important;
  line-height: 1.4 !important;
}

/* Standout Summary/Conclusion Highlight Box */
.dj-fact-narrative,
.dj-risk-summary,
.dj-action-summary {
  font-family: 'Nunito Sans', 'Noto Sans Thai', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  color: #f1f5f9 !important;
  padding: 12px 16px !important;
  border-left: 3px solid var(--jc-purple, #8b5cf6) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-radius: 0 8px 8px 0 !important;
  margin-bottom: 14px !important;
  box-shadow: inset 1px 0 0 0 rgba(255, 255, 255, 0.05);
}

.dj-mini-chart {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  background: rgba(8, 8, 22, 0.4) !important;
  padding: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Light theme overrides for Premium Typography & Styles */
:root[data-mockup-theme-resolved="light"] .jc-h-title {
  color: #0f172a !important;
}

:root[data-mockup-theme-resolved="light"] .jc-h-sub {
  color: #6d28d9 !important;
}

:root[data-mockup-theme-resolved="light"] .dj-fact-title {
  color: #0284c7 !important;
}

:root[data-mockup-theme-resolved="light"] .dj-fact-narrative,
:root[data-mockup-theme-resolved="light"] .dj-risk-summary,
:root[data-mockup-theme-resolved="light"] .dj-action-summary {
  color: #334155 !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border-left-color: #8b5cf6 !important;
  box-shadow: none !important;
}

:root[data-mockup-theme-resolved="light"] .dj-mini-chart {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

