/**
 * VIKRAANTWORLD Jyotish - Kundali Calculator & Multi-Chart Suite Stylesheet
 * Responsive layout, Vedic aesthetic, Swipe Carousel, Glassmorphism, and Print styles
 */

:root {
  --primary: #c2410c;         /* Saffron Crimson */
  --primary-hover: #9a3412;
  --accent-purple: #6b21a8;   /* Royal Purple */
  --accent-gold: #b45309;     /* Amber Gold */
  --accent-gold-light: #fef3c7;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --border-focus: #f97316;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-variant-ligatures: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1rem;
  padding-bottom: 50px;
}

/* Container */
.calc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* TOP NAVBAR */
.calc-navbar {
  background: #ffffff;
  border-bottom: 2px solid #fed7aa;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-om-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c2410c, #b45309);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

.brand-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.brand-subtitle-text {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* USER PROFILE ACTIVE BAR */
.active-profile-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.92rem;
}

.profile-avatar {
  font-size: 1.1rem;
}

.profile-details {
  font-weight: 600;
  color: #7c2d12;
}

.btn-change-profile {
  background: #ffffff;
  border: 1px solid #ea580c;
  color: #c2410c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-profile:hover {
  background: #c2410c;
  color: #ffffff;
}

/* HERO SECTION */
.calc-hero {
  text-align: center;
  padding: 2.2rem 0 1.5rem 0;
}

.calc-hero h1 {
  font-size: 2.2rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.calc-hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 1.2rem auto;
}

/* ACTION BUTTONS (REPORT GENERATION) */
.report-action-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem 0;
}

.btn-report-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn-report-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-short-report {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
}

.btn-detailed-report {
  background: linear-gradient(135deg, #7c3aed, #6b21a8);
  color: #ffffff;
}

.btn-toggle-style {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-toggle-style:hover {
  background: #f1f5f9;
}

/* SWIPE CAROUSEL SECTION */
.chart-master-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  position: relative;
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
}

.chart-active-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-scope-badge {
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* PILLS NAVIGATOR */
.pills-scroll-container {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  scrollbar-width: thin;
}

.pills-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.pills-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chart-pill {
  padding: 6px 14px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chart-pill:hover {
  background: #fee2e2;
  color: #c2410c;
}

.chart-pill.active {
  background: #c2410c;
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
}

/* CAROUSEL WRAPPER WITH NAVIGATION ARROWS */
.carousel-viewport-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #fff7ed;
  border-color: #ea580c;
  color: #c2410c;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

@media (max-width: 768px) {
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
}

/* SWIPE CONTAINER */
.carousel-swipe-area {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.swipe-chart-card {
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.swipe-caption {
  text-align: center;
  margin-top: 1rem;
  font-weight: 700;
  color: #475569;
  font-size: 0.95rem;
}

/* VIEW TOGGLES */
.view-mode-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-view-mode {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.btn-view-mode.active {
  background: #6b21a8;
  color: #ffffff;
  border-color: #6b21a8;
}

/* TWIN CHARTS & GRID */
.twin-charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.varga-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.chart-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #fed7aa;
}

.grid-card-header {
  width: 100%;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.grid-card-header .chart-badge-title {
  font-size: 1rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.3;
}

.grid-card-scope {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 4px;
}

.grid-card-svg {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .twin-charts-container { grid-template-columns: 1fr; }
}

/* SUMMARY DASHBOARD CARDS */
.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dash-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.dash-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

/* TABLES */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.8rem 0;
}

.report-table th, .report-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.report-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
}

.report-table tr:nth-child(even) {
  background-color: #fafafa;
}

.mini-table {
  font-size: 0.86rem;
}
.mini-table td {
  padding: 6px 8px;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gold { background: #fef3c7; color: #b45309; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

/* ONBOARDING LOGIN MODAL */
.onboard-modal-backdrop {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #0f172a !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 1rem !important;
  overflow-y: auto !important;
}

.onboard-modal-backdrop.hidden {
  display: none !important;
}

.onboard-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 1px solid #fed7aa;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

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

.onboard-header h2 {
  font-size: 1.7rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.onboard-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}

/* CITY AUTOCOMPLETE DROPDOWN */
.city-search-wrap {
  position: relative;
}

.city-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.city-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
}

.city-option:hover {
  background: #fff7ed;
  color: #c2410c;
}

.btn-submit-onboard {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #c2410c, #b45309);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(194, 65, 12, 0.3);
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.btn-submit-onboard:hover {
  background: linear-gradient(135deg, #9a3412, #78350f);
  transform: translateY(-1px);
}

/* REPORT MODAL (PREVIEW & PRINT) */
.report-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #0f172a !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
}

.report-modal-backdrop.hidden {
  display: none !important;
}

.report-modal-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.report-bar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
}

.report-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-bar {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-bar-print {
  background: #ea580c;
  color: #ffffff;
}

.btn-bar-close {
  background: #334155;
  color: #ffffff;
}

.report-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
  background: #334155;
  display: flex;
  justify-content: center;
}

/* REPORT PAPER STYLES (A4) */
.report-document {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Short Report Page */
.short-report-page {
  width: 100%;
  max-width: 200mm;
  padding: 4mm 6mm;
  margin: 0 auto;
  box-sizing: border-box;
  background: #ffffff;
}

.report-header-banner {
  text-align: center;
  border-bottom: 2px solid #b45309;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.sacred-invocation {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b45309;
}

.report-title {
  font-size: 1.35rem;
  color: #c2410c;
  font-weight: 800;
  margin: 2px 0;
}

.report-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.native-summary-box {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.report-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chart-duo-row {
  margin: 8px 0;
}

.chart-report-container {
  text-align: center;
}

.chart-badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}

.chart-svg-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.chart-svg-wrap-short {
  width: 185px !important;
  height: 185px !important;
  max-width: 185px !important;
  max-height: 185px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

.chart-svg-wrap-short svg {
  width: 185px !important;
  height: 185px !important;
  max-width: 185px !important;
  max-height: 185px !important;
  object-fit: contain !important;
}

.compact-card {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.report-card {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.card-heading {
  font-size: 0.96rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 6px;
  border-bottom: 1px solid #fef3c7;
  padding-bottom: 4px;
}

.report-page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  margin-top: 12px;
}

/* DETAILED REPORT PAGES */
.print-page {
  width: 210mm;
  min-height: 297mm;
  padding: 14mm 16mm;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
  page-break-after: always;
  background: #ffffff;
}

.page-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #fed7aa;
  padding-bottom: 5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.35rem;
  color: #c2410c;
  font-weight: 800;
  margin-bottom: 4px;
  border-left: 4px solid #c2410c;
  padding-left: 8px;
}

.section-desc {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 14px;
}

/* COVER PAGE SPECIFIC */
.cover-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-inner-border {
  border: 3px double #b45309;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sacred-invocation-big {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 10px;
}

.cover-mandala {
  font-size: 4.5rem;
  color: #ea580c;
  margin: 15px 0;
  animation: slowSpin 60s linear infinite;
}

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

.cover-main-title {
  font-size: 2.8rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 1px;
}

.cover-sub-title {
  font-size: 1.45rem;
  color: #6b21a8;
  font-weight: 700;
  margin-top: 5px;
}

.cover-divider-gold {
  width: 120px;
  height: 4px;
  background: #b45309;
  margin: 20px auto;
  border-radius: 2px;
}

.cover-native-details {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 20px;
  max-width: 480px;
  margin: 15px auto;
  text-align: left;
}

.cover-item {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.cover-footer {
  margin-top: 25px;
}

.brand-seal {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 1px;
}

.clean-bullet-list {
  padding-left: 20px;
  margin: 10px 0;
}
.clean-bullet-list li {
  margin-bottom: 6px;
}

/* PADDHATI NAVIGATION TABS STYLING */
.btn-paddhati-tab {
  background: #ffffff;
  color: #475569;
  border: 2px solid #cbd5e1;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.btn-paddhati-tab:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
  transform: translateY(-2px);
}

.btn-paddhati-tab.active {
  background: linear-gradient(135deg, #c2410c, #b45309);
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

/* UTILITY CLASSES & MODAL DIALOGS */
.hidden {
  display: none !important;
}



.onboard-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 2px solid #fed7aa;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.onboard-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.onboard-header h2 {
  color: #9a3412;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.onboard-header p {
  color: #475569;
  font-size: 0.92rem;
}

.btn-submit-onboard {
  width: 100%;
  background: linear-gradient(135deg, #c2410c, #b45309);
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.35);
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit-onboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.45);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.city-search-wrap {
  position: relative;
}

.city-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.city-option {
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.city-option:hover {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 600;
}

/* DASHA HIERARCHICAL ACCORDION TREE */
.dasha-tree-container {
  margin-top: 0.8rem;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fffbf5;
  padding: 8px;
}

.dasha-md-node {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dasha-md-summary {
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff7ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #0f172a;
  border-bottom: 1px solid #ffedd5;
  list-style: none;
}

.dasha-md-summary::-webkit-details-marker {
  display: none;
}

.dasha-md-summary:hover {
  background: #ffedd5;
}

.dasha-ad-list {
  padding: 8px 10px 8px 18px;
  background: #ffffff;
}

.dasha-ad-node {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 6px;
  overflow: hidden;
}

.dasha-ad-summary {
  padding: 7px 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.86rem;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.dasha-ad-summary::-webkit-details-marker {
  display: none;
}

.dasha-ad-summary:hover {
  background: #f1f5f9;
}

.dasha-pd-list {
  padding: 4px 8px 6px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.dasha-pd-item {
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #475569;
  border-bottom: 1px dashed #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.dasha-pd-item.active-pd {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
  border-radius: 4px;
}

/* PHALIT ANALYSIS SECTION & 2x2 GRID STRUCTURE */
.phalit-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
}

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

.phalit-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phalit-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.phalit-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fed7aa;
}

.phalit-content {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #334155;
}

.phalit-content p {
  margin-bottom: 0.8rem;
}

.phalit-content p:last-child {
  margin-bottom: 0;
}

.phalit-synthesis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

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

.synth-card {
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 0.88rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.synth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07) !important;
}

/* PRINT MEDIA QUERIES FOR ZERO OVERLAP PDF EXPORT */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  html, body {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  header,
  footer,
  .calc-navbar,
  .calc-hero,
  #milanForm,
  #basicSummaryBanner,
  .no-print,
  .report-action-panel,
  .chart-master-section,
  .dash-grid-3,
  .dash-card,
  .onboard-modal-backdrop,
  .report-modal-bar {
    display: none !important;
  }

  main,
  .calc-container {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  #milanSection {
    display: block !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #milanSection > div:first-child {
    display: none !important;
  }

  #milanOutputContainer {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .milan-report-wrapper {
    width: 100% !important;
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
  }

  .milan-header-box {
    padding: 0.8rem 1rem !important;
    margin-bottom: 0.6rem !important;
    border-radius: 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
  }

  .milan-header-box h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
  }

  .milan-header-box p {
    font-size: 0.98rem !important;
    margin-bottom: 0.4rem !important;
  }

  .milan-section-card {
    page-break-inside: auto !important;
    break-inside: auto !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    margin-bottom: 0.6rem !important;
    padding: 0.6rem 0.9rem !important;
  }

  .milan-section-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.4rem !important;
    padding-bottom: 0.25rem !important;
  }

  .milan-section-card h4 {
    font-size: 0.96rem !important;
    margin-bottom: 0.25rem !important;
  }

  .milan-section-card p,
  .milan-section-card li,
  .milan-section-card span,
  .milan-section-card td,
  .milan-section-card th {
    font-size: 0.90rem !important;
    line-height: 1.4 !important;
  }

  .milan-section-card table th,
  .milan-section-card table td {
    padding: 4px 7px !important;
    font-size: 0.88rem !important;
  }

  .milan-section-card tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .milan-section-card svg {
    max-width: 185px !important;
    max-height: 185px !important;
  }

  .milan-section-card > div {
    gap: 0.5rem !important;
  }

  .milan-section-card > div > div {
    padding: 0.4rem 0.6rem !important;
    margin-bottom: 0.25rem !important;
    border-radius: 6px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .report-modal-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-modal-body {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #reportContentArea {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-document {
    box-shadow: none !important;
    margin: 0 auto !important;
    border: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }

  .short-report-page {
    width: 100% !important;
    max-width: 200mm !important;
    height: auto !important;
    max-height: 285mm !important;
    padding: 4mm 6mm !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  .print-page {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    padding: 6mm 8mm !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
  }

  .cover-page {
    height: 297mm !important;
    max-height: 297mm !important;
  }

  .report-card,
  .report-table,
  .chart-box,
  .report-grid-2 {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .report-card {
    margin-bottom: 5px !important;
    padding: 5px 8px !important;
  }

  .report-table.mini-table th,
  .report-table.mini-table td {
    padding: 2px 4px !important;
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }

  .section-title {
    font-size: 1.02rem !important;
    margin-top: 0 !important;
    margin-bottom: 3px !important;
  }

  .section-desc {
    font-size: 0.76rem !important;
    margin-bottom: 5px !important;
  }

  .card-heading {
    font-size: 0.86rem !important;
    margin-bottom: 3px !important;
  }

  .chart-box,
  .chart-svg-wrap-short,
  .chart-report-container {
    width: 185px !important;
    height: 185px !important;
    max-width: 185px !important;
    max-height: 185px !important;
    margin: 0 auto !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .chart-box svg,
  .chart-svg-wrap-short svg,
  .chart-report-container svg,
  .vedic-kundali-svg {
    width: 185px !important;
    height: 185px !important;
    max-width: 185px !important;
    max-height: 185px !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }

  .report-grid-2 {
    gap: 6px !important;
    margin-bottom: 5px !important;
  }

  .print-page p,
  .print-page div,
  .print-page li {
    line-height: 1.35 !important;
  }

  /* KUNDALI MILAN PRINT RULES */
  .calc-navbar,
  .main-mode-switcher,
  .basic-summary-banner,
  .calc-hero,
  .report-action-panel,
  #paddhatiViewArea,
  .chart-master-section,
  #milanForm,
  .no-print {
    display: none !important;
  }

  #milanSection {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #milanOutputContainer {
    display: block !important;
    border: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .milan-report-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  .milan-section-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    margin-bottom: 1.2rem !important;
    padding: 1rem !important;
    background: #ffffff !important;
  }

  .milan-header-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    padding: 1.2rem !important;
    margin-bottom: 1.2rem !important;
    background: #7c2d12 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .milan-section-card table th,
  .milan-section-card table td {
    padding: 6px 8px !important;
    font-size: 0.88rem !important;
  }
}

/* SAVED PROFILE AUTOFILL AUTOCOMPLETE DROPDOWN */
.saved-profile-search-wrap {
  position: relative;
}

.saved-profile-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1.5px solid #fdba74;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(194, 65, 12, 0.18);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}

.saved-profile-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #1e293b;
  transition: background 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.saved-profile-item:hover,
.saved-profile-item.active {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
}

/* ==========================================================================
   UNIFIED BRAND HEADER NAVBAR & MULTI-COLUMN FOOTER STYLES
   ========================================================================== */

/* 1. TOP BRAND HEADER NAVBAR (LUXURY AESTHETICS, ENLARGED LOGO & REFINED 2-TIER DESIGN) */
.site-navbar {
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 32px rgba(194, 65, 12, 0.09), 0 2px 6px rgba(0, 0, 0, 0.03);
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  border-bottom: 2px solid #fed7aa;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

/* Regal Golden Saffron Crown Bar (Top Accent) */
.site-navbar::before {
  content: "";
  display: block;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 25%, #fbbf24 50%, #f59e0b 75%, #ea580c 100%);
  background-size: 200% 100%;
  animation: navTopShimmer 6s linear infinite;
}

@keyframes navTopShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-navbar .site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.55rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* Large Full Height Brand Logo (Enhanced to 108px) */
.site-navbar .brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 2px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.3) 0%, transparent 72%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-navbar .brand-logo-img {
  width: 108px;
  height: 108px;
  min-width: 108px;
  min-height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(194, 65, 12, 0.28));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.site-navbar .brand-logo-link:hover .brand-logo-img {
  transform: scale(1.06) rotate(2deg);
  filter: drop-shadow(0 8px 24px rgba(234, 88, 12, 0.48));
}

/* Main Content Area (Right of Logo) */
.site-navbar .header-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

/* TOP TIER: Title Bar (Title & Subtitle + Sign In) */
.site-navbar .brand-header-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1.5px solid rgba(254, 215, 170, 0.65);
}

.site-navbar .brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.site-navbar .brand-title {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 1.15;
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 40%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.site-navbar .brand-tagline {
  font-size: 0.84rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.site-navbar .brand-tagline::before {
  content: "✨";
  font-size: 0.8rem;
}

.site-navbar .title-bar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-navbar .nav-auth-btn,
#authProfileBtn {
  background: linear-gradient(135deg, #fffbf5 0%, #fff7ed 100%) !important;
  border: 1.5px solid #fed7aa !important;
  color: #9a3412 !important;
  padding: 0.44rem 1.15rem !important;
  border-radius: 25px !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-family: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08) !important;
}

.site-navbar .nav-auth-btn:hover,
#authProfileBtn:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  color: #ffffff !important;
  border-color: #c2410c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32) !important;
}

/* BOTTOM TIER: Navigation Bar & CTA */
.site-navbar .nav-bar-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
}

.site-navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.site-navbar .nav-link {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.90rem;
  padding: 0.42rem 0.8rem;
  border-radius: 20px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.site-navbar .nav-link:hover {
  color: #c2410c;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

.site-navbar .nav-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-navbar .nav-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  color: #ffffff !important;
  padding: 0.48rem 1.25rem;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.32);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-navbar .nav-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.48);
}

.site-navbar .mobile-toggle-btn {
  display: none;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1.5px solid #fed7aa;
  color: #c2410c;
  font-size: 1.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.08);
}

.site-navbar .mobile-toggle-btn:hover {
  background: #ffedd5;
  border-color: #f97316;
  transform: scale(1.05);
}

/* 2. MOBILE DRAWER MENU */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  background: #ffffff;
  z-index: 10001;
  box-shadow: -10px 0 32px rgba(0,0,0,0.22);
  padding: 1.6rem 1.3rem;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
}

.mobile-drawer-overlay.open {
  display: block;
}

@media (max-width: 900px) {
  .site-navbar .site-header-inner {
    gap: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
  .site-navbar .brand-logo-img {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
  }
  .site-navbar .brand-title {
    font-size: 1.15rem;
  }
  .site-navbar .brand-tagline {
    font-size: 0.72rem;
  }
  .site-navbar .nav-menu {
    display: none;
  }
  .site-navbar .nav-actions-right {
    display: none;
  }
  .site-navbar .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav-drawer {
    display: flex;
  }
}

/* 3. MULTI-COLUMN PREMIUM SITE FOOTER */
.site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem 1.5rem;
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  border-top: 4px solid #c2410c;
  margin-top: 4rem;
  position: relative;
}

.site-footer .footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.site-footer .footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 8px;
}

.site-footer .footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: #c2410c;
  border-radius: 2px;
}

.site-footer .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.site-footer .footer-brand-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer .footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.site-footer .footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.2rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.65rem;
}

.site-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer .footer-links a:hover {
  color: #fdba74;
  transform: translateX(4px);
}

.site-footer .footer-bottom-bar {
  max-width: 1240px;
  margin: 3rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.site-footer .back-to-top-btn {
  background: #334155;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.site-footer .back-to-top-btn:hover {
  background: #c2410c;
  transform: translateY(-3px);
}

/* ==================== LMS CHAPTER INDEX & NAVIGATION SYSTEM ==================== */
.lms-chapter-top-bar {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1.5px solid #fed7aa;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(194, 65, 12, 0.06);
}

.lms-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.lms-nav-btn.prev-btn {
  background: #ffffff;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.lms-nav-btn.prev-btn:hover {
  background: #fff7ed;
  border-color: #c2410c;
  transform: translateX(-3px);
}

.lms-nav-btn.index-btn {
  background: linear-gradient(135deg, #c2410c, #b45309);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.25);
}
.lms-nav-btn.index-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(194, 65, 12, 0.35);
}

.lms-nav-btn.next-btn {
  background: #ffffff;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.lms-nav-btn.next-btn:hover {
  background: #fff7ed;
  border-color: #c2410c;
  transform: translateX(3px);
}

.lms-nav-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  filter: grayscale(1);
}

/* LMS BOTTOM CHAPTER NAVIGATION BAR */
.lms-chapter-bottom-nav {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.08);
}

@media (max-width: 768px) {
  .lms-chapter-bottom-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.lms-card-nav-link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fed7aa;
  text-decoration: none;
  transition: all 0.2s ease;
}
.lms-card-nav-link:hover {
  background: #ffedd5;
  border-color: #c2410c;
  transform: translateY(-2px);
}
.lms-card-nav-link.next {
  text-align: right;
}
@media (max-width: 768px) {
  .lms-card-nav-link.next { text-align: center; }
}

.lms-card-nav-link .nav-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lms-card-nav-link .nav-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.lms-card-nav-center {
  background: linear-gradient(135deg, #ea580c, #b45309);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}
.lms-card-nav-center:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
}

/* LMS CHAPTER INDEX MODAL */
.lms-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lms-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lms-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #fed7aa;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lms-modal-backdrop.active .lms-modal-card {
  transform: translateY(0) scale(1);
}

.lms-modal-header {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom: 1.5px solid #fed7aa;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.lms-modal-badge {
  display: inline-block;
  background: #c2410c;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.lms-modal-title {
  font-size: 1.35rem;
  color: #7c2d12;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.lms-modal-subtitle {
  font-size: 0.88rem;
  color: #78350f;
  margin: 0;
  font-weight: 600;
}

.lms-modal-close-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #fed7aa;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #78350f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lms-modal-close-btn:hover {
  background: #c2410c;
  color: #ffffff;
  border-color: #c2410c;
  transform: rotate(90deg);
}

.lms-modal-body {
  padding: 1.2rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

.lms-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lms-chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 12px;
}

.lms-chapter-item:hover {
  background: #fff7ed;
  border-color: #fdba74;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.08);
}

.lms-chapter-item.active-ch {
  background: #fffbeb;
  border: 2px solid #c2410c;
}

.lms-chapter-item .ch-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lms-chapter-item .ch-num {
  background: #e2e8f0;
  color: #475569;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.lms-chapter-item.active-ch .ch-num {
  background: #c2410c;
  color: #ffffff;
}

.lms-chapter-item .ch-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.lms-chapter-item .ch-status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.lms-chapter-item .status-free {
  background: #dcfce7;
  color: #15803d;
}

.lms-chapter-item .status-unlocked {
  background: #ffedd5;
  color: #c2410c;
}

.lms-chapter-item .status-locked {
  background: #f1f5f9;
  color: #64748b;
}

.lms-modal-footer {
  padding: 1rem 1.6rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Google Account Chooser Modal Styles */
.google-oauth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
}

.google-oauth-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 2.2rem 2rem 1.8rem 2rem;
  border: 1px solid #dadce0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: gModalPop 0.25s ease-out;
}

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

.google-oauth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.google-oauth-title {
  margin: 0.8rem 0 0.3rem 0;
  color: #1f1f1f;
  font-size: 1.45rem;
  font-weight: 700;
}

.google-oauth-subtitle {
  margin: 0;
  color: #5f6368;
  font-size: 0.92rem;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.4rem;
}

.google-account-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
}

.google-account-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.google-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.google-account-details {
  flex: 1;
  min-width: 0;
}

.google-account-name {
  font-weight: 700;
  color: #1f1f1f;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-account-email {
  color: #5f6368;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-account-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.google-oauth-footer-notice {
  font-size: 0.78rem;
  color: #70757a;
  line-height: 1.45;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin: 0;
}





