/* =============================================================================
   pages.css — Consolidated page-specific styles (19 pages)
   Typography bumped for readability. Spacing adjusted on tight elements.
   Generated from 05-pages/*.css
   ============================================================================= */


/* ═══════════════════════════════════
   PAGE: ashtakavarga
   ═══════════════════════════════════ */

/* Summary Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  text-align: center;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 300;
}

.stat-value.teal {
  color: var(--cta);
}

.stat-value.favorable {
  color: var(--favorable);
}

.stat-value.challenging {
  color: var(--challenging);
}

.stat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Sarvashtakavarga Bar */
.sarva-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-bottom: 20px;
}

.sarva-cell {
  text-align: center;
  padding: 8px 4px;
  border-radius: 4px;
}

.sarva-cell .sarva-sign {
  font-size: 11px;
  color: inherit;
  opacity: 0.7;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.sarva-cell .sarva-val {
  font-size: 16px;
  font-weight: 600;
}

.sarva-strong {
  background: rgba(52, 211, 153, 0.15);
  color: var(--favorable);
}

.sarva-fav {
  background: rgba(45, 212, 191, 0.10);
  color: var(--cta);
}

.sarva-neutral {
  background: var(--bar-track);
  color: var(--text-3);
}

.sarva-weak {
  background: rgba(248, 113, 113, 0.10);
  color: var(--challenging);
}

/* Ashtakavarga Table */
.av-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.av-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.av-table th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding: 4px;
  text-align: center;
}

.av-table th.col-highlight {
  color: var(--cta);
  font-weight: 600;
  border-bottom: 2px solid var(--cta);
}

.av-table td {
  padding: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
}

.av-table .av-planet-cell {
  text-align: left;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}

.av-planet-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.av-table .av-total {
  font-weight: 600;
  color: var(--text-1);
  background: var(--card-bg);
}

.av-table .sarva-row td {
  border-top: 2px solid var(--border-strong);
  font-weight: 700;
}

/* Legend */
.av-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.av-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}

.av-legend-swatch {
  width: 16px;
  height: 12px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 560px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sarva-bar {
    grid-template-columns: repeat(6, 1fr);
  }

  .av-table {
    font-size: 11px;
  }
}


/* ═══════════════════════════════════
   PAGE: behavioral
   ═══════════════════════════════════ */

.behavioral-grid { width: 100%; overflow-x: auto; }
.behavioral-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.behavioral-table th { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); font-weight: 500; padding: 0 0 10px; text-align: left; border-bottom: 1px solid var(--border); }
.behavioral-table td { padding: 8px 0; font-size: 13px; color: var(--text-1); border-bottom: 1px solid var(--border); vertical-align: middle; }
.behavioral-table tr:last-child td { border-bottom: none; }

.tendency-name { font-weight: 500; margin-bottom: 2px; }
.tendency-category { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }

.cluster-header td { padding-top: 16px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); font-weight: 500; border-bottom: 1px solid var(--border-strong); }

.score-bar-cell { min-width: 120px; }
.score-bar-inline { display: flex; align-items: center; gap: 8px; }
.score-bar-track { flex: 1; height: 4px; border-radius: 2px; background: var(--bar-track); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; }
.score-bar-val { font-size: 12px; min-width: 24px; text-align: right; font-weight: 500; }

.dasha-mult { font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.trend-up { color: var(--caution); }
.trend-down { color: var(--favorable); }
.trend-flat { color: var(--text-3); }

.identity-mini { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.identity-mini-name { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }
.identity-mini-archetype { font-size: 13px; color: var(--cta); font-style: italic; font-family: var(--font-heading); }
.identity-mini-right { margin-left: auto; }


/* ═══════════════════════════════════
   PAGE: chart
   ═══════════════════════════════════ */

.chart-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.chart-identity-name { font-family: var(--font-heading); font-size: 24px; font-weight: 600; }
.chart-identity-meta { font-size: 12px; color: var(--text-2); }
.chart-identity-archetype { font-size: 14px; color: var(--cta); font-style: italic; font-family: var(--font-heading); }

.charts-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

.si-chart { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); border: 1px solid var(--border-strong); border-radius: 4px; overflow: hidden; }
.si-chart.d1 { width: 320px; height: 320px; }
.si-chart.d9 { width: 280px; height: 280px; }

.si-cell { position: relative; border: 1px solid var(--border); padding: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.si-cell .sign-abbr { position: absolute; top: 2px; left: 4px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.si-cell .house-num { position: absolute; top: 2px; right: 4px; font-size: 11px; color: var(--text-3); }
.si-cell.asc { border-left: 3px solid var(--cta); }

.si-center { grid-column: 2 / 4; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); background: var(--card-bg); }
.si-center .chart-type { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); }
.si-center .chart-name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--text-1); }
.si-center .chart-date { font-size: 12px; color: var(--text-2); }
.si-center .chart-asc { font-size: 12px; color: var(--cta); }

.si-planets { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; justify-content: center; }
.si-planets.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.si-glyph { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--text-1); }
.si-glyph .graha-dot { width: 5px; height: 5px; }

.graha-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.graha-chip .graha-dot { width: 8px; height: 8px; }

.aspect-row { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); line-height: 1.5; }
.aspect-row:last-child { border-bottom: none; }
.aspect-planet { font-weight: 600; }
.aspect-targets { color: var(--text-1); font-weight: 500; }


/* ═══════════════════════════════════
   PAGE: dasha
   ═══════════════════════════════════ */

/* Current Period Summary */
.dasha-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dasha-summary-main {
  flex: 1;
}

.dasha-chain {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text-1);
}

.dasha-dates {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.dasha-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dasha-summary-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Connector (between cards) */
.connector {
  text-align: center;
  padding: 8px 0;
}

.connector-line {
  width: 1px;
  height: 24px;
  margin: 0 auto;
  border-left: 2px dashed var(--border-strong);
}

/* Period Detail */
.period-detail-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text-1);
}

.period-detail-dates {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.quality-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.quality-bar-label {
  font-size: 12px;
  color: var(--text-3);
  min-width: 48px;
}

.quality-bar-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bar-track);
  overflow: hidden;
}

.quality-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--cta);
}

.quality-bar-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

/* Key Themes */
.themes-box {
  margin-bottom: 16px;
}

.theme-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.theme-planet {
  font-weight: 600;
  color: var(--text-1);
  min-width: 60px;
}

.theme-level {
  color: var(--text-3);
  min-width: 70px;
  font-size: 12px;
}

.theme-desc {
  color: var(--text-2);
}

/* Signals */
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-2);
}

.signal-icon {
  font-size: 12px;
  margin-top: 2px;
}

.signal-icon.favorable {
  color: var(--favorable);
}

.signal-icon.caution {
  color: var(--caution);
}

/* Timing Guidance / Advice */
.advice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.advice-item:last-child {
  border-bottom: none;
}

.advice-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.advice-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}


/* ═══════════════════════════════════
   PAGE: dashboard
   ═══════════════════════════════════ */

/* Dashboard Hero */
.dash-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dash-hero-left { flex-shrink: 0; }
.dash-hero-info { flex: 1; min-width: 0; }
.dash-hero-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.dash-hero-archetype {
  font-size: 13px;
  font-style: italic;
  color: var(--cta);
  margin-bottom: 6px;
}
.dash-hero-birth {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.dash-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Card header with score ring on right */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* CTA links ("View X →") */
.dash-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--cta);
  text-decoration: none;
  margin-top: 12px;
  font-weight: 500;
  transition: gap 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-link:hover {
  gap: 8px;
  text-decoration: none;
}
.dash-link-group {
  display: flex;
  gap: 16px;
}

/* Dasha chain display */
.dash-dasha-chain {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 8px;
}

/* Progress bars stack */
.dash-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.dash-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-progress-label {
  font-size: 11px;
  color: var(--text-3);
  width: 40px;
  flex-shrink: 0;
}
.dash-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bar-track);
  border-radius: 3px;
  overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gc, var(--cta));
  transition: width 0.5s ease;
}
.dash-progress-pct {
  font-size: 11px;
  color: var(--text-2);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Themes list */
.dash-themes {
  margin-bottom: 8px;
}
.dash-theme-item {
  font-size: 12px;
  color: var(--text-2);
  padding: 2px 0;
  padding-left: 12px;
  position: relative;
}
.dash-theme-item::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

/* Transit snapshot */
.dash-transit-date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.dash-transit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dash-transit-planet {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 70px;
  font-weight: 500;
}
.dash-transit-sign {
  color: var(--text-2);
  min-width: 50px;
}
.dash-guidance-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.dash-guidance-row.alert-success { background: rgba(52, 211, 153, 0.06); }
.dash-guidance-row.alert-warning { background: rgba(251, 191, 36, 0.06); }
.dash-guidance-row.alert-info { background: rgba(13, 148, 136, 0.06); }
.dash-guidance-icon { flex-shrink: 0; }

/* Domain rows — clickable */
.dash-domain-row {
  transition: transform 0.15s ease;
  border-radius: 4px;
  color: inherit;
}
.dash-domain-row:hover {
  transform: translateX(4px);
}

/* Yoga pills */
.dash-yoga-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

/* Milestone compact rows */
.dash-ms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.dash-ms-icon { font-size: 18px; flex-shrink: 0; }
.dash-ms-info { flex: 1; min-width: 0; }
.dash-ms-name { font-size: 13px; font-weight: 500; color: var(--text-1); }
.dash-ms-age { font-size: 11px; color: var(--text-3); }
.dash-ms-score {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}

/* Behavioral tendency rows */
.dash-behavior-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.dash-behavior-name {
  font-size: 12px;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-behavior-bar {
  width: 60px;
  height: 4px;
  background: var(--bar-track);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-behavior-fill {
  height: 100%;
  background: var(--indigo);
  border-radius: 2px;
}
.dash-behavior-score {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  width: 24px;
  text-align: right;
}
.dash-behavior-trend {
  font-size: 10px;
  color: var(--text-3);
}

/* Explore More grid */
.dash-explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dash-explore-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-explore-item:hover {
  background: color-mix(in srgb, var(--cta) 6%, transparent);
  border-color: var(--cta);
  color: var(--cta);
  text-decoration: none;
  transform: translateY(-1px);
}
.dash-explore-icon {
  font-size: 16px;
  opacity: 0.6;
}
.dash-explore-item:hover .dash-explore-icon {
  opacity: 1;
}

/* Dashboard narrative card */
.dash-narrative {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--cta);
}
.dash-narrative--challenging { border-left-color: var(--caution); }
.dash-narrative--favorable { border-left-color: var(--favorable); }
.dash-narrative-icon {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}
.dash-narrative-text {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.7;
}

/* D1 Mini-Chart in hero */
.dash-hero-chart {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.dash-hero-chart:hover { opacity: 1; }
.si-chart.mini {
  width: 150px;
  height: 150px;
}
.si-chart.mini .si-cell { padding: 2px; }
.si-chart.mini .sign-abbr { font-size: 8px; }
.si-chart.mini .house-num { font-size: 7px; }
.si-chart.mini .si-glyph { font-size: 8px; }
.si-chart.mini .si-center { font-size: 8px; }
.si-chart.mini .chart-type { font-size: 7px; }
.si-chart.mini .chart-asc { font-size: 7px; }
.si-chart.mini .chart-name { font-size: 8px; }
.si-chart.mini .chart-date { display: none; }
.si-chart.mini .graha-dot { width: 3px; height: 3px; }

/* Life Progress Timeline */
.life-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.life-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gc, var(--bar-track));
  transition: all 0.3s ease;
  cursor: default;
  min-width: 20px;
}
.life-seg.past {
  opacity: 0.75;
  filter: saturate(0.7);
}
.life-seg.future {
  opacity: 0.85;
  filter: saturate(0.5) brightness(1.1);
}
.life-seg.active {
  opacity: 1;
  filter: saturate(1.2);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.life-seg-label {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}
.life-seg-pulse {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: ls-pulse 2s ease-in-out infinite;
}
.life-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  padding: 0 2px;
}
.life-bar-now {
  font-weight: 500;
  color: var(--cta);
}

/* Domain grid — aligned columns */
.dash-domain-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.dash-domain-row {
  display: grid;
  grid-template-columns: 200px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: 4px;
  transition: transform 0.15s ease;
}
.dash-domain-row:hover {
  transform: translateX(4px);
}
.dash-domain-label {
  font-size: 13px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-domain-val {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* Hora mini-widget */
.dash-hora-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--badge-bg);
  border-radius: 6px;
  margin-top: 10px;
}
.dash-hora-planet {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.dash-hora-time {
  font-size: 11px;
  color: var(--text-3);
}

/* Dashboard entrance animations */
.dash-grid > .card {
  animation: ls-fade-up 0.5s ease-out both;
}
.dash-grid > .card:nth-child(1) { animation-delay: 0s; }
.dash-grid > .card:nth-child(2) { animation-delay: 0.06s; }
.dash-grid > .card:nth-child(3) { animation-delay: 0.12s; }
.dash-grid > .card:nth-child(4) { animation-delay: 0.18s; }
.dash-grid > .card:nth-child(5) { animation-delay: 0.24s; }
.dash-grid > .card:nth-child(6) { animation-delay: 0.30s; }
.dash-grid > .card:nth-child(7) { animation-delay: 0.36s; }
.dash-grid > .card:nth-child(8) { animation-delay: 0.42s; }
.dash-grid > .card:nth-child(9) { animation-delay: 0.48s; }
.dash-grid > .card:nth-child(10) { animation-delay: 0.54s; }

/* Responsive: hero stacks on mobile */
@media (max-width: 640px) {
  .dash-hero {
    flex-direction: column;
    text-align: center;
  }
  .dash-hero-chart { display: none; }
  .dash-hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .dash-hero-stats {
    justify-content: center;
  }
  .dash-domain-row {
    grid-template-columns: 120px 1fr 30px;
  }
}

/* Planet Table (used by Natal Chart page) */
.planet-table {
  width: 100%;
  border-collapse: collapse;
}

.planet-table th {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding: 0 0 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.planet-table th:last-child {
  text-align: right;
}

.planet-table td {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.planet-table tr:last-child td {
  border-bottom: none;
}

.planet-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.planet-sign {
  color: var(--text-2);
}

.planet-house {
  color: var(--text-3);
  font-size: 12px;
}

.planet-badges {
  display: flex;
  gap: 3px;
}

.planet-badges .badge {
  padding: 4px 8px;
  font-size: 11px;
}

/* Dasha-active row highlight */
.planet-table tr.dasha-active td {
  background: rgba(13, 148, 136, 0.04);
}

.planet-table tr.dasha-active td:first-child {
  box-shadow: inset 3px 0 0 var(--cta);
}

/* Current Period */
.period-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.period-row:last-of-type {
  margin-bottom: 0;
}

.period-level {
  font-size: 11px;
  color: var(--text-3);
  min-width: 60px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.period-planet {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  min-width: 56px;
}

.period-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.period-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--cta);
}

.period-fill.highlighted {
  background: linear-gradient(90deg, var(--cta), var(--accent-bright));
}

.period-pct {
  font-size: 12px;
  color: var(--text-3);
  min-width: 28px;
  text-align: right;
}

.period-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.period-quality {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.period-quality .q-label {
  color: var(--text-3);
}

.period-quality .q-val {
  font-weight: 600;
  color: var(--challenging);
}

.period-themes {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.period-themes span {
  font-size: 11px;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--badge-bg);
  border-radius: 3px;
}

/* Remedial Suggestions */
.remedial-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.remedial-item:last-child {
  border-bottom: none;
}

.remedial-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.remedial-body {
  flex: 1;
}

.remedial-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.remedial-planet {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.remedial-gem {
  font-size: 12px;
  color: var(--cta);
}

.remedial-reason {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}


/* ═══════════════════════════════════
   PAGE: domain
   ═══════════════════════════════════ */

.domain-header { display: flex; gap: 20px; align-items: flex-start; }
.domain-header-main { flex: 1; }
.domain-header-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.domain-header-summary { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.domain-header-right { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.planet-health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.planet-health-card { position: relative; overflow: hidden; }
.planet-health-card .top-accent { height: 3px; border-radius: 10px 10px 0 0; }
.planet-health-card .ph-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin: 10px 0 6px; }
.planet-health-card .ph-score { font-family: var(--font-heading); font-size: 22px; font-weight: 300; color: var(--text-1); margin-bottom: 8px; }
.planet-health-card .ph-score span { font-size: 14px; color: var(--text-3); }
.planet-health-card .ph-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.house-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.house-table th { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); font-weight: 500; padding: 0 0 8px; text-align: left; border-bottom: 1px solid var(--border); }
.house-table td { padding: 6px 0; font-size: 13px; color: var(--text-1); border-bottom: 1px solid var(--border); vertical-align: middle; }
.house-table tr:last-child td { border-bottom: none; }

.behavioral-overlay-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.behavioral-overlay-row:last-child { border-bottom: none; }
.bo-name { font-size: 13px; color: var(--text-1); min-width: 140px; }
.bo-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--bar-track); overflow: hidden; }
.bo-fill { height: 100%; border-radius: 2px; }
.bo-val { font-size: 12px; font-weight: 500; min-width: 30px; text-align: right; }

.career-timeline-wrap { display: flex; flex-direction: column; gap: 6px; }
.career-timeline-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.career-timeline-labels { display: flex; gap: 8px; }
.career-timeline-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); }

@media (max-width: 640px) {
  .planet-health-grid { grid-template-columns: 1fr; }
  .domain-header { flex-direction: column; }
  .bo-name { min-width: 100px; }
}


/* ═══════════════════════════════════
   PAGE: form
   ═══════════════════════════════════ */

/* Form Card */
.form-card {
  width: 100%;
  max-width: 440px;
  margin: 48px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 10px);
  padding: 32px 28px 28px;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-1);
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Input Groups */
.input-group {
  margin-bottom: 14px;
  position: relative;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-3);
  pointer-events: none;
  line-height: 1;
}

.input-field.muted-value {
  color: var(--text-2);
}

/* Form Divider */
.form-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Toggle Groups */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-text {
  font-size: 13px;
  color: var(--text-2);
}

.toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  transition: left 0.15s;
}

.toggle-off .toggle-knob {
  left: 2px;
}

.toggle-on .toggle-knob {
  left: 18px;
}

/* Segmented Control */
.segment-group-wrap {
  margin-bottom: 22px;
}

.segment-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.segment-group {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.segment-btn {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  border-right: 1px solid var(--border-strong);
  transition: background 0.1s, color 0.1s;
}

.segment-btn:last-child {
  border-right: none;
}

.segment-btn.active {
  background: var(--cta);
  color: #fff;
}

/* CTA Button (full-width) */
.btn-cta-full {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0D9488, #0F766E);
  box-shadow: 0 2px 16px rgba(13, 148, 136, 0.30);
  transition: box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.btn-cta-full:hover {
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.45);
}

/* Secondary Link */
.secondary-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 14px;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.secondary-link:hover {
  color: var(--text-2);
  text-decoration: none;
}

/* Form Footer */
.form-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 20px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Loading State Card */
.loading-card {
  width: 100%;
  max-width: 440px;
  margin: 24px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 10px);
  padding: 28px;
}

.loading-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 6px;
}

.loading-subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 18px;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.loading-card .progress-fill {
  animation: pulse-bar 2s ease-in-out infinite;
}

/* Step List */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.step-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
}

.step-done .step-icon {
  color: var(--cta);
  font-weight: 600;
}

.step-done .step-text {
  color: var(--text-2);
}

.step-pending .step-icon {
  color: var(--text-3);
  font-size: 12px;
}

.step-pending .step-text {
  color: var(--text-3);
}


/* ═══════════════════════════════════
   PAGE: gemstones
   ═══════════════════════════════════ */

/* Summary */
.gem-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.gem-summary-count.favorable {
  color: var(--favorable);
  font-weight: 600;
}

.gem-summary-count.challenging {
  color: var(--challenging);
  font-weight: 600;
}

.gem-summary-sep {
  color: var(--text-3);
}

/* Recommended Grid (3-column) */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gem-card:hover {
  border-color: var(--card-hover-border);
}

/* Top accent bar */
.gem-card-accent {
  height: 3px;
  background: var(--gc);
}

.gem-card-header {
  padding: 10px 12px 0;
}

.gem-card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
  padding: 4px 12px 0;
}

.gem-card-alt {
  font-size: 12px;
  color: var(--text-3);
  padding: 0 12px 8px;
}

/* Detail Grid (2-column) */
.gem-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 12px;
  margin-bottom: 8px;
}

.gem-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.gem-detail-grid .gem-detail-row {
  padding: 4px 4px;
}

.gem-detail-label {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gem-detail-value {
  color: var(--text-1);
  font-size: 12px;
  text-align: right;
}

/* Mantra */
.gem-mantra {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  padding: 8px 12px;
  margin: 4px 12px;
  border-radius: 6px;
  word-break: break-word;
}

body.dk .gem-mantra {
  background: rgba(13, 148, 136, 0.06);
}

body.lt .gem-mantra {
  background: rgba(13, 148, 136, 0.04);
}

/* Meta (mantra count, nakshatras, contraindications) */
.gem-meta {
  padding: 0 12px;
  margin-bottom: 8px;
}

.gem-meta .gem-detail-row {
  border-bottom: none;
  padding: 3px 0;
}

/* Reason */
.gem-reason {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Not Recommended Grid (2-column) */
.gem-warn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gem-warn-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px;
}

.gem-warn-card:hover {
  border-color: rgba(248, 113, 113, 0.15);
}

.gem-warn-banner {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

body.dk .gem-warn-banner {
  background: rgba(248, 113, 113, 0.12);
  color: var(--challenging);
}

body.lt .gem-warn-banner {
  background: rgba(220, 38, 38, 0.08);
  color: var(--challenging);
}

.gem-warn-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 6px;
}

.gem-warn-alt {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.gem-warn-planet {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.gem-warn-reason {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}


/* ═══════════════════════════════════
   PAGE: hora
   ═══════════════════════════════════ */

/* Top Bar */
.hora-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hora-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hora-date {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-1);
}

.hora-arrow {
  min-width: 32px;
  padding: 4px 8px;
}

/* Sun Times */
.hora-sun-times {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.sun-time-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sun-icon {
  font-size: 18px;
  color: var(--text-3);
}

.sun-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sun-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

/* Best Horas Grid (3-column) */
.best-horas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.best-hora-card {
  background: rgba(13, 148, 136, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.best-hora-planet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

.best-hora-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

.best-hora-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.best-hora-score {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-1);
}

/* Hora Row List */
.hora-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hora-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

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

.hora-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Quality-class left borders */
.hora-row--favorable {
  border-left-color: var(--favorable);
}

.hora-row--challenging {
  border-left-color: var(--challenging);
}

.hora-row--neutral {
  border-left-color: var(--text-3);
}

/* Rahu Kala special styling */
.hora-row--rahu-kala,
.hora-row-rahu {
  border-left-color: var(--challenging);
}

body.dk .hora-row-rahu {
  background: rgba(248, 113, 113, 0.06);
}

body.lt .hora-row-rahu {
  background: rgba(220, 38, 38, 0.04);
}

.hora-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hora-row-planet {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  min-width: 56px;
}

.hora-row-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

.hora-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hora-row-score {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-1);
  min-width: 24px;
  text-align: right;
}

.hora-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hora-keyword {
  font-size: 11px;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--badge-bg);
  border-radius: 3px;
}

/* Abhijit Banner */
.abhijit-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 2px 0;
  border-radius: 6px;
}

body.dk .abhijit-banner {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

body.lt .abhijit-banner {
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.abhijit-star {
  font-size: 16px;
  color: var(--cta);
}

.abhijit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cta);
}

.abhijit-desc {
  font-size: 12px;
  color: var(--text-2);
}

/* Night Collapsed */
.hora-night-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.hora-night-collapsed:hover {
  border-color: var(--card-hover-border);
}

.hora-night-label {
  font-size: 13px;
  color: var(--text-2);
}

.hora-night-arrow {
  font-size: 14px;
  color: var(--text-3);
}


/* ═══════════════════════════════════
   PAGE: index
   ═══════════════════════════════════ */

/* Hero */
.hero { display: flex; align-items: center; gap: 48px; max-width: 960px; margin: 0 auto; padding: 64px 24px; }
.hero-text { flex: 1; }
.hero-text h1 { font-family: var(--font-heading); font-size: 42px; font-weight: 300; line-height: 1.1; margin-bottom: 16px; letter-spacing: 2px; }
.hero-text p { font-size: 16px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; max-width: 440px; }
.hero-buttons { display: flex; gap: 12px; }

/* Orbital Visual */
.hero-visual { position: relative; width: 170px; height: 170px; flex-shrink: 0; }
.orb-container { position: relative; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--border-strong); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.orbit-1 { width: 80px; height: 80px; }
.orbit-2 { width: 120px; height: 120px; }
.orbit-3 { width: 160px; height: 160px; border-style: solid; border-color: var(--border); }
.orb-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-heading); font-size: 32px; color: var(--cta); }
.orb-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 50%; left: 50%; }
.orb-dot.primary { background: var(--cta); box-shadow: 0 0 8px rgba(13,148,136,0.5); animation: orbit-spin 8s linear infinite; }
.orb-dot.secondary { background: var(--venus); box-shadow: 0 0 6px rgba(212,207,196,0.3); animation: orbit-spin 12s linear infinite reverse; }

@keyframes orbit-spin {
  from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

/* Section titles */
.section-center { text-align: center; max-width: 960px; margin: 0 auto; padding: 48px 24px; }
.section-center h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.section-center .section-sub { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }

/* Three-card grid */
.insight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; padding: 0 24px 48px; }
.insight-card .card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--icon-bg); color: var(--icon-color); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.insight-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.insight-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Domain preview */
.domain-preview { max-width: 500px; margin: 0 auto; padding: 0 24px 48px; }

/* Footer */
/* How It Works steps */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.landing-step {
  text-align: center;
  padding: 20px;
}
.landing-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cta) 12%, transparent);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  margin: 0 auto 12px;
}
.landing-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}
.landing-step p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Sample Insight Teaser */
.landing-teaser {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.landing-teaser-card {
  padding: 20px;
}
.landing-teaser-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.landing-teaser-row:last-child { border-bottom: none; }
.landing-teaser-label {
  color: var(--text-3);
  font-weight: 500;
}
.landing-teaser-value {
  color: var(--text-1);
  font-weight: 500;
}
.landing-teaser-cta {
  text-align: center;
  margin-top: 16px;
}

/* Footer */
.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
}
.landing-footer-links {
  display: flex;
  gap: 16px;
}
.landing-footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 12px;
}
.landing-footer-links a:hover {
  color: var(--cta);
}
.landing-footer-copy {
  display: flex;
  gap: 8px;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .landing-steps { grid-template-columns: 1fr; gap: 12px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { flex-direction: column; text-align: center; padding: 40px 24px; }
  .hero-text h1 { font-size: 34px; }
  .hero-buttons { justify-content: center; }
  .insight-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-text h1 { font-size: 32px; }
  .hero-visual { width: 140px; height: 140px; }
}


/* ═══════════════════════════════════
   PAGE: life-profiles
   ═══════════════════════════════════ */

/* Shared Field Styles */
.lp-field {
  margin-bottom: 10px;
}

.lp-field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.lp-field-value {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Pills */
.lp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lp-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--text-2);
}

.lp-pill-indigo {
  background: rgba(129, 140, 248, 0.12);
  color: var(--indigo);
}

/* Spouse Card -- Two-Column Layout */
.lp-spouse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lp-spouse-right {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

/* Timing Rows */
.lp-timing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.lp-timing-label {
  color: var(--text-2);
  flex: 1;
}

.lp-timing-score {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-1);
}

.lp-timing-status {
  font-size: 12px;
  color: var(--text-3);
}

/* Foreign Settlement */
.lp-foreign-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.lp-foreign-meta {
  flex: 1;
}

.lp-foreign-analysis {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 8px;
}

.lp-foreign-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Contributing Factors */
.lp-factors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-factor {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.lp-factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.lp-factor-dot--favorable { background: var(--favorable); }
.lp-factor-dot--challenging { background: var(--challenging); }
.lp-factor-dot--teal { background: var(--cta); }

/* Past Life -- Archetype */
.lp-archetype {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--indigo);
  margin-bottom: 10px;
}

.lp-narrative {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Karmic Debts */
.lp-debt-item {
  padding: 8px 0 8px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--caution);
}

.lp-debt-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.lp-debt-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Lesson / Punya Blocks */
.lp-lesson-block {
  padding: 10px 14px;
  border-radius: 8px;
}

body.dk .lp-lesson-block {
  background: rgba(13, 148, 136, 0.04);
  border: 1px solid rgba(13, 148, 136, 0.08);
}

body.lt .lp-lesson-block {
  background: rgba(13, 148, 136, 0.03);
  border: 1px solid rgba(13, 148, 136, 0.06);
}

.lp-lesson-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 6px;
}


/* ═══════════════════════════════════
   PAGE: life-story
   ═══════════════════════════════════ */

/* 2-Column Layout */
.ls-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* Timeline Sidebar */
.ls-timeline {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 20px 0;
}

.ls-timeline-line {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 50%;
  width: 2.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--text-3) 10%, var(--text-3) 90%, transparent 100%);
  opacity: 0.3;
}

.ls-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  z-index: 1;
}

.ls-node-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--card-bg);
  border: 2.5px solid var(--border-strong);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ls-node:hover .ls-node-circle {
  transform: scale(1.15);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gc, var(--border-strong)) 25%, transparent);
}

/* Graha-colored node circles */
.ls-node[class*="graha-"] .ls-node-circle {
  border-color: var(--gc);
  color: var(--gc);
}

.ls-node-age {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

/* Past nodes — readable, slightly receded */
.ls-node.past {
  opacity: 0.7;
}

/* Current node — planet color + scale */
.ls-node.current .ls-node-circle {
  border-color: var(--gc, var(--cta));
  color: var(--gc, var(--accent-bright));
  box-shadow: 0 0 12px color-mix(in srgb, var(--gc, var(--cta)) 30%, transparent);
  transform: scale(1.15);
}

.ls-node.current {
  opacity: 1;
}

/* Pulsing dot on current node */
.ls-node-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  top: 4px;
  right: 20px;
  animation: ls-pulse 2s ease-in-out infinite;
  z-index: 3;
}

@keyframes ls-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.3; }
}

/* Future node — readable, slightly dimmed */
.ls-node.future {
  opacity: 0.6;
}

/* Chapter Cards */
.ls-chapters {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes ls-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ls-chapter {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  animation: ls-fade-up 0.5s ease-out both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Stagger entrance by 80ms per card */
.ls-chapter:nth-child(1) { animation-delay: 0s; }
.ls-chapter:nth-child(2) { animation-delay: 0.08s; }
.ls-chapter:nth-child(3) { animation-delay: 0.16s; }
.ls-chapter:nth-child(4) { animation-delay: 0.24s; }
.ls-chapter:nth-child(5) { animation-delay: 0.32s; }
.ls-chapter:nth-child(6) { animation-delay: 0.40s; }
.ls-chapter:nth-child(7) { animation-delay: 0.48s; }
.ls-chapter:nth-child(8) { animation-delay: 0.56s; }
.ls-chapter:nth-child(9) { animation-delay: 0.64s; }

/* Graha-colored left border + top gradient strip */
.ls-chapter[class*="graha-"] {
  border-left: 4px solid var(--gc);
  position: relative;
  overflow: hidden;
}
.ls-chapter[class*="graha-"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gc) 0%, transparent 80%);
}

.ls-chapter:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ls-chapter-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.ls-chapter-period {
  font-size: 13px;
  font-style: italic;
  color: var(--cta);
  margin-bottom: 10px;
}

.ls-chapter-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ls-chapter-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Turning point marker */
.ls-chapter.turning-point {
  border-left: 3px solid var(--caution);
}

.ls-turning-point-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--caution);
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.06);
  border-radius: 4px;
  display: inline-block;
}

/* Past chapter — subtle heading dim */
.ls-chapter.past .ls-chapter-heading,
.ls-chapter.past a.ls-chapter-heading {
  color: var(--text-2);
}

/* Current chapter highlight — prominent "you are here" */
.ls-chapter.current-chapter {
  border-left: 4px solid var(--gc, var(--cta));
  box-shadow: 0 0 24px color-mix(in srgb, var(--gc, var(--cta)) 20%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--gc, var(--cta)) 12%, transparent);
  background: color-mix(in srgb, var(--gc, var(--cta)) 3%, var(--card-bg));
  position: relative;
}

/* "NOW" badge on current chapter */
.ls-current-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--gc, var(--cta));
  color: var(--card-bg);
}

/* Current chapter hover */
.ls-chapter.current-chapter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--gc, var(--cta)) 25%, transparent);
}

/* Future chapter — slightly dimmed, dashed border */
.ls-chapter.future-chapter {
  opacity: 0.75;
  border-left-style: dashed;
}

/* Sub-Chapter Accordion */
.ls-sub-chapter {
  margin-top: 14px;
  padding: 12px;
  background: rgba(13, 148, 136, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(13, 148, 136, 0.08);
}

.ls-sub-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-bright);
  cursor: pointer;
  list-style: none;
}

.ls-sub-title::-webkit-details-marker {
  display: none;
}

.ls-sub-title::before {
  content: '\25B8 ';
  font-size: 12px;
  margin-right: 4px;
}

details[open] .ls-sub-title::before {
  content: '\25BE ';
}

.ls-sub-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Story Overview Card */
.ls-overview {
  padding: 20px;
  animation: ls-fade-up 0.4s ease-out both;
}
.ls-overview-theme {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ls-overview-arc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ls-recurring-details {
  margin-top: 8px;
}
.ls-recurring-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-recurring-details > summary::-webkit-details-marker {
  display: none;
}
.ls-recurring-details > summary::before {
  content: '\25B8';
  font-size: 11px;
  color: var(--text-3);
}
.ls-recurring-details[open] > summary::before {
  content: '\25BE';
}
.ls-overview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}
.ls-recurring-count {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  background: var(--border-strong);
  color: var(--text-3);
}
.ls-overview-recurring {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  max-height: 120px;
  overflow-y: auto;
}

/* Chapter title (italic subtitle) */
.ls-chapter-title {
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 4px;
}

/* Elevated behavior pills */
.ls-behaviors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ls-behavior-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(129, 140, 248, 0.1);
  color: var(--indigo, #818CF8);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.ls-behavior-pill:hover {
  background: rgba(129, 140, 248, 0.2);
  transform: translateY(-1px);
}

/* Clickable heading links */
a.ls-chapter-heading {
  text-decoration: none;
  color: var(--text-1);
  transition: color 0.15s;
  display: block;
}
a.ls-chapter-heading:hover {
  color: var(--gc, var(--cta));
}
.ls-chapter.past a.ls-chapter-heading:hover {
  color: var(--gc, var(--cta));
}

/* Clickable domain theme pills */
.yoga-pill-link {
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}
.yoga-pill-link:hover {
  background: rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ls-chapter,
  .ls-overview {
    animation: none;
  }
  .ls-chapter:hover,
  .ls-node:hover .ls-node-circle {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .ls-layout {
    flex-direction: column;
  }

  .ls-timeline {
    width: 100%;
    flex-direction: row;
    padding: 0;
    gap: 0;
  }

  .ls-timeline-line {
    top: 50%;
    bottom: auto;
    left: 38px;
    right: 38px;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }
}


/* ═══════════════════════════════════
   PAGE: milestones
   ═══════════════════════════════════ */

/* Summary Card */
.ms-summary {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ms-summary-main {
  flex: 1;
}

.ms-summary-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
}

.ms-summary-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Event Cards */
.ms-event {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ms-event-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.ms-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.ms-event-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ms-event-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

.ms-event-center {
  flex: 1;
  min-width: 160px;
}

.ms-event-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  justify-content: flex-end;
}

.ms-score {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-1);
}

/* Expanded Detail */
.ms-expanded {
  border-left: 3px solid var(--cta);
}

.ms-detail {
  width: 100%;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-detail-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.ms-detail-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.ms-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Responsive */
@media (max-width: 960px) {
  .ms-event {
    flex-direction: column;
    align-items: flex-start;
  }

  .ms-event-center {
    width: 100%;
  }

  .ms-event-right {
    justify-content: flex-start;
  }
}


/* ═══════════════════════════════════
   PAGE: profile
   ═══════════════════════════════════ */

/* Profile Header */
.prof-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prof-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cta), var(--accent-bright));
}

.prof-info {
  flex: 1;
}

.prof-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 6px;
}

.prof-email {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.prof-since {
  font-size: 13px;
  color: var(--text-3);
}

.prof-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Section Header (title + view toggle) */
.prof-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Chart Grid (2-column) */
.prof-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prof-chart-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s;
}

.prof-chart-card:hover {
  border-color: var(--card-hover-border);
}

.prof-chart-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  background: var(--gc, var(--cta));
}

.prof-chart-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
}

.prof-chart-birth {
  font-size: 12px;
  color: var(--text-3);
}

.prof-chart-viewed {
  font-size: 11px;
  color: var(--text-3);
}

.prof-chart-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.prof-chart-menu:hover {
  background: var(--badge-bg);
  color: var(--text-1);
}

/* Add New Card (dashed border) */
.prof-chart-add {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  gap: 8px;
}

.prof-chart-add:hover {
  border-color: var(--cta);
}

.prof-add-icon {
  font-size: 32px;
  color: var(--text-3);
  font-weight: 300;
  line-height: 1;
}

.prof-add-text {
  font-size: 13px;
  color: var(--text-3);
}

/* Recent Activity */
.prof-activity {
  display: flex;
  flex-direction: column;
}

.prof-activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.prof-activity-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.prof-activity-text {
  flex: 1;
  color: var(--text-2);
}

.prof-activity-time {
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Quick Actions */
.prof-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prof-text-link {
  font-size: 13px;
  color: var(--cta);
  text-decoration: none;
}

.prof-text-link:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════
   PAGE: soul-gap
   ═══════════════════════════════════ */

/* Summary Card */
.sg-summary-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 10px;
}

.sg-stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.sg-summary-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Comparison Table */
.sg-table {
  width: 100%;
}

.sg-table-header {
  display: grid;
  grid-template-columns: 90px 80px 90px 28px 80px 90px 1fr;
  gap: 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.sg-row {
  display: grid;
  grid-template-columns: 90px 80px 90px 28px 80px 90px 1fr;
  gap: 6px;
  align-items: center;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-1);
}

.sg-cell-planet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.sg-cell-sign {
  color: var(--text-2);
}

.sg-arrow-col {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

.sg-cell-gap {
  display: flex;
  align-items: center;
}

/* Dignity Badges */
.sg-dignity {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
}

.sg-dignity--favorable {
  color: var(--favorable);
  background: rgba(52, 211, 153, 0.10);
}

.sg-dignity--challenging {
  color: var(--challenging);
  background: rgba(248, 113, 113, 0.10);
}

.sg-dignity--neutral {
  color: var(--text-3);
  background: var(--badge-bg);
}

.sg-dignity--null {
  color: var(--text-3);
  font-style: italic;
}

/* Interpretation Sub-Row */
.sg-interp-row {
  padding: 0 0 10px 96px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

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

/* Vargottama Card */
.sg-vargottama-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Soul Alignment Card */
.sg-alignment-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}


/* ═══════════════════════════════════
   PAGE: synastry
   ═══════════════════════════════════ */

/* Person Cards Row */
.syn-persons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.syn-person {
  flex: 1;
  text-align: center;
}

.syn-person-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.syn-person-birth {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.syn-person-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.syn-vs {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--badge-bg);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* Ashtakoota Compatibility */
.syn-koota-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.syn-koota-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.syn-koota-max {
  font-size: 14px;
  color: var(--text-3);
  margin-top: -4px;
}

.syn-koota-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.syn-koota-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

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

.syn-koota-name {
  font-size: 13px;
  color: var(--text-1);
  min-width: 90px;
  font-weight: 500;
}

.syn-koota-obtained {
  font-size: 12px;
  color: var(--text-2);
  min-width: 40px;
  text-align: center;
  font-family: var(--font-mono);
}

.syn-koota-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bar-track);
  overflow: hidden;
  min-width: 60px;
}

.syn-koota-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* Planet Overlay Table */
.syn-overlay-wrap {
  overflow-x: auto;
}

.syn-overlay-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.syn-overlay-table th {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding: 0 0 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.syn-overlay-table td {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.syn-overlay-table tr:last-child td {
  border-bottom: none;
}

.syn-overlay-table .planet-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.syn-arrow {
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
  width: 30px;
}

.syn-keywords {
  color: var(--text-2);
  font-size: 12px;
}

/* Highlighted row (Mars) */
.syn-highlighted {
  border-left: 3px solid var(--cta);
}

.syn-highlighted td {
  background: rgba(13, 148, 136, 0.04);
}

/* Alert Stack */
.syn-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.syn-alerts .alert-icon {
  font-size: 6px;
  line-height: 14px;
}

/* Responsive */
@media (max-width: 960px) {
  .syn-persons {
    flex-direction: column;
  }

  .syn-koota-layout {
    flex-direction: column;
  }

  .syn-koota-score {
    flex-direction: row;
    gap: 12px;
  }
}


/* ═══════════════════════════════════
   PAGE: transit
   ═══════════════════════════════════ */

.transit-summary { display: flex; gap: 20px; align-items: flex-start; }
.transit-summary-main { flex: 1; }
.transit-heading { font-family: var(--font-heading); font-size: 24px; font-weight: 400; margin-bottom: 6px; }
.transit-date { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.transit-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.transit-summary-right { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.transit-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.transit-row:last-child { border-bottom: none; }
.transit-planet { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-1); min-width: 80px; }
.transit-in { font-size: 12px; color: var(--text-3); }
.transit-sign { font-size: 13px; color: var(--text-2); min-width: 60px; }
.transit-house { margin-left: 2px; }
.transit-desc { flex: 1; font-size: 13px; color: var(--text-2); }

.guidance-stack { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .transit-summary { flex-direction: column; }
  .transit-row { flex-wrap: wrap; gap: 6px; }
  .transit-planet { min-width: 70px; }
  .transit-sign { min-width: 50px; }
}


/* ═══════════════════════════════════
   PAGE: vastu
   ═══════════════════════════════════ */

/* Compass */
.vastu-compass-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.vastu-compass {
  position: relative;
  width: 260px;
  height: 260px;
}

.vastu-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vastu-center-icon {
  font-size: 32px;
}

.vastu-center-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-2);
}

/* Directional Nodes (62x62 circles) */
.vastu-node {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  transition: border-color 0.2s;
}

.vastu-node--favorable {
  border-color: var(--favorable);
}

body.dk .vastu-node--favorable {
  background: rgba(52, 211, 153, 0.06);
}

body.lt .vastu-node--favorable {
  background: rgba(5, 150, 105, 0.04);
}

.vastu-node--neutral {
  border-color: var(--cta);
}

body.dk .vastu-node--neutral {
  background: rgba(13, 148, 136, 0.06);
}

body.lt .vastu-node--neutral {
  background: rgba(13, 148, 136, 0.04);
}

.vastu-node--challenging {
  border-color: var(--challenging);
}

body.dk .vastu-node--challenging {
  background: rgba(248, 113, 113, 0.06);
}

body.lt .vastu-node--challenging {
  background: rgba(220, 38, 38, 0.04);
}

/* Compass node positioning (260×260 container, 62×62 nodes) */
.vastu-node { position: absolute; }
.vastu-node-pos-N  { top: 0;    left: 50%;  transform: translateX(-50%); }
.vastu-node-pos-NE { top: 14px; right: 0; }
.vastu-node-pos-E  { top: 50%;  right: 0;   transform: translateY(-50%); }
.vastu-node-pos-SE { bottom: 14px; right: 0; }
.vastu-node-pos-S  { bottom: 0; left: 50%;  transform: translateX(-50%); }
.vastu-node-pos-SW { bottom: 14px; left: 0; }
.vastu-node-pos-W  { top: 50%;  left: 0;    transform: translateY(-50%); }
.vastu-node-pos-NW { top: 14px; left: 0; }

.vastu-node-dir {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-1);
}

.vastu-node-planet {
  font-size: 11px;
  color: var(--text-3);
}

/* Room Recommendations Table */
.vastu-room-table {
  display: flex;
  flex-direction: column;
}

.vastu-room-row {
  display: grid;
  grid-template-columns: 140px 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

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

.vastu-room-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-1);
}

.vastu-room-icon {
  font-size: 16px;
}

.vastu-room-dirs {
  display: flex;
  gap: 4px;
}

.vastu-room-reason {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.4;
}

/* Sleeping Direction */
.vastu-sleep-row {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.vastu-sleep-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vastu-sleep-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vastu-sleep-explain {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Property Timing */
.vastu-property {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vastu-property-main {
  font-size: 14px;
  color: var(--text-1);
}

.vastu-property-main strong {
  color: var(--cta);
}

.vastu-property-label {
  color: var(--text-3);
}

.vastu-property-notes {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}


/* ═══════════════════════════════════
   PAGE: yoga
   ═══════════════════════════════════ */

/* Yoga Identity */
.yoga-identity {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.yoga-identity-main {
  flex: 1;
}

.yoga-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}

.yoga-identity-main .badge {
  margin-bottom: 12px;
}

.yoga-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.5;
}

.yoga-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.yoga-identity-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

/* Formation Conditions */
.condition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.condition-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.condition-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(52, 211, 153, 0.12);
  color: var(--favorable);
}

.condition-text {
  flex: 1;
  color: var(--text-1);
}

.condition-actual {
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
}

/* Strength Factors Grid */
.strength-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.strength-header {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.strength-header.favorable {
  color: var(--favorable);
}

.strength-header.challenging {
  color: var(--challenging);
}

/* Assessment Block */
.assessment-block {
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.6;
  padding: 12px 16px;
  border-left: 3px solid var(--cta);
  background: rgba(13, 148, 136, 0.04);
  border-radius: 0 6px 6px 0;
}

/* Activation Bar Chart */
.activation-chart {
  padding-top: 8px;
}

.activation-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
}

.activation-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.activation-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 4px 4px 0 0;
  background: var(--accent-bright);
  opacity: 0.3;
  transition: opacity 0.2s;
}

.activation-bar.current {
  opacity: 0.8;
  background: var(--caution);
}

.activation-bar.peak {
  opacity: 1;
  background: var(--cta);
}

.activation-tag {
  position: absolute;
  top: -4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-caution {
  background: rgba(251, 191, 36, 0.15);
  color: var(--caution);
}

.tag-teal {
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-bright);
}

.activation-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
  text-align: center;
}

/* Domain Impact Cards */
.domain-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.domain-impact-card {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--badge-bg);
  border-left: 3px solid transparent;
}

.domain-impact-name {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.domain-impact-pts {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
}

/* Responsive */
@media (max-width: 960px) {
  .yoga-identity {
    flex-direction: column;
  }

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

  .domain-impact-grid {
    grid-template-columns: 1fr;
  }
}
