/* ==========================================================================
   AstroPredictEngine — Advanced Tattva-Based Remedy Framework
   Two-layer remedy engine: Static Natal Remedies + Dynamic Dasha Remedies
   ========================================================================== */

.tattva-container {
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text, #1e293b);
}

/* --- Header Banner --- */
.tattva-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.tattva-header-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tattva-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1;
}

.tattva-mandala-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.tattva-header-text h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.tattva-header-text p {
  margin: 0 0 8px 0;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.tattva-dasha-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #fcd34d;
  font-weight: 600;
}

/* --- 4 Navigation Tabs --- */
.tattva-tab-bar {
  display: flex;
  gap: 8px;
  background: var(--paper2, #f1f5f9);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  margin-bottom: 22px;
  overflow-x: auto;
}

body.dark .tattva-tab-bar {
  background: #1e293b;
  border-color: #334155;
}

.tattva-tab-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tattva-tab-btn:hover {
  color: var(--text, #0f172a);
  background: rgba(0, 0, 0, 0.04);
}

body.dark .tattva-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.tattva-tab-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark .tattva-tab-btn.active {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tattva-tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
}

.tattva-tab-btn.active .tattva-tab-badge {
  background: #f59e0b;
  color: #fff;
}

/* --- Tab Content Wrapper --- */
.tattva-tab-pane {
  display: none;
  animation: tattvaFadeIn 0.25s ease-out;
}

.tattva-tab-pane.active {
  display: block;
}

@keyframes tattvaFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Disclaimer Box --- */
.tattva-disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12px;
  color: #b45309;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

body.dark .tattva-disclaimer-box {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   TAB 1: NATAL REMEDIES (STATIC)
   ========================================================================== */
.tattva-remedy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}

.tattva-report-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(5, 150, 105, .35);
  border-radius: 7px;
  background: rgba(5, 150, 105, .07);
  color: var(--text, #1e293b);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tattva-remedy-grid {
    grid-template-columns: 1fr;
  }
}

.tattva-card {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.dark .tattva-card {
  background: #1e293b;
  border-color: #334155;
}

.tattva-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tattva-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border, #f1f5f9);
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

body.dark .tattva-card-header {
  border-bottom-color: #334155;
}

.tattva-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tattva-planet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.avatar-agni { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.avatar-jala { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.avatar-prithvi { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.avatar-vayu { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.avatar-akasha { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }

.tattva-planet-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #0f172a);
  overflow-wrap: anywhere;
}

body.dark .tattva-planet-name {
  color: #f8fafc;
}

.tattva-sanskrit-sub {
  font-size: 12px;
  color: var(--muted, #64748b);
  overflow-wrap: anywhere;
}

.tattva-badges-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
}

@media (max-width: 560px) {
  .tattva-container { padding: 10px; }
  .tattva-header-card, .tattva-header-left { align-items: flex-start; }
  .tattva-header-card { padding: 16px; }
  .tattva-header-left { gap: 10px; }
  .tattva-header-text h2 { font-size: 18px; overflow-wrap: anywhere; }
  .tattva-card { padding: 14px; }
  .tattva-card-title-group { width: 100%; }
  .tattva-badges-col { align-items: flex-start; }
}

.tattva-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.pill-prio-high { background: #fee2e2; color: #b91c1c; }
.pill-prio-mod { background: #fef3c7; color: #b45309; }
.pill-prio-maint { background: #ecfdf5; color: #047857; }

body.dark .pill-prio-high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
body.dark .pill-prio-mod { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
body.dark .pill-prio-maint { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.tattva-role-pill {
  font-size: 11px;
  font-weight: 500;
  background: var(--paper2, #f1f5f9);
  color: var(--text, #334155);
  padding: 2px 7px;
  border-radius: 6px;
}

body.dark .tattva-role-pill {
  background: #334155;
  color: #cbd5e1;
}

/* Jaimini Chara Karaka Badges */
.tattva-karaka-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.karaka-standard {
  background: #e0e7ff;
  color: #4338ca;
}

body.dark .karaka-standard {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.karaka-gk {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 800;
}

body.dark .karaka-gk {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Jaimini GK Warning Banner */
.tattva-gk-warning-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #991b1b;
  margin-bottom: 12px;
}

body.dark .tattva-gk-warning-banner {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  border-left-color: #ef4444;
  color: #fca5a5;
}

/* --- 5 Diagnostic Questions Panel --- */
.tattva-five-q-box {
  background: var(--paper2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark .tattva-five-q-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: #334155;
}

.tattva-q-row {
  display: flex;
  gap: 8px;
  line-height: 1.45;
  align-items: flex-start;
}

.tattva-q-tag {
  font-weight: 700;
  color: #d97706;
  flex-shrink: 0;
  flex: 0 0 60px;
  width: 60px;
}

.tattva-q-text {
  color: var(--text, #334155);
  flex: 1 1 0;
  min-width: 0;
}

body.dark .tattva-q-text {
  color: #cbd5e1;
}

/* --- Multi-Modal Remedy Tabs / Cards --- */
.tattva-modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .tattva-modalities-grid {
    grid-template-columns: 1fr;
  }
}

.tattva-modality-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper, #fff);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dark .tattva-modality-item {
  background: #0f172a;
  border-color: #334155;
}

.tattva-modality-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tattva-modality-body {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text, #1e293b);
}

body.dark .tattva-modality-body {
  color: #e2e8f0;
}

/* --- Gemstone Review Card --- */
.tattva-gem-review {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.dark .tattva-gem-review {
  background: #0f172a;
  border-color: #334155;
}

.tattva-gem-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tattva-gem-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

body.dark .tattva-gem-name {
  color: #f8fafc;
}

.tattva-gem-verdict {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.gem-verdict-success { background: #dcfce7; color: #15803d; }
.gem-verdict-warning { background: #fef3c7; color: #b45309; }
.gem-verdict-danger { background: #fee2e2; color: #b91c1c; }
.gem-verdict-neutral { background: #f1f5f9; color: #475569; }

body.dark .gem-verdict-success { background: rgba(34, 197, 94, 0.2); color: #86efac; }
body.dark .gem-verdict-warning { background: rgba(245, 158, 11, 0.2); color: #fde047; }
body.dark .gem-verdict-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
body.dark .gem-verdict-neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.tattva-gem-reason {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  line-height: 1.4;
}

/* --- Collapsible Audit Chain --- */
.tattva-audit-summary {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #64748b);
  cursor: pointer;
  padding: 4px 0;
}

.tattva-audit-summary:hover {
  color: var(--text, #0f172a);
}

.tattva-audit-body {
  font-size: 11px;
  color: var(--muted, #64748b);
  background: var(--paper2, #f1f5f9);
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.45;
  margin-top: 4px;
  word-break: break-word;
}

body.dark .tattva-audit-body {
  background: #334155;
  color: #cbd5e1;
}

/* ==========================================================================
   TAB 2: DASHA REMEDIES (DYNAMIC)
   ========================================================================== */
.tattva-weights-bar {
  display: flex;
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 18px;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

body.dark .tattva-weights-bar {
  background: #1e293b;
  border-color: #334155;
}

.tattva-weight-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tattva-weight-label {
  font-size: 11px;
  color: var(--muted, #64748b);
  font-weight: 600;
}

.tattva-weight-val {
  font-size: 14px;
  font-weight: 700;
  color: #d97706;
}

.tattva-dasha-pair-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

body.dark .tattva-dasha-pair-card {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}

.tattva-dasha-pair-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin-bottom: 4px;
}

body.dark .tattva-dasha-pair-title {
  color: #f8fafc;
}

.tattva-dasha-pair-rel {
  font-size: 13px;
  color: #b45309;
  font-weight: 600;
  margin-bottom: 8px;
}

body.dark .tattva-dasha-pair-rel {
  color: #fcd34d;
}

/* ==========================================================================
   TAB 3: TATTVA & D30 ANALYSIS
   ========================================================================== */
.tattva-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tattva-meter-card {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark .tattva-meter-card {
  background: #1e293b;
  border-color: #334155;
}

.tattva-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.tattva-bar-track {
  height: 8px;
  background: var(--paper2, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

body.dark .tattva-bar-track {
  background: #334155;
}

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

.tattva-bar-fill.bar-agni { background: #ef4444; }
.tattva-bar-fill.bar-prithvi { background: #10b981; }
.tattva-bar-fill.bar-vayu { background: #8b5cf6; }
.tattva-bar-fill.bar-jala { background: #0ea5e9; }
.tattva-bar-fill.bar-akasha { background: #f59e0b; }

.tattva-meter-planets {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  line-height: 1.4;
}

/* D30 Table */
.tattva-table-wrapper {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

body.dark .tattva-table-wrapper {
  background: #1e293b;
  border-color: #334155;
}

.tattva-d30-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.tattva-d30-table th {
  background: var(--paper2, #f8fafc);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--muted, #475569);
  border-bottom: 1px solid var(--border, #e2e8f0);
  white-space: nowrap;
}

body.dark .tattva-d30-table th {
  background: #0f172a;
  color: #94a3b8;
  border-bottom-color: #334155;
}

.tattva-d30-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  color: var(--text, #1e293b);
  white-space: nowrap;
}

body.dark .tattva-d30-table td {
  border-bottom-color: #334155;
  color: #cbd5e1;
}

.tattva-d30-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.dark .tattva-d30-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tattva-sandhi-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

body.dark .tattva-sandhi-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
}

/* ==========================================================================
   TAB 4: REMEDY CALENDAR & SUMMARY
   ========================================================================== */
.tattva-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tattva-cal-day-card {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.dark .tattva-cal-day-card {
  background: #1e293b;
  border-color: #334155;
}

.tattva-cal-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tattva-cal-day-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

body.dark .tattva-cal-day-name {
  color: #f8fafc;
}

.tattva-cal-hora {
  font-size: 11px;
  color: #d97706;
  font-weight: 600;
}

.tattva-cal-action {
  font-size: 12.5px;
  color: var(--text, #334155);
  line-height: 1.45;
}

body.dark .tattva-cal-action {
  color: #cbd5e1;
}

.tattva-mandala-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(3, 105, 161, 0.03) 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 22px;
}

body.dark .tattva-mandala-box {
  background: rgba(14, 165, 233, 0.05);
  border-color: rgba(14, 165, 233, 0.2);
}

.tattva-mandala-box h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0284c7;
}

body.dark .tattva-mandala-box h4 {
  color: #38bdf8;
}

.tattva-mandala-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text, #334155);
}

body.dark .tattva-mandala-box p {
  color: #cbd5e1;
}

/* ==========================================================================
   DIAGNOSTIC INTAKE: IDENTIFIED ISSUES VS. HEALTHY / NO REMEDY NEEDED
   ========================================================================== */
.tattva-intake-card {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.dark .tattva-intake-card {
  background: #1e293b;
  border-color: #334155;
}

.tattva-intake-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  padding-bottom: 12px;
}

body.dark .tattva-intake-head {
  border-bottom-color: #334155;
}

.tattva-intake-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark .tattva-intake-title {
  color: #f8fafc;
}

.tattva-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tattva-filter-btn {
  background: var(--paper2, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.dark .tattva-filter-btn {
  background: #0f172a;
  border-color: #334155;
}

.tattva-filter-btn:hover {
  color: var(--text, #0f172a);
  background: rgba(0, 0, 0, 0.05);
}

body.dark .tattva-filter-btn:hover {
  color: #f8fafc;
}

.tattva-filter-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

/* Identified Issue Cards */
.tattva-issues-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.tattva-issue-card {
  border: 1px solid var(--border, #e2e8f0);
  border-left: 5px solid #d97706;
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--paper2, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark .tattva-issue-card {
  background: rgba(15, 23, 42, 0.5);
  border-color: #334155;
}

.tattva-issue-card.issue-graha {
  border-left-color: #8b5cf6;
}

.tattva-issue-card.issue-bhava {
  border-left-color: #0284c7;
}

.tattva-issue-card.issue-rashi {
  border-left-color: #ef4444;
}

.tattva-issue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tattva-issue-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #0f172a);
}

body.dark .tattva-issue-title {
  color: #f8fafc;
}

.tattva-target-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.target-graha { background: #ede9fe; color: #6d28d9; }
.target-bhava { background: #e0f2fe; color: #0369a1; }
.target-rashi { background: #fee2e2; color: #b91c1c; }

body.dark .target-graha { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
body.dark .target-bhava { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; }
body.dark .target-rashi { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.tattva-issue-diag {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text, #334155);
}

body.dark .tattva-issue-diag {
  color: #cbd5e1;
}

.tattva-issue-remedy-box {
  background: var(--paper, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text, #1e293b);
}

body.dark .tattva-issue-remedy-box {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

/* Healthy / No Remedy Needed Cards */
.tattva-healthy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.tattva-healthy-card {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.dark .tattva-healthy-card {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.tattva-healthy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tattva-healthy-name {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

body.dark .tattva-healthy-name {
  color: #86efac;
}

.tattva-healthy-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
}

body.dark .tattva-healthy-tag {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.tattva-healthy-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: #14532d;
}

body.dark .tattva-healthy-text {
  color: #bbf7d0;
}

