:root {
  --bg-deep: #080912;
  --bg-card: rgba(17, 18, 32, 0.82);
  --bg-input: rgba(255, 255, 255, 0.055);
  --border: rgba(234, 211, 150, 0.14);
  --border-strong: rgba(234, 211, 150, 0.27);
  --gold: #ead396;
  --gold-dim: #b9984f;
  --gold-glow: rgba(220, 183, 92, 0.22);
  --text: #f3f0e8;
  --text-muted: #9b99aa;
  --accent-purple: #a991e2;
  --accent-blue: #82acd6;
  --error: #e85d6c;
  --success: #6bc9a0;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.28);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  width: 100%;
  background: var(--bg-deep);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

html[lang="hi"] {
  --font-body: "Noto Sans Devanagari", "Outfit", system-ui, sans-serif;
  --font-display: "Noto Sans Devanagari", "Outfit", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 2000;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.stars {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(107, 159, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(155, 125, 219, 0.08) 0%, transparent 50%),
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.25), transparent);
  background-size: 100% 100%, 100% 100%, 200px 200px, 300px 300px, 250px 250px, 350px 350px, 280px 280px, 320px 320px, 270px 270px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding: 2rem 1.25rem calc(4rem + env(safe-area-inset-bottom));
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.header-top .logo {
  justify-content: flex-start;
  margin-bottom: 0;
  min-width: 0;
}

.header-top .logo h1 {
  font-size: clamp(1.35rem, 4.5vw, 2.25rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top .logo-icon {
  font-size: clamp(1.5rem, 4vw, 2rem);
  flex-shrink: 0;
}

.auth-bar {
  flex-shrink: 0;
}

.site-language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.site-language-control > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  list-style: none;
}

.site-language-control > summary::-webkit-details-marker {
  display: none;
}

.site-language-control > summary::after {
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0 0 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.site-language-control[open] > summary::after {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.site-language-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 100%;
  gap: 0.2rem;
  padding: 0.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(17, 18, 32, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.site-language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-language-menu button:hover,
.site-language-menu button:focus-visible {
  background: rgba(234, 211, 150, 0.1);
  color: var(--text);
}

.site-language-menu button[aria-pressed="true"] {
  color: var(--gold);
}

.site-language-menu button[aria-pressed="true"]::after {
  color: var(--gold);
  content: "✓";
}

.auth-guest,
.auth-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.auth-bar .btn-sm {
  flex: none;
  width: auto;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.2;
  min-height: 2rem;
}

.auth-user .btn-saved.active {
  background: rgba(232, 200, 114, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(232, 200, 114, 0.35);
  border-radius: 999px;
  background: rgba(232, 200, 114, 0.1);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: help;
}

.credit-badge:hover,
.credit-badge:focus-visible,
.credit-help.open .credit-badge {
  border-color: rgba(232, 200, 114, 0.7);
  background: rgba(232, 200, 114, 0.16);
}

.credit-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.credit-info-icon {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1;
}

.credit-help {
  position: relative;
  flex: none;
}

.credit-tooltip {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(320px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(232, 200, 114, 0.3);
  border-radius: 12px;
  background: rgba(18, 19, 34, 0.98);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.48);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  pointer-events: none;
}

.credit-tooltip::before {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: 100%;
  border: 7px solid transparent;
  border-bottom-color: rgba(232, 200, 114, 0.3);
}

.credit-tooltip strong,
.credit-tooltip span {
  display: block;
}

.credit-tooltip strong {
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-size: 0.84rem;
}

.credit-badge:focus-visible + .credit-tooltip,
.credit-help.open .credit-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .credit-help:hover .credit-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .credit-tooltip {
    position: fixed;
    top: 76px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .credit-tooltip::before {
    display: none;
  }
}

.muhurtha-report {
  display: grid;
  gap: 1rem;
}

.muhurtha-report-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.32fr);
  gap: 0.85rem;
}

.muhurtha-assessment,
.muhurtha-score-card,
.muhurtha-event-card,
.muhurtha-count-card,
.muhurtha-factor-panel {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.muhurtha-assessment {
  border-left: 4px solid var(--border-strong);
}

.muhurtha-assessment.is-auspicious {
  border-left-color: #79cba3;
  background: linear-gradient(120deg, rgba(76, 159, 116, 0.12), rgba(255, 255, 255, 0.025));
}

.muhurtha-assessment.is-mixed,
.muhurtha-assessment.is-mixed-favorable {
  border-left-color: var(--gold);
  background: linear-gradient(120deg, rgba(232, 200, 114, 0.1), rgba(255, 255, 255, 0.025));
}

.muhurtha-assessment.is-inauspicious {
  border-left-color: #e58d88;
  background: linear-gradient(120deg, rgba(190, 82, 82, 0.12), rgba(255, 255, 255, 0.025));
}

.muhurtha-eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.muhurtha-assessment h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.3rem);
}

.muhurtha-assessment p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.muhurtha-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(232, 200, 114, 0.2);
  background: rgba(232, 200, 114, 0.045);
}

.muhurtha-score-number {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
}

.muhurtha-score-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.muhurtha-event-card h3,
.muhurtha-factor-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.muhurtha-event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.muhurtha-factor-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.muhurtha-count-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.muhurtha-count-card strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.muhurtha-count-card span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.muhurtha-count-card.is-positive strong {
  color: #9ed9bb;
}

.muhurtha-count-card.is-negative strong {
  color: #e9a19b;
}

.muhurtha-factor-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.muhurtha-factor-panel h3 {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.muhurtha-factor-panel ul {
  display: grid;
  gap: 0.65rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.muhurtha-factor-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.muhurtha-factor-panel.is-positive li::before {
  content: "✓";
  color: #9ed9bb;
  font-weight: 700;
}

.muhurtha-factor-panel.is-negative li::before {
  content: "!";
  color: #e9a19b;
  font-weight: 700;
}

.muhurtha-factor-panel li.muhurtha-factor-empty::before {
  content: "";
}

.muhurtha-factor-empty {
  color: var(--text-muted) !important;
}

.muhurtha-dosha-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(229, 141, 136, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: #e9a19b;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
}

.muhurtha-disclaimer {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .muhurtha-report-top {
    grid-template-columns: 1fr;
  }

  .muhurtha-score-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
  }

  .muhurtha-score-card .muhurtha-eyebrow,
  .muhurtha-score-note {
    grid-column: 1;
  }

  .muhurtha-score-number {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .muhurtha-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .muhurtha-factor-columns,
  .muhurtha-factor-summary {
    grid-template-columns: 1fr;
  }

  .muhurtha-assessment,
  .muhurtha-score-card,
  .muhurtha-event-card,
  .muhurtha-factor-panel {
    padding: 1rem;
  }
}

.compatibility-report {
  display: grid;
  gap: 1.25rem;
}

.compatibility-report-header p,
.compatibility-section-note,
.compatibility-score-card > p,
.compatibility-dosha-description,
.compatibility-disclaimer {
  color: var(--text-muted);
  line-height: 1.55;
}

.compatibility-report-header p {
  margin: 0.25rem 0 0;
}

.compatibility-report h2,
.compatibility-report h3,
.compatibility-report h4 {
  margin: 0;
}

.compatibility-score-card,
.compatibility-person-card,
.compatibility-kuta-section,
.compatibility-additional-card,
.compatibility-dosha-section,
.compatibility-dosha-person,
.compatibility-exceptions {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.compatibility-score-card {
  border-color: rgba(232, 200, 114, 0.3);
  background: linear-gradient(125deg, rgba(232, 200, 114, 0.09), rgba(17, 18, 32, 0.72));
}

.compatibility-score-overview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.compatibility-eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compatibility-score-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.compatibility-score-progress,
.compatibility-kuta-row progress {
  display: block;
  width: 100%;
  height: 0.7rem;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--gold);
}

.compatibility-score-progress::-webkit-progress-bar,
.compatibility-kuta-row progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.compatibility-score-progress::-webkit-progress-value,
.compatibility-kuta-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}

.compatibility-screening,
.compatibility-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.8rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.35;
}

.compatibility-status {
  margin-top: 0;
}

.compatibility-screening.is-approved,
.compatibility-status.is-good {
  color: #9ed9bb;
  border-color: rgba(112, 190, 157, 0.35);
}

.compatibility-screening.is-not-approved,
.compatibility-status.is-bad {
  color: #e9a19b;
  border-color: rgba(229, 141, 136, 0.38);
}

.compatibility-status.is-acceptable,
.compatibility-status.is-neutral {
  color: var(--gold);
  border-color: rgba(232, 200, 114, 0.35);
}

.compatibility-score-card > p {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.compatibility-people-section,
.compatibility-additional-section {
  display: grid;
  gap: 0.8rem;
}

.compatibility-people-section > h3,
.compatibility-additional-section > h3,
.compatibility-kuta-section > h3,
.compatibility-exceptions > h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.compatibility-people-grid,
.compatibility-additional-grid,
.compatibility-dosha-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.compatibility-person-heading,
.compatibility-additional-heading,
.compatibility-dosha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.compatibility-person-heading h3,
.compatibility-additional-heading h4 {
  color: var(--gold);
  font-size: 1rem;
}

.compatibility-person-heading span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.compatibility-person-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.compatibility-metric {
  min-width: 0;
}

.compatibility-metric span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.compatibility-metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.compatibility-section-note {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.82rem;
}

.compatibility-kuta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}

.compatibility-kuta-row {
  min-width: 0;
}

.compatibility-kuta-row-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.84rem;
}

.compatibility-kuta-row-heading span {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.compatibility-kuta-row progress {
  height: 0.42rem;
  margin-top: 0.35rem;
}

.compatibility-additional-card p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.compatibility-additional-card .compatibility-factor-info,
.compatibility-kuja-info {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.compatibility-additional-card .compatibility-library-interpretation {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.compatibility-additional-card .compatibility-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.compatibility-additional-card .compatibility-metric span,
.compatibility-additional-card .compatibility-metric strong {
  margin: 0;
  font-size: 0.78rem;
}

.compatibility-dosha-section {
  background: linear-gradient(135deg, rgba(169, 145, 226, 0.07), rgba(255, 255, 255, 0.025));
}

.compatibility-dosha-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.compatibility-dosha-description {
  margin: 0.55rem 0 0.9rem;
}

.compatibility-dosha-person {
  padding: 1rem;
  background: rgba(8, 9, 18, 0.32);
}

.compatibility-dosha-score {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.compatibility-dosha-breakdown {
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.compatibility-dosha-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.compatibility-dosha-breakdown li span {
  color: var(--text-muted);
  text-align: right;
}

.compatibility-exceptions ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.compatibility-disclaimer {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 680px) {
  .compatibility-people-grid,
  .compatibility-additional-grid,
  .compatibility-dosha-grid {
    grid-template-columns: 1fr;
  }

  .compatibility-kuta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .compatibility-score-overview,
  .compatibility-person-heading,
  .compatibility-additional-heading,
  .compatibility-dosha-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .compatibility-person-metrics {
    gap: 0.7rem 0.5rem;
  }
}

.transit-report {
  display: grid;
  gap: 1.25rem;
}

.transit-sade-summary {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 600;
  line-height: 1.5;
}

.transit-sade-summary.is-active {
  border-color: rgba(232, 200, 114, 0.4);
  border-left-color: var(--gold);
  background: linear-gradient(110deg, rgba(232, 200, 114, 0.11), rgba(255, 255, 255, 0.025));
}

.transit-sade-summary.is-inactive {
  border-color: rgba(112, 190, 157, 0.35);
  border-left-color: #79cba3;
  background: linear-gradient(110deg, rgba(76, 159, 116, 0.12), rgba(255, 255, 255, 0.025));
}

.transit-sade-summary.is-unavailable {
  color: var(--text-muted);
}

.transit-report-header,
.transit-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.transit-report-header h2,
.transit-section-heading h3,
.transit-axis-card h3,
.transit-sade-heading h3 {
  margin: 0;
}

.transit-report-header p,
.transit-section-heading p,
.transit-sade-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.transit-sade-card,
.transit-axis-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(232, 200, 114, 0.08), rgba(17, 18, 32, 0.72));
}

.transit-sade-card.is-active {
  border-color: rgba(232, 200, 114, 0.42);
}

.transit-sade-card.is-inactive {
  border-color: rgba(112, 190, 157, 0.3);
}

.transit-sade-card.is-unavailable {
  border-color: var(--border);
}

.transit-sade-heading,
.transit-planet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.transit-sade-heading {
  margin-bottom: 0.45rem;
}

.transit-status,
.transit-retrograde {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 200, 114, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.is-inactive .transit-status {
  color: #9ed9bb;
  border-color: rgba(112, 190, 157, 0.35);
}

.is-unavailable .transit-status {
  color: var(--text-muted);
  border-color: var(--border);
}

.transit-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.transit-metric {
  min-width: 0;
}

.transit-metric-label {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.transit-metric-value {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.transit-positions {
  display: grid;
  gap: 0.85rem;
}

.transit-planet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.transit-planet-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.transit-planet-header {
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.transit-planet-header h4 {
  margin: 0 auto 0 0;
  color: var(--gold);
  font-size: 1rem;
}

.transit-planet-sign {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.transit-retrograde {
  padding: 0.18rem 0.5rem;
  color: #b9d5f3;
  border-color: rgba(120, 164, 214, 0.35);
  font-size: 0.68rem;
}

.transit-planet-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.5rem;
  padding-top: 0.75rem;
}

.transit-empty-state {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .transit-planet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .transit-report-header,
  .transit-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .transit-planet-grid,
  .transit-summary-grid {
    grid-template-columns: 1fr;
  }
}

.guidance-notice {
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--gold-dim);
  background: rgba(232, 200, 114, 0.06);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-consent {
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-announcement {
  max-width: 900px;
  margin: -1rem auto 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(232, 200, 114, 0.3);
  border-radius: 10px;
  background: rgba(232, 200, 114, 0.08);
  color: var(--gold);
  text-align: center;
  font-size: 0.86rem;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 4, 10, 0.8);
  backdrop-filter: blur(12px);
}

.admin-modal-card {
  position: relative;
  width: min(960px, 100%);
  max-height: min(850px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(27, 28, 47, 0.99), rgba(13, 14, 26, 0.99));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.admin-page-view {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-access-check {
  max-width: 1180px;
  margin: 2rem auto;
  color: var(--text-muted);
  text-align: center;
}

.admin-page-header,
.admin-page-actions,
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-page-header {
  margin: 0.5rem 0 1.5rem;
}

.admin-page-header h1 {
  margin: 0.25rem 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-insights {
  margin: 1.25rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.admin-insights h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.admin-insights > .hint,
.admin-section-heading .hint {
  margin: 0 0 0.85rem;
}

.admin-usage-summary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-usage-summary strong {
  color: var(--text);
}

.admin-trend {
  height: 128px;
  display: grid;
  grid-template-columns: repeat(30, minmax(2px, 1fr));
  align-items: end;
  gap: 3px;
  padding: 0.5rem 0 0;
  border-bottom: 1px solid var(--border);
}

.admin-trend-bar {
  height: var(--bar-height);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(201, 168, 95, 0.3));
}

.admin-trend--signups .admin-trend-bar {
  background: linear-gradient(180deg, #9d8ad8, rgba(157, 138, 216, 0.3));
}

.admin-feature-usage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(90px, 0.8fr));
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-feature-row span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-page-view .admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-heading h2 {
  margin: 0.2rem 0 1.25rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-tab {
  flex: 1;
  min-width: max-content;
  padding: 0.65rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.admin-tab.active {
  background: rgba(232, 200, 114, 0.12);
  color: var(--gold);
}

.admin-notice {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(118, 187, 148, 0.45);
  border-radius: 10px;
  background: rgba(70, 132, 98, 0.14);
  color: #b6e3c7;
}

.admin-email-preview-card iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f3f1ec;
}

.admin-email-subject {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.admin-email-subject strong {
  color: var(--text);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-stat {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-size: 1.65rem;
}

.admin-stat span,
.admin-user-row span,
.admin-audit-item span,
.admin-audit-item small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-panel h3 {
  margin: 1rem 0 0.65rem;
}

.admin-audit-item,
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-audit-item strong {
  text-transform: capitalize;
}

.admin-audit-item span {
  flex: 1;
}

.admin-user-row > div:first-child,
.admin-user-credit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-user-credit {
  align-items: flex-end;
}

.admin-search {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.admin-search input {
  flex: 1;
}

.admin-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.admin-toggle span,
.admin-toggle small {
  display: block;
}

.admin-toggle small {
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.admin-announcement-field {
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  .admin-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .admin-tab {
    flex: 0 0 auto;
    padding-inline: 0.8rem;
  }

  .admin-page-header,
  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page-actions {
    width: 100%;
  }

  .admin-page-actions .btn {
    flex: 1;
  }

  .admin-page-view .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-feature-usage {
    grid-template-columns: 1fr;
  }

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

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-user-row,
  .admin-audit-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-user-credit {
    width: 100%;
    align-items: flex-start;
  }
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.panel-header-row h2 {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.panel-header-row > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* North Indian Kundli chart */
.kundli-chart-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.kundli-chart {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.chart-bg {
  fill: rgba(255, 255, 255, 0.02);
  stroke: none;
}

.chart-line {
  stroke: var(--gold-dim);
  stroke-width: 1.5;
  fill: none;
}

.chart-sign-num {
  fill: var(--gold);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
}

.chart-planets {
  fill: var(--text);
  font-size: 10px;
  font-family: var(--font-body);
}

.chart-title {
  fill: var(--accent-purple);
  font-size: 11px;
  font-family: var(--font-display);
}

/* Auth & app modals */
.auth-modal,
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.auth-modal-card,
.app-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.auth-form > .field + .field {
  margin-top: 1rem;
}

#auth-submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  flex: 0 0 auto;
}

#auth-error {
  margin: 1rem 0 0;
}

.google-login-block {
  margin-top: 1rem;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 9px;
  background: #fff;
  color: #202124;
  font-weight: 600;
  cursor: pointer;
}

.google-login-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.google-login-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.google-login-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.google-login-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.google-login-block .hint {
  margin-top: 0.65rem;
}

.google-login-block .google-consent {
  font-size: 0.72rem;
  line-height: 1.45;
}

.google-consent a {
  color: var(--gold);
}

.auth-modal-card h2,
.app-modal-card h2 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.auth-modal-close,
.app-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.app-modal-message {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: -0.75rem 0 1.25rem;
  line-height: 1.5;
}

.app-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

#app-modal-error {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.88rem;
  text-decoration: underline;
  padding: 0;
}

.auth-switch-text {
  text-align: center;
  margin-top: 1rem;
}

@media (max-height: 650px) {
  .auth-modal,
  .app-modal {
    align-items: flex-start;
  }
}

/* Saved kundlis */
.saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}

.saved-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.saved-item-info strong {
  color: var(--gold);
}

.saved-item-actions {
  display: flex;
  gap: 0.5rem;
}

.saved-delete {
  color: var(--error) !important;
  border-color: rgba(232, 93, 108, 0.4) !important;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--gold);
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #fff5d6 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 0;
  overflow: hidden;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field.full-width {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.place-search-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
}

.place-search-actions input {
  min-width: 0;
}

.place-search-actions .btn {
  flex: 0 0 auto;
}

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  cursor: pointer;
  opacity: 1;
  width: 1.1em;
  height: 1.1em;
}

.field input[type="date"]::-webkit-datetime-edit,
.field input[type="time"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.field input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  color: var(--text);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1a1a2e inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.field input:focus-visible,
.field select:focus-visible,
.qa-form textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* App-rendered select menus keep the open menu consistent across browsers. */
.app-select {
  position: relative;
  width: 100%;
}

.app-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.app-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2.6rem 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(5, 6, 13, 0.38);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.app-select-trigger::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.8;
}

.app-select-trigger.is-placeholder {
  color: var(--text-muted);
}

.app-select-trigger:hover,
.app-select-trigger[aria-expanded="true"] {
  border-color: rgba(234, 211, 150, 0.6);
}

.app-select-trigger:focus-visible,
.app-select-option:focus-visible,
.app-select-search:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.app-select-panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 0.35rem);
  left: 0;
  width: 100%;
  padding: 0.45rem;
  border: 1px solid rgba(234, 211, 150, 0.35);
  border-radius: var(--radius-sm);
  background: #141522;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.app-select-panel[hidden] {
  display: none;
}

.app-select-search {
  width: 100%;
  min-height: 42px;
  margin-bottom: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
}

.app-select-options {
  display: flex;
  flex-direction: column;
  max-height: min(16rem, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-select-option {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-select-option:hover,
.app-select-option[aria-selected="true"] {
  background: rgba(234, 211, 150, 0.12);
  color: var(--gold);
}

.app-select-options[data-empty="true"]::after {
  content: "No matching cities";
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.language-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin-inline: 0;
  margin-top: 1.25rem;
  padding-inline: 0;
  padding-top: 1rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.language-row legend {
  padding: 0;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.language-toggle input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-toggle label {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
  color: var(--text-muted);
  font-weight: 500;
}

.language-toggle input[type="radio"]:checked + label {
  border-color: var(--gold);
  background: rgba(184, 148, 63, 0.15);
  color: var(--gold);
}

.language-toggle input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:not(:disabled):hover {
  box-shadow: 0 6px 28px var(--gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:not(:disabled):hover {
  color: var(--gold);
  border-color: var(--border);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-field input {
  accent-color: var(--gold);
  width: 1rem;
  height: 1rem;
}

.error-banner {
  background: rgba(232, 93, 108, 0.12);
  border: 1px solid rgba(232, 93, 108, 0.4);
  color: var(--error);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Kundli display */
.kundli-dashboard {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.kundli-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 200, 114, 0.08), transparent 55%),
    rgba(18, 18, 32, 0.62);
}

.kundli-stage .kundli-chart-wrap {
  margin: 0;
}

.kundli-content {
  min-width: 0;
}

.kundli-summary-grid,
.kundli-data-grid {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.kundli-summary-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  margin-bottom: 1.25rem;
}

.kundli-data-grid {
  grid-template-columns: minmax(0, 1fr);
}

.kundli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.kundli-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  min-width: 0;
}

.kundli-block--planets {
  grid-column: 1 / -1;
}

.kundli-block--yogas {
  width: 100%;
}

.kundli-block--wide {
  grid-column: 1 / -1;
}

.kundli-insights {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.kundli-insights > h2 {
  margin-bottom: 0.35rem;
}

.kundli-block--yogas .yoga-list {
  columns: 2;
  column-gap: 2rem;
}

.kundli-block--yogas .yoga-list li {
  break-inside: avoid;
}

.kundli-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.kundli-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.kundli-row:last-child {
  border-bottom: none;
}

.kundli-row .label {
  color: var(--text-muted);
}

.kundli-row .value {
  font-weight: 500;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.planet-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.planet-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planet-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.planet-table .retro {
  color: var(--accent-blue);
}

.planet-table .combust {
  color: var(--error);
  font-size: 0.75rem;
}

/* Mobile planet cards */
.planet-cards {
  display: none;
}

.planet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.planet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.planet-card-name {
  font-weight: 600;
  color: var(--gold);
}

.planet-card-dignity {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: capitalize;
  text-align: right;
}

.planet-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
}

.planet-card-wide {
  grid-column: 1 / -1;
}

.planet-card-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.yoga-list {
  list-style: none;
}

.yoga-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.yoga-list li strong {
  color: var(--gold);
}

/* Predictions markdown */
.predictions-markdown {
  line-height: 1.75;
}

.predictions-markdown h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.predictions-markdown h2:first-child {
  margin-top: 0;
}

.predictions-markdown h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-purple);
  margin: 1.25rem 0 0.5rem;
}

.predictions-markdown p {
  margin-bottom: 0.85rem;
  color: var(--text);
}

.predictions-markdown ul,
.predictions-markdown ol {
  margin: 0.5rem 0 1rem 1.25rem;
}

.predictions-markdown li {
  margin-bottom: 0.35rem;
}

.predictions-markdown strong {
  color: var(--gold);
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer p {
  margin-bottom: 0.35rem;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
}

.loading-text {
  color: var(--text-muted);
  font-style: italic;
}

/* Results section navigation */
.section-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-nav-btn {
  width: 100%;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.section-nav-btn:hover:not(.active) {
  border-color: var(--gold-dim);
  color: var(--text);
}

.section-nav-btn.active {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border-color: transparent;
  color: var(--bg-deep);
}

.results-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -0.75rem 0 1.25rem;
}

.results-toolbar .btn-sm {
  flex: none;
  width: auto;
}

.results-panels h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.result-panel {
  display: none;
}

.result-panel.active {
  display: block;
}

/* Q&A */
.qa-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qa-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.qa-question {
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.qa-question::before {
  content: "Q: ";
  color: var(--text-muted);
}

.qa-answer {
  font-size: 0.9rem;
  line-height: 1.65;
}

.qa-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

.qa-form textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.qa-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.qa-meta .hint.over-limit {
  color: var(--error);
}

.qa-form .btn {
  width: 100%;
  margin-top: 0.75rem;
  justify-content: center;
}

#qa-cooldown {
  margin-top: 0.5rem;
  text-align: center;
}

/* PWA install banner */
.pwa-install-banner {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  animation: pwa-fade-in 0.3s ease;
}

.pwa-install-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  animation: pwa-slide-up 0.35s ease;
}

.pwa-install-icon {
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.pwa-install-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.pwa-install-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pwa-install-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

.pwa-install-actions .btn-sm {
  flex: 1;
  justify-content: center;
}

/* Optional analytics consent */
.analytics-consent {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(234, 211, 150, 0.28);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(27, 28, 47, 0.98), rgba(13, 14, 26, 0.98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.analytics-consent-copy strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.analytics-consent-copy p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.analytics-consent-copy a,
.footer-link-button {
  color: var(--gold);
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .analytics-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .analytics-consent-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@keyframes pwa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pwa-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .container {
    padding: 1rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .card {
    padding: 1.25rem;
  }

  .form-card {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header {
    margin-bottom: 1.5rem;
  }

  .header h1 {
    font-size: 1.85rem;
  }

  .logo-icon {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .kundli-grid {
    grid-template-columns: 1fr;
  }

  .kundli-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .kundli-row .value {
    text-align: left;
    font-size: 0.85rem;
  }

  .planet-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .kundli-block--planets .table-scroll {
    display: none;
  }

  .predictions-markdown h2 {
    font-size: 1.2rem;
  }

  .predictions-markdown h3 {
    font-size: 1.05rem;
  }

  .pwa-install-banner {
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .auth-bar .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    min-height: 1.85rem;
  }

  .results-panels h2 {
    font-size: 1.4rem;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Site shell & landing ── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 125, 219, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(107, 159, 212, 0.15), transparent),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(232, 200, 114, 0.1), transparent);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  min-width: 0;
  margin: 0 auto;
  padding: 1.25rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10, 10, 18, 0.98), rgba(10, 10, 18, 0.88));
  backdrop-filter: blur(14px);
}

/* Learn: a quiet, editorial classroom built from the Astro Pragya palette. */
.learn-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 2rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(234, 211, 150, 0.25);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.2;
}

#auth-bar .learn-nav-link:hover,
#auth-bar .learn-nav-link.active {
  color: #fff2ca;
  background: rgba(234, 211, 150, 0.12);
  border-color: rgba(234, 211, 150, 0.55);
}

#auth-bar .learn-nav-link {
  height: 2rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.learn-page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 5rem;
}

.learn-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.75rem);
  border: 1px solid rgba(234, 211, 150, 0.2);
  border-radius: 28px;
  background: radial-gradient(ellipse at 78% 50%, rgba(115, 94, 159, 0.21), transparent 40%), linear-gradient(128deg, rgba(23, 23, 42, 0.98), rgba(13, 14, 26, 0.94) 56%, rgba(22, 20, 36, 0.94));
  box-shadow: 0 30px 95px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.035);
}

.learn-hero::after {
  position: absolute;
  right: 2%;
  bottom: -90px;
  width: 45%;
  height: 150px;
  border-radius: 50%;
  background: rgba(111, 91, 157, 0.13);
  filter: blur(35px);
  content: "";
}

.learn-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.learn-hero .section-kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--gold); letter-spacing: .18em; }
.learn-kicker-star { font-size: 1.1rem; }
.learn-hero h1 { margin: 1rem 0 1.1rem; font-family: var(--font-display); font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.learn-hero h1 span { color: #d4c3f0; }
.learn-hero-copy > p { max-width: 590px; color: #c0bdcb; font-size: clamp(.98rem, 1.6vw, 1.12rem); line-height: 1.8; }
.learn-hero-points { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 2rem; color: #e8e3ee; font-size: .8rem; }
.learn-hero-points span { display: inline-flex; align-items: center; gap: .5rem; }
.learn-hero-points i { color: var(--gold); font-size: .66rem; font-style: normal; letter-spacing: .08em; }
.learn-hero-art { position: relative; z-index: 1; width: min(100%, 350px); aspect-ratio: 1; justify-self: center; }
.learn-orbit { position: absolute; inset: 9%; border: 1px solid rgba(234, 211, 150, .19); border-radius: 50%; transform: rotate(-24deg) scaleY(.63); }
.learn-orbit-a { box-shadow: 0 0 45px rgba(188, 161, 224, .08); }
.learn-orbit-b { inset: 2% 15%; border-color: rgba(169,145,226,.2); transform: rotate(55deg) scaleY(.58); }
.learn-yantra { position: absolute; inset: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; border: 1px solid rgba(234, 211, 150, .33); border-radius: 50%; background: radial-gradient(circle, rgba(63, 53, 78, .72), rgba(15, 16, 28, .86) 69%); box-shadow: 0 0 70px rgba(191, 163, 230, .12), inset 0 0 35px rgba(234, 211, 150, .05); }
.learn-yantra > span { color: var(--gold); font-size: 1rem; }
.learn-yantra i { color: #f0e7d3; font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.5rem); font-style: normal; }
.learn-yantra b { color: #d4c3f0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; }
.learn-yantra small { margin-top: .55rem; color: #9692a3; font-size: .54rem; letter-spacing: .22em; }
.learn-orbit-dot { position: absolute; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid rgba(234,211,150,.33); border-radius: 50%; background: #171727; color: var(--gold); box-shadow: 0 5px 20px #080912; }
.learn-dot-a { top: 7%; left: 49%; }.learn-dot-b { right: 2%; top: 55%; color: #c7b5e8; }.learn-dot-c { left: 12%; bottom: 7%; color: #a5c3df; }

.learn-trust-note { display: flex; gap: .9rem; align-items: flex-start; max-width: 900px; margin: 1.5rem auto 4.6rem; padding: 1.05rem 1.25rem; border: 1px solid rgba(169,145,226,.17); border-radius: 14px; background: rgba(169,145,226,.045); color: #b7b3c2; font-size: .86rem; line-height: 1.7; }
.learn-trust-note > span { color: #c9b7ec; font-size: 1.1rem; }.learn-trust-note strong { color: #eee8f7; font-weight: 600; }
.learn-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 0 0 1.6rem; }
.learn-section-heading .section-kicker { color: var(--gold); font-size: .7rem; letter-spacing: .2em; }
.learn-section-heading h2 { margin-top: .5rem; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.learn-section-heading h2 em { color: #c5b4e6; font-weight: 400; }
.learn-section-heading > p { max-width: 370px; color: var(--text-muted); font-size: .92rem; }
.learn-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; scroll-margin-top: 1rem; }
.learn-course-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 1.55rem; overflow: hidden; border: 1px solid rgba(234,211,150,.15); border-radius: 19px; background: linear-gradient(145deg, rgba(24,25,42,.96), rgba(15,16,29,.96)); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.learn-course-card::before { position: absolute; top: -80px; right: -75px; width: 190px; height: 190px; border-radius: 50%; background: var(--learn-glow, rgba(234,211,150,.1)); filter: blur(10px); content: ""; }
.learn-course-card:hover { transform: translateY(-3px); border-color: rgba(234,211,150,.32); box-shadow: 0 16px 38px rgba(0,0,0,.21); }
.learn-tone-gold { --learn-accent: #ead396; --learn-glow: rgba(234,211,150,.08); }.learn-tone-blue { --learn-accent: #9ec5e8; --learn-glow: rgba(130,172,214,.1); }.learn-tone-purple { --learn-accent: #c2afe8; --learn-glow: rgba(169,145,226,.12); }.learn-tone-green { --learn-accent: #9ed9c1; --learn-glow: rgba(107,201,160,.1); }
.learn-course-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.learn-course-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid color-mix(in srgb, var(--learn-accent) 32%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--learn-accent) 9%, transparent); color: var(--learn-accent); font-size: 1.2rem; }
.learn-course-level { color: var(--learn-accent); font-size: .62rem; font-weight: 600; letter-spacing: .16em; }
.learn-course-card h3 { position: relative; z-index: 1; margin: 1.35rem 0 .45rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.learn-course-card > p { position: relative; z-index: 1; max-width: 470px; min-height: 3.2rem; color: #aaa8b8; font-size: .88rem; line-height: 1.65; }
.learn-course-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.05rem 0 .75rem; color: #8e8c9c; font-size: .72rem; }
.learn-course-progress { margin-top: auto; }.learn-progress-track { width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }.learn-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--learn-accent, var(--gold)), #eee1bd); transition: width .3s ease; }
.learn-course-progress small { display: block; margin-top: .4rem; color: #828091; font-size: .68rem; }
.learn-course-cta { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 1rem; padding: .7rem 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: none; color: var(--learn-accent); text-align: left; font-size: .83rem; font-weight: 600; cursor: pointer; }.learn-course-cta span { transition: transform .2s ease; }.learn-course-cta:hover span { transform: translateX(4px); }
.learn-footnote { display: flex; gap: .75rem; margin: 2rem 0 0; color: #878596; font-size: .77rem; line-height: 1.65; }.learn-footnote > span { color: var(--gold-dim); }

.learn-reader { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.learn-reader-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.learn-back-link,.learn-next-link { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 0; border: 0; background: none; color: #c6b5e6; font: inherit; font-size: .82rem; cursor: pointer; }.learn-back-link:hover,.learn-next-link:hover { color: #e8dbff; }
.learn-reader-progress { display: grid; grid-template-columns: auto auto; gap: .2rem .6rem; min-width: 190px; align-items: center; }.learn-reader-progress > span { color: #858394; font-size: .56rem; letter-spacing: .16em; }.learn-reader-progress > b { color: #c8c4d0; font-size: .7rem; font-weight: 500; text-align: right; }.learn-reader-progress .learn-progress-track { grid-column: 1/-1; }
.learn-reader-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 1.1rem; align-items: start; }
.learn-lesson-rail { position: sticky; top: 1rem; padding: 1rem; border: 1px solid rgba(234,211,150,.15); border-radius: 17px; background: rgba(17,18,32,.78); }
.learn-rail-course { display: flex; gap: .75rem; align-items: center; padding: .35rem .25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }.learn-rail-course .learn-course-icon { flex: 0 0 auto; }.learn-rail-course div { display: grid; gap: .16rem; }.learn-rail-course small,.learn-rail-label { color: #8d899c; font-size: .57rem; letter-spacing: .15em; }.learn-rail-course strong { font-family: var(--font-display); font-size: 1.07rem; font-weight: 500; line-height: 1.1; }
.learn-rail-label { display: block; margin: 1rem .35rem .45rem; }.learn-lesson-rail nav { display: grid; gap: .28rem; }.learn-rail-item { display: flex; gap: .7rem; align-items: center; min-height: 2.75rem; padding: .55rem .6rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #a4a1af; text-align: left; font: inherit; font-size: .78rem; line-height: 1.4; cursor: pointer; }.learn-rail-item:hover { background: rgba(255,255,255,.035); color: #f3f0e8; }.learn-rail-item.active { border-color: rgba(234,211,150,.2); background: rgba(234,211,150,.075); color: #f0e5c8; }.learn-rail-number { display: grid; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; place-items: center; border-radius: 7px; background: rgba(255,255,255,.05); color: #b0a0cf; font-size: .65rem; }.learn-rail-note { display: flex; gap: .55rem; margin: 1rem .25rem .1rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.07); color: #858293; font-size: .7rem; line-height: 1.5; }.learn-rail-note span { color: var(--gold); }
.learn-lesson-content { min-width: 0; padding: clamp(1.2rem, 3.5vw, 2.3rem); border: 1px solid rgba(234,211,150,.14); border-radius: 19px; background: linear-gradient(145deg, rgba(21,22,37,.98), rgba(14,15,27,.98)); }
.learn-lesson-heading { padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }.learn-lesson-tags { display: flex; flex-wrap: wrap; gap: .45rem; }.learn-lesson-tags span { padding: .28rem .52rem; border: 1px solid rgba(234,211,150,.16); border-radius: 99px; color: var(--gold); font-size: .57rem; letter-spacing: .1em; }.learn-lesson-tags span + span { border-color: rgba(255,255,255,.08); color: #8f8c9b; }.learn-lesson-heading h2 { margin: .85rem 0 .3rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.65rem); font-weight: 500; line-height: 1.05; }.learn-lesson-course { color: #9895a4; font-size: .76rem; }
.learn-lesson-body { color: #c3c0cb; font-size: .91rem; line-height: 1.8; }.learn-lesson-body p { margin: .9rem 0; }.learn-lesson-body h3 { margin: 1.65rem 0 .45rem; color: #f2eee6; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }.learn-lesson-body strong { color: #e8dfcb; font-weight: 600; }.learn-lesson-body em { color: #d0c3e6; }.learn-lede { margin: 1.1rem 0 1.4rem !important; color: #e4e0e9; font-family: var(--font-display); font-size: 1.33rem; line-height: 1.48; }.learn-concept-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin: 1.2rem 0; }.learn-concept-grid article { padding: .85rem; border: 1px solid rgba(234,211,150,.13); border-radius: 12px; background: rgba(234,211,150,.025); }.learn-concept-grid article > span { display: block; color: var(--gold-dim); font-size: .53rem; letter-spacing: .14em; }.learn-concept-grid article strong { display: block; margin: .35rem 0 .2rem; color: #ebe4d5; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; }.learn-concept-grid article p { margin: 0; color: #a6a3b0; font-size: .74rem; line-height: 1.6; }
.learn-practice { margin: 1.2rem 0; padding: 1rem 1.1rem; border-left: 2px solid #b89bda; border-radius: 0 12px 12px 0; background: rgba(169,145,226,.07); }.learn-practice-label { color: #c5ade6; font-size: .57rem; letter-spacing: .13em; }.learn-practice > p { margin: .55rem 0 0; color: #d0cbd9; }.learn-reveal-btn { display: inline-flex; gap: .7rem; align-items: center; margin-top: .6rem; padding: .4rem 0; border: 0; background: none; color: #d5c4ed; font: inherit; font-size: .75rem; cursor: pointer; }.learn-reveal-btn:hover { color: white; }.learn-reveal { margin-top: .3rem; padding: .1rem .9rem; border-left: 1px solid rgba(197,173,230,.4); color: #bab4c5; font-size: .84rem; }
.learn-method-note { display: flex; gap: .7rem; margin: 1rem 0; padding: .85rem 1rem; border: 1px solid rgba(130,172,214,.15); border-radius: 12px; background: rgba(130,172,214,.045); }.learn-method-note > span { color: #a6c8e5; }.learn-method-note p { margin: 0; color: #b7c2cd; font-size: .83rem; }.learn-method-note strong { color: #d8e8f5; }
.learn-house-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; margin: 1rem 0; }.learn-house-map > div { display: flex; gap: .55rem; align-items: center; min-height: 2.7rem; padding: .5rem .6rem; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.018); }.learn-house-map b { color: var(--gold); font-size: .64rem; }.learn-house-map span { color: #aaa7b3; font-size: .7rem; line-height: 1.3; }.learn-numbered-list,.learn-bullet-list { display: grid; gap: .5rem; padding-left: 1.25rem; }.learn-numbered-list li,.learn-bullet-list li { padding-left: .25rem; }.learn-numbered-list li::marker { color: var(--gold); }.learn-dasha-strip { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: .25rem; margin: 1rem 0; }.learn-dasha-strip span { display: grid; gap: .18rem; justify-items: center; padding: .55rem .2rem; border: 1px solid rgba(234,211,150,.12); border-radius: 8px; background: rgba(234,211,150,.035); }.learn-dasha-strip b { color: #e1d4b7; font-size: .64rem; font-weight: 500; }.learn-dasha-strip small { color: #9591a0; font-size: .58rem; }
.learn-checklist { display: grid; gap: .35rem; margin: 1rem 0; }.learn-checklist label { display: flex; gap: .65rem; align-items: center; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; color: #b6b3bf; font-size: .8rem; cursor: pointer; }.learn-checklist input { accent-color: #bd9de3; }.learn-checklist label.checked { border-color: rgba(107,201,160,.24); color: #c3e6d5; background: rgba(107,201,160,.04); }
.learn-number-worked { display: grid; gap: .32rem; justify-items: center; margin: 1.2rem 0; padding: 1.2rem; border: 1px solid rgba(107,201,160,.2); border-radius: 14px; background: radial-gradient(ellipse, rgba(107,201,160,.07), transparent 75%); }.learn-number-worked span { color: #a4d8c0; font-size: .66rem; letter-spacing: .15em; }.learn-number-worked b { color: #d3d1d9; font-size: .87rem; font-weight: 400; }.learn-number-worked strong { color: #afe0c8 !important; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500 !important; }.learn-number-worked small { color: #898e91; font-size: .68rem; text-align: center; }.learn-name-demo { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin: 1rem 0; padding: .8rem; border: 1px solid rgba(107,201,160,.17); border-radius: 12px; background: rgba(107,201,160,.035); }.learn-name-demo > span { grid-column: 1/-1; color: #9bcdb5; font-size: .6rem; letter-spacing: .14em; }.learn-name-demo div { display: grid; gap: .2rem; padding: .6rem; border-radius: 8px; background: rgba(255,255,255,.035); }.learn-name-demo b { color: #d5ddd7; font-size: .74rem; }.learn-name-demo i { color: #95b8a4; font-size: .66rem; font-style: normal; }
.learn-quiz { margin-top: 1.6rem; padding: 1.2rem; border: 1px solid rgba(234,211,150,.19); border-radius: 15px; background: linear-gradient(145deg, rgba(234,211,150,.045), rgba(169,145,226,.035)); }.learn-quiz-head { display: flex; align-items: center; gap: .75rem; }.learn-quiz-icon { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border: 1px solid rgba(234,211,150,.33); border-radius: 50%; color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; }.learn-quiz-head .section-kicker { color: #b99e60; font-size: .57rem; letter-spacing: .15em; }.learn-quiz-head h3 { margin: .08rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }.learn-quiz-question { margin: 1rem 0 .65rem; color: #e5e1ea; font-size: .9rem; font-weight: 500; }.learn-quiz-options { display: grid; gap: .4rem; }.learn-quiz-option { display: flex; gap: .65rem; align-items: center; width: 100%; padding: .65rem .7rem; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(8,9,18,.32); color: #b9b6c1; text-align: left; font: inherit; font-size: .78rem; line-height: 1.5; cursor: pointer; transition: border-color .15s,background .15s; }.learn-quiz-option:hover:not(:disabled) { border-color: rgba(234,211,150,.35); background: rgba(234,211,150,.045); color: #f3f0e8; }.learn-quiz-option > span { display: grid; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #a6a2b0; font-size: .63rem; }.learn-quiz-option.correct { border-color: rgba(107,201,160,.35); background: rgba(107,201,160,.08); color: #d1eadc; }.learn-quiz-option.correct > span { border-color: #6bc9a0; color: #88d4b1; }.learn-quiz-option.incorrect { border-color: rgba(232,93,108,.3); background: rgba(232,93,108,.055); }.learn-quiz-option:disabled { cursor: default; }.learn-quiz-feedback { margin-top: .75rem; padding: .7rem .85rem; border-radius: 9px; font-size: .78rem; line-height: 1.6; }.learn-quiz-feedback p { margin: .15rem 0 0; }.learn-quiz-feedback.is-correct { background: rgba(107,201,160,.08); color: #b9ddca; }.learn-quiz-feedback.is-incorrect { background: rgba(234,211,150,.07); color: #d8cba9; }
.learn-lesson-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }.learn-complete-status { color: #9693a2; font-size: .7rem; }.learn-lesson-footer > div { display: flex; align-items: center; gap: .8rem; }.learn-mark-done { display: inline-flex; gap: .65rem; align-items: center; padding: .65rem .85rem; border: 1px solid rgba(234,211,150,.28); border-radius: 9px; background: rgba(234,211,150,.1); color: #ead396; font: inherit; font-size: .74rem; cursor: pointer; }.learn-mark-done:hover:not(:disabled) { background: rgba(234,211,150,.18); }.learn-mark-done:disabled { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); color: #777584; cursor: default; }.learn-mark-done.complete { color: #8bd1ad; border-color: rgba(107,201,160,.22); }.learn-next-link { font-size: .75rem; }

@media (max-width: 800px) {
  .learn-hero { grid-template-columns: minmax(0,1fr) 240px; padding: 2rem; }
  .learn-reader-layout { grid-template-columns: 210px minmax(0,1fr); gap: .7rem; }
  .learn-lesson-rail { padding: .75rem; }
  .learn-rail-item { font-size: .73rem; }
}
@media (max-width: 640px) {
  .learn-page-shell { padding: 1.2rem .85rem 3.5rem; }
  .learn-hero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 1.6rem 1.25rem 1.1rem; border-radius: 20px; }
  .learn-hero h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .learn-hero-art { width: 210px; margin: .4rem auto -.5rem; }
  .learn-hero-points { gap: .55rem .85rem; font-size: .69rem; }
  .learn-trust-note { margin: 1rem 0 3rem; padding: .85rem; font-size: .77rem; }
  .learn-section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; margin-bottom: 1.1rem; }
  .learn-section-heading > p { font-size: .82rem; }
  .learn-course-grid { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .learn-course-card { min-height: 275px; padding: 1.2rem; }
  .learn-course-card > p { min-height: 0; }
  .learn-reader { margin-top: 1.5rem; }
  .learn-reader-top { align-items: flex-start; flex-direction: column; }
  .learn-reader-progress { width: 100%; }
  .learn-reader-layout { grid-template-columns: minmax(0,1fr); }
  .learn-lesson-rail { position: static; }
  .learn-lesson-rail nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .learn-rail-item { align-items: flex-start; flex-direction: column; gap: .35rem; min-height: 5.2rem; padding: .55rem; font-size: .67rem; }
  .learn-rail-note { display: none; }
  .learn-lesson-content { padding: 1.1rem .9rem; }
  .learn-concept-grid { grid-template-columns: minmax(0,1fr); }
  .learn-concept-grid article { display: grid; grid-template-columns: 1fr; }
  .learn-house-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learn-dasha-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
  .learn-name-demo { grid-template-columns: minmax(0,1fr); }
  .learn-name-demo > span { grid-column: auto; }
  .learn-lesson-footer { align-items: flex-start; flex-direction: column; }
  .learn-lesson-footer > div { width: 100%; justify-content: space-between; }
  #auth-bar .learn-nav-link { padding: .4rem .65rem; font-size: .74rem; }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #fff5d6 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.site-logo .logo-text em {
  color: var(--text);
  font-style: normal;
  -webkit-text-fill-color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
}

.site-nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--gold);
}

.site-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.page-view {
  min-width: 0;
  max-width: 100%;
}

.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.75rem 0;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--gold);
}

.site-footer .footer-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.9rem 0;
}

.footer-product a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer-product a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-view.hidden {
  display: none !important;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(155, 125, 219, 0.12);
  border: 1px solid rgba(155, 125, 219, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, #fff5d6 40%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-proof span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.hero-proof strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-proof small {
  font-size: 0.68rem;
}

.app-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
}

.app-intro h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  line-height: 1;
}

.app-intro .card-subtitle {
  max-width: 360px;
  margin: 0;
  text-align: right;
}

.form-card {
  position: relative;
  overflow: visible;
}

.form-card::before {
  content: "01  /  YOUR DETAILS";
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  padding: 0 0.55rem;
  background: var(--bg-deep);
  color: var(--gold-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.success-message {
  background: rgba(107, 201, 160, 0.12);
  border-color: rgba(107, 201, 160, 0.45);
  color: var(--success);
}

.info-page {
  max-width: 760px;
  margin-inline: auto;
}

.info-page .btn {
  margin-top: 0.75rem;
}

@media (min-width: 760px) {
  .section-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .kundli-dashboard {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .kundli-stage {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 640px) {
  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    text-align: left;
    padding-inline: 1rem;
  }

  .app-intro {
    display: block;
  }

  .app-intro .card-subtitle {
    margin-top: 0.45rem;
    text-align: left;
  }

  .form-card::before {
    left: 1rem;
  }
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.feature-card--gold { border-top: 3px solid var(--gold); }
.feature-card--purple { border-top: 3px solid var(--accent-purple); }
.feature-card--blue { border-top: 3px solid var(--accent-blue); }
.feature-card--green { border-top: 3px solid var(--success); }

.feature-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 10px;
  background: rgba(232, 200, 114, 0.12);
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card--purple .feature-icon {
  color: var(--accent-purple);
  background: rgba(155, 125, 219, 0.12);
}

.feature-card--blue .feature-icon {
  color: var(--accent-blue);
  background: rgba(107, 159, 212, 0.12);
}

.feature-card--green .feature-icon {
  color: var(--success);
  background: rgba(107, 201, 160, 0.12);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(155, 125, 219, 0.08), rgba(232, 200, 114, 0.06));
}

.home-cta h2 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.home-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Info pages */
.info-page {
  max-width: 720px;
  margin: 0 auto;
}

.info-back {
  margin-bottom: 1rem;
  display: inline-block;
}

.info-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.info-content h3 {
  font-family: var(--font-display);
  color: var(--accent-purple);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
}

.info-content p,
.info-content li {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.info-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.info-content strong {
  color: var(--gold);
}

.info-muted {
  color: var(--text-muted) !important;
  font-style: italic;
}

.app-intro {
  margin-bottom: 1.25rem;
}

.form-intro {
  max-width: 680px;
  margin: -0.2rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.app-intro h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0.75rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .site-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .site-nav {
    gap: 0.25rem 0.85rem;
  }

  .site-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .place-search-actions {
    flex-direction: column;
  }

  .place-search-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-nav {
    gap: 0.4rem;
  }

  .section-nav-btn {
    min-height: 44px;
    font-size: 0.78rem;
  }

  .kundli-summary-grid {
    grid-template-columns: 1fr;
  }

  .kundli-block--yogas .yoga-list {
    columns: 1;
  }
}

@media (min-width: 1024px) {
  .site-shell {
    max-width: 1280px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .kundli-dashboard {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
  }

  .kundli-content {
    display: contents;
  }

  .kundli-stage {
    grid-column: span 4;
    grid-row: 1;
    min-height: 0;
  }

  .kundli-stage .kundli-chart {
    max-width: 320px;
  }

  .kundli-summary-grid {
    grid-column: span 8;
    grid-row: 1;
    margin-bottom: 0;
  }

  .kundli-data-grid {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .kundli-insights {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .kundli-insights .kundli-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .kundli-block--panchang,
  .kundli-block--upapada {
    grid-column: span 2;
  }

  .kundli-block--jaimini {
    grid-column: span 4;
  }

  .kundli-block--bhava {
    grid-column: span 3;
  }
}

/* ── Production design pass ─────────────────────────────────────────── */
::selection {
  color: #121018;
  background: var(--gold);
}

body {
  background:
    radial-gradient(circle at 50% -20%, rgba(100, 79, 159, 0.16), transparent 35rem),
    var(--bg-deep);
}

.stars {
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

.aurora {
  background:
    radial-gradient(ellipse 55% 42% at 78% 5%, rgba(126, 93, 194, 0.15), transparent 72%),
    radial-gradient(ellipse 44% 32% at 12% 38%, rgba(49, 101, 138, 0.11), transparent 72%),
    radial-gradient(ellipse 42% 32% at 72% 78%, rgba(191, 150, 59, 0.07), transparent 75%);
}

.site-shell {
  max-width: 1320px;
  padding: 0 2rem calc(3rem + env(safe-area-inset-bottom));
}

.site-header {
  min-height: 80px;
  padding: 0.9rem 0;
  margin-bottom: 0;
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: rgba(8, 9, 18, 0.76);
  box-shadow: 0 1px rgba(0, 0, 0, 0.3);
}

.site-logo .logo-icon {
  width: 2.35rem;
  height: 2.35rem;
  filter: drop-shadow(0 0 14px rgba(234, 211, 150, 0.16));
}

.site-logo .logo-text {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.site-nav {
  gap: 1.75rem;
}

.site-nav-link {
  position: relative;
  padding: 0.65rem 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav-link:hover::after,
.site-nav-link.active::after {
  transform: scaleX(1);
}

.btn {
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f2dda3, #c9a553);
  box-shadow: 0 10px 28px rgba(191, 151, 63, 0.16), inset 0 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:not(:disabled):hover {
  box-shadow: 0 14px 36px rgba(191, 151, 63, 0.25), inset 0 1px rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.btn-secondary:not(:disabled):hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: none;
  min-height: 690px;
  padding: clamp(4rem, 8vw, 7rem) 1rem 4.75rem;
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.7rem;
  padding: 0.44rem 0.75rem;
  color: #c3b3e8;
  border-color: rgba(169, 145, 226, 0.22);
  background: rgba(151, 123, 209, 0.08);
  letter-spacing: 0.1em;
}

.hero-badge span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-title {
  margin-bottom: 1.4rem;
  font-size: clamp(3.6rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.hero-gradient {
  background: linear-gradient(115deg, #f2dfac 4%, #d8b96b 48%, #a990de 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  max-width: 570px;
  margin-bottom: 2rem;
  color: #aaa8b7;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  justify-content: flex-start;
  gap: 0.75rem;
}

.hero-actions .btn-lg {
  min-height: 52px;
  padding-inline: 1.45rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: #747280;
  font-size: 0.76rem;
}

.hero-note span {
  color: var(--gold-dim);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(110%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 145, 226, 0.18), rgba(169, 145, 226, 0.035) 43%, transparent 69%);
  filter: blur(6px);
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(234, 211, 150, 0.11);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 17%;
  right: 5%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.orbit-two {
  width: 68%;
  border-color: rgba(169, 145, 226, 0.12);
}

.orbit-two::after {
  top: auto;
  right: auto;
  bottom: 9%;
  left: 18%;
  background: var(--accent-purple);
  box-shadow: 0 0 18px var(--accent-purple);
}

.preview-card {
  width: min(82%, 400px);
  padding: 1.1rem;
  border: 1px solid rgba(234, 211, 150, 0.2);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(28, 28, 47, 0.95), rgba(13, 14, 26, 0.93));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(1.6deg);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.15rem 1rem;
  color: var(--text-muted);
  font-size: 0.67rem;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.preview-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.preview-status {
  padding: 0.24rem 0.5rem;
  border: 1px solid rgba(107, 201, 160, 0.22);
  border-radius: 999px;
  color: #8ed7b6;
  background: rgba(107, 201, 160, 0.07);
}

.preview-chart {
  display: grid;
  place-items: center;
  padding: 0.5rem 1.25rem 1rem;
}

.preview-chart svg {
  width: min(100%, 280px);
  overflow: visible;
}

.preview-chart rect,
.preview-chart path,
.preview-chart circle {
  fill: none;
  stroke: rgba(234, 211, 150, 0.48);
  stroke-width: 0.8;
}

.preview-chart circle {
  fill: rgba(234, 211, 150, 0.045);
  stroke: rgba(234, 211, 150, 0.2);
}

.preview-chart text {
  fill: #aaa8b7;
  font: 8px var(--font-body);
  text-anchor: middle;
}

.preview-chart .preview-sign {
  fill: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.preview-insight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.preview-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(234, 211, 150, 0.1);
}

.preview-insight div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.preview-insight small {
  color: var(--text-muted);
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-insight strong {
  overflow: hidden;
  color: #dad6cd;
  font-size: 0.75rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-chip {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  min-width: 126px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(17, 18, 31, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.floating-chip > span {
  grid-row: span 2;
  align-self: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.floating-chip small {
  color: var(--text-muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-chip strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
}

.chip-one { top: 17%; left: -1%; }
.chip-two { right: -1%; bottom: 14%; }

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 1rem 0 0;
  padding: 1.25rem 0 0;
  border-top-color: rgba(255, 255, 255, 0.075);
  text-align: center;
}

.hero-proof span {
  position: relative;
  gap: 0.2rem;
}

.hero-proof span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: rgba(255, 255, 255, 0.075);
}

.hero-proof strong {
  color: #d8d4cb;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.hero-proof small {
  color: #747280;
}

.section-heading {
  max-width: 720px;
  margin: clamp(4rem, 8vw, 7rem) auto 2.5rem;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.journey-copy h2,
.home-cta h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-heading p,
.journey-copy > p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: clamp(5rem, 10vw, 9rem);
}

.feature-card {
  position: relative;
  min-height: 245px;
  padding: 1.55rem;
  border-top-width: 1px;
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(150deg, rgba(24, 25, 42, 0.78), rgba(12, 13, 24, 0.76));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -35%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.035;
  filter: blur(4px);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
}

.feature-card--gold { color: var(--gold); }
.feature-card--purple { color: var(--accent-purple); }
.feature-card--blue { color: var(--accent-blue); }
.feature-card--green { color: var(--success); }

.feature-icon {
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(234, 211, 150, 0.1);
  border-radius: 12px;
}

.feature-card h3 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
}

.feature-card p {
  color: #858391;
  line-height: 1.65;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(169, 145, 226, 0.09), transparent 38%),
    rgba(16, 17, 30, 0.63);
}

.journey-steps {
  list-style: none;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.journey-steps li:last-child {
  border-bottom: 0;
}

.journey-steps li > span {
  padding-top: 0.12rem;
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.journey-steps strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.journey-steps p {
  margin-top: 0.25rem;
  color: #83818e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-cta.card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-color: rgba(234, 211, 150, 0.18);
  background:
    radial-gradient(circle at 0 50%, rgba(169, 145, 226, 0.13), transparent 35%),
    linear-gradient(120deg, rgba(27, 26, 42, 0.9), rgba(15, 15, 27, 0.9));
  text-align: left;
}

.cta-star {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
  box-shadow: inset 0 0 25px rgba(234, 211, 150, 0.06);
}

.home-cta h2 {
  max-width: 600px;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.home-cta p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.home-cta .btn {
  white-space: nowrap;
}

.card {
  border-color: rgba(255, 255, 255, 0.085);
  background: linear-gradient(145deg, rgba(22, 23, 39, 0.88), rgba(13, 14, 26, 0.84));
  box-shadow: var(--shadow-card), inset 0 1px rgba(255, 255, 255, 0.025);
}

.app-intro {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.app-intro h2 {
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.form-card::before {
  top: -0.6rem;
  background: var(--bg-deep);
}

.field label {
  color: #aaa8b5;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.field input,
.field select,
.qa-form textarea {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(5, 6, 13, 0.38);
}

.field input:hover,
.field select:hover,
.qa-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.field input:focus,
.field select:focus,
.qa-form textarea:focus {
  border-color: rgba(234, 211, 150, 0.6);
  box-shadow: 0 0 0 4px rgba(234, 211, 150, 0.08);
}

.section-nav {
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(4, 5, 11, 0.25);
}

.section-nav-btn {
  border-color: transparent;
  border-radius: 9px;
}

.section-nav-btn.active {
  background: rgba(234, 211, 150, 0.12);
  border-color: rgba(234, 211, 150, 0.16);
  color: var(--gold);
  box-shadow: none;
}

.auth-modal,
.app-modal,
.pwa-install-banner {
  background: rgba(3, 4, 10, 0.76);
  backdrop-filter: blur(12px);
}

.auth-modal-card,
.app-modal-card,
.pwa-install-card {
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(27, 28, 47, 0.98), rgba(13, 14, 26, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 0;
  border-color: rgba(255, 255, 255, 0.065);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(3.2rem, 7vw, 5rem);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    min-height: 220px;
  }

  .journey-section {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .home-cta.card {
    grid-template-columns: auto 1fr;
  }

  .home-cta .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding-inline: 1rem;
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    display: none;
  }

  .site-logo .logo-text {
    font-size: 1.3rem;
  }

  .hero {
    display: flex;
    min-height: 0;
    padding: 4.25rem 0 3rem;
    flex-direction: column;
    gap: 3rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(3.25rem, 14vw, 4.6rem);
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-note {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 520px);
    min-height: 430px;
  }

  .hero-proof {
    order: 3;
  }

  .journey-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .auth-bar .btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
  }

  .auth-bar {
    width: 100%;
  }

  .site-language-control { margin-right: auto; }

  .auth-guest,
  .auth-user {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-badge {
    font-size: 0.61rem;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.25rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 370px;
  }

  .preview-card {
    width: 84%;
    padding: 0.8rem;
  }

  .preview-chart {
    padding-inline: 0.5rem;
  }

  .floating-chip {
    min-width: 112px;
    padding: 0.55rem 0.6rem;
  }

  .chip-one { top: 12%; left: 0; }
  .chip-two { right: 0; bottom: 10%; }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: 0;
    text-align: left;
  }

  .hero-proof span {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  }

  .hero-proof span:not(:last-child)::after {
    display: none;
  }

  .section-heading {
    margin-top: 4.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-icon {
    margin-bottom: 1.35rem;
  }

  .journey-section {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .journey-steps li {
    grid-template-columns: 2.4rem 1fr;
  }

  .home-cta.card {
    display: block;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-star {
    margin: 0 auto 1.25rem;
  }

  .home-cta .btn {
    width: 100%;
    margin-top: 1.5rem;
  }

  .app-intro {
    margin-top: 0;
  }

  .site-header {
    padding: 0.15rem 0 0.35rem;
    margin-bottom: 0.3rem;
  }

  .app-nav {
    margin-bottom: 0.3rem;
    padding: 0.15rem;
  }

  .app-nav-link {
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
  }

  .app-intro h2 {
    font-size: 1.2rem;
  }

  .app-intro .card-subtitle {
    font-size: 0.75rem;
  }
}

/* ── About, privacy & terms ─────────────────────────────────────────── */
#info-view {
  padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
}

.info-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: clamp(2.5rem, 7vw, 6rem);
  justify-content: center;
  align-items: start;
}

.info-sidebar {
  position: sticky;
  top: 7rem;
}

.info-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  padding: 0;
  border: 0;
  color: var(--text-muted);
  background: none;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.info-back span {
  color: var(--gold-dim);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.info-back:hover {
  color: var(--text);
}

.info-back:hover span {
  transform: translateX(-3px);
}

.info-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(13, 14, 25, 0.58);
}

.info-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  background: transparent;
  font: 500 0.82rem var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.info-nav-link span {
  color: #666472;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.info-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.info-nav-link.active {
  border-color: rgba(234, 211, 150, 0.14);
  color: var(--gold);
  background: rgba(234, 211, 150, 0.075);
}

.info-nav-link.active span {
  color: var(--gold-dim);
}

.info-sidebar-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 1px solid rgba(234, 211, 150, 0.18);
}

.info-sidebar-note img {
  width: 28px;
  height: 28px;
  margin-bottom: 0.65rem;
}

.info-sidebar-note p {
  color: #6f6d7b;
  font-size: 0.72rem;
  line-height: 1.55;
}

.info-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.info-hero {
  position: relative;
  margin-bottom: 2rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(169, 145, 226, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(23, 24, 41, 0.86), rgba(12, 13, 24, 0.82));
  box-shadow: var(--shadow-card), inset 0 1px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.info-hero::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -36px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(234, 211, 150, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(234, 211, 150, 0.025), 0 0 0 60px rgba(169, 145, 226, 0.018);
  pointer-events: none;
}

.info-hero .section-kicker {
  margin-bottom: 1rem;
}

.info-title {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.info-intro {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 1.2rem;
  color: #aaa8b7;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 300;
  line-height: 1.7;
}

.info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.info-meta:empty {
  display: none;
}

.info-meta span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #888694;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.68rem;
}

.info-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-content p,
.info-content li {
  margin: 0;
  color: #a3a1af;
  font-size: 0.9rem;
  line-height: 1.72;
}

.info-content strong {
  color: var(--text);
}

.info-statement,
.info-callout,
.info-principles,
.info-section--wide,
.info-success {
  grid-column: 1 / -1;
}

.info-statement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-statement-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(234, 211, 150, 0.2);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(234, 211, 150, 0.09), transparent 68%);
  font-family: serif;
  font-size: 1.25rem;
}

.info-statement h2,
.info-section h2 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
}

.info-card-grid {
  display: contents;
}

.info-section {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 23, 39, 0.7), rgba(13, 14, 25, 0.66));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.info-index {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.info-section--wide {
  display: grid;
  grid-template-columns: 3.5rem minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
}

.info-section--wide .info-index {
  margin: 0;
  padding-top: 0.2rem;
}

.info-section--wide h2 {
  margin: 0;
}

.info-section--wide > p,
.info-section--wide > ul {
  grid-column: 3;
}

.info-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(234, 211, 150, 0.16);
  border-radius: 14px;
  background: rgba(234, 211, 150, 0.055);
}

.info-callout > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(234, 211, 150, 0.1);
}

.info-callout strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}

.info-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  list-style: none;
}

.info-detail-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.info-detail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-detail-list strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.info-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  overflow: hidden;
}

.info-principles div {
  padding: 1.35rem;
  background: #10111e;
}

.info-principles span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold-dim);
}

.info-principles strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.info-principles p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.info-success {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 2rem;
}

.info-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: rgba(107, 201, 160, 0.1);
}

.info-success .btn {
  margin-top: 1.25rem;
}

.info-shell--verified {
  grid-template-columns: minmax(0, 720px);
}

.info-shell--verified .info-sidebar {
  display: none;
}

@media (max-width: 900px) {
  #info-view {
    padding-top: 2rem;
  }

  .info-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-sidebar {
    position: static;
  }

  .info-back {
    margin-bottom: 1rem;
  }

  .info-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .info-sidebar-note {
    display: none;
  }
}

@media (max-width: 620px) {
  #info-view {
    padding-top: 1.25rem;
  }

  .info-nav {
    gap: 0.2rem;
    padding: 0.3rem;
  }

  .info-nav-link {
    justify-content: center;
    gap: 0;
    padding-inline: 0.4rem;
    text-align: center;
  }

  .info-nav-link span {
    display: none;
  }

  .info-hero {
    padding: 2rem 1.35rem;
    border-radius: 18px;
  }

  .info-title {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .info-content {
    grid-template-columns: 1fr;
  }

  .info-statement,
  .info-section,
  .info-callout,
  .info-principles,
  .info-section--wide,
  .info-success {
    grid-column: 1;
  }

  .info-statement {
    grid-template-columns: 1fr;
    padding: 1.5rem 0.5rem 2rem;
  }

  .info-statement-mark {
    width: 68px;
    height: 68px;
  }

  .info-section--wide {
    display: block;
    padding: 1.4rem;
  }

  .info-section--wide .info-index {
    margin-bottom: 0.8rem;
  }

  .info-section--wide h2 {
    margin-bottom: 0.75rem;
  }

  .info-detail-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .info-principles {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.seo-faq {
  width: min(980px, calc(100% - 2rem));
  margin: 5rem auto;
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seo-faq details {
  border: 1px solid rgba(234, 211, 150, 0.18);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  background: rgba(15, 16, 29, 0.72);
}

.seo-faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.seo-faq details p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .seo-faq-grid { grid-template-columns: 1fr; }
}

/* ── Search landing pages ──────────────────────────────────────────── */
.seo-resources {
  width: min(980px, calc(100% - 2rem));
  margin: 5rem auto;
}

.seo-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.seo-resource-grid a {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(22, 23, 39, 0.72), rgba(13, 14, 25, 0.68));
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.seo-resource-grid a:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.seo-resource-grid strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.seo-resource-grid span {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.seo-landing {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 1rem;
}

.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.seo-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.seo-landing-hero {
  margin-bottom: 1rem;
}

.seo-hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.seo-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.seo-copy-section {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 23, 39, 0.72), rgba(13, 14, 25, 0.68));
}

.seo-copy-section:first-child {
  grid-column: 1 / -1;
}

.seo-copy-section h2,
.seo-landing-faq h2,
.seo-related h2,
.seo-final-cta h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.seo-copy-section p,
.seo-copy-section li,
.seo-final-cta p {
  color: var(--text-muted);
  line-height: 1.75;
}

.seo-copy-section p + p,
.seo-copy-section ol {
  margin-top: 0.9rem;
}

.seo-copy-section ol {
  padding-left: 1.25rem;
}

.seo-copy-section li + li {
  margin-top: 0.55rem;
}

.seo-landing-faq,
.seo-related,
.seo-final-cta {
  margin-top: 3.5rem;
}

.seo-landing-faq .section-kicker {
  margin-bottom: 0.7rem;
}

.seo-related nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seo-related a {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
}

.seo-related a:hover,
.seo-related a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--border-strong);
}

.seo-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: radial-gradient(circle at 85% 10%, rgba(169, 145, 226, 0.14), transparent 45%), rgba(17, 18, 32, 0.78);
}

.seo-final-cta .section-kicker {
  margin-bottom: 0.6rem;
}

.footer-nav {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .seo-resource-grid,
  .seo-copy {
    grid-template-columns: 1fr;
  }

  .seo-copy-section:first-child {
    grid-column: 1;
  }

  .seo-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0 auto 0.75rem;
  width: fit-content;
  background: rgba(17, 18, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.app-nav-link {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.app-nav-link:hover {
  color: var(--text);
}

.app-nav-link.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .app-nav {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }

  .app-nav-link {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
    padding: 0.5rem 0.75rem;
  }
}

.feature-page-view {
  width: 100%;
}

.feature-page-view .app-intro h1 {
  margin: 0.35rem 0 0.25rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.feature-form .form-grid h3 {
  margin: 0.75rem 0 0;
  color: var(--accent-light, var(--accent));
}

.feature-result {
  min-width: 0;
  margin-top: 1.25rem;
  scroll-margin-top: 1.5rem;
}

.compatibility-report,
.compatibility-report-header {
  min-width: 0;
}

.feature-result dl {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
  gap: 0.65rem 1rem;
}

.feature-result dt {
  color: var(--text-muted);
  text-transform: capitalize;
}

.feature-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.feature-result ul {
  padding-left: 1.25rem;
}

@media (max-width: 520px) {
  #num-page-results-section .panel-header-row,
  .feature-result .panel-header-row {
    gap: 0.5rem;
  }

  #num-page-results-section .panel-header-row h2,
  .feature-result .panel-header-row h2 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.2;
  }

  #num-page-results-section .panel-header-row .btn,
  .feature-result .panel-header-row .btn {
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .feature-result dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .feature-result dd + dt {
    margin-top: 0.45rem;
  }
}

/* App header: keep navigation independent from the brand and account actions. */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "brand spacer auth"
    "menu menu menu";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.65rem;
}

.site-logo {
  grid-area: brand;
}

#auth-bar {
  grid-area: auth;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
  width: auto;
}

#app-nav {
  grid-area: menu;
  width: min(100%, 1050px);
  max-width: 100%;
  justify-self: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

#app-nav::-webkit-scrollbar {
  display: none;
}

#app-nav .app-nav-link {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.55rem clamp(0.65rem, 1.5vw, 1.1rem);
  white-space: nowrap;
}

#app-nav .app-nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand auth"
      "menu menu";
    column-gap: 0.5rem;
    row-gap: 0.65rem;
  }

  #app-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.4rem;
    border-radius: 14px;
    overflow: visible;
  }

  #app-nav .app-nav-link {
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.5rem 0.3rem;
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  #app-nav #nav-learn-page {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "auth"
      "menu";
    row-gap: 0.55rem;
  }

  #auth-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  #auth-user,
  #auth-guest {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
  }

  #auth-user {
    justify-content: flex-start;
    gap: 0.25rem;
  }

  #auth-user .credit-badge {
    padding: 0.3rem 0.45rem;
    font-size: 0.7rem;
  }

  #auth-bar #auth-user .btn-sm {
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
  }

  #app-nav .app-nav-link {
    min-height: 2.15rem;
    padding: 0.35rem 0.12rem;
    font-size: 0.68rem;
    line-height: 1.1;
  }

  #app-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
    padding: 0.3rem;
  }

  #app-nav #nav-learn-page {
    grid-column: auto;
  }

  #app-nav #nav-transits-page {
    grid-column: span 2;
  }

  #app-nav #nav-compatibility-page {
    white-space: nowrap;
    letter-spacing: -0.035em;
    font-size: 0.62rem;
  }

  .feature-page-view .app-intro h1 {
    font-size: 1.75rem;
  }
}
