/* AstroNirnay User Dashboard — warm/spiritual theme */
.dashboard-site {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--page-bg);
}

.dashboard-site h1,
.dashboard-site h2,
.dashboard-site h3,
.dashboard-site h4,
.dashboard-site .display-font,
.dashboard-site .page-heading,
.dashboard-site .welcome-heading {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

/* Sidebar */
.dashboard-site .app-sidebar {
  width: 260px;
  background: #fff;
  border-right: none;
  border-left: 2px solid var(--primary-light);
  color: var(--text-dark);
  box-shadow: 2px 0 12px rgba(44, 26, 14, 0.04);
}

.dashboard-site .app-sidebar .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  border-bottom: 1px solid #EDD9C0;
  padding: 0.35rem 0.5rem;
}

.dashboard-site .app-sidebar .brand span {
  color: var(--text-dark);
}

.dashboard-site .sidebar-nav a {
  color: var(--text-dark);
  font-weight: 500;
  border-left: 3px solid transparent;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-site .sidebar-icon {
  font-size: 1.05rem;
  color: var(--primary);
  width: 1.25rem;
  flex-shrink: 0;
}

.dashboard-site .sidebar-soon-badge {
  font-size: 0.6rem;
  background: rgba(212, 160, 23, 0.25);
  color: #6b4f0a;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: auto;
}

.dashboard-site .sidebar-link-soon {
  opacity: 0.85;
}

.dashboard-site .sidebar-nav a:hover {
  background: rgba(200, 75, 0, 0.08);
  color: var(--primary);
}

.dashboard-site .sidebar-nav a.active {
  background: rgba(200, 75, 0, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.dashboard-site .sidebar-section-label {
  display: block;
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Main content shell */
.dashboard-site .main-content {
  background: var(--page-bg);
}

.dashboard-site .top-bar {
  background: #fff;
  border-bottom: 1px solid #EDD9C0;
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow 0.2s ease;
}

.dashboard-site .top-bar.is-scrolled {
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

.dashboard-site .top-bar h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
}

.dashboard-site .content-area {
  --content-pad-x: 1.5rem;
  --content-pad-y: 1.5rem;
  padding: var(--content-pad-y) var(--content-pad-x);
  background: #FAFAF9;
}

.dashboard-site .sidebar-toggle {
  border-color: var(--primary);
  color: var(--primary);
}

/* Top navbar user chip */
.dashboard-site .top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-site .notif-bell {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  padding: 0.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.dashboard-site .notif-bell:hover {
  color: var(--primary);
  background: rgba(200, 75, 0, 0.08);
}

.dashboard-site .user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-site .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-site .user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.dashboard-site .lang-pill .btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.dashboard-site .lang-pill .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.dashboard-site .lang-pill .btn-outline-primary {
  border-color: rgba(139, 94, 60, 0.35);
  color: var(--text-muted);
}

.dashboard-site .lang-pill .btn-outline-primary:hover {
  background: rgba(200, 75, 0, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* Cards */
.dashboard-site .dashboard-card {
  background: var(--color-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
}

.dashboard-site .dashboard-card h5,
.dashboard-site .dashboard-card h6.text-primary {
  color: var(--text-dark) !important;
  font-family: var(--font-heading);
}

/* Buttons */
.dashboard-site .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.dashboard-site .btn-primary:hover,
.dashboard-site .btn-primary:focus {
  background: #a33d00;
  border-color: #a33d00;
  color: #fff;
}

.dashboard-site .btn-outline-primary {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.dashboard-site .btn-outline-primary:hover {
  background: rgba(200, 75, 0, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.dashboard-site .btn-outline-secondary {
  border-color: rgba(139, 94, 60, 0.35);
  color: var(--text-muted);
}

.dashboard-site .btn-outline-danger {
  border-color: #c0392b;
  color: #c0392b;
}

/* Forms */
.dashboard-site .form-control,
.dashboard-site .form-select {
  border-color: rgba(139, 94, 60, 0.35);
}

.dashboard-site .form-control:focus,
.dashboard-site .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 75, 0, 0.15);
}

/* Tables */
.dashboard-site .table thead th {
  background: #FFF3E8;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid #EDD9C0;
}

.dashboard-site .table-hover tbody tr:hover {
  background: var(--bg-warm);
}

/* Badges */
.dashboard-site .badge.bg-success,
.dashboard-site .badge-warm-success {
  background: rgba(45, 106, 45, 0.15) !important;
  color: #1a4d1a !important;
}

.dashboard-site .badge.bg-warning,
.dashboard-site .badge-warm-warning {
  background: rgba(212, 160, 23, 0.2) !important;
  color: #6b4f0a !important;
}

.dashboard-site .badge.bg-danger,
.dashboard-site .badge-warm-danger {
  background: rgba(200, 75, 0, 0.15) !important;
  color: #8b2e00 !important;
}

.dashboard-site .badge.bg-primary {
  background: rgba(200, 75, 0, 0.12) !important;
  color: var(--primary) !important;
}

.dashboard-site .badge.bg-secondary,
.dashboard-site .badge-order-pending {
  background: rgba(139, 94, 60, 0.12) !important;
  color: var(--accent) !important;
}

.dashboard-site .badge-order-success {
  background: rgba(45, 106, 45, 0.15) !important;
  color: #1a4d1a !important;
}

.dashboard-site .badge-order-failed {
  background: rgba(200, 75, 0, 0.15) !important;
  color: #8b2e00 !important;
}

.dashboard-site .badge-relation {
  background: rgba(200, 75, 0, 0.12) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

/* Alerts */
.dashboard-site .alert-danger {
  background: rgba(200, 75, 0, 0.1);
  border-color: rgba(139, 94, 60, 0.45);
  color: var(--text-dark);
}

.dashboard-site .alert-success {
  background: rgba(45, 106, 45, 0.1);
  border-color: #2d6a2d;
  color: #1a4d1a;
}

.dashboard-site .alert-info,
.dashboard-site .compat-prompt-banner {
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--text-dark);
}

/* Welcome card */
.dashboard-site .welcome-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.14), transparent 32%),
    radial-gradient(circle at 10% 70%, rgba(200, 75, 0, 0.10), transparent 36%),
    var(--an-ivory);
  border: 1px solid #EDD9C0;
  position: relative;
  overflow: hidden;
}

.dashboard-site .welcome-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--primary) 1px, transparent 1px);
  background-size: 50px 50px, 70px 70px;
  pointer-events: none;
}

.dashboard-site .welcome-heading {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.dashboard-site .stat-card {
  background: #fff;
  border: 1px solid #EDD9C0;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dashboard-site .stat-card:hover {
  box-shadow: 0 6px 20px rgba(44, 26, 14, 0.08);
  transform: translateY(-2px);
}

.dashboard-site .stat-card .stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.dashboard-site .quick-action-card {
  border: 1px solid #EDD9C0;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-site .quick-action-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(200, 75, 0, 0.1);
}

/* Profile cards */
.dashboard-site .profile-card {
  border: 1px solid #EDD9C0;
  border-radius: 12px;
}

.dashboard-site .profile-card:hover {
  box-shadow: 0 8px 24px rgba(44, 26, 14, 0.08);
}

.dashboard-site .profile-avatar {
  background: var(--primary);
}

.dashboard-site .nakshatra-placeholder {
  background: rgba(200, 75, 0, 0.06);
  color: var(--primary);
}

.dashboard-site .profile-link-card:hover {
  border-color: var(--primary-light) !important;
  background: rgba(200, 75, 0, 0.04);
}

/* Step indicator */
.dashboard-site .step-indicator .step {
  background: rgba(139, 94, 60, 0.08);
  color: var(--text-muted);
}

.dashboard-site .step-indicator .step span {
  background: rgba(139, 94, 60, 0.2);
  color: var(--text-muted);
}

.dashboard-site .step-indicator .step.active {
  background: rgba(200, 75, 0, 0.1);
  color: var(--primary);
}

.dashboard-site .step-indicator .step.active span,
.dashboard-site .step-indicator .step.completed span {
  background: var(--primary);
  color: #fff;
}

.dashboard-site .step-indicator .step.completed {
  color: var(--primary);
}

/* Kundali view */
.dashboard-site .birth-details-card {
  overflow: hidden;
  padding: 0;
}

.dashboard-site .birth-details-header {
  background: linear-gradient(135deg, rgba(200, 75, 0, 0.08), rgba(212, 160, 23, 0.12));
  padding: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.dashboard-site .birth-details-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dashboard-site .birth-details-header h6 {
  position: relative;
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.dashboard-site .birth-details-body {
  padding: 1.25rem 1.5rem;
}

.dashboard-site .kundali-stat {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.dashboard-site .kundali-stat .label {
  color: var(--text-muted);
}

.dashboard-site .kundali-stat strong {
  color: var(--text-dark);
}

.dashboard-site .kundali-badge {
  display: inline-block;
  background: rgba(212, 160, 23, 0.2);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.dashboard-site .badge-sade-sati-active {
  background: var(--primary) !important;
  color: #fff !important;
}

.dashboard-site .dosha-card-item {
  border: 1px solid #EDD9C0;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-site .chart-svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  
  background: #FFFDF9;
  border-radius: 10px;
  border: 1px solid #EDD9C0;
  min-height: 280px;
  max-width: 100%;
}

.dashboard-site .chart-svg-wrapper svg {
  width: 100% !important;
  height: auto !important;
  max-width: 350px;
  min-width: 260px;
}

/* API may return stroke="8B5E3C" without # — invalid in SVG, lines invisible */
.dashboard-site .chart-svg-wrapper svg path[fill="none"],
.dashboard-site .chart-svg-wrapper svg .slice path {
  stroke: var(--an-black) !important;
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

.dashboard-site .chart-svg-wrapper svg text {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
}

.dashboard-site .dasha-timeline-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.dashboard-site .ai-teaser-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 160, 23, 0.14), transparent 32%),
    radial-gradient(circle at 10% 70%, rgba(200, 75, 0, 0.10), transparent 36%),
    var(--an-ivory);
  border-color: #EDD9C0;
}

.dashboard-site .ai-summary-text {
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 15px;
}

.dashboard-site .ai-summary-text p {
  margin-bottom: 0.75rem;
}

.dashboard-site .ai-summary-text strong {
  color: var(--primary);
}

.dashboard-site .ai-summary-text h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Kundali page spacing */
.dashboard-site .kundali-section {
  margin-bottom: 1.5rem;
}

.dashboard-site .kundali-section .card {
  border: 1px solid #ECECEC;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .kundali-section .card-header {
  background: #FFFFFF;
  border-bottom: 1px solid #F2F2F2;
  border-radius: 14px 14px 0 0 !important;
  padding: 1.1rem 1.4rem;
}

.dashboard-site .warm-card {
  border: 1px solid #ECECEC;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .warm-card-header {
  background: #FFFFFF;
  border-bottom: 1px solid #F2F2F2;
  border-radius: 14px 14px 0 0 !important;
  padding: 1.1rem 1.4rem;
}

/* Panchang grid */
.dashboard-site .panchang-item {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .panchang-item .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dashboard-site .panchang-item .value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
}

/* Numerology numbers */
.dashboard-site .numero-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ECECEC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .numero-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.dashboard-site .numero-card .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dashboard-site .numero-card .sublabel {
  font-size: 11px;
  color: var(--accent);
}

.dashboard-site .numero-card-cycle .sublabel {
  font-size: 10px;
  line-height: 1.35;
  margin-top: 6px;
}

.dashboard-site .numero-meaning-toggle {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
}

.dashboard-site .numero-remedy-tile {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 10px;
  padding: 0.75rem;
  height: 100%;
}

.dashboard-site .numero-remedy-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dashboard-site .numero-remedy-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.dashboard-site .numero-mantra-tile .numero-mantra-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.dashboard-site .numero-loshu-grid {
  max-width: 220px;
  border: 2px solid var(--an-black);
  border-radius: 6px;
  overflow: hidden;
  background: #FFFDF9;
}

.dashboard-site .numero-loshu-row {
  display: flex;
}

.dashboard-site .numero-loshu-cell {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #EDD9C0;
  position: relative;
}

.dashboard-site .numero-loshu-cell.is-present {
  background: #FFF3E8;
}

.dashboard-site .numero-loshu-cell.is-missing {
  background: #FAFAF8;
  opacity: 0.55;
}

.dashboard-site .numero-loshu-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.dashboard-site .numero-loshu-cell.is-missing .numero-loshu-num {
  color: var(--text-muted);
}

.dashboard-site .numero-loshu-count {
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.dashboard-site .numero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dashboard-site .numero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid transparent;
}

.dashboard-site .numero-chip-friendly {
  background: #E8F8F0;
  border-color: #27AE60;
  color: #1e7e4a;
}

.dashboard-site .numero-chip-neutral {
  background: #FFF8E8;
  border-color: var(--gold);
  color: #8B6914;
}

.dashboard-site .numero-chip-caution {
  background: #FFF0EC;
  border-color: var(--primary);
  color: var(--primary);
}

.dashboard-site .numero-chip.is-mine {
  box-shadow: 0 0 0 2px var(--text-dark);
  font-size: 14px;
}

/* Upgrade cards */
.dashboard-site .upgrade-card {
  border: 2px solid #EDD9C0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  background: white;
  height: 100%;
}

.dashboard-site .upgrade-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(200, 75, 0, 0.1);
  transform: translateY(-2px);
}

.dashboard-site .upgrade-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-site .upgrade-card h6 {
  color: var(--text-dark);
  font-weight: 600;
}

.dashboard-site .upgrade-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-site .upgrade-card .btn-upgrade {
  margin-top: 0.5rem;
}

/* Report tabs & chat */
.dashboard-site .report-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.dashboard-site .report-tabs .nav-link:hover {
  color: var(--primary);
}

.dashboard-site .report-tabs .nav-link.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
  background: transparent;
}

/* Roadmap two-row navigation (desktop) */
.report-roadmap-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-domain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.report-domain-btn {
  appearance: none;
  border: 1px solid rgba(28, 35, 51, 0.12);
  background: var(--color-card, #fff);
  color: var(--color-ink, var(--text-dark));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.report-domain-btn:hover {
  border-color: rgba(28, 35, 51, 0.2);
  background: var(--color-surface, #fbfaf8);
}

.report-domain-btn.is-active {
  background: var(--color-accent, var(--primary));
  border-color: var(--color-accent, var(--primary));
  color: #fff;
}

.report-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
  border-bottom: 1px solid var(--surface-border-soft);
  padding-bottom: 0.35rem;
}

.report-year-nav[hidden] {
  display: none !important;
}

.report-year-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--color-text-muted, var(--text-muted));
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  margin: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.report-year-btn:hover {
  color: var(--color-ink, var(--text-dark));
}

.report-year-btn.is-active {
  color: var(--color-ink, var(--text-dark));
  font-weight: 600;
  border-bottom-color: var(--color-accent, var(--primary));
}

.report-year-btn[hidden] {
  display: none !important;
}

@media (min-width: 992px) {
  .report-tabs--legacy {
    display: none !important;
  }
}

/* ── Phase 4E: Mobile responsive (≤768px) ─────────────── */
@media (max-width: 767.98px) {
  .dashboard-site .content-area {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }

  #mobileTopBar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  #mobileTopBar .mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-topbar-logo {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .mobile-topbar-brand.site-logo {
    max-width: 100%;
  }

  .mobile-topbar-brand .site-logo-img {
    max-height: 42px;
    width: auto;
  }

  .mobile-topbar-spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  #mobilePageTitleBar {
    padding: 0.65rem 1rem 0.75rem;
    background: var(--color-surface, #fbfaf8);
    border-bottom: 1px solid var(--surface-border-soft, #EDD9C0);
  }

  .mobile-page-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-ink, var(--text-dark));
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .dashboard-site .sidebar-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .dashboard-site .sidebar-close-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Roadmap nav — horizontal scroll with peek affordance */
  .report-roadmap-nav {
    gap: 0.6rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .report-domain-nav,
  .report-year-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    padding-right: 1.75rem;
    mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }

  .report-domain-nav::-webkit-scrollbar,
  .report-year-nav::-webkit-scrollbar {
    display: none;
  }

  .report-domain-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.55rem 1.05rem;
  }

  .report-year-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.55rem 0.35rem;
    white-space: nowrap;
  }

  .report-year-nav {
    border-bottom: 1px solid var(--surface-border-soft);
    gap: 0 1rem;
  }

  /* Score rings — single column full-width cards */
  .roadmap-score-rings {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .roadmap-score-ring-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--surface-border-soft);
    border-radius: 10px;
    background: var(--color-card, #fff);
    box-shadow: var(--shadow-soft, 0 1px 3px rgba(28, 35, 51, 0.06));
  }

  .roadmap-score-ring-meta {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }

  /* Compatibility area scores — full width, no awkward wrap */
  .score-ring-area-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .score-ring-area-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--surface-border-soft);
    border-radius: 10px;
    background: var(--color-card, #fff);
  }

  .score-ring-area-meta {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }

  .score-ring-area-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .score-ring-area-desc {
    max-width: none;
    margin-inline: 0;
  }

  /* Feedback FAB — labeled pill, 44px touch target */
  .dashboard-site .feedback-fab {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    padding: 0 0.9rem 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
  }

  .feedback-fab-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .feedback-fab-label {
    display: inline;
    white-space: nowrap;
  }
}

/* Dasha timeline — vertical cards below 600px */
.roadmap-timeline-mobile {
  display: none;
}

@media (max-width: 599.98px) {
  .roadmap-timeline-wrap {
    display: none;
  }

  .roadmap-sign-legend--desktop {
    display: none;
  }

  .roadmap-timeline-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .roadmap-timeline-mobile-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .roadmap-timeline-mobile-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted, var(--text-muted));
  }

  .roadmap-period-card {
    border: 1px solid var(--surface-border-soft);
    border-left: 4px solid var(--period-color, var(--color-accent));
    border-radius: 10px;
    background: var(--color-card, #fff);
    padding: 0.75rem 0.85rem;
    box-shadow: var(--shadow-soft, 0 1px 3px rgba(28, 35, 51, 0.06));
  }

  .roadmap-period-card--antar {
    opacity: 0.95;
  }

  .roadmap-period-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .roadmap-period-planet {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-ink, var(--text-dark));
  }

  .roadmap-period-planet.roadmap-sign-marker--Jupiter,
  .roadmap-period-badge.roadmap-sign-marker--Jupiter {
    color: #D4A017;
  }

  .roadmap-period-planet.roadmap-sign-marker--Saturn,
  .roadmap-period-badge.roadmap-sign-marker--Saturn {
    color: #5C6BC0;
  }

  .roadmap-period-planet.roadmap-sign-marker--Rahu,
  .roadmap-period-badge.roadmap-sign-marker--Rahu {
    color: #7B5EA7;
  }

  .roadmap-period-planet.roadmap-sign-marker--Ketu,
  .roadmap-period-badge.roadmap-sign-marker--Ketu {
    color: #C0392B;
  }

  .roadmap-period-duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted, var(--text-muted));
    white-space: nowrap;
    flex-shrink: 0;
  }

  .roadmap-period-dates {
    font-size: 0.8125rem;
    color: var(--color-text-muted, var(--text-muted));
    line-height: 1.35;
  }

  .roadmap-period-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
  }

  .roadmap-period-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(28, 35, 51, 0.06);
    border: 1px solid rgba(28, 35, 51, 0.08);
  }
}

@media (max-width: 991.98px) {
  .report-domain-nav,
  .report-year-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-right: 1.75rem;
    mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }

  .report-domain-btn,
  .report-year-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .report-domain-btn {
    padding: 0.55rem 1.05rem;
  }

  .report-year-btn {
    padding: 0.55rem 0.35rem;
    white-space: nowrap;
  }

  .dashboard-site .feedback-fab {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    padding: 0 0.9rem 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
  }

  .feedback-fab-label {
    display: inline !important;
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  .report-tabs--legacy {
    display: none !important;
  }
}

.dashboard-site .score-card {
  border: 1px solid #EDD9C0;
  border-radius: 10px;
  background: #fff;
}

.dashboard-site .lang-toggle-pill .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 999px;
}

.dashboard-site .lang-toggle-pill .btn-outline-primary {
  border-radius: 999px;
}

.dashboard-site .chat-panel {
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  border: 1px solid #EDD9C0;
}

.dashboard-site .chat-panel.wa-chat {
  background: #fff;
  border: 1px solid #d1d7db;
}

.kundali-ai-chat-panel .chat-messages,
.ask-ai-chat-panel .chat-messages {
  min-height: 280px;
  max-height: 420px;
}

/* WhatsApp-style chat */
.wa-chat {
  display: flex;
  flex-direction: column;
  height: min(72vh, 640px);
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d7db;
  box-shadow: 0 2px 12px rgba(11, 20, 26, 0.08);
  background: #fff;
}

/* Ask AI — full-height: fixed header + footer, scrollable middle */
.dashboard-site .main-content:has(.ask-ai-page-full),
.dashboard-site #mainContent:has(.ask-ai-page-full) {
  overflow-x: hidden;
  max-width: 100%;
}

.dashboard-site .main-content:has(.ask-ai-page-full) > footer,
.dashboard-site #mainContent:has(.ask-ai-page-full) > footer {
  display: none;
}

.dashboard-site .content-area:has(.ask-ai-page-full) {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100dvh - 52px);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.ask-ai-page-full {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.wa-chat-fullpage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}

.wa-chat-fullpage .wa-chat-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.wa-chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 16px;
}

.wa-chat-lead {
  font-size: 0.82rem;
  color: #667781;
  text-align: center;
  line-height: 1.45;
  margin: 0 0 12px;
  padding: 0 4px;
}

.wa-chat-inline-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.1);
}

.wa-chat-inline-alert {
  border-radius: 8px;
  margin-bottom: 10px;
}

.wa-chat-inline-section {
  margin-top: 8px;
}

.wa-chat-upgrade-card {
  background: #fff8e6;
  border: 1px solid #f0d9a8;
  color: #6b4f0a;
}

.wa-chat-fullpage .chat-messages {
  overflow: visible;
  flex: none;
  min-height: auto;
  padding: 4px 0 8px;
}

.wa-chat-fullpage .wa-chat-suggestions {
  padding: 0 0 10px;
}

.wa-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 16px;
  background: #008069;
  color: #fff;
}

.wa-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wa-chat-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.wa-chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

.wa-chat-status.quota-green { color: #c8f7c5; }
.wa-chat-status.quota-saffron { color: #ffe8a3; font-weight: 600; }
.wa-chat-status.quota-red { color: #ffb4b4; font-weight: 600; }

.wa-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-chat:not(.wa-chat-fullpage) .chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  padding: 12px 14px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.wa-chat-empty {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: #667781;
}

.wa-chat-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.wa-chat-empty p {
  font-size: 0.85rem;
  line-height: 1.45;
}

.wa-chat .chat-msg {
  display: flex;
  margin-bottom: 4px;
  clear: both;
}

.wa-chat .chat-msg-user {
  justify-content: flex-end;
}

.wa-chat .chat-msg-assistant {
  justify-content: flex-start;
}

.wa-chat .chat-bubble {
  position: relative;
  max-width: 82%;
  padding: 6px 8px 4px 9px;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-chat .chat-bubble-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  padding-right: 4px;
}

.wa-chat .chat-bubble-time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: #667781;
  margin-top: 2px;
  line-height: 1;
}

.wa-chat .chat-msg-user .chat-bubble {
  background: #d9fdd3;
  color: #111b21;
  border-radius: 8px 0 8px 8px;
}

.wa-chat .chat-msg-user .chat-bubble-time {
  color: #667781;
}

.wa-chat .chat-msg-assistant .chat-bubble {
  background: #fff;
  color: #111b21;
  border-radius: 0 8px 8px 8px;
  border: none;
}

.wa-chat-suggestions {
  flex-shrink: 0;
  padding: 0 12px 10px;
  background: transparent;
}

.wa-chat-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wa-chat .chat-suggestion-label {
  color: #54656f;
  margin-bottom: 6px;
}

.wa-chat .chat-suggestion-chip {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #008069;
  border-radius: 16px;
  color: #008069;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}

.wa-chat .chat-suggestion-chip:hover {
  background: #f0faf7;
  border-color: #006b58;
}

.wa-chat-banner {
  flex-shrink: 0;
  background: #fff8e6;
  border-top: 1px solid #f0d9a8;
  padding: 10px 14px;
  color: #6b4f0a;
}

.wa-chat-footer {
  flex-shrink: 0;
  background: #f0f2f5;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wa-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wa-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.9rem;
  line-height: 1.35;
  max-height: 120px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}

.wa-chat-input:focus {
  outline: none;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.12);
}

.wa-chat-send-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #008069;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-chat-send-btn:hover:not(:disabled) {
  background: #006b58;
}

.wa-chat-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wa-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: wa-typing-bounce 1.2s infinite ease-in-out;
}

.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wa-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-chat .chat-feedback-row {
  display: flex;
  justify-content: flex-start;
  padding-left: 4px;
}

@media (max-width: 768px) {
  .wa-chat:not(.wa-chat-fullpage) {
    height: min(calc(100dvh - 220px), 640px);
    min-height: 360px;
    border-radius: 10px;
  }

  .wa-chat:not(.wa-chat-fullpage) .chat-bubble {
    max-width: 88%;
  }
}

.ask-ai-page,
.ask-ai-page.ask-ai-page-full {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Ask AI — plain WhatsApp-style (no inline cards/suggestions) */
.ask-ai-plain.wa-chat-fullpage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ask-ai-plain .wa-chat-header {
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 16px;
  gap: 10px;
  overflow: hidden;
}

.ask-ai-plain .wa-chat-header-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ask-ai-plain .wa-chat-header-quota {
  flex-shrink: 0;
  font-size: 0.75rem;
  text-align: right;
  line-height: 1.2;
  opacity: 0.95;
  white-space: nowrap;
  padding-right: 4px;
  margin-right: 0;
}

.ask-ai-plain .wa-chat-quota-label {
  opacity: 0.85;
}

.ask-ai-plain .wa-chat-profile-select {
  display: block;
  
  max-width: 100%;
  margin-top: 2px;
  padding: 2px 24px 2px 0;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right center;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.ask-ai-plain .wa-chat-profile-select:focus {
  outline: none;
  box-shadow: none;
}

.ask-ai-plain .wa-chat-profile-select option {
  color: #111;
  background: #fff;
}

.ask-ai-plain .ask-ai-header-profile {
  font-size: 0.78rem;
  opacity: 0.92;
}

.ask-ai-plain .wa-chat-scroll {
  padding: 10px 12px 12px;
  overflow-x: hidden;
}

.ask-ai-plain .chat-messages {
  min-height: 0;
  max-height: none;
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
}

.ask-ai-plain .chat-msg {
  max-width: 100%;
}

.ask-ai-plain .chat-msg-assistant .chat-bubble,
.ask-ai-plain .chat-msg-user .chat-bubble {
  max-width: min(82%, calc(100% - 12px));
}

.ask-ai-plain .wa-chat-empty {
  padding: 2.5rem 1rem;
}

.ask-ai-plain .wa-chat-empty p {
  font-size: 0.9rem;
  color: #8696a0;
}

.ask-ai-toast {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  transition: opacity 0.4s ease;
}

.ask-ai-toast-success {
  background: #d9fdd3;
  color: #1f4d1a;
}

.ask-ai-toast-hide {
  opacity: 0;
  pointer-events: none;
}

#chatQuotaModal .ai-unlock-packs {
  margin-bottom: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.ask-ai-profile-bar .form-select {
  border-color: rgba(139, 94, 60, 0.25);
}

.ai-unlock-packs {
  background: #fff;
  border: 1px solid rgba(139, 94, 60, 0.18);
  border-radius: 12px;
  padding: 1rem 1rem 0.85rem;
  margin-bottom: 1rem;
}

.ai-unlock-packs-header h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.ai-unlock-pack-card {
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  background: #faf8f6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-unlock-pack-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(200, 75, 0, 0.08);
}

.ai-unlock-pack-qty {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.ai-unlock-pack-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.chat-upgrade-block {
  background: #fff8f2;
  border: 1px solid rgba(200, 75, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.dashboard-site .chat-panel:not(.wa-chat) .chat-messages,
.dashboard-site .ask-ai-chat-panel:not(.wa-chat) .chat-messages {
  background: rgba(253, 246, 236, 0.6);
  border: 1px solid #EDD9C0;
}

.dashboard-site .chat-panel:not(.wa-chat) .chat-msg-user .chat-bubble,
.dashboard-site .ask-ai-chat-panel:not(.wa-chat) .chat-msg-user .chat-bubble {
  background: var(--primary);
}

.dashboard-site .btn-pdf-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.dashboard-site .btn-pdf-outline:hover {
  background: rgba(200, 75, 0, 0.08);
}

/* Compatibility */
.dashboard-site .compat-score-dial {
  border-color: #EDD9C0;
}

.dashboard-site .compat-score-dial.score-green { border-color: var(--color-score-green); color: var(--color-score-green); }
.dashboard-site .compat-score-dial.score-orange { border-color: var(--color-score-amber); color: var(--color-score-amber); }
.dashboard-site .compat-score-dial.score-red { border-color: var(--color-score-red); color: var(--color-score-red); }

.dashboard-site .badge-strength {
  background: rgba(45, 106, 45, 0.15) !important;
  color: #1a4d1a !important;
}

.dashboard-site .badge-caution {
  background: rgba(212, 160, 23, 0.2) !important;
  color: #6b4f0a !important;
}

.dashboard-site .area-score-wrap {
  background: #fff;
  border: 1px solid #EDD9C0;
  border-radius: 10px;
  padding: 1rem;
}

/* Pricing (logged-in + shared) */
.dashboard-site .pricing-hero h2,
.public-site .pricing-hero h1,
.public-site .pricing-hero h2 {
  font-family: var(--font-heading);
}

.pricing-page {
  max-width: 1280px;
  margin: 0 auto;
}

.pricing-hero-lead {
  font-size: 1.05rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-gst-note {
  opacity: 0.85;
}

.pricing-grid {
  margin-bottom: 0.5rem;
}

.pricing-section-header {
  margin-bottom: 1.5rem;
}

.pricing-comparison-section,
.pricing-faq-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(139, 94, 60, 0.15);
}

.pricing-faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.dashboard-site .plan-card,
.dashboard-site .pricing-card,
.public-site .plan-card {
  background: #fff;
  border: 1px solid rgba(139, 94, 60, 0.18);
  border-radius: 1rem;
  padding: 0;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: visible;
}

.dashboard-site .plan-card-inner,
.public-site .plan-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem 1.25rem;
}

.dashboard-site .plan-card.has-badge .plan-card-inner,
.public-site .plan-card.has-badge .plan-card-inner {
  padding-top: 1.85rem;
}

.dashboard-site .plan-card-header,
.public-site .plan-card-header {
  flex-shrink: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(139, 94, 60, 0.12);
  margin-bottom: 1rem;
}

.dashboard-site .plan-card.popular,
.public-site .plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(200, 75, 0, 0.12) !important;
}

.dashboard-site .plan-card.best-value,
.public-site .plan-card.best-value {
  border-color: var(--gold);
}

.dashboard-site .plan-card:hover,
.public-site .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 26, 14, 0.1);
}

.dashboard-site .plan-badge,
.public-site .plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200, 75, 0, 0.25);
  z-index: 1;
}

.plan-badge--gold {
  background: var(--gold) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3) !important;
}

.dashboard-site .plan-name,
.public-site .plan-name {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.dashboard-site .plan-subtitle,
.public-site .plan-subtitle {
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 2.6rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted) !important;
}

.dashboard-site .plan-price,
.public-site .plan-price {
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
  margin: 0;
}

.plan-price-label {
  font-size: 1.75rem;
  font-weight: 700;
}

.plan-price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 0.1rem;
}

.plan-price-amount {
  font-size: 2rem;
  font-weight: 700;
}

.plan-feature-list {
  flex: 1 1 auto;
  text-align: left;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #444;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.plan-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: #e8f5e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23198754'%3E%3Cpath d='M6.173 11.414L3.05 8.293a1 1 0 0 0-1.414 1.414l3.9 3.9a1 1 0 0 0 1.414 0l7.07-7.071a1 1 0 0 0-1.414-1.414L6.173 11.414z'/%3E%3C/svg%3E") center / 0.55rem no-repeat;
}

.plan-feature-list--compact li {
  padding: 0.28rem 0;
  font-size: 0.78rem;
}

.plan-card-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.dashboard-site .plan-card .plan-cta,
.public-site .plan-card .plan-cta {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
}

.dashboard-site .pricing-price .amount {
  color: var(--primary);
  font-family: var(--font-heading);
}

.dashboard-site .pricing-name {
  color: var(--text-dark);
  font-family: var(--font-heading);
}

/* Orders */
.dashboard-site .invoice-card .invoice-number {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
}

.dashboard-site .gst-table thead th {
  background: #FFF3E8;
}

/* Feedback widget */
.dashboard-site .feedback-fab {
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(200, 75, 0, 0.35);
}

.dashboard-site .feedback-fab:hover {
  background: #a33d00;
  color: #fff;
  transform: scale(1.05);
}

.dashboard-site .feedback-stars .fb-star.active {
  color: var(--gold);
}

.dashboard-site #feedbackModal .modal-content {
  border: 1px solid #EDD9C0;
  border-radius: 12px;
}

.dashboard-site #feedbackModal .modal-header {
  border-bottom-color: #EDD9C0;
}

.dashboard-site #feedbackModal .modal-footer {
  border-top-color: #EDD9C0;
}

.dashboard-site .spinner-border.text-primary {
  color: var(--primary) !important;
}

.dashboard-site .breadcrumb a {
  color: var(--primary);
}

.dashboard-site footer.text-muted {
  color: var(--text-muted) !important;
}

.dashboard-site .referral-box .form-control {
  border-color: rgba(139, 94, 60, 0.35);
}

.dashboard-site table.warm-table thead th,
.dashboard-site table.dataTable thead th {
  background: #FFF3E8 !important;
  color: var(--text-dark) !important;
}

.dashboard-site table.warm-table tbody tr:hover,
.dashboard-site table.dataTable tbody tr:hover {
  background: var(--an-ivory) !important;
}

.dashboard-site .kundali-stat .astro-term-plain {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  line-height: 1.3;
}

/* New user banner */
.dashboard-site .new-user-banner {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.65rem 1.5rem;
}

.dashboard-site .new-user-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

.dashboard-site .new-user-banner-text {
  font-weight: 500;
  font-size: 0.95rem;
}

.dashboard-site .new-user-banner-dismiss {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  padding: 0 0.25rem;
}

/* Onboarding checklist */
.dashboard-site .onboarding-progress {
  height: 8px;
  background: rgba(139, 94, 60, 0.15);
  border-radius: 999px;
}

.dashboard-site .onboarding-progress .progress-bar {
  background: var(--primary);
  border-radius: 999px;
}

.dashboard-site .onboarding-step-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(237, 217, 192, 0.6);
  font-size: 0.95rem;
}

.dashboard-site .onboarding-step-item:last-child {
  border-bottom: none;
}

.dashboard-site .onboarding-step-item.done .step-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

.dashboard-site .did-you-know-card {
  background: rgba(212, 160, 23, 0.08);
  border-color: rgba(212, 160, 23, 0.25);
}

.dashboard-site .did-you-know-tip {
  transition: opacity 0.3s ease;
  min-height: 2.5rem;
}

/* Field helper text */
.dashboard-site .field-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dashboard-site .field-helper-warn {
  color: #8b3a00;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* Profile create info panel */
.dashboard-site .profile-info-panel {
  background: linear-gradient(180deg, #fff, var(--bg-warm));
  border: 1px solid #EDD9C0;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}

.dashboard-site .profile-info-panel h6 {
  font-family: var(--font-heading);
  font-size: 1rem;
  border-bottom: 1px solid #EDD9C0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.dashboard-site .info-panel-item {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.dashboard-site .info-panel-item strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

/* Empty states */
.dashboard-site .empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.dashboard-site .empty-state-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.dashboard-site .mandala-empty {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, rgba(200,75,0,0.08) 50%, transparent 70%);
  border: 2px dashed rgba(200, 75, 0, 0.25);
}

.dashboard-site .mandala-empty::before,
.dashboard-site .mandala-empty::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.dashboard-site .mandala-empty::after {
  inset: 30%;
  border-style: dashed;
}

.dashboard-site .stars-empty {
  background: radial-gradient(circle at 30% 40%, var(--gold) 2px, transparent 2px),
    radial-gradient(circle at 70% 30%, var(--primary) 2px, transparent 2px),
    radial-gradient(circle at 50% 70%, var(--gold) 3px, transparent 3px),
    radial-gradient(circle at 80% 65%, var(--primary-light) 2px, transparent 2px);
  background-size: 100% 100%;
  border-radius: 50%;
  background-color: rgba(253, 246, 236, 0.8);
  border: 1px solid #EDD9C0;
}

/* Astro term explanations */
.dashboard-site .astro-term {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.dashboard-site .astro-term-name {
  font-weight: 600;
}

.dashboard-site .astro-term-plain {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Chart at a glance */
.dashboard-site .chart-glance-card {
  background: linear-gradient(135deg, var(--an-gold-soft) 0%, var(--an-white) 45%, var(--an-ivory) 100%);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
}

.dashboard-site .chart-glance-divider {
  border-color: rgba(212, 160, 23, 0.35);
  margin-bottom: 1rem;
}

.dashboard-site .chart-glance-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(237, 217, 192, 0.5);
  font-size: 0.9rem;
}

.dashboard-site .chart-glance-row:last-of-type {
  border-bottom: none;
}

.dashboard-site .chart-glance-icon {
  font-size: 1.15rem;
  width: 1.75rem;
  flex-shrink: 0;
  color: var(--gold);
}

.dashboard-site .chart-glance-content {
  flex: 1;
}

.dashboard-site .chart-glance-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.dashboard-site .chart-glance-value {
  font-weight: 600;
  color: var(--primary);
}

.dashboard-site .chart-glance-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dashboard-site .chart-glance-vibe {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 160, 23, 0.4);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
}

/* Expandable term blocks */
.dashboard-site .astro-term-block {
  padding: 0.75rem;
  background: rgba(253, 246, 236, 0.5);
  border-radius: 8px;
  height: 100%;
}

.dashboard-site .astro-term-toggle {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
}

.dashboard-site .astro-term-toggle:hover {
  color: #a33d00;
}

.dashboard-site .astro-term-explainer {
  margin-top: 0.25rem;
}

/* Dasha phase card */
.dashboard-site .dasha-current-card {
  background: linear-gradient(90deg, rgba(200, 75, 0, 0.08), rgba(212, 160, 23, 0.06));
  border: 1px solid rgba(200, 75, 0, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.dashboard-site .dasha-upcoming-timeline {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.dashboard-site .dasha-phase-chip {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0.65rem 0.5rem;
  background: #fff;
  border: 1px solid #EDD9C0;
  border-radius: 8px;
  font-size: 0.78rem;
}

.dashboard-site .dasha-phase-chip strong {
  display: block;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Dasha period table */
.dashboard-site #dashaTable thead tr {
  background: #FFF3E8;
  color: var(--text-dark);
}

.dashboard-site #dashaTable thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #EDD9C0;
  padding: 10px 12px;
}

.dashboard-site #dashaTable tbody tr {
  border-bottom: 1px solid #F5EDE0;
  transition: background 0.15s;
}

.dashboard-site #dashaTable tbody tr:hover {
  background: #FFF8F2;
}

.dashboard-site .dasha-maha-row td {
  padding: 10px 12px;
}

.dashboard-site .antar-row td {
  padding: 6px 12px;
  background: #FFFDF9;
}

.dashboard-site .toggle-antar:hover {
  opacity: 0.7;
}

/* Dasha tab enhancements */
.dashboard-site .dasha-current-hero {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .dasha-planet-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.dashboard-site .dasha-meaning-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
}

.dashboard-site .dasha-combined-theme {
  color: var(--text-dark);
  border-left: 3px solid var(--gold);
  padding-left: 0.65rem;
  margin-bottom: 0;
}

.dashboard-site .dasha-placement-chip {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 999px;
  color: var(--text-dark);
}

.dashboard-site .dasha-placement-chip a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.dashboard-site .dasha-progress-track {
  height: 8px;
  background: #F0EDE8;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-site .dasha-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.dashboard-site .dasha-progress-fill--maha {
  background: linear-gradient(90deg, var(--primary), #e86a1a);
}

.dashboard-site .dasha-progress-fill--antar {
  background: linear-gradient(90deg, var(--gold), #e8c040);
}

.dashboard-site .dasha-progress-fill--pratyantar {
  background: linear-gradient(90deg, #2980B9, #5dade2);
}

.dashboard-site .dasha-phase-chip--next {
  border-color: var(--primary);
  background: #FFF8F0;
}

.dashboard-site .dasha-yoga-chip {
  background: #fff;
  border: 1px solid #EDD9C0;
  border-radius: 10px;
  padding: 0.75rem;
}

.dashboard-site .dasha-birth-balance {
  background: #FFFDF9;
  border: 1px dashed #EDD9C0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.dashboard-site .dasha-chart-wrap {
  background: #FFFDF9;
  border: 1px solid #EDD9C0;
  border-radius: 10px;
  padding: 0.75rem;
}

.dashboard-site .dasha-pratyantar-inline {
  border-left: 2px solid #EDD9C0;
}

@media (max-width: 767.98px) {
  .dashboard-site .dasha-current-hero .dasha-meaning-card {
    margin-top: 0.5rem;
  }

  .dashboard-site .dasha-phase-chip {
    min-width: 100px;
    flex: 0 0 auto;
  }
}

.dashboard-site .plain-status-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(253, 246, 236, 0.8);
  margin-top: 0.5rem;
}

.dashboard-site .plain-status-msg.is-active {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.25);
}

.dashboard-site .plain-status-msg.is-calm {
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Report view UX */
.dashboard-site .report-howto-banner {
  background: #FFF8E8;
  border: 1px solid #D4A017;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.dashboard-site .key-takeaways-divider {
  border-color: rgba(212, 160, 23, 0.35);
  opacity: 1;
}

.dashboard-site .key-takeaways-box {
  background: #FFF8E8;
  border-left: 4px solid #D4A017;
  border-radius: 0 10px 10px 0;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-site .key-takeaways-box h6 {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.dashboard-site .key-takeaways-static {
  border: none;
  border-left: 4px solid #D4A017;
}

.dashboard-site .score-label-plain.score-label-green {
  color: var(--color-score-green);
}

.dashboard-site .score-label-plain.score-label-orange {
  color: var(--color-score-amber);
}

.dashboard-site .score-label-plain.score-label-red {
  color: var(--color-score-red);
}

.dashboard-site .report-tab-desc {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.dashboard-site .report-tabs .nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: normal;
  min-width: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.dashboard-site .score-label-plain {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dashboard-site .key-takeaways-box li {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.dashboard-site .key-takeaways-box li strong {
  color: var(--text-dark);
}

/* AI chat UX */
.dashboard-site .chat-suggestions {
  margin-bottom: 0.75rem;
}

.dashboard-site .chat-suggestion-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.dashboard-site .chip,
.dashboard-site .chat-suggestion-chip {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  background: #FFF8E8;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dashboard-site .chip:hover,
.dashboard-site .chat-suggestion-chip:hover {
  background: rgba(200, 75, 0, 0.08);
  border-color: var(--primary-light);
}

.dashboard-site .chat-quota-text {
  font-size: 0.75rem;
}

.dashboard-site .chat-quota-text.quota-green {
  color: #198754;
}

.dashboard-site .chat-quota-text.quota-saffron {
  color: var(--primary);
  font-weight: 600;
}

.dashboard-site .chat-quota-text.quota-red {
  color: #dc3545;
  font-weight: 600;
}

.dashboard-site .chat-upgrade-block {
  background: rgba(200, 75, 0, 0.06);
  border: 1px solid rgba(200, 75, 0, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
}

.dashboard-site .chat-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.dashboard-site .compat-verdict {
  color: var(--text-dark);
}

.dashboard-site .compat-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 991.98px) {
  .dashboard-site .app-sidebar {
    border-left: none;
    border-right: 1px solid #EDD9C0;
  }
}

@media (max-width: 768px) {
  .dashboard-site .main-content {
    margin-left: 0;
  }

  .dashboard-site .content-area {
    --content-pad-x: 1rem;
    --content-pad-y: 0.75rem;
    padding: var(--content-pad-y) var(--content-pad-x);
    overflow-x: clip;
  }

  .kundali-tab-content,
  .kundali-panel {
    max-width: 100%;
    overflow-x: clip;
  }

  .yoga-score-row {
    --bs-gutter-x: 0.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .dashboard-site .chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .dashboard-site .chat-suggestion-chip,
  .dashboard-site .chip {
    width: auto;
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 140px;
  }
}

/* Pricing comparison table */
.dashboard-site .comparison-table-wrap,
.public-site .comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(139, 94, 60, 0.18);
  background: #fff;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.04);
}

.comparison-table {
  min-width: 780px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table thead th {
  background: #2c1a0e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: none;
  padding: 0.75rem 0.55rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
}

.comparison-table thead th:first-child,
.comparison-table .cmp-feature-col {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #2c1a0e;
  min-width: 200px;
}

.comparison-table tbody td {
  text-align: center;
  font-size: 0.8rem;
  vertical-align: middle;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
}

.comparison-table tbody td:first-child,
.comparison-table tbody .cmp-feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
  min-width: 200px;
}

.comparison-table tbody tr.cmp-row-even {
  background: #fff;
}

.comparison-table tbody tr.cmp-row-odd {
  background: #faf8f6;
}

.comparison-table tbody tr:hover td {
  background: #fff8f2;
}

.comparison-table tbody tr:hover td.cmp-feature-col {
  background: #fff8f2;
}

.comparison-table .col-popular {
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  background: rgba(200, 75, 0, 0.05) !important;
}

.comparison-table thead th.col-popular {
  background: var(--primary);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.cmp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  vertical-align: middle;
}

.cmp-icon--yes {
  background: #e8f5e9;
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
}

.cmp-icon--yes::before {
  content: '✓';
}

.cmp-icon--no {
  color: #bbb;
  font-size: 0.9rem;
  font-weight: 400;
}

.cmp-icon--no::before {
  content: '—';
}

.cmp-value {
  font-weight: 600;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

.pricing-faq-accordion {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-faq-accordion .accordion-item {
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 10px !important;
  overflow: hidden;
  background: #fff;
}

.pricing-faq-accordion .accordion-button {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  padding: 1rem 1.25rem;
  box-shadow: none;
}

.pricing-faq-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  box-shadow: none;
}

.pricing-faq-accordion .accordion-button::after {
  background-size: 1rem;
  opacity: 0.6;
}

.pricing-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(200, 75, 0, 0.25);
}

.pricing-faq-accordion .accordion-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 1.25rem 1rem 1.25rem;
  border-left: 3px solid var(--primary);
}

@media (max-width: 991px) {
  .pricing-comparison-section,
  .pricing-faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .plan-price-amount {
    font-size: 1.75rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.55rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .dashboard-site .plan-card-inner,
  .public-site .plan-card-inner {
    padding: 1.25rem 1rem 1rem;
  }

  .plan-subtitle {
    min-height: auto;
  }
}

/* Buy modal */
.buy-modal-content {
  border: 1px solid #EDD9C0;
}

.profile-pick-card {
  display: block;
  cursor: pointer;
  margin: 0;
}

.profile-pick-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-pick-body {
  display: block;
  border: 2px solid #EDD9C0;
  border-radius: 10px;
  padding: 0.85rem;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.profile-pick-card.selected .profile-pick-body,
.profile-pick-card:has(.profile-pick-radio:checked) .profile-pick-body {
  border-color: var(--primary);
  background: rgba(200, 75, 0, 0.06);
}

.order-summary-box {
  background: #FFF8E8;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 10px;
  padding: 1rem;
}

.trust-signals li {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Order status banners */
.payment-success-banner {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid rgba(25, 135, 84, 0.35);
}

.payment-failed-banner {
  background: #FFF0EC;
  border: 2px solid #C84B00;
}

.payment-ready-banner {
  background: linear-gradient(135deg, #FFF8E8, #fff);
  border: 1px solid rgba(212, 160, 23, 0.4);
}

/* Chart glance skeleton */
.chart-glance-skeleton .skeleton-line {
  height: 0.65rem;
  background: linear-gradient(90deg, rgba(212,160,23,0.12), rgba(212,160,23,0.22), rgba(212,160,23,0.12));
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.confirm-modal-content {
  border: 2px solid var(--primary) !important;
}

.confirm-modal-header {
  background: #FFF3E8;
}

.plan-subtitle {
  min-height: 2.6rem;
  line-height: 1.45;
}

/* Place search suggestions */
#placeSuggestions .list-group-item-action:hover {
  background: #FFF3E8;
  color: var(--primary);
}
#placeSuggestions {
  border: 1px solid #EDD9C0;
  border-radius: 8px;
  margin-top: 4px;
}
#placeSearch.is-invalid {
  border-color: #C84B00;
  box-shadow: 0 0 0 3px rgba(200, 75, 0, 0.15);
}

/* Raja Yoga score */
.raja-score-bar { transition: width 1s ease-in-out; }

/* Karaka table */
.karaka-highlight { background: #FFFFFF !important; border: 1px solid #ECECEC !important; }

/* Planet icons */
.planet-icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border: 2px solid var(--primary);
  background: white;
}

/* Jaimini AK highlight */
.ak-highlight,
.ak-highlight-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* ── Kundali Tab Bar — Mobile App Style ─────────────── */
.kundali-tab-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
}

.kundali-tab-bar {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #ECECEC;
  margin-left: calc(-1 * var(--content-pad-x, 1.5rem));
  margin-right: calc(-1 * var(--content-pad-x, 1.5rem));
  margin-bottom: 1.75rem;
  padding: 0.5rem calc(var(--content-pad-x, 0.1rem) + 0.08rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: var(--dashboard-topbar-height, 57px);
  z-index: 1030;
  transition: box-shadow 0.2s ease;
  width: auto;
  min-height: 44px;
}

.kundali-tab-bar.is-pinned {
  box-shadow: 0 4px 16px rgba(44, 26, 14, 0.12);
}

.kundali-tabs-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.kundali-tabs-wrapper::-webkit-scrollbar { display: none; }

.kundali-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.kundali-tab i    { font-size: 13px; }
.kundali-tab span { font-size: 12px; }

.kundali-tab:hover {
  background: #FAFAFA;
  color: var(--primary);
  border-color: #ECECEC;
}
.kundali-tab.active {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(200, 75, 0, 0.2);
}
.kundali-tab.active i,
.kundali-tab.active span { color: white !important; }

/* Panels */
.kundali-panel { display: none; }
.kundali-panel.active {
  display: block;
  animation: fadeInPanel 0.18s ease;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
  .kundali-summary-grid .chart-glance-card,
  .kundali-summary-grid .birth-details-card,
  .kundali-two-col-grid .birth-details-card,
  .kundali-two-col-grid .kundali-section,
  .kundali-two-col-grid > .col-lg-6 > .dashboard-card {
    height: 100%;
  }
  .kundali-summary-grid .birth-details-card,
  .kundali-two-col-grid .birth-details-card,
  .kundali-two-col-grid > .col-lg-6 > .dashboard-card {
    display: flex;
    flex-direction: column;
  }
  .kundali-summary-grid .birth-details-body,
  .kundali-two-col-grid .birth-details-body {
    flex: 1;
  }
  .kundali-two-col-grid .kundali-section {
    display: flex;
    flex-direction: column;
  }
  .kundali-two-col-grid .kundali-section .collapse,
  .kundali-two-col-grid .kundali-section .card-body {
    flex: 1;
  }
}

/* Planet table */
#planetTable thead th {
  background: #FAFAFA;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 1.5px solid #ECECEC;
  white-space: nowrap;
}
#planetTable tbody tr {
  border-bottom: 1px solid #F2F2F2;
  transition: background 0.15s;
}
#planetTable tbody tr:hover { background: #FAFAFA; }
#planetTable tbody td { padding: 10px 12px; vertical-align: middle; }

.yoga-card { transition: box-shadow 0.2s; }
.yoga-card:hover { box-shadow: 0 4px 16px rgba(200, 75, 0, 0.1); }
.yoga-card-active { box-shadow: 0 4px 16px rgba(200, 75, 0, 0.14); }

.yoga-list-item { transition: box-shadow 0.2s; }
.yoga-list-item:hover { box-shadow: 0 2px 12px rgba(200, 75, 0, 0.08); }
.yoga-card-toggle { cursor: pointer; }
.yoga-filter-btn {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.yoga-filter-btn[data-filter="positive"] { border-color: #27AE60; color: #27AE60; }
.yoga-filter-btn[data-filter="caution"] { border-color: #E74C3C; color: #E74C3C; }
.yoga-filter-btn[data-filter="jaimini"] { border-color: var(--gold); color: var(--gold); }
.yoga-filter-btn:hover { opacity: 0.85; }
.yoga-filter-btn.is-active { color: white; }
.yoga-filter-btn.is-active[data-filter="all"] { background: var(--primary); border-color: var(--primary); }
.yoga-filter-btn.is-active[data-filter="positive"] { background: #27AE60; border-color: #27AE60; }
.yoga-filter-btn.is-active[data-filter="caution"] { background: #E74C3C; border-color: #E74C3C; }
.yoga-filter-btn.is-active[data-filter="jaimini"] { background: var(--gold); border-color: var(--gold); }

/* ── Mobile Yoga Tab Fixes ────────────────────────────── */
@media (max-width: 768px) {

  /* 1. Score cards — stack nicely */
  .yoga-score-row .col-4 {
    padding: 0.4rem;
  }
  .yoga-score-row .col-4 > div {
    padding: 0.75rem 0.4rem !important;
  }
  .yoga-score-row .display-6 {
    font-size: 1.6rem !important;
  }
  .yoga-score-row .small {
    font-size: 10px !important;
  }

  /* 2. Active Now banner */
  .active-now-badge {
    font-size: 11px !important;
    padding: 0.25rem 0.6rem !important;
    white-space: normal !important;
    text-align: center;
  }
  .active-section-banner {
    font-size: 11px !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 20px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  /* 3. Active yoga card */
  .active-yoga-card {
    padding: 0.75rem !important;
  }
  .active-yoga-card .fw-bold {
    font-size: 14px !important;
  }
  .active-yoga-card p.small {
    font-size: 12px !important;
  }

  /* 4. Coming up next — horizontal scroll on mobile */
  .coming-up-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding-bottom: 4px;
    gap: 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .coming-up-row::-webkit-scrollbar { display: none; }
  .coming-up-row .col-md-4 {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* 5. Filter buttons — wrap and smaller */
  .yoga-filter-btn {
    font-size: 11px !important;
    padding: 0.3rem 0.7rem !important;
  }

  /* 6. Yoga list item — fix layout */
  .yoga-list-item > div:first-child {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    min-width: 0;
  }
  .yoga-list-item .flex-grow-1 {
    min-width: 0;
  }
  .yoga-list-item .fw-semibold {
    font-size: 13px !important;
    word-break: break-word;
  }
  .yoga-list-item .small {
    font-size: 11px !important;
  }
  .yoga-meta-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    min-width: 70px !important;
  }
  .yoga-meta-right .small { font-size: 10px !important; }

  /* 7. Expanded yoga detail */
  .yoga-detail-panel > div {
    padding: 0.75rem !important;
  }
  .yoga-description-box p {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  /* 8. Activation timeline rows */
  .activation-row {
    padding: 0.5rem !important;
    gap: 0.5rem !important;
  }
  .activation-row .small { font-size: 11px !important; }
  .activation-year {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  /* 9. Planet badges — wrap properly */
  .planet-badges { gap: 4px !important; }
  .planet-badges .badge {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  /* 10. Bottom note */
  .yoga-bottom-note { padding: 0.75rem !important; }
  .yoga-bottom-note .small { font-size: 11px !important; }

  /* 11. Chevron icon — don't shrink */
  .yoga-list-item .bi-chevron-down,
  .yoga-list-item .bi-chevron-up {
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  /* 12. Jaimini tab karakas table — scrollable */
  #tab-jaimini .table-responsive {
    font-size: 12px;
  }
  #tab-jaimini .table td,
  #tab-jaimini .table th {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  /* 13. AK highlight card — stack vertically */
  #tab-jaimini .ak-card .row {
    flex-direction: column;
  }
  #tab-jaimini .ak-card .col-auto {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
}

/* ── Sidebar — mobile overlay, desktop push ──────────── */
.dashboard-site .sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.dashboard-site .sidebar-overlay.show {
  display: block;
}

.dashboard-site .sidebar-mobile-header {
  border-bottom: 1px solid #EDD9C0;
  background: #FFF3E8;
}

.dashboard-site .sidebar-mobile-brand {
  color: var(--primary);
  font-family: var(--font-heading);
}

.dashboard-site .sidebar-mobile-brand span {
  color: var(--text-dark);
}

.dashboard-site .sidebar-close-btn,
.dashboard-site .mobile-menu-btn {
  border: none;
  background: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.dashboard-site .mobile-menu-btn {
  font-size: 1.35rem;
  color: var(--text-dark);
  padding: 4px;
}

.dashboard-site .sidebar-close-btn:hover,
.dashboard-site .mobile-menu-btn:hover {
  background: rgba(200, 75, 0, 0.08);
  color: var(--primary);
}

/* Mobile top navbar */
#mobileTopBar {
  position: sticky;
  top: 0;
  z-index: 1035;
  background: white;
  border-bottom: 1px solid #EDD9C0;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#mobilePageTitleBar {
  position: sticky;
  top: var(--dashboard-topbar-height, 52px);
  z-index: 1034;
}

#mobileTopBar.is-scrolled {
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

#mobileTopBar .mobile-topbar-title {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}

#mobileTopBar .mobile-notif-bell {
  font-size: 1.1rem;
}

#mobileTopBar .mobile-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* Desktop: sidebar always visible, pushes content */
@media (min-width: 992px) {
  .dashboard-site #mainSidebar,
  .dashboard-site .app-sidebar {
    transform: translateX(0) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 260px !important;
    z-index: 100 !important;
    box-shadow: 2px 0 12px rgba(44, 26, 14, 0.04) !important;
    border-right: 1px solid #EDD9C0 !important;
    overflow-y: auto;
  }

  .dashboard-site #mainContent,
  .dashboard-site .main-content {
    margin-left: 260px !important;
    width: auto !important;
  }

  .dashboard-site #sidebarOverlay {
    display: none !important;
  }

  .dashboard-site #mobileTopBar {
    display: none !important;
  }

  /* Ask AI desktop — flex column: top bar + chat share same width (no fixed panel) */
  .dashboard-site #mainContent:has(.ask-ai-page-full),
  .dashboard-site .main-content:has(.ask-ai-page-full) {
    display: flex !important;
    flex-direction: column !important;
    margin-left: 260px !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100dvh;
    min-height: 0;
    overflow: hidden !important;
    box-sizing: border-box;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .top-bar,
  .dashboard-site .main-content:has(.ask-ai-page-full) .top-bar {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-width: 0;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .top-bar-actions {
    flex-shrink: 0;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .content-area,
  .dashboard-site .main-content:has(.ask-ai-page-full) .content-area,
  .dashboard-site .content-area:has(.ask-ai-page-full) {
    position: static;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .ask-ai-page-full,
  .dashboard-site .main-content:has(.ask-ai-page-full) .ask-ai-page-full {
    flex: 1;
    min-height: 0;
    min-width: 0;
    height: 100%;
    width: 100%;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .wa-chat-fullpage,
  .dashboard-site .main-content:has(.ask-ai-page-full) .wa-chat-fullpage {
    flex: 1;
    min-height: 0;
    min-width: 0;
    height: 100%;
    width: 100%;
  }

  .dashboard-site #mainContent:has(.ask-ai-page-full) .wa-chat-header,
  .dashboard-site .main-content:has(.ask-ai-page-full) .wa-chat-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile: sidebar hidden, slides in as overlay */
@media (max-width: 991.98px) {
  #mobileTopBar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  #mobileTopBar .mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-topbar-logo {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .mobile-topbar-brand.site-logo {
    max-width: 100%;
  }

  .mobile-topbar-brand .site-logo-img {
    max-height: 42px;
    width: auto;
  }

  .mobile-topbar-spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  #mobilePageTitleBar {
    padding: 0.65rem 1rem 0.75rem;
    background: var(--color-surface, #fbfaf8);
    border-bottom: 1px solid var(--surface-border-soft, #EDD9C0);
  }

  .mobile-page-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-ink, var(--text-dark));
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .dashboard-site .sidebar-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .dashboard-site .sidebar-close-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .dashboard-site #mainSidebar,
  .dashboard-site .app-sidebar {
    transform: translateX(-100%);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    max-width: 85vw;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1050 !important;
    transition: transform 0.3s ease !important;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
    border-right: 1px solid #EDD9C0 !important;
  }

  .dashboard-site #mainSidebar.open,
  .dashboard-site #mainSidebar.show,
  .dashboard-site .app-sidebar.open,
  .dashboard-site .app-sidebar.show {
    transform: translateX(0) !important;
  }

  .dashboard-site #mainContent,
  .dashboard-site .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
  }

  body.dashboard-site.sidebar-open {
    overflow: hidden !important;
  }

  /* Tab bar below mobile top navbar */
  .kundali-tab-bar {
    top: var(--dashboard-topbar-height, 52px) !important;
    z-index: 1030 !important;
  }
}

/* ══ KUNDALI SUMMARY DASHBOARD ══════════════════════════ */
.dash-hero-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.dash-hero-row .dash-identity-card,
.dash-hero-row .dash-stat-grid {
  flex: 1;
  width: 100%;
}
.dash-stat-grid .col-6 {
  display: flex;
}
.dash-stat-grid .col-6 > .dash-stat-card {
  width: 100%;
}

.dash-sections-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.dash-sections-row .dash-section-card {
  flex: 1;
  width: 100%;
}
.dash-actions-grid .col-6 {
  display: flex;
}
.dash-actions-grid .col-6 > .dash-action-btn {
  width: 100%;
}
.dash-action-icon {
  font-size: 28px;
  line-height: 1;
}

.dash-identity-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.dash-identity-pill {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  transition: box-shadow 0.15s;
}
.dash-identity-pill:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); }
.dash-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFF3E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.dash-pill-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-pill-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}
.dash-pill-sub { font-size: 10px; color: var(--text-muted); }
.dash-pill-value-sm { font-size: 0.85rem !important; }

.dash-stat-number-text {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Override heading size for dashboard card headers */
.dash-section-header {
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: var(--font-heading) !important;
}
.dash-chart-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-family: var(--font-heading) !important;
}
.dashboard-site .card-header h6,
.dashboard-site .card-header .h6,
.dashboard-site .warm-card-header h6 {
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.dashboard-site .page-heading {
  font-size: 2rem !important;
  font-weight: 700 !important;
}

.dash-stat-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: #DDD;
}
.dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}
.dash-stat-number {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 4px;
}
.dash-stat-label { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.dash-stat-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.dash-section-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.75rem;
}
.dash-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.4rem;
  background: #FFFFFF;
  border-bottom: 1px solid #F2F2F2;
  font-weight: 700;
  font-size: 1.02rem;
  color: #1A1A1A;
  font-family: var(--font-heading);
}
.dash-section-body { padding: 1.4rem; }

.dash-now-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #F2F2F2;
  background: transparent;
}
.dash-now-item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-now-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F7F7F7;
}
.dash-now-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.dash-now-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.dash-now-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 3px; }
.dash-now-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-now-date { font-size: 11px; color: var(--accent); }

.dash-life-area {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-left: 3px solid #ECECEC;
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-life-area .life-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.life-areas-row { align-items: stretch !important; }
.life-areas-row .col-6,
.life-areas-row .col-md-4 { display: flex; }
.life-areas-row .col-6 > *,
.life-areas-row .col-md-4 > * { flex: 1; width: 100%; }
.dash-life-area:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.dash-life-label { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.dash-life-sub { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.dash-life-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.dash-date-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #F2F2F2;
}
.dash-date-item:last-child { border-bottom: none; }
.dash-date-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F7F7F7;
}

.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
  height: 100%;
  text-align: center;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.dash-action-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  color: inherit;
}
.dash-action-btn-primary,
.dash-action-btn.cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
}
.dash-action-btn-primary .dash-action-label { color: white; }
.dash-action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ── Dashboard Charts ──────────────────────────────────── */
.dash-chart-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.75rem;
}
.dash-chart-title {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.4rem 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: #1A1A1A;
  font-family: var(--font-heading);
  border-bottom: 1px solid #F2F2F2;
  background: #FFFFFF;
}
.dash-chart-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
  margin-top: 2px;
}
.dash-chart-body {
  padding: 1.25rem;
  position: relative;
}
.dash-chart-body-gauge,
.dash-chart-body-donut {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-chart-body-gauge-compact {
  height: 180px;
  padding: 0.5rem;
}
.dash-chart-body-donut { height: 200px; }
.dash-chart-body-planet { height: 280px; }
.dash-chart-body-timeline {
  height: 200px;
  padding: 0 1rem;
}
.dash-chart-body-timeline-tall { height: 240px; }
.dash-chart-score {
  font-size: 28px;
  color: var(--primary);
  font-family: var(--font-mono);
}
.dash-chart-score-lg {
  font-size: 2.2rem;
  color: var(--primary);
  font-family: var(--font-mono);
}
.dash-chart-score-denom { font-size: 14px; }
.dash-chart-score-denom-muted {
  font-size: 13px;
  color: var(--text-muted);
}
.dash-legend-item {
  font-size: 11px;
  font-weight: 500;
}

/* ── Birth Tab ─────────────────────────────────────────── */
.birth-panchang-tile {
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.birth-panchang-icon { font-size: 18px; }
.birth-panchang-label { font-size: 10px; }
.birth-panchang-value {
  color: var(--text-dark);
  font-size: 14px;
  word-break: break-word;
}
.birth-vara-icon {
  width: 48px;
  height: 48px;
  font-size: 18px;
  border: 2px solid;
  flex-shrink: 0;
}
.birth-sign-block { border-left: 4px solid; background: #FFFFFF !important; }
.birth-sign-lagna { border-color: var(--primary); }
.birth-sign-rashi { border-color: #3498DB; }
.birth-sign-sun { border-color: var(--gold); }
.birth-sign-note { font-size: 11px; }
.birth-nak-tile {
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  height: 100%;
}
.birth-nak-label { font-size: 10px; }
.birth-nak-traits {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
}
.birth-num-badge {
  background: var(--primary);
  min-width: 70px;
  flex-shrink: 0;
}
.birth-num-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-mono);
  line-height: 1;
}
.birth-num-caption {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  #tab-summary { padding: 0 !important; }
  #tab-summary .row { --bs-gutter-x: 0.5rem; }
  #tab-summary .dash-identity-card { border-radius: 12px; }
  #tab-summary .dash-section-card  { border-radius: 12px; }
  #tab-summary .dash-chart-card    { border-radius: 12px; }

  .dash-identity-card { padding: 1rem; }
  .dash-section-body { padding: 0.75rem 1rem; }
  .dash-section-header { padding: 0.75rem 1rem; }
  .dash-stat-number { font-size: 18px; }
  .dash-stat-number-text { font-size: 14px !important; }
  .dash-stat-card { padding: 0.75rem 0.5rem; }
  .dash-stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .dash-life-area { padding: 0.65rem; }
  .dash-life-label { font-size: 12px; }
  .dash-life-sub { font-size: 10px; }
  .dash-action-btn {
    padding: 0.85rem 0.5rem !important;
    min-height: 90px;
  }
  .dash-action-btn span:first-child,
  .dash-action-btn .dash-action-icon {
    font-size: 22px !important;
  }
  .dash-action-label { font-size: 10px !important; }
  #tab-summary .dash-actions-grid .col-6:last-child .dash-action-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  }
  .dash-pill-value { font-size: 13px; }
  .dash-chart-body { padding: 0.75rem; }
  .dash-chart-title { padding: 0.75rem 1rem 0.4rem; }
  .dash-chart-body-gauge-compact { height: 160px; }
  .dash-chart-body-planet { height: 300px; }
  .dash-chart-body-timeline-tall { height: 260px; }
}

/* Divisional chart selector (Charts tab) */
.dashboard-site .dchart-selector-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-site .dchart-selector-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid #EDD9C0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-width: 68px;
  font-family: var(--font-body);
  line-height: 1.2;
}

.dashboard-site .dchart-selector-btn .fw-bold {
  font-size: 13px;
  color: var(--text-dark);
  font-family: var(--font-mono);
}

.dashboard-site .dchart-selector-btn .small {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-site .dchart-selector-btn:hover {
  border-color: var(--primary);
  background: #FAFAFA;
}

.dashboard-site .dchart-selector-btn.active {
  border-color: var(--primary);
  background: var(--primary) !important;
}

.dashboard-site .dchart-selector-btn.active .fw-bold,
.dashboard-site .dchart-selector-btn.active .small {
  color: white !important;
}

.dashboard-site .chart-svg-wrapper svg {
  width: 100% !important;
  height: auto !important;
  max-width: 380px;
}

.dashboard-site .dchart-svg.ni-chart-api {
  max-width: 350px;
  border: none;
  border-radius: 0;
}

.dashboard-site .dchart-retro-mark {
  color: var(--primary);
  font-size: 8px;
  margin-left: 2px;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}

@media (max-width: 768px) {
  .dashboard-site .dchart-selector-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #EDD9C0 transparent;
  }

  .dashboard-site .dchart-selector-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .dashboard-site .dchart-selector-scroll::-webkit-scrollbar-thumb {
    background: #EDD9C0;
    border-radius: 4px;
  }

  .dashboard-site .dchart-selector-btn {
    min-width: 58px;
    padding: 0.35rem 0.6rem;
    scroll-snap-align: start;
  }

  .dashboard-site .dchart-selector-btn .fw-bold {
    font-size: 12px;
  }

  .dashboard-site .dchart-selector-btn .small {
    font-size: 8px;
    max-width: 64px;
  }
}

/* Gochar tab */
.dashboard-site .gochar-table thead tr {
  background: #FAFAFA;
}

.dashboard-site .gochar-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid #ECECEC;
  color: #555;
}

.dashboard-site .gochar-summary-badge {
  font-size: 11px;
  font-weight: 500;
}

.dashboard-site .gochar-retro {
  color: var(--primary);
  font-size: 10px;
  margin-left: 2px;
}

.dashboard-site .gochar-affects {
  font-size: 11px;
  max-width: 140px;
}

.dashboard-site .gochar-sade-sati-box {
  border-radius: 10px;
}

.dashboard-site .gochar-result-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: help;
}

.dashboard-site .gochar-tip-icon {
  font-size: 0.72rem;
  opacity: 0.75;
}

.dashboard-site .gochar-result-tip::after {
  content: attr(data-gochar-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(300px, 88vw);
  padding: 0.55rem 0.7rem;
  background: #2C1A0E;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 400;
  border-radius: 8px;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(44, 26, 14, 0.22);
}

.dashboard-site .gochar-result-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2C1A0E;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 31;
}

.dashboard-site .gochar-result-tip:hover::after,
.dashboard-site .gochar-result-tip:hover::before,
.dashboard-site .gochar-result-tip:focus-visible::after,
.dashboard-site .gochar-result-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.dashboard-site .gochar-summary-badge.gochar-result-tip {
  border-bottom: none;
}

.dashboard-site .gochar-table td {
  overflow: visible;
}

.dashboard-site .gochar-table {
  overflow: visible;
}

.dashboard-site .table-responsive:has(.gochar-table) {
  overflow: visible;
}

@media (max-width: 767.98px) {
  .dashboard-site .gochar-result-tip::after {
    left: 0;
    transform: none;
    max-width: min(280px, calc(100vw - 2rem));
  }

  .dashboard-site .gochar-result-tip::before {
    left: 1.25rem;
    transform: none;
  }

  .dashboard-site .gochar-monthly-row {
    flex-wrap: wrap;
  }

  .dashboard-site .gochar-monthly-activity {
    flex: 1 1 100%;
    order: 4;
  }
}

/* Gochar enhanced sections */
.dashboard-site .gochar-overall-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #FFFFFF !important;
  border: 1px solid #ECECEC !important;
  border-left-width: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .gochar-overall-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-site .gochar-overall-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.dashboard-site .gochar-area-card {
  background: #FFFFFF !important;
  border: 1px solid #ECECEC !important;
  border-left-width: 3px !important;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .gochar-area-icon {
  font-size: 1.1rem;
}

.dashboard-site .gochar-area-status {
  font-size: 10px;
}

.dashboard-site .gochar-area-text {
  color: var(--text-dark);
  line-height: 1.6;
}

.dashboard-site .gochar-planet-chip {
  font-size: 10px;
}

.dashboard-site .gochar-monthly-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-site .gochar-monthly-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid;
  border-radius: 8px;
}

.dashboard-site .gochar-monthly-row.is-past {
  opacity: 0.6;
}

.dashboard-site .gochar-monthly-row.is-current {
  box-shadow: 0 0 0 2px rgba(200, 75, 0, 0.15);
}

.dashboard-site .gochar-monthly-dates {
  min-width: 90px;
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
}

.dashboard-site .gochar-monthly-sign {
  min-width: 60px;
  flex-shrink: 0;
}

.dashboard-site .gochar-monthly-label {
  min-width: 110px;
  flex-shrink: 0;
}

.dashboard-site .gochar-monthly-activity {
  flex-grow: 1;
  min-width: 0;
  color: var(--text-dark);
}

.dashboard-site .gochar-monthly-house {
  flex-shrink: 0;
}

.dashboard-site .gochar-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-site .gochar-upcoming-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .gochar-upcoming-planet {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-site .gochar-upcoming-desc {
  color: var(--text-dark);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .dashboard-site .gochar-affects {
    max-width: none;
  }
}

/* Personality tab */
.dashboard-site .personality-hero {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .personality-hero-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold);
}

.dashboard-site .personality-identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-site .personality-identity-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 10px;
}

.dashboard-site .personality-identity-pill--link {
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dashboard-site .personality-identity-pill--link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(200, 75, 0, 0.08);
}

.dashboard-site .personality-pill-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-site .personality-pill-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--an-text-muted);
  font-weight: 600;
}

.dashboard-site .personality-pill-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-site .personality-pill-chevron {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.75rem;
}

.dashboard-site .personality-sections {
  display: grid;
  gap: 0.75rem;
}

.dashboard-site .personality-section-card {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border-left-width: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .personality-section-card--personality { border-left-color: var(--primary); }
.dashboard-site .personality-section-card--career { border-left-color: #2980B9; }
.dashboard-site .personality-section-card--money { border-left-color: #27AE60; }
.dashboard-site .personality-section-card--relationship { border-left-color: #9B59B6; }
.dashboard-site .personality-section-card--dasha { border-left-color: var(--gold); }
.dashboard-site .personality-section-card--default { border-left-color: #C0C0C0; }

.dashboard-site .personality-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.dashboard-site .personality-section-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.dashboard-site .personality-section-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 700;
}

.dashboard-site .personality-section-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.dashboard-site .personality-upsell {
  background: #FFFFFF;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  padding: 1rem;
}

.dashboard-site .personality-upsell-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}

.dashboard-site .personality-upsell-tile span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-site .personality-upsell-tile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  color: var(--primary);
}

@media (min-width: 768px) {
  .dashboard-site .personality-sections {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-site .personality-section-card--personality,
  .dashboard-site .personality-section-card--dasha {
    grid-column: 1 / -1;
  }
}

/* Predictions tab */
.dashboard-site .pred-subtab-bar {
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-site .pred-subtab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dashboard-site .pred-subtab.active {
  background: var(--primary);
  color: #fff;
}

.dashboard-site .pred-generate-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 25px;
  border: none;
}

.dashboard-site .pred-generate-btn:hover {
  background: #a33d00;
  color: #fff;
}

.dashboard-site .pred-empty-icon {
  font-size: 3rem;
  line-height: 1;
}

.dashboard-site .pred-empty-title {
  font-family: var(--font-heading);
}

.dashboard-site .prediction-text {
  line-height: 1.8;
  color: var(--text-dark);
}

.dashboard-site .prediction-text p {
  margin-bottom: 0.75rem;
}

.dashboard-site .pred-section-title {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
  margin-top: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

.dashboard-site .pred-list {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.dashboard-site .pred-list li {
  margin-bottom: 0.35rem;
  font-size: 14px;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .dashboard-site .pred-subtab {
    font-size: 12px !important;
    padding: 0.4rem 0.5rem !important;
  }

  .dashboard-site .pred-section-title {
    font-size: 1rem !important;
  }

  .dashboard-site .prediction-text {
    font-size: 14px;
  }
}

/* Premium clean theme — tokens in brand-tokens.css */

/* Page background — subtle, not cream */
body,
.dashboard-layout,
.dashboard-site,
.kundali-page-content {
  background: var(--page-bg) !important;
}

/* ── ALL CARDS — pure white, neutral border, soft shadow ── */
.card,
.warm-card,
.dash-section-card,
.dash-chart-card,
.dash-identity-card,
.dash-stat-card,
.dash-life-area,
.dchart-panel .card,
.kundali-panel .card,
.dashboard-site .kundali-section .card {
  background:    var(--surface) !important;
  border:        1px solid var(--surface-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow:    var(--shadow-soft) !important;
}

/* Remove ALL gradient/cream backgrounds from headers */
.card-header,
.warm-card-header,
.dash-section-header,
.dash-chart-title,
.dashboard-site .kundali-section .card-header {
  background:    var(--surface) !important;
  border-bottom: 1px solid var(--surface-border-soft) !important;
  padding:       1.1rem 1.4rem !important;
}

.card-body { padding: 1.4rem !important; }

/* ── Tables — neutral grey header row ── */
.table thead th,
.warm-table thead th,
#planetTable thead th,
.dashboard-site .gochar-table thead th {
  background:    #FAFAFA !important;
  color:         #555 !important;
  border-bottom: 1.5px solid var(--surface-border) !important;
}

.table tbody tr,
.warm-table tbody tr {
  border-bottom: 1px solid var(--surface-border-soft) !important;
}

.table tbody tr:hover,
.warm-table tbody tr:hover {
  background: #FAFAFA !important;
}

/* Panchang / info grid boxes — white with neutral border */
.panchang-item-box,
.panchang-item,
.birth-panchang-tile,
.birth-nak-tile,
[style*="background:#FFF3E8"],
[style*="background: #FFF3E8"],
[style*="background:linear-gradient(135deg,#FFF3E8"],
[style*="background:linear-gradient(135deg, #FFF3E8"] {
  background: var(--surface) !important;
  border:     1px solid var(--surface-border) !important;
}

/* ── Yoga list items — white surface, colored left-border accent only ── */
.yoga-list-item {
  background:    var(--surface) !important;
  border:        1px solid var(--surface-border) !important;
  transition:    box-shadow 0.2s;
}

.yoga-list-item[data-active-now="true"] {
  border-left: 3px solid var(--primary) !important;
}

.yoga-list-item[data-caution="true"]:not([data-active-now="true"]) {
  border-left: 3px solid #E74C3C !important;
}

.yoga-list-item[data-jaimini="true"]:not([data-active-now="true"]) {
  border-left: 3px solid var(--gold) !important;
}

.yoga-list-item[data-positive="true"]:not([data-active-now="true"]):not([data-caution="true"]):not([data-jaimini="true"]) {
  border-left: 3px solid #27AE60 !important;
}

.yoga-list-item:hover {
  box-shadow: var(--shadow-hover) !important;
}

/* Yoga score cards — white, colored numbers only */
.yoga-score-row .col-4 > div {
  background:    var(--surface) !important;
  border:        1px solid var(--surface-border) !important;
  box-shadow:    var(--shadow-soft) !important;
}

.active-yoga-card {
  background:  var(--surface) !important;
  border:      1px solid var(--surface-border) !important;
  border-left: 3px solid var(--primary) !important;
}

/* ── Gochar / transit summary boxes ── */
.gochar-area-card,
.gochar-monthly-row {
  background: var(--surface) !important;
}

.monthly-period-row,
.gochar-monthly-row {
  background:    var(--surface) !important;
  border:        1px solid var(--surface-border) !important;
}

/* ── Jaimini Atma Karaka highlight card ── */
.ak-highlight,
.ak-highlight-card,
.ak-card.ak-highlight {
  background:  var(--surface) !important;
  border:      1px solid var(--surface-border) !important;
  border-left: 3px solid var(--primary) !important;
}

/* Dasha — currently running hero card */
.dashboard-site .dasha-current-hero {
  background: var(--surface) !important;
  border: 1px solid var(--surface-border) !important;
  border-left: 3px solid var(--primary) !important;
}
.dasha-maha-row[style*="FFF3E8"],
.dasha-maha-row[style*="FFF8F0"] {
  background:  var(--surface) !important;
  border-left: 4px solid var(--primary) !important;
}

tr.antar-row[style*="FFF8F0"],
tr.antar-row[style*="FFF3E8"] {
  background: #FAFAFA !important;
}

/* ── Predictions empty/loaded state cards ── */
#pred-today-content,
#pred-weekly-content,
#pred-monthly-content {
  background: var(--surface) !important;
}

/* ── Tab bar — cleaner, less colorful ── */
.kundali-tab-bar {
  background:    var(--surface) !important;
  border:        1px solid var(--surface-border) !important;
  box-shadow:    var(--shadow-soft) !important;
  padding:       0.5rem !important;
  border-radius: var(--radius-card) !important;
}

.kundali-tab {
  background:  transparent !important;
  border:      1px solid transparent !important;
  color:       #888 !important;
  border-radius: 10px !important;
}

.kundali-tab:hover {
  background:   #FAFAFA !important;
  color:        var(--primary) !important;
  border-color: var(--surface-border) !important;
}

.kundali-tab.active {
  background:   var(--primary) !important;
  color:        white !important;
  border-color: var(--primary) !important;
}

/* Section-to-section vertical rhythm */
.dash-section-card,
.dash-chart-card,
.card.warm-card,
.kundali-panel > div,
.dashboard-site .kundali-section {
  margin-bottom: var(--spacing-section) !important;
}

/* Row gutters — wider */
.kundali-panel .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.dash-section-body { padding: 1.4rem !important; }
.dash-chart-body   { padding: 1.25rem !important; }

/* Page-level top padding */
.kundali-content,
#tab-summary, #tab-birth, #tab-charts, #tab-planets,
#tab-doshas, #tab-gochar, #tab-personality, #tab-jaimini,
#tab-yogas, #tab-dasha, #tab-numero, #tab-predictions, #tab-panchang {
  padding-top: 0.25rem;
}

/* Typography hierarchy */
.dash-section-header,
.dash-chart-title,
.card-header h6,
.warm-card-header h6 {
  font-weight: 700 !important;
  color:       #1A1A1A !important;
  font-size:   1.02rem !important;
}

.text-muted,
.dash-stat-sub,
.dash-life-sub,
.dash-pill-sub,
.dash-now-desc,
.dashboard-site .personality-pill-label {
  color: #8A8A8A !important;
}

.dashboard-site .prediction-text,
.dashboard-site p,
.dashboard-site td {
  color: #2A2A2A;
}

/* Badges remain colorful — intentional accent carriers */
.badge { font-weight: 600 !important; }

.status-chip-green  { background: var(--an-gold-soft); color: var(--an-gold); }
.status-chip-orange { background: var(--an-saffron-soft); color: var(--an-saffron); }
.status-chip-red    { background: var(--an-black-06); color: var(--an-black); }
.status-chip-primary { background: var(--an-saffron-soft); color: var(--an-saffron); }

/* Charts — clean surrounding card only */
.dash-chart-card { background: var(--surface) !important; }

/* Quick action CTA — keep colored */
.dash-action-btn.cta-primary,
.dash-action-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  border:     none !important;
}

/* Sade sati / dosha info boxes with inline tint */
.kundali-panel div[style*="FFF3E8"],
.kundali-panel div[style*="F0FFF4"] {
  background: var(--surface) !important;
  border:     1px solid var(--surface-border) !important;
}

/* Personality section cards */
.dashboard-site .personality-section-card {
  background: var(--surface) !important;
  border:     1px solid var(--surface-border) !important;
}

/* Numerology */
.dashboard-site .numero-card,
.dashboard-site .numero-remedy-tile {
  background: var(--surface) !important;
  border:     1px solid var(--surface-border) !important;
}

/* Divisional chart selector */
.dashboard-site .dchart-selector-btn {
  border-color: var(--surface-border) !important;
  background:   var(--surface) !important;
}

.dashboard-site .dchart-selector-btn.active {
  border-color: var(--primary) !important;
  background:   var(--primary) !important;
}

/* Mobile — slightly tighter but still breathable */
@media (max-width: 768px) {
  :root { --spacing-section: 1.25rem; }

  .card-body { padding: 1.1rem !important; }
  .dash-section-body { padding: 1.1rem !important; }
}

/* ── Career Roadmap Overview tab ── */
.roadmap-overview-intro .text-primary {
  font-family: var(--font-heading);
}

.roadmap-overview-card .card-header {
  padding: 1rem 1.25rem !important;
}

.roadmap-overview-card .card-body {
  padding: 1.15rem 1.25rem 1.25rem !important;
}

.roadmap-overview-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-heading);
}

/* Score rings (donut) */
.roadmap-score-rings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 992px) {
  .roadmap-score-rings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .roadmap-score-rings {
    grid-template-columns: 1fr;
  }
}

/* ── Unified score ring (roadmap + compatibility) ── */
.score-ring {
  --score-ring-size: 118px;
  --score-ring-thickness: 12px;
  --score-ring-track: rgba(28, 35, 51, 0.08);
  --score-ring-color: var(--color-score-amber);
  width: var(--score-ring-size);
  height: var(--score-ring-size);
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: conic-gradient(var(--score-ring-color) calc(var(--pct, 0) * 1%), var(--score-ring-track) 0);
}

.score-ring--lg {
  --score-ring-size: 140px;
}

.score-ring--sm {
  --score-ring-size: 118px;
}

.score-ring--green { --score-ring-color: var(--color-score-green); }
.score-ring--orange { --score-ring-color: var(--color-score-amber); }
.score-ring--red { --score-ring-color: var(--color-score-red); }

.score-ring::before {
  content: '';
  position: absolute;
  inset: var(--score-ring-thickness);
  border-radius: 999px;
  background: var(--color-card, var(--surface));
  box-shadow: inset 0 1px 2px rgba(28, 35, 51, 0.05);
}

.score-ring__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.35rem;
  line-height: 1;
}

.score-ring__value {
  font-size: calc(var(--score-ring-size) * 0.131);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink, var(--text-dark));
}

.score-ring--lg .score-ring__value {
  font-size: calc(var(--score-ring-size) * 0.161);
}

.score-ring__sublabel {
  font-size: calc(var(--score-ring-size) * 0.054);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted, var(--text-muted));
  margin-top: 0.12rem;
  opacity: 0.9;
}

.score-ring-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .score-ring-area-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.score-ring-area-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.score-ring-area-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.score-ring-area-label {
  font-size: 0.875rem;
  color: var(--color-ink, var(--text-dark));
}

.score-ring-area-desc {
  line-height: 1.35;
  max-width: 11rem;
  margin-inline: auto;
}

.roadmap-score-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 0.25rem 0.35rem;
}

.roadmap-score-ring-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.roadmap-score-ring-tier {
  line-height: 1.2;
}

.roadmap-score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--surface-border-soft);
}

.roadmap-score-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.roadmap-score-legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.roadmap-score-legend-swatch.score-green {
  background: var(--color-score-green);
}

.roadmap-score-legend-swatch.score-orange {
  background: var(--color-score-amber);
}

.roadmap-score-legend-swatch.score-red {
  background: var(--color-score-red);
}

.roadmap-timeline-wrap {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.roadmap-timeline-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 5.5rem;
}

.roadmap-timeline-track {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.5rem;
  min-width: 520px;
}

.roadmap-timeline-track-label {
  flex: 0 0 5.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 0.5rem;
  display: flex;
  align-items: center;
}

.roadmap-timeline-track-body {
  position: relative;
  flex: 1;
  min-height: 1.75rem;
  background: #f8f6f3;
  border-radius: 0.35rem;
  border: 1px solid var(--surface-border);
}

.roadmap-timeline-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 0.25rem;
  opacity: 0.92;
  min-width: 2px;
  overflow: hidden;
}

.roadmap-timeline-maha .roadmap-timeline-bar-text {
  font-size: 0.65rem;
  color: #fff;
  padding: 0 0.25rem;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.roadmap-timeline-antar {
  opacity: 0.75;
}

.roadmap-timeline-sign-track .roadmap-timeline-track-body {
  min-height: 1.35rem;
  background: transparent;
  border: none;
}

/* Planet palette — matches MAHA_COLORS / roadmap timeline bars */
.roadmap-sign-marker--Jupiter {
  --roadmap-planet-color: #D4A017;
}

.roadmap-sign-marker--Saturn {
  --roadmap-planet-color: #5C6BC0;
}

.roadmap-sign-marker--Rahu {
  --roadmap-planet-color: #7B5EA7;
}

.roadmap-sign-marker--Ketu {
  --roadmap-planet-color: #8D6E63;
}

.roadmap-sign-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--roadmap-planet-color, var(--primary));
  cursor: help;
  z-index: 1;
}

.roadmap-sign-marker::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--roadmap-planet-color, var(--primary));
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(44, 26, 14, 0.18);
}

.roadmap-sign-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-border-soft);
}

.roadmap-sign-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.roadmap-sign-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--roadmap-planet-color, var(--primary));
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(44, 26, 14, 0.12);
  flex-shrink: 0;
}

.roadmap-score-factors {
  margin-top: 0.25rem;
}

.roadmap-score-factors .roadmap-factors-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
}

.roadmap-score-factors .roadmap-factors-summary::-webkit-details-marker {
  display: none;
}

.roadmap-score-factors .roadmap-factors-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.roadmap-score-factors[open] .roadmap-factors-summary::before {
  transform: rotate(90deg);
}

/* ── Per-year roadmap panels (Year 1–5 tabs) ── */
.roadmap-year-panel {
  border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  padding-top: 0.25rem;
}

.roadmap-year-header .card-body {
  padding: 1rem 1.15rem;
}

.roadmap-year-panel-ring {
  flex-shrink: 0;
}

.roadmap-year-timeline .roadmap-timeline-track-body {
  min-height: 1.75rem;
}

.roadmap-monthly-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.roadmap-monthly-grid {
  display: table;
  width: 100%;
  min-width: 32rem;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.72rem;
}

.roadmap-monthly-row {
  display: table-row;
}

.roadmap-monthly-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 0.35rem 0.25rem;
}

.roadmap-monthly-label {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 0.5rem;
  width: 4.5rem;
}

.roadmap-monthly-colhead {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.roadmap-monthly-value {
  border-radius: 4px;
  font-weight: 600;
  min-width: 2rem;
}

.roadmap-monthly-value.tone-favorable {
  background: rgba(25, 135, 84, 0.18);
  color: var(--success, #198754);
}

.roadmap-monthly-value.tone-neutral {
  background: rgba(13, 110, 253, 0.12);
  color: var(--primary, #0d6efd);
}

.roadmap-monthly-value.tone-mild {
  background: rgba(108, 117, 125, 0.12);
  color: var(--text-muted, #6c757d);
}

.roadmap-monthly-value.tone-challenging {
  background: rgba(220, 53, 69, 0.14);
  color: var(--danger, #dc3545);
}

.roadmap-monthly-value.tone-empty {
  background: transparent;
  color: var(--text-muted);
}

.roadmap-monthly-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.roadmap-monthly-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tone-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  display: inline-block;
}

.tone-swatch.tone-favorable { background: rgba(25, 135, 84, 0.35); }
.tone-swatch.tone-neutral { background: rgba(13, 110, 253, 0.25); }
.tone-swatch.tone-mild { background: rgba(108, 117, 125, 0.25); }
.tone-swatch.tone-challenging { background: rgba(220, 53, 69, 0.3); }

.roadmap-yoga-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roadmap-yoga-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
  background: var(--surface-muted, #f8f9fa);
}

.roadmap-yoga-chip.is-active {
  border-color: rgba(25, 135, 84, 0.45);
  background: rgba(25, 135, 84, 0.1);
  color: var(--success, #198754);
}

.roadmap-yoga-chip.is-natal-only {
  border-color: rgba(108, 117, 125, 0.35);
  color: var(--text-muted, #6c757d);
}

.roadmap-yoga-chip-status {
  font-size: 0.85em;
}

@media (max-width: 576px) {
  .roadmap-year-header .card-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* AI-generated prose (reports, compatibility, chat) */
.ai-prose {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-body, #333);
  word-wrap: break-word;
}

.ai-prose p {
  margin-bottom: 0.65rem;
}

.ai-prose p:last-child {
  margin-bottom: 0;
}

.ai-prose h1,
.ai-prose h2,
.ai-prose h3,
.ai-prose h4,
.ai-prose h5,
.ai-prose h6 {
  color: var(--an-saffron);
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  line-height: 1.35;
}

.ai-prose h1 { font-size: 1.25rem; }
.ai-prose h2 { font-size: 1.15rem; }
.ai-prose h3,
.ai-prose h4,
.ai-prose h5,
.ai-prose h6 { font-size: 1rem; }

.ai-prose ul,
.ai-prose ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding-left: 0.5rem;
}

.ai-prose li {
  margin-bottom: 0.35rem;
}

.ai-prose strong {
  font-weight: 600;
}

.ai-prose hr {
  margin: 0.75rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-prose table {
  width: 100%;
  margin: 0.75rem 0;
  font-size: 0.8125rem;
}

.chat-bubble-text.ai-prose p:last-child {
  margin-bottom: 0;
}
