/* Parth Soni — Vedic astrology
 * Palette taken from Kutch Ajrakh block print: indigo ground, madder red,
 * resist white. Haldi marks "you are here" — the lagna and today. */

:root {
  --neel: #1E2A5A;
  --neel-deep: #141C3F;
  --neel-soft: #2B3870;
  --majith: #A33A2C;
  --majith-lit: #D2664F;
  --resist: #ECEEF3;
  --resist-dim: rgba(236, 238, 243, 0.62);
  --resist-faint: rgba(236, 238, 243, 0.18);
  --kashish: #23201E;
  --kashish-dim: #5B5A63;
  --kashish-faint: rgba(35, 32, 30, 0.14);
  --haldi: #D9A441;

  --f-display: 'Gotu', 'Mukta', Georgia, serif;
  --f-text: 'Mukta', 'Segoe UI', system-ui, sans-serif;

  /* perfect-fourth scale on a 17px base */
  --t-0: 0.8125rem;
  --t-1: 1.0625rem;
  --t-2: 1.4167rem;
  --t-3: 1.889rem;
  --t-4: 2.519rem;
  --t-5: clamp(2.6rem, 5.4vw, 4.48rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 34em;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--t-1);
  line-height: 1.55;
  color: var(--kashish);
  background: var(--resist);
  font-feature-settings: 'kern', 'tnum';
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--haldi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--haldi); color: var(--kashish); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- top bar (full-width glass header) ---------- */
.bar-shell {
  position: sticky;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-bottom: -4.5rem;
}

.bar {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.6rem, 1.4vw, 1.4rem);
  padding: 0.5rem clamp(0.75rem, 1.8vw, 1.8rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(14, 22, 53, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  color: #ECEEF3;
  box-sizing: border-box;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Glassmorphism state over dark sections (Kundli, scrolled Hero, Footer) */
.bar.is-scrolled:not(.bar--light) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(14, 22, 53, 0.22);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 36px 0 rgba(0, 0, 0, 0.3);
  color: #ECEEF3;
}

/* Glassmorphism state over light sections (Approach, Gochar, Shop, Book, FAQ) */
.bar.bar--light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%), rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: rgba(20, 28, 63, 0.12);
  box-shadow: 0 10px 30px 0 rgba(20, 28, 63, 0.08);
  color: #141C3F;
}

.bar__left {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.8rem);
  min-width: 0;
  flex: 1 1 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.mark:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mark__chakra {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(244, 178, 26, 0.45));
}

.mark__text {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ECEEF3;
  line-height: 1;
  transition: color 0.25s ease;
}

.bar.bar--light .mark__text {
  color: #141C3F;
}

.mark__logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  display: block;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.1vw, 1.4rem);
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  position: relative;
  text-decoration: none;
  font-family: var(--f-text);
  font-weight: 550;
  font-size: clamp(0.82rem, 0.92vw, 0.98rem);
  color: inherit;
  opacity: 0.85;
  padding: 0.2rem 0.12rem 0.3rem;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: #D92525;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  opacity: 0;
}

.nav__link:hover {
  opacity: 1;
}

.nav__link.is-active {
  opacity: 1;
  font-weight: 650;
}

.nav__link.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav__dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav__dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav__dropdown-chevron {
  margin-left: 0.3rem;
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav__dropdown-toggle[aria-expanded='true'] .nav__dropdown-chevron {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  min-width: 210px;
  padding: 0.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 22, 53, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  z-index: 200;
}

.nav__dropdown-menu[hidden] {
  display: none !important;
}

.nav__dropdown-item {
  padding: 0.65rem 0.8rem;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  font: 500 0.9rem/1.2 var(--f-text);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav__dropdown-item:hover,
.nav__dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.bar.bar--light .nav__dropdown-menu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.64) 100%), rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 28, 63, 0.14);
  box-shadow: 0 16px 36px rgba(20, 28, 63, 0.14);
}

.bar.bar--light .nav__dropdown-item:hover,
.bar.bar--light .nav__dropdown-item:focus-visible {
  background: rgba(30, 42, 90, 0.08);
}

.bar__right {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 1.4rem);
  flex-shrink: 0;
  margin-left: auto;
}

/* Contact box button matching reference [ CONTACT ॐ ] with transparent glass */
.bar__contact-wrap {
  position: relative;
  display: inline-flex;
}

.bar__contact-box {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem clamp(0.5rem, 0.75vw, 0.85rem);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  font-family: var(--f-text);
  font-size: clamp(0.78rem, 0.86vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.bar__contact-box:hover,
.bar__contact-box[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.bar.bar--light .bar__contact-box:hover,
.bar.bar--light .bar__contact-box[aria-expanded='true'] {
  background: rgba(20, 28, 63, 0.06);
}

.bar__contact-seal {
  font-family: var(--f-display), 'Noto Sans Devanagari', serif;
  font-size: 1.15rem;
  color: #E50000;
  font-weight: 800;
  line-height: 1;
}

/* Contact popover menu with glassmorphism */
.contact-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(14, 22, 53, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.20);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 200;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  transform-origin: top right;
  animation: contactMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-menu[hidden] {
  display: none !important;
}

@keyframes contactMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bar.bar--light .contact-menu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 100%), rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 36px rgba(20, 28, 63, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.90);
}

.contact-menu__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--resist);
  transition: background 0.15s ease, transform 0.1s ease;
}

.bar.bar--light .contact-menu__item {
  color: var(--kashish);
}

.contact-menu__item:hover {
  background: rgba(236, 238, 243, 0.1);
  transform: translateX(2px);
}

.bar.bar--light .contact-menu__item:hover {
  background: rgba(30, 42, 90, 0.06);
}

.contact-menu__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-menu__item--wa .contact-menu__icon {
  color: #25D366;
  fill: #25D366;
}

.contact-menu__item--phone .contact-menu__icon {
  color: var(--haldi);
}

.bar.bar--light .contact-menu__item--phone .contact-menu__icon {
  color: var(--neel);
}

.contact-menu__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-menu__title {
  font-family: var(--f-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-menu__sub {
  font-family: var(--f-text);
  font-size: 0.78rem;
  color: var(--resist-dim);
  line-height: 1.2;
}

.bar.bar--light .contact-menu__sub {
  color: var(--kashish-dim);
}

@media (max-width: 768px) {
  .contact-menu {
    left: 0;
    right: auto;
    transform-origin: top left;
  }
}

/* Globe icon + Language button selector */
.bar__lang-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}

.bar__globe {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

.bar__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0.15rem 0.25rem;
  margin: 0;
  font-family: var(--f-text);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.18s ease;
}

.lang-btn:hover {
  opacity: 0.95;
}

.lang-btn.is-active {
  opacity: 1;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .bar {
    padding: 0.45rem clamp(0.75rem, 1.2vw, 1.2rem);
    gap: 0.75rem;
  }
  .bar__left {
    gap: clamp(0.6rem, 1.2vw, 1.2rem);
  }
  .mark__chakra {
    width: 30px;
    height: 30px;
  }
  .mark__text {
    font-size: 1.15rem;
  }
  .nav {
    gap: clamp(0.35rem, 0.8vw, 0.75rem);
  }
  .nav__link {
    font-size: clamp(0.82rem, 0.88vw, 0.9rem);
    padding: 0.2rem 0.1rem 0.3rem;
  }
  .bar__right {
    gap: 0.75rem;
  }
  .bar__contact-box {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .bar-shell {
    margin-bottom: -5.5rem;
  }
  .bar {
    padding: 0.4rem 0.65rem;
    gap: 0.5rem;
  }
  .mark__chakra {
    width: 28px;
    height: 28px;
  }
  .mark__text {
    font-size: 1.08rem;
  }
  .mark__logo {
    height: 28px;
    max-width: 140px;
  }
  .bar__left {
    gap: 0.6rem;
  }
  .nav {
    gap: 0.4rem;
  }
  .nav__link {
    font-size: 0.8rem;
    padding: 0.2rem 0.08rem 0.25rem;
  }
  .bar__right {
    gap: 0.5rem;
  }
  .bar__contact-box {
    padding: 0.26rem 0.5rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }
  .lang-btn {
    padding: 0.15rem 0.25rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 768px) {
  .bar-shell {
    top: 0;
    padding: 0;
    margin-bottom: -6.2rem;
  }
  .bar {
    max-width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
  .bar.is-scrolled:not(.bar--light) {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .bar.bar--light {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(20, 28, 63, 0.12);
  }
  .mark__chakra {
    width: 28px;
    height: 28px;
  }
  .mark__text {
    font-size: 1.1rem;
  }
  .mark__logo {
    height: 28px;
    max-width: 140px;
  }
  .bar__left {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .nav {
    gap: 0.75rem;
    font-size: 0.88rem;
  }
  .bar__right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid currentColor;
    opacity: 0.9;
    padding-top: 0.35rem;
  }
  .bar__contact-box {
    padding: 0.28rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.6rem;
  font: 600 1rem/1.2 var(--f-text);
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 4px;
  background-size: 210% 100%; background-position: 100% 0;
  transition: background-position .45s var(--ease), color .3s, border-color .3s, transform .2s ease;
  position: relative;
}
.btn--light {
  color: var(--neel);
  background-image: linear-gradient(90deg, var(--majith) 50%, var(--resist) 50%);
}
.btn--light:hover { background-position: 0 0; color: var(--resist); }
.btn--line { color: var(--resist); border-color: var(--resist-dim); background: transparent; }
.btn--line:hover { border-color: var(--resist); }
.btn--ink {
  color: var(--resist);
  background-image: linear-gradient(90deg, var(--majith) 50%, var(--neel) 50%);
}
.btn--ink:hover { background-position: 0 0; }
.btn--line-ink { color: var(--neel); border-color: var(--neel); background: transparent; }
.btn--line-ink:hover { background: var(--neel); color: var(--resist); }
.btn--line-small {
  background: transparent;
  border: 1.5px solid var(--haldi);
  color: var(--haldi);
  padding: .45rem 1.2rem; font-size: .88rem; font-weight: 600;
  border-radius: 4px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn--line-small:hover {
  background: var(--haldi);
  color: var(--kashish);
}
.btn--gold {
  background: var(--haldi);
  color: #141c3f;
  border: 1px solid var(--haldi);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn--gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.35);
  color: #141c3f;
}
.btn--gold:active {
  transform: translateY(0);
}
.btn--small {
  padding: .5rem 1.15rem;
  font-size: .88rem;
}
.btn__icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: #25D366;
  border-color: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn--wa:hover {
  background-color: #20BA5A;
  border-color: #20BA5A;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}
.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--kashish-dim); text-decoration: underline; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(6.8rem, 12vw, 9.5rem) var(--gutter) clamp(3rem, 8vw, 6.5rem);
  background: var(--neel);
  color: var(--resist);
  position: relative; overflow: hidden;
}
.hero__text { position: relative; max-width: 36rem; }
.hero__deva {
  font-family: var(--f-display);
  font-size: clamp(5rem, 15vw, 10.5rem); line-height: .9;
  color: var(--resist); opacity: .09;
  position: absolute; top: -.32em; left: -.06em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero h1 { position: relative; font-size: var(--t-5); letter-spacing: -.01em; max-width: 11ch; }
.hero__lede { margin-top: 1.4rem; max-width: 30em; color: var(--resist-dim); font-size: 1.15rem; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* hero: the Sri Yantra — draws itself once, then the rings turn against each other (js/hero-yantra.js) */
.yantra { margin: 0; justify-self: center; width: min(100%, 560px); }
.yantra__svg { display: block; width: 100%; height: auto; }
.yantra .sy-line { fill: none; stroke: var(--resist); stroke-opacity: .55; stroke-width: 1.1; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.yantra .sy-bhupura { stroke-opacity: .5; }
.yantra .sy-circle { stroke-opacity: .38; }
.yantra .sy-tri { stroke: var(--majith-lit); stroke-opacity: 1; stroke-width: 1.4; }
.yantra .sy-bindu { fill: var(--haldi); }
.yantra.is-drawing .sy-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.yantra.is-drawing .sy-bindu { opacity: 0; animation: fade .8s ease forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* ---------- approach ---------- */
.approach {
  display: grid; gap: 1.5rem;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.approach h2 { font-size: var(--t-4); max-width: 10ch; }
.approach__body {
  display: grid; gap: 1.1rem; max-width: var(--measure); font-size: 1.12rem;
}
@media (min-width: 860px) {
  .approach { grid-template-columns: 1fr 1.4fr; column-gap: 4rem; }
}

/* ---------- gochar (transits) ---------- */
.gochar {
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--gutter);
  background: var(--resist);
  border-top: 1px solid var(--kashish-faint);
  border-bottom: 1px solid var(--kashish-faint);
  scroll-margin-top: 0;
}
.gochar__header {
  display: grid; gap: 2rem; margin-bottom: 2.8rem;
}
@media (min-width: 860px) {
  .gochar__header { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
}
.gochar__deva {
  font-family: var(--f-display); font-size: 2.4rem; color: var(--haldi); line-height: 1; margin-bottom: .2rem;
}
.gochar__title {
  font-family: var(--f-display); font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.15; color: var(--neel);
}
.gochar__timestamp {
  color: var(--kashish-dim); font-size: .92rem; margin-top: .4rem;
}
.gochar__callout {
  display: flex; flex-direction: column; gap: 1.1rem;
}
.gochar__callout-text {
  font-size: 1.18rem; line-height: 1.45; font-weight: 500; color: var(--kashish); font-family: var(--f-display);
}
.gochar__cta-btn {
  align-self: flex-start;
}

.gochar__live-wrap {
  display: grid;
  gap: 1.8rem;
  align-items: stretch;
}
@media (min-width: 960px) {
  .gochar__live-wrap {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .gochar__chart-col {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .gochar__chart-col .chart--gochar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}
.gochar__planets-col {
  display: flex;
  flex-direction: column;
}
.gochar__chart-col {
  display: flex;
  flex-direction: column;
}
.gochar__planets-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem;
}
.gochar__planets-head h3 {
  font-family: var(--f-display); font-size: 1.5rem; color: var(--neel);
}
.gochar__live-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--majith);
  background: rgba(163, 58, 44, .08); padding: .3rem .75rem; border-radius: 99px;
}
.gochar__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--majith);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(.9); opacity: .7; }
}

.gochar__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .9rem;
}
.gcard {
  background: #FFFFFF;
  border: 1px solid var(--kashish-faint);
  border-radius: 4px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 1px 3px rgba(35, 32, 30, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gcard:hover {
  transform: translateY(-2px);
  border-color: var(--neel);
  box-shadow: 0 4px 12px rgba(30, 42, 90, 0.1);
}
.gcard.is-retro {
  border-left: 3.5px solid var(--majith);
}
.gcard__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; flex-wrap: wrap; gap: .3rem;
}
.gcard__abbr {
  display: inline-block; width: auto; min-width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: var(--neel); color: var(--resist); font-size: .78rem; font-weight: 700; border-radius: 13px; padding: 0 .4rem;
}
.gcard__sym {
  display: inline-block; font-size: .8rem; font-weight: 800; color: var(--haldi); margin-left: 2px;
}
.gcard__name {
  font-weight: 600; font-size: .95rem; color: var(--kashish);
}
.gcard__name small {
  color: var(--kashish-dim); font-size: .75rem; font-weight: normal; margin-left: .2rem;
}
.gcard__badges {
  display: flex; gap: .3rem; flex-wrap: wrap; align-items: center;
}
.gcard__badge {
  font-size: .7rem; font-weight: 700; color: var(--majith); background: rgba(163,58,44,.1); padding: .1rem .4rem; border-radius: 2px;
}
.gcard__badge--exalted {
  color: #1a6f37; background: rgba(26, 111, 55, .1);
}
.gcard__badge--debilitated {
  color: #c53030; background: rgba(197, 48, 48, .1);
}
.gcard__badge--combust {
  color: var(--majith); background: rgba(163, 58, 44, .1);
}
.gcard__badge--vargottama {
  color: #7b4f00; background: rgba(217, 164, 65, .15);
}
.gcard__badge--retrograde {
  color: #b45309; background: rgba(245, 158, 11, .15);
}
.gcard__sign {
  font-size: .95rem; font-weight: 600; color: var(--neel);
}
.gcard__sa {
  color: var(--kashish-dim); font-size: .85em; font-weight: normal;
}
.gcard__deg {
  font-size: 1.15rem; font-weight: 700; color: var(--kashish); margin: .2rem 0;
}
.gcard__nak {
  font-size: .82rem; color: var(--kashish-dim);
}
.ktable-wrap--gochar {
  background: var(--neel-deep);
  color: var(--resist);
  padding: 1.5rem 1.8rem;
  border-radius: 4px;
  border: 1px solid var(--resist-faint);
  margin-top: 0 !important;
  height: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
.ktable-wrap--gochar .ktable caption {
  color: var(--resist);
  font-size: 1.35rem;
  font-family: var(--f-display);
  margin-bottom: 0.8rem;
}
.ktable-wrap--gochar .ktable th {
  color: var(--resist-dim);
  border-bottom: 1px solid var(--resist-faint);
  padding: 0.6rem 0.8rem 0.6rem 0;
  font-size: 0.92rem;
}
.ktable-wrap--gochar .ktable td {
  padding: 0.65rem 0.8rem 0.65rem 0;
  border-bottom: 1px solid rgba(236, 238, 243, 0.08);
}
.ktable-wrap--gochar .ktable tr.is-retro-row td:first-child {
  color: var(--majith-lit);
}

.chart--gochar {
  background: #FFFFFF;
  border: 1px solid var(--kashish-faint);
  border-radius: 4px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(35, 32, 30, 0.05);
}
.chart--gochar figcaption {
  flex-shrink: 0;
  margin-bottom: 0.6rem;
}
.chart--gochar .chart__name {
  color: var(--neel);
  font-size: 1.35rem;
}
.chart--gochar .chart__sub {
  color: var(--kashish-dim);
}
.chart--gochar .chart-svg-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.chart--gochar svg {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.chart--gochar .c-frame,
.chart--gochar .c-line {
  stroke: var(--neel);
  stroke-opacity: 0.7;
}
.chart--gochar .c-sign {
  fill: var(--kashish-dim);
}
.chart--gochar .c-sign--lagna {
  fill: var(--majith);
}
.chart--gochar .c-pl {
  fill: var(--neel-deep);
}
.chart--gochar .c-pl--la {
  fill: var(--majith);
}
.chart--gochar .c-h1 {
  fill: var(--majith);
  fill-opacity: 0.06;
}
.chart--gochar .c-pl tspan.r {
  fill: var(--majith);
}
.chart--gochar .c-pl tspan.c-sym {
  font-size: 11px;
  font-weight: 700;
  fill: var(--majith);
}
.chart--gochar .chart-note {
  flex-shrink: 0;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--kashish-dim);
  text-align: center;
}
.chart--gochar .chart-note strong {
  color: var(--kashish);
}

/* personalized gochar section */
.gochar__personal {
  margin-top: 3.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--neel-deep);
  color: var(--resist);
  border-radius: 4px;
  border: 1px solid var(--resist-faint);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.gochar__personal-title-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.2rem;
  margin-bottom: 2rem; border-bottom: 1px solid rgba(236, 238, 243, .12); padding-bottom: 1.4rem;
}
.gochar__personal-title-row h3 {
  font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--resist);
}
.gochar__personal-sub {
  color: var(--resist-dim); font-size: .98rem; max-width: 44rem; margin-top: .4rem;
}
.gform {
  margin: 0;
}

/* personal results */
.gresult {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(236, 238, 243, .15);
}
.g-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--resist-faint);
  border-radius: 4px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}
.g-hero-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.g-hero-top h4 {
  font-family: var(--f-display); font-size: 1.6rem; color: var(--haldi); margin: 0;
}
.g-hero-badge {
  background: rgba(217, 164, 65, .2);
  border: 1px solid var(--haldi);
  color: var(--haldi); font-size: .8rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 2px; text-transform: uppercase;
}
.g-hero-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.2rem;
  padding: 1rem 0; border-top: 1px solid rgba(236, 238, 243, .1); border-bottom: 1px solid rgba(236, 238, 243, .1);
}
.g-hero-meta dt {
  color: var(--resist-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
}
.g-hero-meta dd {
  font-size: 1.15rem; color: var(--resist); margin: .2rem 0 0;
}
.g-hero-alerts {
  display: grid; gap: .8rem; margin-top: 1.2rem;
}
.g-alert {
  padding: 1rem 1.25rem; border-radius: 4px; font-size: .95rem;
}
.g-alert b { display: block; margin-bottom: .2rem; font-size: 1rem; }
.g-alert p { margin: 0; line-height: 1.45; }
.g-alert--warn {
  background: rgba(163, 58, 44, .2);
  border: 1px solid var(--majith-lit);
  border-left: 4.5px solid var(--majith-lit);
  color: #FFF;
}
.g-alert--warn b { color: #F0A190; }
.g-alert--ok {
  background: rgba(217, 164, 65, .18);
  border: 1px solid var(--haldi);
  border-left: 4.5px solid var(--haldi);
  color: #FFF;
}
.g-alert--ok b { color: var(--haldi); }
.g-alert--info {
  background: rgba(236, 238, 243, .08);
  border: 1px solid var(--resist-faint);
  border-left: 4.5px solid var(--resist);
  color: var(--resist);
}

.gresult__charts-section {
  margin: 2.5rem 0;
}
.gresult__tabs {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem;
}
.gtab {
  background: transparent;
  border: 1px solid var(--resist-faint);
  color: var(--resist);
  padding: .55rem 1.25rem; font-size: .92rem; font-weight: 600;
  border-radius: 2px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.gtab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--resist);
}
.gtab.is-active {
  background: var(--haldi);
  border-color: var(--haldi);
  color: var(--kashish);
}
.gresult__charts {
  max-width: 480px; margin: 0 auto;
}

.status-badge {
  display: inline-block; padding: .25rem .65rem; border-radius: 2px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; white-space: nowrap;
}
.status--good { background: rgba(72, 187, 120, .2); color: #68D391; border: 1px solid rgba(72, 187, 120, 0.4); }
.status--warn { background: rgba(229, 62, 62, .2); color: #FC8181; border: 1px solid rgba(229, 62, 62, 0.4); }
.status--neutral { background: rgba(236, 238, 243, .1); color: var(--resist); border: 1px solid var(--resist-faint); }
.g-guidance { font-size: .9rem; line-height: 1.4; color: var(--resist-dim); }

/* ---------- kundli ---------- */
.kundli {
  background: var(--neel);
  color: var(--resist);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  scroll-margin-top: 0;
}
.kundli__head { position: relative; max-width: 44rem; }
.kundli__deva {
  font-family: var(--f-display); font-size: clamp(4.5rem, 13vw, 9rem); line-height: 1;
  color: var(--haldi); opacity: .9; margin-bottom: .12em;
}
.kundli h2 { font-size: var(--t-4); }
.kundli__lede { margin-top: .9rem; color: var(--resist-dim); max-width: var(--measure); }

.kform {
  margin-top: 2.6rem;
}
.kform__row { display: grid; gap: 1.4rem 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .kform__row { grid-template-columns: 1fr 1fr; } .field--place { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .kform__row { grid-template-columns: 1fr .8fr 1.6fr; } .field--place { grid-column: auto; } }
.kform__row--manual { margin-top: 1rem; }
@media (min-width: 720px) { .kform__row--manual { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field__label { font-size: .9rem; color: var(--resist-dim); font-weight: 500; }
.field__label em { font-style: normal; opacity: .75; font-weight: 400; }
.field input, .field textarea {
  font: 500 1.1rem/1.4 var(--f-text);
  color: var(--resist);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--resist-faint);
  padding: .55rem 0;
  border-radius: 0;
  width: 100%;
  color-scheme: dark;
  transition: border-color .2s;
}
.field input::placeholder { color: rgba(236, 238, 243, .35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--haldi); }
.field input:focus-visible { outline: none; }
.field__meta { font-size: var(--t-0); color: var(--resist-dim); min-height: 1.2em; }
.field input[aria-invalid='true'] { border-bottom-color: var(--majith-lit); }

/* Time picker with AM / PM */
.time-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-bottom: 1.5px solid var(--resist-faint);
  padding: .35rem 0;
  transition: border-color .2s;
  min-height: 42px;
}
.time-box:focus-within {
  border-bottom-color: var(--haldi);
}
.time-box[aria-invalid='true'] {
  border-bottom-color: var(--majith-lit);
}
.time-box__digits {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.field .time-box__input {
  font: 500 1.15rem/1.2 var(--f-text);
  color: var(--resist);
  background: transparent;
  border: 0;
  padding: .25rem 0;
  width: 2.2rem;
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
}
.field .time-box__input::-webkit-outer-spin-button,
.field .time-box__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field .time-box__input::placeholder {
  color: rgba(236, 238, 243, .35);
}
.field .time-box__input:focus {
  outline: none;
  color: #FFFFFF;
}
.time-box__sep {
  color: var(--resist-dim);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0 .15rem;
  user-select: none;
}
.time-box__ampm {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--resist-faint);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(20, 28, 63, 0.4);
}
.ampm-btn {
  font: 600 .82rem/1 var(--f-text);
  letter-spacing: .04em;
  padding: .35rem .6rem;
  border: 0;
  background: transparent;
  color: var(--resist-dim);
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.ampm-btn + .ampm-btn {
  border-left: 1px solid var(--resist-faint);
}
.ampm-btn:hover {
  color: var(--resist);
  background: rgba(236, 238, 243, 0.08);
}
.ampm-btn.is-active,
.ampm-btn[aria-checked='true'] {
  background: var(--haldi);
  color: var(--neel-deep);
  font-weight: 700;
}
.ampm-btn:focus-visible {
  outline: 2px solid var(--haldi);
  outline-offset: -2px;
}

.combo { position: relative; }
.combo__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: .3rem 0;
  background: var(--neel-deep);
  border: 1px solid var(--resist-faint);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 18rem; overflow-y: auto;
}
.combo__list li {
  padding: .55rem .9rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  transition: background .15s ease, color .15s ease;
}
.combo__list li small { color: var(--resist-dim); font-size: var(--t-0); text-align: right; }
.combo__list li[aria-selected='true'], .combo__list li:hover { background: var(--neel-soft); color: #FFFFFF; }
.combo__list .combo__empty { color: var(--resist-dim); cursor: default; }

.manual { margin-top: 1.6rem; }
.manual summary { cursor: pointer; color: var(--resist-dim); font-size: .95rem; width: fit-content; }
.manual summary:hover { color: var(--resist); }
.manual__hint { margin-top: .8rem; font-size: var(--t-0); color: var(--resist-dim); max-width: 40em; }

.kform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.kform__error { color: #F0A190; font-weight: 500; }

/* results */
.kresult { margin-top: 3.5rem; outline: none; }
.kresult__summary {
  display: grid; gap: 1.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  padding-bottom: 2rem; border-bottom: 1px solid var(--resist-faint);
}
.sum__k { font-size: var(--t-0); color: var(--resist-dim); }
.sum__v { font-family: var(--f-display); font-size: var(--t-2); line-height: 1.25; }
.sum__s { font-size: .95rem; color: var(--resist-dim); }
.sum--now .sum__v { color: var(--haldi); }

.kresult__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--resist-faint);
}
.kresult__bar-info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.kresult__bar-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--resist);
  letter-spacing: .02em;
}
.kresult__bar-sub {
  font-size: .88rem;
  color: var(--resist-dim);
}
.kresult__bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.charts { display: grid; gap: 2.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .charts { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; } }
@media (min-width: 1240px) { .charts { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.chart {
  margin: 0;
}
.chart figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin-bottom: .8rem;
  min-height: 2.85rem;
}
.chart__name {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.4vw, var(--t-2));
  white-space: nowrap;
}
.chart__sub {
  color: var(--resist-dim);
  font-size: .9rem;
  white-space: nowrap;
}
.chart svg { width: 100%; height: auto; max-width: 520px; }
.c-frame, .c-line { fill: none; stroke: var(--resist); stroke-opacity: .55; stroke-width: 1.4; stroke-linejoin: round; }
.c-h1 { fill: var(--haldi); fill-opacity: .08; stroke: none; }
.c-sign { fill: var(--resist); fill-opacity: .5; font: 500 13px var(--f-text); text-anchor: middle; dominant-baseline: central; }
.c-sign--lagna { fill: var(--haldi); fill-opacity: 1; font-weight: 700; }
.c-pl { fill: var(--resist); font: 600 15px var(--f-text); text-anchor: middle; dominant-baseline: central; }
.c-pl tspan.r { font-size: 10px; fill-opacity: .7; }
.c-pl tspan.c-sym { font-size: 11px; font-weight: 700; fill: var(--haldi); }
.c-pl--la { fill: var(--haldi); }
.chart.is-drawing .c-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.chart.is-drawing .c-fade { opacity: 0; animation: fade .5s ease forwards; animation-delay: var(--d, 0s); }

/* Chart notes and status identifiers */
.chart-note {
  margin-top: .85rem;
  font-size: .88rem;
  color: var(--resist-dim);
  line-height: 1.6;
  text-align: center;
}
.chart-note strong {
  color: var(--resist, #ffffff);
  letter-spacing: .04em;
  font-weight: 700;
  margin-right: .3rem;
}
.chart-note .chart-note__sym {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--haldi, #d9a441);
  background: rgba(217, 164, 65, .16);
  padding: .05rem .35rem;
  border-radius: 3px;
  line-height: 1;
  vertical-align: middle;
  margin: 0 .15rem;
}
.chart-note--three {
  margin-top: 1.25rem;
  padding: .85rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--resist-faint);
  border-radius: 4px;
}
.chart--gochar .chart-note {
  color: var(--kashish-dim);
  margin-top: .85rem;
}
.chart--gochar .chart-note strong {
  color: var(--kashish);
}
.chart--gochar .chart-note .chart-note__sym {
  color: var(--majith);
  background: rgba(163, 58, 44, .1);
}
.sym-badge {
  display: inline-block;
  font-family: monospace;
  font-weight: 700;
  font-size: .85em;
  color: var(--haldi);
  background: rgba(217, 164, 65, .18);
  padding: .05rem .35rem;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: .05em;
}
.status--combust {
  background: rgba(163, 58, 44, .15); color: #f0a190; border: 1px solid rgba(163, 58, 44, .3);
}
.status--exalted {
  background: rgba(46, 164, 79, .15); color: #7ee787; border: 1px solid rgba(46, 164, 79, .3);
}
.status--debilitated {
  background: rgba(239, 68, 68, .15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3);
}
.status--vargottama {
  background: rgba(217, 164, 65, .15); color: var(--haldi); border: 1px solid rgba(217, 164, 65, .3);
}
.status--retrograde {
  background: rgba(245, 158, 11, .15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, .3);
}

.ktable-wrap {
  margin-top: 3rem;
  overflow-x: auto;
}
.ktable { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 1rem; }
.ktable caption { text-align: left; font-family: var(--f-display); font-size: var(--t-2); margin-bottom: .8rem; }
.ktable th { text-align: left; font-weight: 500; color: var(--resist-dim); font-size: .9rem; padding: .5rem .8rem .5rem 0; border-bottom: 1px solid var(--resist-faint); }
.ktable td { padding: .6rem .8rem .6rem 0; border-bottom: 1px solid rgba(236, 238, 243, .08); }
.ktable td:first-child { font-weight: 600; }
.ktable .retro { color: var(--majith-lit); font-weight: 600; font-size: .85em; margin-left: .2em; }
.ktable .muted { color: var(--resist-dim); }
.ktable tr.is-lagna td { color: var(--haldi); }

.dasha { margin-top: 3.5rem; }
.dasha h3 { font-size: var(--t-2); }
.dasha__lede { margin-top: .4rem; color: var(--resist-dim); max-width: 44em; }
.dasha__band { position: relative; display: flex; height: 56px; margin: 1.8rem 0 2.6rem; }
.band__seg {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--neel); background: var(--neel-soft);
  font-size: var(--t-0); font-weight: 600; color: var(--resist-dim); overflow: hidden;
  transform-origin: left center;
}
.band__seg:nth-child(odd) { background: #34427F; }
.band__seg.is-now { background: var(--resist); color: var(--neel); }
.band__marker { position: absolute; top: -10px; bottom: -10px; width: 2px; background: var(--haldi); }
.band__marker span { position: absolute; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: var(--t-0); color: var(--haldi); font-weight: 600; }
.band__marker--birth { background: var(--resist-dim); }
.band__marker--birth span { color: var(--resist-dim); top: auto; bottom: calc(100% + 4px); }
.dasha__band.is-drawing .band__seg { animation: grow .7s var(--ease) both; animation-delay: var(--d); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==================== Vimshottari Dasha Tree ==================== */
.dasha__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dtree-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dtree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--resist-faint);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dtree-row::-webkit-details-marker {
  display: none;
}

.dtree-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--haldi);
}

.dtree-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dtree-title {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--haldi);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dtree-title--l1 { font-size: 1.25rem; }
.dtree-title--l2 { font-size: 1.05rem; }
.dtree-title--l3 { font-size: 0.98rem; }
.dtree-title--l4 { font-size: 0.92rem; }
.dtree-title--l5 { font-size: 0.86rem; }

.dtree-sub {
  font-size: 0.82rem;
  color: var(--resist-dim);
  font-weight: 400;
  margin-top: 0.05rem;
}

.dtree-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dtree-date {
  font-size: 0.9rem;
  color: rgba(236, 238, 243, 0.75);
  font-variant-numeric: tabular-nums;
}

.dtree-date--l5 {
  font-size: 0.82rem;
  color: rgba(236, 238, 243, 0.65);
}

.d-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--haldi);
  transition: transform 0.25s var(--ease);
}

.d-chevron svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

details[open] > summary .d-chevron {
  transform: rotate(180deg);
}

/* Indented nested children */
.dtree-children {
  list-style: none;
  margin: 0.35rem 0 0.45rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dtree-children--l2 { margin-left: 1.25rem; }
.dtree-children--l3 { margin-left: 1.25rem; }
.dtree-children--l4 { margin-left: 1.25rem; }
.dtree-children--l5 { margin-left: 1.25rem; }

/* Active running period highlight */
.dtree-item.is-current > details > .dtree-row,
.dtree-item.is-current > .dtree-row {
  border-color: var(--haldi);
  background: rgba(217, 164, 65, 0.14);
}

.dtree-item.is-current > details > .dtree-row .dtree-title,
.dtree-item.is-current > .dtree-row .dtree-title {
  color: var(--haldi);
}

@media (max-width: 640px) {
  .dtree-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
  }
  .dtree-right {
    width: 100%;
    justify-content: space-between;
  }
  .dtree-children--l2,
  .dtree-children--l3,
  .dtree-children--l4,
  .dtree-children--l5 {
    margin-left: 0.6rem;
  }
}

.kresult__next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 3.5rem; padding: 2rem 0; border-top: 1px solid var(--resist-faint); border-bottom: 1px solid var(--resist-faint); }
.kresult__next p { font-family: var(--f-display); font-size: var(--t-2); max-width: 22em; }
.kresult__fine { margin-top: 1.2rem; font-size: var(--t-0); color: var(--resist-dim); max-width: 60em; }

/* ---------- MATCH MAKING (ASHTAKOOTA GUNA MILAN) ---------- */
.matching {
  background: var(--neel);
  color: var(--resist);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  scroll-margin-top: 0;
  position: relative;
  border-top: 1px solid var(--resist-faint);
}
.matching__head {
  position: relative;
  max-width: 52rem;
}
.matching__deva {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 1;
  color: var(--haldi);
  opacity: .85;
  margin-bottom: .2em;
}
.matching h2 {
  font-size: var(--t-4);
  color: var(--resist);
  letter-spacing: -0.02em;
}
.matching__lede {
  margin-top: .9rem;
  color: var(--resist-dim);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 48rem;
}

/* Form Layout */
.mform {
  margin-top: 2.8rem;
  max-width: 72rem;
}
.mform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .mform__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Groom & Bride Cards */
.mcard {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--resist-faint);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: border-color .2s ease, transform .2s ease;
}
.mcard:hover {
  border-color: rgba(217, 164, 65, 0.35);
}
.mcard__header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.6rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--resist-faint);
}
.mcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}
.mcard--groom .mcard__icon {
  background: rgba(86, 150, 248, 0.18);
  color: #79aeff;
  border: 1px solid rgba(121, 174, 255, 0.3);
}
.mcard--bride .mcard__icon {
  background: rgba(255, 110, 160, 0.18);
  color: #ff94ba;
  border: 1px solid rgba(255, 148, 186, 0.3);
}
.mcard__title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--resist);
}
.mcard__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Submit row */
.mform__submit {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}
.mform__error {
  color: #ff7b7b;
  font-size: .95rem;
  font-weight: 500;
  margin: 0;
}

/* Results Display */
.mresult {
  margin-top: 4rem;
  outline: none;
}
.mresult__wrap {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

/* Score Hero Card */
.mresult__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 28, 63, 0.7) 100%);
  border: 1.5px solid var(--resist-faint);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
@media (min-width: 780px) {
  .mresult__hero {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }
}
.mresult__score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mresult__radial {
  position: relative;
  width: 140px;
  height: 140px;
}
.mresult__gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mresult__gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 9;
}
.mresult__gauge-val {
  fill: none;
  stroke: var(--haldi);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}
.mresult__gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mresult__number {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--resist);
}
.mresult__total {
  font-size: .88rem;
  color: var(--resist-dim);
  margin-top: .15rem;
}
.mresult__pct {
  margin-top: .8rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--haldi);
}

.mresult__info-side {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.mresult__kicker {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--resist-dim);
  font-weight: 600;
}
.mresult__verdict {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0;
  line-height: 1.2;
}
.is-excellent .mresult__verdict { color: #4ade80; }
.is-excellent .mresult__gauge-val { stroke: #4ade80; }
.is-verygood .mresult__verdict { color: #38bdf8; }
.is-verygood .mresult__gauge-val { stroke: #38bdf8; }
.is-acceptable .mresult__verdict { color: #fbbf24; }
.is-acceptable .mresult__gauge-val { stroke: #fbbf24; }
.is-incompatible .mresult__verdict { color: #fb7185; }
.is-incompatible .mresult__gauge-val { stroke: #fb7185; }

.mresult__guide-hint {
  font-size: .88rem;
  color: var(--resist-dim);
  margin: 0 0 .5rem 0;
}

/* Manglik Banner */
.mresult__manglik-banner {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.45;
  margin-top: .6rem;
}
.mresult__manglik-banner.is-safe {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.mresult__manglik-banner.is-alert {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
}

/* Breakdown Table Card */
.mresult__table-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--resist-faint);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.mresult__table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--resist-faint);
  background: rgba(255, 255, 255, 0.03);
}
.mresult__table-header h4 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--resist);
}
.mresult__table-badge {
  font-size: .95rem;
  font-weight: 700;
  color: var(--haldi);
  background: rgba(217, 164, 65, 0.15);
  border: 1px solid rgba(217, 164, 65, 0.3);
  padding: .3rem .75rem;
  border-radius: 20px;
}
.mresult__table-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .92rem;
}
.m-table th {
  padding: .9rem 1.2rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--resist-dim);
  border-bottom: 1px solid var(--resist-faint);
  background: rgba(0, 0, 0, 0.15);
}
.m-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.m-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.m-row--dosha {
  background: rgba(251, 113, 133, 0.03);
}
.m-cell-koota {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 130px;
}
.m-koota-num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: .75rem;
  font-weight: 700;
  color: var(--resist-dim);
}
.m-koota-title strong {
  display: block;
  color: var(--resist);
  font-size: 1rem;
}
.m-koota-deva {
  display: block;
  color: var(--haldi);
  font-size: .85rem;
}
.m-cell-area {
  color: var(--resist-dim);
  min-width: 150px;
}
.m-cell-val {
  min-width: 120px;
  color: var(--resist);
}
.m-cell-pts {
  min-width: 100px;
}
.m-pts-badge {
  display: inline-block;
  padding: .3rem .65rem;
  border-radius: 6px;
  font-size: .9rem;
}
.m-pts--full {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.m-pts--mid {
  background: rgba(251, 191, 36, 0.18);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.m-pts--zero {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.m-pts--total {
  background: var(--haldi);
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  font-size: 1.05rem;
}
.m-cell-meaning {
  min-width: 240px;
  font-size: .88rem;
  color: var(--resist-dim);
  line-height: 1.45;
}
.m-cell-meaning p {
  margin: 0;
}
.m-table__total-row {
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.05rem;
}
.m-table__total-row td {
  padding: 1.3rem 1.2rem;
  border-bottom: none;
  border-top: 1.5px solid var(--resist-faint);
  color: var(--resist);
}

/* Astro Profiles Cards */
.mresult__profiles {
  margin-top: .5rem;
}
.mresult__profiles-title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin: 0 0 1.2rem 0;
  color: var(--resist);
}
.mresult__profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 760px) {
  .mresult__profiles-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.m-profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--resist-faint);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.m-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--resist-faint);
}
.m-profile-badge {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .6rem;
  border-radius: 4px;
}
.m-profile-card--groom .m-profile-badge {
  background: rgba(86, 150, 248, 0.2);
  color: #93c5fd;
}
.m-profile-card--bride .m-profile-badge {
  background: rgba(255, 110, 160, 0.2);
  color: #fbcfe8;
}
.m-profile-header h5 {
  font-size: 1.15rem;
  font-family: var(--f-display);
  margin: 0;
  color: var(--resist);
}
.m-profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .92rem;
}
.m-profile-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: .45rem;
}
.m-profile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.m-profile-list span {
  color: var(--resist-dim);
}
.m-profile-list strong {
  color: var(--resist);
}
.text-amber { color: #f59e0b !important; }
.text-emerald { color: #34d399 !important; }

/* Consultation CTA Card */
.mresult__cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.12) 0%, rgba(20, 28, 63, 0.8) 100%);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin-top: 1rem;
}
.mresult__cta-copy {
  max-width: 40rem;
}
.mresult__cta-copy h4 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  margin: 0 0 .5rem 0;
  color: var(--haldi);
}
.mresult__cta-copy p {
  margin: 0;
  font-size: .98rem;
  color: var(--resist-dim);
  line-height: 1.5;
}
.mresult__cta-action {
  flex-shrink: 0;
}

/* ---------- booking ---------- */
.book {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  scroll-margin-top: 0;
  position: relative;
}
.book__head { max-width: 62rem; }
.book h2 { font-size: var(--t-4); }
.book__head p { margin-top: .8rem; color: var(--kashish-dim); font-size: 1.12rem; max-width: 62rem; }

.bform { margin-top: 2.6rem; max-width: 62rem; }
.step {
  border: 0;
  margin: 0 0 2.6rem;
  padding: 0;
  min-width: 0;
}
.step legend { display: flex; align-items: center; gap: .9rem; font-family: var(--f-display); font-size: var(--t-2); padding: 0; margin-bottom: 1.4rem; }
.step__n {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  font-size: 1rem; color: var(--majith);
  position: relative;
}
.step__n::before { content: ''; position: absolute; inset: 4px; border: 1.5px solid var(--majith); transform: rotate(45deg); }

.choices { display: grid; gap: 0; border-top: 1px solid var(--kashish-faint); }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: .2rem 1rem;
  padding: 1.15rem .4rem;
  border-bottom: 1px solid var(--kashish-faint);
  cursor: pointer;
  transition: background .2s;
}
.choice:hover {
  background: rgba(30, 42, 90, .04);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__mark { width: 14px; height: 14px; margin-top: .45rem; border: 1.5px solid var(--kashish-dim); transform: rotate(45deg); transition: background .2s, border-color .2s; }
.choice input:checked ~ .choice__mark { background: var(--majith); border-color: var(--majith); }
.choice input:focus-visible ~ .choice__mark { outline: 2px solid var(--haldi); outline-offset: 3px; }
.choice:has(input:checked) {
  background: rgba(30, 42, 90, .03);
}
.choice__name { font-weight: 600; font-size: 1.1rem; }
.choice__meta { text-align: right; white-space: nowrap; color: var(--kashish-dim); font-size: .95rem; }
.choice__meta b { color: var(--kashish); font-weight: 600; }

.seg {
  display: inline-flex;
  border: 1.5px solid var(--neel);
  border-radius: 4px;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  overflow: hidden;
}
.seg button {
  font: 600 .95rem var(--f-text);
  padding: .6rem 1.4rem;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--neel);
  cursor: pointer;
  transition: all .2s ease;
}
.seg button + button { border-left: 1.5px solid var(--neel); }
.seg button:hover { background: rgba(30, 42, 90, 0.08); }
.seg button[aria-checked='true'] {
  background: var(--neel);
  color: var(--resist);
}

.days { display: flex; gap: .6rem; overflow-x: auto; padding: 4px 4px 1rem; scroll-snap-type: x proximity; }
.day {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 4.4rem; height: 5rem;
  border: 1px solid var(--kashish-faint);
  border-radius: 4px;
  background: #FFFFFF;
  cursor: pointer; font: inherit; color: var(--kashish);
  transition: border-color .2s, background .2s, color .2s;
}
.day small { font-size: var(--t-0); color: var(--kashish-dim); }
.day b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.day:hover:not([disabled]) {
  border-color: var(--neel);
}
.day[aria-checked='true'] {
  background: var(--neel);
  color: var(--resist);
  border-color: var(--neel);
}
.day[aria-checked='true'] small { color: var(--resist-dim); }
.day[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.slots { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; min-height: 46px; }
.slot {
  min-width: 5.6rem; min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid var(--kashish-faint);
  border-radius: 4px;
  background: #FFFFFF;
  font: 600 1rem var(--f-text); color: var(--kashish);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.slot:hover:not([disabled]) {
  border-color: var(--neel);
}
.slot[aria-checked='true'] {
  background: var(--neel);
  color: var(--resist);
  border-color: var(--neel);
}
.slot[disabled] { opacity: .35; cursor: not-allowed; }
.slots__empty { color: var(--kashish-dim); align-self: center; }

.bform__grid { display: grid; gap: 1.4rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bform__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field--ink .field__label { color: var(--kashish-dim); }
.field--ink input, .field--ink textarea {
  font: 500 1.1rem/1.4 var(--f-text);
  color: var(--kashish);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(35, 32, 30, .28);
  padding: .55rem 0;
  border-radius: 0;
  width: 100%;
  color-scheme: light;
  transition: border-color .2s;
  box-shadow: none;
}
.field--ink input::placeholder { color: rgba(35, 32, 30, .35); }
.field--ink input:focus, .field--ink textarea:focus {
  outline: none;
  background: transparent;
  border-bottom-color: var(--majith);
  box-shadow: none;
}
.field--ink textarea { resize: vertical; }

.bform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--kashish-faint); }
.bform__total { font-size: 1.05rem; }
.bform__total b { font-weight: 600; }
.bform__error { margin-top: 1rem; color: var(--majith); font-weight: 600; }

.bdone {
  margin-top: 2.6rem;
  max-width: 40rem;
  padding: 2rem 0 0;
  border-top: 2px solid var(--majith);
  outline: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.bdone h3 { font-size: var(--t-3); }
.bdone p { margin-top: .8rem; color: var(--kashish-dim); }
.bdone__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.2rem; }

/* ---------- footer ---------- */
.foot {
  background: var(--neel-deep);
  color: var(--resist-dim);
  padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; gap: 1.6rem;
  border-top: 1px solid var(--resist-faint);
}
.foot__name { font-family: var(--f-display); font-size: var(--t-3); color: var(--resist); }
.foot__contact { display: flex; flex-direction: column; gap: .3rem; }
.foot__contact a { color: var(--resist); text-decoration: none; width: fit-content; border-bottom: 1px solid var(--resist-faint); }
.foot__contact a:hover { border-bottom-color: var(--haldi); }
.foot__fine { font-size: var(--t-0); max-width: 48em; }
@media (min-width: 760px) {
  .foot { grid-template-columns: 1fr auto; }
  .foot__fine { grid-column: 1 / -1; border-top: 1px solid var(--resist-faint); padding-top: 1.4rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* name field and privacy note (kundli form) */
.kform__row--name { margin-bottom: 1.4rem; }
@media (min-width: 720px) { .kform__row--name { grid-template-columns: minmax(0, 26rem); } }
.kform__consent { margin-top: 1rem; font-size: var(--t-0); color: var(--resist-dim); max-width: 44em; }
.slot.is-taken { text-decoration: line-through; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nine stones / shop section: clear the sticky header when jumped to */
.stones-section, #shop { scroll-margin-top: 64px; }

/* ---------- gemstones, plain version (shown only until nine-stones.js mounts) ---------- */
.ns-fallback { padding: clamp(3rem, 8vw, 6rem) var(--gutter); display: grid; gap: 1rem; max-width: 60rem; }
.ns-fallback h2 { font-size: var(--t-4); }
.ns-fallback ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; }

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--kashish-faint);
  display: grid; gap: 2rem;
}
.faq h2 { font-size: var(--t-4); max-width: 14ch; }
.faq__list { display: grid; gap: 1.8rem 3.5rem; max-width: 70rem; }
.faq__item h3 { font-size: var(--t-2); margin-bottom: .55rem; }
.faq__item p { color: var(--kashish-dim); max-width: var(--measure); }
@media (min-width: 860px) {
  .faq { grid-template-columns: 1fr 2.4fr; column-gap: 4rem; }
  .faq__list { grid-template-columns: 1fr 1fr; }
}

/* ---------- footer links and privacy page ---------- */
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--t-0); }
.foot__links a,
.foot__install {
  color: var(--resist);
  text-decoration: none;
  border-bottom: 1px solid var(--resist-faint);
}
.foot__install {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  font: inherit;
  font-size: var(--t-0);
  cursor: pointer;
  line-height: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.foot__links a:hover,
.foot__links a[aria-current],
.foot__install:hover {
  border-bottom-color: var(--haldi);
  color: #fff;
}
.foot__install-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
  vertical-align: -1px;
}
@media (min-width: 760px) { .foot__links { grid-column: 1 / -1; } }
.privacy h1 { font-size: var(--t-4); }
.privacy .approach__body h2 { font-size: var(--t-2); max-width: none; margin-top: .6rem; }
.privacy__date, .crumbs { font-size: var(--t-0); color: var(--kashish-dim); margin: .6rem 0 1rem; }
.privacy a { color: var(--majith); }

/* ---------- small screens: no sideways page scroll ----------
 * The menu scrolls sideways inside the bar, and wide tables scroll inside their boxes. */
@media (max-width: 959px) {
  .gochar__live-wrap { grid-template-columns: minmax(0, 1fr); }
  .gochar__planets-col, .gochar__chart-col { min-width: 0; }
}
@media (max-width: 768px) {
  .bar__left { min-width: 0; }
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
}


/* ==========================================================================
   ADVANCED INTERACTIVE VEDIC KUNDALI ANALYSIS ENGINE
   ========================================================================== */

/* Chart SVG Interactive Elements */
.c-house-poly {
  fill: rgba(255, 255, 255, 0.001);
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
  outline: none;
}
.c-house-poly:hover,
.c-house-poly:focus-visible {
  fill: rgba(217, 164, 65, 0.18);
  stroke: rgba(217, 164, 65, 0.7);
  stroke-width: 1.5;
}
.c-house-poly.is-selected {
  fill: rgba(217, 164, 65, 0.3) !important;
  stroke: var(--haldi) !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.5));
}
.c-house-poly.is-aspect-source {
  fill: rgba(245, 158, 11, 0.32) !important;
  stroke: #f59e0b !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.6));
}
.c-house-poly.is-aspect-target {
  fill: rgba(56, 189, 248, 0.24) !important;
  stroke: #38bdf8 !important;
  stroke-width: 2;
  stroke-dasharray: 4,4;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.c-pl--interactive {
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  outline: none;
}
.c-pl--interactive:hover,
.c-pl--interactive:focus-visible {
  fill: #f59e0b !important;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.9));
}
.c-pl--interactive.is-planet-selected {
  fill: #f59e0b !important;
  filter: drop-shadow(0 0 7px #f59e0b);
  font-weight: 800;
}

/* Graha Drishti SVG Rays & Badges */
.c-drishti-ray {
  stroke: #38bdf8;
  stroke-width: 2.2;
  stroke-dasharray: 6, 4;
  fill: none;
  animation: drishtiPulse 1.6s linear infinite;
}
.c-drishti-ray--special {
  stroke: #f59e0b;
  stroke-width: 2.6;
}
.c-drishti-ray--mutual {
  stroke: #ec4899;
  stroke-width: 2.6;
}
@keyframes drishtiPulse {
  to {
    stroke-dashoffset: -20;
  }
}

.c-drishti-badge {
  font-size: 10px;
  font-weight: 700;
  fill: #ffffff;
  paint-order: stroke;
  stroke: #0a0f1d;
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  letter-spacing: 0.02em;
}

/* Analyzer Container */
.kanalyzer {
  margin-top: 2.5rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 8px;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--resist);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  position: relative;
}

.kanalyzer__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.kanalyzer__titles {
  max-width: 650px;
}

.kanalyzer__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--haldi);
  background: rgba(217, 164, 65, 0.16);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(217, 164, 65, 0.25);
}

.kanalyzer__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--resist);
  margin: 0 0 0.4rem;
}

.kanalyzer__sub {
  font-size: 0.92rem;
  color: var(--resist-dim);
  line-height: 1.55;
  margin: 0;
}

.kanalyzer__modes {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.3rem;
  flex-wrap: wrap;
}

.kmode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border: none;
  background: transparent;
  color: var(--resist-dim);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.kmode-btn__icon {
  flex-shrink: 0;
}
.kmode-btn:hover:not(.is-active) {
  color: var(--resist);
  background: rgba(255, 255, 255, 0.08);
}
.kmode-btn.is-active {
  background: var(--haldi);
  color: var(--neel-deep);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(217, 164, 65, 0.35);
}

/* Toolbar & Selectors */
.kanalyzer__toolbar {
  margin-bottom: 1.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kanalyzer__selectors {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 164, 65, 0.3) transparent;
}
.kanalyzer__selectors::-webkit-scrollbar {
  height: 4px;
}
.kanalyzer__selectors::-webkit-scrollbar-thumb {
  background: rgba(217, 164, 65, 0.35);
  border-radius: 2px;
}

.kbtn-selector {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--resist);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 68px;
  text-align: center;
}
.kbtn-selector__main {
  font-size: 0.88rem;
  font-weight: 600;
}
.kbtn-selector__sub {
  font-size: 0.72rem;
  color: var(--resist-dim);
  margin-top: 0.15rem;
}
.kbtn-selector:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}
.kbtn-selector.is-active {
  border-color: var(--haldi);
  background: rgba(217, 164, 65, 0.2);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(217, 164, 65, 0.25);
}
.kbtn-selector.is-active .kbtn-selector__sub {
  color: var(--haldi);
  font-weight: 600;
}

/* Drishti Switch & Controls */
.kanalyzer__drishti-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.kswitch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: var(--resist);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.kswitch input {
  display: none;
}
.kswitch__track {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition: background 0.25s ease;
}
.kswitch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.kswitch input:checked + .kswitch__track {
  background: var(--haldi);
}
.kswitch input:checked + .kswitch__track .kswitch__thumb {
  transform: translateX(18px);
  background: var(--neel-deep);
}

/* Analysis Card Content Layout */
.kcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.kcard__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kcard__title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.kcard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kbadge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.kbadge--gold {
  color: var(--haldi);
  background: rgba(217, 164, 65, 0.16);
  border: 1px solid rgba(217, 164, 65, 0.35);
}
.kbadge--cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.kbadge--green {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.kbadge--amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.kbadge--rose {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

/* Metric Cards Grid */
.kcard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kmetric {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 0.9rem 1.1rem;
}
.kmetric__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--resist-dim);
  margin-bottom: 0.35rem;
}
.kmetric__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--resist);
  line-height: 1.35;
}
.kmetric__detail {
  font-size: 0.8rem;
  color: var(--resist-dim);
  margin-top: 0.25rem;
}

/* Yogas and Special Formations */
.kcard__yogas {
  background: rgba(217, 164, 65, 0.08);
  border-left: 3px solid var(--haldi);
  padding: 0.9rem 1.2rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
}
.kcard__yogas-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--haldi);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.kcard__yogas-desc {
  font-size: 0.92rem;
  color: var(--resist);
  line-height: 1.5;
  margin: 0;
}

/* Synthesized Interpretation Text */
.kcard__interp {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 1.3rem 1.4rem;
}
.kcard__interp-heading {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--haldi);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kcard__interp-text {
  font-size: 0.96rem;
  line-height: 1.68;
  color: #e2e8f0;
  margin: 0;
}
.kcard__interp-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Drishti Matrix Table */
.kdrishti-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
}
.kdrishti-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.kdrishti-table th,
.kdrishti-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.kdrishti-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--resist-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.kdrishti-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Rahu & Ketu Tradition Selector */
.ktrad-container {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ktrad-label {
  font-size: 0.82rem;
  color: var(--resist-dim);
  font-weight: 600;
  white-space: nowrap;
}
.ktrad-group {
  display: inline-flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: 4px;
}
.ktrad-btn {
  background: transparent;
  border: none;
  color: var(--resist);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ktrad-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.ktrad-btn.is-active {
  background: var(--haldi);
  color: var(--neel-deep);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* House Card - Graha Drishti Influence Section */
.kdrishti-influence-section {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.kdrishti-influence-section__title {
  font-family: var(--f-display);
  font-size: 1.18rem;
  color: var(--haldi);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.kdrishti-influence-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kdrishti-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kdrishti-card:hover {
  border-color: rgba(217, 164, 65, 0.55);
  transform: translateY(-1px);
}
.kdrishti-card--mutual {
  border-left: 3px solid #38bdf8;
}
.kdrishti-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.kdrishti-card__planet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.kdrishti-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.kdrishti-card__source {
  font-size: 0.85rem;
  color: var(--resist-dim);
}
.kdrishti-card__why {
  background: rgba(217, 164, 65, 0.08);
  border-left: 3px solid var(--haldi);
  padding: 0.65rem 0.95rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.75rem;
}
.kdrishti-card__why-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--haldi);
  margin-bottom: 0.25rem;
}
.kdrishti-card__why-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--resist);
  margin: 0;
}
.kdrishti-card__effect {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0.95rem;
  border-radius: 4px;
}
.kdrishti-card__effect-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}
.kdrishti-card__effect-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
}
.kdrishti-card__empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 1.25rem;
  color: var(--resist-dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ==================== Website vs App Kundli Options ==================== */
/* On the website (standard browser, not inside native app wrapper):
   Hide Save Kundli buttons, Saved Kundlis list buttons, counter badges, and modal.
   Display Download Kundli (PDF) buttons. */
html:not(.is-native) #k-saved-list-form-btn,
html:not(.is-native) #k-save-kundli-top,
html:not(.is-native) #k-saved-list-top,
html:not(.is-native) #k-save-kundli-bottom,
html:not(.is-native) #k-saved-list-bottom,
html:not(.is-native) #sk-modal,
html:not(.is-native) #sk-toast {
  display: none !important;
}

html:not(.is-native) #k-download-form-btn,
html:not(.is-native) #k-download-pdf-top,
html:not(.is-native) #k-download-pdf {
  display: inline-flex !important;
}

/* Inside native app wrapper (Capacitor on iOS/Android):
   Display Save Kundli buttons and Saved Kundlis modal.
   Hide Download Kundli buttons. */
html.is-native #k-download-form-btn,
html.is-native #k-download-pdf-top,
html.is-native #k-download-pdf {
  display: none !important;
}

html.is-native #k-saved-list-form-btn,
html.is-native #k-saved-list-top,
html.is-native #k-saved-list-bottom,
html.is-native #k-save-kundli-top,
html.is-native #k-save-kundli-bottom {
  display: inline-flex !important;
}

/* ==================== Saved Kundlis System ==================== */
.sk-counter-pill {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(217, 164, 65, .18);
  color: var(--haldi);
  border: 1px solid rgba(217, 164, 65, .4);
  letter-spacing: .02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-left: .25rem;
}
.sk-counter-pill.is-full {
  background: rgba(163, 58, 44, .25);
  color: #ff9d8f;
  border-color: rgba(163, 58, 44, .55);
}

.btn.is-saved {
  background: rgba(46, 164, 79, .22) !important;
  color: #a7f3d0 !important;
  border-color: rgba(52, 211, 153, .6) !important;
}

.sk-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}
.sk-modal[hidden] {
  display: none !important;
}
.sk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sk-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: min(88vh, 760px);
  background: #131b3b;
  border: 1px solid rgba(217, 164, 65, .35);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: skModalIn .25s ease-out;
}
@keyframes skModalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.sk-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--resist-faint);
  background: rgba(30, 42, 90, .45);
}
.sk-modal__header-left {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.sk-modal__header-title-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.sk-modal__header-icon {
  color: var(--haldi);
}
.sk-modal__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--resist);
  margin: 0;
  letter-spacing: .02em;
}
.sk-modal__close {
  background: transparent;
  border: none;
  color: var(--resist-dim);
  cursor: pointer;
  padding: .35rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: color .15s, background .15s;
}
.sk-modal__close:hover {
  color: var(--resist);
  background: rgba(255, 255, 255, .08);
}

.sk-banner {
  padding: .9rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  border-bottom: 1px solid transparent;
}
.sk-banner[hidden] {
  display: none !important;
}
.sk-banner--warning {
  background: rgba(163, 58, 44, .18);
  border-color: rgba(163, 58, 44, .4);
  color: #ffb8ad;
}
.sk-banner__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  color: #ff9d8f;
  margin-bottom: .2rem;
}
.sk-banner__desc {
  font-size: .85rem;
  line-height: 1.4;
  margin: 0;
  color: var(--resist-dim);
}
.sk-banner--success {
  background: rgba(46, 164, 79, .16);
  border-color: rgba(46, 164, 79, .4);
  color: #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.sk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.4rem;
  border-bottom: 1px solid var(--resist-faint);
  background: rgba(255, 255, 255, .02);
}
.sk-search-wrap {
  position: relative;
  flex: 1 1 200px;
}
.sk-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--resist-dim);
  pointer-events: none;
}
.sk-search-input {
  width: 100%;
  padding: .5rem .75rem .5rem 2.2rem;
  background: rgba(10, 15, 36, .65);
  border: 1px solid var(--resist-faint);
  border-radius: 6px;
  color: var(--resist);
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.sk-search-input:focus {
  border-color: var(--haldi);
}
.sk-actions-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}
.sk-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--resist-dim);
  cursor: pointer;
  user-select: none;
}
.sk-select-all-label:hover {
  color: var(--resist);
}
.sk-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--haldi);
  cursor: pointer;
  margin: 0;
}
.btn--danger-outline {
  background: transparent;
  color: #ff9d8f;
  border: 1px solid rgba(163, 58, 44, .6);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn--danger-outline:hover:not(:disabled) {
  background: rgba(163, 58, 44, .25);
  border-color: #ff9d8f;
  color: #ffffff;
}
.btn--danger-outline:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.sk-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 160px;
}
.sk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--resist-faint);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.sk-card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(217, 164, 65, .3);
}
.sk-card.is-selected {
  border-color: var(--haldi);
  background: rgba(217, 164, 65, .08);
}
.sk-card__left {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  flex: 1 1 auto;
}
.sk-card__info {
  min-width: 0;
  flex: 1 1 auto;
}
.sk-card__name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--resist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .82rem;
  color: var(--resist-dim);
  margin-top: .25rem;
}
.sk-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.sk-card__actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.btn--danger-icon {
  background: transparent;
  border: 1px solid rgba(163, 58, 44, .4);
  color: #ff9d8f;
  padding: .35rem .6rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all .15s;
}
.btn--danger-icon:hover {
  background: rgba(163, 58, 44, .25);
  border-color: #ff9d8f;
  color: #fff;
}
.sk-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--resist-dim);
}
.sk-empty__icon {
  color: var(--resist-dim);
  opacity: .4;
  margin-bottom: .85rem;
}
.sk-empty h4 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--resist);
  margin: 0 0 .4rem;
}
.sk-empty p {
  font-size: .88rem;
  max-width: 26rem;
  margin: 0 auto;
  line-height: 1.5;
}
.sk-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.4rem;
  border-top: 1px solid var(--resist-faint);
  background: rgba(20, 28, 60, .4);
}
.sk-footer-note {
  font-size: .8rem;
  color: var(--resist-dim);
}
.sk-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10002;
  background: #19234e;
  color: var(--resist);
  border: 1px solid var(--haldi);
  border-radius: 8px;
  padding: .85rem 1.35rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .6);
  font-size: .92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .65rem;
  animation: skToastIn .25s ease-out;
  max-width: min(90vw, 420px);
}
.sk-toast[hidden] {
  display: none !important;
}
@keyframes skToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .sk-modal {
    padding: .5rem;
  }
  .sk-modal__dialog {
    max-height: 94vh;
  }
  .sk-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sk-actions-row {
    justify-content: space-between;
  }
  .sk-card {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .sk-card__actions {
    justify-content: flex-end;
  }
}


/* ==========================================================================
   PANCHANG & MONTHLY HINDU CALENDAR STYLING
   ========================================================================== */

.panchang, #panchang, #panchang-today, #panchang-monthly {
  scroll-margin-top: 70px;
}
.panchang, #panchang, #panchang-today, #panchang-monthly {
  scroll-margin-top: 70px;
}
.panchang {
  position: relative;
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1rem, 3.5vw, 4rem);
  background: radial-gradient(circle at 50% 10%, rgba(244, 178, 26, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(30, 42, 90, 0.5) 0%, transparent 50%),
              #080d21;
  color: #F7F5F0;
  border-bottom: 1px solid rgba(244, 178, 26, 0.15);
}

.panchang__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.panchang__deva {
  font-family: var(--f-serif, Georgia, serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--gold, #F4B21A);
  opacity: 0.35;
  margin: 0 0 -0.5rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.panchang__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold-light, #FFE58F);
  letter-spacing: 0.04em;
  margin: 0.3rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.panchang__subtitle {
  font-family: var(--f-text);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 1.8rem;
}

/* Tabs */
.panchang__tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(14, 22, 53, 0.85);
  padding: 0.35rem;
  border-radius: 40px;
  border: 1px solid rgba(244, 178, 26, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.panchang__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.panchang__tab:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

.panchang__tab.is-active {
  background: linear-gradient(135deg, rgba(244, 178, 26, 0.28) 0%, rgba(212, 175, 55, 0.12) 100%), #141c3f;
  color: #F4B21A;
  border-color: rgba(244, 178, 26, 0.55);
  box-shadow: 0 4px 16px rgba(244, 178, 26, 0.28);
}

/* Controls Toolbar */
.panchang__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0.9rem 1.25rem;
  background: rgba(18, 25, 55, 0.65);
  border: 1px solid rgba(244, 178, 26, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.panchang__control-group {
  position: relative;
}

.panchang__input {
  background: rgba(9, 14, 34, 0.85);
  border: 1px solid rgba(244, 178, 26, 0.25);
  border-radius: 8px;
  color: #F7F5F0;
  padding: 0.55rem 0.9rem;
  font-family: var(--f-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panchang__input:focus {
  border-color: #F4B21A;
  box-shadow: 0 0 10px rgba(244, 178, 26, 0.35);
}

.panchang__city-box {
  position: relative;
  display: flex;
  align-items: center;
}

.panchang__city-icon {
  position: absolute;
  left: 0.75rem;
  color: #F4B21A;
  pointer-events: none;
}

.panchang__input--city {
  padding-left: 2.3rem;
  min-width: 220px;
}

.panchang-city-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  background: #0c122b;
  border: 1px solid rgba(244, 178, 26, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 200;
}

.panchang-city-dropdown[hidden] {
  display: none !important;
}

.panchang-city-item {
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.15s ease;
}

.panchang-city-item:hover {
  background: rgba(244, 178, 26, 0.18);
  color: #F4B21A;
}

.panchang__quick-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panchang__btn-nav {
  font-size: 1.15rem;
  padding: 0.35rem 0.75rem;
}

.panchang__btn-today {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.9rem;
}

/* Hero Banner */
.panchang__hero-banner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(244, 178, 26, 0.15) 0%, rgba(20, 28, 63, 0.85) 100%), #0c132f;
  border: 1px solid rgba(244, 178, 26, 0.35);
  border-radius: 14px;
  padding: 1.3rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.panchang__banner-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.panchang__banner-badge {
  display: inline-block;
  background: rgba(244, 178, 26, 0.2);
  border: 1px solid rgba(244, 178, 26, 0.45);
  color: #FFE58F;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.panchang__banner-tithi {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: #FFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.panchang__banner-right {
  text-align: right;
}

.panchang__banner-city {
  font-size: 1.05rem;
  color: #F4B21A;
  font-weight: 600;
  display: block;
}

.panchang__banner-samvat {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 0.25rem;
}

/* Grid & Cards */
.panchang__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.panchang__card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(13, 20, 48, 0.75) 100%), rgba(12, 18, 42, 0.9);
  border: 1px solid rgba(244, 178, 26, 0.2);
  border-radius: 12px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.panchang__card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 178, 26, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.panchang__card--wide {
  grid-column: 1 / -1;
}

.panchang__card--ashubha {
  border-color: rgba(239, 68, 68, 0.3);
}

.panchang__card--ashubha .panchang__card-header svg {
  color: #f87171;
}

.panchang__card--shubha {
  border-color: rgba(34, 197, 94, 0.3);
}

.panchang__card--shubha .panchang__card-header svg {
  color: #4ade80;
}

.panchang__card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panchang__card-header svg {
  color: #F4B21A;
  flex-shrink: 0;
}

.panchang__card-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: #FFE58F;
  letter-spacing: 0.02em;
  margin: 0;
}

.panchang__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panchang__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.panchang__row:last-child {
  border-bottom: none;
}

.panchang__label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.panchang__val {
  font-size: 0.9rem;
  color: #F7F5F0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.panchang__val--highlight {
  color: #F4B21A;
}

.panchang__val--danger {
  color: #fca5a5;
}

.panchang__val--success {
  color: #86efac;
}

.panchang__val--warn {
  color: #fdba74;
}

/* Tags in Chandrabalam & Tarabalam */
.panchang__tags-block {
  margin-bottom: 1.1rem;
}

.panchang__tags-block:last-child {
  margin-bottom: 0;
}

.panchang__tags-heading {
  display: block;
  font-size: 0.92rem;
  color: #FFE58F;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.panchang__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panchang-tag {
  background: rgba(244, 178, 26, 0.12);
  border: 1px solid rgba(244, 178, 26, 0.3);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
}

/* ================= MONTHLY PANCHANG CALENDAR ================= */
.panchang-m-toolbar {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  background: rgba(18, 25, 55, 0.65);
  border: 1px solid rgba(244, 178, 26, 0.2);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  backdrop-filter: blur(12px);
}

.panchang-m-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.panchang__input--mdate {
  text-align: center;
  width: 140px;
  cursor: default;
}

.panchang-m-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
}

.panchang-pill-btn {
  background: rgba(115, 125, 150, 0.75);
  border: none;
  border-radius: 4px;
  color: #FFF;
  font-family: var(--f-text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.panchang-pill-btn:hover {
  background: #F4B21A;
  color: #0c122b;
}

.panchang-m-title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #FFE58F;
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.panchang-cal-container {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  overflow-x: auto;
  background: #FFF;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}

.panchang-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 720px;
  font-family: var(--f-text);
}

.panchang-cal-table th {
  background: #fbfbfb;
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 0.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.panchang-cal-table td {
  border: 1px solid #e5e7eb;
  padding: 0;
  vertical-align: top;
  background: #FFF;
  height: 98px;
}

.cal-cell {
  width: 100%;
  height: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  user-select: none;
}

.cal-cell:hover {
  background: #f3f4f6;
}

.cal-cell.is-today {
  background: #3c4556 !important;
  color: #FFF !important;
}

.cal-cell.is-today .cal-cell__tithi {
  color: #FFF !important;
}

.cal-cell.is-today .cal-cell__tithi-num {
  color: #9ca3af !important;
}

.cal-cell.is-today .cal-cell__greg-day {
  color: #FFF !important;
}

.cal-cell.is-today .cal-cell__pravishte {
  color: #9ca3af !important;
}

.cal-cell.is-selected:not(.is-today) {
  outline: 2px solid #F4B21A;
  background: rgba(244, 178, 26, 0.08);
}

.cal-cell.is-faded {
  opacity: 0.35;
  background: #fafafa;
}

.cal-cell__tithi {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
  line-height: 1.25;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-cell__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding-top: 0.25rem;
}

.cal-cell__tithi-num {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 22px;
}

.cal-cell__greg-day {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.cal-cell__pravishte {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 22px;
  text-align: right;
}

.cal-side-th {
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
  font-size: 0.85rem;
  width: 110px;
  padding: 0.6rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.cal-moon-icon--dark {
  color: #111827;
  font-size: 0.85em;
  margin-right: 0.25rem;
}

.cal-moon-icon--full {
  color: #374151;
  font-size: 0.85em;
  margin-right: 0.25rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .panchang__banner-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .panchang__banner-right {
    text-align: left;
  }
  .panchang__grid {
    grid-template-columns: 1fr;
  }
  .panchang-m-top-row {
    flex-direction: column;
    align-items: stretch;
  }
  .panchang-m-bottom-row {
    justify-content: center;
  }
  .panchang__input--city {
    min-width: 100%;
  }
}
