/* ============================================
   INNER JOURNEY — Psychedelic Safety Course
   Portal-branded native full-page experience
   ============================================ */

/* ── THEME VARS ── */
.ij {
  --ij-night: #080810;
  --ij-deep: #0E0E1A;
  --ij-surface: #141424;
  --ij-surface-light: #1A1A30;
  --ij-star: #F0E8FF;
  --ij-pink: #FF6B9D;
  --ij-orange: #FF8E53;
  --ij-gold: #FFC844;
  --ij-teal: #4ECDC4;
  --ij-green: #6BCB77;
  --ij-warm-200: #252540;
  --ij-warm-300: #3A3A5C;
  --ij-warm-400: #6B6B8D;
  --ij-warm-500: #9090AA;
  --ij-warm-600: #B0B0C8;
  --ij-warm-700: #D0D0E0;
  --ij-font-display: 'Oswald', 'Impact', sans-serif;
  --ij-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ij-radius: 24px;
  --ij-radius-sm: 16px;
  --ij-radius-xs: 12px;
}

/* ── BASE ── */
.ij {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ij-night);
  color: var(--ij-star);
  font-family: var(--ij-font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── ANIMATIONS ── */
@keyframes ijFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ijFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ijFadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ijSlideUp {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ijScaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ijPulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes ijFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ijOrbitPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,200,68,0.15), 0 0 20px rgba(255,200,68,0.05); }
  50% { box-shadow: 0 0 20px rgba(255,200,68,0.25), 0 0 40px rgba(255,200,68,0.1); }
}
@keyframes ijProgressFill {
  from { stroke-dashoffset: var(--ij-circ); }
  to { stroke-dashoffset: var(--ij-offset); }
}
@keyframes ijShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── TOP BAR (uses dc-topbar from existing CSS) ── */
.ij .dc-topbar { position: sticky; top: 0; z-index: 50; }

/* ── COSMOS BACKGROUND ── */
.ij-cosmos {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(78,205,196,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,107,157,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,142,83,0.03) 0%, transparent 50%),
    var(--ij-night);
}

/* ── ENTRY / SPLASH ── */
.ij-entry {
  text-align: center;
  padding: 48px 20px 32px;
  animation: ijFadeIn 0.6s ease;
}
.ij-entry__presents {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  color: var(--ij-warm-500);
  margin-bottom: 16px;
}
.ij-entry__title {
  font-family: var(--ij-font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #FF6B9D, #FF8E53, #FFC844);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ij-entry__subtitle {
  font-size: 14px;
  color: var(--ij-warm-500);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.ij-entry__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
.ij-entry__meta-item {
  text-align: center;
}
.ij-entry__meta-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--ij-gold);
}
.ij-entry__meta-label {
  font-size: 11px;
  color: var(--ij-warm-400);
}

/* ── BUTTONS ── */
.ij-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--ij-font-body);
  text-decoration: none;
}
.ij-btn--primary {
  background: linear-gradient(135deg, var(--ij-pink), var(--ij-orange));
  color: #fff;
}
.ij-btn--primary:hover { opacity: 0.9; transform: translateY(-1px); }
.ij-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.ij-btn--secondary {
  background: var(--ij-surface);
  color: var(--ij-star);
  border: 1px solid rgba(58,58,92,0.3);
}
.ij-btn--secondary:hover { border-color: rgba(58,58,92,0.5); background: var(--ij-surface-light); }
.ij-btn--ghost {
  background: transparent;
  color: var(--ij-warm-500);
  padding: 10px 16px;
}
.ij-btn--ghost:hover { color: var(--ij-star); }
.ij-btn--lg { padding: 16px 32px; font-size: 15px; width: 100%; }
.ij-btn--sm { padding: 10px 20px; font-size: 13px; }
.ij-btn--full { width: 100%; }

/* ── ONBOARDING ── */
.ij-onboarding {
  padding: 32px 20px;
  max-width: 480px;
  margin: 0 auto;
  animation: ijFadeIn 0.4s ease;
}
.ij-onboarding__header {
  text-align: center;
  margin-bottom: 24px;
}
.ij-onboarding__title {
  font-family: var(--ij-font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ij-onboarding__sub {
  font-size: 13px;
  color: var(--ij-warm-500);
}
.ij-mode-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--ij-radius-sm);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ij-mode-card:hover { border-color: rgba(58,58,92,0.3); background: var(--ij-surface-light); }
.ij-mode-card--selected { border-color: rgba(255,142,83,0.4); background: rgba(255,142,83,0.05); }
.ij-mode-card__icon { font-size: 20px; margin-top: 2px; }
.ij-mode-card__label { font-size: 14px; font-weight: 600; color: var(--ij-star); }
.ij-mode-card--selected .ij-mode-card__label { color: var(--ij-orange); }
.ij-mode-card__desc { font-size: 12px; color: var(--ij-warm-500); margin-top: 2px; line-height: 1.5; }
.ij-mode-card__radio {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(58,58,92,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.ij-mode-card--selected .ij-mode-card__radio {
  border-color: var(--ij-orange);
}
.ij-mode-card__radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ij-orange);
  display: none;
}
.ij-mode-card--selected .ij-mode-card__radio-dot { display: block; }

/* ── GALAXY MAP ── */
.ij-map {
  padding: 24px 20px 32px;
  max-width: 480px;
  margin: 0 auto;
  animation: ijFadeIn 0.5s ease;
}
.ij-map__header {
  text-align: center;
  margin-bottom: 8px;
}
.ij-map__pts {
  font-size: 20px;
  font-weight: 700;
  color: var(--ij-gold);
}
.ij-map__pts-label {
  font-size: 11px;
  color: var(--ij-warm-400);
}
.ij-map__constellation {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 16px 0;
}
.ij-map__line {
  position: absolute;
  height: 2px;
  background: rgba(58,58,92,0.3);
  transform-origin: 0 50%;
}
.ij-map__line--active {
  background: linear-gradient(90deg, var(--ij-teal), var(--ij-orange));
  opacity: 0.5;
}

/* ── PILLAR NODE ── */
.ij-node {
  position: absolute;
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ij-node:hover { transform: scale(1.05); }
.ij-node--locked { opacity: 0.4; cursor: not-allowed; }
.ij-node--locked:hover { transform: none; }
.ij-node__ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  position: relative;
}
.ij-node__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ij-node__ring-bg { fill: none; stroke: rgba(58,58,92,0.4); }
.ij-node__ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.ij-node__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.ij-node__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ij-star);
}
.ij-node--locked .ij-node__title { color: var(--ij-warm-400); }
.ij-node__status {
  font-size: 10px;
  color: var(--ij-warm-400);
  margin-top: 2px;
}

/* ── BADGE GRID (on map) ── */
.ij-badges {
  margin-top: 24px;
}
.ij-badges__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ij-warm-600);
  margin-bottom: 10px;
}
.ij-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--ij-radius-sm);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  margin-bottom: 8px;
  transition: all 0.3s;
}
.ij-badge--earned {
  border-color: rgba(255,200,68,0.3);
  background: rgba(26,26,48,0.6);
  box-shadow: 0 0 20px rgba(255,200,68,0.1);
}
.ij-badge--locked { opacity: 0.4; }
.ij-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ij-badge--earned .ij-badge__icon { color: var(--ij-gold); background: rgba(255,200,68,0.1); }
.ij-badge--locked .ij-badge__icon { color: var(--ij-warm-400); background: rgba(58,58,92,0.3); }
.ij-badge__name {
  font-size: 13px;
  font-weight: 600;
}
.ij-badge--earned .ij-badge__name { color: var(--ij-gold); }
.ij-badge--locked .ij-badge__name { color: var(--ij-warm-400); }
.ij-badge__desc {
  font-size: 11px;
  color: var(--ij-warm-500);
  margin-top: 2px;
  line-height: 1.4;
}
.ij-badge__check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ij-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PILLAR VIEW ── */
.ij-pillar {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  animation: ijFadeInUp 0.4s ease;
}
.ij-pillar__header {
  text-align: center;
  margin-bottom: 24px;
}
.ij-pillar__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.ij-pillar__title {
  font-family: var(--ij-font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ij-pillar__subtitle {
  font-size: 13px;
  color: var(--ij-warm-500);
}

/* ── STEP NAV ── */
.ij-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  margin-bottom: 20px;
}
.ij-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
}
.ij-steps__btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--ij-radius-xs);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ij-warm-400);
  transition: all 0.2s;
  position: relative;
}
.ij-steps__btn--current {
  color: #fff;
}
.ij-steps__btn--current::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ij-radius-xs);
  opacity: 0.2;
}
.ij-steps__btn--completed { color: var(--ij-warm-700); }
.ij-steps__btn--locked { opacity: 0.5; cursor: not-allowed; }
.ij-steps__line {
  width: 16px;
  height: 2px;
  background: rgba(58,58,92,0.4);
  flex-shrink: 0;
}
.ij-steps__line--done { background: currentColor; }

/* ── EXPLORE (section cards) ── */
.ij-explore {
  animation: ijFadeIn 0.4s ease;
}
.ij-explore__card {
  background: var(--ij-surface);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius);
  padding: 24px;
  margin-bottom: 16px;
}
.ij-explore__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ij-star);
  margin-bottom: 10px;
}
.ij-explore__card-text {
  font-size: 14px;
  color: var(--ij-warm-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
.ij-explore__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ij-explore__bullet {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ij-warm-600);
  line-height: 1.5;
}
.ij-explore__bullet::before {
  content: '•';
  flex-shrink: 0;
  margin-top: 1px;
}
.ij-explore__stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ij-deep);
  border-radius: var(--ij-radius-xs);
  margin-bottom: 8px;
}
.ij-explore__stat-val {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 60px;
}
.ij-explore__stat-label {
  font-size: 12px;
  color: var(--ij-warm-500);
}
.ij-explore__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.ij-explore__pages {
  font-size: 12px;
  color: var(--ij-warm-400);
}

/* ── SIMULATION CONTAINER ── */
.ij-sim {
  border-radius: var(--ij-radius);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  overflow: hidden;
  animation: ijFadeInUp 0.4s ease;
}
.ij-sim__header {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(58,58,92,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ij-sim__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: ijPulseGlow 3s ease-in-out infinite;
}
.ij-sim__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ij-warm-500);
}
.ij-sim__body {
  padding: 20px;
}
.ij-sim__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ij-star);
  text-align: center;
  margin-bottom: 8px;
}
.ij-sim__desc {
  font-size: 13px;
  color: var(--ij-warm-500);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}
.ij-sim__choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ij-sim__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border: 1px solid rgba(58,58,92,0.2);
  border-radius: var(--ij-radius-xs);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: var(--ij-warm-500);
}
.ij-sim__choice:hover { border-color: rgba(58,58,92,0.4); background: var(--ij-surface-light); }
.ij-sim__choice svg { width: 20px; height: 20px; }
.ij-sim__result {
  animation: ijFadeInUp 0.3s ease;
}
.ij-sim__result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.ij-sim__result-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}
.ij-sim__bars {
  background: var(--ij-deep);
  border-radius: var(--ij-radius-xs);
  padding: 16px;
  margin-bottom: 16px;
}
.ij-sim__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ij-sim__bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(58,58,92,0.3);
  overflow: hidden;
}
.ij-sim__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
}
.ij-sim__bar-label {
  font-size: 11px;
  color: var(--ij-warm-500);
  min-width: 80px;
  text-align: right;
}
.ij-sim__info-box {
  border-radius: var(--ij-radius-xs);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.ij-sim__links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ── WAVE SIMULATION (Dose) ── */
.ij-wave {
  background: var(--ij-deep);
  border-radius: var(--ij-radius-xs);
  padding: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ij-wave svg { width: 100%; display: block; }
.ij-slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ij-warm-400);
}
.ij-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(58,58,92,0.4);
  outline: none;
  margin: 8px 0;
}
.ij-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}

/* ── SET/SETTING SIMULATION ── */
.ij-env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.ij-env-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--ij-radius-xs);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: var(--ij-warm-500);
}
.ij-env-item:hover { border-color: rgba(58,58,92,0.3); }
.ij-env-item--positive { border-color: rgba(107,203,119,0.4); background: rgba(107,203,119,0.1); color: var(--ij-green); }
.ij-env-item--negative { border-color: rgba(255,107,157,0.4); background: rgba(255,107,157,0.1); color: var(--ij-pink); }
.ij-readiness {
  border-radius: var(--ij-radius-sm);
  padding: 16px;
  text-align: center;
  border: 1px solid;
  margin-bottom: 16px;
  animation: ijFadeInUp 0.3s ease;
}
.ij-readiness__score {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ij-readiness__label {
  font-size: 12px;
  color: var(--ij-warm-400);
}
.ij-readiness__suggestions {
  margin-top: 12px;
  text-align: left;
}
.ij-readiness__suggestion {
  font-size: 12px;
  color: var(--ij-warm-500);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

/* ── ACTIONS LIST ── */
.ij-actions {
  animation: ijFadeIn 0.4s ease;
}
.ij-actions__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ij-actions__title {
  font-size: 18px;
  font-weight: 600;
}
.ij-actions__count {
  font-size: 12px;
  color: var(--ij-warm-400);
}
.ij-action-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--ij-radius-sm);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.ij-action-card:hover { border-color: rgba(58,58,92,0.3); background: var(--ij-surface-light); }
.ij-action-card--done { opacity: 0.6; }
.ij-action-card__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(58,58,92,0.4);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ij-action-card--done .ij-action-card__check { border: none; }
.ij-action-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ij-star);
  line-height: 1.3;
}
.ij-action-card--done .ij-action-card__title { text-decoration: line-through; color: var(--ij-warm-500); }
.ij-action-card__desc {
  font-size: 12px;
  color: var(--ij-warm-400);
  margin-top: 4px;
  line-height: 1.4;
}
.ij-action-card__meta {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ij-warm-400);
}

/* ── ACTION DETAIL OVERLAY ── */
.ij-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: ijFadeIn 0.2s ease;
}
.ij-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(8,8,16,0.8);
  backdrop-filter: blur(4px);
}
.ij-overlay__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--ij-radius) var(--ij-radius) 0 0;
  background: var(--ij-deep);
  border: 1px solid rgba(58,58,92,0.15);
  animation: ijSlideUp 0.3s ease;
}
.ij-overlay__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14,14,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58,58,92,0.15);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ij-overlay__format {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ij-overlay__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ij-star);
  line-height: 1.3;
  margin-top: 6px;
}
.ij-overlay__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ij-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: var(--ij-warm-400);
  flex-shrink: 0;
  transition: all 0.2s;
}
.ij-overlay__close:hover { color: var(--ij-star); }
.ij-overlay__content {
  padding: 20px;
}
.ij-overlay__embed {
  border-radius: var(--ij-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(58,58,92,0.15);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 56.25%;
}
.ij-overlay__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.ij-overlay__body {
  font-size: 14px;
  color: var(--ij-warm-600);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ij-overlay__body strong { color: var(--ij-star); font-weight: 500; }
.ij-overlay__body p { margin-bottom: 8px; }
.ij-overlay__body .ij-bullet {
  display: flex;
  gap: 8px;
  padding: 4px 0 4px 8px;
}
.ij-overlay__body .ij-bullet::before {
  content: '•';
  color: var(--ij-warm-500);
  flex-shrink: 0;
}

/* Steps / Checklist in overlay */
.ij-overlay__steps-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ij-warm-400);
  font-weight: 600;
  margin-bottom: 10px;
}
.ij-step-check {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--ij-radius-xs);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
}
.ij-step-check:hover { border-color: rgba(58,58,92,0.3); }
.ij-step-check--done { background: rgba(58,58,92,0.1); border-color: rgba(58,58,92,0.1); }
.ij-step-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(58,58,92,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ij-step-check--done .ij-step-check__box { border: none; }
.ij-step-check__text {
  font-size: 13px;
  color: var(--ij-warm-600);
  line-height: 1.5;
}
.ij-step-check--done .ij-step-check__text { text-decoration: line-through; color: var(--ij-warm-500); }

/* Copy box */
.ij-copy-box {
  background: var(--ij-surface);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.ij-copy-box__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ij-warm-400);
  font-weight: 600;
  margin-bottom: 8px;
}
.ij-copy-box__value {
  font-size: 14px;
  color: var(--ij-star);
  white-space: pre-wrap;
  font-family: monospace;
  margin-bottom: 12px;
}

/* Key takeaways */
.ij-takeaways {
  background: rgba(20,20,36,0.5);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.ij-takeaways__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ij-warm-400);
  font-weight: 600;
  margin-bottom: 12px;
}
.ij-takeaway {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.ij-takeaway__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.ij-takeaway__text {
  font-size: 13px;
  color: var(--ij-warm-600);
  line-height: 1.5;
}
.ij-overlay__source {
  font-size: 12px;
  color: var(--ij-warm-400);
  margin-bottom: 16px;
}
.ij-overlay__source a {
  color: var(--ij-warm-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── REFLECTION ── */
.ij-reflect {
  animation: ijFadeInUp 0.4s ease;
}
.ij-reflect__prompt {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.ij-reflect__prompt-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ij-reflect__prompt-text {
  font-size: 14px;
  color: var(--ij-warm-700);
  line-height: 1.5;
}
.ij-reflect__textarea {
  width: 100%;
  background: var(--ij-surface);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius-sm);
  padding: 16px;
  font-size: 14px;
  color: var(--ij-star);
  resize: none;
  outline: none;
  font-family: var(--ij-font-body);
  transition: border-color 0.2s;
  min-height: 120px;
}
.ij-reflect__textarea::placeholder { color: var(--ij-warm-400); }
.ij-reflect__textarea:focus { border-color: rgba(78,205,196,0.4); }
.ij-reflect__saved {
  padding: 16px;
  border-radius: var(--ij-radius-sm);
  border: 1px solid rgba(58,58,92,0.15);
  background: rgba(20,20,36,0.4);
  animation: ijFadeInUp 0.3s ease;
}
.ij-reflect__saved-text {
  font-size: 14px;
  color: var(--ij-warm-600);
  line-height: 1.5;
  white-space: pre-wrap;
}
.ij-reflect__saved-note {
  font-size: 12px;
  margin-top: 12px;
}

/* ── QUIZ ── */
.ij-quiz {
  animation: ijFadeIn 0.3s ease;
}
.ij-quiz__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.ij-quiz__progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(58,58,92,0.3);
  transition: background 0.3s;
}
.ij-quiz__question {
  font-size: 16px;
  font-weight: 500;
  color: var(--ij-star);
  margin-bottom: 16px;
  line-height: 1.4;
}
.ij-quiz__option {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--ij-radius-xs);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ij-warm-700);
}
.ij-quiz__option:hover:not(:disabled) { background: var(--ij-surface-light); border-color: rgba(58,58,92,0.3); }
.ij-quiz__option--selected { }
.ij-quiz__option--correct {
  border-color: rgba(107,203,119,0.5);
  background: rgba(107,203,119,0.1);
}
.ij-quiz__option--correct .ij-quiz__option-text { color: var(--ij-green); }
.ij-quiz__option--wrong {
  border-color: rgba(255,107,157,0.5);
  background: rgba(255,107,157,0.1);
}
.ij-quiz__option--wrong .ij-quiz__option-text { color: var(--ij-pink); }
.ij-quiz__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(58,58,92,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ij-quiz__score {
  text-align: center;
  padding: 32px 0;
  animation: ijFadeInUp 0.4s ease;
}
.ij-quiz__score-num {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ij-quiz__score-text {
  font-size: 14px;
  color: var(--ij-warm-600);
}

/* ── BADGE REVEAL ── */
.ij-badge-reveal {
  text-align: center;
  padding: 32px 20px;
  animation: ijScaleIn 0.5s ease;
}
.ij-badge-reveal__icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(255,200,68,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--ij-gold);
}
.ij-badge-reveal__title {
  font-family: var(--ij-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ij-gold);
  margin-bottom: 8px;
}
.ij-badge-reveal__desc {
  font-size: 13px;
  color: var(--ij-warm-500);
  max-width: 300px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ── COMPLETION ── */
.ij-complete {
  text-align: center;
  padding: 32px 20px;
  max-width: 480px;
  margin: 0 auto;
  animation: ijFadeIn 0.6s ease;
}
.ij-complete__trophy {
  font-size: 48px;
  margin-bottom: 12px;
  animation: ijFloat 3s ease-in-out infinite;
}
.ij-complete__title {
  font-family: var(--ij-font-display);
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #FF6B9D, #FF8E53, #FFC844);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.ij-complete__role {
  font-size: 14px;
  color: var(--ij-warm-500);
  margin-bottom: 24px;
}
.ij-complete__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.ij-complete__stat-val {
  font-size: 24px;
  font-weight: 700;
}
.ij-complete__stat-label {
  font-size: 11px;
  color: var(--ij-warm-400);
}
.ij-complete__conclusion {
  background: var(--ij-surface);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius);
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}
.ij-complete__conclusion p {
  font-size: 14px;
  color: var(--ij-warm-600);
  line-height: 1.7;
}

/* ── FINAL SURVEY ── */
.ij-survey {
  background: var(--ij-surface);
  border: 1px solid rgba(58,58,92,0.15);
  border-radius: var(--ij-radius);
  padding: 24px;
  margin-bottom: 24px;
  animation: ijFadeIn 0.3s ease;
}
.ij-survey__header {
  text-align: center;
  margin-bottom: 16px;
}
.ij-survey__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ij-warm-400);
}
.ij-survey__count {
  font-size: 10px;
  color: var(--ij-warm-400);
}
.ij-survey__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.ij-survey__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(58,58,92,0.4);
}
.ij-survey__dot--done { background: var(--ij-gold); }
.ij-survey__dot--current { background: var(--ij-orange); }
.ij-survey__question {
  font-size: 16px;
  font-weight: 500;
  color: var(--ij-star);
  margin-bottom: 16px;
}
.ij-survey__option {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: var(--ij-radius-xs);
  border: 1px solid rgba(58,58,92,0.15);
  background: var(--ij-surface);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ij-warm-600);
}
.ij-survey__option:hover { background: var(--ij-surface-light); }
.ij-survey__option--selected {
  border-color: rgba(255,200,68,0.4);
  background: rgba(255,200,68,0.1);
  color: var(--ij-gold);
}

/* ── SECTION DIVIDER ── */
.ij-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ij-warm-300), transparent);
  margin: 24px auto;
}

/* ── DISCLAIMER ── */
.ij-disclaimer {
  font-size: 12px;
  color: var(--ij-warm-400);
  text-align: center;
  max-width: 300px;
  margin: 24px auto 0;
  line-height: 1.5;
}
.ij-disclaimer a {
  color: var(--ij-teal);
  text-decoration: none;
}
.ij-disclaimer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .ij-overlay__panel {
    border-radius: var(--ij-radius);
    max-height: 85vh;
  }
  .ij-map__constellation {
    height: 380px;
  }
}

/* ── SCROLL LOCK (same as dc) ── */
body.ij-overlay-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
