/* ==========================================================================
   KundaliLens — Window-to-Mars Inspired Full-Bleed 3D Aerospace Minimalism
   ========================================================================== */

:root {
  --bg: #000000;
  --space: #06070c;
  --glass-bg: rgba(7, 6, 8, 0.88);
  --glass-border: rgba(255, 255, 255, 0.1);
  --mars: #cd5b13;
  --mars-bright: #e0662a;
  --mars-soft: #f2a06a;
  --sand: #e8b98d;
  --text: #f5efe9;
  --muted: rgba(245, 239, 233, 0.62);
  --dim: rgba(245, 239, 233, 0.38);
  --green: #4ade80;
  --blue: #8fc1ff;

  --font-display: "Barlow", "Space Grotesk", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --saffron: #f59a4a;
  --control-h: 40px;
  --control-radius: 10px;
  --control-bg: rgba(255, 255, 255, 0.05);
  --control-bg-hover: rgba(255, 255, 255, 0.08);
  --control-border: rgba(255, 255, 255, 0.14);
  --focus-ring: 0 0 0 3px rgba(245, 154, 74, 0.28);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Full-Viewport 3D WebGL Globe & Projected Orbital Labels
   ========================================================================== */

.globe-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 70% 45%, #08182e 0%, #05070e 60%, #000000 100%);
}

.globe-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.globe-canvas canvas:active {
  cursor: grabbing;
}

.orb-labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.orb-label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(6, 7, 12, 0.72);
  border: 1px solid rgba(143, 193, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 250ms ease;
}

.orb-label.is-active {
  color: var(--mars-soft);
  border-color: var(--mars-bright);
}

.home-shade {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0) 35%);
}

/* ==========================================================================
   Screen Layering
   ========================================================================== */

.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  transition: opacity 550ms ease, transform 550ms ease;
}

.screen[hidden] {
  display: none;
}

/* ==========================================================================
   SCREEN 1: LANDING (#intro)
   ========================================================================== */

.screen--intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 40px 24px;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-wordmark {
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text);
}

.home-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-pill-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 14, 0.6);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hud-pill-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hud-pill-cta {
  appearance: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--mars-bright);
  background: var(--mars);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.hud-pill-cta:hover {
  background: var(--mars-bright);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.live-dot--green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.live-dot--orange {
  background: var(--mars-bright);
}

/* Framed Hero Block with L-shaped Corner Brackets */
.home-main {
  position: relative;
  max-width: 560px;
  padding: 28px 32px;
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(245, 239, 233, 0.38);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sand);
  margin-bottom: 12px;
}

.home-headline {
  margin: 0;
  font-family: "Space Grotesk", var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-subhead {
  margin: 14px 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
}

.home-now {
  font-size: 12px;
  color: var(--mars-soft);
  margin-bottom: 16px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 12, 0.56);
  margin-bottom: 22px;
}

.stat-cell {
  padding: 10px 14px;
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-cell:nth-child(2n) { border-right: none; }
.stat-cell:nth-child(n+3) { border-bottom: none; }

.stat-cell__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.stat-cell__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.btn-enter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 5px 5px 5px 22px;
  border-radius: 999px;
  border: none;
  background: var(--mars);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.btn-enter:hover {
  background: #e0671a;
  transform: translateY(-1px);
}

.btn-enter__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-secondary-action {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-secondary-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.home-secondary-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: var(--sand);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.home-secondary-link:hover {
  color: #fff;
  text-decoration: underline;
}

.home-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--dim);
}

/* ==========================================================================
   SCREEN 2: FULL-BLEED EXPLORER (#explorer)
   ========================================================================== */

.screen--explorer {
  pointer-events: none;
}

.screen--explorer > * {
  pointer-events: auto;
}

.explorer-veil {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 28%, rgba(0, 0, 0, 0) 55%);
}

.hud-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: saturate(140%) blur(14px);
}

.hud-brand-bar {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 999px;
}

.brand-back-btn {
  appearance: none;
  background: none;
  border: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
}

.mode-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  border-left: 1px solid var(--glass-border);
  padding-left: 12px;
}

.mode-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.is-active {
  color: var(--text);
  border-bottom-color: var(--mars-bright);
}

.hud-today-card {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-radius: 12px;
  max-width: 300px;
}

.hud-today-card__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.hud-today-card__text {
  font-size: 12px;
  color: var(--text);
  margin-top: 2px;
}

.btn-explore-sm {
  appearance: none;
  border: none;
  background: var(--mars);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-explore-sm:hover {
  background: var(--mars-bright);
}

/* Floating Left Workspace Panel (keeps right 60% open for 3D sky) */
.explorer-panel {
  position: fixed;
  top: 84px;
  left: 24px;
  z-index: 18;
  width: min(440px, calc(100vw - 48px));
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  border-radius: 14px;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mars-soft);
}

.panel-title {
  margin: 4px 0 0;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 20px;
  font-weight: 500;
}

.panel-tag {
  font-size: 10px;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.compact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  min-height: var(--control-h);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  color-scheme: dark;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
select:hover {
  background: var(--control-bg-hover);
  border-color: rgba(255, 255, 255, 0.22);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--mars-bright);
}

input:focus-visible,
select:focus-visible {
  border-color: var(--saffron);
  box-shadow: var(--focus-ring);
}

input::placeholder {
  color: var(--dim);
}

select option,
select optgroup {
  background: #14110f;
  color: var(--text);
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-mars-primary {
  appearance: none;
  flex: 1;
  border: none;
  border-radius: 8px;
  background: var(--mars);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  cursor: pointer;
}

.btn-mars-primary:hover {
  background: var(--mars-bright);
}

.btn-mars-outline {
  appearance: none;
  width: 100%;
  border: 1px solid var(--mars-bright);
  border-radius: 8px;
  background: rgba(205, 91, 19, 0.14);
  color: var(--sand);
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn-ghost-sm {
  appearance: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.results-stack {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

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

.insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.insight-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.insight-card__val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.chapter-callout {
  background: rgba(205, 91, 19, 0.08);
  border-left: 2px solid var(--mars-bright);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
}

.chapter-callout__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mars-soft);
  margin-bottom: 4px;
}

.chapter-callout__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.tech-drawer {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.tech-drawer summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.tech-drawer__body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.planet-table th,
.planet-table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.planet-table th {
  color: var(--dim);
  font-weight: 400;
}

/* Chat */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--mars);
  color: #fff;
}

.quick-hooks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hook-chip {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sand);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.hook-chip:hover {
  border-color: var(--mars-bright);
}

.chat-feed {
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble--user {
  align-self: flex-end;
  background: rgba(205, 91, 19, 0.22);
  border: 1px solid rgba(205, 91, 19, 0.4);
  max-width: 85%;
}

.chat-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row .btn-mars-primary {
  flex: 0 0 auto;
  padding: 8px 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pill-item {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.cite-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.science-footnote {
  margin: 0;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.45;
}

/* Match */
.match-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.match-person input,
.match-person select {
  min-width: 0;
  font-size: 12px;
  padding: 6px 8px;
}

.match-person__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mars-soft);
}

.match-score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-score-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.match-score-num small {
  font-size: 16px;
  color: var(--muted);
}

.match-score-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.share-row {
  display: flex;
  gap: 8px;
}

.btn-whatsapp {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
  font-size: 12px;
}

.koota-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.koota-mini-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.form-error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #fca5a5;
}

/* Bottom-Left Giant Barlow Display Counter */
.hud-display-counter {
  position: fixed;
  left: 24px;
  bottom: 78px;
  z-index: 15;
  pointer-events: none;
}

.hud-display-counter__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--sand);
}

.mars-rule {
  width: 24px;
  height: 2px;
  background: var(--mars-bright);
  display: inline-block;
}

.hud-display-counter__big {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
}

/* Bottom Dasha Timeline Scrubber */
.dasha-scrubber {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 18;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dasha-scrubber__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  white-space: nowrap;
}

.dasha-track {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
}

.dasha-node {
  flex: 1 0 auto;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dasha-node.is-active {
  border-color: var(--mars-bright);
  background: rgba(205, 91, 19, 0.2);
  color: #fff;
}

.dasha-empty {
  font-size: 11px;
  color: var(--dim);
}

@media (max-width: 760px) {
  .screen--intro {
    padding: 16px 18px;
    overflow-y: auto;
  }
  .home-top-links {
    display: none;
  }
  .home-main {
    padding: 18px;
  }
  .hud-today-card,
  .hud-display-counter {
    display: none;
  }
  .hud-brand-bar {
    left: 12px;
    right: 12px;
    top: 12px;
    justify-content: space-between;
  }
  .explorer-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: 72px;
    max-height: calc(100vh - 150px);
  }
  .match-inputs,
  .form-row--3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Jaathagam Upload / Camera Capture & Full Mobile/Tablet Responsiveness
   ========================================================================== */

.match-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.match-mode-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.match-mode-btn.is-active {
  background: var(--mars);
  color: #fff;
}

.jaathagam-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.jaathagam-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  min-height: 36px;
}

.file-btn:hover {
  border-color: var(--mars-bright);
}

.file-btn--camera {
  border-color: rgba(143, 193, 255, 0.35);
  color: var(--blue);
}

.file-name-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sand);
  word-break: break-all;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.camera-modal__box {
  width: min(460px, 100%);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camera-video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  max-height: 320px;
  object-fit: cover;
}

/* Tablet (601px - 1024px) */
@media (max-width: 1024px) {
  .screen--explorer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .hud-brand-bar,
  .hud-today-card,
  .explorer-panel,
  .dasha-scrubber {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    max-height: none;
  }

  .hud-brand-bar {
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hud-display-counter {
    display: none;
  }
}

/* Mobile (<= 600px) */
@media (max-width: 600px) {
  .screen--intro {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-main {
    padding: 16px;
    margin: 16px 0;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
  }

  .mode-switcher {
    border-left: none;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .mode-btn,
  .btn-mars-primary,
  .btn-enter,
  .file-btn {
    min-height: 44px;
  }

  .insight-grid,
  .jaathagam-actions {
    grid-template-columns: 1fr;
  }
}

/* Download Match Card button */
.btn-card-download {
  color: #f5d48a;
  border-color: rgba(245, 199, 107, 0.4);
  background: rgba(245, 199, 107, 0.08);
}

.btn-card-download:hover:not(:disabled) {
  color: #ffe3a3;
  border-color: rgba(245, 199, 107, 0.7);
}

.btn-ghost-sm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Landing headline: second line in saffron, kept on its own line */
.home-headline__accent {
  display: block;
  color: #F59A4A;
}

/* ==========================================================================
   Modern form controls: date/time, city & language combobox, View pills
   ========================================================================== */

.form-row--1 {
  grid-template-columns: 1fr;
}

.field > label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Native date/time, themed */
input[type="date"],
input[type="time"] {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
  cursor: text;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text {
  color: var(--dim);
  padding: 0 1px;
}

input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-ampm-field:focus {
  background: rgba(205, 91, 19, 0.45);
  color: #fff;
  border-radius: 3px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.85;
  background: center / 16px 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: rgba(245, 154, 74, 0.16);
}

/* Combobox */
.kl-native-hidden {
  display: none !important;
}

.kl-combo {
  position: relative;
  min-width: 0;
}

.kl-combo__input {
  padding-right: 34px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.kl-combo__input:focus {
  cursor: text;
}

.kl-combo__input::selection {
  background: rgba(205, 91, 19, 0.55);
  color: #fff;
}

.kl-combo.is-open .kl-combo__input {
  border-color: var(--saffron);
  box-shadow: var(--focus-ring);
}

.kl-combo__toggle {
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--saffron);
  cursor: pointer;
  border-radius: 0 var(--control-radius) var(--control-radius) 0;
}

.kl-combo__toggle svg {
  transition: transform 0.18s ease;
}

.kl-combo.is-open .kl-combo__toggle svg {
  transform: rotate(180deg);
}

.kl-combo__list {
  position: fixed;
  z-index: 1000;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #100d0c;
  border: 1px solid rgba(245, 154, 74, 0.28);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 154, 74, 0.4) transparent;
  animation: klComboIn 0.12s ease-out;
}

.kl-combo__list[hidden] {
  display: none;
}

.kl-combo__list.is-above {
  animation-name: klComboInUp;
}

@keyframes klComboIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes klComboInUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kl-combo__group {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: 0 -6px;
  padding: 8px 14px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mars-soft);
  background: rgba(16, 13, 12, 0.98);
}

.kl-combo__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(245, 239, 233, 0.88);
}

.kl-combo__option.is-active {
  background: rgba(205, 91, 19, 0.24);
  color: #fff;
}

.kl-combo__option[aria-selected="true"] {
  color: var(--saffron);
  font-weight: 600;
}

.kl-combo__option[aria-selected="true"]::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: center / 14px 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F59A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}

.kl-combo__tag {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.kl-combo__empty {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* View: segmented pills */
.kl-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--control-border);
}

.kl-seg__btn {
  appearance: none;
  min-height: 32px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kl-seg__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.kl-seg__btn[aria-checked="true"] {
  background: var(--mars);
  color: #fff;
  box-shadow: 0 2px 10px rgba(205, 91, 19, 0.35);
}

.kl-seg__btn:focus {
  outline: none;
}

.kl-seg__btn:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* Match cards: compact but consistent. Date + time wrap onto two lines
   when the card is too narrow to show both in full. */
.match-person .form-row {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
}

/* Match cards: compact but consistent */
.match-person input,
.match-person .kl-combo__input {
  min-height: 36px;
  border-radius: 8px;
}

.match-person input[type="date"],
.match-person input[type="time"] {
  padding-left: 8px;
  padding-right: 2px;
  font-size: 11.5px;
}

.match-person input[type="date"]::-webkit-calendar-picker-indicator,
.match-person input[type="time"]::-webkit-calendar-picker-indicator {
  margin-left: 0;
  padding: 2px;
  width: 14px;
  height: 14px;
  background-size: 14px 14px;
}

.jaathagam-card .kl-combo__input {
  font-size: 12.5px;
}

/* Touch: 44px targets, 16px text (no iOS focus zoom) */
@media (max-width: 760px), (pointer: coarse) {
  :root {
    --control-h: 44px;
  }

  input,
  select,
  input[type="date"],
  input[type="time"],
  .match-person input,
  .match-person .kl-combo__input,
  .jaathagam-card .kl-combo__input,
  .match-person input[type="date"],
  .match-person input[type="time"] {
    min-height: 44px;
    font-size: 16px;
  }

  /* 16px date/time need ~180px; stack them when the column is narrower. */
  .form-row:has(> .field > input[type="date"]),
  .match-person .form-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .kl-seg__btn {
    min-height: 40px;
    font-size: 14px;
  }

  .kl-combo__option {
    min-height: 44px;
    font-size: 15px;
  }

  .kl-combo__toggle {
    width: 44px;
  }

  .kl-combo__input {
    padding-right: 44px;
  }
}

/* ==========================================================================
   My Day dashboard, free Panchangam, Plans modal (v20261201a)
   ========================================================================== */

:root {
  --gold: #f5c76b;
  --gold-deep: #d4a537;
  --gold-bg: rgba(245, 199, 107, 0.14);
  --avoid: #e07a6c;
  --avoid-bg: rgba(214, 92, 80, 0.2);
  --neutral-bg: rgba(245, 239, 233, 0.1);
  --card-bg: rgba(255, 255, 255, 0.028);
}

/* ---------- Tradition blocks on My Sky ---------- */
.trad-block { display: flex; flex-direction: column; gap: 10px; }
.trad-block[hidden] { display: none; }
.trad-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--mars-soft);
}
.insight-grid--3 { grid-template-columns: repeat(3, 1fr); }
.trad-empty { margin: 0; font-size: 11px; color: var(--muted); }

.day-teaser {
  appearance: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 199, 107, 0.32);
  background: linear-gradient(135deg, rgba(245, 199, 107, 0.12), rgba(205, 91, 19, 0.08));
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease;
}
.day-teaser:hover { border-color: rgba(245, 199, 107, 0.6); }
.day-teaser--easy {
  border-color: rgba(224, 122, 108, 0.35);
  background: linear-gradient(135deg, rgba(224, 122, 108, 0.1), rgba(205, 91, 19, 0.06));
}
.day-teaser__kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--green);
}
.day-teaser__label { font-family: "Space Grotesk", var(--font-sans); font-size: 16px; font-weight: 500; }
.day-teaser__text { grid-column: 1 / 2; font-size: 12px; line-height: 1.45; color: var(--muted); }
.day-teaser__go {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* ---------- Plans pills ---------- */
.home-top-right { display: flex; align-items: center; gap: 10px; }
.plans-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 199, 107, 0.45);
  background: rgba(245, 199, 107, 0.1);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.plans-pill:hover { background: rgba(245, 199, 107, 0.2); border-color: var(--gold); }
.plans-pill.is-plus { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.1); color: #86efac; }
.plans-pill--bar { min-height: 28px; padding: 5px 11px; font-size: 10px; }

.plans-pill:focus-visible,
.mode-btn:focus-visible,
.day-teaser:focus-visible,
.btn-unlock:focus-visible,
.cal-day:focus-visible,
.day-nav__btn:focus-visible,
.day-more > summary:focus-visible,
.dosha__sum:focus-visible,
.tr__sum:focus-visible,
.btn-mars-primary:focus-visible,
.btn-mars-outline:focus-visible,
.btn-ghost-sm:focus-visible,
.btn-whatsapp:focus-visible,
.kl-modal__close:focus-visible,
.pr-toggle button:focus-visible,
.pr-back:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.panel-tag.is-plus { color: var(--gold); border-color: rgba(245, 199, 107, 0.4); }

/* ---------- Shared day layout ---------- */
.day-where { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.day-where > label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.day-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}
.day-empty[hidden] { display: none; }
.day-empty p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.day-status { margin: 0; font-size: 11px; color: var(--mars-soft); }
.day-status:empty { display: none; }
.day-stack { display: flex; flex-direction: column; gap: 14px; }
.day-stack[hidden] { display: none; }
#tonightContent { margin: 12px 0; }

.day-nav {
  position: sticky;
  top: -20px;
  z-index: 3;
  display: flex;
  gap: 6px;
  margin: -4px -20px 0;
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(7, 6, 8, 0.97) 70%, rgba(7, 6, 8, 0));
}
.day-nav::-webkit-scrollbar { display: none; }
.day-nav__btn {
  appearance: none;
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.day-nav__btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }

.day-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  scroll-margin-top: 48px;
}
.day-card--flat { padding: 14px; }
.day-card__head { display: flex; flex-direction: column; gap: 2px; }
.day-card__kicker { font-size: 10px; letter-spacing: 0.12em; color: var(--mars-soft); }
.day-card__title {
  margin: 0;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.day-card__title:focus { outline: none; }
.sub-h { margin: 4px 0 0; font-size: 10px; font-weight: 400; letter-spacing: 0.1em; color: var(--dim); }
.day-fine { margin: 0; font-size: 11px; line-height: 1.55; color: var(--dim); }
.day-fine strong { color: var(--muted); font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.day-chip--good { color: var(--gold); background: var(--gold-bg); border-color: rgba(245, 199, 107, 0.3); }
.day-chip--avoid { color: #f1a195; background: rgba(214, 92, 80, 0.12); border-color: rgba(224, 122, 108, 0.3); }
.day-chip--soft { color: var(--sand); background: rgba(232, 185, 141, 0.08); border-color: rgba(232, 185, 141, 0.22); }

.day-more { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 8px; }
.day-more > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.day-more > summary:hover { color: var(--text); }
.day-more__body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.day-share { flex-wrap: wrap; }
.day-share > * { flex: 1 1 auto; }
.day-foot { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }

/* ---------- Glance ---------- */
.glance { display: flex; align-items: center; gap: 14px; }
.glance__dial { position: relative; flex: none; width: 64px; height: 64px; }
.glance__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 5; }
.glance__arc { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.glance--mixed .glance__arc { stroke: var(--mars-soft); }
.glance--easy .glance__arc { stroke: var(--avoid); }
.glance__score { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--text); }
.glance__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.glance__label { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.05; color: var(--gold); }
.glance--mixed .glance__label { color: var(--mars-soft); }
.glance--easy .glance__label { color: var(--avoid); }
.glance__reason { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }

.lucky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lucky__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.lucky__cell--colours { grid-column: 1 / -1; }
.lucky__cell--dir { flex-direction: row; align-items: center; gap: 10px; }
.lucky__k { font-size: 9px; letter-spacing: 0.1em; color: var(--dim); }
.lucky__dirtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lucky__dirtxt strong { font-size: 15px; font-weight: 500; }
.lucky__avoid { font-size: 11px; color: #f1a195; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.swatch__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.4);
}
.num-row { display: flex; gap: 6px; }
.num-chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid rgba(245, 199, 107, 0.28);
}
.cmp { flex: none; }
.cmp__ring { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.cmp__inner { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 3; }
.cmp__l { font-family: var(--font-mono); font-size: 8px; fill: var(--dim); }
.cmp__n { fill: var(--gold); }
.cmp__s { fill: rgba(255, 255, 255, 0.22); }
.cmp__hub { fill: var(--text); }
.cmp__avoid { fill: none; stroke: var(--avoid); stroke-width: 3; stroke-linecap: round; }
.glance__guide { margin: 0; }

/* ---------- 24h timeline ---------- */
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl__graph { position: relative; padding-bottom: 22px; }
.tl__sky { position: relative; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.tl__day, .tl__night { position: absolute; top: 0; bottom: 0; }
.tl__day { left: 0; background: linear-gradient(90deg, rgba(245, 154, 74, 0.28), rgba(245, 199, 107, 0.3) 50%, rgba(205, 91, 19, 0.28)); }
.tl__night { background: linear-gradient(90deg, rgba(40, 46, 90, 0.55), rgba(16, 18, 40, 0.75) 50%, rgba(40, 46, 90, 0.5)); }
.tl__skylabel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 233, 0.7);
}
.tl__skylabel--day { left: 8px; }
.tl__rowlabel { display: block; font-size: 8.5px; letter-spacing: 0.12em; color: var(--dim); margin: 0 0 3px; }
.tl__row { position: relative; height: 24px; border-radius: 5px; background: rgba(255, 255, 255, 0.03); margin-bottom: 8px; }
.tl__seg, .tl__mark {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(7, 6, 8, 0.85);
}
.tl__seg--good { background: rgba(245, 199, 107, 0.42); }
.tl__seg--neutral, .tl__mark--neutral { background: var(--neutral-bg); }
.tl__seg--avoid { background: var(--avoid-bg); }
.tl__mark { border-radius: 3px; border-right: none; }
.tl__mark--avoid { background: rgba(214, 92, 80, 0.6); }
.tl__mark--good { background: rgba(245, 199, 107, 0.8); }
.tl__seglabel, .tl__marklabel {
  font-size: 8.5px;
  font-family: var(--font-mono);
  color: rgba(245, 239, 233, 0.85);
  white-space: nowrap;
  pointer-events: none;
}
.tl__mark--good .tl__marklabel { color: #1d1406; }
.tl__now {
  position: absolute;
  top: -4px;
  bottom: 18px;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  border-radius: 1px;
}
.tl__nowlabel {
  position: absolute;
  top: -2px;
  left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 9px;
  white-space: nowrap;
}
.tl__nowlabel.is-left { left: auto; right: 6px; }
.tl__axis { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.tl__tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 9px; color: var(--muted); white-space: nowrap; }
.tl__tick.is-start { transform: none; }
.tl__tick.is-end { transform: translateX(-100%); }
.tl__legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.tl__legenditem { display: inline-flex; align-items: center; gap: 6px; }
.tl__swatch { width: 12px; height: 12px; border-radius: 3px; }
.tl__swatch--good { background: rgba(245, 199, 107, 0.8); }
.tl__swatch--neutral { background: rgba(245, 239, 233, 0.2); }
.tl__swatch--avoid { background: rgba(214, 92, 80, 0.6); }

.win-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.win-list { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.win-list--good { border-color: rgba(245, 199, 107, 0.22); }
.win-list--avoid { border-color: rgba(224, 122, 108, 0.22); }
.win-list__title { margin: 0 0 8px; font-size: 9.5px; font-weight: 400; letter-spacing: 0.12em; color: var(--gold); }
.win-list--avoid .win-list__title { color: #f1a195; }
.win-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.win { display: flex; flex-direction: column; gap: 2px; }
.win__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.win__name { font-size: 12.5px; color: var(--text); }
.win__time { font-size: 11px; color: var(--muted); }
.win__note { font-size: 10.5px; line-height: 1.4; color: var(--dim); }
.win__now { font-size: 9px; padding: 0 5px; border-radius: 3px; background: #fff; color: #000; }
.win.is-past { opacity: 0.45; }
.win-list__empty { font-size: 12px; color: var(--muted); }

.chog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chog {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 6px;
  padding: 6px 8px;
  border-radius: 7px;
  border-left: 3px solid rgba(245, 239, 233, 0.25);
  background: rgba(255, 255, 255, 0.03);
}
.chog--good { border-left-color: var(--gold); }
.chog--avoid { border-left-color: var(--avoid); }
.chog__name { font-size: 12px; }
.chog__period { font-size: 8.5px; color: var(--dim); align-self: center; }
.chog__time { grid-column: 1 / -1; font-size: 10.5px; color: var(--muted); }

/* ---------- Panchangam grid ---------- */
.pc-sun { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-sun__cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 2px solid rgba(245, 154, 74, 0.6);
}
.pc-sun__cell--moonrise, .pc-sun__cell--moonset { border-top-color: rgba(143, 193, 255, 0.55); }
.pc-sun__k { font-size: 8.5px; letter-spacing: 0.1em; color: var(--dim); }
.pc-sun__v { font-size: 12.5px; font-weight: 500; }
.pc-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.pc-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; background: rgb(12, 11, 13); }
.pc-row dt { font-size: 8.5px; letter-spacing: 0.1em; color: var(--dim); }
.pc-row dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-row dd strong { font-size: 13px; font-weight: 500; }
.pc-row dd span { font-size: 11px; color: var(--muted); line-height: 1.35; }

/* ---------- Calendar ---------- */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--muted); }
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; }
.cal-dot--good { background: var(--gold); }
.cal-dot--mixed { background: rgba(242, 160, 106, 0.45); }
.cal-dot--easy { background: var(--avoid); }
.cal-grid { display: flex; flex-direction: column; gap: 4px; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-hd { text-align: center; font-size: 9.5px; letter-spacing: 0.08em; color: var(--dim); padding-bottom: 2px; }
.cal-cell { min-width: 0; }
.cal-day {
  appearance: none;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.cal-day:hover { border-color: rgba(255, 255, 255, 0.35); }
.cal-day--good { background: rgba(245, 199, 107, 0.28); color: #fff3d6; }
.cal-day--mixed { background: rgba(242, 160, 106, 0.12); }
.cal-day--easy { background: rgba(214, 92, 80, 0.26); color: #ffd9d3; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.cal-day.is-selected { border-color: #fff; box-shadow: 0 0 0 2px rgba(245, 199, 107, 0.35); }
.cal-day.is-locked {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 5px, rgba(255, 255, 255, 0.015) 5px 10px);
  border-color: rgba(255, 255, 255, 0.05);
}
.cal-day.is-locked .cal-day__n { color: rgba(245, 239, 233, 0.3); filter: blur(1.5px); }
.cal-day__mon { position: absolute; top: 3px; left: 5px; font-size: 7.5px; letter-spacing: 0.06em; color: var(--muted); }
.cal-day.is-locked .cal-day__mon { color: rgba(245, 239, 233, 0.3); }
.cal-mk {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
}
.cal-legend .cal-mk { position: static; margin: 0; }
.cal-mk--ekadashi { background: #fff; transform: rotate(45deg); border-radius: 1px; }
.cal-mk--purnima { background: #fff8e6; box-shadow: 0 0 6px rgba(255, 248, 230, 0.9); }
.cal-mk--amavasya { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.cal-mk--sankashti, .cal-mk--pradosh { background: var(--mars-soft); }
.cal-upsell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 199, 107, 0.06);
  border: 1px dashed rgba(245, 199, 107, 0.3);
  font-size: 12px;
  color: var(--sand);
}
.cal-upsell > span { flex: 1 1 160px; }
.cal-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cal-detail__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.cal-detail__reason { margin: 0; font-size: 13px; line-height: 1.45; }
.cal-detail__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.cal-detail__facts dt, .rem__dl dt { font-size: 8.5px; letter-spacing: 0.1em; color: var(--dim); }
.cal-detail__facts dd, .rem__dl dd { margin: 2px 0 0; font-size: 12px; color: var(--text); }

/* ---------- Locks ---------- */
.lockable { position: relative; }
.lockable.is-locked { min-height: 140px; border-radius: 12px; overflow: hidden; }
.lockable__content { filter: blur(6px) saturate(0.6); opacity: 0.5; pointer-events: none; user-select: none; }
.lockable__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(7, 6, 8, 0.78), rgba(7, 6, 8, 0.35));
}
.lockable__label { margin: 0; max-width: 280px; font-size: 13px; line-height: 1.4; color: var(--text); }
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 199, 107, 0.4);
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}
.btn-unlock {
  appearance: none;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1d1406;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn-unlock:hover { filter: brightness(1.08); }
.btn-unlock--sm { min-height: 32px; padding: 5px 12px; font-size: 10px; }

/* ---------- Muhurat finder ---------- */
.mf { display: flex; flex-direction: column; gap: 10px; }
.mf__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: mf; }
.mf__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 8px 36px;
  border-radius: 9px;
  background: rgba(245, 199, 107, 0.06);
  font-size: 13px;
}
.mf__item::before {
  counter-increment: mf;
  content: counter(mf);
  position: absolute;
  left: 10px;
  top: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1d1406;
  font: 500 10px var(--font-mono);
}
.mf__why { font-size: 12px; color: var(--muted); }
.mf__meta { font-size: 10px; color: var(--dim); }

/* ---------- Doshas ---------- */
.dosha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.dosha { border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.dosha[open] { grid-column: 1 / -1; }
.dosha__sum {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.dosha__sum::-webkit-details-marker { display: none; }
.dosha__dot { width: 10px; height: 10px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.12); }
.dosha__dot--soft { background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 199, 107, 0.12); }
.dosha__dot--note { background: var(--mars-soft); box-shadow: 0 0 0 4px rgba(242, 160, 106, 0.14); }
.dosha__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dosha__name { font-size: 14px; font-weight: 500; }
.dosha__status { font-size: 12px; color: var(--muted); }
.dosha__chev { grid-column: 2; font-size: 9.5px; letter-spacing: 0.08em; color: var(--dim); }
.dosha__chev::after { content: " +"; }
.dosha[open] .dosha__chev::after { content: " –"; }
.dosha__body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.dosha__line { margin: 0; font-size: 12.5px; line-height: 1.5; }
.dosha__note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(110, 231, 168, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: #c9f2dc;
}
.dosha__ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.ss-phases__k { font-size: 9.5px; letter-spacing: 0.1em; color: var(--dim); }
.ss-phases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-phase {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}
.ss-phase span { font-size: 10.5px; color: var(--muted); }
.ss-phase.is-now { border-left-color: var(--gold); }
.ss-phase.is-past { opacity: 0.55; }

/* ---------- Transits ---------- */
.tr-list { display: flex; flex-direction: column; gap: 4px; }
.tr { border-radius: 9px; background: rgba(255, 255, 255, 0.025); border: 1px solid transparent; }
.tr--slow { border-color: rgba(245, 199, 107, 0.18); background: rgba(245, 199, 107, 0.04); }
.tr__sum {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}
.tr__sum::-webkit-details-marker { display: none; }
.tr__glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--sand);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", sans-serif;
}
.tr--slow .tr__glyph { color: var(--gold); background: rgba(245, 199, 107, 0.12); }
.tr__name { display: flex; flex-direction: column; min-width: 0; }
.tr__name strong { font-size: 13px; font-weight: 500; }
.tr__sign { font-size: 11px; color: var(--muted); }
.tr__house { font-size: 10px; color: var(--muted); white-space: nowrap; }
.tr__body { padding: 0 10px 10px 46px; display: flex; flex-direction: column; gap: 4px; }
.tr__body p { margin: 0; font-size: 12px; line-height: 1.5; }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(245, 199, 107, 0.05);
  border: 1px solid rgba(245, 199, 107, 0.14);
}
.hl__top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hl__note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Dasha ---------- */
.dbar { display: flex; flex-direction: column; gap: 5px; }
.dbar__top { display: flex; align-items: baseline; gap: 8px; }
.dbar__lvl { width: 92px; flex: none; font-size: 9.5px; letter-spacing: 0.1em; color: var(--dim); }
.dbar__lord { flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.dbar__left { font-size: 10px; color: var(--muted); }
.dbar__track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dbar__fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--mars), var(--gold)); }
.dbar__dates { font-size: 10px; color: var(--dim); }
.dlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dlist li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.dlist li .mono { font-size: 10.5px; color: var(--muted); }
.dlist li.is-now { background: rgba(245, 199, 107, 0.1); color: var(--gold); }

/* ---------- Numerology ---------- */
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.num-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.num-tile__v {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-bg);
}
.num-tile__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.num-tile__k { font-size: 8.5px; letter-spacing: 0.1em; color: var(--dim); }
.num-tile__p { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* ---------- Remedies ---------- */
.rem-list { display: flex; flex-direction: column; gap: 10px; }
.rem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(110, 231, 168, 0.035);
  border: 1px solid rgba(110, 231, 168, 0.14);
}
.rem__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rem__practical { margin: 0; font-size: 12.5px; line-height: 1.5; }
.rem__dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.rem__intro { color: var(--muted); }

/* ---------- Toast ---------- */
.kl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.96);
  border: 1px solid rgba(245, 199, 107, 0.4);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: calc(100vw - 32px);
}
.kl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Plans modal ---------- */
.kl-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.kl-modal[hidden] { display: none; }
.kl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.kl-modal__box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(10, 9, 11, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.kl-modal.is-open .kl-modal__backdrop { opacity: 1; }
.kl-modal.is-open .kl-modal__box { transform: none; opacity: 1; }
.kl-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}
.kl-modal__close:hover { color: var(--text); }
.kl-modal__view { display: flex; flex-direction: column; gap: 18px; }
.kl-modal__view[hidden] { display: none; }
.pr-head { display: flex; flex-direction: column; gap: 6px; padding-right: 44px; }
.pr-title { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.1; }
.pr-title:focus { outline: none; }
.pr-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pr-reason {
  margin: 4px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(245, 199, 107, 0.08);
  border-left: 2px solid var(--gold);
  font-size: 13px;
  color: var(--sand);
}
.pr-toggle {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--control-border);
}
.pr-toggle button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pr-toggle button.is-active { background: var(--mars); color: #fff; }
.pr-save {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.pr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; }
.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}
.pr-card--plus {
  border-color: rgba(245, 199, 107, 0.55);
  background: linear-gradient(160deg, rgba(245, 199, 107, 0.1), rgba(205, 91, 19, 0.06) 60%, rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(245, 199, 107, 0.15), 0 12px 40px rgba(205, 91, 19, 0.18);
}
.pr-ribbon {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1d1406;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.pr-card__name { margin: 0; font-family: "Space Grotesk", var(--font-sans); font-size: 18px; font-weight: 500; }
.pr-price { display: flex; align-items: baseline; gap: 6px; }
.pr-price__amt { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; }
.pr-card--plus .pr-price__amt { color: var(--gold); }
.pr-price__per { font-size: 13px; color: var(--muted); }
.pr-price__note { margin: -4px 0 0; font-size: 11px; color: var(--dim); }
.pr-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pr-feats li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.4; }
.pr-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.pr-cta { width: 100%; min-height: 44px; flex: none; }
.pr-cta:disabled { opacity: 0.6; cursor: default; }
.pr-section { display: flex; flex-direction: column; gap: 8px; }
.pr-h3 { margin: 0; font-family: "Space Grotesk", var(--font-sans); font-size: 16px; font-weight: 500; }
.pr-sub { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.pr-reports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-report {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.pr-report.is-highlight { border-color: var(--gold); background: rgba(245, 199, 107, 0.08); }
.pr-report__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-report__txt strong { font-size: 13.5px; font-weight: 500; }
.pr-report__txt span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.pr-report__buy { flex: none; min-height: 36px; color: var(--gold); border-color: rgba(245, 199, 107, 0.4); }
.pr-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); }
.pr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pr-table th, .pr-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pr-table tbody tr:last-child th, .pr-table tbody tr:last-child td { border-bottom: none; }
.pr-table thead th { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.1em; color: var(--dim); }
.pr-table tbody th { font-weight: 400; }
.pr-table td, .pr-table thead th:nth-child(n+2) { width: 76px; text-align: center; }
.pr-table thead th:nth-child(3), .pr-table td:nth-child(3) { background: rgba(245, 199, 107, 0.05); }
.pr-yes { color: var(--gold); font-weight: 600; }
.pr-no { color: var(--dim); }
.pr-val { font-size: 11px; }
.pr-promise { padding: 14px 16px; border-radius: 12px; background: rgba(110, 231, 168, 0.04); border: 1px solid rgba(110, 231, 168, 0.16); }
.pr-promise__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pr-promise__list strong { color: var(--text); font-weight: 500; }
.pr-foot { margin: 0; font-size: 10.5px; color: var(--dim); text-align: center; }
.pr-back {
  appearance: none;
  align-self: flex-start;
  border: none;
  background: none;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.pr-back:hover { color: var(--text); }
.pr-demo-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(245, 199, 107, 0.08) 0 10px, rgba(245, 199, 107, 0.04) 10px 20px);
  border: 1px solid rgba(245, 199, 107, 0.35);
}
.pr-demo-banner strong { color: var(--gold); font-size: 14px; font-weight: 500; }
.pr-demo-banner span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pr-order { margin: 0; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.pr-order:empty { display: none; }
.pr-order__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pr-order__row:last-child { border-bottom: none; }
.pr-order dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.pr-order dd { margin: 0; font-size: 13.5px; text-align: right; word-break: break-all; }
.pr-order dd.mono { font-size: 11px; color: var(--muted); }
.pr-actions { display: flex; gap: 8px; }
.pr-actions .btn-mars-primary { min-height: 46px; }
.pr-actions .btn-mars-primary:disabled { opacity: 0.6; cursor: progress; }
.pr-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; text-align: center; color: #86efac; }
.pr-done strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text); }
.pr-done span { max-width: 440px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pr-done .btn-mars-primary { flex: none; min-width: 160px; min-height: 44px; }

html.kl-modal-open .explorer-panel { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .day-nav { top: 0; }
}

@media (max-width: 760px) {
  .home-top-right .plans-pill { min-height: 40px; }
}

@media (max-width: 600px) {
  .kl-modal { padding: 0; align-items: flex-end; }
  .kl-modal__box { max-height: 94vh; border-radius: 18px 18px 0 0; padding: 22px 16px 28px; }
  .pr-title { font-size: 24px; }
  .pr-cards, .win-cols, .hl-grid, .dosha-grid { grid-template-columns: 1fr; }
  .pc-sun { grid-template-columns: repeat(2, 1fr); }
  .insight-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .insight-grid--3 .insight-card__val { font-size: 12px; }
  .mode-btn { min-height: 40px; padding: 6px 7px; font-size: 10px; }
  .plans-pill--bar { min-height: 36px; }
  .tr__sum { grid-template-columns: 28px 1fr auto; }
  .tr__sum .day-chip { grid-column: 2 / -1; justify-self: start; }
  .pr-report { flex-wrap: wrap; }
  .pr-report__buy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kl-modal__box,
  .kl-modal__backdrop,
  .kl-toast,
  .cal-day,
  .day-teaser,
  .plans-pill,
  .pr-report {
    transition: none;
  }
}

/* Marks row: avoid windows on the upper lane, good ones on the lower lane, so overlaps stay readable. */
.tl__row--marks { height: 32px; }
.tl__row--marks .tl__mark { top: 1px; bottom: 50%; margin-bottom: 1px; }
.tl__row--marks .tl__mark--good,
.tl__row--marks .tl__mark--neutral { top: 50%; bottom: 1px; margin: 1px 0 0; }
.win.is-past { opacity: 0.6; }
.cal-legend--mk { gap: 6px 14px; font-size: 10.5px; }
.cal-legend__note { flex-basis: 100%; font-size: 10.5px; color: var(--dim); }

@media (max-width: 600px) {
  .hud-brand-bar { flex-wrap: wrap; row-gap: 8px; }
  .hud-brand-bar .brand-back-btn { order: 0; }
  .hud-brand-bar .plans-pill--bar { order: 1; margin-left: auto; }
  .hud-brand-bar .mode-switcher { order: 2; flex-basis: 100%; justify-content: flex-start; gap: 2px; scrollbar-width: none; }
  .hud-brand-bar .mode-switcher::-webkit-scrollbar { display: none; }
  .mode-btn { flex: none; white-space: nowrap; }
  .tl__seglabel { display: none; }
}
.lucky { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lucky__cell { min-width: 0; }
@media (max-width: 600px) {
  .lucky__cell--dir .cmp { width: 58px; height: 58px; }
  .lucky__cell--dir { padding: 10px; gap: 8px; }
}
@media (max-width: 600px) {
  .pr-card--plus { order: -1; }
}

/* ---------------- Payments: account row, legal links, locked stand-ins ---------------- */
.pr-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  font-size: 13px;
}
.pr-account > span:first-child { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.pr-account__plus { font-size: 11px; color: var(--saffron, #f59a4a); letter-spacing: 0.06em; }
.pr-account.is-hidden { display: none; }
.pr-legal { margin: 4px 0 0; font-size: 10.5px; text-align: center; }
.pr-legal a { color: var(--dim, rgba(245, 239, 233, 0.6)); }
.lp-foot__base.lp-foot__legal { margin-top: 10px; padding-top: 0; border-top: 0; gap: 8px 20px; }
.lp-foot__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.locked-ph { padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 10px; min-height: 72px; }
