/* NakshatraAI — styles.css
   Design: dark, glassy, mobile-first with NakshatraAI brand identity */

:root {
  /* Aetheric Intelligence — Google Stitch / Rustic Vedic palette */
  --bg:           #111417;
  --surface:      #16191d;
  --sidebar:      #111417;
  --surface-dim:  #111417;
  --surface-container: #1d2024;
  --surface-container-low: #14171a;
  --surface-container-high: #26292e;
  --charcoal:     #0b0e12;
  --card:         rgba(29, 32, 36, 0.65);
  --card2:        rgba(29, 32, 36, 0.85);
  --gold:         #ffb954;
  --gold-bright:  #e09c34;
  --gold-dim:     rgba(255, 185, 84, 0.15);
  --gold-line:    rgba(158, 142, 125, 0.35);
  --purple:       #e07a5f;
  --purple-dim:   rgba(224, 122, 95, 0.15);
  --purple-glow:  rgba(224, 122, 95, 0.25);
  --blue:         #d5c4b0;
  --blue-bright:  #e07a5f;
  --green:        #78a385;
  --red:          #e5989b;
  --yellow:       #d4a020;
  --text:         #e1e2e8;
  --fg:           #e1e2e8;
  --muted:        #d5c4b0;
  --border:       rgba(158, 142, 125, 0.25);
  --void-gray:    #3c3f44;
  --hover:        rgba(158, 142, 125, 0.15);
  --hover-strong: rgba(158, 142, 125, 0.3);
  --shadow:       rgba(0, 0, 0, 0.6);
  --overlay:      rgba(17, 20, 23, 0.8);
  --chip-bg:      rgba(29, 32, 36, 0.7);
  --form-soft:    rgba(29, 32, 36, 0.5);
  --scroll-thumb: rgba(255, 185, 84, 0.3);
  --accent:       #ffb954;
  --accent-text:  #452b00;
  --secondary:    #e07a5f;
  --nebula-glow:  rgba(224, 122, 95, 0.12);
  --sidebar-w:    clamp(13rem, 16vw, 17.5rem);
  --text-chat:    clamp(0.875rem, 0.8rem + 0.45vw, 1.0625rem);
  --text-ui:      clamp(0.78rem, 0.73rem + 0.3vw, 0.95rem);
  --pad-fluid:    clamp(10px, 1.2vw, 18px);
  --r:            24px;
  --r-sm:         16px;
  --t:            200ms ease;
  --app-height:   100dvh;
  --font-serif:   'Libre Caslon Text', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background-image: 
    linear-gradient(rgba(17, 20, 23, 0.90), rgba(17, 20, 23, 0.97)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuDW23upTE5U929SAZn-3-TszQHX5Za7y5wopTLrCC_cAV0PGiS9pnnY_YjHPVPqbQswFzI9ssojvLJZHyD89r0NNC2ZgLKTQUrpBU5lcij164c836uoC5Grh_YbrEhwQh_873b0GJ1yXmOM_v0F6mKF9z0InLDGhwiW-aj3jEZXM2qv0tkADuLN_4P7qdpUxLyftyqdlLxAmSpazkVz7MVEpP2AoxY3EjbzzG6YBF5FJHB4b9qfQE_7fKi7TFrwnwGWF-vSlW_ZGVQ");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  min-height: var(--app-height);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.nebula-border {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--surface-container), var(--surface-container)),
                    linear-gradient(135deg, var(--void-gray) 0%, var(--purple) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ── SCREENS ─────────────────────────────────────────── */
.screen { display: flex; min-height: var(--app-height); }

/* ── AUTH ────────────────────────────────────────────── */
#screen-auth {
  position: relative;
  isolation: isolate;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(12, 20, 34, 0.84) 0%, rgba(20, 30, 48, 0.76) 46%, rgba(246, 248, 252, 0.72) 100%),
    url('/static/vedic-palm-leaf.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 20, 34, 0.18), rgba(12, 20, 34, 0.44)),
    rgba(12, 20, 34, 0.16);
}

.auth-shell {
  width: min(1120px, calc(100vw - 40px));
  min-height: var(--app-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 48px 0;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 660px;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.auth-brand-hero {
  margin-bottom: 34px;
  color: #FFFFFF;
}

.auth-brand-hero .logo-star {
  color: #F0C46E;
}

.auth-kicker,
.auth-panel-kicker {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-hero h1 {
  max-width: 620px;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-copy {
  max-width: 610px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 28px;
}

.trust-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none;
}

.auth-validation {
  width: min(100%, 620px);
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: none;
}

.auth-validation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.auth-validation-head span {
  color: #F0C46E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-validation-head strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 800;
}

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

.auth-validation-stats div {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-validation-stats strong {
  display: block;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.auth-validation-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.auth-validation p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.auth-celebrity-preview {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 196, 110, 0.34);
  border-radius: 8px;
  background: rgba(240, 196, 110, 0.10);
  color: rgba(255, 255, 255, 0.86);
  text-shadow: none;
}

.auth-celebrity-preview span {
  color: #F0C46E;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-celebrity-preview strong {
  display: block;
  margin-top: 5px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 850;
}

.auth-celebrity-preview p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.auth-celebrity-mini-grid {
  display: grid;
  gap: 6px;
}

.auth-celebrity-mini-grid span {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(240, 196, 110, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.auth-assurance {
  max-width: 580px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.auth-attribution {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.4;
  text-shadow: none;
}

.auth-attribution a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-panel {
  width: 100%;
  max-width: 390px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(26, 31, 46, 0.85);
  box-shadow: 0 22px 60px rgba(5, 10, 24, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--gold);
}
.logo-star { color: var(--gold); font-size: 22px; line-height: 1; }
.sidebar-brand .logo-star { color: var(--gold-bright); }
.logo-name { letter-spacing: -0.3px; }

.auth-panel h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.2;
  color: #FFFFFF;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), border-color var(--t);
  margin-bottom: 4px;
}
.btn-oauth:hover { background: var(--card2); border-color: var(--hover-strong); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 5px; }
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field label,
.step label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
}

input, textarea, select {
  width: 100%;
  background: var(--surface-container);
  border: 1px solid var(--void-gray);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255, 214, 122, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 214, 122, 0.08);
}
input.invalid, textarea.invalid, select.invalid {
  border-color: var(--red);
  background: rgba(180, 35, 52, 0.05);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  min-height: 15px;
}
.field-hint.ok { color: var(--green); }
.field-hint.err { color: var(--red); }
.field-hint.loading { color: var(--gold); }

.time-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(46px, 1fr)) 76px;
  gap: 8px;
}
.time-row input,
.time-row select {
  min-width: 0;
  text-align: center;
}

.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.help-trigger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--muted);
  font: 700 12px/1 Inter, system-ui, sans-serif;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.help-trigger:hover,
.help-trigger:focus {
  border-color: var(--gold-line);
  color: var(--gold);
}
.help-popover {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 70;
  width: min(280px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 12px 28px var(--shadow);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}
.field-help:hover .help-popover,
.field-help:focus-within .help-popover {
  display: block;
}

.location-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
}
.location-picker-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.location-picker-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.location-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.location-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
}
.location-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--t), border-color var(--t);
}
.location-choice:hover,
.location-choice:focus {
  background: var(--card2);
  border-color: var(--gold-line);
}
.location-choice-main {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.location-choice-coords {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.location-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.location-map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--form-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.location-map-link:hover,
.location-map-link:focus {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}
.location-map-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 7px;
}

.onboarding-location-actions {
  margin-top: 8px;
}
.location-map-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.location-search-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.location-map-pick:hover,
.location-map-pick:focus,
.location-search-again:hover,
.location-search-again:focus {
  background: rgba(168, 117, 16, 0.18);
}

.palm-capture-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
}

.public-news-review {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.public-news-query {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.public-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.public-news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.public-news-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.public-news-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.public-news-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.public-news-meta,
.public-news-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.public-news-body a {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.public-news-body a:hover,
.public-news-body a:focus {
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-bright);
  color: var(--accent-text);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(230, 185, 77, 0.15);
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230, 185, 77, 0.25); }
.btn-primary:active { transform: scale(0.96); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--gold); background: rgba(255, 214, 122, 0.08); }

.w-full { width: 100%; }

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.btn-link:hover { opacity: 0.8; }

.auth-footer {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-legal {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  margin: -2px 0 2px;
}
.legal-inline {
  display: inline;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-eula-check {
  display: grid;
  grid-template-columns: 18px auto auto 1fr;
  align-items: center;
  column-gap: 6px;
  row-gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.auth-eula-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}
.auth-eula-check label {
  cursor: pointer;
}
.err-text { color: var(--red); font-size: 13px; min-height: 16px; }

/* ── ONBOARDING ──────────────────────────────────────── */
.onboard-panel {
  margin: auto;
  width: 100%;
  max-width: 560px;
  padding: 60px 28px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ob-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.ob-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 33%;
}

.step {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.25s ease;
}
.step.active { display: flex; }

.step h2 {
  font-family: 'Libre Caslon Text', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 4px;
}
.step h2 em { color: var(--gold); font-style: normal; }

.ob-eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 0.5px; margin-bottom: 4px; }
.ob-sub { color: var(--muted); font-size: 14px; }
.ob-sub.compact { margin-top: 2px; font-size: 13px; }

.field-pair { display: flex; gap: 12px; }
.field-pair .field { flex: 1; }
.step textarea,
.source-form textarea {
  min-height: 88px;
  resize: vertical;
}

.ob-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}
.ob-nav.two { justify-content: space-between; }

/* Onboarding trust banner */
.ob-trust-banner {
  margin: 16px 0 12px;
  padding: 14px 16px;
  background: var(--surface-container-low);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ob-trust-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-surface-variant);
}
.ob-trust-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ob-trust-row strong {
  color: var(--on-surface);
}

/* Focus chips */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.focus-chip {
  padding: 14px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
  text-align: center;
}
.focus-chip:hover {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}
.focus-chip.selected {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── APP LAYOUT ──────────────────────────────────────── */
.app-layout {
  display: flex;
  height: var(--app-height);
  overflow: hidden;
}

/* ─ Sidebar ─ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: var(--app-height);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--gold);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }

.mobile-chat-header,
.mobile-synthesis-bar,
.mobile-drawer-backdrop {
  display: none;
}

/* ─ Nav ─ */
.sidebar-nav {
  padding: 8px 10px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--void-gray) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--void-gray); border-radius: 10px; }

.nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 14px 8px 6px;
}

.nav-row {
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
  transition: background var(--t);
  margin-bottom: 2px;
}
.nav-row:hover { background: var(--nebula-glow); }
.nav-row:hover .nav-refresh { opacity: 1; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-btn.active {
  color: var(--gold);
  background: var(--nebula-glow);
}

.nav-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-btn.active .nav-icon { color: var(--gold); }

.premium-locked {
  position: relative;
}

.nav-btn.premium-locked::after,
.celebrity-market-btn.premium-locked::after,
.mobile-synthesis-bar button.premium-locked::after {
  content: 'Premium';
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-refresh.premium-locked::after {
  position: absolute;
  top: 1px;
  right: 1px;
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-refresh {
  opacity: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  border-radius: 6px;
  margin-right: 4px;
  transition: opacity var(--t), color var(--t);
  flex-shrink: 0;
}
.nav-refresh:hover { color: var(--text); }

.history-label { margin-top: 10px; }

.chat-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px;
}

.chat-history-item,
.chat-history-empty {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}

.chat-history-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.chat-history-item:hover,
.chat-history-item:focus,
.chat-history-item.active {
  background: var(--hover);
}

.chat-history-item.active .chat-history-title {
  color: var(--gold);
}

.chat-history-title {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-meta {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* "Past history" expand/collapse toggle under the recent-5 list */
.chat-history-toggle {
  width: 100%;
  margin-top: 3px;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.chat-history-toggle:hover,
.chat-history-toggle:focus-visible {
  background: var(--hover);
  color: var(--gold);
}

.chat-history-empty {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
}

/* ─ Celebrity tracker (sidebar) ─ */
.celebrity-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px;
}

.celebrity-market-btn {
  width: calc(100% - 8px);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 4px 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(168, 117, 16, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.celebrity-market-btn:hover { background: var(--hover); border-color: var(--gold-line); }

.celebrity-market-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.celebrity-item,
.celebrity-history-item,
.celebrity-empty {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 7px 10px;
  transition: background var(--t), color var(--t);
}

.celebrity-item { display: flex; align-items: center; flex-direction: row; gap: 8px; }
.celebrity-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.celebrity-history-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.celebrity-history-label { margin-top: 8px; }
.celebrity-history-item { display: flex; flex-direction: column; gap: 1px; }
.celebrity-item:hover,
.celebrity-item:focus,
.celebrity-item.active,
.celebrity-history-item:hover,
.celebrity-history-item:focus,
.celebrity-history-item.active { background: var(--hover); }
.celebrity-item.active .celebrity-name { color: var(--gold); }
.celebrity-history-item.active .celebrity-name { color: var(--gold); }

.celebrity-name { font-size: 13px; font-weight: 560; line-height: 1.25; }
.celebrity-meta { font-size: 11px; color: var(--muted); line-height: 1.2; }

.celebrity-photo {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 800;
}

.celebrity-photo.tiny { width: 32px; height: 32px; font-size: 11px; }
.celebrity-photo.small { width: 40px; height: 40px; font-size: 12px; }
.celebrity-photo.medium { width: 52px; height: 52px; font-size: 14px; }
.celebrity-photo.large { width: 82px; height: 82px; font-size: 20px; }

.celebrity-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebrity-photo img + span { opacity: 0; }
.celebrity-photo.photo-fallback span { opacity: 1; }

.celebrity-empty {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  cursor: default;
}

/* ─ Celebrity detail panel (in messages-wrap) ─ */
.celeb-panel {
  max-width: 880px;
  margin: 12px auto 32px;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text);
}

.celeb-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.celeb-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.celeb-header h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.celeb-tagline { color: var(--muted); font-size: 13px; line-height: 1.4; }
.celeb-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }

.celeb-pill {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
  text-transform: capitalize;
}

.celeb-memoriam-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.celeb-legacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.celeb-market-card[data-tone="neutral"] { border-color: var(--border); }
.celeb-market-wellness[data-tone="neutral"] { border-color: var(--border); }
.celeb-card-kicker[data-tone="neutral"] { color: var(--muted); }

.celeb-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--card-bg, rgba(255,255,255,.02));
}

.celeb-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.celeb-card .celeb-card-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }

.celeb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.celeb-metric {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--hover);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.celeb-metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.celeb-metric-value { font-size: 18px; font-weight: 600; color: var(--text); }
.celeb-metric-note { font-size: 11px; color: var(--muted); line-height: 1.35; }

.celeb-metric.unavailable .celeb-metric-value { color: var(--muted); font-size: 13px; font-weight: 500; }

.celeb-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(216,160,82,.08), rgba(216,160,82,.02));
}

.celeb-score-pct {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.celeb-score-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.celeb-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.celeb-change.compact {
  width: fit-content;
  margin: -1px 0 6px 20px;
}
.celeb-change[data-tone="up"] {
  color: var(--green);
  border-color: rgba(46, 111, 78, 0.28);
  background: rgba(46, 111, 78, 0.08);
}
.celeb-change[data-tone="down"] {
  color: var(--red);
  border-color: rgba(180, 35, 52, 0.24);
  background: rgba(180, 35, 52, 0.07);
}

.celeb-score-body { display: flex; flex-direction: column; gap: 4px; }
.celeb-score-verdict { font-size: 14px; font-weight: 500; line-height: 1.4; }
.celeb-score-detail { font-size: 12px; color: var(--muted); }

.celeb-info {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}
.celeb-info summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}
.celeb-info summary::-webkit-details-marker { display: none; }
.celeb-info[open] summary {
  border-color: var(--gold-line);
  color: var(--gold);
}
.celeb-info p {
  position: absolute;
  right: 0;
  top: 22px;
  z-index: 20;
  width: min(280px, 72vw);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 32px var(--shadow);
  color: var(--text);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
  white-space: normal;
  text-transform: none;
}

.celeb-wellness {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.celeb-wellness[data-tone="green"] { border-color: rgba(46, 111, 78, 0.28); }
.celeb-wellness[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.30); }
.celeb-wellness[data-tone="red"] { border-color: rgba(180, 35, 52, 0.28); }

.celeb-wellness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.celeb-wellness-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.celeb-wellness-summary,
.celeb-wellness-guidance,
.celeb-wellness-watch,
.celeb-wellness-disclaimer {
  font-size: 13px;
  line-height: 1.55;
}

.celeb-wellness-summary,
.celeb-wellness-watch,
.celeb-wellness-disclaimer {
  color: var(--muted);
}

.celeb-wellness-guidance {
  color: var(--text);
  font-weight: 520;
}

.celeb-wellness-basis {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.celeb-wellness-basis span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.celeb-wellness-basis .pulse-dot {
  margin-top: 4px;
}

.celeb-wellness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.celeb-wellness-dim {
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
}

.celeb-wellness-dim[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.celeb-wellness-dim[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.28); }
.celeb-wellness-dim[data-tone="red"] { border-color: rgba(180, 35, 52, 0.24); }

.celeb-wellness-dim-top {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.celeb-wellness-dim-top strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celeb-wellness-dim-top em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.celeb-wellness-dim p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.celeb-wellness-disclaimer {
  font-size: 11px;
}

.celeb-market-panel {
  align-self: center;
  width: min(980px, 100%);
  max-width: 980px;
  margin: 12px auto 32px;
}

.celeb-add-form {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.celeb-add-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.celeb-form-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.celeb-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.celeb-add-form input {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
}

.celeb-add-form button {
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(168, 117, 16, 0.08);
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.celeb-add-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.celeb-conditions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.celeb-conditions input {
  width: 16px;
  min-height: 16px;
  margin-top: 1px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.celeb-market-buckets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.celeb-market-bucket {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.celeb-market-bucket[data-tone="green"] { border-color: rgba(46, 111, 78, 0.24); }
.celeb-market-bucket[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.25); }
.celeb-market-bucket[data-tone="red"] { border-color: rgba(180, 35, 52, 0.22); }

.celeb-bucket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.celeb-bucket-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--hover);
  color: var(--gold);
}

.celeb-bucket-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.celeb-bucket-icon[data-kind="good"] {
  border-color: rgba(46, 111, 78, 0.25);
  color: var(--green);
}

.celeb-bucket-icon[data-kind="attention"] {
  border-color: rgba(180, 35, 52, 0.24);
  color: var(--gold);
}

.celeb-bucket-icon[data-kind="notWell"] {
  border-color: rgba(180, 35, 52, 0.24);
  color: var(--red);
}

.celeb-bucket-icon[data-kind="talent"] {
  border-color: rgba(184, 124, 12, 0.28);
  color: var(--gold);
}

.celeb-bucket-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}
.celeb-bucket-range {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

.celeb-bucket-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.celeb-bucket-count {
  min-width: 32px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-align: center;
}

.celeb-search-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--t), background var(--t);
}

.celeb-search-input::placeholder { color: var(--muted); }

.celeb-search-input:focus {
  outline: none;
  border-color: var(--gold-line);
  background: var(--bg);
}

.celeb-search-noresults {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.celeb-market-filterbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.celeb-filter-btn {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.celeb-filter-btn:hover,
.celeb-filter-btn.active {
  border-color: var(--gold-line);
  background: var(--hover);
}

.celeb-filter-btn .celeb-bucket-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.celeb-filter-btn span:not(.celeb-bucket-icon) {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celeb-filter-btn em {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.1;
}

.celeb-filter-btn strong {
  grid-row: 1 / span 2;
  grid-column: 3;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.celeb-filter-btn[data-tone="green"].active { border-color: rgba(46, 111, 78, 0.42); }
.celeb-filter-btn[data-tone="yellow"].active { border-color: rgba(184, 124, 12, 0.45); }
.celeb-filter-btn[data-tone="red"].active { border-color: rgba(180, 35, 52, 0.42); }

.celeb-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.celeb-market-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.celeb-market-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.celeb-market-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.22); }
.celeb-market-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.24); }
.celeb-market-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.22); }

.celeb-market-card:hover,
.celeb-market-card:focus {
  background: var(--hover);
  transform: translateY(-1px);
  outline: none;
}

.celeb-market-card.favorite {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.celeb-market-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.celeb-market-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Collapsible "+ Add a new celebrity" CTA (replaces the always-open form). */
.celeb-add-details { margin: 14px 0; }
.celeb-add-details > summary.celeb-add-cta {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px dashed var(--gold-line, rgba(168, 117, 16, .5));
  border-radius: 999px;
  color: var(--gold);
  font-weight: 700;
  background: rgba(168, 117, 16, .06);
  transition: background var(--duration-fast, 150ms) ease, border-color var(--duration-fast, 150ms) ease;
}
.celeb-add-details > summary.celeb-add-cta::-webkit-details-marker { display: none; }
.celeb-add-details > summary.celeb-add-cta:hover { background: rgba(168, 117, 16, .12); }
.celeb-add-details[open] > summary.celeb-add-cta { border-style: solid; margin-bottom: 12px; }

.celeb-mine-bucket { border-color: var(--gold-line, rgba(168, 117, 16, .4)); }

/* Post-add photo-confirm modal. */
.celeb-confirm-box { max-width: 380px; }
.celeb-confirm-photo {
  margin: 14px auto;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0f15;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.celeb-confirm-photo img { width: 100%; height: 100%; object-fit: cover; }
.celeb-confirm-noimg { color: var(--muted, rgba(232, 232, 234, .6)); font-size: 13px; text-align: center; padding: 0 10px; }
.celeb-confirm-photo-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.celeb-confirm-cta { display: flex; flex-direction: column; gap: 10px; }
.celeb-confirm-primary {
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: var(--gold);
  color: #1a1206;
  font-weight: 700;
  cursor: pointer;
}
.celeb-confirm-primary:hover { filter: brightness(1.05); }
.celeb-link-btn {
  background: none;
  border: none;
  color: var(--muted, rgba(232, 232, 234, .7));
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
}
.celeb-link-btn:hover { color: var(--gold); }

.celeb-headlines { display: flex; flex-direction: column; gap: 6px; }
.celeb-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.celeb-headline:hover { background: var(--hover); border-color: var(--border); }
.celeb-headline-title { font-size: 13px; line-height: 1.35; }
.celeb-headline-meta { font-size: 11px; color: var(--muted); }

.celeb-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.celeb-evidence-note,
.celeb-evidence-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
}

.celeb-evidence-note {
  display: grid;
  gap: 5px;
  padding: 11px;
}

.celeb-evidence-note span,
.celeb-evidence-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.celeb-evidence-note strong,
.celeb-evidence-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.celeb-evidence-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.celeb-evidence-list {
  display: grid;
  gap: 7px;
}

.celeb-evidence-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 8px;
  padding: 10px;
  text-decoration: none;
}

.celeb-evidence-item > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.celeb-refresh-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.celeb-refresh-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.celeb-refresh-btn:hover { color: var(--text); background: var(--hover); }

/* ─ Profile detail panel (in messages-wrap) ─ */
.msg-ai.user-profile-panel {
  align-self: center;
  width: min(880px, 100%);
  max-width: 880px;
  margin: 12px auto 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  line-height: 1.5;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.user-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 760;
  flex: 0 0 auto;
}

.user-profile-header h2 {
  margin: 2px 0 4px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
}

.user-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.user-profile-meta span {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
}

.user-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-profile-actions .btn-ghost,
.profile-section-action {
  min-height: 36px;
  justify-content: center;
}

.profile-section-action {
  padding: 6px 12px;
}

.profile-read-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--card);
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-section-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-section-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.profile-metric {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover);
}

.profile-metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-metric-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.profile-metric-note,
.profile-source-detail,
.profile-source-time,
.profile-alert {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.profile-alert {
  margin-top: 10px;
  color: var(--red);
}

.birth-chart-panel {
  margin-top: 14px;
  border: 1px solid rgba(184, 124, 12, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(184, 124, 12, 0.07), rgba(46, 111, 78, 0.04));
}

.birth-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.birth-chart-head strong,
.birth-chart-empty strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.birth-chart-head span,
.birth-chart-empty span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.birth-chart-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.birth-chart-key span {
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.birth-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(92px, auto));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(184, 124, 12, 0.34);
  border-radius: 8px;
  background: rgba(184, 124, 12, 0.34);
}

.birth-chart-cell,
.birth-chart-center {
  min-width: 0;
  background: var(--card);
}

.birth-chart-cell {
  min-height: 92px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.birth-chart-cell.is-lagna {
  background: rgba(46, 111, 78, 0.08);
  box-shadow: inset 0 0 0 2px rgba(46, 111, 78, 0.28);
}

.birth-chart-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.birth-chart-sign {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birth-chart-house {
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  flex: 0 0 auto;
}

.birth-chart-planets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: flex-start;
}

.birth-chart-cell-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.birth-chart-ruler,
.birth-chart-from-moon {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.birth-chart-ruler { color: var(--gold, #b87c0c); }

.birth-chart-planet {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--hover);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}
.birth-chart-planet.bc-b { border-color: rgba(46,111,78,.35); }
.birth-chart-planet.bc-m { border-color: rgba(180,35,52,.3); }
.birth-chart-planet.bc-asc { border-color: var(--gold, #b87c0c); background: rgba(184,124,12,.1); }
.birth-chart-planet.bc-exalt { background: rgba(46,111,78,.1); }
.birth-chart-planet.bc-debil { background: rgba(180,35,52,.08); }
.birth-chart-planet.bc-own { background: rgba(184,124,12,.08); }

.birth-chart-planet strong {
  font-size: 11px;
  font-weight: 820;
}
.birth-chart-planet.bc-b strong { color: var(--green, #2e6f4e); }
.birth-chart-planet.bc-m strong { color: var(--red, #b42334); }
.birth-chart-planet.bc-asc strong { color: var(--gold, #b87c0c); }

.birth-chart-planet em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bc-retro {
  font-style: normal;
  font-size: 10px;
  color: var(--red, #b42334);
  font-weight: 700;
}
.bc-dig {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}
.bc-exalt .bc-dig { color: var(--green, #2e6f4e); }
.bc-debil .bc-dig { color: var(--red, #b42334); }
.bc-own .bc-dig { color: var(--gold, #b87c0c); }

.birth-chart-cell.is-moon {
  box-shadow: inset 0 -2px 0 0 rgba(99,102,241,.5);
}

.birth-chart-no-planet {
  color: var(--muted);
  font-size: 12px;
  opacity: .4;
}

.bc-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.bc-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bc-key-lagna { background: rgba(46,111,78,.12) !important; border-color: rgba(46,111,78,.3) !important; }
.bc-key-moon { background: rgba(99,102,241,.1) !important; border-color: rgba(99,102,241,.3) !important; }

.birth-chart-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
}

.birth-chart-center span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.birth-chart-center strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.birth-chart-center small {
  max-width: 210px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.birth-chart-slot-1 { grid-column: 2; grid-row: 1; }
.birth-chart-slot-2 { grid-column: 3; grid-row: 1; }
.birth-chart-slot-3 { grid-column: 4; grid-row: 1; }
.birth-chart-slot-4 { grid-column: 4; grid-row: 2; }
.birth-chart-slot-5 { grid-column: 4; grid-row: 3; }
.birth-chart-slot-6 { grid-column: 4; grid-row: 4; }
.birth-chart-slot-7 { grid-column: 3; grid-row: 4; }
.birth-chart-slot-8 { grid-column: 2; grid-row: 4; }
.birth-chart-slot-9 { grid-column: 1; grid-row: 4; }
.birth-chart-slot-10 { grid-column: 1; grid-row: 3; }
.birth-chart-slot-11 { grid-column: 1; grid-row: 2; }
.birth-chart-slot-12 { grid-column: 1; grid-row: 1; }

.birth-chart-empty {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.kundali-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--hover);
}

.kundali-empty {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kundali-empty strong {
  color: var(--text);
  font-size: 14px;
}

.kundali-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.kundali-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.kundali-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kundali-score-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.15;
}

.kundali-score-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.kundali-source {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(46, 111, 78, 0.26);
  border-radius: 999px;
  background: rgba(46, 111, 78, 0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.kundali-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--card) 58%, transparent 59%),
    conic-gradient(var(--green) var(--guna-pct), rgba(129, 139, 156, 0.18) 0);
  flex: 0 0 auto;
}

.kundali-ring span {
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.kundali-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.kundali-row {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.kundali-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kundali-row-head strong {
  color: var(--text);
  font-size: 12px;
}

.kundali-row-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.kundali-bar {
  height: 5px;
  margin: 7px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(129, 139, 156, 0.15);
}

.kundali-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.kundali-row p,
.kundali-focus,
.kundali-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.kundali-focus {
  margin-top: 10px;
  color: var(--text);
}

.kundali-disclaimer {
  margin-top: 6px;
}

.celebrity-match-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.celebrity-match-copy strong {
  color: var(--text);
}

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

.celebrity-match-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
}

.celebrity-match-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 820;
}

.celebrity-match-main {
  min-width: 0;
}

.celebrity-match-main strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celebrity-match-main span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celebrity-match-score {
  color: var(--green);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  text-align: right;
}

.celebrity-match-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.celebrity-match-tags {
  grid-column: 3 / 5;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.celebrity-match-tags span {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-source-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover);
}

.profile-source-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-source-icon {
  width: 22px;
  line-height: 1.3;
  flex: 0 0 auto;
}

.profile-source-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.profile-source-detail {
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-source-status {
  min-width: 86px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
  font-size: 11px;
  font-weight: 750;
  flex: 0 0 auto;
}

.profile-source-row[data-tone="ok"] .profile-source-status {
  color: var(--green);
  border-color: rgba(46, 111, 78, 0.30);
  background: rgba(46, 111, 78, 0.08);
}

.profile-source-row[data-tone="warn"] .profile-source-status {
  color: var(--yellow);
  border-color: rgba(184, 124, 12, 0.32);
  background: rgba(184, 124, 12, 0.10);
}

.profile-source-row[data-tone="err"] .profile-source-status {
  color: var(--red);
  border-color: rgba(180, 35, 52, 0.30);
  background: rgba(180, 35, 52, 0.08);
}

/* ─ Lifetime Reports ─ */
.life-reports-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.life-report-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover);
  transition: border-color 0.15s;
}
.life-report-card:hover {
  border-color: var(--accent, var(--text));
}
.life-report-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.life-report-body {
  flex: 1;
  min-width: 0;
}
.life-report-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.life-report-preview {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.life-report-date {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
}
.life-report-locked {
  opacity: 0.5;
}
.life-report-gen,
.life-report-view {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

/* Report modal */
.life-report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.life-report-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.life-report-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}
.life-report-modal-header .life-report-date {
  margin-left: auto;
}
.life-report-close {
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-left: 8px;
}
.life-report-modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.sidebar-spacer { flex: 0 0 8px; }

/* ─ Profile zone ─ */
.profile-zone {
  border-top: 1px solid var(--border);
  padding: 8px;
  flex-shrink: 0;
  position: relative;
}

/* Profile dropdown (appears above) */
.profile-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 8px;
  right: 8px;
  background: var(--surface-container);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 0 -8px 32px var(--shadow), 0 0 0 1px var(--border);
  z-index: 200;
  animation: fadeUp 0.15s ease;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t);
  text-align: left;
}
.dd-item:hover { background: var(--nebula-glow); }
.dd-item svg { color: var(--muted); flex-shrink: 0; }
.dd-item.red { color: var(--red); }
.dd-item.red svg { color: var(--red); }
.dd-sep { height: 1px; background: var(--border); margin: 3px 0; }

/* Profile button */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t);
  font-size: 14px;
  font-family: inherit;
}
.profile-btn:hover { background: var(--hover); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #140F08;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.avatar img, .user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-name {
  flex: 1;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--t);
}
.chevron-icon.open { transform: rotate(180deg); }

/* ── CHAT MAIN ───────────────────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: var(--app-height);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.messages-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px 16px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 20% 30%, rgba(109, 40, 217, 0.06), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 214, 122, 0.04), transparent 50%);
}
.messages-wrap::-webkit-scrollbar { width: 4px; }
.messages-wrap::-webkit-scrollbar-track { background: transparent; }
.messages-wrap::-webkit-scrollbar-thumb { background: var(--void-gray); border-radius: 10px; }

/* Welcome state */
.welcome-state {
  margin: auto;
  text-align: center;
  max-width: 760px;
  padding: 32px 0 48px;
}

/* ─ Sky orb ─ */
.sky-orb {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}
.sky-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  animation: sky-spin 20s linear infinite;
}
.sky-orb-ring-2 {
  inset: 8px;
  border-color: rgba(238, 192, 84, 0.18);
  animation-direction: reverse;
  animation-duration: 14s;
}
.sky-orb-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--gold);
  animation: sky-pulse 4s ease-in-out infinite;
}
@keyframes sky-spin { to { transform: rotate(360deg); } }
@keyframes sky-pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

.welcome-h {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.25;
  color: var(--gold);
}
.welcome-p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 520px;
  margin-inline: auto;
}

/* Transit bar */
.sky-transit-bar {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 100px;
}

/* ─ Pulse teaser ─ */
.pulse-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(230, 185, 77, 0.04) 0%, transparent 60%);
}
.pulse-teaser-orb {
  margin-bottom: 18px;
  line-height: 0;
}
.pulse-teaser-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pulse-teaser-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 380px;
  margin-bottom: 16px;
}
.pulse-teaser-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.pulse-teaser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: teaser-blink 2.5s ease-in-out infinite;
}
.pulse-teaser-dot:nth-child(2) { animation-delay: 0.3s; }
.pulse-teaser-dot:nth-child(3) { animation-delay: 0.6s; }
.pulse-teaser-dot:nth-child(4) { animation-delay: 0.9s; }
.pulse-teaser-dot:nth-child(5) { animation-delay: 1.2s; }
.pulse-teaser-dot:nth-child(6) { animation-delay: 1.5s; }
.pulse-teaser-dot[data-tone="green"] { background: var(--green); }
.pulse-teaser-dot[data-tone="red"] { background: var(--red); }
@keyframes teaser-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.pulse-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--gold);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pulse-reveal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(230, 185, 77, 0.3);
}
.pulse-reveal-arrow {
  font-size: 16px;
  animation: reveal-bounce 1.5s ease-in-out infinite;
}
@keyframes reveal-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ─ Reveal animation ─ */
.pulse-revealed {
  animation: pulse-fade-in 0.5s ease-out;
}
.pulse-revealed .pulse-card {
  animation: pulse-card-pop 0.4s ease-out both;
}
.pulse-revealed .pulse-card:nth-child(1) { animation-delay: 0.05s; }
.pulse-revealed .pulse-card:nth-child(2) { animation-delay: 0.10s; }
.pulse-revealed .pulse-card:nth-child(3) { animation-delay: 0.15s; }
.pulse-revealed .pulse-card:nth-child(4) { animation-delay: 0.20s; }
.pulse-revealed .pulse-card:nth-child(5) { animation-delay: 0.25s; }
.pulse-revealed .pulse-card:nth-child(6) { animation-delay: 0.30s; }
@keyframes pulse-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-card-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─ Sky starter btn accent ─ */
.starter-btn-sky {
  border-color: var(--gold-line);
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
}
.starter-btn-sky:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  text-align: left;
}

.insight-card {
  min-height: 104px;
  padding: 14px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.insight-card:hover {
  border-color: rgba(211, 187, 255, 0.2);
  box-shadow: 0 0 20px var(--nebula-glow);
}

.insight-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.insight-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 5px;
}

.insight-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.life-pulse {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.life-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pulse-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.life-pulse-head h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.pulse-score {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 760;
}

.pulse-score[data-tone="green"] { color: var(--green); border-color: rgba(46, 111, 78, 0.30); background: rgba(46, 111, 78, 0.08); }
.pulse-score[data-tone="yellow"] { color: var(--yellow); border-color: rgba(184, 124, 12, 0.32); background: rgba(184, 124, 12, 0.10); }
.pulse-score[data-tone="red"] { color: var(--red); border-color: rgba(180, 35, 52, 0.30); background: rgba(180, 35, 52, 0.08); }

.pulse-score-wrap,
.pulse-card-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pulse-score-wrap {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pulse-delta {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.pulse-delta[data-dir="up"] {
  color: var(--green);
  background: rgba(46, 111, 78, 0.10);
}

.pulse-delta[data-pattern="progress"] {
  color: var(--green);
  background: rgba(46, 111, 78, 0.11);
}

.pulse-delta[data-dir="down"] {
  color: var(--red);
  background: rgba(180, 35, 52, 0.09);
}

.pulse-delta[data-pattern="regress"] {
  color: var(--red);
  background: rgba(180, 35, 52, 0.10);
}

.pulse-delta[data-dir="flat"],
.pulse-delta[data-pattern="stale"] {
  color: var(--yellow);
  background: rgba(184, 124, 12, 0.11);
}

.pulse-delta[data-dir="new"] {
  color: var(--yellow);
  background: rgba(184, 124, 12, 0.11);
}

.pulse-info-btn {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.pulse-info-btn:hover,
.pulse-info-btn:focus {
  color: var(--text);
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

/* Trend arrows — always visible next to score */
.pulse-trend {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
  line-height: 1;
}
.pulse-trend[data-dir="up"] { color: var(--green); }
.pulse-trend[data-dir="down"] { color: var(--red); }
.pulse-trend[data-dir="flat"] { color: var(--yellow); }
.pulse-trend[data-dir="new"] { color: var(--muted); font-size: 10px; }

/* Info modal popup */
.pulse-info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pulse-info-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.pulse-info-modal[data-tone="green"] { border-color: color-mix(in srgb, var(--green) 40%, var(--border)); }
.pulse-info-modal[data-tone="yellow"] { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.pulse-info-modal[data-tone="red"] { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }

.pulse-info-modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.pulse-info-modal-head strong { flex: 1; }
.pulse-info-modal-score {
  font-size: 20px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.pulse-info-modal-close {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--form-soft);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.pulse-info-modal-close:hover { background: var(--gold-dim); color: var(--text); }

.pulse-info-modal-body {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.pulse-info-modal-body .pulse-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pulse-info-modal-body .pulse-detail-row > span {
  font-size: 11px;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pulse-info-modal-body .pulse-detail-row > strong {
  font-size: 13px;
  font-weight: 440;
  color: var(--text);
  line-height: 1.45;
}

.celeb-backtest-card {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}

.celeb-evidence-meter {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent 46%),
    var(--card);
}

.celeb-backtest-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.celeb-backtest-head p,
.celeb-backtest-limit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.celeb-proof-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.celeb-backtest-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.celeb-backtest-stats div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--hover);
}

.celeb-backtest-stats strong {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.celeb-backtest-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.celeb-meter-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.celeb-meter-gauge {
  --meter: 0;
  width: 104px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--card) 0 57%, transparent 58%),
    conic-gradient(var(--green) calc(var(--meter) * 1%), rgba(130, 140, 154, 0.22) 0);
  box-shadow: inset 0 0 0 1px var(--border);
}

.celeb-evidence-meter[data-tone="yellow"] .celeb-meter-gauge {
  background:
    radial-gradient(circle at center, var(--card) 0 57%, transparent 58%),
    conic-gradient(var(--gold) calc(var(--meter) * 1%), rgba(130, 140, 154, 0.22) 0);
}

.celeb-evidence-meter[data-tone="red"] .celeb-meter-gauge {
  background:
    radial-gradient(circle at center, var(--card) 0 57%, transparent 58%),
    conic-gradient(var(--red) calc(var(--meter) * 1%), rgba(130, 140, 154, 0.22) 0);
}

.celeb-meter-gauge span {
  color: var(--text);
  font-size: 30px;
  font-weight: 840;
  line-height: 1;
}

.celeb-meter-gauge small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.celeb-meter-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.celeb-meter-copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.celeb-meter-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.celeb-meter-bars div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.celeb-meter-bars em {
  --bar: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green) calc(var(--bar) * 1%), rgba(130, 140, 154, 0.2) 0);
  box-shadow: inset 0 0 0 1px rgba(130, 140, 154, 0.16);
}

.celeb-evidence-meter[data-tone="yellow"] .celeb-meter-bars em {
  background:
    linear-gradient(90deg, var(--gold) calc(var(--bar) * 1%), rgba(130, 140, 154, 0.2) 0);
}

.celeb-evidence-meter[data-tone="red"] .celeb-meter-bars em {
  background:
    linear-gradient(90deg, var(--red) calc(var(--bar) * 1%), rgba(130, 140, 154, 0.2) 0);
}

.celeb-meter-bars strong {
  color: var(--text);
  font-size: 11px;
  text-align: right;
}

.celeb-backtest-copy {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.celeb-backtest-events {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.celeb-backtest-event {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
  color: inherit;
  text-decoration: none;
}

.celeb-backtest-event > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.celeb-backtest-event[data-hit="no"] > span {
  color: var(--red);
}

.celeb-backtest-event strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.celeb-backtest-event em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.pulse-summary,
.pulse-guidance,
.pulse-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pulse-guidance {
  color: var(--text);
  font-weight: 520;
}

.pulse-tip {
  padding-top: 2px;
  font-size: 12px;
}

.pulse-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-period-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-period-row button {
  min-height: 58px;
  display: grid;
  gap: 2px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.profile-period-row button.active,
.profile-period-row button:hover {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.profile-period-row strong {
  font-size: 12px;
  line-height: 1.2;
}

.profile-period-row span {
  color: var(--muted);
  font-size: 11px;
}

.pulse-count {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.pulse-count i,
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.pulse-count[data-tone="green"] i,
.pulse-dot[data-tone="green"] { background: var(--green); }
.pulse-count[data-tone="yellow"] i,
.pulse-dot[data-tone="yellow"] { background: #C48312; }
.pulse-count[data-tone="red"] i,
.pulse-dot[data-tone="red"] { background: var(--red); }

.pulse-overall-details {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
}

.pulse-overall-details[hidden],
.pulse-card-details[hidden] {
  display: none;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.pulse-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: visible;
  transition: border-color var(--t), box-shadow var(--t);
}
.pulse-card:hover {
  box-shadow: 0 0 20px var(--nebula-glow);
}

.pulse-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.30); }
.pulse-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.30); }
.pulse-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.28); }

.pulse-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin-bottom: 0;
}

.pulse-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-card-top strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pulse-card-mood {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.pulse-basis,
.pulse-hope,
.pulse-watch {
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.pulse-basis {
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.pulse-hope {
  color: var(--text);
  -webkit-line-clamp: 3;
}

.pulse-watch {
  color: var(--muted);
  -webkit-line-clamp: 2;
}

.pulse-card.expanded .pulse-basis,
.pulse-card.expanded .pulse-hope,
.pulse-card.expanded .pulse-watch {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.pulse-card-details {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pulse-detail-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.38fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.pulse-detail-row span {
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pulse-detail-row strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
}

.pulse-read-more {
  align-self: flex-start;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.pulse-read-more:hover,
.pulse-read-more:focus {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
}

.synthesis-pulse-panel {
  width: min(1280px, calc(100% - 28px));
  margin: 10px auto 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  animation: fadeUp 0.2s ease;
}

.synthesis-pulse-panel[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.synthesis-pulse-panel[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.28); }
.synthesis-pulse-panel[data-tone="red"] { border-color: rgba(180, 35, 52, 0.24); }

.synthesis-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.synthesis-pulse-head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.synthesis-pulse-summary {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.synthesis-section-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.synth-flow .synthesis-section-grid { display: none; }

.synthesis-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

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

.synth-actions-label {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.synth-overall-score {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255,255,255,0.06);
}
.synth-overall-score[data-tone="green"] { background: rgba(46,111,78,0.22); color: var(--green); }
.synth-overall-score[data-tone="yellow"] { background: rgba(184,124,12,0.22); color: var(--yellow); }
.synth-overall-score[data-tone="red"] { background: rgba(180,35,52,0.22); color: var(--red); }

.synth-inline-score {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.55;
  margin-left: 4px;
}

.synthesis-section-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color var(--t), box-shadow var(--t);
}
.synth-flow .synthesis-section-card {
  min-height: 0;
  padding: 14px 16px;
}
.synthesis-section-card:hover {
  box-shadow: 0 0 20px var(--nebula-glow);
}

.synthesis-section-card[data-tone="green"] {
  border-color: rgba(46, 111, 78, 0.28);
  background: rgba(46, 111, 78, 0.055);
}

.synthesis-section-card[data-tone="yellow"] {
  border-color: rgba(168, 117, 16, 0.30);
  background: rgba(168, 117, 16, 0.065);
}

.synthesis-section-card[data-tone="red"] {
  border-color: rgba(180, 35, 52, 0.30);
  background: rgba(180, 35, 52, 0.055);
}

.synthesis-section-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.synth-flow .synthesis-section-top {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.synthesis-section-top > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.synth-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  background: var(--hover);
}
.synth-icon[data-tone="green"] { background: rgba(46,111,78,0.18); color: var(--green); }
.synth-icon[data-tone="yellow"] { background: rgba(184,124,12,0.18); color: var(--yellow); }
.synth-icon[data-tone="red"] { background: rgba(180,35,52,0.18); color: var(--red); }

.synth-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.synth-mood {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.synth-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--hover);
  overflow: hidden;
}
.synth-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.synth-meter-fill[data-tone="green"] { background: var(--green); }
.synth-meter-fill[data-tone="yellow"] { background: var(--gold); }
.synth-meter-fill[data-tone="red"] { background: var(--red); }

.synthesis-section-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}
.synth-flow .synthesis-section-label {
  font-size: 14px;
}

.synthesis-section-score {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.synthesis-section-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.synthesis-info {
  margin-left: 0;
}

.synthesis-info p,
.synthesis-info .pulse-detail-row {
  white-space: normal;
}

.synthesis-section-card p,
.synthesis-section-lead {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.synthesis-section-lead {
  margin: 0;
  color: var(--text);
}

.synthesis-bullets {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.synthesis-bullets li {
  padding-left: 2px;
}

.synthesis-action-row .synthesis-section-card {
  min-height: 132px;
}
.synth-flow .synthesis-action-row .synthesis-section-card {
  min-height: 0;
}

.synthesis-disclaimer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Expand / collapse drawer inside synthesis cards */
.synth-detail-drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeIn 0.15s ease;
}
.synth-detail-drawer[hidden] { display: none; }
.synth-detail-hope {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--green);
}
.synth-detail-watchout {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--yellow);
}
.synth-expand-btn {
  all: unset;
  cursor: pointer;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.8;
  transition: opacity 0.15s;
}
.synth-expand-btn:hover { opacity: 1; }

/* Head summary line */
.synth-head-summary {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Sky context bar (nakshatra, tithi, dasha, planets) */
.synth-sky-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.synth-sky-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.synth-sky-icon {
  font-size: 13px;
  opacity: 0.7;
}
.synth-sky-text {
  font-weight: 500;
}

/* Life events section (yearly reading) */
.synth-life-events {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,185,84,0.15);
  background: rgba(255,185,84,0.04);
}
.synth-le-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.synth-le-header-icon { font-size: 18px; }
.synth-le-group { margin-bottom: 10px; }
.synth-le-group:last-child { margin-bottom: 0; }
.synth-le-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.synth-le-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.synth-le-item:last-child { border-bottom: none; }
.synth-le-past { opacity: 0.6; }
.synth-le-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255,185,84,0.12);
  font-size: 14px;
}
.synth-le-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.synth-le-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.synth-le-age {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.synth-le-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.skeleton-line {
  display: block;
  width: 74%;
  height: 10px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--hover-strong);
}

.synthesis-score-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.synthesis-score-box {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover);
}

.synthesis-score-box[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.synthesis-score-box[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.28); }
.synthesis-score-box[data-tone="red"] { border-color: rgba(180, 35, 52, 0.24); }

.synthesis-score-box div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.synthesis-score-box span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.synthesis-score-box strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.synthesis-score-box em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.synthesis-score-grid.skeleton .synthesis-score-box strong {
  color: var(--muted);
  font-size: 16px;
}

/* Future forecast center */
.future-center {
  width: min(1180px, 100%);
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
}

.future-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 8px;
}

.future-hero h2 {
  max-width: 820px;
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 520;
  line-height: 1.15;
}

.future-window-inline {
  flex-shrink: 0;
}

.future-hero p,
.future-status,
.future-empty {
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.future-query-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.future-query-form textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--form-soft);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
}

.future-query-form textarea:focus {
  border-color: var(--gold-line);
  background: var(--card2);
}

.future-controls,
.future-window-row,
.future-topic-row,
.future-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.future-controls {
  justify-content: space-between;
}

.future-chip,
.future-topic-btn,
.future-link-btn,
.future-feedback button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.future-chip:hover,
.future-topic-btn:hover,
.future-link-btn:hover,
.future-feedback button:hover,
.future-chip.active,
.future-topic-btn.active,
.future-feedback button.active {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
}

.future-run-btn {
  min-height: 36px;
  padding-inline: 16px;
}

.future-starter-grid,
.future-forecast-grid,
.future-score-grid,
.future-detail-grid {
  display: grid;
  gap: 10px;
}

.future-starter-grid,
.future-forecast-grid,
.future-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.future-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.future-starter-card,
.future-card,
.future-score-card,
.future-detail-panel,
.future-narrative,
.future-history-panel {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.future-starter-card {
  display: grid;
  gap: 6px;
}

.future-starter-card strong,
.future-card-top strong,
.future-section-head h3,
.future-detail-panel h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.future-starter-card span,
.future-card p,
.future-score-card small,
.future-detail-panel p,
.future-detail-panel li,
.future-source-list a,
.future-source-list span,
.future-history-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.future-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.future-result[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.future-result[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.28); }
.future-result[data-tone="red"] { border-color: rgba(180, 35, 52, 0.24); }

.future-result-head,
.future-card-top,
.future-section-head,
.future-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.future-result-head {
  justify-content: space-between;
}

.future-result-head h3 {
  margin-top: 2px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.future-result-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.future-scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.future-scope-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--form-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.future-scope-row[data-scope="world"] span:first-child {
  border-color: rgba(46, 111, 78, 0.28);
  background: rgba(46, 111, 78, 0.08);
  color: var(--green);
}

.future-scope-row[data-scope="blended"] span:first-child {
  border-color: rgba(184, 124, 12, 0.32);
  background: rgba(184, 124, 12, 0.10);
  color: var(--gold);
}

.future-score {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  flex: 0 0 auto;
}

.future-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.future-score span {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.future-score small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.future-score[data-tone="green"] { border-color: rgba(46, 111, 78, 0.30); background: rgba(46, 111, 78, 0.08); }
.future-score[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.32); background: rgba(184, 124, 12, 0.10); }
.future-score[data-tone="red"] { border-color: rgba(180, 35, 52, 0.30); background: rgba(180, 35, 52, 0.08); }

.future-score-details {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
}

.future-score-details[hidden] {
  display: none;
}

.future-narrative {
  display: grid;
  gap: 10px;
}

.future-narrative .msg-answer {
  padding: 0;
  color: var(--text);
}

.future-followup-questions {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.future-followup-questions strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.future-followup-questions ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.future-followup-questions li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.future-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.future-score-card {
  display: grid;
  gap: 5px;
}

.future-score-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.future-score-card strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 820;
  line-height: 1;
}

.future-score-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.future-score-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.26); }
.future-score-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.22); }

.future-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.future-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.future-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.26); }
.future-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.22); }

/* ---- Predictions: Bloomberg-style terminal panel ---- */
.future-terminal {
  margin: 14px 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(8, 10, 13, 0.6);
}
.terminal-ticker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  margin: 10px 0; background: var(--border); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.ticker-cell { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(12, 14, 18, 0.95); }
.ticker-label { font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font-mono); }
.ticker-cell strong { font-size: 0.95rem; color: #fff; font-family: var(--font-mono); }
.terminal-ticker[data-tone="green"] .ticker-dir { color: #46d39a; }
.terminal-ticker[data-tone="red"] .ticker-dir { color: #ff5d73; }
.terminal-ticker[data-tone="yellow"] .ticker-dir { color: var(--gold); }
.terminal-quotes { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.82rem; margin-top: 8px; }
.terminal-quotes thead th {
  text-align: left; padding: 6px 10px; font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--muted); border-bottom: 1px solid var(--border); text-transform: uppercase;
}
.terminal-quotes th.num, .terminal-quotes td.num { text-align: right; }
.terminal-quotes td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text); }
.terminal-quotes td.up { color: #46d39a; }
.terminal-quotes td.down { color: #ff5d73; }
.terminal-quotes td.muted { color: var(--muted); font-size: 0.74rem; }
.terminal-quotes .stale { color: var(--gold); font-size: 0.66rem; padding: 1px 5px; border: 1px solid rgba(184,124,12,0.4); border-radius: 4px; }

/* ---- Predictions: ask-the-engine chat (below results) ---- */
.future-chat {
  margin-top: 22px; padding: 18px 20px 20px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(29, 32, 36, 0.45);
}
.future-chat-eyebrow { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.future-chat-title { margin: 6px 0 4px; font-size: 1.05rem; color: #fff; }
.future-chat-note { margin: 0 0 12px; font-size: 0.85rem; color: var(--muted); }
.future-chat-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.future-chat-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--chip-bg, rgba(255,255,255,0.03)); color: var(--text); font-size: 12.5px;
  cursor: pointer; transition: border-color var(--t), background var(--t);
}
.future-chat-chip:hover { border-color: var(--accent); background: rgba(255,185,84,0.1); }
.future-chat-input-wrap { display: flex; gap: 10px; align-items: center; }
.future-chat-input {
  flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(8,10,13,0.5); color: #fff; font-size: 0.92rem;
}
.future-chat-input:focus { outline: none; border-color: var(--accent); }
.future-chat-input-wrap .btn-primary { white-space: nowrap; }
@media (max-width: 600px) {
  .terminal-ticker { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Predictions: Bloomberg-style market prediction tracker ---- */
.prediction-tracker-wrap { margin: 0 0 16px; }
.prediction-tracker { padding: 18px 20px; }
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-eyebrow { font-size: 11px; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.pt-head h3 { margin: 4px 0 0; font-size: 1.1rem; color: #fff; }
.pt-overall { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pt-overall-val { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.pt-overall-lbl { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pt-table-wrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.84rem; }
.pt-table thead th {
  text-align: left; padding: 7px 12px; font-size: 9.5px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.pt-table th.num, .pt-table td.num { text-align: right; }
.pt-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text); }
.pt-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.pt-name { font-weight: 700; color: #fff; font-family: var(--font-sans, inherit); }
.pt-dir { white-space: nowrap; }
.pt-dir .pt-arrow { font-size: 0.9rem; }
.pt-dir.up { color: #46d39a; }
.pt-dir.down { color: #ff5d73; }
.pt-dir.flat { color: var(--gold); }
.pt-acc { font-weight: 700; }
.pt-acc[data-has="1"] { color: var(--gold); }
.pt-acc[data-has="0"] { color: var(--muted); font-weight: 400; font-style: italic; }
.pt-acc small { color: var(--muted); font-weight: 400; }
.pt-move { color: var(--muted); }
.pt-note { margin: 10px 0 0; font-size: 0.72rem; color: var(--muted); }

/* category cards + expandable evidence */
.pt-loading { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted); font-size: 0.85rem; }
.pt-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pt-cat-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(8,10,13,0.45); padding: 14px; }
.pt-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pt-cat-title { font-weight: 700; color: #fff; font-size: 0.95rem; }
.pt-cat-acc { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.pt-cat-acc.muted, .pt-cat-acc[data-has="0"] { color: var(--muted); font-weight: 400; }
.pt-cat-sub { font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; }
.pt-cat-prompts { display: flex; flex-direction: column; gap: 8px; }
.pt-cat-markets { display: flex; flex-direction: column; gap: 4px; }
.pt-mkt { border-top: 1px solid rgba(255,255,255,0.05); }
.pt-mkt:first-child { border-top: none; }
.pt-mkt-head { width: 100%; display: grid; grid-template-columns: 1fr auto auto 14px; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 9px 2px; font: inherit; text-align: left; }
.pt-mkt-name { color: #fff; font-size: 0.86rem; font-weight: 600; }
.pt-mkt-call { font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; }
.pt-mkt-call.up { color: #46d39a; } .pt-mkt-call.down { color: #ff5d73; } .pt-mkt-call.flat { color: var(--gold); }
.pt-mkt-acc { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.pt-mkt-acc[data-has="0"] { color: var(--muted); font-weight: 400; font-style: italic; }
.pt-mkt-chev { color: var(--muted); font-size: 0.7rem; }
.pt-mkt-body { padding: 4px 2px 12px; }
.pt-mkt-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; }
.pt-evidence { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-call { font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--border); white-space: nowrap; }
.pt-call.hit { color: #46d39a; border-color: rgba(70,211,154,0.35); }
.pt-call.miss { color: #ff5d73; border-color: rgba(255,93,115,0.3); }
.pt-call small { color: var(--muted); }
.pt-ev-empty { font-size: 0.76rem; color: var(--muted); margin: 0; }

.future-candidate-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.future-section-head > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

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

.future-candidate-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
}

.future-candidate-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.25); }
.future-candidate-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.26); }
.future-candidate-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.22); }

.future-candidate-top,
.future-candidate-metrics {
  display: flex;
  align-items: center;
  gap: 7px;
}

.future-candidate-top span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
}

.future-candidate-top strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.future-candidate-top em {
  margin-left: auto;
  color: var(--green);
  font-style: normal;
  font-size: 17px;
  font-weight: 840;
}

.future-candidate-card p,
.future-candidate-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.future-candidate-metrics {
  flex-wrap: wrap;
}

.future-candidate-metrics span {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.future-card-top em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.future-card ul,
.future-detail-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.future-detail-panel h4 {
  margin-bottom: 8px;
}

.future-detail-panel li span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.future-source-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.future-source-list a {
  color: var(--text);
  text-decoration: none;
}

.future-source-list a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.future-feedback {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.future-feedback > span {
  font-weight: 720;
}

.future-feedback-status {
  min-width: 48px;
  color: var(--muted);
}

.future-history-panel {
  display: grid;
  gap: 10px;
}

.future-section-head {
  justify-content: space-between;
}

.future-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.future-history-item {
  min-height: 62px;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.future-history-item:hover {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.future-history-item span {
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.future-history-item strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.future-loading,
.future-error {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}

.future-error {
  color: var(--red);
}

.future-chat-result {
  width: min(1180px, 96%);
  max-width: 96%;
}

/* Numerology center */
.numerology-center {
  width: min(980px, 100%);
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
}

.numerology-hero,
.numerology-ring-card,
.numerology-mini-grid article,
.numerology-synthesis {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.numerology-hero {
  padding: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 185, 84, 0.11), transparent 36%),
    var(--card);
}

.numerology-hero h2 {
  max-width: 760px;
  margin-top: 5px;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.numerology-hero p,
.numerology-ring-card p,
.numerology-mini-grid p,
.numerology-synthesis p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.numerology-speed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.numerology-speed-card {
  min-height: 244px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 185, 84, 0.08), rgba(246, 248, 252, 0.035)),
    var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  animation: dial-card-rise 480ms ease both;
  animation-delay: var(--dial-delay);
}

.numerology-speed-dial {
  position: relative;
  width: min(128px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(17, 20, 23, 0.95) 54%, transparent 55%),
    conic-gradient(from -130deg, var(--gold) var(--dial-pct), rgba(246, 248, 252, 0.08) 0);
  box-shadow: 0 0 34px rgba(255, 185, 84, 0.18);
  animation: dial-spin-in 760ms cubic-bezier(.18,.9,.26,1.12) both;
  animation-delay: var(--dial-delay);
}

.numerology-speed-dial span {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
}

.numerology-speed-dial i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 185, 84, 0.45);
  transform: translateX(-50%);
}

.numerology-speed-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.numerology-speed-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.numerology-speed-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes dial-spin-in {
  from { opacity: 0; transform: scale(.84); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes dial-card-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.numerology-ring-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
}

.numerology-ring {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(17, 20, 23, 0.95) 58%, transparent 59%),
    conic-gradient(var(--gold) var(--num-pct), rgba(246, 248, 252, 0.07) 0);
  box-shadow: 0 0 32px rgba(255, 185, 84, 0.12);
}

.numerology-ring span {
  color: var(--gold);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.numerology-ring-card h3 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: 24px;
  line-height: 1.2;
}

.numerology-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.numerology-mini-grid article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.numerology-mini-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.numerology-mini-grid strong {
  color: var(--text);
  font-family: 'Libre Caslon Text', serif;
  font-size: 28px;
  line-height: 1;
}

.numerology-synthesis {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-color: var(--gold-line);
  background:
    linear-gradient(135deg, rgba(255, 185, 84, 0.08), rgba(246, 248, 252, 0.035)),
    var(--card);
}

.numerology-synthesis strong {
  color: var(--text);
}

/* Palmistry and channel surfaces */
.palmistry-center,
.channel-studio {
  width: min(980px, 100%);
  margin: 0 auto 32px;
  display: grid;
  gap: 14px;
  color: var(--text);
}

.palmistry-hero,
.palmistry-card,
.palmistry-synthesis,
.palmistry-reading-panel,
.channel-studio {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.channel-qr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-card,
.invite-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(246, 248, 252, 0.055);
}

.qr-card img,
.invite-qr img {
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}

.qr-card strong,
.invite-qr span {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
}

.qr-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.qr-card[data-ready="0"] img {
  opacity: .72;
}

.palmistry-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 185, 84, 0.12), transparent 34%),
    var(--card);
}

.palmistry-hero h2,
.channel-studio h3 {
  max-width: 760px;
  margin: 4px 0 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.palmistry-hero p,
.palmistry-card p,
.palmistry-synthesis p,
.channel-studio p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.palmistry-grid,
.channel-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.palmistry-reading-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(46, 111, 78, 0.08), rgba(246, 248, 252, 0.035)),
    var(--card);
}

.palmistry-reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.palmistry-reading-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.palmistry-reading-head strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.palmistry-reading-head em {
  padding: 4px 8px;
  border: 1px solid rgba(46, 111, 78, 0.26);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

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

.palmistry-reading-section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(246, 248, 252, 0.045);
}

.palmistry-reading-section h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
}

.palmistry-reading-section p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.palmistry-reading-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
}

.palmistry-reading-section li + li {
  margin-top: 4px;
}

.palmistry-card {
  min-height: 148px;
  display: grid;
  gap: 7px;
  padding: 14px;
}

.palmistry-card span,
.channel-studio article span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.palmistry-card strong,
.palmistry-synthesis strong,
.channel-studio article strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.palmistry-synthesis {
  display: grid;
  gap: 9px;
  padding: 16px;
  border-color: var(--gold-line);
}

.channel-studio {
  margin-top: 18px;
  padding: 16px;
}

.channel-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.channel-studio-head > span {
  flex: 0 0 auto;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.channel-studio-grid article {
  min-height: 128px;
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover);
}

.invite-growth-panel {
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 185, 84, 0.11), rgba(246, 248, 252, 0.035)),
    var(--card);
}

.invite-growth-panel span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.invite-growth-panel strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.invite-growth-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.invite-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.invite-qr {
  flex: 0 0 156px;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  text-align: center;
}

.invite-qr img {
  width: 102px;
  height: 102px;
}

.invite-qr span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.invite-actions a,
.invite-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 20, 23, 0.26);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  padding: 0 12px;
  cursor: pointer;
}

.invite-actions [data-invite-friend="share"] {
  border-color: var(--gold-line);
  background: var(--gold);
  color: #15100a;
}

.starter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}
.starter-btn {
  padding: 14px 16px;
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.starter-btn:hover {
  border-color: rgba(211, 187, 255, 0.25);
  background: var(--nebula-glow);
  box-shadow: 0 0 20px var(--nebula-glow);
}
.starter-btn:active {
  transform: scale(0.98);
}

/* Chat messages */
.msg-user {
  align-self: flex-end;
  max-width: 72%;
  background: var(--gold-bright);
  color: var(--accent-text);
  border: none;
  border-radius: 20px 0 20px 20px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeUp 0.2s ease;
  word-break: break-word;
  box-shadow: 0 4px 16px rgba(230, 185, 77, 0.15);
}

.msg-ai {
  align-self: flex-start;
  max-width: 85%;
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 0 20px 20px 20px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.75;
  animation: fadeUp 0.3s ease;
  word-break: break-word;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.msg-ai.with-scores {
  width: min(1280px, 96%);
  max-width: 96%;
}

.msg-ai .synthesis-pulse-panel {
  width: 100%;
  margin: 0 0 12px;
}

.msg-answer {
  white-space: normal;
  line-height: 1.6;
}
.msg-answer p { margin: 0 0 0.6em; }
.msg-answer p:last-child { margin-bottom: 0; }
.msg-answer ul { margin: 0.3em 0 0.6em 1.2em; padding: 0; }
.msg-answer li { margin-bottom: 0.25em; }
.msg-answer h3.md-h,
.msg-answer h4.md-h {
  margin: 0.8em 0 0.3em;
  font-family: var(--font-serif);
  font-size: 1em;
  font-weight: 700;
  color: var(--purple);
}
.msg-ai.streaming .msg-answer::after {
  content: '▌';
  animation: blink 0.8s infinite;
  color: var(--gold);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.follow-up-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.follow-up-chip {
  background: var(--hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
  line-height: 1.3;
  text-align: left;
}
.follow-up-chip:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.msg-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.feedback-label {
  font-weight: 650;
}

.feedback-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card2);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.feedback-btn:hover,
.feedback-btn:focus {
  color: var(--ink);
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.feedback-btn.active {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.feedback-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.feedback-status {
  min-height: 18px;
}

.msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.meta-chip,
.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.meta-chip.strong {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: var(--gold-line);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.source-chip {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.entity-chip {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 99px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
}

.msg-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  animation: fadeUp 0.2s ease;
  padding: 4px 0;
}
.msg-loading.progress {
  display: block;
}
.loader-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(560px, 100%);
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
  color: var(--muted);
}
.loader-step.done {
  color: var(--muted);
  opacity: 0.78;
}
.loader-step.active {
  color: var(--ink);
}
.loader-check {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(49, 119, 91, 0.14);
  border: 1px solid rgba(49, 119, 91, 0.38);
  flex-shrink: 0;
}
.loader-check::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 5px;
  height: 3px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Input area */
.input-area {
  border-top: 1px solid var(--border);
  padding: 14px 24px 18px;
  flex-shrink: 0;
  background: var(--surface-container-low);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.input-wrap {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
  background: var(--surface-container);
  border: 1px solid var(--void-gray);
  border-radius: 999px;
  display: flex;
  align-items: flex-end;
  padding: 4px 4px 4px 20px;
  transition: border-color var(--t), box-shadow var(--t);
}
.input-wrap:focus-within {
  border-color: rgba(255, 214, 122, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 214, 122, 0.08);
}

#q {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 8px 10px 0;
  resize: none;
  max-height: 200px;
  overflow-y: auto;
  font-family: inherit;
}
#q:focus { outline: none; }

.btn-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold-bright);
  color: var(--accent-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
  margin-bottom: 2px;
  box-shadow: 0 4px 16px rgba(230, 185, 77, 0.2);
}
.btn-send:not(:disabled):active { transform: scale(0.9); }
.btn-send:disabled { opacity: 0.25; cursor: not-allowed; }
.btn-send:not(:disabled):hover { opacity: 0.85; }

.btn-voice {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), color var(--t), border-color var(--t);
  margin: 0 4px 3px 0;
}
.btn-voice:hover:not(:disabled),
.btn-voice.listening {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: var(--gold-line);
}
.btn-voice:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.voice-status {
  min-height: 16px;
  max-width: 768px;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  opacity: 0.55;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

/* ── MODALS ──────────────────────────────────────────── */
.modal-veil {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-box {
  background: var(--surface-container);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  overflow-y: auto;
  animation: scaleIn 0.18s ease;
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--gold);
}
.modal-sub {
  padding: 12px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.map-modal-box {
  max-width: 720px;
  max-height: min(92dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-box {
  max-width: 820px;
  max-height: min(90dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-content {
  padding: 16px 22px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
  font-size: 13px;
  line-height: 1.62;
}

.legal-modal-content:focus {
  outline: none;
}

.legal-modal-content h2 {
  margin: 0 0 14px;
  font-family: 'Libre Caslon Text', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.legal-modal-content h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.legal-modal-content h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 750;
}

.legal-modal-content p,
.legal-modal-content ul,
.legal-modal-content blockquote {
  margin: 0 0 12px;
}

.legal-modal-content ul {
  padding-left: 20px;
}

.legal-modal-content li {
  margin: 5px 0;
}

.legal-modal-content blockquote {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: var(--muted);
  background: var(--gold-dim);
}

.legal-error {
  color: var(--red);
}

.legal-footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-open-full {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-open-full:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pin-map-body {
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pin-map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pin-map-summary > div {
  min-width: 0;
}

.pin-map-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.pin-map-summary strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.pin-map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.pin-map-search input {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  outline: none;
}

.pin-map-search input:focus {
  border-color: var(--gold-line);
}

.pin-map-search button,
.pin-map-result {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pin-map-search button {
  min-height: 38px;
  padding: 0 12px;
}

.pin-map-search button:disabled {
  opacity: .55;
  cursor: wait;
}

.pin-map-results {
  display: grid;
  gap: 7px;
}

.pin-map-result-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pin-map-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 7px;
}

.pin-map-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
}

.pin-map-result span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.pin-map-result small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.pin-map-result:hover,
.pin-map-result:focus,
.pin-map-search button:hover,
.pin-map-search button:focus {
  background: rgba(168, 117, 16, 0.18);
}

.pin-map-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  min-height: 34px;
}

.pin-map-control {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.pin-map-control:hover,
.pin-map-control:focus {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold);
}

.pin-map-coords {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pin-map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  max-height: min(52dvh, 440px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #DCE9F2;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.pin-map-no-tiles {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  max-width: 360px;
  padding: 12px;
  border: 1px solid rgba(87, 103, 124, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.pin-map-no-tiles strong {
  color: var(--text);
  font-size: 13px;
}

.pin-map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23, 32, 51, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

.pin-map-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -100%);
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 12px rgba(21, 35, 58, 0.28);
  rotate: -45deg;
  pointer-events: none;
}

.pin-map-marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #FFFFFF;
}

.map-footer {
  gap: 10px;
  flex-shrink: 0;
}

.modal-attention {
  animation: modalAttention 0.18s ease;
}

/* ─ Data sources ─ */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 14px 14px;
}

.source-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t);
}
.source-card.connected { border-color: rgba(74, 124, 89, 0.35); }

.source-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}

.source-emoji { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }

.source-info { flex: 1; min-width: 0; }
.source-name { font-weight: 500; font-size: 14px; }
.source-status { font-size: 12px; color: var(--muted); margin-top: 2px; }
.source-status.ok { color: var(--green); }

.source-plus {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
  flex-shrink: 0;
}
.source-plus:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--gold-dim);
}
.source-plus.open {
  transform: rotate(45deg);
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--gold-dim);
}

.source-form {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--form-soft);
}
.source-form.open { display: flex; }

.source-form .field label { font-size: 11px; color: var(--muted); }

.connector-sync-field {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

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

.connector-sync-field .btn-ghost {
  width: fit-content;
  min-height: 38px;
  padding: 8px 14px;
  text-decoration: none;
}

.connector-unavailable {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--form-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.source-save {
  align-self: flex-end;
  background: var(--gold);
  color: #140F08;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity var(--t);
}
.source-save:hover { opacity: 0.85; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0;
  cursor: pointer;
  line-height: 1.4;
}
.consent-check input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-top: 3px;
  background: none;
  border: none;
  border-radius: 0;
  accent-color: var(--acc);
  flex-shrink: 0;
  cursor: pointer;
}

.source-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.source-chip input {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
}

.source-device-location {
  width: 100%;
  min-height: 34px;
}

/* ─ Settings ─ */
.settings-block {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.settings-block:last-of-type { border-bottom: none; }

.settings-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.settings-row span { color: var(--muted); }
.settings-row strong { font-weight: 500; max-width: 55%; text-align: right; word-break: break-all; }
.settings-action-row {
  gap: 14px;
}
.settings-action {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--card2);
}
.danger-action {
  color: var(--red);
  border-color: rgba(180, 35, 52, 0.34);
}
.danger-action:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.danger-action:disabled {
  opacity: .5;
  cursor: not-allowed;
  color: var(--muted);
  background: var(--card2);
  border-color: var(--border);
}
.data-control-row {
  align-items: flex-start;
}

/* Security & Privacy settings */
.sec-shield-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  margin-bottom: 14px;
}
.sec-shield-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.sec-shield-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sec-shield-info strong {
  font-size: 13px;
  color: var(--on-surface);
}
.sec-shield-info span {
  font-size: 11px;
  color: var(--muted);
}
.sec-hint {
  margin: -4px 0 10px 28px;
  font-size: 11px;
}
.sec-sessions-list {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sec-sessions-list.hidden { display: none; }
.sec-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-container-low);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.sec-session-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sec-session-device {
  font-weight: 600;
  color: var(--on-surface);
}
.sec-session-meta {
  color: var(--muted);
  font-size: 11px;
}
.sec-session-current {
  font-size: 10px;
  color: rgba(34, 197, 94, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sec-session-terminate {
  background: none;
  border: 1px solid rgba(180, 35, 52, 0.3);
  color: var(--red);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}
.sec-session-terminate:hover {
  background: var(--red);
  color: #fff;
}

.settings-select {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  width: auto;
  outline: none;
}
.settings-select:focus { border-color: var(--gold-line); }

.settings-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.settings-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.premium-paywall {
  align-self: center;
  width: min(980px, 100%);
  max-width: 980px;
  margin: 12px auto 32px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 185, 84, 0.10), rgba(246, 248, 252, 0.045)),
    var(--card);
  color: var(--text);
}

.premium-paywall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.premium-paywall h2 {
  margin: 4px 0 6px;
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.premium-paywall p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.premium-status-pill {
  flex: 0 0 auto;
  max-width: 240px;
  padding: 7px 10px;
  border: 1px solid rgba(46, 111, 78, 0.3);
  border-radius: 999px;
  background: rgba(46, 111, 78, 0.08);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.premium-status-pill[data-locked="1"] {
  border-color: rgba(180, 35, 52, 0.3);
  background: rgba(180, 35, 52, 0.08);
  color: var(--red);
}

.premium-pricing-grid,
.premium-feature-columns,
.premium-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.premium-pricing-grid article,
.premium-feature-columns > div,
.premium-pay-option {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(246, 248, 252, 0.055);
}

.premium-pricing-grid span,
.premium-feature-columns h3 {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.premium-pricing-grid strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.premium-feature-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
}

.premium-pay-option {
  display: grid;
  gap: 3px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.premium-pay-option:hover {
  border-color: var(--gold-line);
  background: var(--gold-dim);
}

.premium-pay-option[data-unconfigured="1"] {
  opacity: .72;
}

.premium-pay-option strong {
  font-size: 13px;
}

.premium-pay-option span,
.premium-pay-option em,
.premium-status-line {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.premium-pay-option em {
  color: var(--gold);
  font-weight: 820;
}

.premium-status-line {
  min-height: 18px;
}
.settings-check span {
  flex: 1;
}

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-container);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-family: var(--font-sans);
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(5, 10, 24, 0.4);
  animation: fadeUp 0.2s ease;
}

/* ── SPINNER ─────────────────────────────────────────── */
.spin-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(23, 32, 51, 0.14);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.spin-dot.mini {
  width: 13px;
  height: 13px;
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes modalAttention {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-2px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  body {
    background: var(--bg);
    overflow: hidden;
    touch-action: manipulation;
  }

  #screen-auth,
  #screen-onboard {
    height: var(--app-height);
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .auth-bg {
    background-image:
      linear-gradient(180deg, rgba(12, 20, 34, 0.80) 0%, rgba(12, 20, 34, 0.66) 45%, rgba(246, 248, 252, 0.88) 100%),
      url('/static/vedic-palm-leaf.jpg');
    background-position: center top;
  }

  .auth-shell {
    width: min(100%, 480px);
    min-height: var(--app-height);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: calc(26px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  }

  .auth-hero {
    max-width: none;
    padding-top: 6px;
  }

  .auth-brand-hero {
    margin-bottom: 22px;
  }

  .auth-hero h1 {
    max-width: 420px;
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }

  .auth-copy {
    max-width: 430px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
  }

  .trust-grid {
    margin-top: 20px;
    gap: 7px;
  }

  .trust-grid span {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .auth-assurance {
    margin-top: 18px;
    font-size: 12px;
  }

  .auth-validation {
    margin-top: 18px;
    padding: 14px;
  }

  .auth-celebrity-preview {
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 14px;
  }

  .auth-validation-stats {
    grid-template-columns: 1fr;
  }

  .auth-validation-stats div {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 8px;
  }

  .auth-attribution {
    margin-top: 18px;
  }

  .auth-panel {
    max-width: none;
    padding: 24px 20px;
    box-shadow: 0 16px 42px rgba(8, 16, 30, 0.22);
  }

  .auth-eula-check {
    grid-template-columns: 18px 1fr;
  }

  .auth-eula-check .legal-inline {
    grid-column: 2;
    justify-self: start;
  }

  .screen.app-layout {
    display: block;
    position: relative;
    height: var(--app-height);
    min-height: var(--app-height);
    overflow: hidden;
    background: var(--bg);
  }

  .mobile-chat-header {
    order: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    min-height: 56px;
    padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
    background: rgba(13, 19, 33, 0.80);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 120;
    flex-shrink: 0;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  }

  .mobile-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.3px;
  }

  .mobile-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* World-class fixed 5-tab bottom bar (thumb-reachable, all destinations
     visible — replaces the old horizontally-scrolling pill bar). */
  .mobile-synthesis-bar {
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    overflow: visible;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(158, 142, 125, 0.18);
    border-bottom: none;
    background: var(--surface-container-low);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    z-index: 110;
    flex-shrink: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
    border-radius: 18px 18px 0 0;
  }

  .mtab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 52px;
    padding: 4px 2px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--t), background var(--t), transform var(--t);
  }
  .mtab-icon { width: 22px; height: 22px; transition: transform var(--t), filter var(--t); }
  .mtab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtab:active { transform: scale(0.93); }
  .mtab.active {
    color: var(--gold);
    background: rgba(255, 185, 84, 0.10);
  }
  .mtab.active .mtab-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 7px rgba(255, 185, 84, 0.42));
  }
  /* slim active indicator at the top edge of the selected tab */
  .mtab.active::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
  }
  @media (prefers-reduced-motion: reduce) {
    .mtab:active { transform: none; }
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0 0 0 min(86vw, 320px);
    display: block;
    background: rgba(18, 28, 45, 0.32);
    opacity: 1;
    z-index: 210;
    transition: opacity var(--t);
  }

  .mobile-drawer-backdrop.hidden {
    display: block !important;
    opacity: 0;
    pointer-events: none;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    height: var(--app-height);
    transform: translateX(-104%);
    z-index: 220;
    transition: transform 0.24s ease;
    box-shadow: 10px 0 34px var(--shadow);
    padding-top: env(safe-area-inset-top);
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-top {
    min-height: 56px;
    padding: 12px 12px 10px;
  }

  .sidebar-brand {
    font-size: 17px;
  }

  .sidebar-nav {
    padding: 4px 8px 10px;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-label {
    padding-top: 10px;
  }

  .nav-row {
    margin-bottom: 4px;
  }

  .nav-btn {
    min-height: 44px;
    font-size: 15px;
  }

  .chat-history-item,
  .chat-history-empty {
    min-height: 44px;
  }

  .nav-refresh {
    opacity: 1;
    width: 38px;
    height: 38px;
    margin-right: 3px;
  }

  .profile-zone {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .profile-dropdown {
    border-radius: 10px;
  }

  .dd-item,
  .profile-btn {
    min-height: 46px;
  }

  .chat-main {
    height: var(--app-height);
    min-height: 0;
    background: var(--bg);
  }

  .insight-strip { grid-template-columns: 1fr; }
  .starter-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }
  .starter-grid::-webkit-scrollbar { display: none; }
  .starter-btn {
    flex: 0 0 min(78vw, 260px);
    min-height: 54px;
  }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .field-pair { flex-direction: column; }
  .location-option { grid-template-columns: 1fr; }
  .location-map-actions { flex-direction: column; }
  .location-map-pick { min-height: 38px; }
  .location-map-link { min-height: 38px; }
  .numerology-center {
    width: 100%;
    gap: 12px;
    margin-bottom: 18px;
  }
  .numerology-hero {
    padding: 16px;
  }
  .numerology-hero h2 {
    font-size: 28px;
  }
  .numerology-main-grid,
  .numerology-speed-grid,
  .numerology-mini-grid {
    grid-template-columns: 1fr;
  }
  .numerology-speed-card {
    min-height: 168px;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
  }
  .numerology-speed-card p {
    grid-column: 1 / -1;
  }
  .numerology-speed-dial {
    width: 96px;
  }
  .numerology-speed-dial span {
    font-size: 30px;
  }
  .profile-period-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .numerology-ring-card {
    min-height: 260px;
    padding: 18px;
  }
  .numerology-mini-grid article {
    min-height: 128px;
  }
  .numerology-synthesis {
    padding: 14px;
  }
  .palmistry-center,
  .channel-studio {
    width: 100%;
    gap: 12px;
    margin-bottom: 18px;
  }
  .palmistry-hero,
  .channel-studio-head {
    flex-direction: column;
    gap: 10px;
  }
  .invite-growth-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .invite-qr {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .invite-actions {
    justify-content: flex-start;
  }
  .invite-actions a,
  .invite-actions button {
    flex: 1 1 calc(50% - 8px);
  }
  .palmistry-hero,
  .palmistry-synthesis,
  .palmistry-reading-panel,
  .channel-studio {
    padding: 14px;
  }
  .palmistry-grid,
  .palmistry-reading-grid,
  .premium-pricing-grid,
  .premium-feature-columns,
  .premium-payment-grid,
  .channel-studio-grid,
  .channel-qr-row {
    grid-template-columns: 1fr;
  }
  .premium-paywall {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
  }
  .premium-paywall-head {
    flex-direction: column;
  }
  .premium-status-pill {
    max-width: none;
  }
  .celeb-identity,
  .celeb-market-top {
    align-items: flex-start;
  }
  .celeb-market-filterbar {
    grid-template-columns: 1fr;
  }
  .celeb-filter-btn {
    min-height: 48px;
  }
  .celeb-evidence-grid {
    grid-template-columns: 1fr;
  }
  .celeb-meter-row {
    grid-template-columns: 1fr;
  }
  .celeb-meter-gauge {
    width: min(132px, 46vw);
    margin: 0 auto;
  }
  .celeb-meter-bars div {
    grid-template-columns: 96px minmax(0, 1fr) 38px;
  }
  .palmistry-card,
  .channel-studio-grid article {
    min-height: 122px;
  }
  .messages-wrap {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
    padding: 16px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .welcome-state {
    width: 100%;
    max-width: 560px;
    margin: 0 auto auto;
    padding: 18px 0 24px;
    text-align: left;
  }
  .welcome-icon {
    display: none;
  }
  .welcome-h {
    font-size: 25px;
    margin-bottom: 8px;
  }
  .welcome-p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .insight-strip {
    margin-bottom: 16px;
  }
  .insight-card {
    min-height: auto;
  }
  .life-pulse {
    gap: 10px;
  }
  .life-pulse-head {
    align-items: flex-start;
  }
  .life-pulse-head h3 {
    font-size: 17px;
  }
  .pulse-score-wrap {
    max-width: 58%;
  }
  .pulse-score {
    width: 44px;
    height: 44px;
  }
  .pulse-grid {
    grid-template-columns: 1fr;
  }
  .synthesis-pulse-panel {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
  }
  .synthesis-section-grid {
    grid-template-columns: 1fr;
  }
  .synthesis-action-row {
    grid-template-columns: 1fr;
  }
  .synthesis-section-card {
    min-height: auto;
  }
  .synthesis-score-grid {
    grid-template-columns: 1fr 1fr;
  }
  .future-center {
    width: 100%;
    gap: 12px;
    margin-bottom: 18px;
  }
  .future-hero h2 {
    font-size: 27px;
  }
  .future-query-form {
    padding: 11px;
  }
  .future-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .future-window-row,
  .future-topic-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .future-window-row::-webkit-scrollbar,
  .future-topic-row::-webkit-scrollbar { display: none; }
  .future-chip,
  .future-topic-btn {
    flex: 0 0 auto;
  }
  .future-run-btn {
    width: 100%;
  }
  .future-starter-grid,
  .future-forecast-grid,
  .future-score-grid,
  .future-detail-grid,
  .future-history-list {
    grid-template-columns: 1fr;
  }
  .future-result {
    padding: 11px;
  }
  .future-result-head {
    align-items: flex-start;
  }
  .future-score-wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .future-result-head h3 {
    font-size: 18px;
  }
  .future-score {
    width: 52px;
    height: 52px;
  }
  .future-candidate-grid {
    grid-template-columns: 1fr;
  }
  .future-feedback {
    align-items: stretch;
  }
  .future-feedback > span,
  .future-feedback-status {
    width: 100%;
  }
  .future-feedback button {
    flex: 1 1 calc(50% - 8px);
  }
  .pulse-card {
    min-height: auto;
  }
  .pulse-detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .msg-user {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 17px 17px 5px 17px;
  }
  .msg-ai {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.68;
  }
  .msg-ai.user-profile-panel {
    width: 100%;
    margin: 0 auto 20px;
    gap: 12px;
  }
  .user-profile-header {
    align-items: flex-start;
  }
  .user-profile-actions {
    flex-direction: column;
  }
  .user-profile-actions .btn-ghost,
  .profile-section-action {
    width: 100%;
  }
  .user-profile-meta span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .profile-read-card {
    padding: 12px;
  }
  .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-source-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .profile-source-detail {
    max-width: 100%;
    white-space: normal;
  }
  .profile-source-status {
    min-width: 0;
    align-self: flex-start;
  }
  .birth-chart-panel {
    padding: 10px;
  }
  .birth-chart-head {
    flex-direction: column;
    gap: 8px;
  }
  .birth-chart-key {
    justify-content: flex-start;
  }
  .birth-chart-grid {
    grid-template-rows: repeat(4, minmax(78px, auto));
  }
  .birth-chart-cell {
    min-height: 78px;
    padding: 6px;
    gap: 6px;
  }
  .birth-chart-center {
    min-height: 132px;
    padding: 10px;
  }
  .birth-chart-center strong {
    font-size: 18px;
  }
  .birth-chart-sign {
    font-size: 11px;
  }
  .birth-chart-house {
    padding: 0 4px;
    font-size: 9px;
  }
  .birth-chart-planet {
    padding: 2px 5px;
  }
  .birth-chart-planet small {
    display: none;
  }
  .kundali-score-card {
    align-items: flex-start;
  }
  .kundali-score-card strong {
    font-size: 24px;
  }
  .kundali-ring {
    width: 60px;
    height: 60px;
  }
  .kundali-breakdown,
  .celebrity-match-grid {
    grid-template-columns: 1fr;
  }
  .celebrity-match-card {
    grid-template-columns: 30px 40px minmax(0, 1fr) auto;
  }
  .msg-meta {
    margin-top: 10px;
  }
  .input-area {
    order: 2;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 27, 42, 0.95);
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .input-wrap {
    max-width: none;
    border-radius: 999px;
    padding: 3px 4px 3px 16px;
  }
  #q {
    font-size: 16px;
    line-height: 1.45;
    padding: 10px 8px 10px 0;
    max-height: 136px;
  }
  .btn-send,
  .btn-voice {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 2px;
  }
  .voice-status {
    max-width: none;
    margin-top: 5px;
    min-height: 13px;
  }
  .disclaimer {
    display: none;
  }
  .modal-veil {
    align-items: flex-end;
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .modal-box {
    max-height: min(88dvh, 720px);
    border-radius: 16px;
  }
  .legal-modal-box {
    max-width: none;
    max-height: min(92dvh, 760px);
  }
  .legal-modal-content {
    padding: 14px 16px 18px;
    font-size: 13px;
  }
  .legal-modal-content h2 {
    font-size: 23px;
  }
  .legal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .legal-footer .btn-primary,
  .legal-open-full {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .map-modal-box {
    max-width: none;
    max-height: min(92dvh, 760px);
  }
  .modal-header {
    padding: 16px 16px 12px;
  }
  .modal-sub {
    padding: 10px 16px;
  }
  .pin-map-body {
    padding: 12px;
  }
  .pin-map-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .pin-map-summary .location-map-link {
    width: 100%;
  }
  .pin-map-search,
  .pin-map-result-list {
    grid-template-columns: 1fr;
  }
  .pin-map-toolbar {
    flex-wrap: wrap;
  }
  .pin-map-coords {
    width: 100%;
    margin-left: 0;
  }
  .pin-map-canvas {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }
  .map-footer {
    justify-content: space-between;
  }
  .sources-list {
    padding: 4px 10px 12px;
  }
  .source-head {
    padding: 13px 12px;
  }
  .source-plus {
    width: 36px;
    height: 36px;
  }
  .connector-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .connector-sync-field .btn-ghost,
  .source-save {
    width: 100%;
    justify-content: center;
  }
  .source-save {
    align-self: stretch;
  }
  .settings-block {
    padding: 14px 16px;
  }
  .settings-row {
    gap: 14px;
    align-items: center;
  }
  .settings-select {
    width: min(48vw, 190px);
    min-height: 36px;
  }
  .settings-action-row {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-action {
    width: 100%;
  }
  .toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .mobile-synthesis-bar button {
    min-width: 0;
    padding: 4px 1px;
  }
  .mtab-label { font-size: 9px; }
  .welcome-h {
    font-size: 23px;
  }
  .settings-row {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-select {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   VEDIC MATCH (standalone page panel)
   ═══════════════════════════════════════════════════════════ */
.vedic-match-loading,
.vedic-match-error {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px; color: var(--muted); font-size: 0.9rem;
}
.vedic-match-panel {
  width: 100%; max-width: 900px; margin: 0 auto; padding: 24px 20px;
}
.vedic-match-header h2 {
  margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; color: var(--gold);
}
.vedic-match-subtitle { color: var(--muted); font-size: 0.85rem; margin: 0 0 16px; }
.vedic-match-controls {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  margin-bottom: 16px;
  overflow: visible;
}
.vedic-match-mode { display: flex; gap: 16px; flex-wrap: wrap; }
.vedic-match-mode label {
  font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--text); padding: 6px 0;
}
.vedic-match-mode input[type="radio"] {
  accent-color: var(--gold); width: 16px; height: 16px;
}
.vedic-match-selects {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  position: relative; z-index: 10; overflow: visible;
}
.vedic-match-selects select {
  -webkit-appearance: menulist; appearance: menulist;
  flex: 1 1 auto; width: auto; min-width: 200px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--void-gray);
  background: var(--surface-container); color: var(--text);
  font-size: 0.85rem; font-family: var(--font-sans);
  cursor: pointer; pointer-events: auto;
  transition: border-color var(--t), box-shadow var(--t);
}
.vedic-match-selects select:focus {
  outline: none; border-color: var(--gold-line);
  box-shadow: 0 0 0 2px rgba(255, 214, 122, 0.15);
}
.vedic-match-selects select option {
  background: var(--surface-container); color: var(--text); padding: 8px;
}
.vedic-match-vs { font-weight: 700; color: var(--purple); font-size: 0.8rem; }
.vedic-match-friend-inputs {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: end;
}
.vedic-match-friend-inputs .field-group {
  display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px;
}
.vedic-match-friend-inputs .field-group label {
  font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em;
}
.vedic-match-friend-inputs .field-group input {
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--void-gray); background: var(--surface-container); color: var(--text);
  font-size: 0.85rem; font-family: var(--font-sans);
}
.vedic-match-type { display: flex; gap: 6px; flex-wrap: wrap; }
.vedic-match-type button {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; font-size: 0.8rem;
  font-family: var(--font-sans); transition: background .2s, border-color .2s, color .2s;
}
.vedic-match-type button:hover { border-color: var(--purple); color: var(--purple); }
.vedic-match-type button.active {
  background: var(--gold-bright); border-color: var(--gold-bright); color: var(--accent-text);
}
.vedic-you-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 16px;
  border-radius: var(--r); border: 1px solid var(--gold-line);
  background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.vedic-you-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vedic-you-copy strong { font-size: 0.95rem; color: var(--gold); }
.vedic-you-copy span { font-size: 0.78rem; color: var(--muted); }
.vedic-match-section { margin-bottom: 20px; }
.vedic-match-section-title {
  margin: 0 0 4px; font-family: var(--font-serif); font-weight: 500;
  font-size: 1rem; letter-spacing: 0.01em;
}
.vedic-match-section-title.good { color: var(--green); }
.vedic-match-section-title.clash { color: #f87171; }
.vedic-match-section-title.low { color: var(--gold); }
.vedic-match-section-note {
  margin: 0 0 10px; font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono);
}
.vedic-match-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
@media (max-width: 600px) {
  .vedic-match-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
.vedic-match-card {
  display: grid; grid-template-columns: auto 32px 1fr auto;
  align-items: center; gap: 8px; padding: 14px 16px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color var(--t), box-shadow var(--t);
}
.vedic-match-card:hover { box-shadow: 0 0 16px var(--nebula-glow); }
.vedic-match-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.40); }
.vedic-match-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.38); }
.vedic-match-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.34); }
.vedic-match-rank { font-weight: 700; font-size: 0.75rem; color: var(--purple); width: 24px; text-align: center; font-family: var(--font-mono); }
.vedic-match-main { grid-column: 3; }
.vedic-match-main strong { display: block; font-size: 0.85rem; color: #FFFFFF; }
.vedic-match-main span { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }
.vedic-match-scores {
  grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap;
}
.vedic-score { font-size: 0.78rem; white-space: nowrap; font-family: var(--font-mono); }
.vedic-score.love { color: #e74c6f; }
.vedic-score.friendship { color: var(--blue); }
.vedic-score.marriage { color: var(--purple); }
.vedic-match-tags {
  grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px;
}
.vedic-match-tags .tag-good { font-size: 0.72rem; color: var(--green); }
.vedic-match-tags .tag-watch { font-size: 0.72rem; color: var(--gold); }
.vedic-match-card { cursor: pointer; }
.vedic-match-card.loading { opacity: 0.6; pointer-events: none; }

/* ---- Image-forward Me-vs-Celebrity cards (reuse Celebrities page look) ---- */
.vedic-match-card.celeb-card-v2 {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0; padding: 0; grid-template-columns: none;
}
.vedic-match-card.celeb-card-v2 .vedic-card-scores {
  display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap;
}
.vedic-match-card.celeb-card-v2 .vedic-card-scores .vedic-score {
  font-size: 0.8rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.vedic-card-foot {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 12px;
}
.vedic-card-foot .tag-good { font-size: 0.7rem; color: var(--green); }
.vedic-card-foot .tag-watch { font-size: 0.7rem; color: var(--gold); }

/* ---- Celebrity vs Celebrity: Tinder-style example pairings ---- */
.celeb-pair-examples { margin-top: 16px; }
.celeb-pair-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 10px;
}
.celeb-pair-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; text-align: left;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.celeb-pair-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.celeb-pair-card[data-tone="green"] { border-color: rgba(46, 111, 78, 0.5); }
.celeb-pair-card[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.45); }
.celeb-pair-card[data-tone="red"] { border-color: rgba(180, 35, 52, 0.45); }
.celeb-pair-faces { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.celeb-pair-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.celeb-pair-side .celeb-card-media { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; }
.celeb-pair-name {
  font-size: 0.8rem; font-weight: 600; color: #fff; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.celeb-pair-score {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; font-family: var(--font-mono);
  color: #fff; background: rgba(184, 124, 12, 0.9); box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.celeb-pair-card[data-tone="green"] .celeb-pair-score { background: rgba(46, 111, 78, 0.92); }
.celeb-pair-card[data-tone="red"] .celeb-pair-score { background: rgba(180, 35, 52, 0.92); }
.celeb-pair-cta { font-size: 0.72rem; color: var(--gold); text-align: center; font-family: var(--font-mono); }

/* ---- Celebrity pair: deep analysis result ---- */
.vedic-pair-result { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.vedic-pair-hero {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--card);
}
.vedic-pair-hero[data-tone="green"] { border-color: rgba(46, 111, 78, 0.5); }
.vedic-pair-hero[data-tone="yellow"] { border-color: rgba(184, 124, 12, 0.45); }
.vedic-pair-hero[data-tone="red"] { border-color: rgba(180, 35, 52, 0.45); }
.vedic-pair-hero .celeb-pair-side .celeb-card-media { width: 100%; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; }
.vedic-pair-bigscore { display: flex; flex-direction: column; align-items: center; }
.vedic-pair-score-val { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; font-family: var(--font-mono); }
.vedic-pair-score-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.vedic-pair-verdict { font-family: var(--font-serif); font-size: 1.05rem; color: #fff; text-align: center; margin: 0; }
.vedic-pair-prob {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.vedic-pair-prob-val { font-size: 1.5rem; font-weight: 800; color: var(--gold); font-family: var(--font-mono); }
.vedic-pair-prob-label { font-size: 0.8rem; color: var(--muted); }
.vedic-pair-block { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.vedic-pair-block h4 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 0.92rem; color: var(--gold); }
.vedic-pair-block ul { margin: 0; padding-left: 18px; }
.vedic-pair-block li { font-size: 0.88rem; color: var(--text); margin-bottom: 6px; }
.vedic-pair-block.real-world { border-left: 3px solid var(--purple); }
.vedic-pair-block.real-world p { margin: 0; font-size: 0.88rem; color: var(--text); }
.vedic-pair-guna summary { cursor: pointer; font-size: 0.82rem; color: var(--gold); font-family: var(--font-mono); }
.vedic-pair-guna .vedic-guna-table { margin-top: 10px; }
.vedic-pair-disclaimer { font-size: 0.72rem; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 480px) {
  .vedic-pair-score-val { font-size: 1.9rem; }
}
.vedic-match-detail {
  grid-column: 1 / -1; margin-top: 10px; padding: 16px;
  border-top: 1px solid var(--border); animation: fadeIn 0.2s ease;
}
.vedic-match-detail h4 {
  font-family: var(--font-serif); font-size: 0.9rem; color: var(--gold); margin: 0 0 10px;
}
.vedic-detail-scores {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.vedic-detail-scores .score-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--surface-container); border: 1px solid var(--border);
}
.vedic-detail-scores .score-pill .score-value {
  font-size: 1.4rem; font-weight: 700; font-family: var(--font-mono);
}
.vedic-detail-scores .score-pill .score-label {
  font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.vedic-detail-scores .score-pill.love .score-value { color: #e74c6f; }
.vedic-detail-scores .score-pill.friendship .score-value { color: var(--blue); }
.vedic-detail-scores .score-pill.marriage .score-value { color: var(--purple); }
.vedic-guna-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem; margin-top: 8px;
}
.vedic-guna-table th {
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}
.vedic-guna-table td {
  padding: 6px 8px; border-bottom: 1px solid rgba(48, 54, 61, 0.25); color: var(--text);
}
.vedic-guna-table tr:last-child td { border-bottom: none; font-weight: 600; color: var(--gold); }
.vedic-detail-insight {
  margin-top: 10px; font-size: 0.8rem; color: var(--muted); line-height: 1.5;
}
.vedic-match-locked { padding: 20px; text-align: center; color: var(--muted); }
.vedic-match-empty { text-align: center; padding: 20px; color: var(--muted); }
.vedic-match-disclaimer { font-size: 0.72rem; color: var(--muted); margin-top: 12px; font-family: var(--font-mono); }
.vedic-match-result-single {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.vedic-match-result-single h3 { margin: 0 0 8px; font-family: var(--font-serif); color: var(--purple); }
.vedic-score-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.vedic-breakdown summary { cursor: pointer; color: var(--purple); font-size: 0.82rem; }
.vedic-breakdown ul { padding-left: 18px; font-size: 0.8rem; }

/* ── Topic Tiles (Ask Me Anything) ── */
.topic-tiles-section { margin-top: 28px; }
.topic-tiles-heading {
  font-size: 0.88rem; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 12px; text-align: center;
}
.topic-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 32px;
}
.topic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(158, 142, 125, 0.15);
  border-radius: 16px;
  background: rgba(29, 32, 36, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              background 0.4s ease,
              box-shadow 0.4s ease;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03), 0 4px 24px rgba(0, 0, 0, 0.2);
}
.topic-tile:hover {
  border-color: var(--gold);
  background: radial-gradient(circle at center, rgba(255, 185, 84, 0.08) 0%, rgba(29, 32, 36, 0.6) 100%);
  transform: translateY(-5px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 12px 30px rgba(255, 185, 84, 0.12);
}
.topic-tile:active {
  transform: translateY(-2px);
}
.topic-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}
.topic-tile:hover .topic-tile-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 185, 84, 0.25);
}
.topic-tile-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .topic-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .topic-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 540px;
    gap: 10px;
  }
  .topic-tile {
    padding: 12px 8px;
  }
  .topic-tile-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  .topic-tile-label {
    font-size: 0.7rem;
  }
}
@media (max-width: 480px) {
  .topic-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .topic-tile {
    padding: 10px 4px;
  }
  .topic-tile-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
  .topic-tile-label {
    font-size: 0.65rem;
  }
}

/* ── Home Synthesis Tabs ── */
.home-synthesis-tabs { margin: 24px 0 16px; }
.home-tab-bar {
  display: flex; gap: 2px; background: var(--border); border-radius: 10px; padding: 3px;
  margin-bottom: 16px;
}
.home-tab {
  flex: 1; padding: 8px 4px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; background: transparent; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.home-tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.home-tab:hover:not(.active) { color: var(--text); }
.home-tab-content { min-height: 120px; }
.home-tab-loader { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.85rem; }
.home-tab-error { text-align: center; padding: 30px 20px; color: var(--red); font-size: 0.85rem; }
.home-synthesis-panel { animation: pulse-fade-in 0.3s ease; }
.home-synthesis-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.home-refresh-btn, .home-deep-btn { font-size: 0.78rem; padding: 6px 14px; }

/* ── Home Remedy Section ── */
.home-remedy-section {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  background: var(--card, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
}
.home-remedy-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.home-remedy-head h4 { margin: 0; font-size: 0.88rem; font-family: var(--font-serif); color: var(--green); }
.home-remedy-icon { color: var(--green); flex-shrink: 0; }
.home-remedy-list { margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.6; color: var(--text); }
.home-remedy-list li { margin-bottom: 4px; color: var(--text); }

/* ── Profile Numerology Cards ── */
.profile-numerology-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.profile-num-card {
  padding: 12px; border-radius: var(--r); background: var(--bg);
  border: 1px solid var(--border); text-align: center;
}
.profile-num-value { font-size: 1.8rem; font-weight: 700; font-family: var(--font-serif); color: var(--accent); line-height: 1.2; }
.profile-num-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 2px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.profile-num-desc { font-size: 0.78rem; line-height: 1.45; color: var(--text); margin: 0; }
.profile-section-note { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 8px 0 4px; }

/* ── Profile Palmistry ── */
.profile-palm-grid { display: grid; gap: 10px; margin: 12px 0; }
.profile-palm-row {
  padding: 10px 12px; border-radius: var(--r); background: var(--bg);
  border: 1px solid var(--border);
}
.profile-palm-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.profile-palm-value { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-left: 8px; }
.profile-palm-meaning { font-size: 0.78rem; color: var(--text); margin: 4px 0 0; line-height: 1.45; }

/* ── Life Journey Graph ── */
.life-graph-wrap { overflow-x: auto; margin: 12px 0; }
.life-graph-svg { width: 100%; max-width: 700px; height: auto; display: block; margin: 0 auto; }
.life-graph-axis { font-size: 8px; fill: var(--muted); font-family: var(--font-sans); }
.life-graph-label { font-size: 7.5px; fill: var(--muted); font-family: var(--font-sans); }
.life-graph-label-active { fill: var(--accent); font-weight: 700; }
.life-graph-now { font-size: 9px; fill: var(--accent); font-weight: 700; font-family: var(--font-sans); }

@media (max-width: 600px) {
  .profile-numerology-grid { grid-template-columns: 1fr; }
  .home-tab-bar { gap: 1px; }
  .home-tab { font-size: 0.76rem; padding: 7px 2px; }
}

/* ── Vedic Tools Tab & Content Styles ── */
.vedic-tools-panel {
  width: min(980px, 100%);
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  animation: fadeUp 0.3s ease;
}

.vedic-tools-loading,
.vedic-tools-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.vedic-tools-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 8px;
  position: relative;
}

.vedic-tools-header h2 {
  font-family: 'Libre Caslon Text', serif;
  font-size: clamp(24px, 4.5vw, 36px);
  margin: 8px 0 4px;
  font-weight: 700;
  line-height: 1.1;
}

.vedic-tools-sub {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Vedic Tools Planner & Calendar Date Picker */
.vt-planner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.vt-datepicker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vt-datepicker-wrap label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.vt-date-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t);
}

.vt-date-input:focus {
  border-color: var(--gold);
}

.vt-calendar-year {
  display: flex;
  align-items: center;
}

.vt-cal-badge {
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Event Planner & Q&A Sections */
.vt-event-planner,
.vt-qa-section {
  background: var(--card-bg, rgba(20, 16, 10, 0.45));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vt-event-planner h4,
.vt-qa-section h4 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
}

.vt-planner-note,
.vt-qa-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.vt-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 80px;
  resize: vertical;
  outline: none;
  transition: border-color var(--t);
}

.vt-textarea:focus {
  border-color: var(--gold);
}

.vt-planner-submit-btn,
.vt-qa-submit-btn {
  background: var(--gold);
  color: #140F08;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity var(--t);
}

.vt-planner-submit-btn:hover,
.vt-qa-submit-btn:hover {
  opacity: 0.9;
}

.vt-qa-input-wrap {
  display: flex;
  gap: 8px;
}

.vt-qa-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t);
}

.vt-qa-input:focus {
  border-color: var(--gold);
}

.vt-qa-submit-btn {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vedic-tools-tab-bar {
  display: flex;
  gap: 4px;
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.vedic-tools-tab-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.vt-tab {
  flex: 1;
  min-width: max-content;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vt-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vt-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(246, 248, 252, 0.035);
}

.vedic-tools-content {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 250px;
}

.vt-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pulse-fade-in 0.3s ease;
}

.vt-section h3 {
  margin: 0;
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

/* Panchang & Grid Table */
.vt-grid-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.vt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.vt-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vt-row-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Muhurat Badge & Hero */
.vt-muhurat-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
  border-radius: var(--r);
  border-width: 1px;
  border-style: solid;
  max-width: max-content;
}

.vt-muhurat-badge[data-quality="green"] {
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green);
}

.vt-muhurat-badge[data-quality="yellow"] {
  border-color: color-mix(in srgb, var(--yellow, var(--gold)) 30%, transparent);
  background: color-mix(in srgb, var(--yellow, var(--gold)) 8%, transparent);
  color: var(--gold);
}

.vt-muhurat-badge[data-quality="red"] {
  border-color: color-mix(in srgb, var(--red) 30%, transparent);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
}

.vt-muhurat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.vt-muhurat-quality {
  font-size: 1.15rem;
  font-weight: 800;
}

.vt-muhurat-reason {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

.vt-muhurat-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  gap: 8px;
}

.vt-muhurat-hero[data-quality="green"] { background: linear-gradient(180deg, color-mix(in srgb, var(--green) 12%, transparent), transparent); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.vt-muhurat-hero[data-quality="yellow"] { background: linear-gradient(180deg, color-mix(in srgb, var(--yellow) 12%, transparent), transparent); border-color: color-mix(in srgb, var(--yellow) 25%, transparent); }
.vt-muhurat-hero[data-quality="red"] { background: linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, transparent), transparent); border-color: color-mix(in srgb, var(--red) 25%, transparent); }

.vt-muhurat-score {
  font-family: 'Libre Caslon Text', serif;
  font-size: 2rem;
  font-weight: 700;
}

.vt-muhurat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

/* Favorable & Avoid tags */
.vt-favorable, .vt-avoid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vt-favorable h4, .vt-avoid h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.vt-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vt-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.vt-tag-good {
  background: rgba(46, 111, 78, 0.08);
  border-color: rgba(46, 111, 78, 0.2);
  color: var(--green);
}

.vt-tag-bad {
  background: rgba(217, 83, 79, 0.08);
  border-color: rgba(217, 83, 79, 0.2);
  color: var(--red);
}

.vt-tag-retro {
  background: rgba(230, 185, 77, 0.08);
  border-color: rgba(230, 185, 77, 0.2);
  color: var(--gold);
}

.vt-tag-active {
  background: var(--gold);
  color: var(--accent-text);
  border-color: var(--gold);
}

.vt-ask-btn {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Doshas */
.vt-dosha-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vt-dosha-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 8px;
}

.vt-dosha-present {
  border-color: color-mix(in srgb, var(--red) 25%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 8%, transparent), transparent);
}

.vt-dosha-clear {
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 8%, transparent), transparent);
}

.vt-dosha-head {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.vt-dosha-icon {
  font-size: 1.4rem;
}

.vt-dosha-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.vt-dosha-status {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.vt-dosha-present .vt-dosha-status { color: var(--red); }
.vt-dosha-clear .vt-dosha-status { color: var(--green); }

.vt-dosha-detail {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.vt-dosha-remedy {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* Transits */
.vt-retro-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(230, 185, 77, 0.04);
}

.vt-retro-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.vt-key-planets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vt-key-planets h4, .vt-transit-houses h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.vt-transit-houses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vt-house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vt-house-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
  gap: 3px;
}

.vt-house-num {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--muted);
}

.vt-house-planet {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.vt-house-sign {
  font-size: 0.72rem;
  color: var(--text);
}

/* Yogas */
.vt-yoga-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vt-yoga-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vt-yoga-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-yoga-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.vt-yoga-type {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--gold);
}

.vt-yoga-planets {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.vt-yoga-effect {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

/* Festivals */
.vt-festival-list {
  display: grid;
  gap: 8px;
}

.vt-festival-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.vt-festival-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 100px;
}

.vt-festival-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.vt-festival-row .vt-tag {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* Baby names */
.vt-baby {
  align-items: center;
  text-align: center;
}

.vt-baby-intro {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.vt-baby-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(230, 185, 77, 0.05);
  border: 1px solid rgba(230, 185, 77, 0.15);
  margin: 8px 0;
  gap: 4px;
}

.vt-baby-syllable-main {
  font-family: 'Libre Caslon Text', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.vt-baby-syllable-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.vt-baby-all {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.vt-baby-all h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

/* Lal Kitab */
.vt-lalkitab-intro {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.vt-lalkitab-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vt-lalkitab-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vt-lalkitab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-lalkitab-planet {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}

.vt-lalkitab-issue {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
}

.vt-lalkitab-pos {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.vt-lalkitab-remedy {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.vt-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 24px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vt-grid-table { grid-template-columns: 1fr; }
  .vt-dosha-cards { grid-template-columns: 1fr; }
  .vt-house-grid { grid-template-columns: repeat(3, 1fr); }
  .vt-yoga-list { grid-template-columns: 1fr; }
  .vt-lalkitab-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .vt-house-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Panchanga tradition picker */
.pt-picker { margin: 0 0 14px; }
.pt-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pt-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--sep, rgba(0,0,0,.1));
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pt-pill:hover { border-color: var(--acc); color: var(--acc); }
.pt-pill.active {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
}
.pt-detail {
  background: var(--card-alt, rgba(99,102,241,.04));
  border: 1px solid var(--sep, rgba(0,0,0,.06));
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.pt-detail-label { display: block; font-weight: 700; font-size: 0.88rem; }
.pt-detail-region { display: block; font-size: 0.75rem; color: var(--acc); margin: 2px 0 4px; }
.pt-detail-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }
.pt-info-toggle {
  background: none;
  border: none;
  color: var(--acc);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.pt-info-toggle:hover { text-decoration: underline; }
.pt-info-panel {
  display: none;
  background: var(--card, #fff);
  border: 1px solid var(--sep, rgba(0,0,0,.08));
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}
.pt-info-panel.open { display: block; }
.pt-info-panel h4 { margin: 0 0 8px; font-size: 0.92rem; }
.pt-info-panel p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin: 0 0 10px; }
.pt-guide { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.pt-guide-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--card-alt, rgba(99,102,241,.04));
}
.pt-guide-q { flex: 1; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.pt-guide-a { font-size: 0.8rem; font-weight: 700; color: var(--acc); white-space: nowrap; }
.pt-note { font-size: 0.72rem; color: var(--t3, #999); font-style: italic; margin-top: 6px; }

@media (max-width: 480px) {
  .pt-pills { gap: 4px; }
  .pt-pill { padding: 4px 9px; font-size: 0.72rem; }
  .pt-guide-row { flex-direction: column; gap: 2px; }
  .pt-guide-a { white-space: normal; }
}

/* Gantala annual predictions */
.gt-annual {
  margin: 16px 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--sep, rgba(0,0,0,.08));
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, rgba(245,158,11,.04) 100%);
}
.gt-annual-title { margin: 0 0 4px; font-size: 0.92rem; }
.gt-annual-sub { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }
.gt-te { font-family: 'Noto Sans Telugu', sans-serif; }
.gt-officers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.gt-officer-row {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--card, #fff);
  border: 1px solid var(--sep, rgba(0,0,0,.06));
}
.gt-officer-role { font-size: 0.78rem; font-weight: 700; color: var(--acc); }
.gt-officer-hint { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.gt-annual-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.gt-sravanam-btn {
  border: 1.5px solid var(--acc) !important;
  font-size: 0.85rem !important;
  padding: 10px 16px !important;
}

@media (max-width: 480px) {
  .gt-officers { grid-template-columns: 1fr; }
}

/* Ashtakavarga tab */
.av-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.av-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; white-space: nowrap; }
.av-table th, .av-table td { padding: 5px 7px; text-align: center; border: 1px solid var(--sep, rgba(0,0,0,.08)); }
.av-table th { background: var(--acc); color: #fff; font-weight: 600; font-size: 0.72rem; }
.av-table .av-planet { text-align: left; font-weight: 600; }
.av-table .av-total { font-weight: 700; background: var(--card-alt, rgba(99,102,241,.06)); }
.av-table .av-strong { color: var(--green, #16a34a); font-weight: 700; }
.av-table .av-weak { color: var(--red, #dc2626); }
.av-table .av-sarva-row { background: var(--card-alt, rgba(99,102,241,.06)); font-weight: 600; }

.av-transit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.av-transit-card { background: var(--card, #fff); border: 1px solid var(--sep, rgba(0,0,0,.08)); border-radius: 10px; padding: 10px 12px; }
.av-transit-planet { font-weight: 700; font-size: 0.88rem; display: block; }
.av-transit-sign { font-size: 0.78rem; color: var(--muted); }
.av-transit-bar { height: 6px; background: var(--sep, rgba(0,0,0,.08)); border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.av-transit-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.av-transit-fill.av-green { background: var(--green, #16a34a); }
.av-transit-fill.av-amber { background: var(--amber, #f59e0b); }
.av-transit-fill.av-red { background: var(--red, #dc2626); }
.av-transit-score { font-size: 0.75rem; color: var(--muted); }


/* Regional Calendar tab */
.vt-rc { display: flex; flex-direction: column; gap: 14px; }

.vt-rc-tradition-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vt-rc-trad-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
}
.vt-rc-trad-btn:hover { border-color: var(--gold); color: var(--text); }
.vt-rc-trad-btn.active {
  border-color: var(--gold);
  background: rgba(255, 185, 84, 0.1);
  color: var(--gold);
}
.vt-rc-trad-flag { font-size: 12px; opacity: 0.7; }
.vt-rc-trad-label { white-space: nowrap; }
.vt-rc-trad-desc {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.vt-rc-trad-btn.active .vt-rc-trad-desc { color: var(--gold); opacity: 0.7; }

.vt-rc-picker-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.vt-rc-today-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 185, 84, 0.25);
  background: linear-gradient(135deg, rgba(255,185,84,0.08) 0%, rgba(255,185,84,0.02) 100%);
}
.vt-rc-today-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.vt-rc-today-day {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.vt-rc-today-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vt-rc-today-center {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.vt-rc-today-tithi {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.vt-rc-today-nak {
  font-size: 12px;
  color: var(--muted);
}
.vt-rc-today-special {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}
.vt-rc-today-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.vt-rc-today-sunrise,
.vt-rc-today-sunset {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.vt-rc-picker-section {
  margin-top: 4px;
}

.vt-rc-legend-en {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
}

.vt-rc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.vt-rc-nav-btn {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s;
}
.vt-rc-nav-btn:hover { border-color: var(--gold); }
.vt-rc-nav-label {
  font-size: 15px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

.vt-rc-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vt-rc-month-local {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.vt-rc-month-en {
  font-size: 13px;
  color: var(--muted);
}
.vt-rc-year-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 185, 84, 0.12);
  color: var(--gold);
}

.vt-rc-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.vt-rc-wh {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 6px 0;
}
.vt-rc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.vt-rc-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 60px;
}
.vt-rc-day:hover { border-color: var(--border); background: rgba(255,255,255,0.03); }
.vt-rc-empty { cursor: default; }
.vt-rc-empty:hover { border-color: transparent; background: none; }
.vt-rc-today {
  border-color: var(--gold) !important;
  background: rgba(255, 185, 84, 0.08);
}
.vt-rc-amavasya { background: rgba(100, 60, 180, 0.1); }
.vt-rc-pournami { background: rgba(255, 220, 100, 0.08); }
.vt-rc-ekadashi { background: rgba(46, 111, 78, 0.08); }
.vt-rc-day-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.vt-rc-day-tithi {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.vt-rc-day-nak {
  font-size: 9px;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vt-rc-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 8px;
  line-height: 1;
}
.vt-rc-badge-ama { color: #a78bfa; }
.vt-rc-badge-pour { color: #fbbf24; }
.vt-rc-badge-eka { color: #4ade80; }

.vt-rc-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}
.vt-rc-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}
.vt-rc-dot-amavasya { background: #a78bfa; }
.vt-rc-dot-pournami { background: #fbbf24; }
.vt-rc-dot-ekadashi { background: #4ade80; }

.vt-rc-info-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  margin-left: 6px;
  transition: background 0.15s, color 0.15s;
}
.vt-rc-info-btn:hover { background: var(--gold); color: var(--bg); }

.vt-rc-info-panel {
  background: var(--surface-container, #1d2024);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.vt-rc-info-panel h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--gold);
}
.vt-rc-info-panel h4:first-child { margin-top: 0; }
.vt-rc-info-panel p { margin: 0 0 8px; color: var(--muted); }

.vt-rc-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.vt-rc-info-label {
  font-weight: 600;
  color: var(--text);
}
.vt-rc-info-code {
  font-weight: 700;
  font-family: monospace;
  color: var(--gold);
}
.vt-rc-info-tithis {
  grid-template-columns: 28px 1fr;
}
.vt-rc-info-tithis span:nth-child(odd) {
  font-weight: 700;
  text-align: right;
  color: var(--gold);
}

.vt-rc-specials {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.vt-rc-special-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.vt-rc-special-date {
  font-weight: 600;
  color: var(--text);
  min-width: 50px;
}
.vt-rc-special-name {
  color: var(--gold);
  font-weight: 600;
}
.vt-rc-special-info {
  color: var(--muted);
  font-size: 11px;
}
.vt-rc-special-hl { color: var(--gold); font-weight: 600; }

.vt-rc-day-detail {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 185, 84, 0.2);
  background: rgba(255, 185, 84, 0.04);
  animation: fadeIn 0.15s ease;
}
.vt-rc-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.vt-rc-detail-head strong { color: var(--text); }
.vt-rc-detail-head span { color: var(--muted); font-size: 12px; }
.vt-rc-detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12.5px;
}
.vt-rc-dl { color: var(--muted); font-weight: 600; }
.vt-rc-dv { color: var(--text); }
.vt-rc-use-date-btn {
  all: unset;
  cursor: pointer;
  display: block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 185, 84, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s;
}
.vt-rc-use-date-btn:hover { background: rgba(255, 185, 84, 0.22); }

.vt-rc-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .vt-rc-day { padding: 6px 2px; min-height: 50px; }
  .vt-rc-day-num { font-size: 12px; }
  .vt-rc-day-nak { display: none; }
  .vt-rc-trad-btn { padding: 6px 10px; font-size: 11px; }
  .vt-rc-trad-desc { font-size: 9px; }
  .vt-rc-today-card { padding: 12px 14px; gap: 12px; }
  .vt-rc-today-day { font-size: 24px; }
  .vt-rc-today-tithi { font-size: 13px; }
  .vt-rc-tradition-bar { gap: 6px; }
}

/* Hora Clock styles */
.vt-hora-clock {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230, 185, 77, 0.08), rgba(246, 248, 252, 0.035)), var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vt-hora-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vt-hora-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.vt-hora-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--gold);
}

.vt-hora-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vt-hora-lord {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vt-hora-planet-symbol {
  font-size: 2.2rem;
  line-height: 1;
}

.vt-hora-planet-name {
  display: block;
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.vt-hora-range {
  font-size: 0.8rem;
  color: var(--muted);
}

.vt-hora-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  padding-top: 4px;
}

/* ── Engine Architecture Card (Welcome Page Revamp) ── */
.engine-architecture-card {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(29, 32, 36, 0.75), rgba(17, 20, 23, 0.95));
  text-align: left;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  animation: pulse-fade-in 0.4s ease;
}

.engine-card-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(158, 142, 125, 0.2);
  padding-bottom: 16px;
}

.engine-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 4px;
}

.engine-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.engine-lead {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.engine-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.engine-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.engine-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.engine-item h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.engine-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.88;
}

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

/* ═══════════════════════════════════════════════════════════
   GOOGLE STITCH DESIGN SYSTEM & COLLAPSIBLE PROFILE CARDS
   ═══════════════════════════════════════════════════════════ */

/* Collapsible Profile Cards styling */
.collapsible-card.profile-read-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.collapsible-card.profile-read-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.collapsible-card .card-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.01);
  transition: background var(--t);
}
.collapsible-card .card-header-toggle:hover {
  background: var(--hover);
}
.collapsible-card .card-header-toggle h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.collapsible-card .card-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.collapsible-card .card-header-right span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.collapsible-card .card-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-container);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: transform var(--t), border-color var(--t), background var(--t);
  pointer-events: none;
}
.collapsible-card.expanded .card-toggle-icon {
  transform: rotate(45deg);
  border-color: var(--gold-bright);
  background: var(--gold-dim);
}
.collapsible-card .card-body-collapsible {
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
}
.collapsible-card.expanded .card-body-collapsible {
  padding: 0 16px 20px;
  max-height: 3500px;
  opacity: 1;
}

/* Google Stitch Dashboard styles */
.stitch-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
  animation: fadeUp 0.6s var(--t) both;
}

/* Home trust strip */
.home-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
  margin: -8px 0 4px;
  flex-wrap: wrap;
}
.home-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.home-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.stitch-glass-card {
  background: rgba(246, 248, 252, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(158, 142, 125, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.stitch-glass-card:hover {
  border-color: rgba(255, 185, 84, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.stitch-hero-card {
  border: 1px solid rgba(180, 121, 22, 0.35);
  background-image: radial-gradient(circle at 75% 50%, rgba(180, 121, 22, 0.08) 0%, rgba(17, 20, 23, 0.4) 100%);
  min-height: 240px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 768px) {
  .stitch-hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px;
  }
}

.outer-glow-gold {
  box-shadow: 0 0 32px 0 rgba(180, 121, 22, 0.12);
}

/* Yantra spinner celestial graphic */
.yantra-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.yantra-spinner {
  width: 180px;
  height: 180px;
  color: var(--gold);
  opacity: 0.22;
  animation: spinSlow 30s linear infinite;
  pointer-events: none;
}
.yantra-spinner-inner {
  position: absolute;
  width: 110px;
  height: 110px;
  color: var(--purple);
  opacity: 0.15;
  animation: spinSlowReverse 22s linear infinite;
  pointer-events: none;
}
.yantra-avatar-wrap {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 185, 84, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yantra-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gold-glow);
}
.yantra-orb-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.yantra-orb-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

/* Telemetry Grid for life domains */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.telemetry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
}
.telemetry-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.telemetry-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.telemetry-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.telemetry-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.telemetry-status-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.telemetry-status-badge[data-status="resonant"],
.telemetry-status-badge[data-status="harmonic"],
.telemetry-status-badge[data-status="green"] {
  background: rgba(120, 163, 133, 0.15);
  color: var(--green);
  border: 1px solid rgba(120, 163, 133, 0.3);
}
.telemetry-status-badge[data-status="stable"],
.telemetry-status-badge[data-status="yellow"] {
  background: rgba(255, 185, 84, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 185, 84, 0.3);
}
.telemetry-status-badge[data-status="caution"],
.telemetry-status-badge[data-status="red"] {
  background: rgba(229, 152, 155, 0.15);
  color: var(--red);
  border: 1px solid rgba(229, 152, 155, 0.3);
}

.telemetry-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0;
  flex-grow: 1;
}

.telemetry-progress-wrap {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.telemetry-progress-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.telemetry-progress-track {
  width: 90px;
  height: 4px;
  background: var(--surface-container-high);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.telemetry-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease-out;
}
.telemetry-progress-fill[data-tone="green"] {
  background: var(--green);
  box-shadow: 0 0 6px rgba(120, 163, 133, 0.6);
}
.telemetry-progress-fill[data-tone="yellow"] {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(255, 185, 84, 0.6);
}
.telemetry-progress-fill[data-tone="red"] {
  background: var(--red);
  box-shadow: 0 0 6px rgba(229, 152, 155, 0.6);
}

/* Quick CTAs and Previews */
.stitch-dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .stitch-dashboard-row {
    grid-template-columns: 1fr;
  }
}

.blueprint-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.blueprint-preview-cell {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: transform var(--t);
}
.blueprint-preview-cell:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
}
.blueprint-preview-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.blueprint-preview-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.blueprint-preview-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* Palm progress row layout */
.palm-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.palm-preview-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.palm-preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.palm-preview-label {
  color: var(--text);
  font-weight: 500;
}
.palm-preview-value {
  color: var(--gold);
  font-weight: 700;
}
.palm-preview-track {
  width: 100%;
  height: 6px;
  background: var(--surface-container-high);
  border-radius: 3px;
  overflow: hidden;
}
.palm-preview-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(255, 185, 84, 0.5);
  transition: width 1s ease-out;
}

/* Remedy styling */
.remedy-card {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-dim) 0%, transparent 100%);
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
}
.remedy-card h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.remedy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.remedy-list li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}
.remedy-list li::before {
  content: "✦";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 10px;
}

/* Quick Actions CTA */
.quick-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.quick-actions-bar button,
.quick-actions-bar a {
  flex: 1;
  text-align: center;
}
/* ── Custom Dropdown Datepicker ── */
.vt-datepicker-container {
  position: relative;
  display: inline-block;
}

.vt-datepicker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  min-height: 38px;
}

.vt-datepicker-trigger:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(255, 185, 84, 0.15);
}

.vt-datepicker-trigger .vt-cal-icon {
  font-size: 1.15rem;
  color: var(--gold);
  display: flex;
  align-items: center;
}

.vt-datepicker-trigger .vt-arrow-icon {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

/* Rotate arrow when active */
.vt-datepicker-container.active .vt-datepicker-trigger .vt-arrow-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.vt-datepicker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: 320px;
  background: rgba(20, 24, 33, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 185, 84, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  padding: 4px;
}

.vt-datepicker-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.vt-datepicker-dropdown .vt-calendar-widget {
  background: transparent;
  border: none;
  max-width: 100%;
  padding: 12px;
}

/* ── Vedic Calendar Widget styling ── */
.vt-calendar-widget {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  max-width: 320px;
  width: 100%;
}
.vt-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.vt-cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.vt-cal-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 185, 84, 0.05);
}
.vt-calendar-month-year {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.vt-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--muted);
}
.vt-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.vt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.vt-cal-day:hover {
  background: rgba(255, 185, 84, 0.15);
  color: var(--gold);
}
.vt-cal-day.faded {
  opacity: 0.3;
}
.vt-cal-day.selected {
  background: var(--gold) !important;
  color: #140F08 !important;
  font-weight: 700;
  box-shadow: var(--gold-glow);
}
.vt-cal-day.today {
  border: 1px solid var(--gold);
  box-sizing: border-box;
}
.vt-cal-day .day-num {
  line-height: 1;
}

.vt-planner-bar-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 600px) {
  .vt-planner-bar-grid {
    grid-template-columns: 1fr;
  }
}
.vt-calendar-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Event Planner and Q&A block styling */
.vt-event-planner,
.vt-qa-section {
  background: rgba(246, 248, 252, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}
.vt-event-planner h4,
.vt-qa-section h4 {
  font-family: 'Libre Caslon Text', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 4px 0;
}
.vt-planner-note,
.vt-qa-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px 0;
}
.vt-textarea {
  width: 100%;
  min-height: 70px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.vt-textarea:focus,
.vt-qa-input:focus {
  border-color: var(--gold);
}
.vt-planner-submit-btn,
.vt-qa-submit-btn {
  background: var(--gold);
  color: #140F08;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vt-planner-submit-btn:hover,
.vt-qa-submit-btn:hover {
  opacity: 0.9;
}
.vt-qa-input-wrap {
  display: flex;
  gap: 8px;
}
.vt-qa-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

/* Redesigned Life Journey Graph elements */
.life-aspect-toggles-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.life-aspect-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text);
  user-select: none;
  transition: opacity 0.2s;
}
.life-aspect-toggle:hover {
  opacity: 0.85;
}
.life-aspect-checkbox {
  display: none;
}
.custom-checkbox {
  width: 14px;
  height: 14px;
  border: 2px solid var(--aspect-color);
  border-radius: 3px;
  position: relative;
  display: inline-block;
  transition: background-color 0.2s;
  box-sizing: border-box;
}
.life-aspect-checkbox:checked + .custom-checkbox {
  background-color: var(--aspect-color);
}
.life-aspect-checkbox:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 7px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.aspect-label-text {
  font-weight: 600;
}
.life-event-dot-group {
  cursor: pointer;
}
.life-event-pulse {
  animation: pulse-ring 2s infinite;
  transform-origin: center;
  pointer-events: none;
}
.life-event-dot-group:has(.life-event-dot-active) .life-event-pulse {
  animation: none;
  opacity: 0;
}
@keyframes pulse-ring {
  0% {
    r: 5px;
    opacity: 0.5;
  }
  100% {
    r: 12px;
    opacity: 0;
  }
}
.life-event-dot {
  transition: r 0.2s, opacity 0.2s;
}
.life-event-dot:hover {
  r: 6;
  opacity: 0.9;
}
/* ── Redesigned Life Graph Elements ── */
.life-graph-even-year {
  transform-box: fill-box;
}
.life-expectancy-badge {
  animation: fadeUp 0.3s ease;
}
.life-expectancy-dot-pulse {
  animation: expectancy-pulse 2.5s infinite;
  transform-origin: center;
}
@keyframes expectancy-pulse {
  0% {
    r: 3px;
    opacity: 1;
  }
  50% {
    r: 6px;
    opacity: 0.4;
  }
  100% {
    r: 3px;
    opacity: 1;
  }
}

/* ── Life Event Detail Panel ── */
.life-event-detail-panel {
  transition: all 0.3s ease;
}
.life-event-detail-panel.hidden {
  display: none;
}
.life-event-detail-card {
  position: relative;
  background: var(--surface-container-low);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  animation: fadeUp 0.3s ease;
}
.life-event-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.life-event-detail-close:hover {
  color: var(--text);
}
.life-event-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.life-event-detail-aspect {
  font-weight: 700;
  letter-spacing: 0.05em;
}
.life-event-detail-meta {
  color: var(--muted);
}
.life-event-detail-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: normal;
}
.life-event-detail-desc {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--text-variant);
  line-height: 1.5;
}
.life-event-detail-astrology-note {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.45;
}

.life-event-detail-family-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(255, 214, 122, 0.08);
  border: 1px solid rgba(255, 214, 122, 0.25);
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.45;
}
.life-event-detail-family-note strong { color: var(--gold); }

.profile-section-note.family-profile-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(162, 155, 254, 0.07);
  border-left: 3px solid var(--purple);
  padding: 8px 12px;
  border-radius: 4px;
}
.profile-section-note.family-profile-hint strong { color: var(--on-surface, #e8e8ea); }


/* ═══════════════════════ RASHI HOROSCOPE WIDGET ═══════════════════════ */
.auth-horoscope-widget {
  margin-top: 24px;
  padding: 24px;
  background: rgba(18, 23, 37, 0.6);
  border: 1px solid rgba(158, 142, 125, 0.2);
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}
.auth-horoscope-widget h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 16px 0;
  font-weight: normal;
}
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .rashi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rashi-btn {
  background: rgba(26, 31, 46, 0.6);
  border: 1px solid rgba(158, 142, 125, 0.15);
  border-radius: 8px;
  padding: 10px 6px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rashi-btn:hover {
  background: rgba(240, 196, 110, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.rashi-btn.active {
  background: rgba(240, 196, 110, 0.25);
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(240, 196, 110, 0.3);
}
.rashi-display {
  background: rgba(26, 31, 46, 0.95);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}
.rashi-display h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-bright);
  margin: 0 0 8px 0;
}
.rashi-display p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 12px 0;
  white-space: pre-line;
}
.premium-tease-banner {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(158, 142, 125, 0.15);
  padding-top: 10px;
  line-height: 1.4;
}


/* =========================================================================
   R4.5 — Dasha Countdown Rings
   ========================================================================= */
.dasha-countdown-section {
  margin: 20px 0;
  padding: 20px;
  background: var(--color-surface-1);
  border: 1px solid rgba(158,142,125,0.2);
  border-radius: 14px;
}
.dasha-rings-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}
.dasha-ring-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.dasha-ring-svg {
  width: 90px;
  height: 90px;
}
.ring-planet {
  font-size: 13px;
  font-weight: 600;
  fill: var(--color-text);
  font-family: var(--font-body);
}
.ring-days {
  font-size: 11px;
  fill: var(--muted);
  font-family: var(--font-body);
}
.dasha-ring-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
}
.dasha-upcoming {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dasha-upcoming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text);
}
.dasha-upcoming-item .muted { color: var(--muted); }
.dasha-upcoming-item .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

/* =========================================================================
   R2.5 — Prediction Ledger & Verification Cards
   ========================================================================= */
.prediction-ledger-section {
  margin: 20px 0;
  padding: 20px;
  background: var(--color-surface-1);
  border: 1px solid rgba(158,142,125,0.2);
  border-radius: 14px;
}
.verification-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.verification-card {
  background: var(--color-surface-2);
  border: 1px solid rgba(158,142,125,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  transition: opacity 0.3s, transform 0.3s;
}
.vc-domain-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 8px;
}
.vc-claim {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 4px;
}
.vc-date {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
}
.vc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vc-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(158,142,125,0.25);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}
.vc-btn:hover { background: rgba(158,142,125,0.12); }
.vc-yes:hover  { background: rgba(72,199,142,0.15); border-color: #48c78e; color: #48c78e; }
.vc-no:hover   { background: rgba(255,90,90,0.12); border-color: #ff5a5a; color: #ff5a5a; }
.vc-partial:hover { background: rgba(212,175,55,0.12); border-color: var(--color-gold); color: var(--color-gold); }
.vc-skip { opacity: 0.55; }
.vc-skip:hover { opacity: 0.85; }

/* Accuracy Meter */
.accuracy-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  flex-wrap: wrap;
}
.accuracy-label {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.accuracy-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(158,142,125,0.15);
  border-radius: 3px;
  min-width: 80px;
}
.accuracy-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), #e8c547);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.accuracy-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* =========================================================================
   R5.S.1 — Tiered Pricing Grid  (used in billing settings section)
   ========================================================================= */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 680px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--color-surface-2);
  border: 1px solid rgba(158,142,125,0.2);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card[data-popular="true"] {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25);
}
.tier-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: #1a1409;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 4px;
}
.tier-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.tier-tagline {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.tier-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.1;
}
.tier-price-sub {
  font-size: 10px;
  color: var(--muted);
}
.tier-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tier-features li {
  font-size: 11px;
  color: var(--color-text);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 10px;
}
.tier-cta-btn {
  margin-top: auto;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--color-gold), #c8a84b);
  color: #1a1409;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}
.tier-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.tier-cta-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.tier-card.tier-current { border-color: var(--gold); }
.tier-current-badge {
  position: absolute; top: -10px; right: 12px;
  background: var(--surface-container); color: var(--gold);
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--gold);
}
.highlighted-tier {
  border-color: var(--gold) !important;
  background: rgba(255,185,84,0.06);
}
.price-strike { text-decoration: line-through; opacity: 0.5; font-size: 12px; margin: 0; }
.premium-addon-banner {
  background: var(--surface-container); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; margin: 12px 0;
}
.premium-addon-banner strong { color: var(--gold); font-size: 15px; }
.premium-addon-banner p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.premium-referral-section {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.premium-referral-section p { color: var(--muted); font-size: 13px; }
.premium-feature-columns { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) {
  .premium-feature-columns { grid-template-columns: 1fr; }
}

/* Stripe embedded checkout modal */
.stripe-checkout-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  pointer-events: none;
}
.stripe-checkout-overlay.open { opacity: 1; pointer-events: auto; }
.stripe-checkout-modal {
  background: var(--bg, #0a1128); border: 1px solid var(--border, #1e2a4a);
  border-radius: 16px; width: min(560px, 94vw); max-height: 92vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.stripe-checkout-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.stripe-checkout-header h3 {
  font-size: 18px; font-weight: 600; color: var(--text, #e0e6f0); margin: 0;
}
.stripe-checkout-close {
  background: none; border: none; color: var(--muted, #7a8baa);
  font-size: 22px; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.stripe-checkout-close:hover { color: var(--text); background: var(--surface-container, #111d3a); }
.stripe-checkout-body { padding: 16px 24px 24px; min-height: 300px; }
.stripe-checkout-body #stripe-checkout-mount { min-height: 280px; }
.stripe-checkout-status {
  text-align: center; padding: 40px 20px; color: var(--muted);
  font-size: 14px;
}
.stripe-checkout-status.success { color: var(--ok, #4ade80); }
.stripe-checkout-status.error { color: var(--err, #ef4444); }

/* ═══════════════════════════════════════════════════════════════
   PLG PAYWALL — demo previews, plan cards, social proof
   ═══════════════════════════════════════════════════════════════ */
.plg-demo-section { margin: 24px 0 32px; }
.plg-demo-title {
  font-size: 15px; font-weight: 600; color: var(--gold, #D4AF37);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.plg-demo-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) {
  .plg-demo-grid { grid-template-columns: repeat(3, 1fr); }
}
.plg-demo-card {
  position: relative; overflow: hidden;
  background: var(--surface-container, #111d3a);
  border: 1px solid var(--border, #1e2a4a);
  border-radius: 14px; padding: 16px;
}
.plg-demo-card-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.plg-demo-icon { font-size: 20px; }
.plg-demo-card-head strong { font-size: 14px; color: var(--text, #e0e6f0); flex: 1; }
.plg-demo-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: rgba(212, 175, 55, 0.15); color: var(--gold, #D4AF37);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.plg-demo-blurred {
  font-size: 13px; line-height: 1.55; color: var(--muted, #7a8baa);
  filter: blur(4px); user-select: none; pointer-events: none;
  transition: filter 0.3s ease;
}
.plg-demo-unlock-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 17, 40, 0.85) 70%);
  pointer-events: none;
}
.plg-demo-unlock-overlay span {
  font-size: 13px; font-weight: 600; color: var(--gold, #D4AF37);
  background: rgba(10, 17, 40, 0.8); padding: 6px 16px; border-radius: 99px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.plg-plans-section {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin: 28px 0;
}
@media (min-width: 640px) {
  .plg-plans-section { grid-template-columns: 1fr 1fr; }
}
.plg-plan-card {
  position: relative;
  background: var(--surface-container, #111d3a);
  border: 1px solid var(--border, #1e2a4a);
  border-radius: 16px; padding: 24px; overflow: hidden;
}
.plg-plan-gold {
  border-color: var(--gold, #D4AF37);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.1);
}
.plg-plan-badge {
  position: absolute; top: 0; right: 20px;
  background: var(--gold, #D4AF37); color: var(--bg, #0a1128);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 14px; border-radius: 0 0 8px 8px;
}
.plg-plan-card h3 {
  font-size: 20px; font-weight: 700; color: var(--text, #e0e6f0); margin: 0 0 8px;
}
.plg-plan-price { margin-bottom: 8px; }
.plg-plan-price strong {
  font-size: 32px; font-weight: 800; color: var(--text, #e0e6f0);
}
.plg-plan-price span {
  font-size: 15px; color: var(--muted, #7a8baa); margin-left: 2px;
}
.plg-plan-savings {
  font-size: 12px; color: var(--ok, #4ade80); font-weight: 600;
  margin-bottom: 14px;
}
.plg-plan-card ul {
  list-style: none; padding: 0; margin: 14px 0 20px;
}
.plg-plan-card li {
  font-size: 13px; color: var(--muted, #7a8baa); padding: 4px 0 4px 20px;
  position: relative; line-height: 1.5;
}
.plg-plan-card li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold, #D4AF37); font-weight: 700;
}
.plg-cta-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold, #D4AF37), #e8c84a) !important;
  color: var(--bg, #0a1128) !important; font-weight: 700 !important;
  font-size: 15px !important; border-radius: 12px !important; border: none !important;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plg-cta-primary:hover {
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.plg-cta-secondary {
  width: 100%; padding: 14px;
  background: transparent !important;
  color: var(--text, #e0e6f0) !important; font-weight: 600 !important;
  font-size: 15px !important; border-radius: 12px !important;
  border: 1px solid var(--border, #1e2a4a) !important;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.plg-cta-secondary:hover {
  border-color: var(--gold, #D4AF37) !important;
  background: rgba(212, 175, 55, 0.06) !important;
}
.plg-current-badge {
  text-align: center; padding: 12px;
  font-size: 14px; font-weight: 600; color: var(--ok, #4ade80);
  border: 1px solid rgba(74, 222, 128, 0.2); border-radius: 12px;
  background: rgba(74, 222, 128, 0.06);
}

.plg-social-proof {
  text-align: center; padding: 24px 0; margin-top: 12px;
  border-top: 1px solid var(--border, #1e2a4a);
}
.plg-social-proof > p {
  font-size: 14px; color: var(--muted, #7a8baa); margin-bottom: 16px;
}
.plg-proof-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.plg-proof-stats > div { text-align: center; }
.plg-proof-stats strong {
  display: block; font-size: 24px; font-weight: 800; color: var(--gold, #D4AF37);
}
.plg-proof-stats span {
  font-size: 12px; color: var(--muted, #7a8baa);
}

/* ═══════════════════════════════════════════════════════════════
   VEDIC VALIDATION — landing / auth screen design system
   From stitch_personalized_birth_star_astrology (DESIGN.md + sign-in design).
   Scoped to #screen-auth; tokens: Source Serif 4 / Manrope / Space Grotesk,
   deep vedic dark + golden amber, tonal layering + glassmorphism.
   ═══════════════════════════════════════════════════════════════ */
#screen-auth {
  --cv-bg: #0d1117;
  --cv-surface-lowest: #0a0e14;
  --cv-glass: rgba(27, 34, 44, 0.6);
  --cv-on-surface: #dfe2eb;
  --cv-on-surface-variant: #d5c4b0;
  --cv-outline-variant: #504536;
  --cv-bronze: #8c6a3b;
  --cv-primary: #ffc369;
  --cv-primary-container: #e6a63e;
  --cv-on-primary-container: #442b00;
  --cv-error: #ffb4ab;
  --cv-serif: 'Source Serif 4', 'Libre Caslon Text', serif;
  --cv-body: 'Manrope', 'Inter', sans-serif;
  --cv-mono: 'Space Grotesk', 'JetBrains Mono', sans-serif;
  display: block;
  height: var(--app-height);
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--cv-bg);
  color: var(--cv-on-surface);
  font-family: var(--cv-body);
}
#screen-auth.hidden { display: none; }

/* ── Background: blurred manuscript + giant serif headline ── */
#screen-auth .cv-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#screen-auth .cv-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.92) 0%, rgba(13, 17, 23, 0.82) 40%, rgba(13, 17, 23, 0.95) 100%),
    url('/static/vedic-palm-leaf.jpg') center / cover no-repeat;
  filter: blur(4px) saturate(0.7);
  transform: scale(1.06);
}
#screen-auth .cv-bg-headline {
  position: absolute;
  top: 8vh;
  left: -2vw;
  width: 110vw;
  margin: 0;
  font-family: var(--cv-serif);
  font-weight: 300;
  font-size: clamp(72px, 13vw, 170px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cv-on-surface);
  opacity: 0.14;
  filter: blur(6px);
  user-select: none;
}

#screen-auth .cv-page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
#screen-auth .cv-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(16px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0));
}
#screen-auth .cv-brand { display: flex; flex-direction: column; }
#screen-auth .cv-brand-name {
  font-family: var(--cv-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cv-primary);
  letter-spacing: -0.01em;
}
#screen-auth .cv-brand-sub {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.6;
}
#screen-auth .cv-header-links { display: flex; gap: 32px; }
#screen-auth .cv-header-links a {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  text-decoration: none;
  transition: color 0.25s ease;
}
#screen-auth .cv-header-links a:hover,
#screen-auth .cv-header-links a:focus-visible { color: var(--cv-primary); }

/* ── Centered auth card ── */
#screen-auth .cv-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 64px;
  min-height: calc(var(--app-height) - 96px);
}
#screen-auth .cv-card-col {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cvFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#screen-auth .cv-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(32px, 6vw, 48px);
  border-radius: 0.75rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(140, 106, 59, 0.2);
}
#screen-auth .cv-card-glow {
  position: absolute;
  top: -96px;
  left: -96px;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(255, 195, 105, 0.1);
  filter: blur(80px);
  pointer-events: none;
}
#screen-auth .cv-card-head { text-align: center; margin-bottom: 36px; }
#screen-auth .cv-card-head h1 {
  font-family: var(--cv-serif);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--cv-on-surface);
}
#screen-auth .cv-card-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cv-on-surface-variant);
  margin: 0;
}

/* Google button — high-contrast light, per design */
#screen-auth .cv-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 0.5rem;
  background: var(--cv-on-surface);
  color: #10141a;
  font-family: var(--cv-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
#screen-auth .cv-google-btn:hover { background: #ffffff; }
#screen-auth .cv-google-btn:active { transform: scale(0.98); }

#screen-auth .cv-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}
#screen-auth .cv-divider span { flex: 1; height: 1px; background: rgba(80, 69, 54, 0.3); }
#screen-auth .cv-divider em {
  font-family: var(--cv-mono);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cv-on-surface-variant);
  opacity: 0.4;
  text-transform: uppercase;
}

/* Fields */
#screen-auth .cv-field { margin-bottom: 22px; }
#screen-auth .cv-field.hidden { display: none; }
#screen-auth .cv-field label {
  display: block;
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  margin: 0 0 8px 4px;
}
#screen-auth .cv-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border-radius: 0.5rem;
  background: var(--cv-surface-lowest);
  border: 1px solid rgba(80, 69, 54, 0.4);
  color: var(--cv-on-surface);
  font-family: var(--cv-mono);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#screen-auth .cv-field input::placeholder { color: rgba(213, 196, 176, 0.45); }
#screen-auth .cv-field input:focus {
  outline: none;
  border-color: var(--cv-primary-container);
  box-shadow: inset 0 0 8px rgba(230, 166, 62, 0.1);
}
#screen-auth .cv-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cv-on-surface-variant);
  opacity: 0.7;
  margin: 6px 4px 0;
}

/* EULA checkbox row (signup mode) */
#screen-auth .cv-eula-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 4px;
}
#screen-auth .cv-eula-row.hidden { display: none; }
#screen-auth .cv-eula-row input[type='checkbox'] {
  margin-top: 3px;
  accent-color: var(--cv-primary-container);
}
#screen-auth .cv-eula-row label {
  flex: 1;
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
}

/* Primary button — solid amber with glow */
#screen-auth .cv-btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 0.5rem;
  background: var(--cv-primary-container);
  color: var(--cv-on-primary-container);
  font-family: var(--cv-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px -4px rgba(230, 166, 62, 0.4);
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.1s ease;
}
#screen-auth .cv-btn-primary:hover {
  box-shadow: 0 8px 30px -4px rgba(230, 166, 62, 0.6);
  filter: brightness(1.1);
}
#screen-auth .cv-btn-primary:active { transform: scale(0.98); }
#screen-auth .cv-btn-primary:disabled { opacity: 0.6; cursor: wait; }

#screen-auth .cv-legal {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cv-on-surface-variant);
  opacity: 0.8;
}
#screen-auth .cv-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--cv-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#screen-auth .cv-link:hover { filter: brightness(1.15); }
#screen-auth .cv-toggle {
  margin: 22px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--cv-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#screen-auth .cv-err {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--cv-error);
  min-height: 1em;
}

/* Validation engine chip below card */
#screen-auth .cv-engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--cv-surface-lowest);
  border: 1px solid rgba(140, 106, 59, 0.15);
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  animation: cvFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
#screen-auth .cv-engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cv-primary);
  box-shadow: 0 0 8px rgba(255, 195, 105, 0.9);
}
#screen-auth .cv-scroll-cue {
  margin-top: 18px;
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}
#screen-auth .cv-scroll-cue:hover { color: var(--cv-primary); opacity: 1; }

/* ── Landing sections (below the fold) ── */
#screen-auth .cv-section {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 112px) clamp(16px, 5vw, 64px);
  border-top: 1px solid rgba(140, 106, 59, 0.12);
}
#screen-auth .cv-kicker {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-primary);
  margin: 0 0 14px;
}
#screen-auth .cv-section-h {
  font-family: var(--cv-serif);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--cv-on-surface);
}
#screen-auth .cv-section-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cv-on-surface-variant);
  max-width: 640px;
  margin: 0 0 28px;
}

/* Rashi grid — data chips */
#screen-auth .cv-rashi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
#screen-auth .rashi-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 0.5rem;
  background: rgba(27, 34, 44, 0.55);
  border: 1px solid rgba(140, 106, 59, 0.2);
  color: var(--cv-on-surface);
  font-family: var(--cv-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
#screen-auth .rashi-btn span {
  font-family: var(--cv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.7;
}
#screen-auth .rashi-btn:hover { border-color: rgba(230, 166, 62, 0.5); }
#screen-auth .rashi-btn:active { transform: scale(0.97); }
#screen-auth .rashi-btn.active {
  border-color: var(--cv-primary-container);
  background: rgba(230, 166, 62, 0.12);
  box-shadow: 0 0 16px rgba(230, 166, 62, 0.15);
}
#screen-auth .cv-rashi-display {
  padding: 28px;
  border-radius: 0.75rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(140, 106, 59, 0.2);
}
#screen-auth .cv-rashi-display.hidden { display: none; }
#screen-auth .cv-rashi-display h3 {
  font-family: var(--cv-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--cv-primary);
}
#screen-auth .cv-rashi-display p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cv-on-surface);
  white-space: pre-line;
  margin: 0;
}
#screen-auth .cv-tease {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(230, 166, 62, 0.1), rgba(140, 106, 59, 0.08));
  border: 1px solid rgba(230, 166, 62, 0.25);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-tease strong { color: var(--cv-primary); }

/* Validation stats */
#screen-auth .cv-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
#screen-auth .cv-stat {
  padding: 22px 20px;
  border-radius: 0.5rem;
  background: rgba(27, 34, 44, 0.55);
  border: 1px solid rgba(140, 106, 59, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#screen-auth .cv-stat strong {
  font-family: var(--cv-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--cv-primary);
}
#screen-auth .cv-stat span {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.8;
}

/* Methodology signal chips */
#screen-auth .cv-signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}
#screen-auth .cv-signal-chips span {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--cv-surface-lowest);
  border: 1px solid rgba(140, 106, 59, 0.25);
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-assurance {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cv-on-surface-variant);
  opacity: 0.75;
  max-width: 560px;
  margin: 0;
}

/* Footer */
#screen-auth .cv-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 44px clamp(16px, 5vw, 64px);
  border-top: 1px solid rgba(140, 106, 59, 0.12);
}
#screen-auth .cv-footer p {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.6;
  margin: 0;
}
#screen-auth .cv-footer-links { display: flex; gap: 26px; align-items: center; }
#screen-auth .cv-footer-links a {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  text-decoration: none;
  transition: color 0.25s ease;
}
#screen-auth .cv-footer-links a:hover { color: var(--cv-primary); }
#screen-auth .cv-attribution {
  width: 100%;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--cv-body) !important;
  opacity: 0.45 !important;
}
#screen-auth .cv-attribution a { color: var(--cv-on-surface-variant); }

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

@media (max-width: 720px) {
  #screen-auth .cv-header-links { display: none; }
  #screen-auth .cv-bg-headline { top: 4vh; font-size: 21vw; }
  #screen-auth .cv-main { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #screen-auth .cv-card-col,
  #screen-auth .cv-engine-chip { animation: none; }
  #screen-auth { scroll-behavior: auto; }
}

/* ── Vedic Validation v2: full landing page (Ancient Wisdom design) ── */
#screen-auth { scroll-padding-top: 96px; }
#screen-auth .cv-bg::before {
  background: radial-gradient(circle at top right, #1b222c 0%, #10141a 62%, #0d1117 100%);
  filter: none;
  transform: none;
}

/* Top nav */
#screen-auth .cv-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(16, 20, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80, 69, 54, 0.2);
}
#screen-auth .cv-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cv-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--cv-primary);
  letter-spacing: -0.01em;
}
#screen-auth .cv-nav-star { font-size: 18px; }
#screen-auth .cv-nav-links { display: flex; gap: 28px; }
#screen-auth .cv-nav-links a {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
#screen-auth .cv-nav-links a:hover { color: var(--cv-primary); border-color: var(--cv-primary); }
#screen-auth .cv-nav-actions { display: flex; align-items: center; gap: 18px; }
#screen-auth .cv-nav-signin {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  transition: color 0.25s ease;
}
#screen-auth .cv-nav-signin:hover { color: var(--cv-primary); }
#screen-auth .cv-nav-signup {
  border: none;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 9999px;
  background: var(--cv-primary-container);
  color: var(--cv-on-primary-container);
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: filter 0.2s ease, transform 0.1s ease;
}
#screen-auth .cv-nav-signup:hover { filter: brightness(1.1); }
#screen-auth .cv-nav-signup:active { transform: scale(0.98); }

/* Hero */
#screen-auth .cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 11vh, 130px) clamp(16px, 5vw, 64px) clamp(48px, 8vh, 96px);
}
#screen-auth .cv-hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
#screen-auth .cv-hero-h {
  font-family: var(--cv-serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cv-on-surface);
}
#screen-auth .cv-hero-h em { font-style: italic; color: var(--cv-primary); }
#screen-auth .cv-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cv-on-surface-variant);
  max-width: 36rem;
  margin: 0;
}
#screen-auth .cv-hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
#screen-auth .cv-btn-hero { width: auto; padding: 16px 36px; border-radius: 9999px; }
#screen-auth .cv-hero-secondary {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  text-decoration: none;
  transition: color 0.25s ease;
}
#screen-auth .cv-hero-secondary:hover { color: var(--cv-primary); }
#screen-auth .cv-hero-visual { position: relative; }
#screen-auth .cv-hero-glow {
  position: absolute;
  inset: 0;
  background: rgba(255, 195, 105, 0.05);
  filter: blur(100px);
  border-radius: 50%;
}
#screen-auth .cv-hero-card {
  position: relative;
  border-radius: 0.75rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 195, 105, 0.2);
  padding: 24px 24px 76px;
}
#screen-auth .cv-pulse-svg { width: 100%; height: auto; display: block; max-height: 400px; }
#screen-auth .cv-pulse-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 0.5rem;
  background: rgba(16, 20, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(80, 69, 54, 0.2);
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-primary);
}
#screen-auth .cv-pulse-score {
  background: var(--cv-primary);
  color: var(--cv-on-primary-container);
  padding: 3px 10px;
  border-radius: 0.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

/* Validation bar */
#screen-auth .cv-valbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 44px clamp(16px, 5vw, 64px);
  background: var(--cv-surface-lowest);
  border-top: 1px solid rgba(80, 69, 54, 0.12);
  border-bottom: 1px solid rgba(80, 69, 54, 0.12);
}
#screen-auth .cv-valbar-head h3 {
  font-family: var(--cv-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 6px 0 0;
  color: var(--cv-on-surface);
}
#screen-auth .cv-valbar-head .cv-kicker { margin: 0; }
#screen-auth .cv-valbar-note {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-valbar-note strong { color: var(--cv-on-surface); font-weight: 600; }
#screen-auth .cv-valbar-stats { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
#screen-auth .cv-valbar-stats div { display: flex; flex-direction: column; gap: 4px; }
#screen-auth .cv-valbar-stats .cv-stat-anchor {
  font-family: var(--cv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--cv-primary);
  opacity: 0.9;
}
#screen-auth .cv-valbar-stats strong {
  font-family: var(--cv-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--cv-primary);
}
#screen-auth .cv-valbar-stats span {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
}

/* Horoscope section */
#screen-auth .cv-horoscope-section { max-width: 1280px; border-top: none; }
#screen-auth .cv-section-center { text-align: center; max-width: 640px; margin: 0 auto 48px; }
#screen-auth .cv-section-center .cv-section-sub { margin: 0 auto; }
#screen-auth .cv-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
#screen-auth .cv-zodiac-grid .rashi-btn {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 12px;
  border-radius: 0.75rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#screen-auth .cv-zodiac-grid .rashi-btn:hover {
  background: rgba(230, 166, 62, 0.08);
  border-color: rgba(255, 195, 105, 0.5);
}
#screen-auth .cv-zodiac-grid .rz-glyph {
  font-size: 30px;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#screen-auth .cv-zodiac-grid .rashi-btn:hover .rz-glyph { opacity: 1; transform: scale(1.1); }
#screen-auth .cv-zodiac-grid .rz-name {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-primary);
  opacity: 1;
}
#screen-auth .cv-zodiac-grid .rz-sub {
  font-family: var(--cv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  opacity: 0.4;
}
#screen-auth .cv-zodiac-grid .rashi-btn.active {
  box-shadow: 0 0 0 2px var(--cv-primary), 0 0 24px rgba(230, 166, 62, 0.2);
  background: rgba(230, 166, 62, 0.1);
}

/* Result card */
#screen-auth .cv-result-card {
  display: flex;
  gap: 32px;
  margin: 48px auto 0;
  max-width: 900px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 1rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(140, 106, 59, 0.2);
  border-left: 4px solid var(--cv-primary);
}
#screen-auth .cv-result-card.hidden { display: none; }
#screen-auth .cv-result-main { flex: 1; min-width: 0; }
#screen-auth .cv-result-main h3 {
  font-family: var(--cv-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 6px 0 16px;
  color: var(--cv-on-surface);
}
#screen-auth .cv-result-main p:not(.cv-kicker) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cv-on-surface-variant);
  white-space: pre-line;
  margin: 0;
}
#screen-auth .cv-precision-aside {
  width: 280px;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 20px;
  border-radius: 0.75rem;
  background: rgba(38, 42, 49, 0.7);
  border: 1px solid rgba(80, 69, 54, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#screen-auth .cv-meter-row { display: flex; align-items: center; gap: 10px; }
#screen-auth .cv-meter {
  flex: 1;
  height: 8px;
  border-radius: 9999px;
  background: rgba(49, 53, 60, 0.9);
  overflow: hidden;
}
#screen-auth .cv-meter-fill { width: 25%; height: 100%; background: var(--cv-primary); border-radius: 9999px; }
#screen-auth .cv-meter-label {
  font-family: var(--cv-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-precision-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--cv-on-surface-variant);
  opacity: 0.7;
  margin: 0;
}
#screen-auth .cv-btn-small { padding: 12px 16px; font-size: 14px; }

/* Precision gap */
#screen-auth .cv-gap {
  background: #181c22;
  padding: clamp(64px, 10vh, 128px) clamp(16px, 5vw, 64px);
  border-top: 1px solid rgba(80, 69, 54, 0.12);
}
#screen-auth .cv-gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
#screen-auth .cv-gap-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
#screen-auth .cv-gap-item { display: flex; gap: 16px; }
#screen-auth .cv-gap-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}
#screen-auth .cv-gap-bad { background: rgba(255, 180, 171, 0.15); color: var(--cv-error); }
#screen-auth .cv-gap-good { background: rgba(255, 195, 105, 0.15); color: var(--cv-primary); }
#screen-auth .cv-gap-item h4 {
  font-family: var(--cv-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--cv-on-surface);
}
#screen-auth .cv-gap-item p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cv-on-surface-variant);
  margin: 0;
}
#screen-auth .cv-gap-visual {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--cv-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 195, 105, 0.1);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#screen-auth .cv-gap-visual-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 195, 105, 0.1);
  filter: blur(60px);
}
#screen-auth .cv-gap-datahead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(80, 69, 54, 0.25);
}
#screen-auth .cv-gap-datahead span {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-gap-datahead strong {
  font-family: var(--cv-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--cv-primary);
}
#screen-auth .cv-gap-datagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#screen-auth .cv-gap-datagrid div {
  padding: 16px;
  border-radius: 0.75rem;
  background: rgba(28, 32, 38, 0.9);
  border: 1px solid rgba(80, 69, 54, 0.15);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#screen-auth .cv-gap-datagrid span {
  font-family: var(--cv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
}
#screen-auth .cv-gap-datagrid strong {
  font-family: var(--cv-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--cv-on-surface);
}
#screen-auth .cv-gap-quote {
  margin: 0;
  padding: 22px;
  border-radius: 0.75rem;
  background: rgba(255, 195, 105, 0.05);
  border: 1px solid rgba(255, 195, 105, 0.2);
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cv-on-surface-variant);
}

/* Footer columns */
#screen-auth .cv-footer-cols {
  align-items: flex-start;
  background: var(--cv-surface-lowest);
  padding-top: 56px;
  padding-bottom: 56px;
}
#screen-auth .cv-footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
#screen-auth .cv-footer-brand .cv-nav-brand { font-size: 20px; }
#screen-auth .cv-footer-grid { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
#screen-auth .cv-footer-col { display: flex; flex-direction: column; gap: 12px; }
#screen-auth .cv-footer-col span {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-primary);
}
#screen-auth .cv-footer-col a,
#screen-auth .cv-footer-col .cv-link {
  font-family: var(--cv-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-on-surface-variant);
  text-decoration: none;
  text-align: left;
  transition: color 0.25s ease;
}
#screen-auth .cv-footer-col a:hover,
#screen-auth .cv-footer-col .cv-link:hover { color: var(--cv-primary); }

/* Auth overlay */
#screen-auth .cv-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#screen-auth .cv-auth-overlay.hidden { display: none; }
#screen-auth .cv-auth-overlay .cv-card {
  max-width: 460px;
  margin: auto;
  animation: cvFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#screen-auth .cv-card-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(80, 69, 54, 0.35);
  background: rgba(16, 20, 26, 0.6);
  color: var(--cv-on-surface-variant);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
#screen-auth .cv-card-close:hover { color: var(--cv-primary); border-color: var(--cv-primary); }

@media (max-width: 860px) {
  #screen-auth .cv-hero { grid-template-columns: 1fr; }
  #screen-auth .cv-gap-grid { grid-template-columns: 1fr; }
  #screen-auth .cv-result-card { flex-direction: column; }
  #screen-auth .cv-precision-aside { width: 100%; }
}
@media (max-width: 720px) {
  #screen-auth .cv-nav-links { display: none; }
  #screen-auth .cv-nav-signin { display: none; }
  #screen-auth .cv-zodiac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #screen-auth .cv-auth-overlay .cv-card { animation: none; }
}
#screen-auth .cv-zodiac-grid .rz-glyph { font-variant-emoji: text; color: var(--cv-primary); }

/* ── Onboarding: instant chart reveal (step 2) + skip-all ── */
.ob-chart-preview {
  margin: 18px 0 22px;
  padding: 26px 24px;
  border-radius: 14px;
  background: rgba(27, 34, 44, 0.6);
  border: 1px solid rgba(230, 166, 62, 0.25);
}
.ob-chart-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ob-chart-error { color: var(--muted); margin: 0; }
.ob-chart-star { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ob-chart-nak {
  font-family: 'Source Serif 4', 'Libre Caslon Text', serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 400;
  color: #ffc369;
  line-height: 1.1;
}
.ob-chart-pada {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid rgba(230, 166, 62, 0.35);
  border-radius: 999px;
}
.ob-chart-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ob-chart-chips span {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(140, 106, 59, 0.3);
}
.ob-chart-insights { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.ob-chart-insights li { line-height: 1.6; color: var(--text); }
.ob-chart-insights strong { color: #ffc369; }
.ob-quickstart-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.ob-skip-all {
  display: block;
  margin: 10px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ob-skip-all:hover { color: #ffc369; }

/* ── Life Journey graph: contained zoom + readable mobile rendering ── */
.life-graph-wrap {
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  border-radius: 8px;
}
.life-graph-zoombar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
}
.life-graph-zoom-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.life-graph-zoom-btn:hover { border-color: var(--gold); background: rgba(255, 214, 122, 0.1); }
.life-graph-zoom-btn:active { transform: scale(0.95); }
.life-graph-zoom-hint {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
@media (max-width: 820px) {
  /* Readability floor: render at natural size and let the wrap pan instead
     of shrinking 8px labels to ~4px. */
  .life-graph-svg { min-width: 640px; max-width: none; }
  .life-graph-wrap::after {
    content: '';
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    width: 28px;
    height: 100%;
    margin-left: -28px;
    background: linear-gradient(90deg, transparent, rgba(10, 12, 18, 0.55));
    pointer-events: none;
  }
}
@media (max-width: 480px) {
  .life-graph-zoom-hint { display: none; }
}

/* Selected event pin: clear feedback for which detail is shown below */
.life-event-dot { cursor: pointer; }
.life-event-dot-active {
  r: 7;
  stroke: var(--gold);
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 6px rgba(255, 214, 122, 0.9));
}

/* ── Fluid shell: sidebar, chat column, and composer scale together ──
   Browser zoom shrinks the effective CSS viewport; with fixed px the content
   column squeezed while the sidebar/composer stayed rigid, then the layout
   jumped at the 820px breakpoint. Fluid units make the whole shell breathe
   continuously across zoom levels, browsers, and screen widths. */
.msg-ai { font-size: var(--text-chat); }
.msg-user { font-size: calc(var(--text-chat) - 0.0625rem); }
#q { font-size: var(--text-chat); }
.input-area { padding: var(--pad-fluid) calc(var(--pad-fluid) + 8px) calc(var(--pad-fluid) + 4px); }
.input-wrap { max-width: min(768px, 94%); }
.nav-btn { font-size: var(--text-ui); }
.chat-history-list button { font-size: var(--text-ui); }
.nav-label { font-size: calc(var(--text-ui) - 0.1rem); }
.welcome-h { font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem); }
.welcome-p { font-size: var(--text-chat); }
.starter-btn { font-size: var(--text-ui); }

/* Soften the desktop→mobile jump: between 821–1080px the sidebar is already
   narrowing via clamp; tighten chat gutters in the same band so the message
   column keeps its width instead of collapsing. */
@media (min-width: 821px) and (max-width: 1080px) {
  .messages-wrap { padding-left: clamp(8px, 1.5vw, 24px); padding-right: clamp(8px, 1.5vw, 24px); }
  .msg-ai { max-width: 92%; }
}

/* ── Help center: top-right guide button + user guide modal + tour ── */
.help-fab {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-container-low, rgba(29, 32, 36, 0.85));
  color: var(--muted);
  font-size: var(--text-ui);
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color var(--t), border-color var(--t), box-shadow var(--t);
}
.help-fab:hover {
  color: var(--accent);
  border-color: rgba(255, 185, 84, 0.5);
  box-shadow: 0 0 14px rgba(255, 185, 84, 0.15);
}
@media (max-width: 820px) {
  .help-fab { display: none; } /* mobile uses the header ? button */
}

.help-modal-box { max-width: 620px; }
.help-search {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--form-soft);
  color: var(--text);
  font-size: var(--text-ui);
  font-family: inherit;
}
.help-search:focus { outline: none; border-color: rgba(255, 185, 84, 0.45); }
.help-topics {
  max-height: min(54vh, 480px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.help-topic {
  flex-shrink: 0; /* children of the scrolling column must never squash */
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--chip-bg);
  overflow: hidden;
}
.help-topic summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-ui);
  color: var(--text);
  transition: background var(--t);
}
.help-topic summary::-webkit-details-marker { display: none; }
.help-topic summary:hover { background: var(--hover); }
.help-topic[open] summary { border-bottom: 1px solid var(--border); color: var(--accent); }
.help-topic-icon { font-size: 17px; }
.help-topic-body { padding: 12px 16px 14px; }
.help-topic-summary { color: var(--muted); font-size: var(--text-ui); margin: 0 0 10px; line-height: 1.55; }
.help-topic-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-ui);
  line-height: 1.55;
  color: var(--text);
}
.help-ask-btn { font-size: calc(var(--text-ui) - 0.05rem); padding: 7px 12px; }
.help-empty { color: var(--muted); font-size: var(--text-ui); text-align: center; padding: 18px 0; }

/* ── Vedic Match: Friends & Family (saved people, cap 5) ── */
.vedic-people-section { margin: 14px 0; }
.vedic-people-intro { font-size: var(--text-ui); color: var(--muted); margin: 0 0 12px; line-height: 1.55; }
.vedic-people-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.vedic-person-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 30px 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  cursor: pointer;
  font-size: var(--text-ui);
  transition: border-color var(--t), box-shadow var(--t);
}
.vedic-person-chip span { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.vedic-person-chip:hover { border-color: rgba(255, 185, 84, 0.5); }
.vedic-person-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(255, 185, 84, 0.15);
}
.vedic-person-chip .vp-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
}
.vedic-person-chip .vp-remove:hover { color: var(--red, #e5989b); }
.vedic-person-add { justify-content: center; align-items: center; border-style: dashed; color: var(--muted); }
.vedic-person-add:hover { color: var(--accent); }
.vedic-people-empty, .vedic-people-cap { font-size: var(--text-ui); color: var(--muted); align-self: center; }
.vedic-person-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--form-soft);
  margin-bottom: 12px;
}
.vedic-person-form .vp-place-group { grid-column: 1 / -1; }
.vedic-person-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }

/* ── Vedic Match: NakshatraAI User Connections ── */
.vedic-friends-section { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 10px; }
.vedic-friends-intro { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.vedic-friends-search-bar {
  display: flex; gap: 8px; align-items: center;
}
.vedic-friends-search-bar input {
  flex: 1; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--form-soft);
  color: var(--text); font-size: 13px;
}
.vedic-friends-search-bar input::placeholder { color: var(--muted); }
.vedic-friends-heading {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); margin: 10px 0 6px; font-weight: 600;
}
.vedic-friends-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vedic-friends-empty { font-size: 12.5px; color: var(--muted); }
.vedic-friend-search-result {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--form-soft); margin-bottom: 6px; font-size: 13px;
}
.vedic-friend-search-result .muted { color: var(--muted); font-size: 11.5px; }
.vedic-friend-request {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--form-soft); margin-bottom: 6px; font-size: 13px;
}
.vedic-friend-actions { display: flex; gap: 8px; }
.btn-accept {
  padding: 4px 12px; border-radius: 6px; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600;
  background: var(--green, #2ecc71); color: #fff;
}
.btn-reject {
  padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer;
  font-size: 12px; background: transparent; color: var(--muted);
}
.btn-reject:hover { border-color: var(--red, #e5989b); color: var(--red, #e5989b); }
.vedic-friends-pending-list { display: flex; flex-direction: column; gap: 6px; }
.vedic-friends-outgoing { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vedic-friend-outgoing-chip {
  font-size: 11.5px; color: var(--muted); padding: 4px 10px;
  border-radius: 6px; border: 1px dashed var(--border);
}
.btn-send-request { font-size: 12px; white-space: nowrap; }

/* PDF export buttons in card headers */
.pdf-export-btn { font-size: 12px; padding: 5px 10px; white-space: nowrap; }

@media (max-width: 600px) {
  .vedic-person-form { grid-template-columns: 1fr 1fr; }
}

/* ── Vedic Match: Friends & Family ── */
.vedic-people-section { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 10px; }
.vedic-people-intro { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.vedic-people-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vedic-person-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 30px 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--t), background var(--t);
}
.vedic-person-chip span { font-size: 10.5px; color: var(--muted); text-transform: capitalize; }
.vedic-person-chip:hover { border-color: rgba(255, 185, 84, 0.5); }
.vedic-person-chip.active {
  border-color: var(--accent);
  background: rgba(255, 185, 84, 0.12);
  box-shadow: 0 0 10px rgba(255, 185, 84, 0.15);
}
.vedic-person-chip .vp-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  line-height: 1;
  padding: 2px 4px;
}
.vedic-person-chip .vp-remove:hover { color: var(--red); }
.vedic-person-add { justify-content: center; align-items: center; color: var(--accent); border-style: dashed; padding: 9px 14px; }
.vedic-people-cap, .vedic-people-empty { font-size: 12px; color: var(--muted); align-self: center; }
.vedic-person-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--form-soft);
}
.vedic-person-form .vp-place-group { grid-column: 1 / -1; }
.vedic-person-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.pdf-export-btn { font-size: 11px; padding: 4px 10px; white-space: nowrap; }
[data-vedic-type].hidden { display: none; }
.vedic-lens-note { font-size: 12px; color: var(--muted); margin: 2px 0 10px; line-height: 1.5; }

/* ── Vedic Tools: date chips + unified conversation ── */
.vt-date-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(29, 32, 36, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 22px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* Tab content below uses backdrop-filter (own stacking context); the bar
     must stack above it so the open calendar dropdown stays clickable. */
  position: relative;
  z-index: 130;
}
.vt-date-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vt-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.vt-date-chip:hover { border-color: rgba(255, 185, 84, 0.5); color: var(--text); }
.vt-date-chip.active {
  border-color: var(--accent);
  background: rgba(255, 185, 84, 0.12);
  color: var(--accent);
}
.vt-date-chip .vt-cal-icon, .vt-date-chip .vt-arrow-icon { font-size: 16px; }
.vt-chat-section {
  margin-top: 26px;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(29, 32, 36, 0.45);
}
.vt-chat-section h4 { margin: 0 0 6px; font-size: 15px; }
.vt-sample-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.vt-sample-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.vt-sample-chip:hover { border-color: var(--accent); background: rgba(255, 185, 84, 0.1); }
@media (max-width: 600px) {
  .vt-date-bar { padding: 10px 12px; }
  .vt-sample-chip { font-size: 12px; }
}

/* ---- Vedic Tools: remedies digest ---- */
.vt-remedies-digest { margin: 14px 0 4px; }
.vt-remedies-title {
  margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700;
}
.vt-remedies-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vt-remedy-item {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
}
.vt-remedy-item[data-tone="red"] { border-left-color: var(--red); }
.vt-remedy-item[data-tone="green"] { border-left-color: var(--green); }
.vt-remedy-label { font-size: 12px; font-weight: 700; color: #fff; }
.vt-remedy-text { font-size: 13px; color: var(--text); line-height: 1.45; }
.vt-remedies-empty { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

/* Friends & Family list in Profile Data */
.ff-people-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.ff-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip-bg);
  font-size: 13px;
}
.ff-person-row em { font-style: normal; color: var(--muted); font-size: 11.5px; flex: 1; text-transform: capitalize; }
.ff-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.ff-remove:hover { color: var(--red); }
.vedic-manage-people { margin-top: 10px; font-size: 12.5px; }

/* Friends & Family scorecards (mirror celebrity result cards) */
.vedic-people-results-title { font-size: 16px; margin: 4px 0 12px; }
.vedic-person-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.vedic-person-card-head { display: flex; align-items: center; gap: 10px; }
.vedic-person-emoji { font-size: 22px; }
.vedic-person-bigscore {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vedic-person-score-val { font-size: 30px; font-weight: 700; color: var(--gold); font-family: 'Space Grotesk', monospace; }
.vedic-person-score-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.vedic-person-card-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.vedic-person-card-hint { font-size: 11px; color: var(--muted); opacity: 0.7; margin: 0; }
.vedic-people-results .vedic-match-detail {
  grid-column: 1 / -1;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease;
}
.vedic-person-card[data-person-detail] { transition: border-color 0.15s ease; }
.vedic-person-card[data-person-detail]:hover { border-color: var(--gold); }

/* (Removed .vt-intro-* — the "what you can do here" wall was replaced by per-tab
   hover tooltips + a contextual .vt-tab-caption; see "self-care refinement" block.) */

/* Dosha remedies + cancellations */
.vt-section-note { font-size: 12px; color: var(--muted); margin: -2px 0 14px; line-height: 1.5; }
.vt-dosha-cancel, .vt-dosha-remedies { margin-top: 10px; font-size: 12.5px; color: var(--text); }
.vt-dosha-cancel strong { color: var(--green); }
.vt-dosha-remedies strong { color: var(--gold-bright, var(--accent)); }
.vt-dosha-cancel ul, .vt-dosha-remedies ul { margin: 5px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.vt-dosha-cancel li, .vt-dosha-remedies li { line-height: 1.5; color: var(--fg, var(--text)); }
.vt-dosha-clear-note { margin-top: 8px; font-size: 12px; color: var(--green); }

/* Company / brand names */
.vt-names-divider { height: 1px; background: var(--border); margin: 22px 0 18px; }
.vt-company-samples { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.vt-company-name {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 185, 84, 0.1);
  border: 1px solid rgba(255, 185, 84, 0.3);
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  font-family: 'Source Serif 4', serif;
}
.vt-baby-sub { font-size: 11.5px; color: var(--muted); opacity: 0.8; margin: 4px 0 12px; }

/* Baby name finder form & results */
.baby-name-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
}
.baby-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.baby-form-row:last-child { margin-bottom: 0; }
.baby-form-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.baby-form-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.baby-form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.baby-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.baby-results-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 12px;
  font-size: 0.9rem;
  color: var(--text);
}
.baby-name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.baby-name-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.baby-name-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px var(--gold-dim);
}
.baby-name-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.baby-name-gender {
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  align-self: flex-start;
  position: absolute;
  top: 10px;
  right: 10px;
}
.baby-name-card { position: relative; }
.baby-gender-boy { background: #dbeafe; color: #2563eb; }
.baby-gender-girl { background: #fce7f3; color: #db2777; }
.baby-name-meaning {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.baby-meaning-lookup {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.baby-meaning-lookup .baby-form-input {
  flex: 1;
}
.baby-meaning-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
}
.baby-meaning-card strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
}
@media (max-width: 600px) {
  .baby-form-row { flex-direction: column; gap: 10px; }
  .baby-name-grid { grid-template-columns: 1fr 1fr; }
  .baby-meaning-lookup { flex-direction: column; }
}

/* Celebrity marketplace search + age filter */
.celeb-search-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.celeb-search-input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--form-soft);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.celeb-search-input:focus { outline: none; border-color: rgba(255, 185, 84, 0.5); }
.celeb-age-filter {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--form-soft);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.celeb-search-count { font-size: 12px; color: var(--muted); margin: 8px 0 0 2px; }

/* Developer API console (Settings → Guru) */
.dev-badge { font-size: 10px; background: var(--accent); color: var(--accent-text); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 700; }
.dev-intro { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; line-height: 1.5; }
.dev-create-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dev-create-row input {
  flex: 1; min-width: 140px; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--form-soft); color: var(--text); font-size: 13px; font-family: inherit;
}
.dev-create-row input:focus { outline: none; border-color: rgba(255,185,84,0.5); }
.dev-create-row .btn-primary { white-space: nowrap; }
.dev-key-list { display: flex; flex-direction: column; gap: 8px; }
.dev-key-row { padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--chip-bg); }
.dev-key-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dev-key-co { color: var(--muted); }
.dev-key-prefix { font-family: 'Space Grotesk', monospace; font-size: 12px; color: var(--accent); }
.dev-key-status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; }
.dev-key-status.ok { background: rgba(120,163,133,0.18); color: var(--green); }
.dev-key-status.revoked { background: rgba(229,152,155,0.15); color: var(--red); }
.dev-key-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.dev-key-revoke { font-size: 11px; padding: 4px 10px; margin-top: 8px; }
.dev-empty { font-size: 12.5px; color: var(--muted); }
.dev-key-reveal { padding: 14px; border: 1px solid var(--accent); border-radius: 10px; background: rgba(255,185,84,0.08); margin-bottom: 14px; }
.dev-key-reveal strong { display: block; margin-bottom: 6px; font-size: 13px; }
.dev-key-full { display: block; font-family: 'Space Grotesk', monospace; font-size: 12px; background: var(--code, #0a0e14); padding: 9px 11px; border-radius: 7px; word-break: break-all; color: var(--gold); margin-bottom: 6px; }
.dev-key-reveal p { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; }

/* Deceased celebrity badge + legacy note (no living-person score). */
.celeb-deceased-badge {
  display: inline-block;
  margin-top: 8px;
  margin-right: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted, rgba(232, 232, 234, .78));
}
.celeb-legacy-note {
  font-size: 12px;
  color: var(--muted, rgba(232, 232, 234, .6));
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* ===========================================================================
   Vedic Tools — self-care refinement (2026-06)
   Goal: calmer, less cluttered surface. Removed the 8-item intro wall; this
   block softens the header, gives each tab a contextual caption, lightens the
   content surface, and turns "Ask the Vedic Guide" into a gentle centerpiece.
   Appended last so it wins the cascade over the earlier duplicate .vt-* rules.
   =========================================================================== */
.vedic-tools-panel { gap: 18px; }

/* Header: more air, lighter weight, calmer subtitle */
.vedic-tools-header { padding: 28px 16px 4px; }
.vedic-tools-header h2 { font-weight: 600; letter-spacing: 0.005em; }
.vedic-tools-sub {
  font-size: 0.9rem;
  max-width: 46ch;
  color: var(--muted);
  opacity: 0.92;
}

/* Contextual caption — replaces the intro wall, keeps "what's available" */
.vt-tab-caption {
  margin: 2px auto 0;
  max-width: 56ch;
  text-align: center;
  font-family: 'Libre Caslon Text', serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.9;
  transition: opacity var(--t);
}

/* Content surface: softer, calmer depth (less hard glassmorphism) */
.vedic-tools-content {
  border-radius: 18px;
  border-color: rgba(158, 142, 125, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tab bar: gentler resting state, calmer active lift */
.vedic-tools-tab-bar {
  border-color: rgba(158, 142, 125, 0.16);
  border-radius: 16px;
}
.vt-tab { font-weight: 500; }
.vt-tab.active {
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* "Ask the Vedic Guide" — the calm self-care centerpiece */
.vt-chat-section {
  margin-top: 10px;
  padding: 24px 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 185, 84, 0.20);
  background:
    radial-gradient(130% 120% at 50% -10%, rgba(255, 185, 84, 0.07), transparent 55%),
    rgba(29, 32, 36, 0.5);
}
.vt-chat-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 6px;
}
.vt-chat-section h4 {
  margin: 0 0 6px;
  font-family: 'Libre Caslon Text', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
}
.vt-chat-section .vt-qa-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 14px;
}

/* Gentle prompt chips */
.vt-chat-section .vt-sample-chips { gap: 9px; margin: 12px 0 16px; }
.vt-chat-section .vt-sample-chip {
  padding: 9px 15px;
  border-radius: 999px;
  border-color: rgba(158, 142, 125, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12.5px;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.vt-chat-section .vt-sample-chip:hover {
  border-color: var(--gold);
  background: rgba(255, 185, 84, 0.08);
  color: var(--text);
}

/* Rounded, restful input + button */
.vt-chat-section .vt-qa-input-wrap { gap: 10px; }
.vt-chat-section .vt-qa-input {
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(158, 142, 125, 0.22);
  font-size: 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.vt-chat-section .vt-qa-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 185, 84, 0.12);
}
.vt-chat-section .vt-qa-submit-btn {
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 185, 84, 0.18);
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
}
.vt-chat-section .vt-qa-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 185, 84, 0.26);
  opacity: 1;
}
.vt-chat-section .vt-qa-submit-btn:active { transform: translateY(0); }

@media (max-width: 600px) {
  .vt-chat-section { padding: 20px 16px 22px; border-radius: 18px; }
  .vt-tab-caption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-chat-section .vt-qa-submit-btn:hover { transform: none; }
}

/* ===========================================================================
   Celebrities — image-forward card (Tinder / tarot style, 2026-06)
   Photo is the hero; name + score ride a gradient scrim; headline, dimensions
   and the long disclaimer move to the detail panel. Less text, more image.
   (Old .celeb-tarot-*/.celeb-market-wellness/.celeb-card-classifier rules are
   now unused by the card markup.)
   =========================================================================== */
.celeb-market-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.celeb-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card2, rgba(29, 32, 36, 0.85));
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.celeb-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  border-color: var(--gold-line);
}
.celeb-card-v2.is-locked { cursor: default; }
.celeb-card-v2:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hero media */
.celeb-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 185, 84, 0.14), rgba(29, 32, 36, 0.7));
}
.celebrity-photo.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(255, 185, 84, 0.18), rgba(29, 32, 36, 0.78));
  font-size: 46px;
  color: var(--gold);
}
.celeb-card-media img { transition: transform 0.45s ease; }
.celeb-card-v2:hover .celeb-card-media img { transform: scale(1.05); }

/* Status tone overlays on photo */
.celeb-card-v2[data-tone] .celeb-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Shining — golden radial glow + shimmer sweep */
@keyframes celeb-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.celeb-card-v2[data-tone="green"] .celeb-card-media::after {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 215, 80, 0.28) 0%, transparent 65%),
    linear-gradient(105deg, transparent 38%, rgba(255, 230, 140, 0.18) 44%, transparent 50%);
  background-size: 100% 100%, 200% 100%;
  animation: celeb-shimmer 3.5s ease-in-out infinite;
}
.celeb-card-v2[data-tone="green"] {
  box-shadow: 0 0 18px rgba(255, 215, 80, 0.12), 0 6px 24px rgba(0,0,0,0.3);
}

/* Blinking — amber pulse that breathes */
@keyframes celeb-blink {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.32; }
}
.celeb-card-v2[data-tone="yellow"] .celeb-card-media::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 180, 40, 0.38) 0%, transparent 70%);
  animation: celeb-blink 2.4s ease-in-out infinite;
}

/* Needs action — steady red wash */
.celeb-card-v2[data-tone="red"] .celeb-card-media::after {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(220, 50, 50, 0.30) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(180, 30, 30, 0.15) 0%, transparent 55%);
}
.celeb-card-v2[data-tone="red"] {
  box-shadow: 0 0 14px rgba(220, 50, 50, 0.10), 0 6px 24px rgba(0,0,0,0.3);
}

/* Overlays */
.celeb-card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 20, 23, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}
.celeb-card-like {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 20, 23, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.celeb-card-like:hover { transform: scale(1.12); background: rgba(17, 20, 23, 0.82); }
.celeb-card-like.is-fav { color: var(--red); border-color: var(--red); }
.celeb-card-like.is-submitted { color: var(--green); cursor: default; }
.celeb-card-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 20, 23, 0.82);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Scrim caption */
.celeb-card-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(8, 10, 12, 0.94) 14%, rgba(8, 10, 12, 0.5) 58%, transparent);
}
.celeb-card-scrim .celebrity-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.celeb-card-scrim .celebrity-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.celeb-card-chip {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--gold-line);
  background: rgba(17, 20, 23, 0.62);
  color: var(--muted);
}
.celeb-card-chip[data-tone="green"] { color: var(--green); border-color: rgba(120, 163, 133, 0.55); }
.celeb-card-chip[data-tone="yellow"] { color: var(--gold); border-color: var(--gold-line); }
.celeb-card-chip[data-tone="red"] { color: var(--red); border-color: rgba(229, 152, 155, 0.55); }
.celeb-card-chip[data-tone="legacy"] { color: var(--muted); }

/* Evidence blurb */
.celeb-card-evidence {
  padding: 6px 12px 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.celeb-card-evidence .celeb-ev-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.celeb-card-evidence .celeb-ev-line + .celeb-ev-line { margin-top: 2px; }
.celeb-card-evidence .celeb-ev-icon { flex: 0 0 auto; font-size: 9px; opacity: 0.7; }
.celeb-card-evidence .celeb-ev-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Foot: subtle disclaimer + secondary actions */
.celeb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}
.celeb-card-note {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.7;
}
.celeb-card-foot-actions { display: flex; gap: 4px; }
.celeb-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.celeb-icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--gold-line); }
.celeb-icon-danger:hover { color: var(--red); border-color: rgba(229, 152, 155, 0.55); }

@media (max-width: 600px) {
  .celeb-market-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .celeb-card-v2:hover { transform: none; }
  .celeb-card-v2:hover .celeb-card-media img { transform: none; }
  .celeb-card-like:hover { transform: none; }
}

/* Honest birth-time confidence flag in the celebrity detail panel meta row */
.celeb-time-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 185, 84, 0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  cursor: help;
}
.celeb-time-flag.is-known {
  border-color: rgba(120, 163, 133, 0.45);
  background: rgba(120, 163, 133, 0.10);
  color: var(--green);
}

/* ── Examples-only mode: static disclaimer footer (composer removed) ── */
.input-area-static {
  padding: 10px 24px 14px;
  background: transparent;
}
.input-area-static .disclaimer { margin: 0; }

/* ── Explore & Predict discovery gallery ── */
.explore-gallery {
  margin: 28px auto 8px;
  max-width: 920px;
  width: 100%;
}
.explore-head { text-align: center; margin-bottom: 18px; }
.explore-head h3 {
  color: var(--gold);
  font-size: 20px;
  font-weight: 760;
  margin: 0 0 4px;
}
.explore-head p { color: var(--muted); font-size: 13px; margin: 0; }
/* Stacked, top-to-bottom: each category is a full-width section with art + blurb + sample cards. */
.explore-buckets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.explore-bucket {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 18px 20px;
}
.explore-bucket-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.explore-bucket-art {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold);
}
.explore-bucket-art svg { width: 30px; height: 30px; }
.explore-bucket[data-bucket="personal"] .explore-bucket-art { color: var(--purple); }
.explore-bucket[data-bucket="market"] .explore-bucket-art { color: var(--green); }
.explore-bucket[data-bucket="celebrity"] .explore-bucket-art { color: var(--gold); }
.explore-bucket[data-bucket="vedic_match"] .explore-bucket-art { color: #e74c6f; }
.explore-bucket-head { min-width: 0; }
.explore-bucket-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 760;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.explore-bucket-icon { color: var(--gold); font-size: 15px; }
.explore-bucket-blurb { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.explore-bucket-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
@media (max-width: 560px) {
  .explore-bucket-cards { grid-template-columns: 1fr 1fr; }
  .explore-bucket-art { width: 46px; height: 46px; }
  .explore-bucket-art svg { width: 26px; height: 26px; }
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-container-low);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.explore-card:hover {
  border-color: var(--gold-line);
  background: var(--gold-dim);
  transform: translateY(-1px);
}
.explore-card-title { color: var(--text); font-size: 13.5px; font-weight: 640; }
.explore-card-sub { color: var(--muted); font-size: 11.5px; }

/* ── Bucketed sidebar history ── */
.history-bucket { margin-bottom: 8px; }
.history-bucket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.history-bucket-count {
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.history-bucket-items { display: flex; flex-direction: column; gap: 2px; }
.chat-history-item { position: relative; }
.chat-history-score {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 26px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 760;
  text-align: center;
  background: var(--hover);
  color: var(--text);
}
.chat-history-score[data-tone="green"] { color: var(--green); }
.chat-history-score[data-tone="red"]   { color: var(--red); }
.chat-history-score[data-tone="yellow"] { color: var(--gold); }
.chat-history-item .chat-history-title,
.chat-history-item .chat-history-meta { padding-right: 34px; }

/* ═══════════════════════════════════════════════════════════════
   THEME SYSTEM — 4 modes: dark (default), light, vedic, festival
   ═══════════════════════════════════════════════════════════════ */

/* ── Light Ethereal ── */
[data-theme="light"] {
  --bg:           #f4f1ec;
  --surface:      #ffffff;
  --sidebar:      #ede8e1;
  --surface-dim:  #e9e4dd;
  --surface-container: #f0ece6;
  --surface-container-low: #f4f1ec;
  --surface-container-high: #e5e0d8;
  --charcoal:     #ddd8d0;
  --card:         rgba(255, 255, 255, 0.80);
  --card2:        rgba(255, 255, 255, 0.92);
  --gold:         #886020;
  --gold-bright:  #6b4a14;
  --gold-dim:     rgba(136, 96, 32, 0.10);
  --gold-line:    rgba(136, 96, 32, 0.25);
  --purple:       #c0583e;
  --purple-dim:   rgba(192, 88, 62, 0.08);
  --purple-glow:  rgba(192, 88, 62, 0.12);
  --blue:         #6b5e50;
  --blue-bright:  #c0583e;
  --green:        #3d7a4f;
  --red:          #c44040;
  --yellow:       #7d5a1e;
  --text:         #1a1a2e;
  --fg:           #1a1a2e;
  --muted:        #6b5e50;
  --border:       rgba(0, 0, 0, 0.10);
  --void-gray:    #c5c0b8;
  --hover:        rgba(0, 0, 0, 0.05);
  --hover-strong: rgba(0, 0, 0, 0.10);
  --shadow:       rgba(0, 0, 0, 0.10);
  --overlay:      rgba(244, 241, 236, 0.92);
  --chip-bg:      rgba(0, 0, 0, 0.04);
  --form-soft:    rgba(0, 0, 0, 0.03);
  --scroll-thumb: rgba(136, 96, 32, 0.30);
  --accent:       #886020;
  --accent-text:  #ffffff;
  --secondary:    #c0583e;
  --nebula-glow:  rgba(192, 88, 62, 0.06);
}
[data-theme="light"] body {
  background-image:
    linear-gradient(rgba(244, 241, 236, 0.95), rgba(244, 241, 236, 0.98)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuDW23upTE5U929SAZn-3-TszQHX5Za7y5wopTLrCC_cAV0PGiS9pnnY_YjHPVPqbQswFzI9ssojvLJZHyD89r0NNC2ZgLKTQUrpBU5lcij164c836uoC5Grh_YbrEhwQh_873b0GJ1yXmOM_v0F6mKF9z0InLDGhwiW-aj3jEZXM2qv0tkADuLN_4P7qdpUxLyftyqdlLxAmSpazkVz7MVEpP2AoxY3EjbzzG6YBF5FJHB4b9qfQE_7fKi7TFrwnwGWF-vSlW_ZGVQ");
}
[data-theme="light"] body::before { opacity: 0.018; }
[data-theme="light"] #screen-auth {
  --cv-bg: #f4f1ec;
  --cv-surface-lowest: #ede8e1;
  --cv-glass: rgba(255, 255, 255, 0.7);
  --cv-on-surface: #1a1a2e;
  --cv-on-surface-variant: #6b5e50;
  --cv-outline-variant: #c5b89e;
  --cv-bronze: #7a5a2a;
  --cv-primary: #886020;
  --cv-primary-container: #a87830;
  --cv-on-primary-container: #ffffff;
  --cv-error: #c44040;
  background: var(--cv-bg);
  color: var(--cv-on-surface);
}

/* ── Rustic Vedic ── */
[data-theme="vedic"] {
  --bg:           #1a140e;
  --surface:      #241c14;
  --sidebar:      #1a140e;
  --surface-dim:  #160f08;
  --surface-container: #2a2118;
  --surface-container-low: #1e1610;
  --surface-container-high: #342a1f;
  --charcoal:     #100a05;
  --card:         rgba(42, 33, 24, 0.70);
  --card2:        rgba(42, 33, 24, 0.90);
  --gold:         #c49a4a;
  --gold-bright:  #a87e30;
  --gold-dim:     rgba(196, 154, 74, 0.15);
  --gold-line:    rgba(160, 130, 80, 0.35);
  --purple:       #b86844;
  --purple-dim:   rgba(184, 104, 68, 0.15);
  --purple-glow:  rgba(184, 104, 68, 0.20);
  --blue:         #c4ad8e;
  --blue-bright:  #b86844;
  --green:        #6d9470;
  --red:          #c47060;
  --yellow:       #c89530;
  --text:         #e8ddd0;
  --fg:           #e8ddd0;
  --muted:        #c4ad8e;
  --border:       rgba(160, 130, 80, 0.25);
  --void-gray:    #4a4035;
  --hover:        rgba(160, 130, 80, 0.12);
  --hover-strong: rgba(160, 130, 80, 0.25);
  --shadow:       rgba(0, 0, 0, 0.7);
  --overlay:      rgba(26, 20, 14, 0.88);
  --chip-bg:      rgba(42, 33, 24, 0.75);
  --form-soft:    rgba(42, 33, 24, 0.55);
  --scroll-thumb: rgba(196, 154, 74, 0.35);
  --accent:       #c49a4a;
  --accent-text:  #1a140e;
  --secondary:    #b86844;
  --nebula-glow:  rgba(184, 104, 68, 0.10);
  --font-serif:   'Noto Serif Devanagari', 'Libre Caslon Text', Georgia, serif;
}
[data-theme="vedic"] body {
  background-image:
    linear-gradient(rgba(26, 20, 14, 0.92), rgba(26, 20, 14, 0.97)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuDW23upTE5U929SAZn-3-TszQHX5Za7y5wopTLrCC_cAV0PGiS9pnnY_YjHPVPqbQswFzI9ssojvLJZHyD89r0NNC2ZgLKTQUrpBU5lcij164c836uoC5Grh_YbrEhwQh_873b0GJ1yXmOM_v0F6mKF9z0InLDGhwiW-aj3jEZXM2qv0tkADuLN_4P7qdpUxLyftyqdlLxAmSpazkVz7MVEpP2AoxY3EjbzzG6YBF5FJHB4b9qfQE_7fKi7TFrwnwGWF-vSlW_ZGVQ");
}
[data-theme="vedic"] body::before { opacity: 0.06; }
[data-theme="vedic"] #screen-auth {
  --cv-bg: #1a140e;
  --cv-surface-lowest: #130d07;
  --cv-glass: rgba(42, 33, 24, 0.65);
  --cv-on-surface: #e8ddd0;
  --cv-on-surface-variant: #c4ad8e;
  --cv-outline-variant: #5a4830;
  --cv-bronze: #a87e30;
  --cv-primary: #c49a4a;
  --cv-primary-container: #a87e30;
  --cv-on-primary-container: #1a140e;
  --cv-error: #c47060;
  background: var(--cv-bg);
  color: var(--cv-on-surface);
}

/* ── Festival ── */
[data-theme="festival"] {
  --bg:           #180a28;
  --surface:      #221240;
  --sidebar:      #180a28;
  --surface-dim:  #120620;
  --surface-container: #2c1850;
  --surface-container-low: #1e0e38;
  --surface-container-high: #382060;
  --charcoal:     #0e0418;
  --card:         rgba(44, 24, 80, 0.65);
  --card2:        rgba(44, 24, 80, 0.85);
  --gold:         #ffd54f;
  --gold-bright:  #ffb300;
  --gold-dim:     rgba(255, 213, 79, 0.15);
  --gold-line:    rgba(255, 179, 0, 0.30);
  --purple:       #ff6b35;
  --purple-dim:   rgba(255, 107, 53, 0.15);
  --purple-glow:  rgba(255, 107, 53, 0.25);
  --blue:         #b8a0d8;
  --blue-bright:  #ff6b35;
  --green:        #66bb6a;
  --red:          #ef5350;
  --yellow:       #e8b020;
  --text:         #f0e8ff;
  --fg:           #f0e8ff;
  --muted:        #b8a0d8;
  --border:       rgba(255, 179, 0, 0.20);
  --void-gray:    #4a3568;
  --hover:        rgba(255, 213, 79, 0.10);
  --hover-strong: rgba(255, 213, 79, 0.22);
  --shadow:       rgba(0, 0, 0, 0.65);
  --overlay:      rgba(24, 10, 40, 0.90);
  --chip-bg:      rgba(44, 24, 80, 0.75);
  --form-soft:    rgba(44, 24, 80, 0.55);
  --scroll-thumb: rgba(255, 213, 79, 0.35);
  --accent:       #ffd54f;
  --accent-text:  #180a28;
  --secondary:    #ff6b35;
  --nebula-glow:  rgba(255, 107, 53, 0.12);
}
[data-theme="festival"] body {
  background-image:
    linear-gradient(rgba(24, 10, 40, 0.88), rgba(24, 10, 40, 0.95)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuDW23upTE5U929SAZn-3-TszQHX5Za7y5wopTLrCC_cAV0PGiS9pnnY_YjHPVPqbQswFzI9ssojvLJZHyD89r0NNC2ZgLKTQUrpBU5lcij164c836uoC5Grh_YbrEhwQh_873b0GJ1yXmOM_v0F6mKF9z0InLDGhwiW-aj3jEZXM2qv0tkADuLN_4P7qdpUxLyftyqdlLxAmSpazkVz7MVEpP2AoxY3EjbzzG6YBF5FJHB4b9qfQE_7fKi7TFrwnwGWF-vSlW_ZGVQ");
}
[data-theme="festival"] body::before { opacity: 0.025; }
[data-theme="festival"] #screen-auth {
  --cv-bg: #180a28;
  --cv-surface-lowest: #120620;
  --cv-glass: rgba(44, 24, 80, 0.65);
  --cv-on-surface: #f0e8ff;
  --cv-on-surface-variant: #b8a0d8;
  --cv-outline-variant: #5a3880;
  --cv-bronze: #ffb300;
  --cv-primary: #ffd54f;
  --cv-primary-container: #ffb300;
  --cv-on-primary-container: #180a28;
  --cv-error: #ef5350;
  background: var(--cv-bg);
  color: var(--cv-on-surface);
}

/* ── Theme switcher UI ── */
.theme-picker {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.theme-swatch {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.theme-swatch:hover {
  transform: scale(1.08);
  border-color: var(--gold-line);
}
.theme-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(255, 185, 84, 0.25);
}
.theme-swatch-fill {
  position: absolute;
  inset: 0;
}
.theme-swatch-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
}
.theme-swatch-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.theme-swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 20px;
}

/* ── Chat "+" button & menu ── */
.chat-plus-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.btn-chat-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t), border-color var(--t), background var(--t), transform 0.25s ease;
  margin-right: 4px;
}
.btn-chat-plus:hover {
  color: var(--gold);
  border-color: rgba(255, 185, 84, 0.5);
  background: var(--gold-dim);
}
.btn-chat-plus.open {
  transform: rotate(45deg);
  color: var(--gold);
  border-color: rgba(255, 185, 84, 0.5);
}
.chat-plus-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--surface-container-high);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 90;
  animation: plusMenuIn 0.15s ease-out;
}
@keyframes plusMenuIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-plus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.chat-plus-item:hover {
  background: var(--hover-strong);
  color: var(--gold);
}
.chat-plus-item svg { color: var(--muted); flex-shrink: 0; }
.chat-plus-item:hover svg { color: var(--gold); }

/* ── Support Chat Drawer ── */
.support-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: min(600px, 80vh);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 48px var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.support-drawer.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.support-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.support-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.support-drawer-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.support-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t);
}
.support-drawer-close:hover {
  background: var(--hover-strong);
  color: var(--text);
}
.support-drawer-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-welcome {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
}
.support-welcome p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-container);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
  white-space: nowrap;
}
.support-chip:hover {
  border-color: rgba(255, 185, 84, 0.5);
  color: var(--gold);
  background: var(--gold-dim);
}
.support-msg-user {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--gold-dim);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.support-msg-bot {
  align-self: flex-start;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-container-high);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.support-msg-loading {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-container-high);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-drawer-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-container-low);
  flex-shrink: 0;
}
.support-drawer-input textarea {
  flex: 1;
  border: 1px solid var(--void-gray);
  border-radius: 12px;
  background: var(--surface-container);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.45;
}
.support-drawer-input textarea:focus {
  outline: none;
  border-color: rgba(255, 214, 122, 0.3);
}
.support-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 1px;
}

@media (max-width: 500px) {
  .support-drawer {
    width: 100vw;
    height: 85vh;
    border-radius: 16px 16px 0 0;
  }
}
@media (max-width: 820px) {
  .chat-plus-menu {
    left: auto;
    right: 0;
  }
}

