/* Unified hero + panchang — editorial, not boxy */

.panchang-unified {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
  color: #f5ebdc;
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 6px 20px rgba(43, 18, 12, 0.12);
}

.panchang-unified__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(128deg, #32140e 0%, #5a1818 48%, #2d0f0f 100%);
}

/* Hero frame stays fixed; oversized logo drifts inside (visible, no card resize) */
.panchang-unified__bg-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.panchang-unified__bg-art {
  position: absolute;
  left: -9%;
  top: -9%;
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  /* Ganesha face is upper-center in logo.png */
  object-position: 50% 24%;
  opacity: 0.38;
  filter: saturate(0.98);
  animation: panchang-logo-drift 14s ease-in-out infinite;
  will-change: transform;
}

/* down → left → right → center → down (face framed at center) */
@keyframes panchang-logo-drift {
  0%,
  100% {
    transform: translate(0, 6%);
  }
  25% {
    transform: translate(-6.5%, 6%);
  }
  50% {
    transform: translate(6.5%, 6%);
  }
  75% {
    transform: translate(0, 0);
  }
}

.panchang-unified__bg-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 30% 42%,
    rgba(201, 162, 39, 0.16) 0%,
    transparent 62%
  );
  animation: panchang-bg-shimmer 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.panchang-unified__bg-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 228, 180, 0.14) 50%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  opacity: 0;
  animation: panchang-bg-flash 9s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.panchang-unified__bg-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(35, 14, 10, 0.48) 0%,
    rgba(35, 14, 10, 0.76) 55%,
    rgba(35, 14, 10, 0.88) 100%
  );
  pointer-events: none;
}

@keyframes panchang-bg-shimmer {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes panchang-bg-flash {
  0%,
  72%,
  100% {
    background-position: 180% 0;
    opacity: 0;
  }
  82% {
    background-position: 50% 0;
    opacity: 0.85;
  }
  92% {
    background-position: -40% 0;
    opacity: 0;
  }
}

.panchang-unified__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.panchang-unified__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 40%);
  gap: 8px 28px;
  align-items: stretch;
  padding: 22px 24px 16px;
}

.panchang-unified__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  text-align: left;
  min-width: 0;
}

.panchang-unified__hero {
  padding: 0;
}

.panchang-unified__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
}

.panchang-unified__headline {
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.22;
  color: #faf3e4;
  max-width: 22rem;
}

.panchang-unified__footer {
  padding: 0;
}

.panchang-unified__lede {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #d9c9a8;
  max-width: 26rem;
}

.panchang-unified__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}

.panchang-unified__cta-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.panchang-unified__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(232, 213, 163, 0.4);
  border-radius: 4px;
  color: #e8d5a3;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.panchang-unified__social-btn:hover {
  border-color: rgba(232, 213, 163, 0.75);
  background: rgba(0, 0, 0, 0.28);
}

.panchang-unified__social-btn:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.85);
  outline-offset: 2px;
}

/* —— Right: panchang (flat, no nested card) —— */
.panchang-unified__panchang {
  min-width: 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid rgba(201, 162, 39, 0.28);
  text-align: left;
}

.panchang-unified__panchang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* —— Muhurat running line —— */
.panchang-unified__ticker {
  min-height: 0;
}

.panchang-unified__ticker:empty {
  display: none;
}

.muhurat-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.muhurat-ticker__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0) 0%,
    rgba(201, 162, 39, 0.14) 35%,
    rgba(111, 207, 151, 0.12) 55%,
    rgba(232, 120, 80, 0.1) 75%,
    rgba(201, 162, 39, 0) 100%
  );
  background-size: 220% 100%;
  animation: muhurat-fill-wave 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes muhurat-fill-wave {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.muhurat-ticker__viewport {
  overflow: hidden;
  padding: 9px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.muhurat-ticker__track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: muhurat-scroll 42s linear infinite;
  will-change: transform;
}

.muhurat-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes muhurat-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.muhurat-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.muhurat-ticker__item--warn .muhurat-ticker__label {
  color: #f0c4a8;
}

.muhurat-ticker__item--good .muhurat-ticker__label {
  color: #b8e8c8;
}

.muhurat-ticker__time {
  color: #e8dcc8;
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.muhurat-ticker__sep {
  color: rgba(201, 162, 39, 0.45);
  font-size: 0.625rem;
}

.muhurat-ticker__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: muhurat-pulse 1.8s ease-in-out infinite;
}

.muhurat-ticker__item--warn .muhurat-ticker__pulse {
  background: #e87850;
  box-shadow: 0 0 8px rgba(232, 120, 80, 0.65);
}

.muhurat-ticker__item--good .muhurat-ticker__pulse {
  background: #6fcf97;
  box-shadow: 0 0 8px rgba(111, 207, 151, 0.55);
  animation-delay: 0.4s;
}

@keyframes muhurat-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.panchang-unified__cta .saffron-btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.panchang-unified__cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: #e8d5a3;
  border: 1px solid rgba(232, 213, 163, 0.4);
  border-radius: 4px;
  text-decoration: none;
}

.panchang-unified__cta-ghost:hover {
  border-color: rgba(232, 213, 163, 0.7);
}

.panchang-unified__today {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a227;
}

.panchang-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8d5a3;
  cursor: pointer;
  text-decoration: none;
}

.panchang-link-btn:hover {
  color: #fff5e0;
  text-decoration: underline;
}

/* —— Home teaser —— */
.panchang-teaser__city {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #faf3e4;
}

.panchang-teaser__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 0;
  margin: 0;
  text-align: left;
}

.panchang-teaser__facts > div {
  min-width: 0;
}

.panchang-teaser__facts dt {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a89572;
}

.panchang-teaser__facts dd {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #f0e6d4;
}

.panchang-teaser__travel {
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #d9c9a8;
}

.panchang-teaser__travel-label {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a227;
}

.panchang-teaser__travel strong {
  color: #faf3e4;
  font-weight: 600;
}

.panchang-teaser__travel-note {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #a89572;
}

/* —— Loading —— */
.panchang-unified .panchang-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 4px;
  font-size: 0.8125rem;
  color: #c9b896;
}

.panchang-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(201, 162, 39, 0.25);
  border-top-color: #c9a227;
  border-radius: 50%;
  animation: panchang-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes panchang-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Full almanac page —— */
.panchang-unified--page {
  margin-bottom: 20px;
}

.wrap--panchang {
  padding-bottom: 20px;
}

.panchang-meta .panchang-location {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #faf3e4;
  margin: 0 0 2px;
}

.panchang-coords,
.panchang-cache-note {
  margin: 0;
  font-size: 0.75rem;
  color: #a89572;
}

.panchang-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panchang-core {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 6px;
}

.panchang-kpi {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.panchang-kpi span {
  display: block;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a89572;
  margin-bottom: 2px;
}

.panchang-kpi strong {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #f0e6d4;
  font-weight: 500;
}

.panchang-travel {
  padding: 8px 0;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.panchang-travel__line {
  margin: 0;
  font-size: 0.8125rem;
  color: #e8dcc8;
}

.panchang-travel__label {
  font-weight: 700;
  color: #c9a227;
  margin-right: 8px;
}

.panchang-travel__note {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #a89572;
}

.panchang-section-title {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a227;
}

.panchang-subtitle {
  margin: 10px 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d9c9a8;
}

.panchang-almanac-section {
  padding-top: 2px;
}

.panchang-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.panchang-chip-list > div {
  min-width: 0;
}

.panchang-chip-list dt {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a89572;
}

.panchang-chip-list dd {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #f0e6d4;
}

.panchang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.panchang-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  color: #e8dcc8;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.22);
}

.panchang-table-wrap {
  overflow-x: auto;
  margin: 4px 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.panchang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.panchang-table th,
.panchang-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.panchang-table th {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a89572;
  background: rgba(0, 0, 0, 0.08);
}

.panchang-table tr:last-child td {
  border-bottom: none;
}

/* Quality tones — auspicious / neutral / inauspicious */
.panchang-quality-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.panchang-quality-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.panchang-tone--auspicious,
.panchang-tone--very-auspicious {
  color: #1f5c38;
  background: rgba(111, 207, 151, 0.28);
  border-color: rgba(47, 133, 90, 0.45);
}

.panchang-tone--very-auspicious {
  color: #144a2e;
  background: rgba(111, 207, 151, 0.42);
  border-color: rgba(35, 120, 72, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.panchang-tone--neutral {
  color: #5a4a38;
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(154, 120, 60, 0.35);
}

.panchang-tone--inauspicious {
  color: #7a3018;
  background: rgba(232, 120, 80, 0.22);
  border-color: rgba(180, 72, 40, 0.42);
}

.panchang-slot-row.panchang-tone--auspicious td,
.panchang-slot-row.panchang-tone--very-auspicious td {
  background: rgba(111, 207, 151, 0.08);
}

.panchang-slot-row.panchang-tone--very-auspicious td {
  background: rgba(111, 207, 151, 0.14);
}

.panchang-slot-row.panchang-tone--neutral td {
  background: rgba(201, 162, 39, 0.06);
}

.panchang-slot-row.panchang-tone--inauspicious td {
  background: rgba(232, 120, 80, 0.1);
}

.panchang-slot-row td:first-child {
  border-left: 3px solid transparent;
}

.panchang-slot-row.panchang-tone--auspicious td:first-child,
.panchang-slot-row.panchang-tone--very-auspicious td:first-child {
  border-left-color: #3d9a6a;
}

.panchang-slot-row.panchang-tone--very-auspicious td:first-child {
  border-left-color: #2b7d52;
}

.panchang-slot-row.panchang-tone--neutral td:first-child {
  border-left-color: #c9a227;
}

.panchang-slot-row.panchang-tone--inauspicious td:first-child {
  border-left-color: #d46540;
}

.panchang-slot-type {
  font-weight: 600;
}

.panchang-slot-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panchang-core--planets {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.panchang-footnotes {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(201, 162, 39, 0.2);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #a89572;
}

.muhurat-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.muhurat-row h3 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d9c9a8;
}

.muhurat-card {
  padding: 8px 10px 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left-width: 4px;
}

.muhurat-card--shubh {
  border-left-color: #4caf7a;
  background: rgba(76, 175, 122, 0.12);
  border-color: rgba(76, 175, 122, 0.28);
}

.muhurat-card--ashubh {
  border-left-color: #e87850;
  background: rgba(232, 120, 80, 0.12);
  border-color: rgba(232, 120, 80, 0.28);
}

.muhurat-card h4 {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #faf3e4;
}

.muhurat-card--shubh h4 {
  color: #b8e8c8;
}

.muhurat-card--ashubh h4 {
  color: #f0c4a8;
}

.muhurat-time {
  margin: 0;
  font-size: 0.6875rem;
  color: #c9b896;
}

.muhurat-row--shubh .panchang-subtitle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #6fcf97;
  vertical-align: middle;
}

.muhurat-row--ashubh .panchang-subtitle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e87850;
  vertical-align: middle;
}

.panchang-wisdom {
  font-size: 0.8125rem;
  color: #d9c9a8;
  line-height: 1.5;
}

.panchang-wisdom p {
  margin: 0 0 6px;
}

.panchang-error {
  font-size: 0.875rem;
  color: #d9c9a8;
}

.panchang-unified .panchang-muted {
  font-size: 0.8125rem;
  color: #a89572;
}

@media (max-width: 768px) {
  .panchang-unified__split {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 12px;
  }

  .panchang-unified__panchang {
    padding: 14px 0 0;
    border-left: none;
    border-top: 1px solid rgba(201, 162, 39, 0.22);
  }

  .panchang-unified__headline {
    max-width: none;
  }

  .panchang-teaser__facts > div {
    display: flex;
    gap: 10px;
    align-items: baseline;
  }

  .panchang-teaser__facts dt {
    flex: 0 0 4.75rem;
  }

  .panchang-teaser__facts dd {
    margin: 0;
  }

  .muhurat-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .muhurat-ticker__track,
  .muhurat-ticker__fill,
  .muhurat-ticker__pulse,
  .panchang-unified__bg-art,
  .panchang-unified__bg-shimmer,
  .panchang-unified__bg-flash {
    animation: none !important;
    transform: none;
  }

  .panchang-unified__bg-art {
    opacity: 0.38;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

/* —— Almanac modal (same shell as hero panchang card) —— */
body.panchang-almanac-open {
  overflow: hidden;
}

.panchang-almanac-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.panchang-almanac-modal[hidden] {
  display: none;
}

.panchang-almanac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 236, 216, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.panchang-almanac-modal.is-open .panchang-almanac-modal__backdrop {
  opacity: 1;
}

.panchang-almanac-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  color: #3a2818;
  background: linear-gradient(165deg, #fffaf5 0%, #f8ecd8 52%, #f0e2d0 100%);
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow:
    0 8px 24px rgba(90, 50, 30, 0.12),
    0 20px 48px rgba(58, 28, 20, 0.18);
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.34, 1.28, 0.64, 1);
}

.panchang-almanac-modal.is-open .panchang-almanac-modal__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.panchang-almanac-modal__panel .panchang-unified__bg {
  border-radius: 14px;
  background: linear-gradient(128deg, #fff9f2 0%, #f5ebe0 50%, #efe3d4 100%);
}

.panchang-unified__bg-art--modal {
  animation: none;
  opacity: 0.14;
  object-position: 50% 24%;
  filter: saturate(0.85);
}

.panchang-almanac-modal__panel .panchang-unified__bg-shimmer {
  background: radial-gradient(
    ellipse 60% 70% at 28% 38%,
    rgba(201, 162, 39, 0.12) 0%,
    transparent 62%
  );
  animation: none;
  opacity: 1;
}

.panchang-unified__bg-vignette--modal {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 245, 0.55) 0%,
    rgba(248, 236, 216, 0.82) 55%,
    rgba(240, 226, 208, 0.92) 100%
  );
}

.panchang-almanac-modal__surface {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(92vh, 820px);
}

.panchang-almanac-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}

.panchang-almanac-modal__head-copy .panchang-unified__eyebrow {
  margin-bottom: 4px;
}

.panchang-almanac-modal__title {
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.2;
  color: #3a1814;
}

.panchang-almanac-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.panchang-almanac-modal__actions .panchang-link-btn {
  color: #9a4a18;
}

.panchang-almanac-modal__actions .panchang-link-btn:hover {
  color: #6b3010;
}

.panchang-almanac-modal__actions .panchang-unified__cta-ghost {
  cursor: pointer;
  font: inherit;
  color: #5a3d22;
  border-color: rgba(154, 74, 24, 0.35);
  background: rgba(255, 255, 255, 0.45);
}

.panchang-almanac-modal__actions .panchang-unified__cta-ghost:hover {
  border-color: rgba(154, 74, 24, 0.55);
  background: #fff;
}

.panchang-almanac-modal__body {
  overflow: auto;
  padding: 14px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.panchang-almanac-modal .panchang-grid {
  gap: 14px;
}

.panchang-almanac-modal .panchang-meta .panchang-location {
  color: #3a1814;
}

.panchang-almanac-modal .panchang-coords,
.panchang-almanac-modal .panchang-cache-note {
  color: #7a6348;
}

.panchang-almanac-modal .panchang-kpi {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(201, 162, 39, 0.28);
}

.panchang-almanac-modal .panchang-kpi span {
  color: #8a7355;
}

.panchang-almanac-modal .panchang-kpi strong {
  color: #2d1810;
}

.panchang-almanac-modal .panchang-travel__line {
  color: #4a3524;
}

.panchang-almanac-modal .panchang-travel__note {
  color: #7a6348;
}

.panchang-almanac-modal .panchang-travel {
  border-color: rgba(201, 162, 39, 0.22);
}

.panchang-almanac-modal .muhurat-row h3 {
  color: #5a4030;
}

.panchang-almanac-modal .muhurat-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(201, 162, 39, 0.22);
}

.panchang-almanac-modal .muhurat-card--shubh {
  background: rgba(111, 207, 151, 0.16);
  border-color: rgba(47, 133, 90, 0.35);
  border-left-color: #2f855a;
}

.panchang-almanac-modal .muhurat-card--ashubh {
  background: rgba(232, 120, 80, 0.14);
  border-color: rgba(180, 72, 40, 0.32);
  border-left-color: #c45a32;
}

.panchang-almanac-modal .muhurat-card--shubh h4 {
  color: #1f5c38;
}

.panchang-almanac-modal .muhurat-card--ashubh h4 {
  color: #7a3018;
}

.panchang-almanac-modal .muhurat-time {
  color: #6b5344;
}

.panchang-almanac-modal .panchang-tone--auspicious,
.panchang-almanac-modal .panchang-tone--very-auspicious {
  color: #1a5234;
}

.panchang-almanac-modal .panchang-tone--neutral {
  color: #5a4630;
  background: rgba(201, 162, 39, 0.16);
}

.panchang-almanac-modal .panchang-tone--inauspicious {
  color: #6b2810;
}

.panchang-almanac-modal .panchang-slot-row.panchang-tone--auspicious td,
.panchang-almanac-modal .panchang-slot-row.panchang-tone--very-auspicious td {
  background: rgba(111, 207, 151, 0.12);
}

.panchang-almanac-modal .panchang-slot-row.panchang-tone--neutral td {
  background: rgba(201, 162, 39, 0.08);
}

.panchang-almanac-modal .panchang-slot-row.panchang-tone--inauspicious td {
  background: rgba(232, 120, 80, 0.1);
}

.panchang-almanac-modal .panchang-section-title {
  color: #9a4a18;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.32);
}

.panchang-almanac-modal .panchang-wisdom {
  color: #4a3524;
}

.panchang-almanac-modal .panchang-muted,
.panchang-almanac-modal .panchang-error {
  color: #6b5344;
}

.panchang-almanac-modal .panchang-loading {
  justify-content: center;
  padding: 28px 0;
  color: #8a7355;
}

.panchang-almanac-modal .panchang-spinner {
  border-color: rgba(201, 162, 39, 0.2);
  border-top-color: #c9a227;
}

.panchang-almanac-modal .panchang-subtitle {
  color: #5a4030;
}

.panchang-almanac-modal .panchang-chip-list dt {
  color: #8a7355;
}

.panchang-almanac-modal .panchang-chip-list dd {
  color: #2d1810;
}

.panchang-almanac-modal .panchang-tag {
  color: #5a4030;
  background: rgba(255, 255, 255, 0.55);
}

.panchang-almanac-modal .panchang-table th {
  color: #8a7355;
  background: rgba(255, 255, 255, 0.5);
}

.panchang-almanac-modal .panchang-table td {
  color: #3a2818;
}

.panchang-almanac-modal .panchang-table-wrap {
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(255, 255, 255, 0.45);
}

.panchang-almanac-modal .panchang-footnotes {
  color: #7a6348;
  border-top-color: rgba(201, 162, 39, 0.28);
}

.panchang-almanac-modal .muhurat-columns {
  gap: 10px;
}

@media (max-width: 560px) {
  .panchang-almanac-modal .muhurat-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .panchang-almanac-modal {
    padding: 10px;
  }

  .panchang-almanac-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .panchang-almanac-modal__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panchang-almanac-modal__backdrop,
  .panchang-almanac-modal__panel {
    transition: none;
  }
}

/* Booking — slot picker with muhurat guide */
.book-slot-picker {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fffdf8 0%, #f8f0e4 100%);
  box-shadow: var(--shadow);
}

.book-slot-picker__head {
  margin-bottom: 0.65rem;
}

.book-slot-picker__label {
  display: block;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.25rem;
}

.book-slot-picker__lede {
  margin: 0;
  font-size: 0.8125rem;
}

.book-slot-picker__datetime-wrap {
  position: relative;
  max-width: 22rem;
}

.book-slot-picker__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.book-slot-picker__input:focus {
  outline: 2px solid var(--gold-soft);
  border-color: var(--gold);
}

.book-slot-picker__input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--muted);
  border-radius: 3px;
  opacity: 0.55;
  pointer-events: none;
}

.book-slot-picker__input-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 6px;
  height: 3px;
  background: var(--muted);
  border-radius: 1px;
}

.book-slot-picker__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0.5rem;
}

.book-slot-picker__verdict {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.book-slot-picker__verdict--good {
  background: rgba(47, 107, 58, 0.08);
  border-color: rgba(47, 107, 58, 0.35);
}

.book-slot-picker__verdict--bad {
  background: rgba(155, 28, 28, 0.07);
  border-color: rgba(155, 28, 28, 0.3);
}

.book-slot-picker__verdict--neutral {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.35);
}

.book-slot-picker__verdict-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--maroon-deep);
}

.book-slot-picker__verdict-detail {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.book-slot-picker__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  .book-slot-picker__columns {
    grid-template-columns: 1fr;
  }
}

.book-slot-picker__col {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.book-slot-picker__col--good {
  border-color: rgba(47, 107, 58, 0.35);
}

.book-slot-picker__col--bad {
  border-color: rgba(155, 28, 28, 0.28);
}

.book-slot-picker__col-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.book-slot-picker__muhurat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.book-slot-picker__muhurat-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
}

.book-slot-picker__muhurat-name {
  font-weight: 600;
  color: var(--text);
}

.book-slot-picker__muhurat-range {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
}

.book-slot-picker__pick {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--cream);
  color: var(--maroon);
  cursor: pointer;
}

.book-slot-picker__pick:hover {
  border-color: var(--gold);
  background: #fff;
}

.book-slot-picker__empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.book-slot-picker__chog-details {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.book-slot-picker__chog-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--maroon);
}

.book-slot-picker__chog-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.book-slot-picker__chog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.book-slot-picker__chog-table th,
.book-slot-picker__chog-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.book-slot-picker__foot {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
}

html.phone-ui .book-slot-picker {
  padding: 0.85rem;
}

html.phone-ui .book-slot-picker__input {
  font-size: 1rem;
  min-height: 44px;
}

.book-slot-picker__loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--maroon-deep);
}

.book-slot-picker__loading[hidden] {
  display: none !important;
}

.book-slot-picker__instruction {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(47, 107, 58, 0.08);
  border: 1px solid rgba(47, 107, 58, 0.28);
}

.book-slot-picker__instruction[hidden] {
  display: none !important;
}

.book-slot-picker__instruction strong {
  color: var(--maroon-deep);
}

.book-slot-picker__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--gold-soft);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: book-slot-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes book-slot-spin {
  to {
    transform: rotate(360deg);
  }
}

.book-slot-picker.is-loading [data-book-slot-muhurat-body],
.book-slot-picker.is-loading [data-book-slot-chog-wrap],
.book-slot-picker.is-loading [data-book-slot-verdict-slot] {
  opacity: 0.45;
  pointer-events: none;
}

.book-slot-picker.is-loading-soft [data-book-slot-muhurat-body] {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .book-slot-picker__spinner {
    animation: none;
    border-top-color: var(--gold-soft);
  }
}

.pandit-chat__log {
  max-height: 16rem;
  overflow-y: auto;
  margin: 0.75rem 0;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.pandit-chat__msg {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.pandit-chat__msg--assistant p {
  color: var(--ink, #1a1a1a);
}

.pandit-chat__msg--pending p {
  font-style: italic;
  opacity: 0.85;
}

.pandit-chat__list {
  margin: 0.25rem 0 0.35rem;
  padding-left: 1.15rem;
}

.pandit-chat__role {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}

.pandit-chat__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.pandit-chat__form textarea {
  flex: 1 1 12rem;
  min-height: 2.75rem;
  resize: vertical;
}

.pandit-chat__disclaimer {
  margin-top: 0.5rem;
  font-size: 0.78rem;
}
