/* KundaliLens app polish (2 Dec 2026): small fixes inside the app after the landing page,
   plus the new-account offer card. Loaded after the other sheets so these rules win. */

/* ---------- My Sky form: "what you get" sits under the form, not stranded at the bottom ---------- */
@media (min-width: 768px) {
  #panelChart .sky-promise {
    margin: 28px 0 0;
  }
}

/* ---------- My Sky results: no giant "YOUR SKY" and empty timeline before there is a chart ---------- */
#explorer:not(.has-chart)[data-hud="sky"] .hud-display-counter,
#explorer:not(.has-chart)[data-hud="sky"] .dasha-scrubber {
  display: none;
}

/* ---------- "Your day is ready" teaser: text gets the full width, the link sits under it ---------- */
.day-teaser {
  grid-template-columns: 1fr;
  gap: 6px;
}
.day-teaser__text {
  grid-column: 1;
}
.day-teaser__go {
  grid-column: 1;
  grid-row: auto;
  justify-self: start;
  margin-top: 2px;
}

/* ---------- Match share buttons: one row of equals, WhatsApp first ---------- */
#explorer .share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#explorer .share-row > .btn-whatsapp {
  grid-column: 1 / -1;
  order: -1;
}
#explorer .share-row > * {
  min-height: 42px;
  font-size: 13px;
}

/* ---------- Ask Jyotish: whose chart the answer uses ---------- */
.chat-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.chat-context[hidden] {
  display: none;
}
.chat-context__k {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mars-soft);
}
.chat-context__v {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
}
.chat-context.is-sample {
  border-color: rgba(245, 199, 107, 0.28);
}
.chat-context.is-sample .chat-context__v {
  color: var(--muted);
}
.chat-context__go {
  flex: 0 0 auto;
  color: var(--gold, #f5c76b);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 199, 107, 0.4);
}
.chat-context__go:hover {
  border-bottom-color: currentColor;
}
.chat-context__go:focus-visible {
  outline: 2px solid var(--gold, #f5c76b);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Plans: offer line and reduced prices ---------- */
.pr-offer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(245, 199, 107, 0.3);
  border-radius: 8px;
  background: rgba(245, 199, 107, 0.06);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.pr-offer[hidden] {
  display: none;
}
.pr-offer__k {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold, #f5c76b);
}
.pr-price__was,
.pr-report__was {
  color: var(--muted);
  text-decoration-thickness: 1px;
  font-size: 15px;
  align-self: center;
}
.pr-report__was {
  font-size: inherit;
  margin-right: 2px;
}

/* ---------- New-account offer card (inside the app only) ---------- */
.kl-offer {
  position: fixed;
  z-index: 60;
  right: var(--gutter, 32px);
  top: 92px;
  width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 16px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 199, 107, 0.3);
  background: rgba(10, 8, 9, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: var(--text);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.kl-offer.is-on {
  opacity: 1;
  transform: none;
}
.kl-offer__k {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold, #f5c76b);
}
.kl-offer__t {
  margin: 6px 28px 0 0;
  font-family: "Space Grotesk", var(--font-sans, sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
.kl-offer__d {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.kl-offer__row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.kl-offer__go {
  flex: 1 1 auto;
}
.kl-offer__later {
  flex: 0 0 auto;
}
.kl-offer__x {
  appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.kl-offer__x:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}
.kl-offer__x:focus-visible,
.kl-offer__later:focus-visible,
.kl-offer__go:focus-visible {
  outline: 2px solid var(--gold, #f5c76b);
  outline-offset: 2px;
}

@media (max-width: 767.98px), (max-width: 1023.98px) and (orientation: portrait), (max-height: 499.98px) {
  .kl-offer {
    left: 12px;
    right: 12px;
    top: auto;
    width: auto;
    bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom, 0px) + 10px);
    transform: translateY(8px);
  }
  .kl-offer.is-on {
    transform: none;
  }
  .kl-offer {
    padding: 12px 14px;
  }
  .kl-offer__t {
    font-size: 16px;
  }
  .kl-offer__d {
    font-size: 12.5px;
  }
  .kl-offer__row {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kl-offer {
    transition: none;
  }
}
