/* ==========================================================================
   Shree Lakshmi Astro - Premium Dark Theme CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;500;600;700&family=Marcellus&family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  
  /* Modern Indian Luxury Palette */
  --bg-space: #FAF5EC;          /* Warm Ivory / Sandstone background */
  --bg-surface: #FFFDF9;        /* Handmade paper / Polished Marble */
  --bg-panel: #F3EBE0;          /* Sandstone Shadow */
  --bg-glass: rgba(250, 245, 236, 0.85);
  
  /* Accents */
  --saffron-orange: #C8A261;    /* Burnished Gold */
  --saffron-gold: #9E3324;      /* Deep Vermillion (Primary Actions) */
  --divine-gold: #C8A261;       /* Burnished Gold */
  --accent-purple: #211C4D;     /* Royal Indigo */
  --accent-blue: #488286;       /* Muted Turquoise */
  
  --auric-glow: rgba(200, 162, 97, 0.05);
  --line-gold: rgba(112, 99, 77, 0.12); /* Hairline sandstone border */
  
  /* Text */
  --ink-light: #211C4D;         /* Royal Indigo text */
  --ink-dim: #70634D;           /* Muted Bronze text */
  --ink-dark: #211C4D;          
  
  /* Utilities */
  --maroon: #9E3324;
  --green-emerald: #488286;     /* Muted Turquoise as success */
  --emerald-glow: rgba(72, 130, 134, 0.05);
  --blue-sky: #488286;
  
  /* UI Layout Variables */
  --line: rgba(112, 99, 77, 0.12);
  --shadow-gold: 0 4px 20px rgba(112, 99, 77, 0.08), 0 1px 3px rgba(112, 99, 77, 0.04);

  --ink-deep: #211C4D;
  --ink-deep-soft: #70634D;
  --gold-foil: #C8A261;
  --gold-foil-dim: rgba(200, 162, 97, 0.65);
  --hairline-on-deep: rgba(112, 99, 77, 0.12);
  --shadow-deep: 0 20px 50px rgba(112, 99, 77, 0.1);

  /* Material-style aliases referenced by app.js at runtime */
  --color-primary: var(--saffron-gold);
  --color-on-primary: #FFFFFF;
  --color-error: #9E3324;
  --color-outline: var(--line-gold);
  --color-surface-variant: var(--bg-panel);
  --color-on-surface-variant: var(--ink-dim);

  --work-left: 3.8fr;
  --work-mid: 4.4fr;
  --work-right: 3.8fr;
  --work-top: 1;
  --work-bottom: 1;
  --worksheet-card-min: 0px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Shared Page Layout & Utilities (DRY)
   ========================================================================== */
.page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
}
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-header.center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}
.page-title {
  font-family: 'Marcellus', serif;
  color: var(--ink-light);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-subtitle {
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Text Utilities */
.text-muted { color: var(--ink-dim); }
.status-success { color: var(--green-emerald); }
.status-error { color: var(--saffron-gold); }
.status-warning { color: #f59e0b; }


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

body {
  min-height: 100vh;
  background-color: var(--bg-space);
  background-image: 
    radial-gradient(var(--saffron-orange) 0.5px, transparent 0.5px),
    linear-gradient(rgba(112, 99, 77, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 99, 77, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  color: var(--ink-light);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
}

body.has-result {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-space);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-panel);
  border-radius: 4px;
  border: 2px solid var(--bg-space);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--saffron-gold);
}

/* ==========================================================================
   Global Navbar
   ========================================================================== */
.global-navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text {
  font-family: 'Marcellus', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.logo-text::before {
  display: none; /* Replaced by Lord Ganesha logo */
}

.navbar-ganesha {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(158, 51, 36, 0.25));
  margin-right: -2px; /* Pull it slightly closer to the text */
}

.logo-text .highlight {
  color: var(--saffron-gold); /* Vermillion highlight */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}

.nav-btn, .nav-link-btn {
  background: transparent !important;
  border: none !important;
  color: var(--ink-dim);
  padding: 8px 0;
  font-family: 'Marcellus', serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-btn:hover, .nav-link-btn:hover {
  color: var(--saffron-orange);
  background: transparent;
  transform: none;
  box-shadow: none;
}

.nav-btn.active, .nav-link-btn.active {
  color: var(--ink-light) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-btn.active::after, .nav-link-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--saffron-orange);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.matchmaking-page {
  background: #f7f4ef;
  color: #241f1a;
}

.match-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.match-nav {
  margin-bottom: 28px;
}

.match-hero {
  max-width: 920px;
  padding: 34px 0 24px;
}

.match-hero h1 {
  margin: 0 0 14px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.match-hero p {
  color: #685a4d;
  line-height: 1.65;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.match-form-card,
.match-info-card,
.match-result,
.consult-match-card {
  background: #fff;
  border: 1px solid #e5ded6;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(63, 45, 32, 0.08);
}

.match-form-card,
.match-info-card,
.match-result {
  padding: 24px;
}

.match-form-head h2,
.match-info-card h2,
.match-section h3,
.consult-match-card h3 {
  margin: 0 0 8px;
  color: #241f1a;
}

.match-form-head p,
.match-info-card p,
.consult-match-card p {
  margin-top: 0;
  color: #6f6153;
  line-height: 1.6;
}

.match-people-grid,
.match-snapshot-grid,
.match-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.match-person {
  border: 1px solid #eadfce;
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  background: #fffdf8;
}

.match-person legend {
  padding: 0 8px;
  font-weight: 800;
  color: #8c3d25;
}

.match-person label,
.consult-match-card label {
  display: block;
  margin-bottom: 12px;
  color: #463b31;
  font-size: 13px;
  font-weight: 800;
}

.match-person input,
.match-person select,
.consult-match-card textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: #241f1a;
}

.match-place-wrap {
  position: relative;
}

.match-place-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(63, 45, 32, 0.16);
}

.match-place-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee6dd;
  border-radius: 0;
  background: #fff;
  color: #241f1a;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.match-place-option:last-child {
  border-bottom: 0;
}

.match-place-option:hover,
.match-place-option:focus {
  background: #fff7e8;
  outline: none;
}

.match-place-option strong,
.match-place-option span,
.match-selected-place strong,
.match-selected-place span {
  display: block;
}

.match-place-option strong,
.match-selected-place strong {
  font-size: 13px;
  line-height: 1.35;
}

.match-place-option span,
.match-selected-place span {
  margin-top: 4px;
  color: #75685c;
  font-size: 12px;
  line-height: 1.35;
}

.match-place-loading,
.match-place-empty,
.match-selected-place {
  padding: 12px;
  color: #6f6153;
  font-size: 13px;
  line-height: 1.4;
}

.match-selected-place {
  background: #eef6ef;
  color: #276b3b;
}

.consult-match-card textarea {
  min-height: 92px;
  resize: vertical;
}

.match-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.btn-secondary {
  min-height: 48px;
  border: 1px solid #8c3d25;
  border-radius: 8px;
  background: #fff;
  color: #8c3d25;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.match-info-card ul,
.match-summary-grid ul {
  margin: 12px 0;
  padding-left: 20px;
  color: #5f5348;
  line-height: 1.75;
}

.match-note,
.match-disclaimer {
  border-left: 3px solid #d6812d;
  background: #fff7e8;
  padding: 12px 14px;
  border-radius: 6px;
}

.match-result {
  margin-top: 24px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #eee6dd;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.result-topline h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 8px solid #d6812d;
  background: #fff8eb;
  flex: 0 0 auto;
}

.score-ring strong {
  font-size: 36px;
  line-height: 1;
}

.score-ring span {
  color: #6f6153;
  font-weight: 800;
}

.match-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #eee6dd;
  margin-bottom: 20px;
}

.match-tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6f6153;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
}

.match-tab.active {
  border-bottom-color: #d6812d;
  color: #241f1a;
}

.match-tab-panel {
  display: none;
}

.match-tab-panel.active {
  display: block;
}

.match-chart-card,
.dosha-card {
  border: 1px solid #eadfce;
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
}

.match-chart-card h3,
.dosha-card h4 {
  margin: 0 0 12px;
}

.match-chart-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.match-chart-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee6dd;
  padding-top: 8px;
}

.match-chart-card dt {
  color: #76695e;
  font-weight: 800;
}

.match-chart-card dd {
  margin: 0;
  text-align: right;
}

.match-section {
  margin-top: 26px;
}

.koota-table {
  display: grid;
  border: 1px solid #eadfce;
  border-radius: 8px;
  overflow: hidden;
}

.koota-row {
  display: grid;
  grid-template-columns: 150px 80px 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid #eee6dd;
}

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

.koota-row em,
.dosha-card span {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.koota-row em.good,
.severity-none span {
  background: #edf7ee;
  color: #2c6d39;
}

.koota-row em.review,
.severity-medium span {
  background: #fff3d8;
  color: #8b5a00;
}

.koota-row em.concern,
.severity-high span {
  background: #ffe7e1;
  color: #9d321d;
}

.koota-row p {
  margin: 0;
  color: #6f6153;
}

.dosha-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dosha-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.dosha-card p {
  color: #6f6153;
  line-height: 1.55;
}

.dosha-card strong {
  color: #463b31;
  font-size: 13px;
}

.consult-match-card {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  background: #fff9ed;
}

.dossier-note {
  margin-top: 0;
  color: #6f6153;
  line-height: 1.6;
}

/* ==========================================================================
   Chart Pair Section — Professional Side-by-Side Chart Layout
   ========================================================================== */
.chart-pair-section {
  padding: 0;
}

.chart-pair-header {
  margin-bottom: 16px;
}

.chart-pair-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #241f1a;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-pair-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #b5860d 0%, #e8a820 100%);
}

.chart-pair-purpose {
  font-size: 0.82rem;
  color: #8b7355;
  margin: 0;
  padding-left: 12px;
}

.chart-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chart-pair-block {
  background: #fffdf8;
  border: 1.5px solid #e8d9c0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(181, 134, 13, 0.06);
}

.chart-pair-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #b5860d;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e4cc;
}

.chart-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chart-meta-pill {
  font-size: 0.75rem;
  background: #fef3dc;
  border: 1px solid #e8d0a0;
  border-radius: 20px;
  padding: 2px 9px;
  color: #5a4520;
  white-space: nowrap;
}

.chart-meta-pill strong {
  color: #8b6914;
  font-weight: 700;
}

.chart-pair-block .north-chart {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 0;
}

.chart-empty-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #d4bc92;
  border-radius: 8px;
  background: #faf6ee;
  color: #a89070;
  font-size: 0.8rem;
}

@media (max-width: 680px) {
  .chart-pair-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}


.dossier-card,
.planet-position-card {
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.dossier-card h4,
.planet-position-card h4 {
  margin: 0 0 10px;
  color: #241f1a;
}

.dossier-card p {
  color: #6f6153;
  line-height: 1.5;
  margin: 8px 0;
}

.dossier-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.dossier-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eee6dd;
  padding-top: 8px;
}

.dossier-card dt {
  color: #76695e;
  font-weight: 800;
}

.dossier-card dd {
  margin: 0;
  text-align: right;
}

.dossier-card pre {
  max-height: 220px;
  overflow: auto;
  border-radius: 8px;
  background: #f8f1e8;
  color: #463b31;
  padding: 12px;
  white-space: pre-wrap;
}

.planet-position-table {
  display: grid;
  grid-template-columns: 90px 90px 64px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #eee6dd;
  border-radius: 8px;
}

.planet-position-table div {
  border-bottom: 1px solid #eee6dd;
  padding: 9px;
  color: #5f5348;
  font-size: 13px;
}

.planet-position-table div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.planet-position-head {
  background: #fff7e8;
  color: #241f1a !important;
  font-weight: 800;
}

.consultant-booking-panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid #eadfce;
  padding-top: 18px;
}

.booking-hero {
  padding-bottom: 12px;
}

.booking-page-card {
  display: grid;
  gap: 18px;
}

.booking-page-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.booking-profile,
.booking-summary {
  min-height: 150px;
}

.booking-form-block {
  display: grid;
  gap: 14px;
  border-top: 1px solid #eadfce;
  padding-top: 18px;
}

.booking-form-block label {
  display: block;
  color: #463b31;
  font-size: 13px;
  font-weight: 800;
}

.booking-form-block textarea,
.booking-form-block select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: #241f1a;
}

.booking-form-block textarea {
  min-height: 120px;
  resize: vertical;
}

.empty-booking-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
}

.empty-booking-state h2,
.empty-booking-state p {
  margin: 0;
}

.consultant-booking-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.consultant-profile-mini,
.match-booking-summary {
  border: 1px solid #eadfce;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.consultant-profile-mini {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.consultant-profile-mini img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0e5d8;
}

.consultant-profile-mini h4,
.match-booking-summary h4 {
  margin: 0 0 8px;
  color: #241f1a;
}

.consultant-profile-mini p,
.match-booking-summary p {
  margin: 6px 0;
  color: #6f6153;
  line-height: 1.5;
}

.booking-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-contact-grid label {
  color: #463b31;
  font-size: 13px;
  font-weight: 800;
}

.booking-contact-grid input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: #241f1a;
}

.queue-ok-box,
.queue-full-box {
  border-radius: 8px;
  padding: 13px 14px;
  line-height: 1.5;
  font-weight: 700;
}

.queue-ok-box {
  border: 1px solid #cfe8d3;
  background: #eef8f0;
  color: #276b3b;
}

.queue-full-box {
  border: 1px solid #f0d8a2;
  background: #fff3d8;
  color: #805500;
}

.consult-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.match-disclaimer {
  color: #5c4630;
  line-height: 1.6;
  margin: 22px 0 0;
}

@media (max-width: 900px) {
  .match-layout,
  .match-people-grid,
  .match-snapshot-grid,
  .match-summary-grid,
  .consultant-booking-grid,
  .booking-page-grid,
  .booking-contact-grid,
  .dossier-card-grid,
  .dosha-grid {
    grid-template-columns: 1fr;
  }

  .result-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .planet-position-table {
    grid-template-columns: 78px 78px 52px minmax(160px, 1fr);
    overflow-x: auto;
  }
}

#btn-login-header {
  border: 1px solid var(--saffron-gold);
  color: var(--divine-gold);
  background: transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  box-shadow: none;
}

#btn-login-header:hover {
  background: var(--saffron-gold);
  color: var(--ink-deep-soft);
  transform: translateY(-1px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button, .share-link {
  font-family: 'Inter', sans-serif;
  border-radius: 14px;
  padding: 12px 20px;
  background: var(--bg-surface);
  color: var(--ink-light);
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(46, 43, 95, 0.08), inset 0 1px 0 rgba(46, 43, 95, 0.05);
}

button:hover, .share-link:hover {
  background: var(--bg-panel);
  border-color: rgba(46, 43, 95, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 43, 95, 0.12), inset 0 1px 0 rgba(46, 43, 95, 0.1);
}

button:active, .share-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(46, 43, 95, 0.08);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

button[type="button"] {
  background: var(--bg-surface);
  color: var(--ink-light);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(46, 43, 95, 0.08);
}

button[type="button"]:hover {
  background: var(--bg-panel);
  border-color: rgba(46, 43, 95, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

button[type="submit"] {
  background: var(--ink-light);
  color: var(--bg-space);
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(46, 43, 95, 0.1);
}

button[type="submit"]:hover {
  background: #E4E4E7;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 43, 95, 0.15);
}

/* ==========================================================================
   Shell Layout
   ========================================================================== */
.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
  transition: all 0.3s ease;
}

body.has-result .shell {
  width: min(100% - 16px, 1780px);
  min-height: calc(100vh - 72px); /* Account for global navbar */
  padding: 8px 0;
}

body.has-result .entry {
  display: none;
}

.entry {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 40px;
  align-items: start;
  padding: 24px 0 40px;
}

@media (max-width: 1024px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Ganesha Hero Panel & Intro
   ========================================================================== */
.ganesha-hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(22, 20, 44, 0.7) 0%, rgba(7, 6, 16, 0.9) 100%);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.ganesha-hero-panel::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--saffron-gold);
  opacity: 0.04;
  border-radius: 50%;
  filter: blur(50px);
  animation: pulse 8s infinite alternate;
}

.ganesha-hero-img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.25));
}

.intro-panel {
  padding: 10px 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--saffron-gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  line-height: 1.05;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.lede {
  color: var(--ink-dim);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-strip span {
  border: 1px solid var(--line-gold);
  border-radius: 99px;
  padding: 8px 16px;
  background: rgba(22, 20, 44, 0.5);
  color: var(--saffron-gold);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46, 43, 95, 0.08);
}

.utility-link {
  margin-top: 24px;
}

.utility-link a {
  color: var(--saffron-gold);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed var(--saffron-gold);
  transition: all 0.2s ease;
}

.utility-link a:hover {
  color: var(--saffron-orange);
  border-bottom-style: solid;
}

/* ==========================================================================
   Forms & Panels
   ========================================================================== */
.form, article {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 8px; /* Sharper, architectural look */
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

.form {
  padding: 36px;
  border: 1px solid var(--line);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-header h2 {
  font-family: 'Marcellus', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink-light);
}

.portal-guidance-banner {
  background: rgba(158, 51, 36, 0.03); /* Muted vermillion tint */
  border: 1px solid rgba(158, 51, 36, 0.1);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}

.shanti-heading {
  font-family: 'Marcellus', serif;
  color: var(--saffron-gold); /* Deep Vermillion */
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.guidance-desc {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

label {
  display: block;
  margin-bottom: 20px;
  color: var(--ink-dim);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
}

label > span {
  display: block;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(112, 99, 77, 0.2);
  border-radius: 6px; /* Sharper */
  padding: 14px 16px;
  color: var(--ink-light);
  background: var(--bg-surface); /* Clean white marble/handmade paper */
  font: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: none;
}

input:hover, textarea:hover, select:hover {
  border-color: rgba(112, 99, 77, 0.4);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--saffron-orange); /* Burnished Gold focus border */
  outline: none;
  background: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--saffron-orange);
}

/* Wizard Progress */
.wizard-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--saffron-gold);
  transition: width 0.3s ease;
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-steps-indicator span.active {
  color: var(--saffron-gold);
}

.lagna-single-step .wizard-progress-bar,
.lagna-single-step .wizard-steps-indicator,
.lagna-single-step #wizard-step-2,
.lagna-single-step #wizard-step-1 > .wizard-actions,
.lagna-single-step #wizard-step-3 .btn-secondary {
  display: none !important;
}

.lagna-single-step #wizard-step-3.hidden {
  display: block !important;
}

.lagna-single-step #wizard-step-3 {
  margin-top: 24px;
}

.lagna-single-step #wizard-step-3 .wizard-actions {
  justify-content: flex-end;
}

.prashna-single-step .wizard-progress-bar,
.prashna-single-step .wizard-steps-indicator,
.prashna-single-step #wizard-step-1 > .wizard-actions,
.prashna-single-step #wizard-step-2 .wizard-actions,
.prashna-single-step #wizard-step-3 .btn-secondary {
  display: none !important;
}

.prashna-single-step #wizard-step-2.hidden,
.prashna-single-step #wizard-step-3.hidden {
  display: block !important;
}

.prashna-single-step #wizard-step-2,
.prashna-single-step #wizard-step-3 {
  margin-top: 24px;
}

.prashna-single-step #wizard-step-3 .wizard-actions {
  justify-content: flex-end;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wizard-actions.dual {
  justify-content: space-between;
}

/* DateTime Picker */
.dt-picker-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.dt-inputs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  flex: 1;
}

.dt-now-btn {
  white-space: nowrap;
  padding: 12px;
  background: var(--bg-panel);
  color: var(--saffron-gold);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
}

.dt-now-btn:hover {
  background: var(--saffron-gold);
  color: var(--bg-space);
  border-color: transparent;
}

/* Location Controls */
.location-search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.gps-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: var(--bg-panel);
  color: var(--saffron-gold);
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.gps-icon-btn:hover {
  background: var(--saffron-gold);
  color: var(--bg-space);
  border-color: transparent;
}

.gps-icon-btn svg {
  stroke: var(--saffron-gold);
  transition: stroke 0.2s ease;
}

.gps-icon-btn:hover svg {
  stroke: var(--bg-space);
}

.place-results {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.place-result, .selected-place {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(22, 20, 44, 0.4);
  text-align: left;
  transition: all 0.2s ease;
}

.place-result {
  cursor: pointer;
}

.place-result:hover {
  border-color: var(--saffron-gold);
  background: rgba(22, 20, 44, 0.8);
}

.place-result strong, .selected-place strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: 2px;
}

.place-result span, .selected-place span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.selected-place {
  border-color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.manual-location {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.manual-location summary {
  color: var(--saffron-gold);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
  outline: none;
}

.manual-location summary:hover {
  color: var(--saffron-orange);
}

/* ==========================================================================
   Hero Landing Page Layout
   ========================================================================== */
.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  overflow: hidden;
}

.celestial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.planet {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed rgba(112, 99, 77, 0.15); /* Fine dashed sandstone/bronze line */
  box-shadow: none;
}

.planet-1 {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.65;
  animation: rotate-slow 120s linear infinite;
}

.planet-1::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron-orange); /* Burnished Gold planet */
}

.planet-2 {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  border: 1px solid rgba(112, 99, 77, 0.1);
  animation: rotate-slow-reverse 80s linear infinite;
}

.planet-2::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--saffron-gold); /* Deep Vermillion planet */
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-slow-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.constellation-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(112, 99, 77, 0.15) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}



.hero-eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(46,43,95,0.03);
  border: 1px solid rgba(46,43,95,0.08);
  border-radius: 999px;
}

.hero-main-title {
  font-family: 'Marcellus', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: rgb(203, 166, 96);
  margin: 0 0 24px;
  text-shadow: 0 8px 20px rgba(234, 189, 10, 0.4);
}

.hero-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--ink-light);
  color: var(--bg-space);
  font-weight: 600;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink-light);
}

.hero-stat-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.hero-stat-row div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.h1, h2, h3, h4, h5, h6 {
  font-family: 'Marcellus', serif;
  font-weight: 700;
  color: var(--ink-light);
}

.hero-stat-row strong {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-light);
}

.hero-stat-row span {
  font-size: 0.75rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

/* ==========================================================================
   Mode Panel (Twin Cards)
   ========================================================================== */
.mode-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.mode-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  text-align: left;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(211, 84, 0, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(194, 149, 79, 0.14);
  border-color: var(--saffron-gold);
}

.mode-card:hover::after {
  opacity: 1;
}

.mode-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(150deg, #fbf0dd, #f5e6c8);
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  flex-shrink: 0;
}

.mode-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--divine-gold);
}

.mode-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-card-text h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-light);
  margin: 0;
}

.mode-card-text p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Featured Astro-Consultants Row
   ========================================================================== */
.featured-consultants-section {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.featured-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--divine-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-gold);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.featured-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-1px);
}

.featured-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-deep-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 1px var(--line-gold);
  flex-shrink: 0;
}

.featured-info {
  display: flex;
  flex-direction: column;
}

.featured-info h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-light);
  margin: 0 0 1px 0;
}

.featured-info p {
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin: 0 0 3px 0;
}

.featured-stars {
  font-size: 0.7rem;
  letter-spacing: -0.05em;
}

.featured-chat-btn {
  background: var(--accent-purple);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: none;
  margin-left: auto;
}

.featured-chat-btn:hover {
  background: #2d2a26;
  transform: translateY(-0.5px);
}


/* ==========================================================================
   Result Presentation Workspace (Grid)
   ========================================================================== */
.result {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

body.has-result .result {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.result-tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  color: var(--ink-dim);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink-light);
}

.tab-btn.active {
  background: var(--ink-light);
  color: var(--bg-space);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

body.has-result .result-head {
  grid-area: head;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 8px 16px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-gold);
}

body.has-result .result-head h2 {
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  color: var(--saffron-gold);
}

body.has-result .result-head .eyebrow {
  margin-bottom: 0;
  font-size: 0.65rem;
}

.result-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--bg-surface);
}

.result-tabs button {
  background: transparent;
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  box-shadow: none;
  border-radius: 6px;
}

.result-tabs button:hover {
  color: var(--saffron-gold);
  background: rgba(245, 158, 11, 0.05);
  transform: none;
}

.result-tabs button.is-active {
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  color: var(--bg-space);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

body.has-result .share-link {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* Facts Strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

body.has-result .facts {
  grid-area: facts;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.fact {
  min-height: 70px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
}

body.has-result .fact {
  min-height: 0;
  padding: 8px 12px;
  border-color: rgba(46, 43, 95, 0.06);
  border-radius: 8px;
  box-shadow: none;
}

.fact span {
  display: block;
  color: var(--saffron-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 4px;
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.3;
}

body.has-result .fact strong {
  margin-top: 2px;
  font-size: 0.82rem;
}

.fact small {
  color: var(--ink-dim);
  font-size: 0.75rem;
}

/* Resizers */
body.has-result .grid-resizer {
  display: block;
  background: rgba(46, 43, 95, 0.02);
  border-left: 1px solid rgba(46, 43, 95, 0.05);
  border-right: 1px solid rgba(46, 43, 95, 0.05);
  cursor: col-resize;
  transition: background 0.2s;
  z-index: 50;
}

body.has-result .grid-resizer:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--saffron-gold);
}

body.has-result .row-resizer {
  display: block;
  background: rgba(46, 43, 95, 0.02);
  border-top: 1px solid rgba(46, 43, 95, 0.05);
  border-bottom: 1px solid rgba(46, 43, 95, 0.05);
  cursor: row-resize;
  transition: background 0.2s;
  z-index: 50;
}

body.has-result .row-resizer:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--saffron-gold);
}

/* ==========================================================================
   Worksheet (SVG Charts Area)
   ========================================================================== */
.worksheet {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}

body.has-result .worksheet {
  grid-area: charts;
  border-color: var(--line-gold);
  border-radius: 12px;
  padding: 10px;
}

.worksheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.worksheet-head h3 {
  font-family: 'Inter', sans-serif;
  color: var(--divine-gold);
  font-size: 1.1rem;
}

.worksheet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.worksheet-actions select {
  padding: 8px 12px;
  font-size: 0.85rem;
  background: var(--bg-panel);
  border-color: var(--line);
  min-width: 140px;
}

.worksheet-actions button {
  padding: 8px 14px;
  font-size: 0.8rem;
}

body.has-result .worksheet-actions select {
  display: none;
}

body.has-result .worksheet-actions button {
  padding: 6px 10px;
  font-size: 0.72rem;
}

/* Chart Tabs */
.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chart-tab {
  display: inline-flex;
  flex-direction: column;
  min-width: 64px;
  padding: 6px 12px;
  background: var(--bg-panel);
  border: 1px solid rgba(46, 43, 95, 0.05);
  border-radius: 6px;
  color: var(--ink-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.chart-tab:hover {
  border-color: var(--saffron-gold);
  background: rgba(245, 158, 11, 0.05);
}

.chart-tab.active, .chart-tab.is-active {
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  color: var(--bg-space);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.chart-tab span {
  font-size: 0.65rem;
  color: var(--ink-dim);
  margin-top: 2px;
}

.chart-tab.active span, .chart-tab.is-active span {
  color: rgba(7, 6, 16, 0.8);
}

/* Worksheet Canvas */
.worksheet-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  overflow-y: auto;
  background: var(--bg-space);
}

body.has-result .worksheet-canvas {
  height: 100%;
  background: var(--bg-space);
  border-color: rgba(46, 43, 95, 0.04);
}

body.has-result .worksheet-canvas[data-chart-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}

body.has-result .worksheet-canvas[data-chart-count="2"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  overflow: hidden;
}

.worksheet-item {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s;
}

.worksheet-item.is-focused {
  border-color: var(--saffron-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.worksheet-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.worksheet-item-head strong {
  font-family: 'Inter', sans-serif;
  color: var(--saffron-gold);
  font-size: 0.85rem;
}

.worksheet-item-head span {
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-left: 6px;
}

.worksheet-item-head button {
  padding: 2px 6px;
  font-size: 0.75rem;
  background: transparent;
  color: var(--ink-dim);
  border: none;
  box-shadow: none;
}

.worksheet-item-head button:hover {
  color: #ef4444;
  transform: none;
}

.chart-surface {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.chart-surface:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   North Indian SVG Chart Rendering
   ========================================================================== */
.north-chart {
  width: 100%;
  height: 100%;
  max-width: 460px;
  aspect-ratio: 1.42;
  position: relative;
  user-select: none;
}

.north-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.north-chart svg rect {
  fill: var(--bg-surface);
  stroke: var(--line-gold);
  stroke-width: 1.5px;
}

.north-chart svg path {
  fill: none;
  stroke: var(--line-gold);
  stroke-width: 1.2px;
}

.north-chart svg path.soft {
  stroke-dasharray: 2 2;
  opacity: 0.5;
}

.chart-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  text-align: center;
  pointer-events: none;
}

.slot-1  { top: 22%;  left: 35%;  width: 30%;  height: 26%; }
.slot-2  { top: 2%;   left: 20%;  width: 25%;  height: 18%; }
.slot-3  { top: 2%;   left: 55%;  width: 25%;  height: 18%; }
.slot-4  { top: 8%;   left: 2%;   width: 30%;  height: 24%; }
.slot-5  { top: 46%;  left: 2%;   width: 20%;  height: 20%; }
.slot-6  { top: 46%;  left: 78%;  width: 20%;  height: 20%; }
.slot-7  { top: 46%;  left: 35%;  width: 30%;  height: 24%; }
.slot-8  { top: 46%;  left: 20%;  width: 20%;  height: 20%; }
.slot-9  { top: 46%;  left: 60%;  width: 20%;  height: 20%; }
.slot-10 { top: 8%;   left: 68%;  width: 30%;  height: 24%; }
.slot-11 { top: 2%;   left: 2%;   width: 20%;  height: 20%; }
.slot-12 { top: 2%;   left: 78%;  width: 20%;  height: 20%; }

.sign-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--saffron-gold);
  margin-bottom: 2px;
}

.planet-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 90%;
}

.planet-token {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--ink-light);
  border: 1px solid rgba(46, 43, 95, 0.05);
}

.planet-token.p-asc { color: var(--divine-gold); border-color: var(--divine-gold); }
.planet-token.p-sun { color: #f87171; }
.planet-token.p-moon { color: #e2e8f0; }
.planet-token.p-mars { color: #ef4444; }
.planet-token.p-mercury { color: #34d399; }
.planet-token.p-jupiter { color: #fbbf24; }
.planet-token.p-venus { color: #f472b6; }
.planet-token.p-saturn { color: #a78bfa; }
.planet-token.p-rahu { color: #818cf8; }
.planet-token.p-ketu { color: #fb7185; }

/* ==========================================================================
   Responsive Canvas Chart Rendering
   ========================================================================== */
.responsive-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

canvas {
  overflow-clip-margin: content-box;
  overflow: clip;
}

@media screen and (max-width: 768px) {
  .responsive-canvas {
      width: 100%;
      height: auto;
  }
}
/* Empty Slots in Worksheet */
.worksheet-empty-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 200px;
  border: 1.5px dashed var(--line-gold);
  border-radius: 8px;
  background: rgba(22, 20, 44, 0.3);
  color: var(--saffron-gold);
  cursor: pointer;
  transition: all 0.2s ease;
}

.worksheet-empty-slot:hover {
  border-style: solid;
  background: rgba(245, 158, 11, 0.05);
}

.worksheet-empty-slot span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--saffron-gold);
  border-radius: 50%;
  font-size: 1rem;
}

.worksheet-empty-slot strong {
  font-size: 0.78rem;
}

/* ==========================================================================
   Palettes
   ========================================================================== */
.panel-palette {
  position: absolute;
  z-index: 200;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-palette section h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--saffron-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.panel-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.panel-palette-grid button {
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  color: var(--ink-light);
  font-size: 0.7rem;
  border-radius: 6px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-palette-grid button:hover {
  border-color: var(--saffron-gold);
  background: rgba(245, 158, 11, 0.05);
  transform: none;
}

.panel-palette-grid button:disabled {
  opacity: 0.25;
}

.panel-palette-grid button strong {
  font-size: 0.85rem;
  color: var(--saffron-gold);
}

/* ==========================================================================
   Planetary Positions Table
   ========================================================================== */
.planet-card {
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

body.has-result .planet-card {
  grid-area: planets;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
}

.planet-card h3 {
  font-family: 'Inter', sans-serif;
  color: var(--divine-gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--saffron-gold);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-panel);
}

td {
  color: var(--ink-light);
}

tr:hover td {
  background: rgba(46,43,95,0.01);
}

/* Retrograde Marker */
.retro {
  color: #f87171;
  font-weight: 700;
  font-size: 0.72rem;
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(248, 113, 113, 0.05);
}

/* ==========================================================================
   Transit (Gochar) panel
   ========================================================================== */
#transit-section {
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 16px;
}

body.has-result #transit-section {
  grid-area: transit;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#transit-section h3 {
  font-family: 'Inter', sans-serif;
  color: var(--divine-gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.transit-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .transit-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Vimshottari Dasha Drill-Down
   ========================================================================== */
.dasha-card {
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

body.has-result .dasha-card {
  grid-area: dasha;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
}

.dasha-app-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.dasha-app-head h3 {
  font-family: 'Inter', sans-serif;
  color: var(--divine-gold);
  font-size: 1.1rem;
}

.dasha-system {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--saffron-gold);
  text-transform: uppercase;
}

.dasha-drillbar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dasha-drillbar button {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: var(--bg-space);
  color: var(--saffron-gold);
  border: 1px solid var(--line-gold);
  box-shadow: none;
}

.dasha-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-light);
}

.dasha-path {
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.dasha-summary {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 10px;
  line-height: 1.4;
}

.dasha-note {
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-top: 8px;
  line-height: 1.4;
}

/* Dasha progress bar */
.dasha-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-panel);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.dasha-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron-gold), var(--saffron-orange));
  border-radius: 2px;
}

/* ==========================================================================
   AI Astrologer Interpretation Tab
   ========================================================================== */
.interpretation-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-gold);
}

body.has-result .interpretation-card {
  grid-area: interpretation;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.interpretation-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.interpretation-head h3 {
  font-family: 'Marcellus', serif;
  color: var(--divine-gold);
  font-size: 1.25rem;
}

.interpretation-confidence {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-emerald);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
}

.interpretation-confidence[data-level="uncertain"] {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--saffron-gold);
}

.interpretation-answer {
  background: rgba(46, 43, 95, 0.015);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  line-height: 1.7;
  color: var(--ink-light);
  font-size: 0.98rem;
}

.interpretation-answer section {
  margin-bottom: 24px;
}

.interpretation-answer section:last-child {
  margin-bottom: 0;
}

.interpretation-answer h4 {
  font-family: 'Inter', sans-serif;
  color: var(--saffron-gold);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.interpretation-answer p {
  margin-bottom: 12px;
}

.interpretation-answer p:last-child {
  margin-bottom: 0;
}

.prashna-reading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.prashna-tab-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prashna-reading-content,
.prashna-technical-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.technical-section > h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink, #1f1d19);
  margin-bottom: 8px;
}

.quick-verdict-box,
.core-analysis-box,
.consult-rupesh-box,
.prashna-full-reading,
.technical-table-wrap,
.technical-chart-card {
  border: 1px solid #e5d8c8;
  border-radius: 6px;
  background: #fffefa;
}

.quick-verdict-box {
  padding: 12px;
}

.quick-verdict-box span,
.consult-rupesh-box span {
  display: block;
  color: var(--copper, #aa3b2c);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-verdict-box p {
  margin: 5px 0 0;
  color: var(--ink-light);
  font-weight: 800;
  line-height: 1.35;
}

.core-analysis-box,
.prashna-full-reading {
  padding: 12px;
}

.core-analysis-box h4,
.prashna-full-reading h4 {
  margin: 0 0 8px;
  color: var(--divine-gold);
  font-size: 0.9rem;
}

.core-analysis-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-light);
  line-height: 1.35;
  font-size: 0.8rem;
}

.consult-rupesh-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fcf8f2;
}

.consult-rupesh-box p {
  margin: 4px 0 0;
  color: var(--ink-light);
  font-size: 0.8rem;
}

.consult-rupesh-box button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--copper, #aa3b2c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.consult-rupesh-box small {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.technical-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.technical-chart-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 170px;
  padding: 8px;
  overflow: hidden;
}

.technical-chart-card h4 {
  margin: 0 0 6px;
  color: var(--copper, #aa3b2c);
  font-size: 0.78rem;
}

.technical-chart-card h4 span {
  color: var(--ink-muted);
  font-weight: 700;
}

.technical-chart-card canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.technical-table-wrap {
  overflow: auto;
  max-height: 260px;
}

.technical-table-wrap table {
  min-width: 760px;
  table-layout: auto;
}

.technical-table-wrap th,
.technical-table-wrap td {
  white-space: nowrap;
  word-break: normal;
}

@media (max-width: 1300px) {
  .consult-rupesh-box {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* ==========================================================================
   Authentication Modal
   ========================================================================== */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.95);
}

.auth-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  padding: 40px 32px;
  width: min(440px, 100%);
  text-align: center;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(232, 192, 127, 0.08);
  z-index: 10001;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-panel::before {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.btn-close-auth {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  box-shadow: none;
}

.btn-close-auth:hover {
  color: var(--saffron-gold);
  transform: none;
}

.auth-panel h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.auth-panel p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.btn-google-login {
  width: 100%;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.btn-google-login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  filter: none;
}

/* Internal auth debug scratchpad — kept in the DOM for local debugging,
   hidden from end users. Enable by adding ?debug=1 to the URL. */
#auth-debug-box {
  display: none;
}

body.debug-mode #auth-debug-box {
  display: block;
}

/* ==========================================================================
   Astrologer apply, dashboard, and consultant pages styling
   ========================================================================== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}

.nav-logo .logo-text {
  font-size: 1.35rem;
}

.main-content {
  padding: 40px 16px;
}

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-gold);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron-gold);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 10px rgba(245, 158, 11, 0.05);
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
  color: var(--ink-light);
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* ==========================================================================
   Consultation page & pricing grid
   ========================================================================== */
.pricing-card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 16px;
}

.pricing-header-section {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.pricing-subtitle {
  color: var(--ink-dim);
  font-size: 1rem;
}

.about-platform {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 16px 56px;
}

.about-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.about-hero h2 {
  margin: 0 0 16px;
  color: var(--ink-light);
  font-family: 'Marcellus', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.about-hero p,
.about-card p,
.about-vision p {
  color: var(--ink-dim);
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card,
.about-vision {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-gold);
}

.about-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(158, 51, 36, 0.08);
  color: var(--saffron-orange);
  font-size: 0.76rem;
  font-weight: 800;
}

.about-card h3,
.about-vision h3 {
  margin: 16px 0 10px;
  color: var(--ink-light);
  font-family: 'Marcellus', serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.about-card p,
.about-vision p {
  margin: 0;
}

.about-vision {
  margin-top: 18px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink-light);
  color: var(--bg-surface);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
}

.pricing-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 84, 0, 0.3);
}

.pricing-plan-card.popular {
  border-color: var(--saffron-gold);
  box-shadow: 0 14px 34px rgba(194, 149, 79, 0.14);
}

.pricing-plan-card.popular::after {
  content: 'POPULAR';
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  color: var(--ink-deep-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 5px;
}

.pricing-plan-card.premium {
  border: 1px solid var(--ink-deep);
  background: white;
  box-shadow: var(--shadow-deep);
}

.pricing-plan-card.premium .plan-name,
.pricing-plan-card.premium .plan-price .currency,
.pricing-plan-card.premium .plan-price .amount,
.pricing-plan-card.premium .plan-features li {
  color: var(--ink-deep-soft);
}

.pricing-plan-card.premium .plan-description,
.pricing-plan-card.premium .plan-price .period {
  color: rgba(253, 249, 242, 0.55);
}

.pricing-plan-card.premium::after {
  content: 'BEST VALUE';
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold-foil);
  color: var(--ink-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 5px;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--saffron-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plan-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--ink-light);
}

.plan-price {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-light);
}

.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink-light);
  line-height: 1;
}

.plan-price .period {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-left: 4px;
}

.plan-description {
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--saffron-orange);
  font-weight: bold;
}

.plan-features li.disabled {
  color: var(--ink-dim);
  opacity: 0.55;
}

.plan-features li.disabled::before {
  content: '✕';
  color: var(--ink-dim);
  opacity: 0.7;
}

.pricing-plan-card.premium .plan-features li.disabled {
  color: rgba(253, 249, 242, 0.35);
}

.btn-select-plan {
  width: 100%;
}

/* ==========================================================================
   Astrologer List / Consultants
   ========================================================================== */
#consultants-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.consultants-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.consultants-head h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  color: var(--ink-light);
  margin-top: 4px;
}

#consultant-queue-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--divine-gold);
  background: var(--bg-panel);
  border: 1px solid var(--line-gold);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.consultation-cta-body {
  max-width: 440px;
}

.wizard-step {
  animation: fadeIn 0.25s ease;
}

.wizard-lead {
  margin-bottom: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

button.btn-wizard-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  color: var(--ink-deep-soft);
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(184, 134, 59, 0.15);
}

button.btn-wizard-primary:hover {
  filter: brightness(1.05);
}

button.btn-wizard-secondary {
  background: var(--bg-panel);
  color: var(--divine-gold);
  border: 1px solid var(--line-gold);
  box-shadow: none;
}

.wizard-form-row {
  margin-bottom: 14px;
}

.wizard-form-row input,
.wizard-form-row select {
  width: 100%;
}

.wizard-form-row.two-up {
  display: flex;
  gap: 10px;
}

.wizard-form-row.two-up > * {
  flex: 1;
  min-width: 0;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.wizard-actions .btn-wizard-secondary {
  flex: 1;
}

.wizard-actions .btn-wizard-primary {
  flex: 2;
  width: auto;
}

.wizard-form-row textarea {
  width: 100%;
}

#consultation-form-status {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--maroon);
  min-height: 18px;
}

.consultants-intro h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.astrologers-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.astrologer-card {
  border: 1px solid var(--line);
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.astrologer-card:hover {
  border-color: var(--line-gold);
  box-shadow: 0 4px 20px rgba(46, 43, 95, 0.12);
}

.astrologer-card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.astrologer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--saffron-gold);
}

.astrologer-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.astrologer-specialties {
  font-size: 0.8rem;
  color: var(--saffron-gold);
  margin-bottom: 6px;
}

.astrologer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.astrologer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.astrologer-rate {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink-light);
  font-size: 1.05rem;
}

.btn-book {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  background: var(--saffron-gold);
  border-top: 1px solid var(--hairline-on-deep);
  padding: 64px 24px 28px;
  font-size: 0.85rem;
  color: rgb(51, 51, 44);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-deep);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-logo {
  margin-bottom: 16px;
}

.logo-brush {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-brush::before {
  content: '';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron-gold), var(--saffron-orange));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.logo-text-top {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-deep-soft);
}

.wizard-title {
  font-family: 'Marcellus', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold-foil);
  line-height: 1.1;
  text-transform: uppercase;
}

.about-col p {
  line-height: 1.6;
}

.quick-links-list {
  list-style: none;
}

.quick-links-list li {
  margin-bottom: 10px;
}

.quick-links-list a {
  color: var(--ink-deep-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.quick-links-list a:hover {
  color: var(--ink-deep);
}

.social-title {
  margin-top: 24px;
}

.social-channels {
  display: flex;
  gap: 12px;
}

.social-icon {
  color: var(--ink-deep-soft);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--ink-deep);
}

.btn-whatsapp-community{
    margin-top: 5%;
    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:14px 22px;

    background:#ffffff;
    color:#1f2937;

    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;

    text-decoration:none;
    font-weight:600;
    font-size:.95rem;
    font-family:Inter,sans-serif;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:all .25s ease;
}

.btn-whatsapp-community:hover{

    transform:translateY(-2px);

    box-shadow:
        0 16px 40px rgba(0,0,0,.12);

    border-color:#25D366;
}

.btn-whatsapp-community span{
    color:#374151;
}

.wa-icon{
    width:22px;
    height:22px;
    color:#25D366;
    flex-shrink:0;
}

.footer-bottom {
  border-top: 1px solid rgba(46, 43, 95, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  max-width: 1200px;
  margin: 0 auto;
  color: rgba(46, 43, 95, 0.7);
}

/* Floating Widgets */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 10px rgba(37, 211, 102, 0.2);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-floating-widget:hover {
  transform: scale(1.08) rotate(8deg);
  background: #20ba5a;
}

/* Pulsing auric animations */
@keyframes pulse {
  from { transform: scale(1) translate(0, 0); opacity: 0.03; }
  to { transform: scale(1.15) translate(10px, -10px); opacity: 0.06; }
}

/* ==========================================================================
   Navigation View Toggles
   ========================================================================== */
body.view-home #pricing-card,
body.view-home #consultants-card {
  display: none !important;
}

body.view-pricing {
  overflow-y: auto !important;
}

body.view-pricing .entry,
body.view-pricing #result,
body.view-pricing #interpretation-card,
body.view-pricing #consultants-card {
  display: none !important;
}

body.view-pricing #pricing-card {
  display: block !important;
}

body.view-consultants {
  overflow-y: auto !important;
}

body.view-consultants .entry,
body.view-consultants #result,
body.view-consultants #pricing-card {
  display: none !important;
}

body.view-consultants #consultants-card {
  display: block !important;
}

/* ==========================================================================
   Professional Single-Screen Chart Workspace
   ========================================================================== */
body.has-result {
  overflow: hidden;
  background: var(--bg-space);
}

body.has-result .shell {
  width: min(100% - 10px, 1900px);
  height: calc(100vh - 72px);
  min-height: 0;
  padding: 6px 0;
}

body.has-result .entry {
  display: none;
}

body.has-result .result {
  display: grid;
  grid-template-columns: minmax(430px, var(--work-left)) 6px minmax(360px, var(--work-mid)) 6px minmax(360px, var(--work-right));
  grid-template-rows: 54px 76px minmax(0, 1fr) 6px minmax(0, 0.9fr) minmax(0, 0.48fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left interpretation resize-right dasha"
    "charts resize-left row-resizer resize-right dasha"
    "charts resize-left planets resize-right transit"
    "charts resize-left kp resize-right transit";
  gap: 6px;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.has-result .result-head {
  grid-area: head;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 8px;
}

body.has-result .result-head h2 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

body.has-result .result-tabs-nav {
  display: flex;
  gap: 4px;
}

body.result-prashna .lagna-only {
  display: none !important;
}
body.result-lagna .prashna-only {
  display: none !important;
}

body.has-result .tab-btn {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.76rem;
}

body.has-result .share-link {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.74rem;
}

body.has-result .facts {
  grid-area: facts;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

body.has-result .fact {
  min-height: 0;
  padding: 7px 9px;
  border-radius: 7px;
  overflow: hidden;
}

body.has-result .fact span {
  font-size: 0.62rem;
}

body.has-result .fact strong {
  font-size: 0.72rem;
  line-height: 1.18;
}

body.has-result .worksheet,
body.has-result .interpretation-card,
body.has-result .planet-card,
body.has-result #transit-section,
body.has-result .dasha-card {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
}

body.has-result .worksheet {
  grid-area: charts;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
}

body.has-result .interpretation-card {
  grid-area: interpretation;
  padding: 8px;
  overflow-y: auto;
}

body.has-result .planet-card {
  grid-area: planets;
  padding: 8px;
}

body.has-result #kp-section {
  grid-area: kp;
  padding: 8px;
}

body.has-result.result-lagna .planet-card:not(#kp-section) {
  grid-area: interpretation;
}

body.has-result.result-lagna #kp-section {
  grid-area: planets;
}

body.has-result #transit-section {
  grid-area: transit;
  padding: 8px;
}

body.has-result .dasha-card {
  grid-area: dasha;
  padding: 8px;
}

body.has-result #consultants-card {
  display: none !important;
}

body.has-result .worksheet-head {
  padding-bottom: 6px;
}

body.has-result .worksheet-actions select {
  display: inline-flex;
  min-width: 110px;
  max-width: 150px;
  height: 32px;
  padding: 4px 8px;
  font-size: 0.7rem;
}

body.has-result .worksheet-head h3,
body.has-result .planet-card h3,
body.has-result #transit-section h3,
body.has-result .dasha-app-head h3,
body.has-result .interpretation-head h3 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

body.has-result .chart-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  min-height: 38px;
  padding-bottom: 2px;
}

body.has-result .chart-tab {
  min-width: 72px;
  padding: 5px 8px;
  font-size: 0.68rem;
}

body.has-result .chart-tab span {
  font-size: 0.56rem;
  white-space: nowrap;
}

body.has-result .worksheet-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 1fr);
  min-height: 0;
  height: 100%;
  gap: 6px;
  padding: 6px;
  overflow: auto;
}

body.has-result .worksheet-canvas[data-chart-count="1"],
body.has-result .worksheet-canvas[data-chart-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  overflow: auto;
}

body.has-result .worksheet-item {
  min-height: 190px;
  border-radius: 7px;
}

body.has-result .worksheet-item-head {
  padding: 4px 8px;
}

body.has-result .chart-surface {
  padding: 6px;
}

body.has-result .north-chart {
  max-width: 100%;
  max-height: 100%;
}

body.has-result .table-wrap,
body.has-result .transit-layout,
body.has-result .dasha-card .table-wrap {
  min-height: 0;
  overflow: auto;
}

body.has-result table {
  font-size: 0.68rem;
}

body.has-result th,
body.has-result td {
  padding: 4px 6px;
  white-space: nowrap;
}

body.has-result .dasha-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

body.has-result .dasha-summary .fact {
  padding: 5px 6px;
}

body.has-result .dasha-drillbar {
  padding: 5px 6px;
  margin-bottom: 6px;
}

body.has-result .dasha-note,
body.has-result .chat-extend-section {
  display: none;
}

body.has-result .grid-resizer[data-resize-col="left"] {
  grid-area: resize-left;
}

body.has-result .grid-resizer[data-resize-col="right"] {
  grid-area: resize-right;
}

body.has-result .row-resizer {
  grid-area: row-resizer;
}

body.has-result .grid-resizer,
body.has-result .row-resizer {
  display: block;
  border: 0;
  border-radius: 4px;
}

@media (max-width: 980px) {
  body.has-result {
    overflow-y: auto;
  }

  body.has-result .shell,
  body.has-result .result {
    height: auto;
  }

  body.has-result .result {
    display: flex;
    flex-direction: column;
  }
}

/* ==========================================================================
   Legacy Desktop Kundli Workspace Restore
   Mirrors the pre-merge static workspace from 86feef6 while fitting the
   current navbar-based frontend shell.
   ========================================================================== */
body.has-result .app-footer,
body.has-result .whatsapp-floating-widget {
  display: none !important;
}

body.has-result .global-navbar {
  min-height: 54px;
  height: 54px;
  padding: 4px 18px;
  gap: 14px;
}

body.has-result .navbar-ganesha {
  height: 40px;
}

body.has-result .logo-text {
  font-size: 1rem;
  gap: 7px;
}

body.has-result .nav-links {
  gap: 12px;
}

body.has-result .nav-btn,
body.has-result .nav-link-btn,
body.has-result #btn-login-header {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

body.has-result .shell {
  width: min(100% - 8px, 1900px);
  height: calc(100dvh - 58px);
  min-height: 0;
  padding: 4px 0;
}

body.has-result .result {
  height: 100%;
  display: grid;
  grid-template-columns:
    minmax(430px, var(--work-left))
    8px
    minmax(440px, var(--work-mid))
    8px
    minmax(330px, var(--work-right));
  grid-template-rows: 44px 62px minmax(220px, 1fr) 8px minmax(220px, 1fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left planets resize-right dasha"
    "charts resize-left row-resizer resize-right dasha"
    "charts resize-left kp resize-right transit";
  gap: 6px;
  overflow: hidden;
}

body.has-result.result-prashna .result {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--nav-height) - 10px);
  gap: 16px;
}

body.has-result .result-head {
  min-height: 0;
  align-items: center;
  border: 1px solid #b7aa99;
  border-radius: 6px;
  padding: 5px 10px;
  background: linear-gradient(180deg, #fffef8, #ebe2d1);
  box-shadow: 0 3px 12px rgba(44, 30, 18, 0.12);
}

body.has-result .result-head h2 {
  font-size: 0.96rem;
  line-height: 1.05;
}

body.has-result .result-head .eyebrow {
  margin-bottom: 1px;
  font-size: 0.58rem;
}

body.has-result .result-back-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}


body.has-result .facts {
  grid-area: facts;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}

body.has-result .fact {
  min-height: 0;
  padding: 6px 8px;
  border-color: #cfc3b3;
  border-radius: 4px;
  box-shadow: none;
}

body.has-result .fact span {
  font-size: 0.58rem;
}

body.has-result .fact strong {
  font-size: 0.68rem;
  line-height: 1.12;
}

body.has-result .grid-resizer {
  width: 8px;
  min-width: 0;
  padding: 0;
  background: linear-gradient(90deg, transparent, rgba(21, 93, 84, 0.2), transparent);
  cursor: col-resize;
}

body.has-result .grid-resizer[data-resize-col="left"] {
  grid-area: resize-left;
}

body.has-result .grid-resizer[data-resize-col="right"] {
  grid-area: resize-right;
}

body.has-result .row-resizer {
  grid-area: row-resizer;
  height: 8px;
  min-height: 0;
  padding: 0;
  background: linear-gradient(180deg, transparent, rgba(21, 93, 84, 0.2), transparent);
  cursor: row-resize;
}

body.has-result .worksheet,
body.has-result .planet-card,
body.has-result #kp-section,
body.has-result #transit-section,
body.has-result .dasha-card,
body.has-result .interpretation-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
  border-color: #bdb09f;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(44, 30, 18, 0.08);
  background: #fffdfa;
}

body.has-result .worksheet {
  grid-area: charts;
  border-color: #aebe81;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

body.has-result .planet-card:not(#kp-section) {
  grid-area: planets;
}

body.has-result.result-lagna .planet-card:not(#kp-section) {
  grid-area: planets;
}

body.has-result #kp-section {
  grid-area: kp;
}

body.has-result.result-lagna #kp-section {
  grid-area: kp;
}

body.has-result #transit-section {
  grid-area: transit;
  overflow-y: auto;
}

body.has-result .dasha-card {
  grid-area: dasha;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

body.has-result .interpretation-card {
  grid-area: interpretation;
  overflow-y: auto;
}

body.has-result #consultants-card {
  display: none !important;
}

body.has-result .worksheet-head {
  gap: 8px;
  padding-bottom: 6px;
}

body.has-result .worksheet-head h3,
body.has-result .planet-card h3,
body.has-result #transit-section h3,
body.has-result .dasha-app-head h3,
body.has-result .interpretation-head h3 {
  font-size: 0.86rem;
  margin-bottom: 4px;
}

body.has-result .worksheet-actions {
  grid-template-columns: minmax(112px, 1fr) auto auto;
  gap: 5px;
}

body.has-result .worksheet-actions select {
  display: inline-flex;
  min-width: 112px;
  max-width: 150px;
  height: 30px;
  padding: 4px 7px;
  font-size: 0.68rem;
}

body.has-result .worksheet-actions button {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 0.68rem;
}

body.has-result .worksheet-presets {
  display: flex;
  gap: 4px;
  min-height: 28px;
  overflow-x: auto;
  padding-bottom: 2px;
}

body.has-result .worksheet-presets button {
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 4px;
  border-color: rgba(21, 93, 84, 0.22);
  background: #f7fbf8;
  color: var(--ink-light);
  font-size: 0.66rem;
  white-space: nowrap;
  box-shadow: none;
}

body.has-result .worksheet-presets button.is-active {
  background: #e7f1dc;
  border-color: #9bb76b;
  color: #263318;
  font-weight: 800;
}

body.has-result .chart-tabs {
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  min-height: 32px;
  flex-wrap: nowrap;
}

body.has-result .chart-tab {
  min-width: 52px;
  min-height: 28px;
  height: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
}

body.has-result .chart-tab span {
  display: none;
}

body.has-result .worksheet-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 6px;
  padding: 6px;
  border-color: #c7d59c;
  background: #ffffef;
}

body.has-result .worksheet-canvas[data-chart-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

body.has-result .worksheet-canvas[data-chart-count="2"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

body.has-result .worksheet-canvas[data-chart-count="3"],
body.has-result .worksheet-canvas[data-chart-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 1fr);
  overflow: auto;
}

body.has-result .worksheet-canvas[data-chart-count="5"],
body.has-result .worksheet-canvas[data-chart-count="6"],
body.has-result .worksheet-canvas[data-chart-count="7"],
body.has-result .worksheet-canvas[data-chart-count="8"],
body.has-result .worksheet-canvas[data-chart-count="9"],
body.has-result .worksheet-canvas[data-chart-count="10"],
body.has-result .worksheet-canvas[data-chart-count="11"],
body.has-result .worksheet-canvas[data-chart-count="12"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, 1fr);
  overflow: auto;
}

body.has-result .worksheet-canvas[data-chart-count="1"] .chart-surface,
body.has-result .worksheet-canvas[data-chart-count="2"] .chart-surface {
  align-items: stretch;
}

body.has-result .worksheet-canvas[data-chart-count="1"] .north-chart,
body.has-result .worksheet-canvas[data-chart-count="2"] .north-chart {
  height: 100%;
  aspect-ratio: auto;
}

body.has-result .worksheet-item {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 282px;
  overflow: hidden;
  border: 1px solid rgba(21, 93, 84, 0.22);
  border-radius: 4px;
}

body.has-result .worksheet-item.is-drop-target {
  border-color: #c99b3f;
  box-shadow: inset 0 0 0 2px rgba(201, 155, 63, 0.32);
}

body.has-result .worksheet-canvas[data-chart-count="5"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="6"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="7"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="8"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="9"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="10"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="11"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="12"] .worksheet-item {
  min-height: 160px;
}

body.has-result .worksheet-canvas[data-chart-count="1"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="2"] .worksheet-item {
  min-height: 0;
}

body.has-result .worksheet-item-head {
  min-height: 24px;
  padding: 3px 7px;
  background: #f5eadc;
}

body.has-result .chart-surface {
  display: grid;
  place-items: stretch;
  min-height: 0;
  padding: 4px;
}

body.has-result .north-chart {
  position: relative;
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 100 / 70;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #b8c987;
  border-radius: 3px;
  background: #ffffef;
  container-type: inline-size;
}

body.has-result .north-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.has-result .north-chart rect,
body.has-result .north-chart path {
  fill: none;
  stroke: var(--chart-line, #e8b08c);
  stroke-width: 0.55;
}

body.has-result .north-chart path.soft {
  stroke-dasharray: 1.2 1.2;
}

body.has-result .chart-slot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 13%;
  min-height: 12%;
  max-height: 24%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

body.has-result .slot-1 { left: 50%; top: 23%; }
body.has-result .slot-2 { left: 28%; top: 9%; }
body.has-result .slot-3 { left: 17%; top: 25%; }
body.has-result .slot-4 { left: 40%; top: 50%; }
body.has-result .slot-5 { left: 19%; top: 72%; }
body.has-result .slot-6 { left: 27%; top: 90%; }
body.has-result .slot-7 { left: 50%; top: 75%; }
body.has-result .slot-8 { left: 73%; top: 90%; }
body.has-result .slot-9 { left: 82%; top: 72%; }
body.has-result .slot-10 { left: 60%; top: 50%; }
body.has-result .slot-11 { left: 86%; top: 30%; }
body.has-result .slot-12 { left: 68%; top: 10%; }

body.has-result .sign-number {
  color: #d5432e;
  font-size: clamp(0.76rem, 4.25cqw, 1.12rem);
  font-weight: 900;
  line-height: 1;
}

body.has-result .planet-stack {
  display: grid;
  gap: 1px;
  justify-items: center;
  margin-top: 2px;
  font-size: clamp(0.58rem, 3.35cqw, 0.9rem);
  font-weight: 900;
  line-height: 0.98;
}

body.has-result .planet-token {
  display: block;
  white-space: nowrap;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.has-result .table-wrap {
  height: calc(100% - 28px);
  overflow: auto;
}

body.has-result table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.68rem;
}

body.has-result th,
body.has-result td {
  padding: 4px 5px;
  font-size: 0.68rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.has-result th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fffdfa;
}

body.has-result .dasha-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 7px 0;
}

body.has-result .dasha-drillbar {
  gap: 6px;
  margin: 7px 0 6px;
  padding: 6px;
  border-radius: 4px;
}

body.has-result .dasha-card .table-wrap {
  height: auto;
  min-height: 0;
}

body.has-result .dasha-note {
  margin-top: 6px;
  font-size: 0.66rem;
}

body.has-result .transit-layout {
  grid-template-columns: 1fr;
  gap: 10px;
  height: auto;
}

body.has-result #transit-section .north-chart {
  min-height: 180px;
  height: 100%;
}

body.has-result .transit-facts {
  display: none;
}

body.has-result .chart-surface .responsive-canvas,
body.has-result #transit-section .responsive-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
}

body.has-result #transit-section .responsive-canvas {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 180px;
}

body.has-result .main-dasha-widget,
body.has-result .dasha-widget {
  height: 100%;
  min-height: 0;
}

body.has-result .dasha-widget {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  border-radius: 5px;
  overflow: hidden;
  background: #fffdfa;
}

body.has-result .dasha-widget-header {
  padding: 6px 8px;
  gap: 6px;
}

body.has-result .dasha-widget-title {
  font-size: 0.8rem;
}

body.has-result .dasha-widget-subtitle {
  padding: 2px 6px;
  font-size: 0.62rem;
}

body.has-result .dasha-summary-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 8px;
}

body.has-result .dasha-summary-pill {
  min-width: 0;
  padding: 5px 6px;
  gap: 5px;
}

body.has-result .dasha-summary-pill strong {
  font-size: 0.58rem;
}

body.has-result .dasha-summary-pill span {
  font-size: 0.7rem;
}

body.has-result .dasha-summary-pill small {
  font-size: 0.6rem;
}

body.has-result .dasha-widget-drillbar {
  padding: 6px 8px;
  gap: 6px;
}

body.has-result .dasha-widget-back-btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.68rem;
}

body.has-result .dasha-widget-level-heading {
  font-size: 0.76rem;
}

body.has-result .dasha-widget-path {
  font-size: 0.62rem;
}

body.has-result .dasha-widget-table-wrap {
  min-height: 0;
  overflow: auto;
}

body.has-result .dasha-widget-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.68rem;
}

body.has-result .dasha-widget-table th,
body.has-result .dasha-widget-table td {
  padding: 5px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.has-result .dasha-widget-note {
  padding: 5px 8px;
  font-size: 0.6rem;
}

@media (max-width: 1100px) {
  body.has-result {
    overflow-y: auto;
  }

  body.has-result .global-navbar {
    height: auto;
  }

  body.has-result .shell,
  body.has-result .result {
    height: auto;
  }

  body.has-result .result {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
}

/* ==========================================================================
   Follow-up Chat Extend (AstroAI console) Styling
   ========================================================================== */
.chat-extend-section {
  border-top: 1px solid var(--line-gold);
  padding-top: 24px;
  margin-top: 24px;
}

.chat-extend-title {
  font-family: 'Inter', sans-serif;
  color: var(--divine-gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.chat-extend-subtitle {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.chat-extend-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-space);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(46, 43, 95, 0.08);
}

.chat-bubble.user {
  background: var(--bg-panel);
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2));
  color: var(--ink-light);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bubble.bot {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--saffron-gold);
  color: var(--ink-light);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.bot section h4 {
  font-family: 'Inter', sans-serif;
  color: var(--saffron-gold);
  margin-bottom: 4px;
}

.chat-extend-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#chat-extend-input {
  flex-grow: 1;
  border: 1px solid rgba(46, 43, 95, 0.1);
  background: var(--bg-panel);
  color: var(--ink-light);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  resize: none;
  transition: border-color 0.2s;
  height: 52px;
}

#chat-extend-input:focus {
  outline: none;
  border-color: var(--saffron-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

#btn-chat-extend-submit {
  height: 52px;
  white-space: nowrap;
}

.chat-extend-status {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--saffron-gold);
  min-height: 18px;
  font-weight: 600;
}

/* ==========================================================================
   Pricing Subscriptions Active States
   ========================================================================== */
.pricing-plan-card.active-plan {
  border: 2px solid var(--saffron-gold) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15) !important;
}

.pricing-plan-card.active-plan .btn-select-plan {
  background: var(--bg-panel) !important;
  color: var(--ink-dim) !important;
  border: 1px solid var(--border-color, rgba(212, 175, 55, 0.2)) !important;
  cursor: default !important;
  pointer-events: none !important;
}

.subscription-status-alert {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-emerald);
  padding: 16px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   India-Market Visual Redesign Accents
   ========================================================================== */

/* Tiro Devanagari Hindi / Noto Serif Devanagari styling */
.devanagari-accent {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--saffron-gold); /* Deep Vermillion */
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  text-shadow: none !important;
}

/* Today's Panchang Strip Ticker */
.panchang-strip {
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  z-index: 99;
  position: relative;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  user-select: none;
}

.panchang-track {
  display: inline-flex;
  align-items: center;
  animation: panchang-marquee 30s linear infinite;
}

.panchang-strip:hover .panchang-track {
  animation-play-state: paused;
}

.panchang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}

.panchang-label {
  font-family: 'Noto Serif Devanagari', 'Inter', serif;
  color: var(--saffron-gold);
  font-weight: 600;
  font-size: 0.82rem;
}

.panchang-val {
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
}

.panchang-divider {
  width: 1px;
  height: 14px;
  background: var(--saffron-orange);
  opacity: 0.3;
}

@keyframes panchang-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* ==========================================================================
   Floating Popups (Community & WhatsApp)
   ========================================================================== */
.floating-popup {
  position: fixed;
  bottom: 24px;
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

body.popup-landing-active .floating-popup:not(.hidden) {
  display: flex;
}

.floating-popup.popup-left {
  left: 24px;
}

.floating-popup.popup-right {
  right: 24px;
}

.floating-popup.hidden {
  display: none;
}

.floating-popup .popup-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #fff8ee 100%);
  border: 1.8px solid var(--saffron-orange);
  border-radius: 14px;
  padding: 16px 20px;
  width: min(380px, calc(100vw - 48px));
  box-shadow: 0 12px 30px rgba(112, 99, 77, 0.15);
  position: relative;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: auto;
  animation: auric-pulse 4s infinite ease-in-out;
  overflow: hidden;
}

.floating-popup.visible .popup-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-popup .popup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 162, 97, 0.28);
  border-color: var(--saffron-gold);
}

.floating-popup .popup-icon-wrapper {
  background: rgba(158, 51, 36, 0.08);
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron-gold);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.floating-popup.popup-right .popup-icon-wrapper {
  background: rgba(72, 130, 134, 0.1);
  color: var(--accent-blue);
}

.floating-popup .popup-content {
  flex: 1;
  padding-right: 12px;
  position: relative;
  z-index: 2;
}

.floating-popup .popup-watermark {
  position: absolute;
  bottom: -35px;
  right: -20px;
  width: 160px;
  height: 160px;
  opacity: 0.5;
  color: var(--saffron-orange);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Marcellus', serif;
  font-size: 160px;
  line-height: 1;
  user-select: none;
}

.floating-popup.popup-right .popup-watermark {
  color: var(--accent-blue);
  width: 140px;
  height: 140px;
  bottom: -25px;
  right: -15px;
}

.floating-popup.popup-right .popup-watermark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.floating-popup .popup-content h4 {
  margin: 0 0 4px 0;
  font-family: 'Marcellus', serif;
  color: var(--saffron-gold);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.floating-popup.popup-right .popup-content h4 {
  color: var(--accent-purple);
}

.floating-popup .popup-content p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}

.floating-popup .popup-content b {
  color: rgb(97, 54, 54);
  font-size: 1rem;
}

.floating-popup .popup-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 12px;
  transition: color 0.2s ease;
  z-index: 10;
}

.floating-popup .popup-close:hover {
  color: var(--saffron-gold);
}

@media (max-width: 860px) {
  .floating-popup {
    bottom: 16px;
  }

  .floating-popup.popup-left,
  .floating-popup.popup-right {
    left: 16px;
    right: 16px;
  }

  .floating-popup.popup-left {
    bottom: 116px;
  }

  .floating-popup .popup-card {
    width: auto;
  }
}

@keyframes auric-pulse {
  0% {
    box-shadow: 0 12px 30px rgba(200, 162, 97, 0.15), 0 0 0 0px rgba(200, 162, 97, 0.25);
    border-color: var(--saffron-orange);
  }
  50% {
    box-shadow: 0 16px 36px rgba(200, 162, 97, 0.32), 0 0 0 6px rgba(200, 162, 97, 0);
    border-color: var(--saffron-gold);
  }
  100% {
    box-shadow: 0 12px 30px rgba(200, 162, 97, 0.15), 0 0 0 0px rgba(200, 162, 97, 0);
    border-color: var(--saffron-orange);
  }
}

/* Ambient Rotating Background Chakra */
.chakra-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chakra-svg {
  width: min(85vw, 650px);
  height: min(85vw, 650px);
  color: var(--saffron-orange);
  opacity: 0.045; /* 4.5% opacity as subtle texture */
  animation: rotate-chakra 180s linear infinite;
  transform-origin: center;
  flex-shrink: 0;
}

@keyframes rotate-chakra {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .chakra-svg {
    animation: none;
  }
}

/* Faint Watermarks for empty states/forms */
.faint-watermark-container {
  position: relative;
  overflow: hidden;
}

.faint-watermark-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' fill='none' stroke='%23C8A261' stroke-width='0.8' aria-hidden='true' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='6' stroke-width='1.2' /%3E%3Ccircle cx='50' cy='50' r='2' fill='%23C8A261' /%3E%3Ccircle cx='50' cy='50' r='18' stroke-dasharray='2,2' /%3E%3Ccircle cx='50' cy='50' r='44' stroke-width='1.2' /%3E%3Ccircle cx='50' cy='50' r='47' /%3E%3Cg stroke-width='0.6'%3E%3Cline x1='50' y1='50' x2='50' y2='6' /%3E%3Cline x1='50' y1='50' x2='50' y2='94' /%3E%3Cline x1='50' y1='50' x2='6' y2='50' /%3E%3Cline x1='50' y1='50' x2='94' y2='50' /%3E%3Cline x1='50' y1='50' x2='19' y2='19' /%3E%3Cline x1='50' y1='50' x2='81' y2='81' /%3E%3Cline x1='50' y1='50' x2='19' y2='81' /%3E%3Cline x1='50' y1='50' x2='81' y2='19' /%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* Gopuram Arch Divider */
.gopuram-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  opacity: 0.3;
  color: var(--saffron-orange);
  width: 100%;
}

.gopuram-divider::before, .gopuram-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.gopuram-svg {
  width: 38px;
  height: 38px;
  margin: 0 16px;
  flex-shrink: 0;
}

/* Diya Accent Elements */
.diya-bullet-list {
  list-style: none;
}

.diya-bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.diya-bullet-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 50% 100%, var(--saffron-orange) 30%, transparent 60%);
  border: 1px solid var(--saffron-orange);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%);
}

.diya-bullet-list li::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 0px;
  width: 2px;
  height: 4px;
  background: var(--saffron-gold); /* Sindoor/Vermillion Flame */
  border-radius: 50%;
  animation: flicker 0.2s infinite alternate;
}

@keyframes flicker {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; }
}

/* Premium Toast / Flash Notification */
.astro-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.astro-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 450px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-light);
}
.astro-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.astro-toast.error {
  border-left: 4px solid var(--saffron-gold);
}
.astro-toast.success {
  border-left: 4px solid var(--green-emerald);
}
.astro-toast.info {
  border-left: 4px solid var(--divine-gold);
}
.astro-toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.astro-toast-message {
  flex-grow: 1;
}

/* ==========================================================================
   Dasha Widget (dasha-engine.js) — Reusable 5-level Vimshottari Dasha UI
   ========================================================================== */
.dasha-widget {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--color-gold-rgb, 180, 130, 60), 0.18);
}
.dasha-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.dasha-widget-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-primary, #1a1a2e);
}
.dasha-widget-subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted, #888);
  background: rgba(180,130,60,0.08);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: 0.02em;
}

/* 5-pill summary row */
.dasha-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(180,130,60,0.04), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dasha-summary-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2, #f8f7f3);
  border-radius: 10px;
  padding: 6px 12px 6px 8px;
  min-width: 130px;
  flex: 1 1 130px;
  border: 1px solid rgba(0,0,0,0.06);
}
.dasha-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dasha-summary-pill strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted, #888);
  font-weight: 600;
}
.dasha-summary-pill span {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary, #1a1a2e);
}
.dasha-summary-pill small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted, #888);
}

/* Drillbar (Back button + breadcrumb) */
.dasha-widget-drillbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--surface-1, #faf9f6);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dasha-widget-back-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--ink-primary, #1a1a2e);
  white-space: nowrap;
  transition: background 0.15s;
}
.dasha-widget-back-btn:hover:not([disabled]) { background: rgba(0,0,0,0.05); }
.dasha-widget-back-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.dasha-widget-level-heading {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary, #1a1a2e);
}
.dasha-widget-path {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-muted, #888);
}

/* Table */
.dasha-widget-table-wrap { overflow-x: auto; }
.dasha-widget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.dasha-widget-table thead tr {
  background: rgba(180,130,60,0.07);
}
.dasha-widget-table th {
  padding: 8px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted, #888);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.dasha-widget-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}
.dasha-widget-table tbody tr:last-child td { border-bottom: none; }
.dasha-widget-table tbody tr:hover { background: rgba(180,130,60,0.04); }
.dasha-row-clickable { cursor: pointer; }
.dasha-row-clickable:hover td:first-child { color: var(--divine-gold, #b4823c); }
.dasha-row-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.dasha-row-drill {
  font-size: 0.68rem;
  color: var(--ink-muted, #999);
  margin-left: 6px;
  vertical-align: middle;
}

/* Note / footer */
.dasha-widget-note {
  padding: 8px 18px;
  font-size: 0.72rem;
  color: var(--ink-muted, #aaa);
  border-top: 1px solid rgba(0,0,0,0.04);
  margin: 0;
}
.dasha-widget-empty {
  padding: 20px;
  text-align: center;
  color: var(--ink-muted, #aaa);
  font-size: 0.85rem;
}

/* Dasha widget grid for matchmaking page */
.dasha-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .dasha-widget-grid {
    grid-template-columns: 1fr;
  }
}
.dasha-intro-note {
  font-size: 0.82rem;
  color: var(--ink-muted, #888);
  margin: -8px 0 14px;
  font-style: italic;
}
.dasha-widget-mount {
  min-height: 60px;
}

/* ==========================================================================
   Generated Chart Workstation Final Layout
   ========================================================================== */
body.has-result .planet-card:not(#kp-section),
body.has-result #kp-section {
  display: none !important;
}

body.has-result .result {
  grid-template-columns:
    minmax(360px, 1.18fr)
    8px
    minmax(340px, 1fr)
    8px
    minmax(300px, 0.9fr);
  grid-template-rows: 44px 62px minmax(0, 1fr) 8px minmax(0, 0.88fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right transit"
    "charts resize-left row-resizer resize-right transit"
    "charts resize-left dasha resize-right transit";
}

body.has-result.show-planetary .result {
  grid-template-rows: 44px 62px minmax(0, 1fr) 8px minmax(180px, 0.68fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right transit"
    "charts resize-left row-resizer resize-right transit"
    "charts resize-left planets resize-right transit";
}

body.has-result.show-kp .result {
  grid-template-rows: 44px 62px minmax(0, 1fr) 8px minmax(180px, 0.68fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right transit"
    "charts resize-left row-resizer resize-right transit"
    "charts resize-left kp resize-right transit";
}

body.has-result.show-planetary.show-kp .result {
  grid-template-rows: 44px 62px minmax(0, 1fr) 8px minmax(145px, 0.45fr) minmax(145px, 0.45fr);
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right transit"
    "charts resize-left row-resizer resize-right transit"
    "charts resize-left planets resize-right transit"
    "charts resize-left kp resize-right transit";
}

body.has-result.result-prashna .result {
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right interpretation"
    "charts resize-left row-resizer resize-right interpretation"
    "charts resize-left dasha resize-right interpretation";
}

body.has-result.result-prashna.show-planetary .result {
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right interpretation"
    "charts resize-left row-resizer resize-right interpretation"
    "charts resize-left planets resize-right interpretation";
}

body.has-result.result-prashna.show-kp .result {
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right interpretation"
    "charts resize-left row-resizer resize-right interpretation"
    "charts resize-left kp resize-right interpretation";
}

body.has-result.result-prashna.show-planetary.show-kp .result {
  grid-template-areas:
    "head head head head head"
    "facts facts facts facts facts"
    "charts resize-left dasha resize-right interpretation"
    "charts resize-left row-resizer resize-right interpretation"
    "charts resize-left planets resize-right interpretation"
    "charts resize-left kp resize-right interpretation";
}

body.has-result .worksheet,
body.has-result .dasha-card,
body.has-result #transit-section,
body.has-result .interpretation-card {
  border-radius: 4px;
  border: 1px solid #c4b6a4;
  background: #fffefa;
}

body.has-result .widget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5d8c8;
}

body.has-result .widget-toggle {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #cfc3b3;
  border-radius: 4px;
  background: #fffdfa;
  color: var(--ink-light);
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: none;
}

body.has-result .widget-toggle[aria-pressed="true"] {
  background: #e7f1dc;
  border-color: #91aa63;
  color: #263318;
}

body.has-result.show-planetary .planet-card:not(#kp-section),
body.has-result.show-kp #kp-section {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.has-result.show-planetary .planet-card:not(#kp-section) {
  grid-area: planets;
}

body.has-result.show-kp #kp-section {
  grid-area: kp;
}

body.has-result .planet-card .table-wrap,
body.has-result #kp-section .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.has-result .dasha-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  overflow: hidden;
}

body.has-result .worksheet {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

body.has-result .worksheet-canvas,
body.has-result .worksheet-canvas[data-chart-count="1"],
body.has-result .worksheet-canvas[data-chart-count="2"],
body.has-result .worksheet-canvas[data-chart-count="3"],
body.has-result .worksheet-canvas[data-chart-count="4"],
body.has-result .worksheet-canvas[data-chart-count="5"],
body.has-result .worksheet-canvas[data-chart-count="6"],
body.has-result .worksheet-canvas[data-chart-count="7"],
body.has-result .worksheet-canvas[data-chart-count="8"],
body.has-result .worksheet-canvas[data-chart-count="9"],
body.has-result .worksheet-canvas[data-chart-count="10"],
body.has-result .worksheet-canvas[data-chart-count="11"],
body.has-result .worksheet-canvas[data-chart-count="12"] {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: minmax(240px, 1fr);
  grid-template-rows: none;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
}

body.has-result .worksheet-canvas[data-chart-count="1"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="2"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="3"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="4"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="5"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="6"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="7"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="8"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="9"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="10"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="11"] .worksheet-item,
body.has-result .worksheet-canvas[data-chart-count="12"] .worksheet-item {
  min-height: 240px;
}

body.has-result .main-dasha-widget,
body.has-result .dasha-widget {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

body.has-result .dasha-widget {
  border-radius: 4px;
  overflow: hidden;
}

body.has-result .dasha-widget-header,
body.has-result .dasha-widget-drillbar {
  flex: 0 0 auto;
}

body.has-result .dasha-summary-pills {
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.has-result .dasha-widget-path {
  white-space: nowrap;
}

body.has-result .dasha-widget-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #e5d8c8;
  border-bottom: 1px solid #e5d8c8;
}

body.has-result .dasha-widget-table {
  min-width: 0;
  table-layout: auto;
  font-size: 0.68rem;
}

body.has-result .dasha-widget-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fcf8f2;
}

body.has-result .dasha-widget-table th,
body.has-result .dasha-widget-table td {
  padding: 5px 6px;
  line-height: 1.18;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
}

body.has-result .dasha-widget-table th:first-child,
body.has-result .dasha-widget-table td:first-child {
  width: 42%;
  white-space: normal;
}

body.has-result .dasha-widget-table th:not(:first-child),
body.has-result .dasha-widget-table td:not(:first-child) {
  white-space: nowrap;
}

body.has-result .dasha-row-drill {
  display: block;
  margin-left: 16px;
  margin-top: 1px;
}

body.has-result #transit-section {
  display: flex;
  flex-direction: column;
}

body.has-result.result-prashna #transit-section {
  display: none !important;
}

body.has-result #transit-section .transit-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.has-result .interpretation-card.hidden {
  display: none !important;
}

@media (max-width: 1280px) {
  body.has-result {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.has-result .result,
  body.has-result.result-prashna .result {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.has-result .shell {
    height: auto;
    min-height: calc(100dvh - 58px);
  }

  body.has-result .worksheet,
  body.has-result .dasha-card,
  body.has-result #transit-section,
  body.has-result .interpretation-card {
    min-height: 420px;
  }

  body.has-result .planet-card:not(#kp-section),
  body.has-result #kp-section {
    display: none !important;
  }

  body.has-result.show-planetary .planet-card:not(#kp-section),
  body.has-result.show-kp #kp-section {
    display: flex !important;
    min-height: 320px;
  }
}

/* ==========================================================================
   Chart Workstation Final Refinement
   ========================================================================== */
@media (min-width: 901px) {
  body.has-result {
    overflow: hidden;
  }

  body.has-result .shell {
    height: calc(100dvh - 58px);
    min-height: 0;
  }

  body.has-result .result,
  body.has-result.result-prashna .result {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) 8px minmax(320px, 1fr) 8px minmax(320px, 1fr);
    grid-template-rows: 44px 58px minmax(0, 1fr) 8px minmax(220px, 0.58fr);
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left planets resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left planets resize-right transit";
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.has-result.show-kp .result,
  body.has-result.show-planetary.show-kp .result {
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left planets resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left kp resize-right transit";
  }

  body.has-result.result-prashna .result {
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left planets resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left planets resize-right interpretation";
  }

  body.has-result.result-prashna.show-kp .result,
  body.has-result.result-prashna.show-planetary.show-kp .result {
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left planets resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left kp resize-right interpretation";
  }
}

body.has-result .widget-controls {
  gap: 4px;
  padding-bottom: 4px;
}

body.has-result .worksheet {
  min-height: 0;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

body.has-result .worksheet-canvas,
body.has-result .worksheet-canvas[data-chart-count] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(300px, auto);
  grid-template-rows: none;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.has-result .worksheet-canvas[data-chart-count] .worksheet-item {
  min-height: 300px;
}

body.has-result.show-planetary .planet-card:not(#kp-section) {
  display: flex !important;
  grid-area: planets;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.has-result .planet-card:not(#kp-section) h3,
body.has-result #kp-section h3 {
  flex: 0 0 auto;
}

body.has-result .planet-card:not(#kp-section) .table-wrap,
body.has-result #kp-section .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: auto;
}

body.has-result .planet-card:not(#kp-section) table,
body.has-result #kp-section table,
body.has-result #transit-section table {
  table-layout: auto;
  min-width: 100%;
}

body.has-result .dasha-widget--workstation {
  background: #f7f8fa;
  border: 1px solid #bfc8d1;
  border-radius: 3px;
  color: #102f3a;
}

body.has-result .dasha-widget--workstation .dasha-widget-header {
  min-height: 48px;
  padding: 8px 14px;
  background: #f7f8fa;
  border-bottom: 1px solid #c8d0d8;
}

body.has-result .dasha-widget--workstation .dasha-widget-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #0c3140;
}

body.has-result .dasha-widget--workstation .dasha-widget-back-btn {
  margin-left: auto;
  min-height: 32px;
  border-radius: 2px;
  border-color: #e3c8b5;
  background: #fffaf6;
  color: #9a4a18;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.has-result .dasha-widget--workstation .dasha-widget-drillbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 14px;
  background: #f4f6f8;
  border-bottom: 1px solid #c8d0d8;
}

body.has-result .dasha-widget--workstation .dasha-widget-level-heading,
body.has-result .dasha-widget--workstation .dasha-widget-path {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.has-result .dasha-widget--workstation .dasha-widget-level-heading {
  color: #3f454b;
  font-weight: 700;
}

body.has-result .dasha-widget--workstation .dasha-widget-path {
  color: #0d3442;
  font-weight: 800;
  white-space: normal;
}

body.has-result .dasha-widget--workstation .dasha-widget-table-wrap {
  border: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.has-result .dasha-widget--workstation .dasha-widget-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.82rem;
}

body.has-result .dasha-widget--workstation .dasha-widget-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  background: #ffffff;
  color: #42484d;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid #c9d0d6;
}

body.has-result .dasha-widget--workstation .dasha-widget-table td {
  padding: 9px 12px;
  color: #1a2025;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #e4e8ec;
}

body.has-result .dasha-widget--workstation .dasha-widget-table td:first-child {
  white-space: normal;
}

body.has-result .dasha-widget--workstation .dasha-widget-table .is-active-dasha td {
  background: #eef1f4;
  color: #0d3442;
  font-weight: 900;
}

body.has-result .dasha-active-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 2px;
  background: #9a2f1f;
  color: #ffffff;
  font-size: 0.55rem;
  line-height: 1;
  text-transform: uppercase;
}

body.has-result .dasha-widget--workstation .dasha-row-drill {
  display: inline-block;
  margin: 0 0 0 6px;
  color: #8b8f95;
}

body.has-result #transit-section {
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-layout {
  display: grid;
  grid-template-columns: minmax(132px, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-layout > div {
  min-width: 0;
  min-height: 0;
}

body.has-result #transit-section .table-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

body.has-result #transit-section .responsive-canvas {
  width: 100%;
  height: auto;
  min-height: 132px;
  aspect-ratio: 1 / 1;
}

/* Match Dasha and Gochar panels to the warm workstation theme */
body.has-result .dasha-widget--workstation {
  background: #fffefa;
  border-color: #c4b6a4;
  color: var(--ink-light);
}

body.has-result .dasha-widget--workstation .dasha-widget-header {
  min-height: 46px;
  background: #f5eadc;
  border-bottom-color: #dfd2c1;
}

body.has-result .dasha-widget--workstation .dasha-widget-title {
  color: var(--ink-light);
  font-weight: 800;
}

body.has-result .dasha-widget--workstation .dasha-widget-back-btn {
  border-color: #d8b980;
  background: #fffdfa;
  color: var(--copper, #aa3b2c);
  font-weight: 800;
}

body.has-result .dasha-widget--workstation .dasha-widget-drillbar {
  background: #fffdfa;
  border-bottom-color: #e5d8c8;
}

body.has-result .dasha-widget--workstation .dasha-widget-level-heading {
  color: var(--copper, #aa3b2c);
}

body.has-result .dasha-widget--workstation .dasha-widget-path {
  color: var(--ink-light);
}

body.has-result .dasha-widget--workstation .dasha-widget-table th {
  background: #fcf8f2;
  color: var(--copper, #aa3b2c);
  border-bottom-color: #dfd2c1;
}

body.has-result .dasha-widget--workstation .dasha-widget-table td {
  color: var(--ink-light);
  border-bottom-color: #eee4d8;
}

body.has-result .dasha-widget--workstation .dasha-widget-table .is-active-dasha td {
  background: #f5eadc;
  color: var(--ink-light);
}

body.has-result .dasha-active-badge {
  background: var(--copper, #aa3b2c);
}

body.has-result #transit-section {
  padding: 8px;
}

body.has-result #transit-section .dasha-app-head {
  flex: 0 0 auto;
}

body.has-result #transit-section .transit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(260px, 1fr) minmax(170px, 0.72fr);
  gap: 8px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-chart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-chart-panel h3 {
  margin: 0 0 5px;
}

body.has-result #transit-section .transit-data-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  min-height: 0;
}

body.has-result #transit-section .transit-facts .fact {
  padding: 5px 6px;
}

body.has-result #transit-section .transit-facts .fact span {
  font-size: 0.52rem;
}

body.has-result #transit-section .transit-facts .fact strong {
  font-size: 0.58rem;
  line-height: 1.08;
}

body.has-result #transit-section .responsive-canvas {
  justify-self: center;
  align-self: center;
  width: min(100%, 430px);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

body.has-result #transit-section .table-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1200px) {
  body.has-result #transit-section .transit-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.has-result {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.has-result .result,
  body.has-result.result-prashna .result {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  body.has-result .shell {
    height: auto;
  }
}

/* Final Gochar workstation correction */
@media (min-width: 901px) {
  body.has-result .result,
  body.has-result.result-prashna .result {
    grid-template-rows: 44px 58px minmax(0, 0.85fr) 8px minmax(360px, 1fr);
  }
}

body.has-result #transit-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

body.has-result #transit-section .transit-chart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex: 1 1 58%;
  min-height: 260px;
  overflow: hidden;
}

body.has-result #transit-section .transit-chart-panel h3 {
  flex: 0 0 auto;
  margin: 0 0 4px;
}

body.has-result #transit-section .responsive-canvas {
  display: block;
  justify-self: center;
  align-self: center;
  width: auto;
  height: min(100%, 420px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
}

body.has-result #transit-section .transit-data-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  flex: 0 1 42%;
  min-height: 165px;
  overflow: hidden;
  padding-top: 7px;
  border-top: 1px solid #e5d8c8;
}

body.has-result #transit-section .transit-facts {
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

body.has-result #transit-section .transit-facts .fact {
  min-width: 76px;
}

body.has-result #transit-section .table-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

body.has-result #transit-section table {
  min-width: 640px;
  table-layout: auto;
}

body.has-result #transit-section th,
body.has-result #transit-section td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* Gochar final vertical stack: chart first, all details below */
body.has-result #transit-section {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.has-result #transit-section .transit-layout {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.has-result #transit-section .transit-chart-panel {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.has-result #transit-section .transit-chart-panel h3 {
  margin: 10px 0 8px !important;
}

body.has-result #transit-section .responsive-canvas {
  display: block !important;
  width: min(100%, 640px) !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 12px !important;
}

body.has-result #transit-section .transit-data-panel {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding-top: 10px !important;
  border-top: 1px solid #e5d8c8 !important;
  overflow: visible !important;
}

body.has-result #transit-section .table-wrap {
  display: block !important;
  width: 100% !important;
  max-height: 260px !important;
  min-height: 0 !important;
  overflow: auto !important;
  border: 1px solid #eee4d8;
  border-radius: 4px;
  background: #fffefa;
}

body.has-result #transit-section table {
  width: max-content !important;
  min-width: 760px !important;
  table-layout: auto !important;
}

body.has-result #transit-section th,
body.has-result #transit-section td {
  padding: 6px 9px !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.has-result #transit-section .transit-facts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  gap: 6px !important;
  margin-top: 8px !important;
  overflow: visible !important;
}

body.has-result #transit-section .transit-facts .fact {
  min-width: 0 !important;
}

/* Gochar compact chart: details first, smaller chart below */
body.has-result #transit-section .transit-data-panel {
  padding-top: 0 !important;
  padding-bottom: 10px !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e5d8c8 !important;
}

body.has-result #transit-section .transit-facts {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

body.has-result #transit-section .table-wrap {
  max-height: 310px !important;
}

body.has-result #transit-section .transit-chart-panel {
  margin-top: 8px !important;
  padding-top: 0 !important;
}

body.has-result #transit-section .transit-chart-panel h3 {
  margin: 0 0 6px !important;
  font-size: 0.78rem !important;
}

body.has-result #transit-section .responsive-canvas {
  width: min(100%, 280px) !important;
  height: auto !important;
  max-height: 280px !important;
  margin: 0 auto !important;
}

/* KP selected workspace: fill the middle column with Significators + Cusps */
@media (min-width: 901px) {
  body.has-result.show-kp .result,
  body.has-result.show-planetary.show-kp .result {
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left kp resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left kp resize-right transit" !important;
  }

  body.has-result.result-prashna.show-kp .result,
  body.has-result.result-prashna.show-planetary.show-kp .result {
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left kp resize-right dasha"
      "charts resize-left row-resizer resize-right dasha"
      "charts resize-left kp resize-right interpretation" !important;
  }
}

body.has-result.show-kp .planet-card:not(#kp-section) {
  display: none !important;
}

body.has-result.show-kp #kp-section {
  display: grid !important;
  grid-area: kp;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section .kp-significators-panel,
body.has-result #kp-section .kp-cusps-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section h3 {
  margin: 0 0 6px;
}

body.has-result #kp-section .kp-cusps-content {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1.32fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section .kp-chart-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #eee4d8;
  border-radius: 4px;
  background: #fffefa;
}

body.has-result #kp-section #kp-chart {
  width: min(100%, 260px);
  height: auto;
  max-height: 100%;
  aspect-ratio: 1 / 1;
}

body.has-result #kp-section .table-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
  border: 1px solid #eee4d8;
  border-radius: 4px;
  background: #fffefa;
}

body.has-result #kp-section table {
  min-width: 720px;
  table-layout: auto;
}

body.has-result #kp-section th,
body.has-result #kp-section td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 1200px) {
  body.has-result #kp-section .kp-cusps-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(190px, 0.7fr) minmax(0, 1fr);
  }
}

/* KP full-column correction: chart above, all details below */
@media (min-width: 901px) {
  body.has-result.show-kp .result,
  body.has-result.show-planetary.show-kp .result {
    grid-template-rows: 44px 58px minmax(0, 1fr) minmax(330px, 0.95fr) !important;
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left kp resize-right dasha"
      "charts resize-left kp resize-right transit" !important;
  }

  body.has-result.result-prashna.show-kp .result,
  body.has-result.result-prashna.show-planetary.show-kp .result {
    grid-template-rows: 44px 58px minmax(0, 1fr) minmax(330px, 0.95fr) !important;
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left kp resize-right dasha"
      "charts resize-left kp resize-right interpretation" !important;
  }

  body.has-result.show-kp .row-resizer {
    display: none !important;
  }
}

body.has-result.show-kp #kp-section {
  display: grid !important;
  grid-template-rows: minmax(300px, 0.95fr) minmax(0, 1.05fr) !important;
  gap: 8px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.has-result #kp-section .kp-chart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section .kp-chart-panel h3,
body.has-result #kp-section .kp-details-panel h3 {
  margin: 0 0 6px;
}

body.has-result #kp-section .kp-chart-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #eee4d8;
  border-radius: 4px;
  background: #fffefa;
}

body.has-result #kp-section #kp-chart {
  width: min(100%, 520px) !important;
  height: auto !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
}

body.has-result #kp-section .kp-details-panel {
  display: grid;
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section .kp-significators-panel,
body.has-result #kp-section .kp-cusps-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

body.has-result #kp-section .kp-significators-panel .table-wrap,
body.has-result #kp-section .kp-cusps-panel .table-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1200px) {
  body.has-result.show-kp #kp-section {
    grid-template-rows: minmax(240px, auto) minmax(0, 1fr) !important;
  }

  body.has-result #kp-section .kp-details-panel {
    grid-template-rows: minmax(180px, auto) minmax(220px, auto);
    overflow: auto;
  }
}

/* KP chart must fit fully inside the visible panel */
body.has-result.show-kp #kp-section {
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow-y: auto !important;
}

body.has-result #kp-section .kp-chart-panel {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.has-result #kp-section .kp-chart-wrap {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  place-items: center !important;
}

body.has-result #kp-section #kp-chart {
  width: min(100%, 300px) !important;
  height: min(100%, 300px) !important;
  max-width: 300px !important;
  max-height: 300px !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
}

@media (max-width: 1400px) {
  body.has-result #kp-section #kp-chart {
    width: min(100%, 260px) !important;
    height: min(100%, 260px) !important;
    max-width: 260px !important;
    max-height: 260px !important;
  }
}

/* Prashna generated chart correction: no overlapping middle panels */
@media (min-width: 901px) {
  body.has-result.result-prashna {
    overflow: hidden;
  }

  body.has-result.result-prashna .result {
    grid-template-columns: minmax(330px, 0.95fr) 8px minmax(350px, 1fr) 8px minmax(350px, 1fr) !important;
    grid-template-rows: 44px 82px minmax(0, 1fr) minmax(220px, 0.42fr) !important;
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left dasha resize-right interpretation"
      "charts resize-left planets resize-right interpretation" !important;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.has-result.result-prashna.show-kp .result,
  body.has-result.result-prashna.show-planetary.show-kp .result {
    grid-template-rows: 44px 82px minmax(0, 1fr) minmax(300px, 0.75fr) !important;
    grid-template-areas:
      "head head head head head"
      "facts facts facts facts facts"
      "charts resize-left kp resize-right dasha"
      "charts resize-left kp resize-right interpretation" !important;
  }

  body.has-result.result-prashna .row-resizer {
    display: none !important;
  }
}

body.has-result.result-prashna .facts {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch;
  overflow: hidden;
}

body.has-result.result-prashna .fact {
  min-height: 0;
}

body.has-result.result-prashna .dasha-card,
body.has-result.result-prashna .planet-card:not(#kp-section) {
  min-height: 0 !important;
  overflow: hidden !important;
}

body.has-result.result-prashna .interpretation-card {
  min-height: 0 !important;
  overflow-y: auto !important;
}

body.has-result.result-prashna.show-planetary .planet-card:not(#kp-section) {
  display: flex !important;
  grid-area: planets;
  flex-direction: column;
}

body.has-result.result-prashna .planet-card:not(#kp-section) .table-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
}

body.has-result.result-prashna #transit-section {
  display: none !important;
}

body.has-result.result-prashna .main-dasha-widget,
body.has-result.result-prashna .dasha-widget {
  min-height: 0;
  height: 100%;
}

body.has-result.result-prashna .dasha-widget-table-wrap {
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1280px) {
  body.has-result.result-prashna .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible;
  }
}

/* Prashna reading mode: keep interpretation and technical charts in separate full-width sub-tabs. */
body.has-result.result-prashna {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.has-result.result-prashna .shell {
  width: min(100% - 24px, 1280px) !important;
  height: auto !important;
  min-height: 100vh !important;
  padding: 12px 0 40px !important;
}

body.has-result.result-prashna .result {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 0 40px !important;
  overflow: visible !important;
}

body.has-result.result-prashna .result-head {
  margin-bottom: 14px !important;
}

body.has-result.result-prashna .facts,
body.has-result.result-prashna .grid-resizer,
body.has-result.result-prashna .row-resizer,
body.has-result.result-prashna .result-tab-content {
  display: none !important;
}

body.has-result.result-prashna #prashna-tabs-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

body.has-result.result-prashna .prashna-tab-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 32px !important;
  display: block !important;
}

body.has-result.result-prashna .prashna-tab-content.hidden {
  display: none !important;
}

body.has-result.result-prashna .prashna-reading-content,
body.has-result.result-prashna .prashna-technical-content {
  width: 100%;
  display: grid;
  gap: 18px;
}

body.has-result.result-prashna .quick-verdict-box,
body.has-result.result-prashna .core-analysis-box,
body.has-result.result-prashna .consult-rupesh-box,
body.has-result.result-prashna .prashna-full-reading,
body.has-result.result-prashna .technical-section {
  width: 100%;
  box-sizing: border-box;
}

body.has-result.result-prashna .quick-verdict-box,
body.has-result.result-prashna .core-analysis-box,
body.has-result.result-prashna .prashna-full-reading {
  padding: 20px 24px;
}

body.has-result.result-prashna .quick-verdict-box p {
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.35;
}

body.has-result.result-prashna .core-analysis-box ul,
body.has-result.result-prashna .prashna-full-reading {
  font-size: 1rem;
  line-height: 1.65;
}

body.has-result.result-prashna .prashna-full-reading .interpretation-answer {
  display: grid;
  gap: 14px;
}

body.has-result.result-prashna .technical-chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

body.has-result.result-prashna .technical-table-wrap {
  max-height: none;
}

@media (max-width: 720px) {
  body.has-result.result-prashna .shell {
    width: min(100% - 12px, 1280px) !important;
    padding-top: 6px !important;
  }

  body.has-result.result-prashna .quick-verdict-box,
  body.has-result.result-prashna .core-analysis-box,
  body.has-result.result-prashna .prashna-full-reading {
    padding: 16px;
  }

  body.has-result.result-prashna .consult-rupesh-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Android / Mobile App Responsiveness
   ========================================================================== */
.mobile-menu-button,
.mobile-nav-drawer,
.mobile-result-nav-button,
.mobile-result-drawer {
  display: none;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
  }

  body.mobile-nav-open,
  body.mobile-result-nav-open {
    overflow: hidden;
  }

  .global-navbar {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 2px 10px rgba(45, 28, 0, 0.22);
    border-bottom: 0;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 3px solid rgba(255, 135, 0, 0.75);
    border-radius: 50%;
    background: #ef6c00;
    box-shadow: 0 4px 12px rgba(112, 61, 0, 0.35);
  }

  .mobile-menu-button span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 2px 0;
    border-radius: 999px;
    background: #ffffff;
  }

  .logo-text {
    justify-self: center;
    justify-content: center;
    min-width: 0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 4.5vw, 1.55rem);
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
  }

  .logo-text .highlight {
    color: #ffffff;
  }

  .navbar-ganesha,
  .logo-text > img {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-auth {
    justify-self: end;
  }

  #btn-login-header,
  #btn-logout.small-btn {
    min-height: 48px;
    padding: 0 16px !important;
    border: 2px solid #fb8c00 !important;
    border-radius: 8px !important;
    background: #ff6d00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(112, 61, 0, 0.28) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
  }

  #btn-profile,
  #btn-dashboard {
    display: none !important;
  }

  .mobile-nav-drawer,
  .mobile-result-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(18, 13, 7, 0.44);
  }

  body.mobile-nav-open .mobile-nav-drawer,
  body.mobile-result-nav-open .mobile-result-drawer {
    display: block;
  }

  .mobile-drawer-panel {
    width: min(82vw, 340px);
    height: 100%;
    padding: 18px;
    background: #fffdf8;
    box-shadow: 18px 0 36px rgba(24, 18, 11, 0.22);
    transform: translateX(-100%);
    animation: mobileDrawerIn 0.18s ease forwards;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eadfce;
    color: var(--ink-light);
  }

  .mobile-drawer-head button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff4df;
    color: var(--saffron-gold);
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: none;
  }

  .mobile-drawer-link,
  .mobile-result-panel button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 8px;
    padding: 0 14px;
    border: 1px solid #eadfce;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink-light);
    text-align: left;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(63, 45, 32, 0.06);
  }

  .mobile-login-link {
    background: #ff6d00;
    color: #ffffff;
    border-color: #fb8c00;
    justify-content: center;
  }

  @keyframes mobileDrawerIn {
    to {
      transform: translateX(0);
    }
  }

  .shell {
    width: 100%;
    padding: 0 0 max(28px, env(safe-area-inset-bottom));
  }

  .panchang-strip {
    width: 100%;
    padding: 8px 0;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid #eadfce;
    overflow: hidden;
  }

  .panchang-track {
    display: flex;
    gap: 16px;
    min-width: max-content;
    animation: mobilePanchangMarquee 28s linear infinite;
  }

  .panchang-strip:hover .panchang-track {
    animation-play-state: paused;
  }

  .panchang-item {
    flex: 0 0 auto;
  }

  @keyframes mobilePanchangMarquee {
    from {
      transform: translateX(4%);
    }
    to {
      transform: translateX(-52%);
    }
  }

  .entry {
    min-height: auto;
    padding: 34px 16px 44px;
  }

  .hero-container {
    max-width: 100%;
  }

  .hero-main-title {
    max-width: 720px;
    margin: 0 auto 16px;
    font-size: clamp(2.3rem, 12vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hero-lede {
    max-width: 620px;
    margin-bottom: 28px;
    color: #645742;
    font-size: clamp(1rem, 3.4vw, 1.18rem);
    line-height: 1.48;
  }

  .hero-cta-group {
    display: grid;
    width: min(100%, 560px);
    gap: 14px;
    margin: 0 auto 30px;
  }

  .mode-card {
    justify-content: center;
    width: 100%;
    min-height: 68px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink-light);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
  }

  .hero-stat-row {
    padding-top: 22px;
  }

  .form {
    width: min(100%, 720px);
    margin: 0 auto;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #ffffff;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  }

  .form-head {
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 14px;
  }

  .form-head h2 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.1;
  }

  #change-mode-button {
    min-height: 42px;
    border-radius: 6px;
    color: #ff3d00;
  }

  .portal-guidance-banner {
    display: none;
  }

  .wizard-progress-bar,
  .wizard-steps-indicator {
    margin-top: 16px;
  }

  .wizard-step {
    gap: 16px;
  }

  .wizard-step label {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 900;
  }

  .wizard-step input,
  .wizard-step select,
  .wizard-step textarea {
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    border: 2px solid #9a9a9a;
    border-radius: 5px;
    background: #ffffff;
    color: #111111;
    font-size: 1.05rem;
    font-weight: 650;
  }

  .wizard-step textarea {
    min-height: 116px;
  }

  #birth-fields {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
  }

  #birth-fields.hidden {
    display: none !important;
  }

  #gender {
    color: #ffffff;
    background: #ff5b00;
    border-color: #c94c0b;
    font-weight: 900;
  }

  .dt-picker-group {
    display: grid;
    gap: 10px;
  }

  .dt-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .dt-now-btn,
  .gps-icon-btn,
  .wizard-actions button,
  .btn-primary,
  .btn-secondary {
    min-height: 56px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 900;
  }

  .wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .wizard-actions.dual {
    justify-content: space-between;
  }

  .wizard-actions .btn-primary,
  .wizard-actions .btn-secondary {
    flex: 1 1 150px;
  }

  .location-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .place-results {
    max-height: 280px;
    overflow-y: auto;
  }

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

  .floating-popup {
    display: none !important;
  }

  .mobile-result-nav-button {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1500;
    display: none;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #ff6d00;
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(112, 61, 0, 0.28);
  }

  body.has-result .mobile-result-nav-button {
    display: inline-flex;
  }

  .mobile-result-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(84vw, 360px);
    height: 100%;
    padding: 18px;
    background: #fffdf8;
    box-shadow: -18px 0 36px rgba(24, 18, 11, 0.22);
    transform: translateX(100%);
    animation: mobileResultDrawerIn 0.18s ease forwards;
  }

  @keyframes mobileResultDrawerIn {
    to {
      transform: translateX(0);
    }
  }

  body.has-result .result,
  body.has-result.result-prashna .result {
    width: min(100% - 16px, 760px) !important;
    margin: 0 auto !important;
    padding-bottom: 86px !important;
  }

  body.has-result .result-head,
  body.has-result.result-prashna .result-head {
    position: sticky;
    top: 64px;
    z-index: 90;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #eadfce;
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    padding: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .result-back-button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
  }

  #chart-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .result-tabs-nav {
    grid-column: 1 / -1;
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .result-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 14px;
    white-space: nowrap;
  }

  #share-link {
    display: none;
  }

  body.has-result .facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    overflow: visible !important;
  }

  body.has-result .fact {
    min-height: 74px;
    border-radius: 8px;
    padding: 10px;
  }

  body.has-result .worksheet,
  body.has-result .dasha-card,
  body.has-result #transit-section,
  body.has-result .interpretation-card,
  body.has-result .planet-card,
  body.has-result #kp-section,
  body.has-result.result-prashna .technical-section,
  body.has-result.result-prashna .quick-verdict-box,
  body.has-result.result-prashna .core-analysis-box,
  body.has-result.result-prashna .prashna-full-reading,
  body.has-result.result-prashna .consult-rupesh-box {
    min-height: 0 !important;
    margin-top: 12px;
    border-radius: 8px;
    padding: 14px;
    overflow: visible !important;
  }

  body.has-result .worksheet-head,
  body.has-result .dasha-app-head {
    display: grid;
    gap: 10px;
  }

  body.has-result .worksheet-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body.has-result .worksheet-actions select,
  body.has-result .worksheet-actions button {
    width: 100%;
    min-height: 46px;
  }

  body.has-result .worksheet-presets,
  body.has-result .chart-tabs,
  body.has-result .widget-controls {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  body.has-result .worksheet-presets::-webkit-scrollbar,
  body.has-result .chart-tabs::-webkit-scrollbar,
  body.has-result .widget-controls::-webkit-scrollbar {
    display: none;
  }

  body.has-result .worksheet-presets button,
  body.has-result .chart-tab,
  body.has-result .widget-toggle {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 999px;
  }

  body.has-result .worksheet-canvas,
  body.has-result .worksheet-canvas[data-chart-count] {
    display: flex !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    height: auto !important;
    padding-bottom: 8px;
  }

  body.has-result .worksheet-item {
    flex: 0 0 min(88vw, 430px);
    min-height: 330px !important;
    scroll-snap-align: center;
  }

  body.has-result .chart-surface {
    min-height: 270px;
  }

  body.has-result .responsive-canvas,
  body.has-result .kundali-canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  body.has-result .table-wrap,
  body.has-result.result-prashna .technical-table-wrap,
  body.has-result .dasha-widget-table-wrap {
    width: 100%;
    max-height: 62vh;
    overflow: auto !important;
    border: 1px solid #eee4d8;
    border-radius: 8px;
    background: #fffefa;
    -webkit-overflow-scrolling: touch;
  }

  body.has-result table,
  body.has-result.result-prashna .technical-table-wrap table,
  body.has-result .dasha-widget-table {
    min-width: 680px;
    table-layout: auto !important;
  }

  body.has-result th,
  body.has-result td,
  body.has-result.result-prashna .technical-table-wrap th,
  body.has-result.result-prashna .technical-table-wrap td {
    padding: 10px 12px !important;
    white-space: nowrap;
  }

  body.has-result .dasha-widget--workstation .dasha-widget-header,
  body.has-result .dasha-widget--workstation .dasha-widget-drillbar {
    display: grid;
    gap: 8px;
    min-height: 0;
  }

  body.has-result .dasha-widget--workstation .dasha-widget-back-btn {
    width: 100%;
    margin: 0;
  }

  body.has-result #transit-section .responsive-canvas {
    width: min(100%, 340px) !important;
    max-height: 340px !important;
  }

  body.has-result.show-kp #kp-section {
    display: grid !important;
    gap: 12px !important;
  }

  body.has-result #kp-section #kp-chart {
    width: min(100%, 320px) !important;
    height: min(100%, 320px) !important;
    max-width: 320px !important;
    max-height: 320px !important;
  }

  body.has-result.result-prashna .prashna-reading-content,
  body.has-result.result-prashna .prashna-technical-content {
    gap: 12px;
  }

  body.has-result.result-prashna .technical-chart-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  body.has-result.result-prashna .technical-chart-card {
    flex: 0 0 min(88vw, 430px);
    scroll-snap-align: center;
  }
}

@media (max-width: 540px) {
  .global-navbar {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  #btn-login-header {
    padding: 0 12px !important;
    font-size: 0.92rem !important;
  }

  .entry {
    padding-inline: 10px;
  }

  .devanagari-accent {
    font-size: 1rem;
  }

  .hero-eyebrow-mark {
    margin-bottom: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .hero-main-title {
    font-size: clamp(2.05rem, 13vw, 3.2rem);
  }

  #birth-fields,
  .dt-inputs,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-search-wrap {
    grid-template-columns: 1fr;
  }

  .wizard-actions,
  .wizard-actions.dual {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.has-result .facts {
    grid-template-columns: 1fr !important;
  }

  body.has-result .result,
  body.has-result.result-prashna .result {
    width: min(100% - 10px, 760px) !important;
  }

  body.has-result .result-head,
  body.has-result.result-prashna .result-head {
    top: 64px;
  }

  .mobile-result-panel,
  .mobile-drawer-panel {
    width: min(88vw, 360px);
  }
}
