/* ==========================================================================
   Predictive Intelligence Suite — Executive Synthesis Styling
   Redesigned to exact cosmic workstation aesthetic with full theme adaptation
   ========================================================================== */

.pred-suite-hero {
  background: var(--paper, #0b1120);
  background-image: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  border: 1px solid var(--line, rgba(223, 177, 91, 0.25));
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 1px var(--line, rgba(223, 177, 91, 0.3));
}

/* Light Theme overrides for the container */
body:not(.dark) .pred-suite-hero {
  background: var(--paper, #ffffff);
  background-image: radial-gradient(circle at 50% 0%, rgba(180, 122, 36, 0.05) 0%, transparent 60%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Top Header Bar
   -------------------------------------------------------------------------- */
.pred-suite-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pred-suite-top::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1050px) {
  .pred-suite-top {
    flex-wrap: wrap;
  }
}

.pred-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pred-mandala-icon {
  font-size: 20px;
  color: var(--gold, #dfb15b);
  filter: drop-shadow(0 0 6px rgba(223, 177, 91, 0.45));
  display: inline-flex;
  align-items: center;
}

.pred-suite-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink, #f1f5f9);
  letter-spacing: -0.2px;
  margin: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.pred-era-pill {
  font-size: 11px;
  font-weight: 700;
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 20px;
  padding: 2.5px 11px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
body:not(.dark) .pred-era-pill {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.1);
}
body.theme-sky .pred-era-pill {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
}
body.theme-saffron .pred-era-pill {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
body.theme-emerald .pred-era-pill {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}
body.dark .pred-era-pill {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #fde047 !important;
  border: 1px solid rgba(234, 179, 8, 0.45) !important;
}

.pred-suite-kpi-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pred-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line, rgba(223, 177, 91, 0.35));
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
body:not(.dark) .pred-lang-switch {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.12);
}

.pred-lang-pill {
  border: none;
  background: transparent;
  color: var(--muted, #94a3b8);
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.pred-lang-pill:hover {
  color: var(--ink, #ffffff);
}
.pred-lang-pill.active {
  background: var(--gold, #dfb15b);
  color: #1a1500 !important;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(223, 177, 91, 0.5);
}
body:not(.dark) .pred-lang-pill {
  color: #64748b;
}
body:not(.dark) .pred-lang-pill:hover {
  color: #0f172a;
}
body:not(.dark) .pred-lang-pill.active {
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.35);
}

.pred-kpi-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.pred-kpi-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.55);
}
.pred-kpi-badge.neutral {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.pred-kpi-badge.caution {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.pred-brief-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(216, 180, 254, 0.4) !important;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pred-brief-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   Dasha Time-Travel Navigator Bar
   -------------------------------------------------------------------------- */
.pred-timetravel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
body:not(.dark) .pred-timetravel-bar {
  background: var(--paper2, #f6f0e4);
  border-color: rgba(180, 122, 36, 0.3);
  box-shadow: none;
}

.pred-tt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pred-tt-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold, #dfb15b);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pred-nav-btn {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--ink, #f1f5f9);
  transition: all 0.15s ease;
}
body:not(.dark) .pred-nav-btn {
  background: var(--paper, #ffffff);
  border-color: var(--line, rgba(180, 122, 36, 0.3));
}
.pred-nav-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: var(--gold, #dfb15b);
}

.pred-dasha-dropdown {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--ink, #f1f5f9);
  cursor: pointer;
  outline: none;
  min-width: 320px;
  max-width: 460px;
}
body:not(.dark) .pred-dasha-dropdown {
  background: var(--paper, #ffffff);
  border-color: var(--line, rgba(180, 122, 36, 0.35));
}

.pred-now-btn {
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #1a1003 !important;
  border: 1px solid rgba(253, 230, 138, 0.5) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pred-now-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   Upper Deck (2-Column Grid)
   -------------------------------------------------------------------------- */
.pred-suite-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 950px) {
  .pred-suite-grid {
    grid-template-columns: 1fr;
  }
}

.pred-verdict-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
body:not(.dark) .pred-verdict-card {
  background: var(--paper2, #f6f0e4);
  border-color: var(--line, rgba(180, 122, 36, 0.24));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pred-verdict-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold, #dfb15b);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pred-verdict-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, #f1f5f9);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pred-driver-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink, #cbd5e1);
  margin: 0 0 10px 0;
}

/* Peak Fruition Strip */
.pred-fruition-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.35);
  font-size: 12px;
  margin-bottom: 10px;
}
.pred-fruition-pill {
  font-weight: 700;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 2px 8px;
  background: rgba(14, 165, 233, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pred-fruition-date {
  font-weight: 700;
  color: var(--ink, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body:not(.dark) .pred-fruition-date {
  background: var(--paper, #ffffff);
}
.pred-fruition-desc {
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 500;
}

/* Primary Dasha Direction & Significations Box */
.pred-direction-box {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 12px;
  line-height: 1.45;
}
body:not(.dark) .pred-direction-box {
  background: rgba(30, 144, 255, 0.04);
  border-color: rgba(30, 144, 255, 0.25);
}
.pred-direction-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
body:not(.dark) .pred-direction-header {
  color: #0284c7;
}
.pred-direction-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .pred-direction-pillars {
    grid-template-columns: 1fr;
  }
  .pred-pillar-arrow {
    display: none;
  }
}
.pred-pillar-card {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body:not(.dark) .pred-pillar-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}
.pred-pillar-role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--muted, #94a3b8);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.pred-pillar-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #f1f5f9);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pred-pillar-desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-secondary, #cbd5e1);
  margin: 0;
}
.pred-pillar-arrow {
  font-size: 16px;
  font-weight: 900;
  color: #f59e0b;
  opacity: 0.85;
}
.pred-direction-focus {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink, #f1f5f9);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
body:not(.dark) .pred-direction-focus {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.25);
}
.pred-focus-badge {
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
  flex-shrink: 0;
}
body:not(.dark) .pred-focus-badge {
  color: #b45309;
}

/* Astrological Rationale Box */
.pred-rationale-box {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(147, 51, 234, 0.07);
  border: 1px solid rgba(147, 51, 234, 0.32);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink, #cbd5e1);
  margin-top: auto;
}
body:not(.dark) .pred-rationale-box {
  background: rgba(180, 122, 36, 0.06);
  border-color: rgba(180, 122, 36, 0.25);
}
.pred-rationale-header {
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body:not(.dark) .pred-rationale-header {
  color: var(--gold3, #784e12);
}
.pred-rationale-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
}

/* Key Influences Table (Right Column) */
.pred-influences-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.pred-inf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
body:not(.dark) .pred-inf-row {
  background: var(--paper, #ffffff);
  border-color: rgba(180, 122, 36, 0.15);
}
.pred-inf-pill {
  background: rgba(147, 51, 234, 0.45);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}
body:not(.dark) .pred-inf-pill {
  background: var(--gold, #b47a24);
  color: #ffffff;
}
.pred-inf-label {
  font-weight: 600;
  color: var(--ink, #f1f5f9);
}
.pred-inf-val {
  color: var(--muted, #94a3b8);
  font-size: 11.5px;
}

/* Targeted Vedic Remedy Box with Floating Diya */
.pred-remedy-box {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink, #cbd5e1);
  margin-top: 8px;
}
body:not(.dark) .pred-remedy-box {
  background: rgba(180, 122, 36, 0.06);
  border-color: rgba(180, 122, 36, 0.3);
}
.pred-remedy-header {
  font-weight: 800;
  color: #d8b4fe;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body:not(.dark) .pred-remedy-header {
  color: var(--gold3, #784e12);
}
.pred-remedy-content {
  padding-right: 48px; /* space for diya */
}
.pred-diya-glow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 18px rgba(234, 88, 12, 0.5));
  animation: diyaFlicker 3s infinite ease-in-out;
}
@keyframes diyaFlicker {
  0%, 100% { opacity: 0.95; transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)); }
  50% { opacity: 1; transform: translateY(-52%) scale(1.05); filter: drop-shadow(0 0 14px rgba(245, 158, 11, 1)) drop-shadow(0 0 22px rgba(234, 88, 12, 0.7)); }
}

.pred-influences-footer {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted, #64748b);
  text-align: right;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   4 Core Domain Phala Cards (2x2 Grid)
   -------------------------------------------------------------------------- */
.pred-phala-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 650px) {
  .pred-phala-grid {
    grid-template-columns: 1fr;
  }
}
.pred-phala-card {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.22);
  display: flex;
  flex-direction: column;
}
body:not(.dark) .pred-phala-card {
  background: var(--paper, #ffffff);
  border-color: var(--line, rgba(180, 122, 36, 0.22));
}

.pred-phala-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pred-phala-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pred-phala-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink, #f1f5f9);
}
.pred-phala-body {
  margin: 0;
  color: var(--ink, #cbd5e1);
  font-size: 11.5px;
  line-height: 1.45;
}
body:not(.dark) .pred-phala-body {
  color: var(--ink2, #44403c);
}

/* --------------------------------------------------------------------------
   Do's & Don'ts Matrix (2 Columns)
   -------------------------------------------------------------------------- */
.pred-dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 650px) {
  .pred-dos-donts-grid {
    grid-template-columns: 1fr;
  }
}
.pred-dd-col {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  border: 1px solid transparent;
}
.pred-dd-col.dos {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
}
.pred-dd-col.donts {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.35);
}
.pred-dd-title {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pred-dd-col.dos .pred-dd-title {
  color: #10b981;
}
.pred-dd-col.donts .pred-dd-title {
  color: #ef4444;
}
.pred-dd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}
.pred-dd-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--ink, #cbd5e1);
}
body:not(.dark) .pred-dd-list li {
  color: var(--ink2, #44403c);
}
.pred-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  display: inline-block;
}
.pred-dot.green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.7); }
.pred-dot.yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.7); }
.pred-dot.red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); }

/* --------------------------------------------------------------------------
   Topic Life Navigator (1-Click Presets)
   -------------------------------------------------------------------------- */
.pred-topics-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line, rgba(223, 177, 91, 0.22));
}

.pred-topics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pred-topics-header span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold, #dfb15b);
}
.pred-topics-sub {
  font-size: 11px;
  color: var(--muted, #64748b);
  font-style: italic;
}

.pred-topics-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pred-topic-btn {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink, #f1f5f9);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body:not(.dark) .pred-topic-btn {
  background: var(--paper, #ffffff);
  border-color: var(--line, rgba(180, 122, 36, 0.25));
}
.pred-topic-btn:hover {
  border-color: var(--gold, #dfb15b);
  background: rgba(223, 177, 91, 0.1);
}
.pred-topic-btn.active {
  background: rgba(223, 177, 91, 0.12) !important;
  border: 1.5px solid var(--gold, #dfb15b) !important;
  color: var(--gold, #dfb15b) !important;
  box-shadow: 0 0 10px rgba(223, 177, 91, 0.3) !important;
}

.pred-topic-detail {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--line, rgba(223, 177, 91, 0.22));
  font-size: 12px;
  animation: fadeIn 0.2s ease-in-out;
}
body:not(.dark) .pred-topic-detail {
  background: var(--paper, #ffffff);
}

/* --------------------------------------------------------------------------
   12-Month Traffic Light Timeline
   -------------------------------------------------------------------------- */
.pred-timeline-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line, rgba(223, 177, 91, 0.22));
}

.pred-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.pred-timeline-header span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold, #dfb15b);
}
.pred-tl-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted, #94a3b8);
}
.pred-tl-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: none;
  font-weight: 500;
  color: var(--muted, #94a3b8);
}

.pred-timeline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .pred-timeline-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 500px) {
  .pred-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pred-timeline-block {
  padding: 8px 3px;
  border-radius: 7px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.pred-timeline-block:hover, .pred-timeline-block.selected {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.pred-timeline-block.green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
}
.pred-timeline-block.yellow {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
  color: #f59e0b;
}
.pred-timeline-block.red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.pred-tb-month {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.pred-tb-rating {
  font-size: 11px;
  margin: 3px 0;
  display: block;
}
.pred-tb-dasha {
  font-size: 8.5px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-weight: 600;
}

/* Monthly Expanded Card */
.pred-month-expanded {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line, rgba(223, 177, 91, 0.22));
  animation: fadeIn 0.2s ease-in-out;
}
body:not(.dark) .pred-month-expanded {
  background: var(--paper, #ffffff);
}

/* Consultation Modal */
.pred-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}
.pred-modal-card {
  background: var(--paper, #0b1120);
  border: 1px solid var(--line, rgba(223, 177, 91, 0.3));
  border-radius: 14px;
  padding: 24px;
  max-width: 720px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
body:not(.dark) .pred-modal-card {
  background: var(--paper, #ffffff);
}
