/* ==========================================================================
   SATISH VAID ASTRO -- Core Shared Components
   Strict Building Rule:
   Make one button, one text box, one card and one list row FIRST.
   Every screen must use them. No screen may make its own.
   Sizes:
   - Use smallest height (min-height), never fixed height.
   - No fixed widths on anything that holds words.
   - Use rem for sizes.
   - Rows of buttons must drop onto next line (flex-wrap: wrap).
   - Give flex and grid children min-width: 0.
   - Never cut words off with dots. Let them wrap.
   - Touch targets >= 44px (2.75rem).
   - Text boxes >= 16px font-size.
   ========================================================================== */

/* Universal Box-Sizing & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: var(--line-height-tight);
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 700;
}

/* ==========================================================================
   1. SHARED COMPONENT: THE BUTTON (.app-btn)
   ========================================================================== */
.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--min-tap-target);
  min-width: var(--min-tap-target);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: var(--line-height-normal);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
  white-space: normal;
  word-break: normal;
  touch-action: manipulation;
  flex-shrink: 0;
}

.app-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.app-btn:active:not(:disabled) {
  transform: translateY(0);
}

.app-btn:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 2px;
}

.app-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.app-btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.app-btn-gold {
  background-color: var(--color-accent-gold);
  color: #FFFFFF;
  border-color: var(--color-accent-gold);
}

.app-btn-gold:hover:not(:disabled) {
  background-color: var(--color-accent-gold-hover);
  border-color: var(--color-accent-gold-hover);
}

.app-btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.app-btn-secondary:hover:not(:disabled) {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-text-muted);
}

.app-btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.app-btn-outline:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.app-btn-danger {
  background-color: var(--color-danger);
  color: var(--color-text-inverse);
  border-color: var(--color-danger);
}

.app-btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.app-btn-ghost:hover:not(:disabled) {
  background-color: var(--color-surface-hover);
  color: var(--color-primary);
}

.app-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.app-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* ==========================================================================
   2. SHARED COMPONENT: THE TEXT BOX & INPUTS (.app-input, .app-select)
   ========================================================================== */
.app-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
  width: 100%;
  min-width: 0;
}

.app-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-label-required::after {
  content: " *";
  color: var(--color-danger);
}

.app-input,
.app-select,
.app-textarea {
  min-height: var(--min-tap-target);
  min-width: 0;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-main);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), outline var(--transition-fast);
}

.app-textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.app-input:disabled,
.app-select:disabled,
.app-textarea:disabled {
  background-color: var(--color-surface-subtle);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.app-input-error,
.has-error .app-input,
.has-error .app-select {
  border-color: var(--color-danger);
}

.app-field-error {
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: block;
  margin-top: 0.25rem;
}

.app-field-help {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  display: block;
  margin-top: 0.25rem;
}

/* ==========================================================================
   3. SHARED COMPONENT: THE CARD (.app-card)
   ========================================================================== */
.app-card {
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-height: fit-content;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-card-featured {
  border-top: 4px solid var(--color-accent-gold);
}

.app-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  background-color: var(--color-surface);
}

.app-card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.app-card-subtitle {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  word-break: break-word;
}

.app-card-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.app-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
}

/* ==========================================================================
   4. SHARED COMPONENT: THE LIST ROW (.app-list-row)
   ========================================================================== */
.app-list-group {
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-surface);
  width: 100%;
  min-width: 0;
}

.app-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  min-height: var(--min-tap-target);
  border-bottom: 1px solid var(--color-border-subtle);
  min-width: 0;
  background-color: var(--color-surface);
  transition: background-color var(--transition-fast);
}

.app-list-row:last-child {
  border-bottom: none;
}

.app-list-row:hover {
  background-color: var(--color-surface-subtle);
}

.app-list-label {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: var(--font-size-sm);
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
}

.app-list-value {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  min-width: 0;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   5. SHARED BADGES, ALERTS, TABLES, AND VISUALIZERS
   ========================================================================== */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  min-height: 1.5rem;
  white-space: normal;
  word-break: break-word;
}

.app-badge-gold {
  background-color: var(--color-accent-gold-light);
  color: var(--color-text-gold);
  border: 1px solid var(--color-accent-gold);
}

.app-badge-primary {
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.app-badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.app-badge-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.app-badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.app-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--min-tap-target);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.app-alert-info {
  background-color: var(--color-info-bg);
  border: 1.5px solid var(--color-info);
  color: var(--color-info);
}

.app-alert-success {
  background-color: var(--color-success-bg);
  border: 1.5px solid var(--color-success);
  color: var(--color-success);
}

.app-alert-warning {
  background-color: var(--color-warning-bg);
  border: 1.5px solid var(--color-warning);
  color: var(--color-warning);
}

.app-alert-danger {
  background-color: var(--color-danger-bg);
  border: 1.5px solid var(--color-danger);
  color: var(--color-danger);
}

.audio-visualizer-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: var(--min-tap-target);
  flex-wrap: wrap;
}

.audio-visualizer-canvas {
  height: 2.25rem;
  width: 140px;
  background-color: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
}

.app-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 520px;
}

.app-table th {
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-border);
}

.app-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
  font-size: var(--font-size-sm);
}

.app-table tr:last-child td {
  border-bottom: none;
}

.app-table tr:hover td {
  background-color: var(--color-surface-subtle);
}

/* ==========================================================================
   INTERACTIVE JATAK PRASHNA (Q&A) COMPONENT STYLES
   ========================================================================== */
.quick-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.q-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.q-chip:hover {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
  transform: translateY(-1px);
}

.q-chip.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  border-color: #92400E;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.verdict-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.verdict-banner-positive {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border-bottom: 2px solid #10B981;
  padding: 1rem 1.25rem;
}

.verdict-banner-moderate {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-bottom: 2px solid #F59E0B;
  padding: 1rem 1.25rem;
}

.verdict-banner-caution {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-bottom: 2px solid #3B82F6;
  padding: 1rem 1.25rem;
}

.verdict-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.verdict-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
}

.verdict-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.verdict-badge-positive {
  background: #047857;
  color: #FFFFFF;
}

.verdict-badge-moderate {
  background: #B45309;
  color: #FFFFFF;
}

.verdict-badge-caution {
  background: #1D4ED8;
  color: #FFFFFF;
}

.verdict-direct-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.verdict-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-box .m-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.metric-box .m-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0F172A;
}

.verdict-body {
  padding: 1.25rem;
}

.verdict-insights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.insight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border-left: 3.5px solid #D97706;
  border-radius: 4px;
}

.insight-bullet {
  font-size: 1.1rem;
  line-height: 1.2;
}

.insight-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
}

.verdict-remedy-box {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.remedy-header {
  font-size: 0.875rem;
  font-weight: 800;
  color: #15803D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.remedy-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #166534;
  font-weight: 600;
}

/* ==========================================================================
   QUICK CHART SWITCHER TABS & BIRTH PANCHANGA CARD
   ========================================================================== */
.chart-quick-switch-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.4rem;
  flex-wrap: wrap;
}

.chart-tab-btn {
  background: var(--color-surface-subtle, #f1f5f9);
  border: 1px solid var(--color-border-subtle, #cbd5e1);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary, #475569);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chart-tab-btn:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
}

.chart-tab-btn.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #b45309;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.birth-panchang-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #FDE68A;
  background: #FFFDF7;
  text-align: left;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.06);
}

.birth-panchang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #FDE68A;
}

@media (max-width: 640px) {
  .birth-panchang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.panchang-grid-item {
  background: #FFFFFF;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

[data-theme="dark"] .birth-panchang-card {
  background: #0f172a;
  border-color: rgba(217, 119, 6, 0.4);
}

[data-theme="dark"] .birth-panchang-grid {
  background: rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .panchang-grid-item {
  background: #0b1120;
}

.panchang-item-lbl {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .panchang-item-lbl {
  color: #94a3b8;
}

.panchang-item-val {
  font-size: 0.8125rem;
  color: #1e293b;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .panchang-item-val {
  color: #f1f5f9;
}

/* ==========================================================================
   COMPACT LIFE PILLARS: CAREER, WEALTH & MARRIAGE
   ========================================================================== */
.life-pillars-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 880px) {
  .life-pillars-compact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.pillar-compact-item {
  background: var(--color-surface-subtle, #f8fafc);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.pillar-compact-item:hover {
  border-color: var(--color-accent-gold, #d97706);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pillar-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pillar-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  color: var(--color-text-primary, #1e293b);
}

.pillar-icon {
  font-size: 1.15rem;
}

.pillar-meta-row {
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

[data-theme="dark"] .pillar-meta-row {
  background: rgba(217, 119, 6, 0.15);
  color: #fcd34d;
}

.pillar-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary, #475569);
  line-height: 1.5;
  margin: 0;
}
/* ==========================================================================
   SCIENTIFIC ASTROLOGICAL PROOF ACCORDION (यह फलादेश क्यों? / WHY THIS PREDICTION?)
   ========================================================================== */
.verdict-proof-box {
  margin-top: 0.85rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 0.65rem;
}

.proof-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="dark"] .proof-toggle-btn {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(212, 175, 55, 0.3);
}

.proof-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.18);
}

.proof-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.proof-icon {
  font-size: 1rem;
}

.proof-btn-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.proof-badge {
  font-size: 0.7rem;
  background: #fef3c7;
  color: #b45309;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] .proof-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

.proof-toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.verdict-proof-box.proof-expanded .proof-toggle-icon {
  transform: rotate(180deg);
}

.verdict-proof-box .proof-content {
  display: none;
  margin-top: 0.65rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
}

.verdict-proof-box.proof-expanded .proof-content {
  display: block;
  animation: fadeInProof 0.25s ease;
}

@keyframes fadeInProof {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.verdict-proof-box .proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
}

.verdict-proof-box .proof-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .verdict-proof-box .proof-item {
  background: #1e293b;
  border-color: #334155;
}

.verdict-proof-box .proof-tag {
  font-size: 0.775rem;
  font-weight: 700;
  color: #b45309;
}

[data-theme="dark"] .verdict-proof-box .proof-tag {
  color: #fbbf24;
}

.verdict-proof-box .proof-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #334155);
  margin: 0;
}

[data-theme="dark"] .verdict-proof-box .proof-text {
  color: #cbd5e1;
}

.proof-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.proof-arrow-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.proof-details[open] .proof-arrow-icon {
  transform: rotate(90deg);
}

.proof-content-body {
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #334155);
}

[data-theme="dark"] .proof-content-body {
  color: #cbd5e1;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
}

.proof-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .proof-card-item {
  background: #1e293b;
  border-color: #334155;
}

.proof-item-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .proof-item-header {
  color: #fbbf24;
}

.proof-item-text {
  font-size: 0.785rem;
  line-height: 1.45;
  color: inherit;
}

/* ==========================================================================
   VEDIC AI ASTROLOGER CHATBOT (ज्योतिषीय AI चैटबॉट)
   ========================================================================== */
#astro_chatbot_root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: inherit;
}

/* Floating Launcher Button */
.chatbot-trigger-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 2px solid #d4af37;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 0 16px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  outline: none;
}

.chatbot-trigger-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45), 0 0 24px rgba(212, 175, 55, 0.6);
}

.chatbot-trigger-btn.active {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: #f59e0b;
}

.chatbot-trigger-label {
  display: none;
}

.chatbot-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.6);
  animation: chatbotRingPulse 2.4s infinite cubic-bezier(0.25, 0, 0.35, 1);
  pointer-events: none;
}

@keyframes chatbotRingPulse {
  0% { transform: scale(1); opacity: 0.8; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.chatbot-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentleSway 4s ease-in-out infinite;
}

@keyframes gentleSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

.chatbot-badge-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f59e0b;
  color: #0f172a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Chat Drawer Window */
.chatbot-drawer {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3), 0 0 1px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
  animation: chatbotDrawerSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .chatbot-drawer {
  background: #0f172a;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

@keyframes chatbotDrawerSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Header */
.chatbot-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #d4af37;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-symbol {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.chatbot-title-box {
  display: flex;
  flex-direction: column;
}

.chatbot-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.chatbot-status-sub {
  font-size: 0.725rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #34d399;
}

.chatbot-header-actions {
  display: flex;
  gap: 0.35rem;
}

.chatbot-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.chatbot-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages Body */
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

[data-theme="dark"] .chatbot-body {
  background: #090d16;
}

.chatbot-msg-row {
  display: flex;
  width: 100%;
}

.msg-user-row {
  justify-content: flex-end;
}

.msg-bot-row {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 88%;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bubble-user {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.bubble-bot {
  background: #ffffff;
  color: #1e293b;
  border-bottom-left-radius: 3px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .bubble-bot {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

/* Typing indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.85rem;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b45309;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chat Result Card Inside Bot Bubble */
.chatbot-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chatbot-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.chatbot-result-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.chatbot-result-badge.score-high {
  background: #dcfce7;
  color: #166534;
}

.chatbot-result-badge.score-med {
  background: #fef3c7;
  color: #92400e;
}

.chatbot-result-badge.score-low {
  background: #fee2e2;
  color: #991b1b;
}

.chatbot-result-title {
  font-size: 0.88rem;
  color: #0f172a;
}

[data-theme="dark"] .chatbot-result-title {
  color: #f8fafc;
}

.chatbot-result-verdict {
  font-size: 0.825rem;
  line-height: 1.55;
}

.chatbot-timing-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  font-size: 0.785rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.chatbot-proof-box {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.775rem;
}

[data-theme="dark"] .chatbot-proof-box {
  background: rgba(255, 255, 255, 0.04);
}

.chatbot-proof-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: #b45309;
}

[data-theme="dark"] .chatbot-proof-title {
  color: #fbbf24;
}

.chatbot-proof-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.chatbot-remedy-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  font-size: 0.785rem;
}

.chatbot-remedy-text {
  margin-top: 0.2rem;
  color: #047857;
}

[data-theme="dark"] .chatbot-remedy-text {
  color: #6ee7b7;
}

/* Quick Suggestion Chips */
.chatbot-chips-bar {
  padding: 0.45rem 0.85rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  white-space: nowrap;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .chatbot-chips-bar {
  background: #0f172a;
  border-color: #1e293b;
}

.chatbot-chips-bar::-webkit-scrollbar {
  height: 4px;
}

.chatbot-chip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #92400e;
  border-radius: 14px;
  padding: 0.3rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

[data-theme="dark"] .chatbot-chip {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.chatbot-chip:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}

/* Footer & Input Bar */
.chatbot-footer {
  padding: 0.65rem 0.85rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="dark"] .chatbot-footer {
  background: #0f172a;
  border-color: #1e293b;
}

.chatbot-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chatbot-input-wrapper input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  font-size: 0.835rem;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: border-color 0.15s ease;
}

[data-theme="dark"] .chatbot-input-wrapper input {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

.chatbot-input-wrapper input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}

.chatbot-footer-caption {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
}

@media (max-width: 600px) {
  #astro_chatbot_root {
    bottom: 16px;
    right: 16px;
  }
  .chatbot-drawer {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: 520px;
  }
}
