@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ==========================================================================
   Kuuthi.in - Yogas & Muhurat Astrologer Panels
   Design: Modern, Clean, Professional Light Executive Theme
   ========================================================================== */

/* --- Root Mount Points --- */
#kuthi-yogas-panel,
#kuthi-muhurat-panel {
  display: none;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

/* --- Global Panel Container --- */
.astro-panel-container {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* --- Panel Card Shell --- */
.astro-panel-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #dce5f2;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(53, 120, 229, 0.04);
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.astro-panel-card:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(53, 120, 229, 0.06);
}

/* --- Panel Header (Clean Modern Light Theme) --- */
.astro-panel-header {
  background: #ffffff;
  color: #0f172a;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1.5px solid #e2e8f0;
  position: relative;
}

.astro-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.astro-panel-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.astro-panel-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.astro-panel-subtitle {
  margin: 3px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.astro-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.astro-panel-badge strong {
  color: #2563eb;
  font-weight: 700;
}

.astro-panel-plan-corner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  margin-left: auto !important;
  gap: 3px !important;
  z-index: 2 !important;
}

.plan-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  user-select: none !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.plan-badge:hover {
  transform: translateY(-1px);
}

.astro-panel-upgrade-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  margin-top: 2px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.astro-panel-upgrade-action-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.38) !important;
}

.astro-panel-upgrade-action-btn:active {
  transform: translateY(0) !important;
}

/* GRACE Plan Corner Badge (Emerald Botanical Gradient) */
.plan-badge-grace {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #86efac !important;
  box-shadow: 0 3px 12px rgba(22, 163, 74, 0.35) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* PRO Plan Corner Badge (Sleek Royal Indigo Gradient) */
.plan-badge-pro {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #93c5fd !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* ULTRA Plan Corner Badge (Ultra-Luxury Violet-Gold Shimmer Gradient) */
.plan-badge-ultra {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #f472b6 !important;
  box-shadow: 0 3px 14px rgba(192, 38, 211, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  animation: ultraGlow 3s infinite alternate ease-in-out !important;
}

.plan-badge-sparkle {
  font-size: 0.85rem;
  line-height: 1;
}

@keyframes ultraGlow {
  0% {
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.35);
  }

  100% {
    box-shadow: 0 4px 18px rgba(217, 70, 239, 0.55), 0 0 8px rgba(251, 146, 60, 0.4);
  }
}

/* ==========================================================================
   Muhurat Plan Upgrade & Purchase Cards (Astro Pro 1..4 / Pro 1..4)
   ========================================================================== */
.muhurat-plan-upgrade-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 16px 0;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

.muhurat-plan-upgrade-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.muhurat-plan-upgrade-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.muhurat-plan-upgrade-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muhurat-plan-upgrade-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.01em;
}

.muhurat-plan-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.muhurat-plan-target-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

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

@media (max-width: 1200px) {
  .muhurat-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .muhurat-plans-grid {
    grid-template-columns: 1fr;
  }
}

.muhurat-plan-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.muhurat-plan-card.is-free-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(34, 197, 94, 0.45);
}

.muhurat-plan-card.is-free-card .muhurat-plan-card-name {
  color: #4ade80;
}

.muhurat-plan-card.is-free-card .muhurat-plan-window-pill {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card .muhurat-plan-card-name {
  color: #166534;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card .muhurat-plan-card-tagline {
  color: #15803d;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card .muhurat-plan-desc {
  color: #1e3a29;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card .muhurat-plan-window-pill {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #14532d;
}

.muhurat-modal-card .muhurat-plan-card.is-free-card .muhurat-plan-range-dates {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.muhurat-plan-free-btn {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: default;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.muhurat-modal-card .muhurat-plan-free-btn {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.muhurat-plan-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.25);
}

.muhurat-plan-card.is-recommended {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3) !important;
}

.muhurat-plan-recommended-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  white-space: nowrap;
}

.muhurat-plan-card-header {
  margin-bottom: 10px;
}

.muhurat-plan-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.muhurat-plan-card-tagline {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muhurat-plan-window-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 8px 0;
}

.muhurat-plan-card.is-recommended .muhurat-plan-window-pill {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.muhurat-plan-pricing-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 12px 0;
  flex-wrap: wrap;
}

.muhurat-price-actual {
  text-decoration: line-through !important;
  color: #94a3b8 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  opacity: 0.85;
}

.muhurat-price-num {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #22c55e !important;
  font-family: 'Outfit', sans-serif !important;
}

.muhurat-validity-tag {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.muhurat-price-free {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #22c55e !important;
  font-family: 'Outfit', sans-serif !important;
}

.muhurat-plan-desc {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 12px;
}

.muhurat-plan-range-dates {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.muhurat-plan-buy-btn {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.muhurat-plan-buy-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.5);
}

.muhurat-plan-card.is-recommended .muhurat-plan-buy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
}

.muhurat-plan-card.is-recommended .muhurat-plan-buy-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 5px 18px rgba(245, 158, 11, 0.65);
}

/* --- Filter & Action Toolbar --- */
.astro-panel-toolbar {
  background: #f8fafc;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.astro-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-filter-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.astro-filter-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.astro-filter-tab.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.astro-search-input {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  width: 220px;
  transition: all 0.2s ease;
}

.astro-search-input::placeholder {
  color: #94a3b8;
}

.astro-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   Yogas Grid & Foldable Modern Cards (Clean, Spacious Executive Layout)
   ========================================================================== */
.astro-yogas-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .astro-yogas-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
}

.astro-yoga-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.astro-yoga-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.astro-yoga-card.is-unfolded {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px -4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

/* Subtle Left Accent Indicator */
.astro-yoga-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #cbd5e1;
  border-radius: 14px 0 0 14px;
  transition: width 0.2s ease, background 0.2s ease;
}

.astro-yoga-card.is-unfolded::before {
  width: 5px;
}

/* Color Accent Bars on Left Border */
.astro-yoga-card:has(.cat-raja)::before {
  background: #e11d48;
}

.astro-yoga-card:has(.cat-dhana)::before {
  background: #d97706;
}

.astro-yoga-card:has(.cat-mahapurusha)::before {
  background: #7c3aed;
}

.astro-yoga-card:has(.cat-chandra-surya)::before {
  background: #0284c7;
}

.astro-yoga-card:has(.cat-spiritual)::before {
  background: #059669;
}

/* Yoga Card Header (Always Visible) */
.astro-yoga-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.astro-yoga-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.astro-yoga-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.astro-yoga-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
}

.cat-raja {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.cat-dhana {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.cat-mahapurusha {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.cat-chandra-surya {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.cat-spiritual {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.cat-general {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.astro-yoga-active-dot {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.astro-yoga-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.astro-yoga-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
}

.astro-yoga-circle-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.astro-yoga-card:hover .astro-yoga-circle-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.astro-yoga-card.is-unfolded .astro-yoga-circle-toggle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.astro-yoga-chevron-svg {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.astro-yoga-card.is-unfolded .astro-yoga-chevron-svg {
  transform: rotate(180deg);
}

/* Foldable Body */
.astro-yoga-foldable-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.astro-yoga-card.is-unfolded .astro-yoga-foldable-body {
  max-height: 800px;
  opacity: 1;
}

.astro-yoga-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 14px 0 12px 0;
}

.astro-yoga-impact-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 12px 0;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #edf2f7;
}

.astro-yoga-impact-text.is-empty {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.82rem;
  background: transparent;
  border: 1px dashed #e2e8f0;
}

.astro-yoga-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  font-size: 0.76rem;
  color: #64748b;
}

.astro-yoga-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 600;
}

.astro-yoga-modal-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.astro-yoga-modal-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.astro-expand-all-btn {
  margin-left: auto;
}

/* ==========================================================================
   Muhurat Panel (Modern Ultra-Clean & Professional Theme)
   ========================================================================== */
.muhurat-body {
  padding: 24px 28px;
  background: #f8fafc;
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Astrologer Verified Account Card --- */
.muhurat-astro-account-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2), 0 4px 10px -2px rgba(15, 23, 42, 0.1);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.muhurat-astro-account-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.astro-acc-left {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.astro-acc-avatar {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.astro-acc-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.astro-acc-email {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 500;
}

.astro-acc-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1;
}

.astro-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.astro-pill.live-pill {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.astro-pill .pill-lbl {
  color: #94a3b8;
  font-weight: 500;
}

.astro-pill .pill-val {
  color: #f8fafc;
}

.astro-pill .code-val {
  color: #38bdf8;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.astro-pill .plan-val.pro {
  color: #fde047;
  font-weight: 800;
}

.astro-pill .plan-val.ultra {
  color: #c084fc;
  font-weight: 800;
}

.astro-pill .exp-val {
  color: #a7f3d0;
  font-weight: 700;
}

/* --- Interactive Date Picker & Calendar Toolbar --- */
.muhurat-calendar-toolbar {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.muhurat-cal-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.muhurat-cal-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.muhurat-cal-icon {
  font-size: 1.25rem;
}

.muhurat-cal-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.muhurat-date-picker-input {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.muhurat-date-picker-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.muhurat-date-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.muhurat-nav-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.muhurat-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.muhurat-nav-btn.today-btn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
}

.muhurat-nav-btn.today-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.muhurat-cal-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muhurat-active-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.06);
}

.muhurat-active-date-pill strong {
  color: #14532d;
}

/* --- Mode Switcher (Segmented Control) --- */
.muhurat-mode-bar {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.muhurat-mode-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.muhurat-mode-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.muhurat-mode-btn:hover {
  color: #0f172a;
}

.muhurat-mode-btn.is-active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

/* --- Compact Coordinates Toolbar --- */
.muhurat-location-toolbar-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.muhurat-loc-inline-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #0369a1;
  font-weight: 700;
  white-space: nowrap;
}

.muhurat-loc-inline-inputs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.muhurat-mini-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
}

.muhurat-mini-input {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.muhurat-mini-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.muhurat-mini-input.place-input {
  width: 140px;
}

.muhurat-mini-input.num-input {
  width: 90px;
}

.muhurat-mini-btn {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.muhurat-mini-btn.apply-mini-btn {
  background: #0284c7;
  color: #ffffff;
}

.muhurat-mini-btn.apply-mini-btn:hover {
  background: #0369a1;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.25);
}

.muhurat-mini-btn.reset-mini-btn {
  background: #ffffff;
  color: #0369a1;
  border-color: #bae6fd;
}

.muhurat-mini-btn.reset-mini-btn:hover {
  background: #e0f2fe;
}

/* --- Little Timezone Badges & Indicators --- */
.muhurat-tz-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  letter-spacing: 0.02em;
  margin-left: 6px;
  line-height: 1.4;
  vertical-align: middle;
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: all 0.15s ease;
}

.muhurat-mode-btn.is-active .muhurat-tz-pill {
  background: #ffffff;
  color: #0369a1;
  border-color: #bae6fd;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.muhurat-tz-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.muhurat-mini-field.muhurat-tz-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.muhurat-tz-inline-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  padding: 4px 8px;
  white-space: nowrap;
}

.muhurat-tz-sub-text {
  font-size: 0.74rem;
  color: #0284c7;
  font-weight: 600;
  margin-left: 3px;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  display: inline-block;
  vertical-align: middle;
}

.muhurat-bengal-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1.5px solid #f5d0fe;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #86198f;
}

.muhurat-bengal-icon {
  font-size: 1.5rem;
}

.muhurat-bengal-banner strong {
  font-size: 0.9rem;
  color: #701a75;
}

.muhurat-bengal-banner p {
  font-size: 0.78rem;
  color: #a21caf;
  margin: 2px 0 0 0;
}

/* --- Solar Metrics & Durations Dashboard Card --- */
.muhurat-dual-summary-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.muhurat-dual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.duration-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.metric-box {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.day-metric {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
}

.day-metric .metric-label {
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.day-metric .metric-value {
  color: #78350f;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.01em;
}

.night-metric {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1.5px solid #cbd5e1;
}

.night-metric .metric-label {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.night-metric .metric-value {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.01em;
}

.metric-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
}

.metric-sub strong {
  color: #0f172a;
}

/* --- Section Titles --- */
.muhurat-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 14px 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* --- Active Date Solar Horizon & Day Navigation Single Row --- */
.muhurat-solar-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.muhurat-solar-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.solar-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.solar-time-chip.sunrise-chip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.solar-time-chip.sunset-chip {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.solar-time-chip .solar-value {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.solar-date-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.solar-date-badge button.custom-datepicker-toggle-btn,
.muhurat-solar-nav-row button.custom-datepicker-toggle-btn,
.ashtama-date-nav-toolbar button.custom-datepicker-toggle-btn,
.muhurat-panchang-date-nav button.custom-datepicker-toggle-btn {
  display: none !important;
}

.solar-date-badge input.custom-datepicker-input,
.muhurat-solar-nav-row input.custom-datepicker-input,
.ashtama-date-nav-toolbar input.custom-datepicker-input,
.muhurat-panchang-date-nav input.custom-datepicker-input {
  padding-right: 6px !important;
  padding-left: 6px !important;
  text-align: center !important;
}

.solar-nav-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.solar-nav-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* --- 3-Day Solar Horizon Deck (Legacy / Optional) --- */
.muhurat-3day-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.muhurat-3day-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muhurat-3day-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.muhurat-3day-card.is-today {
  border-color: #2563eb;
  background: #fcfdfe;
  box-shadow: 0 0 0 1px #2563eb, 0 6px 18px rgba(37, 99, 235, 0.12);
}

.muhurat-3day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.muhurat-3day-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag-prev {
  background: #f1f5f9;
  color: #64748b;
}

.tag-target {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.tag-next {
  background: #f1f5f9;
  color: #64748b;
}

.muhurat-3day-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.muhurat-3day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.muhurat-3day-item {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 6px 10px;
}

.muhurat-3day-card.is-today .muhurat-3day-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

.muhurat-3day-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.muhurat-3day-val {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   Major Vedic Inauspicious Periods & Avoidance Windows
   ========================================================================== */
.bela-alert-section {
  background: #fff8f8;
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.06);
}

.bela-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #fee2e2;
}

.bela-badge-alert {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.bela-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.bela-card {
  background: #ffffff;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bela-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.12);
}

.bela-card.rahu-kalam-card {
  border-color: #f87171;
  border-left: 5px solid #dc2626;
  background: #fffafa;
}

.bela-card.yamaghanta-card {
  border-color: #fb923c;
  border-left: 5px solid #ea580c;
  background: #fffaf5;
}

.bela-card.gulika-card {
  border-color: #818cf8;
  border-left: 5px solid #6366f1;
  background: #faf5ff;
}

.bela-card.durmuhurta-card {
  border-color: #f43f5e;
  border-left: 5px solid #e11d48;
  background: #fff1f2;
}

.bela-card.bar-bela-card {
  border-color: #fca5a5;
  border-left: 5px solid #ef4444;
}

.bela-card.kala-bela-card {
  border-color: #fed7aa;
  border-left: 5px solid #f97316;
}

.bela-card.kala-ratri-card {
  border-color: #e9d5ff;
  border-left: 5px solid #a855f7;
}

.bela-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bela-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.bela-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.bela-tag.tag-rahu {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.bela-tag.tag-yama {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.bela-tag.tag-gulika {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.bela-tag.tag-durmuhurta {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.bela-tag.tag-bar {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.bela-tag.tag-kala {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.bela-tag.tag-ratri {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.bela-time-range {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: #7f1d1d;
  background: #fef2f2;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  text-align: center;
  border: 1px dashed #f87171;
}

.bela-meta-info {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 8px;
  text-align: center;
}

.bela-meta-info strong {
  color: #0f172a;
}

.bela-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.4;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
}

.durmuhurta-slots-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.durmuhurta-slot-pill {
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
}

.dm-slot-badge {
  font-weight: 800;
  color: #9f1239;
  font-size: 0.72rem;
}

.dm-slot-time {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  color: #be123c;
}

.dm-slot-dur {
  color: #64748b;
  font-size: 0.72rem;
}

/* ==========================================================================
   15-Segment Classical Muhurta Sections
   ========================================================================== */
.segments-15-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.segment-box-container {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.segment-box-header {
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #e2e8f0;
}

.segment-box-header.day-header {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
  border-bottom-color: #fde68a;
}

.segment-box-header.night-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  border-bottom-color: #e2e8f0;
}

.seg-count-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.segments-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.segment-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.segment-item-card:hover {
  transform: translateX(3px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.seg-part-badge {
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  font-size: 0.85rem;
  font-weight: 800;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 2px;
}

.seg-content {
  flex-grow: 1;
}

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

.seg-deity-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.seg-classical-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.seg-meaning {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  font-style: italic;
}

.seg-dur {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

.seg-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px 0;
  flex-wrap: wrap;
}

.seg-class-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seg-class-badge.class-mahendra {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.seg-class-badge.class-amrita {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.seg-class-badge.class-shubha {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.seg-class-badge.class-varjya {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.seg-class-badge.class-shunya {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.seg-qual-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qual-highly-auspicious {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.qual-auspicious {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.qual-inauspicious {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.qual-neutral-fierce {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.qual-neutral-waning {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.qual-neutral-moveable {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.qual-neutral {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.seg-time {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.seg-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

/* Border highlights for classifications */
.segment-item-card.class-mahendra {
  border-left: 5px solid #7c3aed;
}

.segment-item-card.class-amrita {
  border-left: 5px solid #d97706;
}

.segment-item-card.class-shubha {
  border-left: 5px solid #10b981;
}

.segment-item-card.class-varjya {
  border-left: 5px solid #ef4444;
}

.segment-item-card.class-shunya {
  border-left: 5px solid #94a3b8;
}

.segment-item-card.class-general {
  border-left: 5px solid #cbd5e1;
}

/* ==========================================================================
   8-Part Ashtama Bhaga Tables
   ========================================================================== */
.ashtama-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.ashtama-table-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ashtama-table-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f1f5f9;
}

.ashtama-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ashtama-table th {
  background: #f8fafc;
  color: #475569;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1.5px solid #e2e8f0;
}

.ashtama-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ashtama-table tr.row-avoid {
  background: #fff8f8;
}

.ashtama-table tr.row-avoid td {
  border-bottom-color: #fee2e2;
}

.time-cell {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #0f172a;
}

.dur-cell {
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

.avoid-tag {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.clear-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .muhurat-body {
    padding: 16px 14px;
  }

  .muhurat-astro-account-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .muhurat-calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .duration-metrics-grid,
  .muhurat-3day-deck,
  .bela-cards-grid,
  .segments-15-grid,
  .ashtama-tables-grid,
  .ashtama-test-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   >>> START TEST PANEL STYLES: 8-Division Ashtama Bhaga 4-Quarter Subdivisions <<<
   (Can be safely removed after testing without affecting any other styles)
   ========================================================================== */
.ashtama-test-panel-wrapper {
  margin-top: 28px;
  background: #f8fafc;
  border: 2px dashed #93c5fd;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}

.ashtama-test-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #e2e8f0;
}

.ashtama-test-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ashtama-test-badge {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.ashtama-test-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.ashtama-test-header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ashtama-test-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #475569;
}

.ashtama-test-removable-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Test Date & Day Navigation Toolbar */
.ashtama-test-date-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.ashtama-test-date-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ashtama-test-active-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.ashtama-test-day-label {
  color: #15803d;
  font-weight: 600;
}

.ashtama-test-day-val {
  color: #0f172a;
  font-weight: 800;
}

.ashtama-test-date-picker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #475569;
}

.ashtama-test-picker-label {
  font-weight: 700;
  color: #334155;
}

.ashtama-test-date-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.ashtama-test-date-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.ashtama-test-nav-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ashtama-test-nav-btn {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ashtama-test-nav-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #2563eb;
}

.ashtama-test-nav-btn.today-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ashtama-test-nav-btn.today-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.ashtama-test-nav-btn.next-btn {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.ashtama-test-nav-btn.next-btn:hover {
  background: #059669;
  color: #ffffff;
}

.ashtama-test-date-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ashtama-test-meta-units {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: #475569;
}

.ashtama-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.ashtama-test-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ashtama-test-card.day-test-card {
  border-top: 4px solid #f59e0b;
}

.ashtama-test-card.night-test-card {
  border-top: 4px solid #6366f1;
}

.ashtama-test-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.ashtama-test-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.ashtama-test-sections-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ashtama-test-sec-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ashtama-test-sec-item.sec-avoid {
  border-color: #fca5a5;
  background: #fffafa;
}

.ashtama-test-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 8px;
}

.ashtama-test-sec-item.sec-avoid .ashtama-test-sec-header {
  background: #fee2e2;
  border-bottom-color: #fecaca;
}

.ashtama-test-sec-num {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-pill {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.sec-pill.sec-pill-night {
  background: #312e81;
}

.sec-time-range {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
}

.ashtama-test-sec-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-dur-tag {
  font-size: 0.72rem;
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

.ashtama-test-sub-table-wrap {
  padding: 4px 8px 8px 8px;
  overflow-x: auto;
}

.ashtama-test-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.ashtama-test-sub-table th {
  padding: 6px 8px;
  text-align: left;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f5f9;
}

.ashtama-test-sub-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f8fafc;
}

.ashtama-test-sub-table tr:last-child td {
  border-bottom: none;
}

.ashtama-test-sub-table tr.row-sub-avoid {
  background: rgba(254, 226, 226, 0.4);
}

.sub-pada-cell strong {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
}

.pada-name {
  color: #64748b;
  font-size: 0.7rem;
  margin-left: 2px;
}

.sub-time-cell {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.sub-dur-cell {
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  color: #64748b;
  white-space: nowrap;
}

.avoid-sub-tag {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.clear-sub-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Collapsible Section Details & Summary */
details.ashtama-test-sec-item summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

details.ashtama-test-sec-item summary::-webkit-details-marker {
  display: none;
}

details.ashtama-test-sec-item summary:hover {
  filter: brightness(0.97);
}

.fold-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 800;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
  user-select: none;
}

details.ashtama-test-sec-item[open] .fold-chevron {
  transform: rotate(0deg);
}

details.ashtama-test-sec-item:not([open]) .fold-chevron {
  transform: rotate(-90deg);
}

details.ashtama-test-sec-item:not([open]) .ashtama-test-sub-table-wrap {
  display: none;
}

/* Fold & Unfold Toolbar Buttons */
.ashtama-fold-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ashtama-fold-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.ashtama-fold-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.ashtama-mini-fold-btn {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ashtama-mini-fold-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Choghadiya Badge & Miniature Pill Styling */
.chog-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chog-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chog-ruler-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  margin-left: 3px;
}

/* Individual Choghadiya Colors */
.chog-amrit {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.chog-shubh {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.chog-labh {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.chog-char {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

.chog-udyog {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.chog-kaal {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.chog-rog {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.chog-neutral {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

/* >>> END TEST PANEL STYLES <<< */

/* --- Mandala Sub-Quarter Fold / Unfold Styles --- */
.mandala-unfold-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.mandala-unfold-badge:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.mandala-unfold-badge .unfold-icon {
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.15s ease;
}

.mandala-sub-cell {
  padding: 0 !important;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  max-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.mandala-sub-wrap {
  padding: 10px 14px 14px 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mandala-sub-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mandala-sub-title {
  color: #334155;
  font-weight: 700;
}

.mandala-sub-subtitle {
  color: #64748b;
  font-weight: 500;
  font-size: 0.7rem;
}

.mandala-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.mandala-sub-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.mandala-sub-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.mandala-sub-table tr:last-child td {
  border-bottom: none;
}

.mandala-time-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mandala-q-pill {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
}

.mandala-q-time {
  font-weight: 700;
  color: #0f172a;
}

.mandala-inline-label {
  display: none;
}

.mandala-col-pill {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 2px;
}

.sub-part-pill {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mandal-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.mandal-badge.mandal-mahendra {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.mandal-badge.mandal-vayu {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.mandal-badge.mandal-varun {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.mandal-badge.mandal-yam {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* ==========================================================================
   15-Segment Classical Muhurta Dynamic Filter Bar & Section Differentiation
   ========================================================================== */
.muhurat-15seg-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.muhurat-15seg-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.muhurat-15seg-filter-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.muhurat-filter-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  position: relative;
}

.muhurat-filter-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.muhurat-filter-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.muhurat-filter-btn.btn-amrita {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.muhurat-filter-btn.btn-amrita:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.muhurat-filter-btn.btn-amrita.is-active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border: 1.5px solid #f59e0b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45), 0 0 0 2px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-1px);
}

.muhurat-filter-btn.btn-mahendra {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6b21a8;
}

.muhurat-filter-btn.btn-mahendra:hover {
  background: #ede9fe;
  border-color: #a855f7;
}

.muhurat-filter-btn.btn-mahendra.is-active {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  border: 1.5px solid #a855f7 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45), 0 0 0 2px rgba(168, 85, 247, 0.35) !important;
  transform: translateY(-1px);
}

.muhurat-filter-btn.btn-shubha.is-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
}

.muhurat-filter-btn.btn-varjya.is-active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.muhurat-filter-btn.btn-panchanga {
  background: #fdf4ff;
  border-color: #f0abfc;
  color: #86198f;
}

.muhurat-filter-btn.btn-panchanga:hover {
  background: #fae8ff;
  border-color: #d946ef;
  color: #701a75;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.25);
}

.muhurat-filter-btn.btn-panchanga.is-active {
  background: linear-gradient(135deg, #a21caf 0%, #701a75 100%) !important;
  border: 1.5px solid #d946ef !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(162, 28, 175, 0.45), 0 0 0 2px rgba(217, 70, 239, 0.35) !important;
  transform: translateY(-1px);
}

.muhurat-filter-btn.btn-lagna {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.muhurat-filter-btn.btn-lagna:hover {
  background: #ccfbf1;
  border-color: #2dd4bf;
  color: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.25);
}

.muhurat-filter-btn.btn-lagna.is-active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  border: 1.5px solid #2dd4bf !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45), 0 0 0 2px rgba(45, 212, 191, 0.35) !important;
  transform: translateY(-1px);
}

.banner-panchanga {
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  color: #701a75;
}

.muhurat-panchang-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.muhurat-panchang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.muhurat-panchang-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   PANCHANG CONTAINER & MODERN CATEGORIZED DESIGN SYSTEM
   ======================================================== */

.muhurat-panchang-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Main Top Header Ribbon */
.panchang-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.panchang-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panchang-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panchang-title-icon {
  font-size: 1.35rem;
}

.panchang-main-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.panchang-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.panchang-meta-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panchang-meta-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.panchang-meta-pill.pill-date {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.panchang-meta-pill.pill-loc {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Category Sections General */
.panchang-cat-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panchang-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panchang-cat-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panchang-cat-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panchang-cat-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

/* CATEGORY 1: Lunar Calendar & Tradition Cards */
.panchang-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.panchang-cal-card {
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.panchang-cal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.panchang-cal-card.cal-meitei {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%);
  border-color: #fbcfe8;
}

.panchang-cal-card.cal-paksha {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.panchang-cal-card.cal-tatna.is-tatna-safe {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}

.panchang-cal-card.cal-tatna.is-tatna-alert {
  background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px #f87171, 0 4px 14px rgba(239, 68, 68, 0.18);
  animation: tatnaPulse 2.5s infinite alternate;
}

@keyframes tatnaPulse {
  0% {
    box-shadow: 0 0 0 1px #f87171, 0 2px 8px rgba(239, 68, 68, 0.15);
  }

  100% {
    box-shadow: 0 0 0 2px #ef4444, 0 6px 18px rgba(239, 68, 68, 0.28);
  }
}

.cal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cal-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-meitei .cal-card-badge {
  color: #9d174d;
}

.cal-paksha .cal-card-badge {
  color: #15803d;
}

.cal-tatna .cal-card-badge {
  color: #334155;
}

.cal-tatna.is-tatna-alert .cal-card-badge {
  color: #991b1b;
}

.cal-card-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #475569;
}

.cal-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cal-status-pill.pill-safe {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.cal-status-pill.pill-alert {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

.cal-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-card-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.cal-meitei .cal-card-value {
  color: #831843;
}

.cal-paksha .cal-card-value {
  color: #166534;
}

.cal-card-value.text-alert {
  color: #b91c1c;
}

.cal-card-value.text-safe {
  color: #15803d;
}

.cal-card-subtag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.cal-card-footer {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.cal-card-info {
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Festival Celebration Banner */
.panchang-festival-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.fest-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.fest-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fest-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #b45309;
  letter-spacing: 0.04em;
}

.fest-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #78350f;
}

/* CATEGORY 2: The Pancha Anga (5 Classical Limbs) */
.panchang-limbs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.panchang-limb-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid #e2e8f0;
  border-top-width: 4px;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.panchang-limb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Distinct Limb Colors */
.limb-card-tithi {
  border-top-color: #2563eb;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-color: #dbeafe;
}

.limb-card-vara {
  border-top-color: #ea580c;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-color: #ffedd5;
}

.limb-card-nakshatra {
  border-top-color: #7c3aed;
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%);
  border-color: #ede9fe;
}

.limb-card-yoga {
  border-top-color: #059669;
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
  border-color: #d1fae5;
}

.limb-card-karana {
  border-top-color: #c2410c;
  background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%);
  border-color: #fed7aa;
}

.limb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.limb-badge-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.limb-icon {
  font-size: 0.95rem;
}

.limb-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e293b;
}

.limb-card-tithi .limb-label {
  color: #1e40af;
}

.limb-card-vara .limb-label {
  color: #9a3412;
}

.limb-card-nakshatra .limb-label {
  color: #5b21b6;
}

.limb-card-yoga .limb-label {
  color: #065f46;
}

.limb-card-karana .limb-label {
  color: #9a3412;
}

.limb-metric-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.limb-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

/* Panchang Entry Cards inside Limbs */
.panchang-entry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.panchang-entry-card:hover {
  border-color: #cbd5e1;
  background: #fdfdfd;
}

.panchang-entry-card.is-next-day {
  background: #fffdf5;
  border-color: #fde047;
}

.panchang-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.panchang-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.panchang-entry-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.panchang-next-day-tag {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.panchang-meitei-tithi-tag {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.panchang-num-tag {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.panchang-num-tag.tag-nakshatra {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.panchang-num-tag.tag-yoga {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.panchang-num-tag.tag-karana {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.panchang-entry-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.2;
}

.panchang-time-icon {
  font-size: 0.82rem;
  opacity: 0.9;
}

.panchang-time-text {
  font-size: 0.78rem;
  color: #64748b;
}

.panchang-time-text strong {
  color: #2563eb;
  font-weight: 800;
}

.vara-entry-card {
  height: 100%;
  justify-content: space-between;
}

.vara-ruler-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.panchang-entry-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.panchang-entry-empty {
  color: #94a3b8;
  font-size: 0.82rem;
  font-style: italic;
  padding: 4px 0;
}

/* CATEGORY 3: Diurnal Solar Horizon Grid */
.panchang-diurnal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.diurnal-metric-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.diurnal-metric-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.diurnal-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-sunrise .diurnal-icon-wrap {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.metric-sunset .diurnal-icon-wrap {
  background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%);
}

.metric-dinamana .diurnal-icon-wrap {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
}

.metric-ratrimana .diurnal-icon-wrap {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.diurnal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diurnal-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.diurnal-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Backward compatibility aliases */
.muhurat-panchang-month-badge {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.muhurat-panchang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.muhurat-panchang-astro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.filter-count-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.filter-count-badge.badge-amrita {
  background: #fef3c7;
  color: #92400e;
}

.filter-count-badge.badge-mahendra {
  background: #f3e8ff;
  color: #6b21a8;
}

.filter-count-badge.badge-shubha {
  background: #ecfdf5;
  color: #065f46;
}

.filter-count-badge.badge-varjya {
  background: #fee2e2;
  color: #991b1b;
}

.filter-count-badge.badge-lagna {
  background: #ccfbf1;
  color: #0f766e;
}

.muhurat-filter-btn.is-active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Informative description banner for active filter */
.muhurat-15seg-info-banner {
  padding: 11px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1.5px solid transparent;
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muhurat-15seg-info-banner.banner-amrita {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #92400e;
}

.muhurat-15seg-info-banner.banner-mahendra {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
  color: #6b21a8;
}

.muhurat-15seg-info-banner.banner-shubha {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
  color: #065f46;
}

.muhurat-15seg-info-banner.banner-varjya {
  background: linear-gradient(135deg, #fffafa 0%, #fef2f2 100%);
  border-color: #fecaca;
  color: #991b1b;
}

.filtered-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.seg-omitted-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.08);
}

.seg-inauspicious-row {
  margin-top: 6px;
  margin-bottom: 2px;
}

.seg-inauspicious-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff1f2;
  color: #991b1b;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.05);
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

/* Distinctive Muhurat Segment Table Styles */
.muhurat-table-day-card {
  border-top: 3.5px solid #f59e0b !important;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.muhurat-table-night-card {
  border-top: 3.5px solid #6366f1 !important;
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
}

.muhurat-table-title-day {
  color: #92400e !important;
  border-bottom: 1.5px solid #fef3c7 !important;
}

.muhurat-table-title-night {
  color: #3730a3 !important;
  border-bottom: 1.5px solid #ede9fe !important;
}

.muhurat-table-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.muhurat-distinct-table {
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  margin-top: 6px;
  width: 100%;
}

.muhurat-distinct-table thead th {
  background: transparent !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.muhurat-table-row {
  background: #ffffff;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.muhurat-table-row td {
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.muhurat-table-row td:first-child {
  border-left: 3.5px solid #3b82f6;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.muhurat-table-row td:last-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.muhurat-table-row:nth-child(even) {
  background: #fbfcfe;
}

.muhurat-table-row:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.muhurat-table-row.has-inauspicious td:first-child {
  border-left: 3.5px solid #ef4444 !important;
}

.muhurat-table-row.has-inauspicious {
  background: #fffafa;
}

.muhurat-table-row.has-inauspicious:hover {
  background: #fff1f2;
}

.muhurat-seq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.muhurat-seq-pill.pill-warn {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.muhurat-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.muhurat-time-start {
  color: #047857;
}

.muhurat-time-arrow {
  color: #94a3b8;
  font-size: 0.82rem;
}

.muhurat-time-end {
  color: #0369a1;
}

.coords-toggle-btn {
  display: none;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #93c5fd;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.coords-toggle-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

/* ==========================================================================
   Mobile & Responsive Adjustments for Muhurat Section & Coordinates Toolbar
   ========================================================================== */
/* ==========================================================================
   Mobile & Responsive Adjustments for Muhurat Section & Coordinates Toolbar
   ========================================================================== */
@media (max-width: 900px) {
  .ashtama-tables-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {

  #kuthi-muhurat-panel,
  #kuthi-yogas-panel {
    padding: 0 !important;
    margin: 6px 0 !important;
    width: 100% !important;
  }

  .astro-panel-container {
    padding: 0 4px !important;
    margin: 6px auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .astro-panel-card {
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .astro-panel-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 10px !important;
  }

  .astro-panel-title-wrap {
    gap: 8px !important;
  }

  .astro-panel-icon {
    font-size: 1.15rem !important;
    padding: 6px !important;
    border-radius: 8px !important;
  }

  .astro-panel-title {
    font-size: 1.02rem !important;
  }

  .astro-panel-subtitle {
    font-size: 0.74rem !important;
  }

  .astro-panel-plan-corner {
    align-items: flex-start !important;
    margin-top: 2px !important;
  }

  .astro-panel-controls {
    flex-wrap: wrap !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .muhurat-body {
    padding: 8px 6px !important;
  }

  /* Astrologer Verified Account Card */
  .muhurat-astro-account-card {
    padding: 10px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  .astro-acc-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.25rem !important;
    border-radius: 8px !important;
  }

  .astro-acc-name {
    font-size: 0.88rem !important;
  }

  .astro-acc-email {
    font-size: 0.75rem !important;
  }

  .astro-acc-pills {
    gap: 5px !important;
  }

  .astro-pill {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  /* Interactive Date Picker & Calendar Toolbar */
  .muhurat-calendar-toolbar {
    padding: 8px 8px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
  }

  .muhurat-cal-left {
    gap: 8px !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .muhurat-cal-picker-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .muhurat-cal-picker-wrap .custom-datepicker-wrapper {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .muhurat-date-picker-input {
    padding: 6px 30px 6px 8px !important;
    font-size: 0.82rem !important;
    width: 100% !important;
  }

  .muhurat-date-nav-btns {
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
  }

  .muhurat-date-nav-btns .muhurat-nav-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 0.76rem !important;
  }

  .muhurat-cal-right {
    width: 100% !important;
  }

  .muhurat-active-date-pill {
    width: 100% !important;
    justify-content: center !important;
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }

  /* Mode Switcher Bar (Imphal Custom & Bengal Tradition) */
  .muhurat-mode-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  }

  .muhurat-mode-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 4px !important;
    background: #e2e8f0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .muhurat-mode-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    background: transparent !important;
    color: #475569 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .muhurat-mode-btn .mode-btn-title {
    display: block !important;
    font-weight: 700 !important;
    color: inherit !important;
    word-break: break-word !important;
  }

  .muhurat-mode-btn .mode-btn-subtag {
    font-size: 0.68rem !important;
    opacity: 0.85 !important;
    font-weight: 600 !important;
  }

  .muhurat-mode-btn.is-active {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
    font-weight: 800 !important;
  }

  .muhurat-mode-btn .muhurat-tz-pill {
    display: inline-flex !important;
    margin-left: 0 !important;
    margin-top: 3px !important;
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    line-height: 1.3 !important;
  }

  .muhurat-mode-btn.is-active .muhurat-tz-pill {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
  }

  /* Custom Coordinates Toolbar */
  .muhurat-location-toolbar-compact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 6px 8px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }

  .muhurat-loc-inline-title {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.78rem !important;
    cursor: pointer !important;
    user-select: none !important;
    padding: 2px 0 !important;
  }

  .coords-toggle-btn {
    display: inline-flex !important;
  }

  #customCoordsInputsWrap {
    display: none;
    width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding-top: 8px !important;
    margin-top: 6px !important;
    border-top: 1px solid #bae6fd !important;
  }

  #customCoordsInputsWrap.is-open {
    display: grid !important;
  }

  .muhurat-mini-field {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
  }

  .muhurat-mini-field .mini-label {
    min-width: 24px !important;
    font-size: 0.7rem !important;
  }

  .muhurat-mini-field.muhurat-tz-field {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 2px 0 !important;
  }

  .muhurat-mini-input.num-input {
    width: 100% !important;
    flex: 1 !important;
    padding: 5px 6px !important;
    font-size: 0.78rem !important;
  }

  .muhurat-mini-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Dual Summary / Solar Metrics */
  .muhurat-dual-summary-card {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .duration-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .metric-box {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  .metric-box .metric-value {
    font-size: 1.05rem !important;
  }

  /* Bela Alert Section */
  .bela-alert-section {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  .bela-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .bela-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  /* Muhurat Solar Nav Row on Small Screens: Single Line Layout, Hidden Sunrise & Sunset */
  .muhurat-solar-nav-row {
    padding: 6px 6px !important;
    gap: 4px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  }

  .muhurat-solar-nav-row .solar-nav-btn {
    flex: 0 0 auto !important;
    padding: 6px 7px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    min-height: 32px !important;
  }

  .muhurat-solar-times {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 2px !important;
  }

  /* Explicitly hide sunrise & sunset chips on small screens */
  .solar-time-chip {
    display: none !important;
  }

  .solar-date-badge {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  /* Hide 📅 icon and Date: label on small screen to keep single line clean */
  .solar-date-badge span,
  .solar-date-badge label {
    display: none !important;
  }

  /* Proper sizing for solar date input */
  .solar-date-badge input.muhurat-date-picker-input {
    width: 88px !important;
    min-width: 82px !important;
    max-width: 94px !important;
    padding: 4px 2px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    border-radius: 6px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    letter-spacing: 0.01em !important;
  }

  .muhurat-solar-nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
  }

  /* Other date inputs */
  .muhurat-cal-picker-wrap input.muhurat-date-picker-input,
  .ashtama-date-nav-toolbar input.muhurat-date-picker-input,
  .muhurat-panchang-date-nav input.muhurat-date-picker-input {
    width: 102px !important;
    min-width: 95px !important;
    max-width: 110px !important;
    padding: 4px 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    letter-spacing: 0.02em !important;
  }

  /* Muhurat 15 Segment Filter Bar */
  .muhurat-15seg-filter-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }

  .muhurat-15seg-filter-label {
    display: flex !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
  }

  .muhurat-15seg-filter-btns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .muhurat-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    gap: 4px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 34px !important;
  }

  .filter-count-badge {
    font-size: 0.66rem !important;
    padding: 1px 5px !important;
    margin-left: 2px !important;
    border-radius: 10px !important;
  }

  .muhurat-panchang-date-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .muhurat-date-nav-btns {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .muhurat-date-nav-btns .muhurat-nav-btn {
    flex: 1 1 0 !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-size: 0.74rem !important;
    min-height: 32px !important;
  }

  .muhurat-panchang-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .muhurat-panchang-astro-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-limbs-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-calendar-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-diurnal-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-graha-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-aux-shuddhi-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Embedded Panchang Card on Mobile: Eliminate wasted left/right padding */
  .muhurat-panchang-card {
    padding: 8px 4px !important;
    border-radius: 8px !important;
    border-left: none !important;
    border-right: none !important;
    gap: 12px !important;
    margin-top: 6px !important;
    box-shadow: none !important;
  }

  .panchang-main-header {
    padding-bottom: 8px !important;
    gap: 6px !important;
  }

  .panchang-cat-section {
    margin-bottom: 8px !important;
    gap: 6px !important;
  }

  .panchang-limb-card {
    padding: 10px 8px !important;
    border-radius: 8px !important;
  }

  .panchang-cal-card {
    padding: 10px 8px !important;
    border-radius: 8px !important;
  }

  .diurnal-metric-card {
    padding: 8px 8px !important;
    border-radius: 8px !important;
    gap: 8px !important;
  }

  .shuddhi-card {
    padding: 8px 6px !important;
    border-radius: 8px !important;
  }

  .vara-bengali-entry-card {
    padding: 8px 8px !important;
    border-radius: 8px !important;
  }

  .panchang-entry-pill {
    padding: 6px 8px !important;
    border-radius: 6px !important;
  }

  /* Completely hide Panchanga info banner */
  .banner-panchanga,
  .muhurat-15seg-info-banner.banner-panchanga {
    display: none !important;
  }

  /* Ashtama & Muhurat Distinct Table Styling for Small Screens */
  .ashtama-table-card {
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    padding: 8px 8px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
  }

  .ashtama-table th,
  .ashtama-table td {
    padding: 6px 6px !important;
    font-size: 0.73rem !important;
  }

  .muhurat-distinct-table {
    width: 100% !important;
    border-spacing: 0 5px !important;
  }

  .muhurat-table-row td {
    padding: 8px 6px !important;
  }

  .muhurat-table-row td:first-child {
    width: 34px !important;
    padding: 6px 4px !important;
  }

  .muhurat-seq-pill {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.74rem !important;
  }

  .muhurat-table-row td.time-cell>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
  }

  .muhurat-time-wrap {
    font-size: 0.8rem !important;
    gap: 6px !important;
    padding: 4px 8px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .mandala-unfold-badge {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 6px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
  }

  .seg-inauspicious-badge {
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
    display: block !important;
    border-radius: 5px !important;
    margin-top: 2px !important;
  }

  .mandala-sub-cell {
    max-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mandala-sub-wrap {
    padding: 6px 4px 8px 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mandala-sub-table {
    width: 100% !important;
    font-size: 0.72rem !important;
  }

  .mandala-sub-table th,
  .mandala-sub-table td {
    padding: 5px 6px !important;
  }

  .mandal-badge {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .choghadiya-grid,
  .ashtama-grid,
  .ashtama-tables-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ashtama-date-nav-toolbar {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 6px !important;
  }

  .ashtama-date-nav-toolbar .muhurat-cal-picker-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .ashtama-date-nav-toolbar .muhurat-date-nav-btns {
    width: 100% !important;
    display: flex !important;
    gap: 4px !important;
  }

  .muhurat-section-title {
    margin: 14px 0 8px 0 !important;
    font-size: 0.88rem !important;
  }

  #customCoordsInputsWrap {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .astro-panel-container {
    padding: 0 2px !important;
    margin: 4px auto !important;
  }

  .muhurat-body {
    padding: 6px 2px !important;
  }

  .astro-panel-header {
    padding: 8px 6px !important;
  }

  .duration-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }

  .metric-box {
    padding: 6px 6px !important;
  }

  .metric-box .metric-value {
    font-size: 0.95rem !important;
  }

  .solar-nav-btn {
    padding: 5px 6px !important;
    font-size: 0.7rem !important;
  }

  .solar-time-chip {
    display: none !important;
  }

  .solar-date-badge {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .solar-date-badge span,
  .solar-date-badge label {
    display: none !important;
  }

  .solar-date-badge input.muhurat-date-picker-input {
    width: 84px !important;
    min-width: 78px !important;
    max-width: 90px !important;
    padding: 3px 2px !important;
    font-size: 0.74rem !important;
  }

  .muhurat-cal-picker-wrap input.muhurat-date-picker-input,
  .ashtama-date-nav-toolbar input.muhurat-date-picker-input,
  .muhurat-panchang-date-nav input.muhurat-date-picker-input {
    width: 96px !important;
    min-width: 90px !important;
    padding: 3px 4px !important;
    font-size: 0.74rem !important;
  }

  .muhurat-15seg-filter-btns {
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)) !important;
    gap: 4px !important;
  }

  .muhurat-filter-btn {
    padding: 6px 4px !important;
    font-size: 0.7rem !important;
  }

  .muhurat-time-wrap {
    font-size: 0.76rem !important;
    padding: 4px 6px !important;
  }

  .cal-card-value {
    font-size: 0.95rem !important;
  }

  .cal-card-subtag {
    font-size: 0.68rem !important;
  }

  /* Eliminate left/right padding waste on small screens */
  .astro-panel-container {
    padding: 0 !important;
    margin: 2px 0 !important;
    width: 100% !important;
  }

  .astro-panel-card {
    border-radius: 6px !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 6px !important;
  }

  .muhurat-body {
    padding: 6px 1px !important;
  }

  .muhurat-panchang-card {
    padding: 6px 2px !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }

  .panchang-limb-card,
  .panchang-cal-card,
  .diurnal-metric-card,
  .vara-bengali-entry-card {
    padding: 8px 6px !important;
    border-radius: 6px !important;
  }

  .shuddhi-card {
    padding: 8px 4px !important;
    border-radius: 6px !important;
  }

  .panchang-entry-pill {
    padding: 5px 6px !important;
  }
}


/* ==========================================================================
   In-Place Payment, Comparison Table & Modal Luxury Styling
   ========================================================================== */

/* ==========================================================================
   In-Place Payment, Comparison Table & Modal Luxury Styling
   ========================================================================== */

.muhurat-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.82) 0%, rgba(3, 7, 18, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.muhurat-modal-card {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border-radius: 22px;
  max-width: 1040px;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(226, 232, 240, 0.8);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  animation: muhuratModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

@keyframes muhuratModalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.muhurat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 60%, #1e1b4b 100%);
  color: #ffffff;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.muhurat-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.muhurat-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.muhurat-modal-title h3 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.32rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.muhurat-modal-title p {
  color: #94a3b8 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 3px 0 0 0;
  letter-spacing: 0.01em;
}

.muhurat-modal-icon {
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(139, 92, 246, 0.45);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.muhurat-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.muhurat-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.muhurat-modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  max-height: calc(92vh - 88px);
  background: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.muhurat-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.muhurat-modal-user-strip {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modern Muhurat Modal Cards Grid Layout */
.muhurat-modal-cards-container {
  width: 100%;
  box-sizing: border-box;
}

.muhurat-modal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.muhurat-modal-plan-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.muhurat-modal-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: #93c5fd;
}

.muhurat-modal-plan-card.is-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.muhurat-modal-plan-card.is-free {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
}

.muhurat-card-top-tag {
  position: absolute;
  top: -11px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.muhurat-card-top-tag.tag-green {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.muhurat-card-top-tag.tag-blue {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.muhurat-card-top-tag.tag-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.muhurat-card-top-tag.tag-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.muhurat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.muhurat-card-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.muhurat-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
}

.muhurat-card-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.muhurat-card-pricing {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.muhurat-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.muhurat-card-price-original {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
}

.muhurat-card-price-main {
  font-size: 1.45rem;
  font-weight: 800;
  color: #16a34a;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.muhurat-card-price-main.price-free {
  color: #15803d;
}

.muhurat-card-discount-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #86efac;
}

.muhurat-card-discount-badge.badge-free {
  background: #16a34a;
  color: #fff;
  border: none;
}

.muhurat-card-validity-pill {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 700;
  margin-top: 6px;
}

.muhurat-card-window-box {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-left: 3px solid #3b82f6;
}

.muhurat-modal-plan-card.is-free .muhurat-card-window-box {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.window-title {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.window-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.muhurat-card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.feature-item {
  font-size: 0.8rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.feat-check {
  color: #16a34a;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.muhurat-card-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  box-sizing: border-box;
}

.muhurat-card-btn.btn-active {
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

.muhurat-card-btn.btn-pay {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.muhurat-card-btn.btn-pay:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

@media (max-width: 640px) {
  .muhurat-modal-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .muhurat-modal-plan-card {
    padding: 16px 14px;
  }
}

/* In-Place Checkout Luxury Design */
.muhurat-inplace-checkout {
  animation: fadeIn 0.22s ease-out;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkout-back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.checkout-back-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.checkout-back-btn:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateX(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.checkout-secure-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 700;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

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

.checkout-summary-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.checkout-plan-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.checkout-plan-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.015em;
}

.checkout-plan-header p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 2px 0 0 0;
}

.checkout-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkout-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.checkout-detail-row span {
  color: #64748b;
  font-weight: 600;
}

.checkout-detail-row strong {
  color: #0f172a;
  font-weight: 700;
}

.checkout-features-bullet {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkout-features-bullet ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.checkout-features-bullet li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
  font-weight: 500;
}

.checkout-contact-form {
  margin-top: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
}

.checkout-contact-form label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 4px;
}

.checkout-contact-form input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.checkout-contact-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.checkout-payment-card {
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px -4px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkout-payment-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  letter-spacing: -0.015em;
}

.checkout-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.checkout-price-breakdown .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-coupon-input-box {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.inplace-coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
  letter-spacing: 0.04em;
  color: #0f172a;
  transition: all 0.2s ease;
  background: #ffffff;
}

.inplace-coupon-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.inplace-coupon-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inplace-coupon-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  transform: translateY(-1px);
}

.checkout-submit-pay-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.checkout-submit-pay-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 50%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.52);
}

/* Toast */
.plan-activation-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #15803d;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.plan-activation-toast .toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-activation-toast .toast-icon {
  font-size: 1.8rem;
}

/* ============================================================
   PLANETARY TRANSITS & SHUDDHI / BALA PANELS
   ============================================================ */
.muhurat-transits-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.muhurat-transits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.muhurat-transits-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.muhurat-transits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.muhurat-transit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.muhurat-transit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.muhurat-transit-card.card-moon {
  border-color: #bae6fd;
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
}

.muhurat-transit-card.card-sun {
  border-color: #fde68a;
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%);
}

.muhurat-transit-card.card-jupiter {
  border-color: #fed7aa;
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 100%);
}

.transit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.transit-planet-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-moon .transit-planet-label {
  color: #0284c7;
}

.card-sun .transit-planet-label {
  color: #b45309;
}

.card-jupiter .transit-planet-label {
  color: #c2410c;
}

.transit-rashi-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.transit-rashi-no-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
}

.transit-detail-line {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.transit-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Shuddhi Panel */
.muhurat-shuddhi-panel {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.shuddhi-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.shuddhi-panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shuddhi-inputs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.shuddhi-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.shuddhi-input-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.shuddhi-select {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shuddhi-select:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.shuddhi-sync-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.shuddhi-sync-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.shuddhi-sync-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.shuddhi-sync-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.shuddhi-submetric {
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748b;
  margin-top: -2px;
}

.shuddhi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shuddhi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

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

.shuddhi-card-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shuddhi-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shuddhi-status-badge.status-shuddha {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.shuddhi-status-badge.status-ashuddha {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.shuddhi-status-badge.status-madhyama {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.shuddhi-metric {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.shuddhi-desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

/* Graha Pillars Grid: Transit paired with Shuddhi directly underneath */
.panchang-graha-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.graha-pillar-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shuddhi-card-embedded {
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  flex-grow: 1;
}

.shuddhi-card-embedded:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.card-moon-shuddhi {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.card-sun-shuddhi {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.card-jup-shuddhi {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.panchang-aux-shuddhi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card-lagna-bala {
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px 14px;
}

.card-tara-shuddhi {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px 14px;
}

/* ==========================================================================
   Shuddhi Flow Architecture: 1. House -> 2. Result -> 3. Division of Rashis
   ========================================================================== */
.shuddhi-flow-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.shuddhi-flow-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.shuddhi-flow-section.sec-house {
  border-left: 3.5px solid #0284c7;
  background: #f8fafc;
}

.shuddhi-flow-section.sec-result {
  border-left: 3.5px solid #16a34a;
  background: #fdfdfd;
}

.shuddhi-flow-section.sec-division {
  border-left: 3.5px solid #8b5cf6;
  background: #fafafa;
}

.shuddhi-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.flow-step-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shuddhi-flow-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.shuddhi-flow-ref {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.shuddhi-flow-subval {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

/* Division Active Transit Banner */
.shuddhi-div-active-alert {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  margin: 2px 0 6px 0;
  line-height: 1.35;
  border: 1px solid transparent;
}

.shuddhi-div-active-alert.alert-favorable {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.shuddhi-div-active-alert.alert-caution {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.shuddhi-div-active-alert.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Rashi Classification Breakdown Rows */
.rashi-classification-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rashi-div-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rashi-class-label {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rashi-class-label.label-shuddha {
  color: #15803d;
}

.rashi-class-label.label-ashuddha {
  color: #b91c1c;
}

.rashi-class-label.label-madhyama {
  color: #b45309;
}

.rashi-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.rashi-div-pill {
  font-size: 0.69rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.25;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.rashi-div-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.rashi-div-pill strong {
  font-weight: 800;
  color: #0f172a;
}

/* Today's Active Transit Rashi Glow & Accent */
.rashi-div-pill.pill-active-today {
  background: #fef08a;
  color: #713f12;
  border: 1.5px solid #eab308;
  font-weight: 800;
  box-shadow: 0 1px 5px rgba(234, 179, 8, 0.35);
  transform: scale(1.02);
}

.rashi-div-pill.pill-active-today strong {
  color: #713f12;
}

/* Navatara Specific Pill Classes */
.rashi-div-pill.div-favorable {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.rashi-div-pill.div-unfavorable {
  border-color: #fed7aa;
  background: #fff7ed;
}

.rashi-div-pill.pill-active-today.div-favorable {
  background: #bbf7d0;
  color: #14532d;
  border-color: #22c55e;
}

.rashi-div-pill.pill-active-today.div-unfavorable {
  background: #fecaca;
  color: #7f1d1d;
  border-color: #ef4444;
}

/* ==========================================================================
   Multi-Period Tara Shuddhi Timing Architecture
   ========================================================================== */
.tara-period-count-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.tara-periods-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 4px 0 2px 0;
}

.tara-period-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.tara-period-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.tara-period-idx {
  font-size: 0.68rem;
  font-weight: 800;
  color: #4338ca;
  background: #e0e7ff;
  padding: 1px 6px;
  border-radius: 4px;
}

.tara-period-timing {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

.tara-period-nak {
  font-size: 0.74rem;
  color: #334155;
  margin-top: 2px;
  line-height: 1.35;
}

.tara-paryaya-tag {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* Multi-Period Result Cards */
.tara-multi-results-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.tara-result-card {
  padding: 7px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tara-result-card.border-shuddha {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.tara-result-card.border-ashuddha {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.tara-result-card.border-madhyama {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.tara-result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.tara-result-time-pill {
  font-size: 0.71rem;
  font-weight: 700;
  color: #1e293b;
  background: rgba(15, 23, 42, 0.05);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'SF Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
}

.tara-result-nak-summary {
  font-size: 0.74rem;
  color: #334155;
  font-weight: 600;
}

.tara-alert-period-line {
  margin: 2px 0;
  line-height: 1.35;
}

/* ==========================================================================
   Panchanga Enhancements: Thasi Maikei, Foldable Yogini, Bengali & Vara, Shuddhi
   ========================================================================== */

/* Thasi Maikei Card */
.panchang-cal-card.cal-thasi-maikei {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.panchang-cal-card.cal-thasi-maikei:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
}

.panchang-cal-card.cal-thasi-maikei .cal-card-badge {
  color: #0369a1;
}

.panchang-cal-card.cal-thasi-maikei .text-thasi-maikei {
  color: #0c4a6e;
}

/* Yogini Directions in Tithi (Foldable) */
details.panchang-yogini-foldable {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

details.panchang-yogini-foldable[open] {
  background: #f0fdf4;
  border-color: #86efac;
}

summary.panchang-yogini-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  min-height: 32px;
}

summary.panchang-yogini-summary::-webkit-details-marker {
  display: none;
}

.panchang-yogini-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.panchang-yogini-fold-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 10px;
}

details.panchang-yogini-foldable[open] .panchang-yogini-fold-arrow {
  transform: rotate(180deg);
}

.panchang-yogini-fold-arrow {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.panchang-yogini-fold-body {
  padding: 6px 8px 8px 8px;
  border-top: 1px solid #dcfce7;
  font-size: 0.73rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panchang-yogini-detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.panchang-yogini-dir {
  color: #065f46;
  font-weight: 800;
}

.panchang-yogini-mayek {
  color: #047857;
  font-weight: 700;
}

.panchang-yogini-rule-note {
  font-size: 0.68rem;
  color: #64748b;
  font-style: italic;
}

/* Bengali Calendar & Vara Card */
.vara-bengali-entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.bengali-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.bengali-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bengali-date-icon {
  font-size: 1rem;
}

.bengali-date-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #78350f;
}

.bengali-saka-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid #fcd34d;
  padding: 2px 7px;
  border-radius: 6px;
}

.bengali-vara-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  padding-top: 4px;
  border-top: 1px dashed rgba(217, 119, 6, 0.25);
}

.bengali-weekday-name {
  font-weight: 700;
  color: #451a03;
}

.bengali-bullet-dot {
  color: #b45309;
}

/* Shuddhi Foldable Details */
details.shuddhi-foldable-details {
  border-radius: 8px;
}

details.shuddhi-foldable-details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

details.shuddhi-foldable-details summary::-webkit-details-marker {
  display: none;
}

details.shuddhi-foldable-details[open] .shuddhi-fold-arrow {
  transform: rotate(180deg);
}

.shuddhi-fold-arrow {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Comprehensive Mobile & Small Screen Adaptations (Muhurat & Panchanga)
   ========================================================================== */

/* Tablets and Below (<= 768px) */
@media (max-width: 768px) {

  /* Muhurat Mode Switcher: 2-Column Balanced Segmented Switch */
  .muhurat-mode-bar {
    padding: 8px 10px !important;
  }

  .muhurat-mode-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 4px !important;
  }

  .muhurat-mode-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    width: 100% !important;
  }

  /* Panchanga Hero & Sections */
  .panchang-hero-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .panchang-cat-section {
    margin-bottom: 14px !important;
  }

  .panchang-cat-title {
    font-size: 0.92rem !important;
  }

  .panchang-cat-subtitle {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* Shuddhi Folded Accordion Content */
  .shuddhi-flow-content {
    padding: 8px 6px !important;
  }

  .shuddhi-rashis-grid,
  .shuddhi-flow-section.sec-division .division-rashis-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }
}

/* Phones & Compact Screens (<= 640px) */
@media (max-width: 640px) {

  /* Panchanga Limbs Grid: 1 column so cards never cramp */
  .panchang-limbs-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .panchang-limb-card {
    padding: 11px 12px !important;
  }

  .panchang-calendar-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-diurnal-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .panchang-graha-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .panchang-aux-shuddhi-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Muhurat 15 Segments Filter: Balanced 2 + 1 Layout */
  .muhurat-15seg-filter-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .muhurat-filter-btn {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 110px !important;
    padding: 7px 6px !important;
    font-size: 0.74rem !important;
    justify-content: center !important;
    min-height: 34px !important;
  }

  .muhurat-filter-btn.btn-panchanga,
  .muhurat-filter-btn.btn-lagna {
    flex: 1 1 calc(50% - 6px) !important;
  }

  /* Distinct Muhurat Tables */
  .ashtama-table-card {
    padding: 8px 6px !important;
    overflow: hidden !important;
  }

  .muhurat-distinct-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .muhurat-table-row td {
    padding: 8px 6px !important;
  }

  .muhurat-seq-pill {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.74rem !important;
  }

  .muhurat-time-wrap {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    width: 100% !important;
    justify-content: space-between !important;
  }

  .mandala-unfold-badge {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }

  /* Sub-Quarter Breakdown Fit for Small Screens */
  .mandala-sub-cell {
    max-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .mandala-sub-wrap {
    padding: 8px 6px 10px 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .mandala-sub-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px 6px !important;
    margin-bottom: 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: normal !important;
  }

  .mandala-sub-title {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
  }

  .mandala-sub-subtitle {
    font-size: 0.67rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
  }

  .mandala-sub-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .mandala-sub-table thead {
    display: none !important;
  }

  .mandala-sub-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  tr.mandala-sub-tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 5px 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .mandala-td-time {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  .mandala-time-block {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
  }

  .mandala-q-pill {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
  }

  .mandala-q-time {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .mandala-td-dande {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    border: none !important;
    text-align: right !important;
    justify-self: end !important;
  }

  .mandal-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
  }

  .mandala-inline-label {
    display: inline-block !important;
    font-size: 0.68rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    margin-right: 3px !important;
  }

  .mandala-td-jamardha {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 5px 0 0 0 !important;
    border: none !important;
    border-top: 1px dashed #f1f5f9 !important;
    font-size: 0.72rem !important;
    color: #334155 !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  .mandala-td-dandapati {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
    gap: 3px !important;
    padding: 5px 0 0 0 !important;
    border: none !important;
    border-top: 1px dashed #f1f5f9 !important;
    font-size: 0.72rem !important;
    color: #334155 !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    justify-self: end !important;
    white-space: normal !important;
  }

  /* Bengali & Vara card adjustments */
  .vara-bengali-entry-card {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .bengali-date-val {
    font-size: 0.88rem !important;
  }

  .bengali-saka-badge {
    font-size: 0.68rem !important;
    padding: 2px 5px !important;
  }

  .bengali-vara-subrow {
    font-size: 0.76rem !important;
    gap: 4px !important;
  }

  .vara-ruler-tag {
    font-size: 0.7rem !important;
    padding: 1px 5px !important;
  }

  /* Yogini details */
  summary.panchang-yogini-summary {
    padding: 5px 6px !important;
    font-size: 0.72rem !important;
  }

  .panchang-yogini-fold-body {
    padding: 5px 6px !important;
    font-size: 0.71rem !important;
  }
}

/* Very Small Mobiles (<= 400px) */
@media (max-width: 400px) {
  .astro-panel-container {
    padding: 0 !important;
    margin: 2px 0 !important;
    width: 100% !important;
  }

  .astro-panel-card {
    border-radius: 6px !important;
    border-left: none !important;
    border-right: none !important;
  }

  .muhurat-body {
    padding: 6px 1px !important;
  }

  .muhurat-panchang-card {
    padding: 6px 1px !important;
    border: none !important;
    box-shadow: none !important;
  }

  .panchang-limb-card,
  .panchang-cal-card,
  .diurnal-metric-card,
  .vara-bengali-entry-card {
    padding: 8px 6px !important;
    border-radius: 6px !important;
  }

  .cal-card-value {
    font-size: 0.95rem !important;
  }

  .cal-card-subtag {
    font-size: 0.68rem !important;
  }

  .muhurat-time-wrap {
    font-size: 0.74rem !important;
    gap: 4px !important;
    padding: 3px 5px !important;
  }

  .solar-nav-btn {
    padding: 3px 5px !important;
    font-size: 0.65rem !important;
  }

  .muhurat-filter-btn {
    font-size: 0.67rem !important;
    padding: 5px 3px !important;
  }

  /* Ultra-compact sub-quarters for small phones */
  .mandala-sub-wrap {
    padding: 6px 2px 8px 2px !important;
  }

  tr.mandala-sub-tr {
    padding: 7px 8px !important;
    gap: 4px !important;
  }

  .mandala-q-time {
    font-size: 0.70rem !important;
  }

  .mandala-q-pill {
    font-size: 0.62rem !important;
    padding: 1px 4px !important;
  }

  .mandal-badge {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
  }

  .mandala-td-jamardha {
    grid-column: 1 / -1 !important;
    grid-row: 2 / 3 !important;
    padding-top: 4px !important;
    justify-content: flex-start !important;
  }

  .mandala-td-dandapati {
    grid-column: 1 / -1 !important;
    grid-row: 3 / 4 !important;
    padding-top: 2px !important;
    border-top: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
    justify-self: start !important;
  }
}

/* ==========================================================================
   24-Hour Lagna (Ascendant) Transit Times Section
   ========================================================================== */
.muhurat-lagna-24h-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  margin: 16px 0 20px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lagna-24h-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1.5px solid #e2e8f0;
}

.lagna-24h-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lagna-24h-icon-box {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
  flex-shrink: 0;
}

.lagna-24h-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lagna-24h-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.lagna-24h-bengali-label {
  font-size: 0.78rem;
  color: #7c3aed;
  font-weight: 700;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 1px 8px;
  border-radius: 10px;
}

.lagna-24h-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 3px 0 0 0;
  font-weight: 500;
}

.lagna-24h-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lagna-active-head-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.lagna-toggle-fold-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lagna-toggle-fold-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.lagna-24h-body {
  padding: 16px 18px;
}

.lagna-24h-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}

.lagna-transit-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.lagna-transit-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.lagna-transit-card.is-current-lagna {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22) !important;
}

.lagna-transit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lagna-transit-sign {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lagna-transit-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.lagna-transit-names {
  display: flex;
  flex-direction: column;
}

.lagna-transit-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.lagna-transit-en {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.lagna-transit-seq {
  font-size: 0.70rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 7px;
}

.is-current-lagna .lagna-transit-seq {
  background: #bbf7d0;
  color: #065f46;
}

.lagna-transit-time-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.is-current-lagna .lagna-transit-time-box {
  background: #dcfce7;
  border-color: #86efac;
  color: #065f46;
}

.lagna-time-clock-icon {
  font-size: 0.88rem;
}

.lagna-time-val {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.lagna-transit-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.lagna-duration-chip {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.is-current-lagna .lagna-duration-chip {
  background: #d1fae5;
  color: #047857;
}

.lagna-nak-chip {
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.lagna-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.lagna-shuddhi-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.lagna-shuddhi-badge.status-shuddha {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.lagna-shuddhi-badge.status-madhyama {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.lagna-shuddhi-badge.status-ashuddha {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 640px) {
  .lagna-24h-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lagna-24h-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lagna-24h-header-right {
    width: 100%;
    justify-content: space-between;
  }
}