/**
 * Prime Self — App-Specific Styles
 * 
 * Extracted from index.html inline <style> block (Phase 4).
 * 
 * DUPLICATE AUDIT: Selectors marked [DUP] also exist in external component
 * files (buttons.css, tabs.css, cards.css, forms.css, alerts.css, layout.css,
 * prime-self.css). These are kept here to preserve current visual appearance.
 * As design tokens stabilize, remove duplicates and let component files win.
 * 
 * INLINE-ONLY: Selectors marked [UNIQUE] have no external counterpart.
 */

/* ── Header [UNIQUE] ── */
header {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1230 100%);
  border-bottom: 1px solid var(--gold-dim, #a88840);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; position: sticky; top: 0; z-index: 100;
  gap: 12px;
}

/* ── Skip Link (Accessibility) [ACC-P3-1] ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold, #c9a84c);
  color: #0a0a0f;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  top: 0;
}

/* ── Visually Hidden (Accessibility) [ACC-P2-6] ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.logo { font-size: 1.3rem; font-weight: 700; color: var(--gold, #c9a84c); letter-spacing: 0.05em; }
.logo span { color: var(--text-dim, #c4c0d8); font-weight: 300; font-size: 0.85rem; margin-left: 8px; }
.auth-bar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } /* [DUP] layout.css */
.auth-status { font-size: 0.8rem; color: var(--text-dim, #c4c0d8); white-space: nowrap; } /* [DUP] layout.css */
.auth-status.logged-in { color: var(--accent2, #4fc8a0); } /* [DUP] layout.css */
.account-menu-wrap {
  position: relative;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: rgba(11, 18, 38, 0.98);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  z-index: 140;
}

.account-menu-item {
  width: 100%;
  justify-content: flex-start;
}

.profile-birth-summary-card {
  margin-bottom: var(--space-4);
}

.profile-birth-summary-copy {
  display: grid;
  gap: var(--space-2);
}

.profile-birth-summary-title {
  margin: 0;
  color: var(--text, #eceaf4);
  font-size: var(--font-size-base);
  font-weight: 700;
}

.profile-birth-summary-text {
  margin: 0;
  color: var(--text-dim, #c4c0d8);
  line-height: 1.6;
}

/* Header mobile adjustments */
@media (max-width: 768px) {
  header {
    padding: 0 12px;
    gap: 8px;
  }
  .logo { font-size: 1.1rem; }
  .logo span { display: none; }
  .auth-bar { gap: 6px; }
  .auth-bar .btn-sm { 
    padding: 4px 8px; 
    font-size: 0.72rem; 
  }
  .account-menu-panel {
    right: -4px;
    min-width: 170px;
  }
}

/* ── Buttons [DUP] buttons.css ── */
button, .btn {
  cursor: pointer; border: none; border-radius: 6px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; transition: all 0.15s; display: inline-flex;
  align-items: center; gap: 6px;
}
.btn-primary { background: var(--gold, #c9a84c); color: #0a0a0f; }
.btn-primary:hover { background: #e0be6a; }
.btn-secondary { background: var(--bg3, #111d38); color: var(--text, #eceaf4); border: 1px solid var(--border, #1d2f52); }
.btn-secondary:hover { border-color: var(--gold-dim, #a88840); color: var(--gold, #c9a84c); }
.btn-danger { background: transparent; color: var(--red, #e05050); border: 1px solid var(--red, #e05050); }
.btn-danger:hover { background: var(--red, #e05050); color: white; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Step indicator banner [UNIQUE] */
.step-guide {
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(91,138,240,0.05) 100%);
  border: 1px solid var(--border, #1d2f52); border-radius: 10px; padding: 16px 20px;
  margin-bottom: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.step-item {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: clamp(140px, 25vw, 180px);
  padding: 10px 14px; border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.step-item:hover { background: rgba(201,168,76,0.08); }
.step-item.done .step-num { background: var(--green, #50c878); color: #0a0a0f; }
.step-item.active-step .step-num { background: var(--gold, #c9a84c); color: #0a0a0f; box-shadow: 0 0 0 3px rgba(201,168,76,0.25); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--border, #1d2f52); color: var(--text-dim, #c4c0d8); font-weight: 700; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-label { font-size: 0.82rem; }
.step-label strong { display: block; color: var(--text, #eceaf4); font-size: 0.88rem; }
.step-label span { color: var(--text-dim, #c4c0d8); font-size: 0.78rem; }
.step-arrow { color: var(--border, #1d2f52); font-size: 1.1rem; flex-shrink: 0; }

.step-guide--summary {
  padding: 12px 16px;
  gap: 6px;
}

.step-guide--summary .step-item {
  min-width: clamp(110px, 18vw, 150px);
  padding: 8px 10px;
}

.step-guide--summary .step-label span {
  display: none;
}

.step-guide--summary .step-arrow {
  opacity: 0.48;
}

/* ── Layout [DUP] base.css ── */
.container { max-width: 1000px; margin: 0 auto; padding: 28px 24px; }
.tab-content { display: none; }
.tab-content.active { display: block; padding-bottom: var(--space-8); } /* UI-025: ensure bottom breathing room on desktop */

.shell-orientation-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(11, 18, 38, 0.94), rgba(17, 29, 56, 0.92));
  border-bottom: 1px solid var(--border, #1d2f52);
}

.shell-orientation-strip[data-guidance-context="practitioner"] {
  background: linear-gradient(135deg, rgba(11, 18, 38, 0.94), rgba(34, 57, 98, 0.9));
}

.shell-orientation-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold, #c9a84c);
  font-size: 1rem;
  font-weight: 700;
}

.shell-orientation-strip[data-guidance-context="practitioner"] .shell-orientation-icon {
  background: rgba(91, 138, 240, 0.16);
  color: var(--accent, #5b8af0);
}

.shell-orientation-eyebrow,
.shell-orientation-next-label {
  margin: 0 0 0.28rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
}

.shell-orientation-strip[data-guidance-context="practitioner"] .shell-orientation-eyebrow,
.shell-orientation-strip[data-guidance-context="practitioner"] .shell-orientation-next-label {
  color: var(--accent, #5b8af0);
}

.shell-orientation-title {
  margin: 0;
  color: var(--text, #eceaf4);
  font-size: clamp(1rem, 0.96rem + 0.32vw, 1.18rem);
  line-height: 1.25;
}

.shell-orientation-text,
.shell-orientation-next-text {
  margin: 0.45rem 0 0;
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.shell-orientation-next {
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius, 12px);
}

/* ── Cards [DUP] cards.css ── */
.card {
  background: var(--bg2, #0b1226); border: 1px solid var(--border, #1d2f52); border-radius: var(--radius, 12px);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,0.5));
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--gold, #c9a84c); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ── Forms [DUP] forms.css ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width: 600px) { .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim, #c4c0d8); text-transform: uppercase; letter-spacing: 0.04em; }
input, select, textarea {
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 6px;
  color: var(--text, #eceaf4); padding: 9px 12px; font-size: 0.9rem; transition: border 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-dim, #a88840); }
select option { background: var(--bg3, #111d38); }

/* ── Auth Modal [UNIQUE] ── */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.hidden,
.overlay.hidden,
[role="dialog"].hidden {
  display: none !important;
}
.auth-overlay.hidden { display: none; }
.auth-box {
  background: var(--bg2, #0b1226); border: 1px solid var(--gold-dim, #a88840); border-radius: 12px;
  padding: 32px; width: 360px; max-width: 95vw; box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.auth-box h2 { color: var(--gold, #c9a84c); margin-bottom: 6px; font-size: 1.3rem; }
.auth-box p { color: var(--text-dim, #c4c0d8); font-size: 0.85rem; margin-bottom: 24px; }
.auth-toggle { text-align: center; margin-top: 16px; font-size: 0.82rem; color: var(--text-dim, #c4c0d8); }
.auth-toggle a { color: var(--gold, #c9a84c); cursor: pointer; text-decoration: underline; }
.auth-terms-notice { text-align: center; font-size: 0.75rem; color: var(--text-dim, #c4c0d8); margin-top: 10px; line-height: 1.5; }
.auth-terms-notice a { color: var(--gold, #c9a84c); text-decoration: underline; }
.auth-error { color: var(--red, #e05050); font-size: 0.82rem; margin-top: 8px; min-height: 18px; }

/* ── Status / Alerts [DUP] alerts.css ── */
.alert {
  padding: 12px 16px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-info { background: rgba(74,130,240,0.15); border: 1px solid rgba(74,130,240,0.4); color: #93baf8; }
.tab-hint { font-size: var(--font-size-sm); color: var(--text-muted, #8fafc8); margin: 0 0 var(--space-4); line-height: 1.6; padding: 0 var(--space-1); } /* [UNIQUE] — subtle section intro text */

/* ── Reusable guidance surfaces (GUIDE-002) ─────────────────────────────── */
.guidance-strip,
.guidance-panel,
.term-explainer,
.next-step-card,
.learn-more-disclosure {
  --guidance-accent: var(--gold, #c9a84c);
  --guidance-border: color-mix(in srgb, var(--guidance-accent) 22%, transparent);
  --guidance-soft: color-mix(in srgb, var(--guidance-accent) 8%, transparent);
}

.guidance-strip[data-guidance-context="practitioner"],
.guidance-panel[data-guidance-context="practitioner"],
.term-explainer[data-guidance-context="practitioner"],
.next-step-card[data-guidance-context="practitioner"],
.learn-more-disclosure[data-guidance-context="practitioner"] {
  --guidance-accent: var(--accent, #5b8af0);
}

.guidance-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
  background: linear-gradient(135deg, var(--guidance-soft), rgba(11, 18, 38, 0.82));
  border: 1px solid var(--guidance-border);
  border-left: 3px solid var(--guidance-accent);
  border-radius: var(--radius, 12px);
}

.guidance-strip-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--guidance-accent) 16%, transparent);
  color: var(--guidance-accent);
  font-size: 1rem;
  font-weight: 700;
}

.guidance-strip-body,
.guidance-panel-main,
.term-explainer-body,
.next-step-card-copy {
  min-width: 0;
}

.guidance-strip-eyebrow,
.guidance-panel-eyebrow,
.term-explainer-label,
.next-step-card-label {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guidance-accent);
}

.guidance-strip-title,
.guidance-panel-title,
.term-explainer-term,
.next-step-card-title {
  margin: 0;
  color: var(--text, #eceaf4);
  line-height: 1.25;
}

.guidance-strip-title,
.guidance-panel-title {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}

.guidance-strip-text,
.guidance-panel-text,
.term-explainer-meaning,
.term-explainer-impact,
.next-step-card-text {
  margin: 0.45rem 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-dim, #c4c0d8);
}

.guidance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.95fr);
  gap: var(--space-4);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
  background: linear-gradient(160deg, rgba(17, 29, 56, 0.95), rgba(11, 18, 38, 0.96));
  border: 1px solid var(--guidance-border);
  border-radius: var(--radius, 12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.guidance-panel--single {
  grid-template-columns: minmax(0, 1fr);
}

.guidance-panel--compact {
  padding: var(--space-3);
  gap: var(--space-3);
}

.guidance-inline-hint-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.guidance-inline-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #8fafc8);
}

.guidance-inline-hint::before {
  content: 'i';
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  display: inline-grid;
  place-items: center;
  margin-top: 0.14rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--guidance-accent) 18%, transparent);
  color: var(--guidance-accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.term-explainer {
  align-self: start;
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(11, 18, 38, 0.25));
  border: 1px solid color-mix(in srgb, var(--guidance-accent) 18%, var(--border, #1d2f52));
  border-radius: calc(var(--radius, 12px) - 2px);
}

.term-explainer-term {
  font-size: 1rem;
}

.term-explainer-impact {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.next-step-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3);
  margin: 0 0 var(--space-4);
  background: color-mix(in srgb, var(--guidance-accent) 7%, rgba(17, 29, 56, 0.92));
  border: 1px solid var(--guidance-border);
  border-radius: var(--radius, 12px);
}

.next-step-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.learn-more-disclosure {
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(11, 18, 38, 0.68);
  border: 1px solid var(--guidance-border);
  border-radius: calc(var(--radius, 12px) - 2px);
}

.learn-more-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  list-style: none;
  color: var(--text, #eceaf4);
  font-size: 0.9rem;
  font-weight: 600;
}

.learn-more-summary::-webkit-details-marker {
  display: none;
}

.learn-more-summary::after {
  content: '+';
  color: var(--guidance-accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.learn-more-disclosure[open] .learn-more-summary::after {
  content: '−';
}

.learn-more-content {
  padding-top: var(--space-3);
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.learn-more-content p {
  margin: 0;
}

.learn-more-content p + p {
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .shell-orientation-strip {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-3);
  }

  .shell-orientation-next {
    padding: var(--space-2);
  }

  .guidance-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .guidance-strip,
  .next-step-card {
    padding: var(--space-3);
  }
}

/* ── Feature Callout — replaces plain tab-hint text [UNIQUE] ──────────────── */
.feature-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: color-mix(in srgb, var(--gold, #c9a84c) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a84c) 20%, transparent);
  border-left: 3px solid var(--gold, #c9a84c);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
}
.feature-callout-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--gold, #c9a84c);
  margin-top: 1px;
}
.feature-callout-body { flex: 1; }
.feature-callout-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 3px;
}
.feature-callout-text {
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  line-height: 1.55;
  margin: 0;
}
.alert-success { background: rgba(80,200,120,0.12); border: 1px solid rgba(80,200,120,0.3); color: var(--accent2, #4fc8a0); }
.alert-error { background: rgba(224,80,80,0.12); border: 1px solid rgba(224,80,80,0.3); color: var(--red, #e05050); }
.alert-warn { background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3); color: var(--gold, #c9a84c); } /* [UNIQUE] — external has .alert-warning */

/* ── Tooltips [UNIQUE] ── */
.help-icon {
  display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center;
  background: rgba(74,130,240,0.2); color: var(--accent, #5b8af0); border-radius: 50%;
  font-size: 0.7rem; font-weight: 700; cursor: help; margin-left: 4px;
  position: relative; user-select: none; vertical-align: middle; flex-shrink: 0;
}
.help-icon:hover,
.help-icon:focus-visible,
.help-icon.tooltip-open { background: rgba(74,130,240,0.4); }
.help-icon[title]:is(:hover, :focus-visible, .tooltip-open)::after {
  content: attr(title); position: fixed;
  left: var(--tooltip-left, calc(50% + 8px)); top: var(--tooltip-top, calc(100% + 8px));
  background: var(--bg2, #0b1226); color: var(--text, #eceaf4);
  padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border, #1d2f52);
  font-size: 0.8rem; font-weight: 400; white-space: normal; width: min(260px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  box-shadow: var(--shadow, 0 4px 24px rgba(0,0,0,0.5)); z-index: var(--z-tooltip); pointer-events: none; line-height: 1.4;
  box-sizing: border-box; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; text-align: left;
  transform: none; /* Remove the translateX(-50%) since we calculate exact position */
}
.help-icon[title].tooltip-below:is(:hover, :focus-visible, .tooltip-open)::after {
  top: var(--tooltip-top, calc(100% + 8px));
}
.help-icon[title]:is(:hover, :focus-visible, .tooltip-open)::before {
  content: ''; position: fixed;
  left: var(--tooltip-left, calc(50% + 8px)); top: var(--tooltip-top, calc(100% + 2px));
  border: 6px solid transparent;
  border-top-color: var(--border, #1d2f52); z-index: var(--z-tooltip);
  transform: none; /* Remove translateX(-50%) */
}
.help-icon[title].tooltip-below:is(:hover, :focus-visible, .tooltip-open)::before {
  border-top-color: transparent;
  border-bottom-color: var(--border, #1d2f52);
  top: var(--tooltip-top, calc(100% + 2px));
}

@media (max-width: 768px) {
  .help-icon[title]:is(:hover, :focus-visible, .tooltip-open)::after {
    width: min(20rem, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* ── Loading spinner [DUP] base.css (keyframes) ── */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(201,168,76,0.3); border-top-color: var(--gold, #c9a84c);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card {
  text-align: center; padding: 40px; color: var(--text-dim, #c4c0d8);
  background: var(--bg2, #0b1226); border: 1px solid var(--border, #1d2f52); border-radius: var(--radius, 12px);
}
.loading-card .spinner { width: 32px; height: 32px; border-width: 3px; margin-bottom: 16px; }

/* ── Result displays [DUP] cards.css ── */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:640px) { .chart-grid { grid-template-columns: 1fr; } }
.data-block { background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 8px; padding: 16px; }
.data-block h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim, #c4c0d8); margin-bottom: 10px; }
.data-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.data-row:last-child { border-bottom: none; }
.data-label { font-size: 0.8rem; color: var(--text-dim, #d8d5e8); font-weight: 600; }
.data-value { font-size: 0.88rem; color: var(--text, #eceaf4); font-weight: 500; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.energy-chart-card {
  background:
    radial-gradient(circle at top, rgba(201,168,76,0.14), transparent 52%),
    linear-gradient(180deg, rgba(11,18,38,0.96), rgba(5,9,26,0.98));
  border: 1px solid rgba(201,168,76,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.22);
}

.energy-chart-card svg {
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.24));
}

/* ── Forge badge [DUP] prime-self.css ── */
.forge-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(74,130,240,0.15));
  border: 1px solid var(--gold-dim, #a88840); border-radius: 100px;
  padding: 8px 16px; font-size: 0.88rem; font-weight: 700; color: var(--gold, #c9a84c);
  margin-bottom: 12px;
}
.confidence-pill {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; padding: 2px 8px;
  border-radius: 100px; background: rgba(80,200,120,0.2); color: var(--accent2, #4fc8a0);
}
.confidence-pill.medium { background: rgba(201,168,76,0.2); color: var(--gold, #c9a84c); }
.confidence-pill.low { background: rgba(224,80,80,0.2); color: var(--red, #e05050); }

/* ═══ Forge Weapon/Defense/Shadow (Sprint 19.2) ═══ */
.forge-weapon,
.forge-defense,
.forge-shadow {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}
.forge-weapon {
  background: linear-gradient(135deg, rgba(255,107,107,0.08) 0%, rgba(255,107,107,0.04) 100%);
  border-left: 3px solid #ff6b6b;
  color: var(--text, #eceaf4);
}
.forge-defense {
  background: linear-gradient(135deg, rgba(78,205,196,0.08) 0%, rgba(78,205,196,0.04) 100%);
  border-left: 3px solid #4ecdc4;
  color: var(--text, #eceaf4);
}
.forge-shadow {
  background: linear-gradient(135deg, rgba(224,80,80,0.1) 0%, rgba(74,130,240,0.08) 100%);
  border-left: 3px solid var(--red, #e05050);
  color: var(--text-dim, #c4c0d8);
}
.forge-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.forge-weapon strong,
.forge-defense strong,
.forge-shadow strong {
  color: var(--gold, #c9a84c);
}

/* ── Section headers [DUP] layout.css ── */
.section-header {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim, #c4c0d8); margin: 18px 0 8px; border-left: 2px solid var(--gold-dim, #a88840);
  padding-left: 8px;
}
.profile-section { background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.profile-section h4 { font-size: 0.85rem; font-weight: 700; color: var(--gold, #c9a84c); margin-bottom: 10px; }

/* ═══ Priming Recommendations (Sprint 19.2) ═══ */
.exemplar-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(74,130,240,0.06) 100%);
  border: 1px solid var(--gold-dim, #a88840);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-2);
}
.exemplar-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gold, #c9a84c);
  margin-bottom: var(--space-2);
}
.exemplar-card p {
  font-size: var(--font-size-base);
  color: var(--text, #eceaf4);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-width: clamp(280px, 90vw, 700px);
}
.exemplar-lesson,
.exemplar-invoke {
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  line-height: 1.5;
  margin-top: var(--space-2);
  padding-left: var(--space-3);
  border-left: 2px solid var(--gold-dim, #a88840);
  max-width: clamp(280px, 90vw, 700px);
}
.exemplar-lesson strong,
.exemplar-invoke strong {
  color: var(--gold, #c9a84c);
}

/* Book Recommendations */
.book-recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.book-rec {
  background: var(--bg2, #0b1226);
  border: 1px solid var(--border, #1d2f52);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.book-type {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8fafc8);
  margin-bottom: var(--space-1);
}
.book-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text, #eceaf4);
  margin-bottom: var(--space-1);
}
.book-author {
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  font-style: italic;
}
.book-relevance {
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* Knowledge Focus Badge */
.knowledge-focus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold, #c9a84c) 0%, rgba(201,168,76,0.7) 100%);
  color: var(--bg, #05091a);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

/* ── Tags / Pills [UNIQUE] ── */
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { background: rgba(74,130,240,0.2); border: 1px solid rgba(74,130,240,0.4); border-radius: 100px; padding: 3px 10px; font-size: 0.78rem; color: #93baf8; }
.pill.green { background: rgba(80,200,120,0.15); border-color: rgba(80,200,120,0.3); color: var(--accent2, #4fc8a0); }
.pill.gold { background: rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.3); color: var(--gold, #c9a84c); }

/* ── Explanation text (Phase 2) [UNIQUE] ── UX-009: Enhanced visibility */
.explanation-text { 
  font-size: 0.85rem; 
  color: var(--text, #e8e6f0); 
  line-height: 1.6; 
  margin: 6px 0 10px 0; 
  padding: 8px 0 8px 12px; 
  border-left: 3px solid var(--gold, #c9a84c); 
  background: rgba(201, 168, 76, 0.08);
}
.center-explain { font-size: 0.78rem; color: var(--text-dim, #c4c0d8); line-height: 1.5; margin-top: 3px; }
.center-explain .center-governs { font-weight: 600; color: var(--gold-dim, #a88840); }
.channel-detail { font-size: 0.78rem; color: var(--text-dim, #c4c0d8); line-height: 1.4; margin-top: 2px; }
.channel-name { font-weight: 600; color: var(--gold, #c9a84c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gate-name-tag { font-size: 0.72rem; color: var(--text-muted, #8fafc8); font-style: italic; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile styles for data display */
@media (max-width: 768px) {
  /* Stack label/value pairs vertically so long values aren't truncated */
  .data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 0;
  }
  .data-value {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.85rem;
  }
  /* Allow channel names and gate tags to wrap rather than clip */
  .channel-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.85rem;
  }
  .gate-name-tag {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.78rem;
  }
}

/* ── Sub-tab pills (Phase 3) [UNIQUE] ── */
.sub-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--bg2, #0b1226); border-radius: 8px; border: 1px solid var(--border, #1d2f52); position: relative; }
.sub-tab { background: none; border: none; color: var(--text-dim, #c4c0d8); padding: 7px 16px; font-size: 0.82rem; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.sub-tab:hover { color: var(--text, #eceaf4); background: rgba(201,168,76,0.06); }
.sub-tab.active { background: rgba(201,168,76,0.12); color: var(--gold, #c9a84c); font-weight: 600; }

/* ── Grounding audit bar [UNIQUE] ── */
.audit-bar-wrap { background: var(--bg, #05091a); height: 6px; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.audit-bar { height: 100%; background: linear-gradient(90deg, var(--red, #e05050), var(--gold, #c9a84c), var(--green, #50c878, #50c878)); border-radius: 3px; transition: width 0.6s ease; }

/* ── Transit row [DUP] prime-self.css ── */
.transit-row {
  display: grid; grid-template-columns: 130px 1fr auto;
  align-items: start; gap: 12px; padding: 10px 14px;
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 6px; margin-bottom: 6px;
  transition: border-color 0.15s;
}
.transit-row:hover { border-color: rgba(201,168,76,0.3); }
.transit-row-hit { border-color: rgba(201,168,76,0.25) !important; background: rgba(201,168,76,0.04) !important; } /* [UNIQUE] */

/* Mobile: stack transit rows vertically */
@media (max-width: 600px) {
  .transit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.planet-name { font-size: 0.85rem; font-weight: 700; color: var(--gold, #c9a84c); }
.planet-pos { font-size: 0.8rem; color: var(--text, #eceaf4); }
.gate-badge {
  background: rgba(74,130,240,0.25); border: 1px solid rgba(74,130,240,0.5);
  color: #93baf8; border-radius: 5px; padding: 3px 8px; font-size: 0.78rem; font-weight: 700;
}

/* ── Profile history card [DUP] prime-self.css ── */
.history-item {
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; transition: border-color 0.15s;
}
.history-item:hover { border-color: var(--gold-dim, #a88840); }
.history-meta { font-size: 0.78rem; color: var(--text-muted, #918db0); margin-top: 3px; }

/* ── Raw JSON toggler [DUP] prime-self.css ── */
.raw-toggle { font-size: 0.75rem; color: var(--text-muted, #918db0); cursor: pointer; text-decoration: underline; margin-top: 12px; display: inline-block; }
.raw-json { display: none; background: var(--bg, #05091a); border: 1px solid var(--border, #1d2f52); border-radius: 6px; padding: 14px; font-family: monospace; font-size: 0.72rem; overflow-x: auto; margin-top: 8px; white-space: pre-wrap; color: #90c890; max-height: 400px; overflow-y: auto; word-break: break-all; }
.raw-json.open { display: block; }

/* ── Empty state [UNIQUE] ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted, #8fafc8); }
.empty-state .icon { font-size: 2.8rem; margin-bottom: var(--space-3); opacity: 0.35; display: block; }
.empty-state .empty-title { font-size: var(--font-size-base); font-weight: 600; color: var(--text-dim, #c4c0d8); margin: 0 0 var(--space-2); }
.empty-state p { font-size: 0.88rem; max-width: 300px; margin: 0 auto; line-height: 1.6; }

/* ── Indicator list [UNIQUE] ── */
.indicator-list { list-style: none; }
.indicator-list li {
  padding: 7px 10px; border-left: 2px solid var(--accent, #5b8af0); background: rgba(74,130,240,0.08);
  margin-bottom: 5px; border-radius: 0 5px 5px 0; font-size: 0.82rem;
}
.indicator-list li .sys-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; background: rgba(74,130,240,0.3); border-radius: 3px; padding: 1px 5px; margin-right: 6px; color: #93baf8; }
.indicator-list li .sys-badge.astro { background: rgba(79,200,160,0.3); color: var(--accent2, #4fc8a0); }

/* ── Cluster Cards [DUP] prime-self.css ── */
.cluster-card {
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 8px;
  padding: 18px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
}
.cluster-card:hover { border-color: var(--gold-dim, #a88840); transform: translateY(-2px); }
.cluster-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; } /* [UNIQUE] */
.cluster-card-title { font-size: 1rem; font-weight: 700; color: var(--gold, #c9a84c); }
.cluster-card-meta { font-size: 0.78rem; color: var(--text-dim, #c4c0d8); margin-top: 4px; }
.cluster-card-challenge { font-size: 0.85rem; color: var(--text, #eceaf4); margin-top: 8px; font-style: italic; } /* [UNIQUE] */
.cluster-member-count { background: rgba(79,200,160,0.2); color: var(--accent2, #4fc8a0); padding: 3px 10px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }

/* ── Forge Role Badges [DUP] prime-self.css ── */
.forge-role-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  background: rgba(201,168,76,0.15); border: 1px solid var(--gold-dim, #a88840); color: var(--gold, #c9a84c);
}
.forge-role-badge.power { background: rgba(224,80,80,0.15); border-color: rgba(224,80,80,0.4); color: #f08080; }
.forge-role-badge.craft { background: rgba(80,200,120,0.15); border-color: rgba(80,200,120,0.4); color: #80e0a0; }
.forge-role-badge.vision { background: rgba(74,130,240,0.15); border-color: rgba(74,130,240,0.4); color: #93baf8; }
.forge-role-badge.mirrors { background: rgba(79,200,200,0.15); border-color: rgba(79,200,200,0.4); color: #80e0e0; } /* [UNIQUE] */

/* ── Composition Bar Chart [DUP] prime-self.css ── */
.composition-bar { background: var(--bg, #05091a); height: 32px; border-radius: 6px; overflow: hidden; display: flex; margin: 12px 0; }
.composition-segment { display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: white; transition: all 0.3s; }
.composition-segment:hover { filter: brightness(1.2); }
.composition-segment.manifestor { background: #e05050; }
.composition-segment.generator { background: #50c878; }
.composition-segment.mg { background: #60d888; } /* [UNIQUE] */
.composition-segment.projector { background: #6a4fc8; }
.composition-segment.reflector { background: #4fc8c8; }

/* ── Action Grid [UNIQUE] ── */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.action-grid button { justify-content: center; }

/* ── Pricing Modal [UNIQUE] ── */
.pricing-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 250;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.pricing-overlay.hidden { display: none; }
.pricing-modal {
  background: var(--bg2, #0b1226); border: 2px solid var(--gold, #c9a84c); border-radius: 12px;
  padding: 40px; width: 680px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 12px 60px rgba(201,168,76,0.3);
}
.pricing-modal--pro {
  border-color: var(--accent, #5b8af0);
  box-shadow: 0 12px 60px rgba(74,130,240,0.3);
}
.pricing-modal h2 { color: var(--gold, #c9a84c); margin-bottom: 8px; font-size: 1.8rem; text-align: center; }
.pricing-modal--pro h2 { color: var(--accent, #5b8af0); }
.pricing-modal .subtitle { color: var(--text-dim, #c4c0d8); font-size: 0.95rem; text-align: center; margin-bottom: 32px; }
/* 4-col grid (legacy, unused — kept for grid fallback) */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
/* 2-col grid for audience-separated modals */
.pricing-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 580px) { .pricing-grid--2col { grid-template-columns: 1fr; } }
@media(max-width: 850px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 500px) { .pricing-grid { grid-template-columns: 1fr; } }
/* GTM-007: Individual tier hidden from marketing surfaces by default.
   Shown only when JS adds .show-all-tiers to the grid, or when user is
   already on the Individual plan (populated by app.js renderPricingModal). */
.pricing-card[data-marketing-hidden="true"] { display: none; }
.pricing-grid.show-all-tiers .pricing-card[data-marketing-hidden="true"] { display: flex; }
/* Collapse 2-col to 1-col when the hidden card is the only non-free option */
.pricing-grid--2col:not(.show-all-tiers) { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
.pricing-card {
  background: var(--bg3, #111d38); border: 2px solid var(--border, #1d2f52); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; transition: all 0.2s;
  min-width: min(280px, 100%); position: relative;
}
.pricing-card:hover { border-color: var(--gold-dim, #a88840); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--gold, #c9a84c); background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, var(--bg3, #111d38) 100%); }
.pricing-modal--pro .pricing-card.featured { border-color: var(--accent, #5b8af0); background: linear-gradient(135deg, rgba(74,130,240,0.1) 0%, var(--bg3, #111d38) 100%); }
/* "Most Popular" label inside card */
.tier-badge-label {
  position: absolute; top: -1px; right: 16px;
  background: var(--gold, #c9a84c); color: #0a0a0f;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 0 0 5px 5px;
}
.pricing-modal--pro .tier-badge-label { background: var(--accent, #5b8af0); }
.pricing-card .tier-name { font-size: 1.2rem; font-weight: 700; color: var(--gold, #c9a84c); margin-bottom: 8px; margin-top: 8px; }
.pricing-modal--pro .pricing-card .tier-name { color: var(--accent, #5b8af0); }
.pricing-card .tier-price { font-size: 2rem; font-weight: 700; color: var(--text, #eceaf4); margin-bottom: 4px; }
.pricing-card .tier-price .currency { font-size: 1.2rem; font-weight: 400; color: var(--text-dim, #c4c0d8); }
.pricing-card .tier-billing { font-size: 0.75rem; color: var(--text-dim, #c4c0d8); margin-bottom: 16px; }
.pricing-card .tier-features { flex: 1; list-style: none; margin-bottom: 20px; }
.pricing-card .tier-features li { padding: 6px 0; font-size: 0.85rem; color: var(--text, #eceaf4); display: flex; align-items: flex-start; gap: 8px; }
.pricing-card .tier-features li::before { content: '✓'; color: var(--accent2, #4fc8a0); font-weight: 700; flex-shrink: 0; }
.pricing-card .tier-features li.disabled { color: var(--text-dim, #c4c0d8); opacity: 0.5; }
.pricing-card .tier-features li.disabled::before { content: '–'; color: var(--text-dim, #c4c0d8); }
.pricing-card .tier-cta { width: 100%; padding: 10px; font-size: 0.9rem; }
.pricing-close { text-align: center; margin-top: 16px; }
.pricing-close a { font-size: 0.85rem; cursor: pointer; color: var(--text-dim, #c4c0d8); text-decoration: underline; }
.pricing-close a:hover { color: var(--gold, #c9a84c); }

/* ── Tier Badge [UNIQUE] ── */
.tier-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); color: var(--text-dim, #c4c0d8);
}
.tier-badge.tier-free { background: rgba(136,130,160,0.15); border-color: rgba(136,130,160,0.3); color: var(--text-dim, #c4c0d8); }
.tier-badge.tier-seeker { background: rgba(79,200,160,0.15); border-color: rgba(79,200,160,0.4); color: var(--accent2, #4fc8a0); }
.tier-badge.tier-guide { background: rgba(74,130,240,0.15); border-color: rgba(74,130,240,0.4); color: var(--accent, #5b8af0); }
.tier-badge.tier-practitioner { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.5); color: var(--gold, #c9a84c); }

/* ── Daily Check-In Alignment Buttons [UNIQUE] ── */
.alignment-btn {
  min-width: 44px; min-height: 44px; border: 1px solid var(--border, #1d2f52); background: var(--bg3, #111d38);
  color: var(--text-dim, #c4c0d8); border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center;
  justify-content: center;
}
.alignment-btn:hover { border-color: var(--gold-dim, #a88840); color: var(--text, #eceaf4); }
.alignment-btn.active {
  background: var(--gold, #c9a84c); border-color: var(--gold, #c9a84c); color: #0a0a0f; font-weight: 700;
}

/* ── Check-In Stats Cards [UNIQUE] ── */
.stat-card {
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 6px;
  padding: 12px; text-align: center;
}
.stat-card .stat-value {
  font-size: 1.8rem; font-weight: 700; color: var(--gold, #c9a84c); display: block;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 0.75rem; color: var(--text-dim, #c4c0d8); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.stat-card.success .stat-value { color: var(--accent2, #4fc8a0); }
.stat-card.info .stat-value { color: var(--accent, #5b8af0); }

/* ── Check-In History Items [UNIQUE] ── */
.checkin-item {
  background: var(--bg3, #111d38); border: 1px solid var(--border, #1d2f52); border-radius: 6px;
  padding: 12px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start;
}
.checkin-item .checkin-date {
  font-size: 0.75rem; font-weight: 700; color: var(--gold, #c9a84c); text-transform: uppercase;
  min-width: 80px;
}
.checkin-item .checkin-score {
  font-size: 1.2rem; font-weight: 700; color: var(--accent2, #4fc8a0); margin-right: 8px;
}
.checkin-item .checkin-details {
  flex: 1; font-size: 0.85rem; color: var(--text-dim, #c4c0d8);
}
.checkin-item .checkin-mood {
  margin-top: 4px; font-size: 0.8rem; color: var(--text, #eceaf4);
}

/* ── Social Proof Banner [UNIQUE] ── */
.social-proof-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(74,130,240,0.06) 100%);
  border-bottom: 1px solid var(--border, #1d2f52);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.social-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0; /* Allow shrinking */
}
.social-proof-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  font-variant-numeric: tabular-nums;
}
.social-proof-label {
  font-size: 0.72rem;
  color: var(--text-dim, #c4c0d8);
  text-align: center;
  max-width: 200px;
}

@media (max-width: 768px) {
  .social-proof-banner {
    gap: 16px;
    padding: 12px 10px;
    justify-content: space-around;
  }
  .social-proof-stat {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
  }
  .social-proof-number {
    font-size: 1.1rem;
  }
  .social-proof-label {
    font-size: 0.65rem;
    max-width: none;
  }

  .step-guide {
    padding: 12px;
  }

  .step-guide .step-item {
    min-width: 100%;
  }

  .step-guide .step-arrow {
    display: none;
  }
}

/* ── Chart Form Summary Bar (shown after chart generation) [UNIQUE] ── */
.chart-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary, #111119);
  border: 1px solid var(--border, #1d2f52, #2a2a3a);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
}
.chart-form-summary-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Lazy Image Fade-In (BL-OPT-005) [UNIQUE] ── */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img[data-src].loaded, img:not([data-src]) {
  opacity: 1;
}

/* ── Language Switcher (BL-OPT-006) [UNIQUE] ── */
.lang-switcher {
  position: relative;
  display: inline-flex;
}
.lang-switcher-btn {
  background: var(--bg3, #111d38);
  color: var(--text-dim, #c4c0d8);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-switcher-btn:hover { color: var(--gold, #c9a84c); border-color: var(--gold-dim, #a88840); }
.lang-switcher-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg2, #0b1226);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-switcher-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim, #c4c0d8);
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}
.lang-switcher-option:hover { background: var(--bg3, #111d38); color: var(--text, #eceaf4); }
.lang-switcher-option.active { color: var(--gold, #c9a84c); font-weight: 600; }

/* ─── Skeleton Loading Screens (Phase 6) ─────────────── */

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  background: var(--bg2, #0b1226, #1e1e2e);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-75  { width: 75%; }
.skeleton-line.w-60  { width: 60%; }
.skeleton-line.w-50  { width: 50%; }
.skeleton-line.w-40  { width: 40%; }
.skeleton-line.w-30  { width: 30%; }
.skeleton-line.tall  { height: 22px; }

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.skeleton-pill {
  display: inline-block;
  width: 60px;
  height: 24px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* ── Accessibility: Touch Targets ── */
@media (pointer: coarse) {
  .btn-social,
  .sub-tab,
  .tab-btn,
  .mobile-nav-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Identity Strip ──────────────────────────────────────────────────────── */
#identity-strip {
  background: var(--bg2, #0b1226);
  border-bottom: 1px solid var(--border, #1d2f52);
  padding: var(--space-2) var(--space-4);
}
.identity-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}
.identity-strip-avatar {
  color: var(--gold, #c9a84c);
  font-size: var(--font-size-lg);
  line-height: 1;
  flex-shrink: 0;
}
.identity-strip-info {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
#identity-type { color: var(--gold, #c9a84c); font-weight: 600; }
#identity-auth { color: var(--text, #eceaf4); }
#identity-profile { color: var(--text-dim, #c4c0d8); }
.identity-edit-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8fafc8);
  cursor: pointer;
  font-size: var(--font-size-base);
  padding: var(--space-1);
  border-radius: var(--space-1);
  transition: color 0.15s;
  flex-shrink: 0;
}
.identity-edit-btn:hover { color: var(--gold, #c9a84c); }

/* ── First-Run Onboarding Modal ──────────────────────────────────────────── */
.first-run-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.first-run-panel {
  background: var(--bg2, #0b1226);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: var(--space-8) var(--space-6);
  position: relative;
}
.frm-step { display: none; text-align: center; }
.frm-step.active { display: block; }
.frm-step-icon { font-size: 3rem; margin-bottom: var(--space-4); line-height: 1; }
.frm-step-title {
  font-size: var(--font-size-xl);
  color: var(--gold, #c9a84c);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
.frm-step-body {
  color: var(--text-dim, #c4c0d8);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}
.frm-btn-next {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.frm-back-btn,
.frm-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted, #8fafc8);
  cursor: pointer;
  font-size: var(--font-size-sm);
  padding: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
}
.frm-back-btn:hover, .frm-skip-btn:hover { color: var(--text, #eceaf4); }
.frm-what-you-need {
  background: var(--bg3, #111d38);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: left;
}
.frm-need-item {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-1) 0;
  color: var(--text, #eceaf4);
  font-size: var(--font-size-sm);
}
.frm-check { color: var(--gold, #c9a84c); font-weight: 700; flex-shrink: 0; }
.frm-unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-align: left;
}
.frm-unlock-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  background: var(--bg3, #111d38);
  border-radius: 8px;
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
}
.frm-unlock-icon {
  color: var(--gold, #c9a84c);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  line-height: 1.2;
}
.frm-progress {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-5);
}
.frm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border, #1d2f52);
  transition: background 0.2s;
}
.frm-dot.active { background: var(--gold, #c9a84c); }

/* First-run wizard — birth data form grid */
.frm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  text-align: left;
  margin-bottom: var(--space-4);
}
.frm-form-grid .form-group { margin-bottom: 0; }
.frm-form-grid .frm-full { grid-column: 1 / -1; }
.frm-label-hint { font-size: 0.72rem; color: var(--text-muted, #8fafc8); font-weight: 400; }
.frm-geo-row { display: flex; gap: 8px; align-items: flex-start; }
.frm-geo-row input { flex: 1; }
.frm-geo-status { margin-top: 6px; font-size: 0.76rem; color: var(--text-dim, #c4c0d8); min-height: 1.2em; }
/* Make modal scrollable so step 2 form doesn't overflow on small screens */
.first-run-panel { overflow-y: auto; max-height: 92vh; }

/* First-run wizard — eval type choice */
.frm-eval-choices {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.frm-eval-card {
  flex: 1;
  background: var(--bg3, #111d38);
  border: 1.5px solid var(--border, #1d2f52);
  border-radius: 10px;
  padding: var(--space-4) var(--space-3);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text-dim, #c4c0d8);
}
.frm-eval-card.active {
  border-color: var(--gold, #c9a84c);
  background: color-mix(in srgb, var(--gold, #c9a84c) 8%, var(--bg3, #111d38, #111d38));
  color: var(--text, #eceaf4);
}
.frm-eval-card:hover:not(.active) { border-color: var(--text-muted, #8fafc8); }
.frm-eval-icon { font-size: 1.6rem; margin-bottom: var(--space-2); }
.frm-eval-label { font-weight: 700; font-size: var(--font-size-base); margin-bottom: var(--space-1); }
.frm-eval-desc { font-size: 0.78rem; line-height: 1.45; color: var(--text-dim, #c4c0d8); }
.frm-eval-card.active .frm-eval-desc { color: var(--text-muted, #8fafc8); }

/* First-run wizard — question quick-picks */
.frm-quickpick-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.frm-quickpick-btn {
  background: var(--bg3, #111d38);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 8px;
  padding: var(--space-2) var(--space-3);
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1.4;
}
.frm-quickpick-btn:hover { border-color: var(--gold, #c9a84c); color: var(--text, #eceaf4); }
.frm-quickpick-btn.active { border-color: var(--gold, #c9a84c); color: var(--gold, #c9a84c); background: color-mix(in srgb, var(--gold, #c9a84c) 6%, var(--bg3, #111d38, #111d38)); }
.frm-question-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg3, #111d38);
  border: 1px solid var(--border, #1d2f52);
  border-radius: 8px;
  color: var(--text, #eceaf4);
  font-size: var(--font-size-sm);
  padding: var(--space-3);
  resize: vertical;
  margin-bottom: var(--space-4);
  font-family: inherit;
  line-height: 1.5;
}
.frm-question-input:focus { outline: none; border-color: var(--gold, #c9a84c); }

/* Mobile: stack eval cards and form grid */
@media (max-width: 560px) {
  .frm-eval-choices { flex-direction: column; }
  .frm-form-grid { grid-template-columns: 1fr; }
}

/* Mobile styles for first-run modal */
@media (max-width: 768px) {
  .first-run-overlay {
    padding: var(--mobile-padding);
  }
  .first-run-panel {
    max-width: 100%;
    padding: var(--space-6) var(--mobile-padding);
  }
  .frm-step-title {
    font-size: var(--text-xl);
  }
  .frm-step-body {
    font-size: var(--text-base);
    line-height: 1.6;
  }
}

/* ── Tab Intro Cards ─────────────────────────────────────────────────────── */
.tab-intro-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #c9a84c) 8%, transparent) 0%, transparent 100%);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a84c) 25%, transparent);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.tab-intro-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--gold, #c9a84c);
}
.tab-intro-body { flex: 1; }
.tab-intro-body h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-base);
  color: var(--gold, #c9a84c);
  font-weight: 700;
}
.tab-intro-body p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  line-height: 1.55;
  max-width: clamp(280px, 90vw, 600px);
}

/* Composite intro list: force readable single column on small screens */
/* ── Feature Highlight Card — replaces alert-warn for feature lists [UNIQUE] ── */
.feature-highlight-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #c9a84c) 6%, transparent) 0%, transparent 100%);
  border: 1px solid color-mix(in srgb, var(--gold, #c9a84c) 22%, transparent);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}
.feature-highlight-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-3);
}
.feature-highlight-card ul {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
}
.feature-highlight-card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text, #eceaf4);
  line-height: 1.5;
}
.feature-highlight-card ul li::before {
  content: '✦';
  color: var(--gold, #c9a84c);
  flex-shrink: 0;
  font-size: 0.6rem;
  margin-top: 4px;
}
.feature-highlight-sub {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--text-muted, #8fafc8);
  line-height: 1.55;
  border-top: 1px solid color-mix(in srgb, var(--gold, #c9a84c) 15%, transparent);
  padding-top: var(--space-3);
}

.relationship-field-list {
  list-style-position: outside;
  columns: 2;
  column-gap: 24px;
}

.relationship-field-list li {
  break-inside: avoid;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .relationship-field-list {
    columns: 1;
    padding-left: 18px !important;
  }
}

/* ── Mobile Readability: Minimum Font Size Enforcement ─────────────────── */
/* Many informational elements use sub-12px fonts that are illegible on mobile.
   This block sets mobile minimums for all such elements. */
@media (max-width: 768px) {
  /* Section dividers / column headers */
  .section-header   { font-size: 0.8rem; }
  .data-block h4    { font-size: 0.82rem; }

  /* Inline explanation text */
  .center-explain,
  .channel-detail   { font-size: 0.82rem; }
  .explanation-text { font-size: 0.85rem; }

  /* Status / confidence pills */
  .confidence-pill  { font-size: 0.75rem; padding: 3px 10px; }

  /* Tags and small badges */
  .pill             { font-size: 0.82rem; }
  .gate-badge       { font-size: 0.82rem; }
  .cluster-card-meta,
  .history-meta     { font-size: 0.82rem; }

  /* Indicator type badges (sys-badge) — still small but more legible */
  .indicator-list li .sys-badge { font-size: 0.72rem; }

  /* Sub-navigation tabs */
  .sub-tab          { font-size: 0.85rem; }

  /* Auth status text */
  .auth-status      { font-size: 0.85rem; }
}

/* ════════════════════════════════════════════════════════════════
   INLINE STYLE CLEANUP — Phase 5 (2026-03-13)
   Extracted from remaining inline styles in index.html.
   Classes below replace inline `style=""` attributes throughout.
   ════════════════════════════════════════════════════════════════ */

/* ── Link utilities ── */
.link-dim {
  font-size: var(--font-size-sm);
  cursor: pointer;
  color: var(--text-dim, #c4c0d8);
  text-decoration: none;
}
.link-dim:hover { color: var(--text, #eceaf4); }
.link-gold {
  font-size: var(--font-size-sm);
  cursor: pointer;
  color: var(--gold, #c9a84c);
  text-decoration: underline;
}
.link-gold:hover { opacity: 0.85; }

/* ── Button utilities ── */
.btn-full {
  width: 100%;
  justify-content: center;
  padding: var(--space-3);
}

/* ── Auth modal helpers ── */
.auth-logo-wrap { text-align: center; margin-bottom: var(--space-4); }
.auth-logo { width: 80px; height: 80px; border-radius: 16px; }
.auth-forgot { text-align: right; margin-top: var(--space-2); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-3);
}
.auth-divider-line { flex: 1; height: 1px; background: var(--border, #1d2f52); }
.auth-divider-text {
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  white-space: nowrap;
}
.auth-social-list { display: flex; flex-direction: column; gap: var(--space-2); }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border-radius: var(--space-1);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, opacity 0.15s;
}
.btn-social-google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}
.btn-social-google:hover { box-shadow: 0 1px 6px rgba(0,0,0,0.2); }
.btn-social-apple {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.btn-social-apple:hover { opacity: 0.85; }
.auth-alt-action { text-align: center; margin-top: var(--space-3); }

/* ── Billing period toggle ── */
.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.billing-toggle { display: inline-flex; background: var(--bg3, #111d38); border-radius: 999px; padding: 3px; }
.billing-toggle-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim, #c4c0d8);
  font-weight: 600;
  transition: all 0.2s;
}
.billing-toggle-btn.active { background: var(--gold, #c9a84c); color: var(--bg, #05091a); }
.billing-save-badge { color: var(--accent2, #4fc8a0); font-size: var(--font-size-xs); }

/* ── Promo code section ── */
.promo-code-section { margin-top: var(--space-4); text-align: center; }
#promoInputArea { margin-top: var(--space-2); }
.promo-input-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: min(280px, 90vw);
  margin: 0 auto;
}
.promo-code-section input[type="text"] {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
}
.promo-result { font-size: var(--font-size-sm); margin-top: var(--space-1); }

/* ── Pricing modal: separator sections ── */
.pricing-section-sep {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border, #1d2f52);
  text-align: center;
}
.pricing-section-sep p { font-size: var(--font-size-sm); color: var(--text-dim, #c4c0d8); margin-bottom: var(--space-2); }
.pricing-addons { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border, #1d2f52); }
.pricing-addons > p { text-align: center; font-size: var(--font-size-sm); color: var(--text-dim, #c4c0d8); margin-bottom: var(--space-3); }

/* ── One-time add-on product grid ── */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2);
  max-width: 600px;
  margin: 0 auto;
}
.addon-card { background: var(--bg3, #111d38); border-radius: var(--space-2); padding: var(--space-3); text-align: center; }
.addon-name { font-weight: 600; font-size: var(--font-size-sm); color: var(--text, #eceaf4); margin-bottom: 4px; }
.addon-desc { font-size: var(--font-size-sm); color: var(--text-dim, #c4c0d8); margin-bottom: var(--space-2); }

/* ── Practitioner pricing modal label ── */
.pricing-pro-label-wrap { text-align: center; margin-bottom: var(--space-1); }
.pricing-pro-label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold, #c9a84c);
  opacity: 0.8;
}
.pricing-back-row { margin-top: var(--space-4); text-align: center; }

/* ── Status / result output containers ── */
.status-output {
  margin-top: var(--space-3);
  font-size: var(--font-size-base);
  min-height: var(--space-5);
}
.results-container { margin-top: var(--space-5); }

/* ── Header: logo icon & auth bar buttons ── */
.logo-lockup-icon img { border-radius: var(--space-2); }
#exportDataBtn, #deleteAccountBtn { margin-left: 4px; font-size: 0.75rem; }
#deleteAccountBtn { opacity: 0.7; }

/* ── Celebrity filter bar ── */
#celebrityFilterBar { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.celebrity-filter { font-size: var(--font-size-sm); }
#celebrityGrid { margin-top: var(--space-5); }

/* ── Achievements section ── */
#achievementsStats { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-4); }
#achievementsBadges { margin-top: var(--space-5); }
#leaderboardLoadBtn { margin-bottom: var(--space-4); }

/* ── Practitioner directory section ── */
.dir-filter-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.dir-filter-row select { width: auto; }
.dir-results-empty {
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-sm);
  padding: var(--space-4) 0;
  text-align: center;
}
#directoryPagination { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-4); }

/* ── Optimal timing section ── */
#timingBtn { margin-top: var(--space-4); }

/* ── Site footer ── */
footer {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-muted, #8fafc8);
  border-top: 1px solid var(--border-color, #2a2a3a);
  margin-top: var(--space-6);
}
footer p { margin: 0; }
footer a { color: var(--text-dim, #c4c0d8); }
footer a:hover { color: var(--text, #eceaf4); }

/* ════════════════════════════════════════════════
   INLINE CLEANUP — Phase 6: form rows, share modal,
   welcome card, section buttons
   ════════════════════════════════════════════════ */

/* ── Utility ── */
.ml-2 { margin-left: var(--space-2); }
.mt-5 { margin-top: var(--space-5); }

/* ── Nav disabled state ── */
.nav-item-disabled { cursor: default; opacity: 0.6; }

/* ── Location / geocode form row ── */
.input-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: flex-start; }
.input-flex { flex: 1; min-width: 160px; }
.btn-lookup { white-space: nowrap; padding: 0 16px; font-size: var(--font-size-base); }
.geo-status { margin-top: var(--space-2); font-size: var(--font-size-sm); color: var(--text-dim, #c4c0d8); }
.label-hint { font-weight: 400; color: var(--text-dim, #c4c0d8); font-size: var(--font-size-sm); }

/* ── Chart / profile form button rows ── */
#chartBtnRow { margin-top: var(--space-5); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.form-actions { margin-top: var(--space-5); }
#profileBtn, #shareProfileBtn { padding: var(--space-3) 24px; }
#bigfiveBtn, #viaBtn, #compBtn, #rectBtn { margin-top: var(--space-4); }
#smsResult { margin-top: var(--space-4); }

/* ── Welcome (no-chart) card ── */
.card-welcome { text-align: center; padding: var(--space-8); }
.welcome-icon { font-size: var(--font-size-2xl); margin-bottom: var(--space-3); }
.welcome-title { color: var(--gold, #c9a84c); margin: 0 0 8px; font-size: var(--font-size-md); }
.welcome-text {
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-base);
  max-width: min(450px, 90vw);
  margin: 0 auto var(--space-5);
  line-height: 1.6;
}

/* ── Share modal ── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: var(--border-width-thin) solid var(--border, #1d2f52);
}
.modal-header h3 { margin: 0; font-size: var(--font-size-lg); color: var(--gold, #c9a84c); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim, #c4c0d8);
  font-size: var(--font-size-xl);
  cursor: pointer;
}
.share-modal-body { padding: var(--space-6); }
.share-section { margin-bottom: var(--space-6); }
.share-section-sm { margin-bottom: var(--space-5); }
.section-label { display: block; margin-bottom: var(--space-2); font-weight: 600; color: var(--text, #eceaf4); }
.section-label-lg { display: block; margin-bottom: var(--space-3); font-weight: 600; color: var(--text, #eceaf4); }
.share-link-input {
  flex: 1;
  min-width: 160px;
  background: var(--bg3, #111d38);
  border: var(--border-width-thin) solid var(--border, #1d2f52);
  padding: var(--space-3);
  border-radius: var(--space-2);
  color: var(--text, #eceaf4);
  font-size: var(--font-size-base);
}
.btn-copy { white-space: nowrap; }
.share-reward-text { font-size: var(--font-size-sm); color: var(--text-dim, #c4c0d8); margin-top: var(--space-2); }
.social-share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }

/* Platform colours via data attribute — no extra classes needed */
button[data-action="shareToSocial"] {
  color: white;
  border: none;
  padding: var(--space-3);
  border-radius: var(--space-2);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-base);
}
button[data-action="shareToSocial"][data-arg0="facebook"] { background: #1877f2; }
button[data-action="shareToSocial"][data-arg0="twitter"]  { background: #1da1f2; }
button[data-action="shareToSocial"][data-arg0="linkedin"] { background: #0077b5; }
button[data-action="shareToSocial"][data-arg0="whatsapp"] { background: #25d366; }
button[data-action="shareToSocial"][data-arg0="email"]    { background: var(--accent, #5b8af0); }

/* ── Referral stats grid inside share modal ── */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.stat-card { background: var(--bg3, #111d38); padding: var(--space-3); border-radius: var(--space-2); }
.stat-number { font-size: var(--font-size-xl); font-weight: 700; }
.stat-number-gold  { color: var(--gold, #c9a84c); }
.stat-number-green { color: var(--accent2, #4fc8a0); }
.stat-number-blue  { color: var(--accent, #5b8af0); }
.stat-label { font-size: var(--font-size-xs); color: var(--text-dim, #c4c0d8); }

/* ── Check-in alignment button row ── */
.alignment-row { display: flex; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }

/* ── Check-in history section ── */
.history-section { margin-top: var(--space-5); }
.history-section h3 { font-size: var(--font-size-base); color: var(--gold, #c9a84c); margin-bottom: var(--space-3); }

/* ── Card intro text ── */
.card-intro { font-size: var(--font-size-base); color: var(--text-dim, #c4c0d8); margin-bottom: var(--space-4); line-height: 1.6; }
.card-hint  { font-size: var(--font-size-sm);   color: var(--text-dim, #c4c0d8); margin-bottom: var(--space-3); }

/* ── Checkbox label in form ── */
.checkbox-label { display: flex; align-items: center; gap: 4px; font-size: var(--font-size-sm); cursor: pointer; }
.checkbox-label-lg { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.checkbox-wrap { margin-bottom: var(--space-2); }
.form-checkbox { width: auto; margin-right: var(--space-2); }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }

/* ── Tall lookup button (composite / rectification forms) ── */
.btn-lookup-tall { height: var(--space-10); padding: 0 16px; white-space: nowrap; }

/* ── Small geo-status div (composite form) ── */
.geo-status-sm { font-size: var(--font-size-sm); margin-top: var(--space-1); min-height: 1rem; color: var(--text-dim, #c4c0d8); }

/* ════════════════════════════════════════════════
   INLINE CLEANUP — Phase 7: structural, card, practitioner, transit
   ════════════════════════════════════════════════ */

/* ── Margin utilities ── */
.mb-0 { margin-bottom: 0 !important; }

/* ── Card structural helpers ── */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.card-header-row.mb-0 { margin-bottom: 0; }
.card-section-heading { font-size: var(--font-size-base); color: var(--gold, #c9a84c); margin-bottom: var(--space-3); }
.card-subheading    { color: var(--gold, #c9a84c); font-size: var(--font-size-base); margin: var(--space-4) 0 8px; }
.card-subheading-lg { color: var(--gold, #c9a84c); font-size: var(--font-size-base); margin: var(--space-5) 0 8px; }
.card-subheading-xl { color: var(--gold, #c9a84c); font-size: var(--font-size-md);   margin-bottom: var(--space-4); }
.card-inset {
  background: var(--bg3, #111d38);
  border: var(--border-width-thin) solid var(--border, #1d2f52);
  border-radius: var(--space-2);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

/* ── Gold text utility ── */
.text-gold { color: var(--gold, #c9a84c); }

/* ── Planet speed grid & cards (Transits tab) ── */
.planet-speed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.planet-card {
  background: rgba(201,168,76,0.06);
  border: var(--border-width-thin) solid var(--border, #1d2f52);
  border-radius: var(--space-2);
  padding: var(--space-3);
}
.planet-card-name {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #c4c0d8);
  margin-bottom: var(--space-1);
}
.planet-card-desc { font-size: var(--font-size-sm); color: var(--text, #eceaf4); line-height: 1.5; }

/* ── Check-in stats summary grid ── */
#checkinStatsSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* ── History section heading ── */
.history-section-heading { font-size: var(--font-size-base); color: var(--gold, #c9a84c); margin-bottom: var(--space-3); }

/* ── Section action button row ── */
.section-actions { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); }
.form-actions-row { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.invite-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-3); }
.form-submit-row { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-3); }

/* ── Flex form-group variants (practitioner invite forms) ── */
.form-group-flex-180 { flex: 1; min-width: 180px; margin: 0; }
.form-group-flex-200 { flex: 1; min-width: 200px; margin: 0; }

/* ── Row button (height-matched to inputs) ── */
.btn-row-item { white-space: nowrap; height: 40px; }

/* ── Progress bar components ── */
.progress-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-dim, #c4c0d8);
  margin-bottom: var(--space-1);
}
.progress-bar-track { background: var(--bg3, #111d38); border-radius: 999px; height: 6px; overflow: hidden; }
#pracLimitFill { background: var(--gold, #c9a84c); height: 100%; transition: width 0.4s ease; }
#onboardBar    { background: var(--gold, #c9a84c); height: 100%; transition: width 0.3s; }

/* ── Specific ID margin helpers ── */
#pracAddToggle      { margin-bottom: var(--space-3); }
#pracAddStatus      { margin-top: var(--space-3); }
#agencySeatStatus   { margin-bottom: var(--space-3); }
#pracInvitesResult  { margin-top: var(--space-3); }

/* ── Onboarding progress bar ── */
.onboard-progress-bar {
  background: var(--bg3, #111d38);
  height: var(--space-2);
  border-radius: var(--space-1);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

/* ════════════════════════════════════════════════
   THEME TOGGLE BUTTON + LIGHT MODE ADJUSTMENTS
   ════════════════════════════════════════════════ */

/* ── Theme toggle button in header ── */
#themeToggleBtn {
  background: transparent;
  border: var(--border-width-thin) solid var(--border, #1d2f52);
  color: var(--text-dim, #c4c0d8);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
#themeToggleBtn:hover { color: var(--gold, #c9a84c); border-color: var(--gold, #c9a84c); }

/* ── Light mode: hide dark decorative elements ── */
html[data-theme="light"] #bgVideo,
html[data-theme="light"] .crescent-moon { display: none !important; }

html[data-theme="light"] body {
  background: linear-gradient(160deg, #f6f0e8 0%, #ede4d6 100%);
}

html[data-theme="light"] .geometric-bg { opacity: 0; }

html[data-theme="light"] header {
  background: rgba(246,240,232,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #c8b898;
}

/* ── Systems-to-Synthesize toggles ── */
.sys-toggle-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sys-toggle-btn {
  background: none;
  border: 1px solid var(--border, #1d2f52);
  border-radius: 100px;
  color: var(--text-dim, #c4c0d8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  min-width: 0;
  max-width: 100%;
  padding: 4px 11px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: all 0.15s;
  user-select: none;
}
.sys-toggle-btn.sys-toggle-core {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
  opacity: 0.6;
  cursor: default;
}
.sys-toggle-btn.sys-toggle-on {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}
.sys-toggle-btn.sys-toggle-off {
  background: none;
  border-color: var(--border, #1d2f52);
  color: var(--text-dim, #c4c0d8);
  opacity: 0.55;
  text-decoration: line-through;
}
.sys-toggle-btn:not(.sys-toggle-core):hover { opacity: 1; border-color: var(--gold, #c9a84c); }

/* ── UX-QUICKPICK: eval type + preset question buttons ── */
.eval-type-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.eval-type-btn {
  background: none;
  border: 1px solid var(--border, #1d2f52);
  border-radius: 100px;
  color: var(--text-dim, #c4c0d8);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  transition: all 0.15s;
}
.eval-type-btn:hover { border-color: var(--gold, #c9a84c); color: var(--gold, #c9a84c); }
.eval-type-btn.active { background: rgba(201,168,76,0.15); border-color: var(--gold, #c9a84c); color: var(--gold, #c9a84c); font-weight: 600; }
.quickpick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.quickpick-label { font-size: 0.75rem; color: var(--text-dim, #c4c0d8); white-space: nowrap; }
.quickpick-btn {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  color: var(--text, #eceaf4);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 5px 12px;
  text-align: left;
  transition: all 0.15s;
}
.quickpick-btn:hover { background: rgba(201,168,76,0.18); border-color: var(--gold, #c9a84c); color: var(--gold, #c9a84c); }

/* ── Notification Bell & Drawer (AUDIT-UX-002) ── */
.notif-bell { position: relative; font-size: 1.1rem; background: none; border: none; cursor: pointer; padding: 4px 6px; }
.notif-badge {
  position: absolute; top: 0; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger, #e44); border: 2px solid var(--bg, #05091a, #0f0f1a);
}
.notif-drawer {
  position: fixed; top: 56px; right: 12px; width: 340px; max-width: calc(100vw - 24px);
  max-height: 70vh; background: var(--bg2, #0b1226); border: 1px solid var(--border, #1d2f52);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 180;
  display: flex; flex-direction: column; overflow: hidden;
}
.notif-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border, #1d2f52);
}
.notif-drawer-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.notif-item {
  padding: 10px 16px; border-bottom: 1px solid var(--border, #1d2f52);
  font-size: var(--font-size-sm, 0.85rem);
}
.notif-item:last-child { border-bottom: none; }
.notif-item-title { font-weight: 600; color: var(--text, #eceaf4); margin-bottom: 2px; }
.notif-item-body { color: var(--text-dim, #c4c0d8); line-height: 1.4; }
.notif-item-time { font-size: var(--font-size-xs, 0.75rem); color: var(--text-muted, #8fafc8); margin-top: 4px; }
