/* Component-Specific Styling: Sacred Saffron Theme */

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--saffron-border);
  padding-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #431407;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Responsive Tool Workspace - Optimized for Laptops & Desktops */
.tool-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Laptops & Tablets under 1140px: Stack vertically so tables get 100% full screen width */
@media (max-width: 1140px) {
  .tool-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #7c2d12;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* KUNDALI CHART STYLING */
.kundali-display-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fffdfa;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--saffron-border);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
}

.kundali-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  stroke: #c2410c;
  color: #c2410c;
}

.chart-rasi-num {
  font-size: 14px;
  fill: #ea580c;
  font-weight: 800;
  font-family: var(--font-serif);
}

.chart-planets {
  font-size: 12px;
  fill: #2a1407;
  font-weight: 700;
}

.planets-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.86rem;
}

.planets-table th {
  text-align: left;
  padding: 10px 12px;
  background: #ffedd5;
  color: #7c2d12;
  font-weight: 700;
  border-bottom: 2px solid var(--saffron-border);
}

.planets-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #fed7aa;
  color: var(--text-main);
}

.planets-table tr:hover td {
  background: #fffaf5;
}

.dasha-timeline-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dasha-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #fffbf5;
  border-radius: var(--radius-md);
  border: 1px solid #fed7aa;
  border-left: 4px solid #d97706;
  font-size: 0.88rem;
  color: var(--text-main);
}

.dasha-item.current {
  border-left-color: var(--saffron);
  border-color: #ea580c;
  background: #ffedd5;
  font-weight: 700;
}

/* PANCHANG STYLING */
.panchang-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.panchang-stat-box {
  background: #ffffff;
  border: 1.5px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.04);
}

.panchang-stat-box small {
  color: #9a3412;
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.panchang-stat-box strong {
  font-size: 1.15rem;
  color: #431407;
  font-family: var(--font-serif);
}

.panchang-stat-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.choghadiya-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 14px;
}

.choghadiya-table th {
  padding: 11px 12px;
  text-align: left;
  background: #ffedd5;
  color: #7c2d12;
  font-weight: 700;
  border-bottom: 2px solid var(--saffron-border);
}

.choghadiya-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #fed7aa;
  color: var(--text-main);
}

.choghadiya-table tr:hover td {
  background: #fffbf5;
}

.chog-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
}

/* PANCHANG LANGUAGE SWITCHER */
.panchang-lang-bar {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 237, 213, 0.7);
  padding: 3px 4px;
  border-radius: 999px;
  border: 1px solid var(--saffron-border);
}

.panchang-lang-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c2d12;
  cursor: pointer;
  transition: all 0.2s ease;
}

.panchang-lang-btn:hover {
  background: rgba(234, 88, 12, 0.12);
  color: #431407;
}

.panchang-lang-btn.active {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

/* FESTIVAL & VRATA ALERT BANNER */
.festival-alert-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: festivalGlow 3s ease-in-out infinite alternate;
}

@keyframes festivalGlow {
  0% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15); }
  100% { box-shadow: 0 6px 22px rgba(234, 88, 12, 0.3); }
}

.festival-alert-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.festival-alert-content {
  flex-grow: 1;
}

.festival-alert-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 2px;
}

.festival-alert-tagline {
  font-size: 0.86rem;
  color: #92400e;
  font-weight: 600;
}

/* TARABALA & CHANDRABALA CHECKER */
.tarabala-checker-card {
  background: #ffffff;
  border: 1.5px solid var(--saffron-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
  margin-top: 24px;
}

.bala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bala-box {
  background: #fffbf5;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bala-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.1);
}

.bala-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bala-badge-shubh {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.bala-badge-madhyam {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.bala-badge-ashubh {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* JAPA MALA STYLING */
.japa-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.mantra-display-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 680px;
  width: 100%;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.1);
}

.mantra-devanagari {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  color: #991b1b;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 12px;
}

.mantra-translit {
  color: #7c2d12;
  font-size: 0.94rem;
  font-style: italic;
  margin-bottom: 10px;
  font-weight: 600;
}

.mantra-meaning {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mala-counter-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--border-gold-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffffff 0%, #fff7ed 50%, #fed7aa 100%);
  box-shadow: 0 0 36px rgba(234, 88, 12, 0.28);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  margin: 10px 0 24px;
}

.mala-counter-circle:hover {
  transform: scale(1.02);
  box-shadow: 0 0 44px rgba(234, 88, 12, 0.38);
}

.mala-counter-circle:active {
  transform: scale(0.96);
  box-shadow: 0 0 48px rgba(234, 88, 12, 0.5);
}

.mala-count-number {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 800;
  color: #7c2d12;
  line-height: 1;
}

.mala-target-label {
  font-size: 0.82rem;
  color: #c2410c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.mala-laps-counter {
  font-size: 1.05rem;
  color: #7c2d12;
  font-weight: 700;
  margin-bottom: 18px;
}

/* SCRIPTURES & PUJA VIDHI */
.scripture-card {
  background: var(--bg-card);
  border: 1.5px solid var(--saffron-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.05);
}

.badge-sanskrit {
  font-size: 0.85rem;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 3px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
}

.shloka-box {
  background: #fff7ed;
  border-left: 4px solid var(--border-gold-bright);
  padding: 14px 18px;
  margin-top: 14px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #7c2d12;
  font-size: 0.94rem;
  font-weight: 600;
}

.samagri-checklist-box {
  background: #fffaf5;
  border: 1.5px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.samagri-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.samagri-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.samagri-list input[type="checkbox"] {
  accent-color: var(--saffron);
  width: 18px;
  height: 18px;
}

.vidhi-timeline {
  padding-left: 20px;
}

.vidhi-timeline li {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vidhi-timeline strong {
  color: #431407;
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

/* Upanishads & Gita List Styling */
.upanishad-item {
  background: #ffffff;
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.04);
}

.up-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffedd5;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.up-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.up-header h4 {
  font-family: var(--font-serif);
  color: #431407;
  font-size: 1.05rem;
}

.veda-badge {
  font-size: 0.74rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.up-theme {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.up-verse {
  font-size: 0.82rem;
  color: #7c2d12;
  background: #fff7ed;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--saffron);
}

.gita-row {
  background: #ffffff;
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.04);
}

.gita-ch-badge {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.gita-info h4 {
  font-family: var(--font-serif);
  color: #431407;
  font-size: 1rem;
}

.gita-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.gita-verses {
  font-size: 0.82rem;
  color: #9a3412;
  font-weight: 700;
  white-space: nowrap;
}

.samskara-step {
  background: #ffffff;
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffedd5;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  border: 1px solid #fed7aa;
}

.step-stage {
  font-size: 0.74rem;
  color: #9a3412;
  font-weight: 700;
  text-transform: uppercase;
}

.step-text h4 {
  font-family: var(--font-serif);
  color: #431407;
  font-size: 1rem;
  margin: 1px 0 3px;
}

.step-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* HORA ENGINE STYLING */
.hora-active-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fed7aa 100%);
  border: 1.5px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
}

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

.hora-card {
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.hora-card.active {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.25);
}

.hora-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.14);
}

/* VASTU SHASTRA STYLING */
.vastu-compass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 24px;
}

.vastu-compass-tile {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vastu-compass-tile:hover, .vastu-compass-tile.active {
  background: #ffedd5;
  border-color: #ea580c;
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.2);
}

.vastu-compass-tile.center-tile {
  background: #fffaf0;
  border: 2px dashed #ea580c;
}

.vastu-tile-code {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: #7c2d12;
}

.vastu-tile-name {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* STOTRA VERSE STYLING */
.stotra-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.stotra-verse-sanskrit {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #7c2d12;
  white-space: pre-line;
  padding: 14px 18px;
  background: #fffaf0;
  border-left: 4px solid #ea580c;
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.stotra-verse-translit {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 12px;
}

.stotra-verse-meaning {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
  background: #fffbf5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #fed7aa;
}

/* MAHARAJ PHILOSOPHY & FREE KNOWLEDGE BANNER */
.maharaj-philosophy-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #ffedd5 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 20px 0 28px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
  display: flex;
  align-items: center;
  gap: 24px;
}

.maharaj-philosophy-icon {
  font-size: 3rem;
  line-height: 1;
  background: #fff;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #f59e0b;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.maharaj-philosophy-content h3 {
  font-family: var(--font-serif);
  color: #78350f;
  font-size: 1.45rem;
  margin: 0 0 6px;
}

.maharaj-philosophy-badge {
  display: inline-block;
  background: #78350f;
  color: #fef3c7;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.maharaj-philosophy-content p {
  color: #451a03;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

/* PURANAS & ITIHASAS CARDS */
.purana-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.purana-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.purana-card:hover {
  transform: translateY(-3px);
  border-color: #ea580c;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
}

.purana-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.purana-card-head h4 {
  font-family: var(--font-serif);
  color: #431407;
  font-size: 1.15rem;
  margin: 0 0 2px;
}

.purana-cat-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.purana-cat-sattvika { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.purana-cat-rajasa { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.purana-cat-tamasa { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }

.purana-card-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 12px;
}

.purana-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed #fed7aa;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FESTIVAL & VRATA CARDS */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.festival-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
}

.festival-card:hover {
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.1);
}

.festival-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.festival-card-header h4 {
  font-family: var(--font-serif);
  color: #7c2d12;
  font-size: 1.15rem;
  margin: 0;
}

.festival-tithi-tag {
  font-size: 0.76rem;
  font-weight: 700;
  background: #ffedd5;
  color: #c2410c;
  padding: 2px 8px;
  border-radius: 4px;
}

.festival-info-row {
  font-size: 0.85rem;
  margin: 6px 0;
  line-height: 1.5;
}

.festival-info-row strong {
  color: #7c2d12;
}

/* TEERTHA CARDS */
.teertha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.teertha-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.teertha-card:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}

.teertha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.teertha-header h4 {
  font-family: var(--font-serif);
  color: #431407;
  margin: 0;
}

.teertha-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ffedd5;
  color: #9a3412;
  padding: 2px 8px;
  border-radius: 12px;
}

/* GITA VERSE ACCORDION / EXPANDER */
.gita-chapter-card {
  background: #ffffff;
  border: 1px solid var(--saffron-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gita-chapter-card:hover, .gita-chapter-card.expanded {
  border-color: #ea580c;
  background: #fffaf0;
}

.gita-verses-container {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--saffron-border);
}

.gita-verse-item {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.gita-verse-item .sanskrit-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #7c2d12;
  line-height: 1.7;
}

.gita-verse-item .translit-text {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.gita-verse-item .meaning-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* DIVYA MODAL STYLES */
.divya-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.divya-modal-box {
  background: #fff8ee;
  border: 2px solid var(--border-gold-bright, #d97706);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* PROFILE COMPARISON CARDS */
.profile-comp-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
}

.profile-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #fed7aa;
  padding: 5px 0;
  font-size: 0.85rem;
}

/* VIVAHA HUB SUB-NAVIGATION */
.vivaha-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid #fed7aa;
  margin-bottom: 22px;
  padding-bottom: 8px;
}

.vivaha-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #7c2d12;
  background: #fffaf0;
  border: 1.5px solid #fed7aa;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.vivaha-subnav-btn:hover {
  background: #ffedd5;
  border-color: #ea580c;
  transform: translateY(-1px);
}

.vivaha-subnav-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
  color: #fff;
  border-color: #fde047;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

/* VIVAHA RITUALS & SAPTAPADI CARDS */
.ritual-card {
  background: #fffaf0;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.ritual-card:hover {
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
}

.ritual-stage-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ritual-mantra-box {
  background: #fff7ed;
  border-left: 3px solid #ea580c;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #7c2d12;
  font-weight: 600;
  margin: 10px 0;
  font-family: var(--font-serif);
}

.saptapadi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.saptapadi-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
}

.vow-step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

/* WEDDING INVITATION CARD STUDIO */
.card-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .card-studio-grid {
    grid-template-columns: 1fr;
  }
}

.wedding-card-canvas {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  text-align: center;
  position: relative;
  font-family: 'Noto Sans Oriya', 'Kalinga', 'Lohit Odia', 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  color: #431407;
}

/* Card Panel View Switcher */
.card-panel-switcher {
  display: inline-flex;
  gap: 6px;
  background: #ffedd5;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.card-panel-tab-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9a3412;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-panel-tab-btn.active {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.wedding-card-panels-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.odia-card-panel {
  flex: 1;
  min-width: 320px;
  max-width: 440px;
  background: #fffdf9;
  border: 8px double #9a3412;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Template variations */
.template-odia .odia-card-panel {
  background: #fffdf9;
  border-color: #831843;
  color: #4c0519;
}

.template-mandala_wine .odia-card-panel,
.template-mandala_wine {
  color: #fef08a;
}

.template-vintage_parchment .odia-card-panel,
.template-vintage_parchment {
  color: #451a03;
}

.template-temple_toran .odia-card-panel,
.template-temple_toran {
  color: #fef08a;
}

/* ==========================================================
   ROYAL TEMPLATE 2: WINE & GOLD MANDALA (Amol weds Sujata style)
   ========================================================== */
.mandala-wine-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.mandala-wine-flap {
  flex: 0 0 280px;
  background: radial-gradient(circle at 100% 50%, #581238 0%, #290417 100%);
  border: 3.5px solid #eab308;
  border-right: 2px dashed #facc15;
  border-radius: 12px 0 0 12px;
  padding: 24px 18px;
  color: #fef08a;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.mandala-wine-main {
  flex: 1;
  min-width: 320px;
  max-width: 520px;
  background: radial-gradient(circle at 50% 30%, #4c0d30 0%, #1f0312 100%);
  border: 3.5px solid #eab308;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 28px 24px;
  color: #fef08a;
  text-align: center;
  position: relative;
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mandala-wine-flap,
  .mandala-wine-main {
    border-radius: 12px;
    border-left: 3.5px solid #eab308;
    border-right: 3.5px solid #eab308;
  }
}

.mandala-gold-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 2px 6px rgba(234, 179, 8, 0.5);
  letter-spacing: 1px;
}

.mandala-gold-script {
  font-family: 'Great Vibes', 'Brush Script MT', cursive;
  font-size: 2.2rem;
  color: #facc15;
  margin: 6px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.mandala-name {
  font-family: 'Playfair Display', 'Noto Sans Oriya', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fef08a;
  margin: 4px 0;
  letter-spacing: 0.5px;
}

.mandala-weds {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #facc15;
  margin: 4px 0;
}

.mandala-filigree-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  color: #eab308;
}

.mandala-save-badge {
  border-top: 1.5px solid #ca8a04;
  border-bottom: 1.5px solid #ca8a04;
  padding: 8px 12px;
  margin: 12px 0;
  background: rgba(234, 179, 8, 0.1);
}

/* ==========================================================
   ROYAL TEMPLATE 3: VINTAGE ROYAL PARCHMENT (Chhavi & Rajat style)
   ========================================================== */
.vintage-parchment-panel {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #fcf6e8;
  background-image: radial-gradient(#fed7aa 10%, transparent 11%), radial-gradient(#fde68a 10%, transparent 11%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  border: 8px double #78350f;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(69, 26, 3, 0.25), inset 0 0 50px rgba(180, 83, 9, 0.12);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  color: #451a03;
  box-sizing: border-box;
}

.vintage-inner-border {
  border: 1.5px solid #92400e;
  border-radius: 6px;
  padding: 20px 16px;
  position: relative;
  box-shadow: inset 0 0 12px rgba(120, 53, 15, 0.08);
}

.vintage-calligraphy-title {
  font-family: 'Great Vibes', 'Brush Script MT', cursive;
  font-size: 2.5rem;
  color: #78350f;
  line-height: 1.1;
  margin: 8px 0;
  text-shadow: 1px 1px 1px rgba(120, 53, 15, 0.15);
}

.vintage-couple-name {
  font-family: 'Playfair Display', 'Noto Sans Oriya', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #78350f;
  margin: 2px 0;
}

.vintage-date-frame {
  display: inline-block;
  border-top: 2px solid #78350f;
  border-bottom: 2px solid #78350f;
  padding: 6px 20px;
  margin: 12px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #451a03;
  letter-spacing: 0.5px;
}

.vintage-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px dashed #b45309;
  padding-top: 12px;
  margin-top: 14px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ==========================================================
   ROYAL TEMPLATE 4: VEDIC TEMPLE VIVAHA & TORAN (Manikandan & Sivaranjini style)
   ========================================================== */
.temple-toran-panel {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  background: linear-gradient(180deg, #6c1228 0%, #480517 55%, #2a020d 100%);
  border: 4px solid #f59e0b;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(74, 4, 24, 0.4);
  padding: 0 0 20px 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  color: #fef08a;
  box-sizing: border-box;
}

.temple-toran-top {
  width: 100%;
  background: #450516;
  border-bottom: 2px solid #f59e0b;
}

.temple-body-content {
  padding: 16px 20px;
}

.temple-couple-title {
  font-family: 'Great Vibes', 'Noto Sans Oriya', cursive;
  font-size: 2.3rem;
  color: #fde047;
  line-height: 1.15;
  margin: 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.temple-ceremony-box {
  background: rgba(254, 240, 138, 0.08);
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  text-align: center;
}

.temple-footer-lamps {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 16px 0 16px;
}

/* Elements inside Odia Card */
.odia-corner-decor {
  width: 24px;
  height: 24px;
  position: absolute;
  color: #9a3412;
}

.odia-corner-tl { top: 6px; left: 6px; }
.odia-corner-tr { top: 6px; right: 6px; }
.odia-corner-bl { bottom: 6px; left: 6px; }
.odia-corner-br { bottom: 6px; right: 6px; }

.odia-book-post-stamp {
  display: inline-block;
  border: 1.5px solid #9a3412;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9a3412;
  border-radius: 4px;
  letter-spacing: 1px;
}

.odia-calligraphy-title {
  font-family: 'Noto Sans Oriya', 'Kalinga', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #9a3412;
  margin: 10px 0;
  line-height: 1.1;
  text-shadow: 1px 1px 2px rgba(154, 52, 18, 0.15);
}

.odia-scroll-container {
  background: #fff8eb;
  border: 2px solid #fdba74;
  border-radius: 8px;
  padding: 16px 12px;
  margin: 14px 0;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(154, 52, 18, 0.08);
}

.odia-recipient-box {
  border: 1.5px solid #9a3412;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.9);
}

.odia-recipient-line {
  border-bottom: 1px dotted #9a3412;
  height: 22px;
  margin-top: 4px;
}

.odia-karyasuchi-row {
  background: rgba(255, 247, 237, 0.85);
  border-left: 3px solid #ea580c;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.5;
}

.odia-feast-box {
  border: 2px solid #9a3412;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff7ed;
  margin: 12px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(154, 52, 18, 0.08);
}

.odia-apekshare-banner {
  border-top: 1.5px dashed #fed7aa;
  padding-top: 10px;
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #7c2d12;
}

.whatsapp-invite-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.88rem;
  color: #166534;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  font-family: monospace;
}

/* PRINT STYLES */
@media print {
  body > *:not(#mVivahaPrintContainer):not(#mJanmaPatrikaPrintContainer):not(#mPanchangPrintContainer):not(#mMonthlyPanjiPrintContainer):not(#mHoraBookPrintContainer):not(.royal-patrika-dossier):not(.grand-vivaha-patrika-dossier) {
    display: none !important;
  }

  /* Never display empty print containers */
  #mVivahaPrintContainer:empty,
  .vivaha-print-patrika-root:empty,
  #mJanmaPatrikaPrintContainer:empty,
  .janma-print-patrika-root:empty,
  #mPanchangPrintContainer:empty,
  .panchang-print-patrika-root:empty,
  #mMonthlyPanjiPrintContainer:empty,
  .monthly-panji-print-root:empty,
  #mHoraBookPrintContainer:empty,
  .hora-book-print-root:empty {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body {
    background: #fff !important;
    color: #1c0903 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #mVivahaPrintContainer:not(:empty),
  .vivaha-print-patrika-root:not(:empty) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #1c0903 !important;
    z-index: 9999999 !important;
    font-family: 'Noto Sans Oriya', 'Kalinga', 'Lohit Odia', 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    letter-spacing: normal !important;
  }

  .vivaha-print-patrika-root *,
  .patrika-cover-page *,
  .patrika-inner-page * {
    letter-spacing: normal !important;
    text-transform: none !important;
    font-feature-settings: "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
  }

  .no-print {
    display: none !important;
  }

  /* COVER PAGE */
  .patrika-cover-page {
    page-break-after: always;
    min-height: 96vh;
    border: 8px double #7c2d12;
    padding: 30px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: #fff8ee !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .patrika-inner-page {
    page-break-after: auto;
    padding: 24px 20px;
    border: 2px solid #7c2d12;
    background: #fff !important;
    color: #1c0903 !important;
  }

  .patrika-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
  }
  .patrika-table th, .patrika-table td {
    border: 1px solid #7c2d12;
    padding: 6px 10px;
    font-size: 0.85rem;
    text-align: left;
  }
  .patrika-table th {
    background: #ffedd5 !important;
    color: #7c2d12 !important;
    font-weight: 700;
  }
}

/* Ligature and rendering safety for Odia & Indic Wedding Cards */
#weddingCardCanvas:not(.lang-en) *,
.mandala-card-panel:not(.lang-en) *,
.vintage-parchment-panel:not(.lang-en) *,
.temple-toran-panel:not(.lang-en) *,
.odia-3panel-container:not(.lang-en) * {
  letter-spacing: normal !important;
  text-transform: none !important;
  font-feature-settings: "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* ==========================================================
   NEXT-LEVEL JANMA KUNDALI & ROYAL JANMA PATRIKA STYLES
   ========================================================== */
.kundali-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.avakahada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.avakahada-item {
  background: #fffaf0;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}
.avakahada-item small {
  display: block;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.avakahada-item strong {
  display: block;
  color: #431407;
  font-size: 0.88rem;
}

.dosha-summary-card {
  background: #fffdfa;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.03);
  box-sizing: border-box;
}

.dosha-summary-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dosha-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(67, 20, 7, 0.02);
}
.dosha-card.dosha-active {
  border-left: 4px solid #ea580c;
}
.dosha-card.dosha-parihara {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
}
.dosha-card.dosha-clear {
  border-left: 4px solid #16a34a;
}

/* ==========================================================================
   VEDIC CALCULATION CARDS & FULL-WIDTH DATA TABLES
   (Bhava Chalit, Six-fold Shadbala, Jaimini, Ashtakavarga, Pratyantar Dasha)
   ========================================================================== */
.vedic-calc-card {
  display: block;
  width: 100%;
  background: #fffdfa;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 26px;
  box-shadow: 0 3px 12px rgba(67, 20, 7, 0.04);
  box-sizing: border-box;
}

.vedic-calc-header {
  display: block;
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #fed7aa;
  box-sizing: border-box;
}

.vedic-calc-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.vedic-calc-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vedic-calc-title h4,
.vedic-calc-title h3 {
  margin: 0;
  color: #7c2d12;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.vedic-calc-title small,
.vedic-calc-title p {
  color: #78350f;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.45;
}

.vedic-calc-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #ffffff;
}

.vedic-calc-table-wrap .planets-table {
  width: 100%;
  margin-top: 0;
  border-collapse: collapse;
}

.vedic-calc-table-wrap .planets-table th {
  background: #ffedd5;
  color: #7c2d12;
  font-weight: 700;
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 2px solid #fed7aa;
  font-size: 0.84rem;
}

.vedic-calc-table-wrap .planets-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #fed7aa;
  vertical-align: middle;
  font-size: 0.84rem;
}

.vedic-calc-table-wrap .planets-table tr:last-child td {
  border-bottom: none;
}

.vedic-calc-table-wrap .planets-table tr:hover td {
  background: #fffaf5;
}

/* 12 Signs Ashtakavarga SAV Grid */
.ashtakavarga-signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
  width: 100%;
}

.ashtakavarga-sign-cell {
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ashtakavarga-sign-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(67, 20, 7, 0.08);
}

.chart-style-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ROYAL JANMA PATRIKA, PANCHANGA & ODIA MONTHLY PANJI PRINTABLE FORMATS */
#mVivahaPrintContainer,
#mJanmaPatrikaPrintContainer,
#mPanchangPrintContainer,
#mMonthlyPanjiPrintContainer,
.vivaha-print-patrika-root,
.janma-print-patrika-root,
.panchang-print-patrika-root,
.monthly-panji-print-root {
  display: none;
}

@media print {
  @page {
    margin: 8mm 8mm;
    size: A4 portrait;
  }

  .patrika-page {
    padding: 4mm 6mm !important;
    page-break-before: always !important;
    break-before: page !important;
    box-sizing: border-box !important;
  }

  .patrika-cover-mandapa {
    page-break-before: avoid !important;
    break-before: avoid !important;
    padding: 6mm 6mm !important;
  }

  .card-box, .prediction-block, .two-chart-row {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #mJanmaPatrikaPrintContainer:not(:empty) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #1c0903 !important;
    z-index: 9999999 !important;
    font-family: 'Noto Sans Oriya', 'Noto Serif Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  }

  .royal-patrika-certificate {
    border: 8px double #7c2d12 !important;
    padding: 28px !important;
    background: #fffdf8 !important;
    min-height: 96vh !important;
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #mPanchangPrintContainer:not(:empty) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #fff !important;
    color: #1c0903 !important;
    padding: 18px !important;
    z-index: 9999999 !important;
    font-family: 'Noto Sans Oriya', 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif !important;
  }

  .royal-panchang-certificate {
    border: 8px double #7c2d12 !important;
    padding: 24px !important;
    background: #fffdf8 !important;
    min-height: 96vh !important;
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #mMonthlyPanjiPrintContainer:not(:empty),
  .monthly-panji-print-root:not(:empty) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #fff !important;
    color: #1c0903 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 9999999 !important;
    font-family: 'Noto Sans Oriya', 'Kalinga', 'Lohit Odia', 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    letter-spacing: normal !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .royal-monthly-panji-certificate {
    border: 8px double #7c2d12 !important;
    padding: 16px !important;
    background: #fffdf8 !important;
    box-sizing: border-box !important;
    page-break-after: auto;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ══ MULTI-PAGE PANJI BOOK STYLES ══ */
  .panji-book-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    margin: 0;
    background: #ffffff !important;
    color: #1c0903 !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .panji-book-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  /* ══ ROYAL MAA SURESWARI PANJI COVER ══ */
  .panji-book-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    border: 7px double #7c2d12 !important;
    outline: 2px solid #ea580c !important;
    outline-offset: -5px;
    background: radial-gradient(circle at 50% 18%, #fffdf8 0%, #fff7ed 100%) !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }

  .panji-cover-sacred-head {
    width: 100%;
    border-bottom: 2px dashed #ea580c;
    padding-bottom: 5px;
    margin-bottom: 6px;
  }

  .panji-cover-invocation-top {
    font-size: 0.98rem;
    font-weight: 800;
    color: #7c2d12;
    line-height: 1.4;
    letter-spacing: 0.03em;
  }

  /* Sacred Deities & Guru Portrait Trio Gallery */
  .panji-cover-trio {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 98%;
    margin: 4px auto 8px auto;
    padding: 6px 10px;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%) !important;
    border: 1.5px solid #fed7aa !important;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(251, 146, 60, 0.12);
  }

  .panji-trio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 32%;
  }

  .panji-trio-frame {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px double #d97706;
    box-shadow: 0 4px 8px rgba(180, 83, 9, 0.22);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .panji-trio-frame.sureswari-frame {
    width: 92px;
    height: 92px;
    border: 3.5px double #ea580c;
    box-shadow: 0 5px 12px rgba(234, 88, 12, 0.3);
    outline: 2px solid #fed7aa;
    outline-offset: 2px;
    transform: scale(1.05);
  }

  .panji-trio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .panji-trio-caption {
    font-size: 0.78rem;
    font-weight: 800;
    color: #7c2d12;
    margin-top: 4px;
    line-height: 1.15;
    font-family: var(--font-serif);
  }

  .panji-trio-caption.sureswari-caption {
    font-size: 0.92rem;
    font-weight: 900;
    color: #9a3412;
    margin-top: 5px;
  }

  .panji-trio-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #b45309;
    margin-top: 1px;
    line-height: 1.1;
  }

  .panji-trio-sub.sureswari-sub {
    color: #c2410c;
    font-weight: 800;
  }

  .panji-cover-masthead {
    margin: 2px 0 6px 0;
    width: 100%;
  }

  .panji-cover-kshetra-tag {
    display: inline-block;
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 2px;
  }

  .panji-cover-main-title {
    font-size: 2.1rem;
    color: #431407;
    font-weight: 900;
    margin: 2px 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(234, 88, 12, 0.15);
  }

  .panji-cover-sub-creed {
    font-size: 0.82rem;
    color: #7c2d12;
    font-weight: 700;
    line-height: 1.35;
    max-width: 700px;
    margin: 0 auto;
  }

  /* Central Hero: HINDU MONTH (Not English Year) */
  .panji-cover-month-crown {
    width: 96%;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2.5px double #ea580c;
    border-radius: 8px;
    padding: 7px 12px;
    margin: 4px auto;
  }

  .panji-month-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    color: #c2410c;
    letter-spacing: 0.05em;
  }

  .panji-month-hero-name {
    font-size: 1.85rem;
    font-weight: 900;
    color: #7c2d12;
    margin: 2px 0 1px 0;
  }

  .panji-month-hero-sankranti {
    font-size: 0.98rem;
    font-weight: 700;
    color: #9a3412;
  }

  .panji-month-hero-span {
    font-size: 0.84rem;
    color: #431407;
    margin-top: 2px;
  }

  .panji-civil-ref {
    color: #78350f;
    font-size: 0.8rem;
  }

  /* Selected City Calculation Strip */
  .panji-cover-city-strip {
    width: 96%;
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 4px auto 6px auto;
    text-align: center;
  }

  .panji-city-headline {
    font-size: 0.9rem;
    color: #431407;
  }

  .panji-city-detail {
    font-size: 0.8rem;
    color: #7c2d12;
    font-weight: 600;
    margin-top: 1px;
  }

  .panji-city-assurance {
    font-size: 0.74rem;
    color: #991b1b;
    font-style: italic;
    margin-top: 2px;
    line-height: 1.25;
  }

  /* Symmetrical 4-Card Details Grid */
  .panji-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 96%;
    margin: 4px auto;
    text-align: left;
  }

  .panji-cover-card {
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
  }

  .cover-card-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #7c2d12;
    border-bottom: 1.5px solid #ffedd5;
    padding-bottom: 2px;
    margin-bottom: 4px;
  }

  .cover-card-content {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #431407;
  }

  .panji-cover-footer {
    width: 100%;
    border-top: 2px solid #7c2d12;
    padding-top: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #7c2d12;
    font-weight: 700;
  }

  /* Synopsis Table Page */
  .panji-synopsis-page {
    border: 4px double #7c2d12 !important;
    padding: 16px 14px !important;
  }

  .synopsis-header {
    text-align: center;
    border-bottom: 2px solid #7c2d12;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .synopsis-header h2 {
    font-size: 1.35rem;
    color: #431407;
    margin: 0 0 4px 0;
    font-weight: 800;
  }

  .synopsis-header p {
    font-size: 0.85rem;
    color: #7c2d12;
    margin: 0;
    font-weight: 600;
  }

  .panji-synopsis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
    line-height: 1.22;
  }

  .panji-synopsis-table th {
    background: #ffedd5 !important;
    color: #7c2d12 !important;
    padding: 3px 4px;
    border: 1px solid #fed7aa;
    text-align: left;
    font-weight: 700;
  }

  .panji-synopsis-table td {
    padding: 2.5px 4px;
    border: 1px solid #fed7aa;
    vertical-align: top;
  }

  .syn-sankranti {
    background: #fff7ed !important;
    font-weight: 700;
  }

  .syn-purnima {
    background: #f0f9ff !important;
  }

  .syn-amavasya {
    background: #fef2f2 !important;
  }

  .syn-gata {
    text-align: center;
    font-weight: 800;
    color: #ea580c;
    font-size: 0.82rem;
  }

  /* Daily Panji Leaf (1 Leaf per day) */
  .panji-daily-leaf {
    border: 4px double #7c2d12 !important;
    padding: 14px 18px !important;
    background: #ffffff !important;
  }

  .daily-leaf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double #7c2d12;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .dl-gata {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ea580c;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    padding: 2px 8px;
    border-radius: 6px;
  }

  .dl-month {
    font-size: 1.2rem;
    font-weight: 800;
    color: #431407;
  }

  .dl-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: #7c2d12;
  }

  .daily-leaf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .daily-leaf-table td,
  .daily-leaf-table th {
    padding: 3.5px 8px;
    border: 1px solid #fed7aa;
    vertical-align: top;
  }

  .daily-leaf-table td:first-child {
    width: 32%;
    font-weight: 700;
    background: #fffaf5;
    color: #7c2d12;
  }

  .daily-leaf-table .dl-section-head {
    background: #ffedd5 !important;
    color: #7c2d12 !important;
    font-weight: 800;
    text-align: left;
    font-size: 0.92rem;
    border-top: 2px solid #ea580c;
  }

  .dl-fest-cell {
    background: #ffffff !important;
    padding: 8px 10px !important;
  }

  .fest-major {
    display: inline-block;
    color: #991b1b;
    font-weight: 800;
    font-size: 0.98rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px 0;
  }

  .fest-minor {
    display: inline-block;
    color: #c2410c;
    font-weight: 700;
    margin: 2px 0;
  }

  .fest-none {
    color: #a8a29e;
    font-style: italic;
  }

  /* Festival Index Page */
  .panji-fest-index {
    border: 4px double #7c2d12 !important;
    padding: 24px 20px !important;
  }

  .panji-fest-index h2 {
    text-align: center;
    color: #431407;
    margin-bottom: 14px;
    font-size: 1.4rem;
  }

  .panji-fest-index-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
  }

  .panji-fest-index-table th {
    background: #ffedd5 !important;
    color: #7c2d12 !important;
    padding: 7px 10px;
    border: 1px solid #fed7aa;
    text-align: left;
  }

  .panji-fest-index-table td {
    padding: 6px 10px;
    border: 1px solid #fed7aa;
  }

  .panji-fest-index-table tr:nth-child(even) {
    background: #fffaf5;
  }
}

/* ODIA PANJI & MONTHLY PANJIKA STYLING */
.panji-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  border: 2px solid #ea580c;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.12);
}

.panji-month-selector-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.panji-month-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #ffffff;
  border: 1.5px solid var(--saffron-border);
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.panji-month-pill:hover {
  background: #fff7ed;
  border-color: #ea580c;
}

.panji-month-pill.active {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border-color: #9a3412;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
}

.panji-subtabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #fed7aa;
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.panji-subtab-btn {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-weight: 700;
  color: #7c2d12;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.panji-subtab-btn:hover {
  background: #ffedd5;
}

.panji-subtab-btn.active {
  background: #7c2d12;
  color: #fed7aa;
  border-color: #431407;
}

/* TRADITIONAL COLUMNAR PANJI TABLE */
.panji-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.06);
}

.panji-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.panji-table th {
  background: #ffedd5;
  color: #7c2d12;
  padding: 10px 12px;
  font-weight: 800;
  border-bottom: 2px solid #ea580c;
  white-space: nowrap;
}

.panji-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #fed7aa;
  color: #431407;
  vertical-align: top;
}

.panji-table tr:hover td {
  background: #fffbf5;
}

.panji-table tr.sankranti-row td {
  background: #fff7ed;
  border-left: 3px solid #ea580c;
}

.panji-table tr.purnima-row td {
  background: #f8fafc;
}

.panji-table tr.amavasya-row td {
  background: #fef2f2;
}

/* VEDIC WALL-CALENDAR GRID */
.vedic-calendar-container {
  background: #ffffff;
  border: 1.5px solid var(--saffron-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
}

.vedic-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calendar-day-head {
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 8px 4px;
  background: #ffedd5;
  color: #7c2d12;
  border-radius: 6px;
}

.calendar-day-head.sunday {
  color: #b91c1c;
}

.calendar-cell {
  background: #fffdfa;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-cell:hover {
  background: #fff7ed;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.calendar-cell.empty {
  background: #fbfbfb;
  border-color: #f3f4f6;
  min-height: 96px;
}

.calendar-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.calendar-civil-date {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1c0903;
  line-height: 1;
}

.calendar-gata-dina {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.calendar-tithi-badge {
  font-size: 0.74rem;
  color: #7c2d12;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.calendar-fest-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1.2;
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde047;
}

.calendar-fest-chip.major {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

/* ==========================================================
   BRIHAT BULU MAHARAJ HORA SHASTRA (Screen & Print Engine)
   ========================================================== */
:root {
  --hora-maroon-deep: #2a0802;
  --hora-maroon-rich: #451006;
  --hora-gold-royal: #b37d0c;
  --hora-gold-bright: #e59e19;
  --hora-gold-light: #fef3c7;
  --hora-paper-cream: #fffdf9;
  --hora-parchment: #fcf8ee;
  --hora-ink-primary: #1c0803;
  --hora-ink-muted: #572a18;
}

/* Top Control Bar */
.hora-control-bar {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: linear-gradient(135deg, #3d0c04 0%, #1f0401 100%);
  border-bottom: 2px solid var(--hora-gold-bright);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hora-control-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hora-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hora-bar-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Noto Sans Oriya', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hora-control-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hora-btn-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(229, 158, 25, 0.4);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.btn-hora-mode {
  background: transparent;
  color: #fed7aa;
  border: none;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-hora-mode:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-hora-mode.active {
  background: linear-gradient(135deg, #e59e19 0%, #b37d0c 100%);
  color: #1f0401;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hora-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(229, 158, 25, 0.5);
  border-radius: 8px;
  padding: 4px 10px;
  gap: 8px;
}

.hora-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
  min-width: 200px;
  font-family: inherit;
}

.hora-search-box input::placeholder {
  color: rgba(254, 215, 170, 0.6);
}

.btn-hora-print {
  background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
  color: #fff;
  border: 1.5px solid #fde047;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.btn-hora-print:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

/* Layout: Sidebar + Main Content */
.hora-main-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: calc(100vh - 140px);
  background: #f5eedf;
}

@media (max-width: 980px) {
  .hora-main-layout {
    grid-template-columns: 1fr;
  }
  .hora-sidebar {
    position: static;
    max-height: 280px;
  }
}

/* Sidebar */
.hora-sidebar {
  background: #fffbf2;
  border-right: 2px solid #e7d1a5;
  overflow-y: auto;
  position: sticky;
  top: 135px;
  height: calc(100vh - 135px);
}

.hora-sidebar-header {
  padding: 14px 18px;
  background: #f8edd7;
  border-bottom: 1.5px solid #e2c892;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hora-sidebar-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hora-maroon-deep);
}

.hora-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--hora-maroon-rich);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 999px;
}

.hora-chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hora-chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1e2c4;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hora-chapter-item:hover {
  background: #fdf2d9;
}

.hora-chapter-item.active {
  background: linear-gradient(135deg, #451006 0%, #2a0802 100%);
  color: #fff;
  border-left: 4px solid var(--hora-gold-bright);
}

.hora-chapter-item.active .ch-num {
  background: var(--hora-gold-bright);
  color: #1f0401;
}

.hora-chapter-item.active small {
  color: #fed7aa;
}

.ch-num {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ebd29f;
  color: var(--hora-maroon-deep);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.ch-info strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ch-info small {
  display: block;
  font-size: 0.75rem;
  color: #78350f;
  margin-top: 2px;
  line-height: 1.25;
}

/* Main Content Pane */
.hora-content-pane {
  padding: 32px 40px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hora-content-pane {
    padding: 20px 14px;
  }
}

/* Chapter Card */
.hora-chapter-card {
  background: var(--hora-paper-cream);
  border: 4px double var(--hora-gold-royal);
  border-radius: 8px;
  padding: 36px 44px;
  box-shadow: 0 10px 30px rgba(42, 8, 2, 0.1);
  margin-bottom: 30px;
  position: relative;
}

@media (max-width: 768px) {
  .hora-chapter-card {
    padding: 24px 18px;
  }
}

.hora-chapter-header {
  text-align: center;
  border-bottom: 2px solid #e7ce9e;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.hora-chap-number {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hora-gold-royal);
  background: #fef3c7;
  padding: 3px 14px;
  border-radius: 999px;
  border: 1px solid var(--hora-gold-bright);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hora-chap-title-odia {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--hora-maroon-deep);
  margin: 6px 0 4px 0;
  line-height: 1.3;
}

.hora-chap-title-eng {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hora-maroon-rich);
  margin: 0 0 12px 0;
  font-family: 'Playfair Display', Georgia, serif;
}

.hora-chap-summary {
  font-size: 0.95rem;
  color: var(--hora-ink-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

/* Section Blocks */
.hora-section-block {
  margin-bottom: 36px;
}

.hora-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hora-maroon-rich);
  margin-bottom: 14px;
  border-left: 4px solid var(--hora-gold-bright);
  padding-left: 12px;
  line-height: 1.35;
}

.hora-section-text {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--hora-ink-primary);
}

.hora-section-text strong {
  color: var(--hora-maroon-deep);
}

/* Shloka Card */
.hora-shloka-card {
  background: #fff8eb;
  border: 2px solid #e7be6e;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 18px 0 22px 0;
  box-shadow: 0 3px 10px rgba(179, 125, 12, 0.08);
}

.shloka-sanskrit {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hora-maroon-deep);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.shloka-meaning-odia {
  font-size: 0.92rem;
  color: var(--hora-ink-primary);
  line-height: 1.75;
  border-top: 1px dashed #e2c488;
  padding-top: 10px;
  margin-top: 10px;
}

.shloka-meaning-eng {
  font-size: 0.88rem;
  color: #6b371b;
  font-style: italic;
  line-height: 1.65;
  margin-top: 8px;
}

/* Tables */
.hora-table-responsive {
  overflow-x: auto;
  margin: 20px 0 28px 0;
}

.hora-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border: 1.5px solid #d9b168;
}

.hora-data-table th,
.hora-data-table td {
  border: 1px solid #e2c892;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.hora-data-table th {
  background: #fed7aa;
  color: var(--hora-maroon-deep);
  font-weight: 800;
  white-space: nowrap;
}

.hora-data-table tr:nth-child(even) {
  background: #fffcf5;
}

.hora-data-table tr:hover {
  background: #fdf5e2;
}

/* Glossary */
.hora-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.hora-glossary-card {
  background: #fffbf2;
  border: 1px solid #ebd09c;
  border-radius: 6px;
  padding: 14px 16px;
}

.hora-glossary-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: var(--hora-maroon-deep);
}

.hora-glossary-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hora-ink-muted);
  line-height: 1.5;
}

/* Chapter Footer Navigation */
.hora-chapter-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1.5px solid #ebd09c;
  flex-wrap: wrap;
}

.btn-hora-nav {
  background: #fffbf2;
  color: var(--hora-maroon-deep);
  border: 1.5px solid var(--hora-gold-royal);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  font-family: inherit;
}

.btn-hora-nav:hover:not(:disabled) {
  background: var(--hora-gold-royal);
  color: #fff;
}

.btn-hora-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Interactive Kundali SVG Chart Explorer */
.hora-chart-explorer {
  background: var(--hora-paper-cream);
  border: 3px double var(--hora-gold-royal);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.chart-exp-header {
  text-align: center;
  margin-bottom: 24px;
}

.chart-exp-header h2 {
  font-size: 1.5rem;
  color: var(--hora-maroon-deep);
  margin-bottom: 6px;
}

.chart-exp-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .chart-exp-body {
    grid-template-columns: 1fr;
  }
}

.chart-svg-container {
  max-width: 400px;
  margin: 0 auto;
}

.kundali-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.house-poly {
  fill: #fff9ed;
  transition: fill 0.2s ease;
  cursor: pointer;
}

.house-poly:hover {
  fill: #fde68a;
}

.house-poly.active {
  fill: #fed7aa;
  stroke: #c2410c;
  stroke-width: 2.5;
}

.house-num-txt {
  font-size: 12px;
  font-weight: 800;
  fill: #451006;
  text-anchor: middle;
  pointer-events: none;
  font-family: 'Noto Sans Oriya', sans-serif;
}

.chart-house-details {
  background: #fff8eb;
  border: 2px solid #e7ce9e;
  border-radius: 8px;
  padding: 22px;
}

.active-house-badge {
  display: inline-block;
  background: var(--hora-maroon-rich);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.chart-house-details h3 {
  margin: 0 0 4px 0;
  font-size: 1.3rem;
  color: var(--hora-maroon-deep);
}

.house-category-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 16px;
}

.house-prop-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-item {
  font-size: 0.92rem;
  line-height: 1.5;
}

.prop-item strong {
  color: var(--hora-maroon-deep);
  display: inline-block;
  min-width: 130px;
}

/* Royal Cover Page Styles */
/* ==========================================================
   MONUMENTAL SHASTRA GRANTHA COVER STYLES
   ========================================================== */
.hora-shastra-cover-frame {
  background: linear-gradient(145deg, #2a0604 0%, #440d07 40%, #1f0302 100%);
  border: 8px double #d4af37;
  border-radius: 8px;
  padding: 40px 30px;
  margin-bottom: 45px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  color: #fff9ed;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shastra-torana-arch {
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  padding: 30px 24px;
  background: radial-gradient(circle at 50% 15%, rgba(212, 175, 55, 0.12) 0%, transparent 75%);
  position: relative;
}

/* Auspicious Vedic Shlokas Invocations */
.shastra-invocations-banner {
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 16px;
}

.shastra-shloka-supreme {
  font-family: 'Noto Sans Devanagari', 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 14px rgba(234, 179, 8, 0.5);
  margin-bottom: 6px;
}

.shastra-shloka-deities {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fed7aa;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.shastra-shloka-tradition {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 0.95rem;
  color: #fbd38d;
  font-style: italic;
}

/* Sacred Preceptor & Lineage Mandapa */
.shastra-preceptor-mandapa {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.shastra-lineage-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
}

.lineage-seal-frame {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: #1c0903;
}

.lineage-seal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lineage-seal-name {
  font-family: 'Noto Sans Oriya', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 1px 4px #000;
}

.lineage-seal-place {
  font-size: 0.78rem;
  color: #fbd38d;
  font-weight: 600;
}

/* Center Preceptor Shrine */
.shastra-guru-main-sanctum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 380px;
}

.guru-portrait-halo-frame {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  border: 4px solid #facc15;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.65), 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: #200402;
}

.guru-shastra-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guru-accreditation-card {
  text-align: center;
}

.guru-role-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.25), rgba(234, 88, 12, 0.35), rgba(234, 179, 8, 0.25));
  border: 1px solid #d4af37;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.guru-sacred-title {
  font-family: 'Noto Sans Oriya', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin: 4px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.guru-lineage-desc {
  font-size: 0.82rem;
  color: #fde68a;
  margin: 0;
  font-weight: 600;
}

/* Main Shastra Title Block */
.shastra-title-inscription {
  margin: 30px 0 25px 0;
  padding: 24px 15px;
  border-top: 2px solid #d4af37;
  border-bottom: 2px solid #d4af37;
  background: rgba(18, 2, 2, 0.65);
}

.shastra-vedic-om {
  font-size: 1.6rem;
  color: #facc15;
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

.shastra-sanskrit-title {
  font-family: 'Noto Sans Devanagari', 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fef08a;
  margin: 0 0 6px 0;
  letter-spacing: 2px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 0 18px rgba(234, 179, 8, 0.5);
}

.shastra-odia-title {
  font-family: 'Noto Sans Oriya', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.25;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95);
}

.shastra-eng-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fed7aa;
  letter-spacing: 2.5px;
  margin: 0 0 12px 0;
}

.shastra-classical-subtitle {
  font-family: 'Noto Sans Oriya', serif;
  font-size: 1.05rem;
  color: #fef3c7;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 14px auto;
}

.shastra-edition-seal span {
  display: inline-block;
  background: #451a03;
  border: 1px solid #f59e0b;
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* The 18 Master Treatises Syllabus Plaque */
.shastra-syllabus-tablet {
  background: rgba(22, 3, 2, 0.85);
  border: 2px solid #b45309;
  border-radius: 8px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.tablet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 10px;
}

.tablet-header h4 {
  font-family: 'Noto Sans Oriya', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde68a;
  margin: 0;
}

.tablet-star {
  color: #f59e0b;
}

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}

.tablet-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tablet-item {
  font-size: 0.85rem;
  color: #fef9c3;
  line-height: 1.4;
  padding: 5px 8px;
  background: rgba(69, 26, 3, 0.45);
  border-left: 3px solid #d97706;
  border-radius: 2px;
}

.tablet-item strong {
  color: #fde68a;
}

/* Shastra Cover Footer Seal */
.shastra-cover-footer-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  padding-top: 16px;
  text-align: left;
}

.seal-foot-left strong,
.seal-foot-right strong {
  display: block;
  font-size: 0.9rem;
  color: #fde68a;
}

.seal-foot-left small,
.seal-foot-right small {
  font-size: 0.8rem;
  color: #fed7aa;
}

.seal-foot-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swastika-icon {
  font-size: 1.4rem;
  color: #f59e0b;
}

.seal-sacred-motto {
  font-family: 'Noto Sans Oriya', 'Noto Sans Devanagari', serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .tablet-grid {
    grid-template-columns: 1fr;
  }
  .shastra-preceptor-mandapa {
    flex-direction: column;
  }
  .shastra-odia-title {
    font-size: 1.8rem;
  }
}

/* Guru Approval Seal */
.hora-guru-approval-seal {
  background: #fffbf2;
  border: 3px double var(--hora-maroon-rich);
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.seal-emblem {
  font-size: 2rem;
}

.seal-header h3 {
  font-size: 1.3rem;
  color: var(--hora-maroon-deep);
  margin: 6px 0 4px 0;
}

.seal-verse {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7c2d12;
  font-style: italic;
  margin: 0 0 16px 0;
}

.seal-body-text {
  max-width: 650px;
  margin: 0 auto 28px auto;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--hora-ink-primary);
}

.seal-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.sig-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sig-line {
  width: 140px;
  border-bottom: 1.5px solid var(--hora-maroon-deep);
  margin-bottom: 8px;
}

.sig-block strong {
  font-size: 0.95rem;
  color: var(--hora-maroon-deep);
}

.sig-block small {
  font-size: 0.8rem;
  color: #78350f;
}

/* Hide Printable Book in screen mode */
.hora-printable-book {
  display: none;
}

/* ==========================================================
   PRINT ENGINE (@media print for A4 Multi-Page Textbook)
   ========================================================== */
@media print {
  /* Hide all web interface components */
  .portal-header,
  .portal-footer,
  .portal-nav-bar,
  .hora-control-bar,
  .hora-sidebar,
  .hora-content-pane,
  .no-print,
  #headerCitySelect,
  .btn-royal {
    display: none !important;
  }

  body, html {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Reveal dedicated print book */
  #mHoraBookPrintContainer:not(:empty),
  .hora-book-print-root:not(:empty),
  .hora-printable-book {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #1c0903 !important;
    z-index: 9999999 !important;
  }

  .hora-print-page {
    width: 100% !important;
    box-sizing: border-box;
    page-break-before: always !important;
    break-before: page !important;
    padding: 15mm 15mm 20mm 15mm !important;
  }

  .hora-shastra-cover-frame,
  .hora-royal-cover-page {
    page-break-after: always !important;
    break-after: page !important;
    padding: 18mm 12mm !important;
    margin: 0 0 20mm 0 !important;
    box-shadow: none !important;
    border: 6px double #b37d0c !important;
    background: #2a0604 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-page-border {
    border: 1px solid #d4af37;
    padding: 12mm;
    min-height: 92vh;
    box-sizing: border-box;
  }

  .print-ch-header {
    text-align: center;
    border-bottom: 1.5px solid #b37d0c;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .print-ch-num {
    font-size: 11px;
    font-weight: 800;
    color: #b37d0c;
    text-transform: uppercase;
  }

  .print-ch-title-odia {
    font-size: 20px;
    font-weight: 900;
    color: #300a03;
    margin: 4px 0;
  }

  .print-ch-title-eng {
    font-size: 13px;
    color: #542917;
    margin: 0 0 6px 0;
  }

  .print-ch-summary {
    font-size: 11px;
    font-style: italic;
    color: #444;
  }

  .hora-shloka-card {
    border: 1.5px solid #b37d0c !important;
    background: #fffbf5 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    padding: 12px !important;
    margin: 12px 0 !important;
  }

  .shloka-sanskrit {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .hora-data-table {
    border: 1px solid #999 !important;
    font-size: 10px !important;
    page-break-inside: auto !important;
  }

  .hora-data-table tr {
    page-break-inside: avoid !important;
    page-break-after: auto !important;
  }

  .hora-data-table th {
    background: #fed7aa !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hora-guru-approval-seal {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 2px double #300a03 !important;
    margin-top: 30px !important;
  }

  .cover-portrait-img {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================
   ASTROSAGE-GRADE ROYAL JANMA & VIVAHA PATRIKA DOSSIERS
   ========================================================== */
.royal-patrika-dossier,
.grand-vivaha-patrika-dossier {
  width: 100%;
  background: #fff;
  color: #1c0903;
  font-family: 'Noto Sans Oriya', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.patrika-page {
  box-sizing: border-box;
  padding: 14mm 16mm;
  background: #fff;
  position: relative;
  overflow: hidden;
  page-break-before: always;
  break-before: page;
}

/* Full-page Pandit Shree Bulu Maharaj Watermark on Every Page */
.patrika-page-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.085;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.patrika-watermark-img {
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
  filter: grayscale(100%) contrast(115%);
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.patrika-page > *:not(.patrika-page-watermark) {
  position: relative;
  z-index: 1;
}

.patrika-cover-mandapa,
.vivaha-cover-page {
  page-break-before: avoid;
  break-before: avoid;
  padding: 10mm 12mm;
}

.mandapa-outer-border {
  border: 4px double #b45309;
  outline: 1px solid #fde047;
  outline-offset: -8px;
  padding: 16px 20px;
  background: #fffdfa;
  text-align: center;
  border-radius: 8px;
}

.mandapa-header-shlokas .shloka-om {
  font-size: 1.15rem;
  font-weight: 800;
  color: #7c2d12;
  font-family: 'Noto Serif Devanagari', serif;
}

.mandapa-header-shlokas .shloka-deities {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9a3412;
  margin: 4px 0;
}

.mandapa-header-shlokas .shloka-lineage {
  font-size: 0.85rem;
  color: #78350f;
  font-style: italic;
  margin-bottom: 12px;
}

.mandapa-preceptor-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 12px 0 16px;
  padding: 10px 0;
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
}

.shrine-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shrine-deity-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #b45309;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shrine-pillar span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c2d12;
}

.shrine-pillar small {
  font-size: 0.72rem;
  color: #78350f;
}

.shrine-guru-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guru-photo-halo {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  display: inline-block;
  box-shadow: 0 6px 16px rgba(180,83,9,0.25);
}

.guru-main-portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.guru-title-name {
  font-size: 1.35rem;
  color: #431407;
  font-weight: 800;
  margin: 6px 0 2px 0;
  font-family: 'Cinzel', 'Noto Sans Oriya', serif;
}

.guru-subtitle {
  font-size: 0.78rem;
  color: #9a3412;
  font-weight: 600;
}

.mandapa-patrika-title {
  margin: 14px 0;
}

.grand-sanskrit-title {
  font-size: 1.4rem;
  color: #7c2d12;
  margin: 0;
  font-weight: 800;
}

.grand-odia-title {
  font-size: 1.55rem;
  color: #9a3412;
  margin: 4px 0;
  font-weight: 900;
}

.grand-eng-title {
  font-size: 0.92rem;
  color: #431407;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
}

.grand-tagline {
  font-size: 0.78rem;
  color: #78350f;
  margin: 4px 0 0 0;
  font-style: italic;
}

.mandapa-native-box {
  background: #fff;
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
}

.native-badge {
  display: inline-block;
  background: #fef3c7;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.native-name-display {
  font-size: 1.6rem;
  color: #7c2d12;
  font-weight: 900;
  margin: 4px 0 8px 0;
}

.native-grid-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  text-align: left;
  font-size: 0.82rem;
  color: #431407;
  line-height: 1.4;
}

.mandapa-cover-footer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #78350f;
  border-top: 1px dashed #fed7aa;
  padding-top: 8px;
}

.mandapa-cover-footer span {
  font-weight: 800;
  color: #b45309;
}

/* Page Headers & Titles */
.page-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #78350f;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.page-num {
  font-weight: 700;
}

.section-title {
  font-size: 1.15rem;
  color: #7c2d12;
  font-weight: 800;
  border-bottom: 2px solid #b45309;
  padding-bottom: 4px;
  margin: 8px 0 12px 0;
}

/* Grids & Cards */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card-box {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.card-subheading {
  font-size: 0.9rem;
  color: #7c2d12;
  font-weight: 800;
  margin: 0 0 8px 0;
  border-bottom: 1px dashed #fed7aa;
  padding-bottom: 4px;
}

/* Tables */
.data-compact-table,
.data-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.data-compact-table td,
.data-compact-table th,
.data-full-table td,
.data-full-table th {
  border: 1px solid #fed7aa;
  padding: 3px 6px;
  text-align: left;
}

.data-full-table th {
  background: #fef3c7;
  color: #78350f;
  font-weight: 700;
}

.data-full-table tr:nth-child(even) {
  background: #fffdfa;
}

/* Chart Rows */
.two-chart-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0;
}

.chart-display-card {
  background: #fff;
  border: 1px solid #d97706;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.chart-display-card h4 {
  font-size: 0.85rem;
  color: #7c2d12;
  margin: 0 0 6px 0;
}

/* Reading Banners & Blocks */
.reading-banner {
  background: #fffaf0;
  border: 1.5px solid #d97706;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 8px 0;
}

.reading-banner h3 {
  font-size: 0.95rem;
  color: #431407;
  margin: 0 0 4px 0;
}

.reading-banner p {
  font-size: 0.8rem;
  color: #78350f;
  margin: 0;
}

.banner-alert {
  background: #fef2f2;
  border-color: #ef4444;
}

.banner-alert h3 {
  color: #991b1b;
}

.banner-success {
  background: #f0fdf4;
  border-color: #22c55e;
}

.banner-success h3 {
  color: #166534;
}

.prediction-block {
  margin: 10px 0;
}

.pred-heading {
  font-size: 0.88rem;
  color: #9a3412;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.prediction-block p,
.prediction-block ul {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #1c0903;
  margin: 0 0 6px 0;
}

.prediction-block ul {
  padding-left: 18px;
}

.prediction-block li {
  margin-bottom: 4px;
}

/* Shodashvarga Gallery */
.varga-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.varga-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

/* Yogini Grid */
.yogini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.yogini-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.75rem;
}

.yogini-head {
  border-bottom: 1px solid #fde047;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.yogini-head strong {
  display: block;
  color: #7c2d12;
}

.yogini-dates {
  font-size: 0.7rem;
  color: #9a3412;
  font-weight: 700;
  margin-bottom: 4px;
}

.yogini-subs {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

/* Guru Consecration Box */
.guru-consecration-box {
  border: 2px double #b45309;
  border-radius: 8px;
  padding: 16px;
  background: #fffdfa;
  text-align: center;
}

.sacred-om-badge {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.sanskrit-blessing {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7c2d12;
  font-style: italic;
  margin: 4px 0 12px 0;
}

.guru-message-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #431407;
  margin: 12px 0;
}

.guru-sign-row {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #fed7aa;
}

.seal-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-ring span {
  font-weight: 800;
  color: #7c2d12;
  font-size: 0.85rem;
}

.seal-ring small {
  color: #78350f;
  font-size: 0.72rem;
}

/* Vivaha Patrika Styles */
.vivaha-guru-mandapa {
  text-align: center;
  margin: 10px 0;
}

.guru-vivaha-portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #d97706;
  box-shadow: 0 4px 14px rgba(180,83,9,0.25);
  object-fit: cover;
}

.guru-sub-title {
  font-size: 1.15rem;
  color: #431407;
  font-weight: 800;
  margin: 6px 0 2px 0;
}

.guru-sub-desc {
  font-size: 0.78rem;
  color: #78350f;
  margin: 0;
}

.vivaha-patrika-title-box {
  border-top: 2px double #b45309;
  border-bottom: 2px double #b45309;
  padding: 12px 0;
  margin: 12px 0;
}

.vivaha-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #9a3412;
}

.vivaha-title-main {
  font-size: 1.45rem;
  color: #7c2d12;
  font-weight: 900;
  margin: 4px 0;
}

.vivaha-names-callout {
  font-size: 1.7rem;
  color: #9a3412;
  margin: 6px 0;
  font-weight: 900;
}

.vivaha-verdict-pill {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #7c2d12;
  font-weight: 700;
  margin-top: 4px;
}

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

.saptapadi-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 8px 10px;
}

.vow-step {
  display: inline-block;
  background: #fed7aa;
  color: #7c2d12;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.vow-shloka {
  font-size: 0.82rem;
  font-weight: 700;
  color: #431407;
  margin-bottom: 4px;
}

.vow-meaning {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #1c0903;
}

.phase-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 700;
}

.vakri-tag {
  color: #b91c1c;
  font-weight: 800;
  font-size: 0.7rem;
}


/* --------------------------------------------------------------------------
   6-DEPTH VIMSHOTTARI DASHA EXPLORER (Maha to Deha)
   -------------------------------------------------------------------------- */
.dasha-active-chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
  width: 100%;
}

.dasha-depth-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(67, 20, 7, 0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dasha-depth-card:hover {
  transform: translateY(-2px);
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}

.dasha-depth-card.is-active-depth {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 2px solid #ea580c;
}

.dasha-depth-card .depth-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #9a3412;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dasha-depth-card .depth-planet {
  font-size: 1.05rem;
  font-weight: 800;
  color: #431407;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.dasha-depth-card .depth-dates {
  font-size: 0.74rem;
  color: #78350f;
  margin-top: 4px;
  line-height: 1.35;
  font-family: monospace;
}

.dasha-progress-bar {
  width: 100%;
  height: 5px;
  background: #fed7aa;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.dasha-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #16a34a);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Breadcrumb nav */
.dasha-breadcrumbs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.dasha-crumb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c2d12;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dasha-crumb-item:hover {
  background: #ffedd5;
  border-color: #ea580c;
}

.dasha-crumb-item.current {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  cursor: default;
}

.dasha-crumb-separator {
  color: #c2410c;
  font-weight: 900;
  font-size: 0.85rem;
}

.dasha-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dasha-btn-sm {
  background: #ffedd5;
  color: #7c2d12;
  border: 1.5px solid #fed7aa;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dasha-btn-sm:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.dasha-level-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-bottom: 12px;
}

.dasha-level-tab {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7c2d12;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dasha-level-tab:hover {
  background: #ffedd5;
  border-color: #ea580c;
}

.dasha-level-tab.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.dasha-antar-chip:hover {
  transform: translateY(-2px);
  border-color: #ea580c !important;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.12);
}

/* ==========================================================================
   IN-DEPTH KUNDALI SECTIONS: QUICK NAV, YOGAS, DRISHTI, BHAVAS, ARUDHAS, REMEDIES
   ========================================================================== */
.kundali-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
  padding: 10px 14px;
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.04);
}

.kundali-quick-nav .knav-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #9a3412;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kundali-quick-nav .knav-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7c2d12;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.kundali-quick-nav .knav-chip:hover {
  background: #ffedd5;
  color: #431407;
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
}

/* 1. Classical Vedic Yogas Grid */
.yoga-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.yoga-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.yoga-card:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
  transform: translateY(-2px);
}

.yoga-card-header {
  margin-bottom: 8px;
}

.yoga-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.yoga-category-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.yoga-nature-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
}

.yoga-title {
  margin: 0;
  color: #431407;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.yoga-planets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.yoga-planet-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 999px;
}

.yoga-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 2. Bhava Drishti Matrix Grid */
.bhava-drishti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.bhava-drishti-cell {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(67, 20, 7, 0.02);
}

/* 3. 12 Bhavas Phala Analysis Grid */
.bhavas-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.bhava-analysis-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bhava-analysis-card:hover {
  transform: translateY(-2px);
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(67, 20, 7, 0.06);
}

.bhava-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fed7aa;
}

.bhava-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(194, 65, 12, 0.3);
}

/* 4. Jaimini Arudhas & Sensitive Points */
.arudha-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.arudha-hero-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(67, 20, 7, 0.03);
}

/* 5. Personalized Vedic Remedies */
.remedies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.remedy-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.remedy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 20, 7, 0.07);
}

.remedy-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
  text-transform: uppercase;
}

.remedy-gem-title {
  margin: 0 0 10px 0;
  color: #431407;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.remedy-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 5px 0;
  border-bottom: 1px dashed #fed7aa;
}

.remedy-mantra-box {
  margin-top: 12px;
  padding: 8px 10px;
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  text-align: center;
}

.remedy-mantra-box small {
  display: block;
  color: #78350f;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.remedy-mantra-box strong {
  display: block;
  color: #c2410c;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-top: 3px;
}

/* ==========================================================================
   INTERACTIVE LIFE PREDICTIONS DOSSIER & REAL-TIME GOCHARA TRANSIT STYLES
   ========================================================================== */
.profile-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.profile-hero-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.04);
  box-sizing: border-box;
}

.profile-hero-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #fed7aa;
}

.profile-hero-head h5 {
  margin: 0;
  color: #431407;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.dimension-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dimension-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.1);
  border-color: #f97316;
}

.dimension-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #fed7aa;
}

.dimension-card-head strong {
  color: #7c2d12;
  font-family: var(--font-serif);
  font-size: 0.96rem;
}

.dimension-card-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.gochara-hero-banner {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-sizing: border-box;
}

.gochara-hero-banner.chandrashtama-alert {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #f87171;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.08);
}

.gochara-hero-banner.lunar-auspicious {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde047;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.06);
}

/* ==========================================================================
   ROYAL JANMA PATRIKA PRINT PREVIEW MODAL & EXACT A4 WYSIWYG VIEWER
   ========================================================================== */
.patrika-preview-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
}

.patrika-preview-modal-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.patrika-preview-toolbar {
  background: #fffdf8;
  border-bottom: 2px solid #fed7aa;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(67, 20, 7, 0.08);
  z-index: 10;
}

.patrika-preview-toolbar .toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.patrika-preview-toolbar .toolbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.patrika-preview-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-btn-group {
  display: inline-flex;
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 2px 4px;
  gap: 2px;
}

.btn-preview-tool {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #7c2d12;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preview-tool.active,
.btn-preview-tool:hover {
  background: #ea580c;
  color: #ffffff;
}

.patrika-preview-scroll-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  background: #1e293b;
  padding: 34px 16px 80px;
  display: flex;
  justify-content: center;
}

.preview-pages-wrapper {
  width: 100%;
  max-width: 215mm;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.preview-pages-wrapper .patrika-page {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  margin: 0 auto;
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  background: #ffffff;
}

@media (max-width: 820px) {
  .preview-pages-wrapper {
    max-width: 100%;
  }
  .preview-pages-wrapper .patrika-page {
    width: 100%;
    min-height: auto;
    padding: 16px 12px;
  }
  .patrika-preview-toolbar {
    padding: 8px 12px;
  }
}

@media print {
  .patrika-preview-modal-backdrop {
    display: none !important;
  }
}

