:root{
  --A:#FBB800; --F:#F28A00; --E:#D93B3B; --Rz:#A22CC5; --Rf:#1F7AE0;
  --bg:#F9F7FB; --text:#1A1A1A; --muted:#5F6B7A; --line:#E9EEF3; --card:#FFFFFF;
  --accent:#5D1A5F; --radius:14px;
  --sidebar-bg: #F9F7FB;
  --sidebar-width: 280px;
}
*{box-sizing:border-box}
html, body { height: 100%; overflow: hidden; overflow-x: hidden; }
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans";color:var(--text);background:var(--bg)}

/* App Shell Layout */
.app-shell {
  display: flex;
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 24px;
}

.sidebar-header {
  margin-bottom: 48px;
}

.logo-square {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  margin-bottom: 16px;
}

.app-shell.questions-active #sidebar-title { display: none; }

.sidebar .brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Vertical line connecting dots */
.sidebar-nav ul::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
  z-index: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}

.nav-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active .nav-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-item.completed .nav-dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* Main Content Styles - scroll when content exceeds viewport, content starts at top */
.main-content {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

#app-container {
  width: 100%;
  max-width: 800px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sequence-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  padding-bottom: 24px;
}

#sequence-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
}

#results {
  width: 100%;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

/* Typography adjustments */
.question-text {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 16px;
  color: #0F172A;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.step-description {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Feature tags */
.feature-tags {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-tag svg {
  width: 18px;
  height: 18px;
}

/* Buttons */
button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sequence Footer */
.sequence-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-direction: row !important;
  gap: 1.5rem !important;
}

.progress-mini {
  flex-grow: 1;
  margin: 0 40px;
}

.progress {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}

.progress span {
  background: var(--accent);
}

/* Phase Intro Card */
.phase-definition-card {
  text-align: left;
  padding: 0;
}

.phase-definition-card h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.phase-definition-card p {
  font-size: 1.2rem;
  margin: 0 0 40px 0;
  max-width: 100%;
}

/* Phase Questions Table */
.phase-questions .q-row {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.phase-questions .q-text {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Profile Form Layout */
.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input::placeholder {
  color: #CBD5E1;
}

.badge-tag {
  display: inline-block;
  background: #F1E9F2;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* Instruction Page Styles */
.instruction-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instruction-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.instruction-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.instruction-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 6px;
}

.nav-item.completed .nav-dot {
  background: #10B981; /* Green for completed */
  border-color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.completed .nav-dot::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.nav-item.completed .nav-label {
  color: #10B981;
}

/* Phase Intro V2 Styles */
.phase-intro-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  min-width: 0;
}

.phase-intro-content {
  display: flex;
  flex-direction: column;
}

.phase-number-badge {
  display: inline-block;
  background: #F1E9F2;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}

.phase-intro-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #0F172A;
}

.phase-intro-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.phase-illustration {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.phase-slogan {
  font-family: serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #475569;
  margin-bottom: 24px;
  text-align: center;
}

.illustration-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(93, 26, 95, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.illustration-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.illustration-icon {
  width: 100%;
  max-width: 340px;
  height: auto;
  color: var(--accent);
}

.illustration-rings {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(93, 26, 95, 0.1);
  z-index: 1;
}

.illustration-rings::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(93, 26, 95, 0.05);
}

.illustration-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
}

.illustration-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .phase-intro-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .phase-illustration {
    order: -1;
  }
}

@media (max-width: 600px) {
  .profile-form {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

.hide-desktop { display: none; }

.actions {
  display: flex;
  gap: 1.5rem;
  flex-direction: row !important;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  width: auto !important;
}

/* AI Insights Box */
.ai-box {
  background: linear-gradient(135deg, #fdfcfd 0%, #f5f3ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #7c3aed;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ai-sparkle {
  width: 18px;
  height: 18px;
}

.ai-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.ai-content p {
  margin-bottom: 12px;
}

.ai-content strong {
  color: var(--accent);
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Dot Flashing Animation */
.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #7c3aed;
  color: #7c3aed;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #7c3aed;
  color: #7c3aed;
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #7c3aed;
  color: #7c3aed;
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dotFlashing {
  0% { background-color: #7c3aed; }
  50%, 100% { background-color: #ebe2ff; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hide-desktop { display: block; }
  .app-shell {
    flex-direction: column;
    overflow: hidden;
  }
  
  .sidebar {
    width: 100%;
    visibility: hidden;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .sidebar-header {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-square {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
  }

  .sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-nav {
    display: none; /* Hide full nav on mobile, maybe use a progress bar instead */
  }

  .main-content {
    padding: 16px 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
  }

  .questions-screen {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }

  .questions-header-row {
    margin-bottom: 1rem;
  }

  .questions-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .questions-options {
    gap: 0.75rem;
  }

  .questions-option-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .questions-progress-wrap {
    margin: 1rem auto;
  }

  .questions-footer {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .questions-continue-btn {
    width: 100%;
    justify-content: center;
  }

  .question-text {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .phase-intro-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .phase-intro-title {
    font-size: 2rem;
  }

  .phase-illustration {
    order: -1;
    transform: scale(0.9);
  }

  .profile-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .feature-tags {
    flex-direction: column;
    gap: 12px;
  }

  .sequence-footer {
    flex-direction: row !important;
    gap: 1.5rem !important;
    margin-top: 40px;
  }

  .progress-mini {
    width: 100%;
    margin: 0;
  }

  .actions {
    width: 100%;
    justify-content: center;
    flex-direction: row !important;
    gap: 1.5rem;
  }

  button {
    width: auto !important;
    flex: 1;
    justify-content: center;
  }

  .phase-questions .q-row {
    flex-direction: column;
    align-items: flex-start;
    padding:1.1rem;
    gap: 16px;
  }

  .likert-mini {
    width: 100%;
    justify-content: space-between;
  }

  .likert-circle {
    width: 48px;
    height: 48px;
  }
}

/* Inherit existing styles that still apply */
.fade-in { animation: fadeIn .4s ease forwards; }
.fade-out { animation: fadeOut .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
.hide { display: none !important; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.white { background: #fff; }
.grid { display: grid; gap: 18px; }
@media(min-width:900px){.grid-2{grid-template-columns:1fr 1fr}}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: #e5e7eb; display: inline-block; }
.note { color: var(--muted); font-size: .92rem; }
.nolist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.tight { margin: 0 0 8px; }
.row-flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.tab { padding: 10px 20px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 600; color: var(--muted); transition: all .2s; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.video-placeholder { aspect-ratio: 16/9; background: #f1f5f9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-top: 16px; border: 1px dashed var(--muted); position: relative; overflow: hidden; }
.video-placeholder::after { content: "Video: " attr(data-label); color: var(--muted); font-weight: 600; }
.cta-box { background: #0f172a; color: #fff; padding: 32px; border-radius: 20px; text-align: center; margin-top: 40px; display: flex; flex-direction: column; }
.likert-mini { display: flex; gap: 12px; margin-top: 1rem; justify-content: space-between; }
.likert-circle { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; transition: all .2s; font-size: 1.1rem; }
.likert-circle:hover { border-color: var(--accent); }
.likert-circle.active { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { background: #fff; color: #0F172A; border: 1px solid var(--line); }

/* ===== Intro Screen ===== */
@keyframes introCardReveal {
  from { opacity: 0; transform: scale(0.94) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introGlowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes introBrainFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.06; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.1; }
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Manrope', Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.intro-screen.hide {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
}
.intro-screen.out { display: none !important; }
.intro-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: color-mix(in srgb, #fff 70%, transparent);
  backdrop-filter: blur(16px);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 32px 64px -12px rgba(91, 16, 90, 0.15);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  text-align: center;
  animation: introCardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 0 0 3px 3px;
  opacity: 0.6;
}
.intro-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 20px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: introFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@media (min-width: 768px) {
  .intro-title { font-size: 2.75rem; }
}
.intro-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 24px 0;
  line-height: 1.6;
  animation: introFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.intro-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  animation: introFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}
.intro-visual .material-symbols-outlined {
  font-size: 48px;
  color: color-mix(in srgb, var(--accent) 40%, transparent);
  animation: introGlowPulse 4s ease-in-out infinite;
}
.intro-cta {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 18px 28px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  animation: introFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.intro-cta:hover {
  background: color-mix(in srgb, var(--accent) 90%, black);
  box-shadow: 0 12px 24px -4px color-mix(in srgb, var(--accent) 35%, transparent);
}
.intro-cta:active { transform: scale(0.99); }
.intro-cta-arrow {
  transition: transform 0.2s;
}
.intro-cta:hover .intro-cta-arrow {
  transform: translateX(4px);
}

/* Intro visual accent */
.intro-screen .start-bg-brain {
  animation: introBrainFloat 8s ease-in-out infinite;
}
.intro-screen .start-bg-blob-1 {
  animation: introGlowPulse 5s ease-in-out infinite;
}
.intro-screen .start-bg-blob-2 {
  animation: introGlowPulse 5s ease-in-out infinite 2.5s;
}

/* ===== Transition Loader (gearbox + brain) ===== */
.transition-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.transition-loader.hide { display: none !important; }
.transition-loader:not(.hide) {
  animation: transitionLoaderFadeIn 0.2s ease forwards;
}
.transition-loader-bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 98%, black);
  backdrop-filter: blur(8px);
}
.transition-loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 1;
}
.transition-gear-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transition-gear {
  font-size: 88px !important;
  color: color-mix(in srgb, var(--accent) 50%, transparent);
  animation: transitionGearSpin 2s linear infinite;
}
.transition-brain-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transition-brain {
  font-size: 44px !important;
  color: var(--accent);
  animation: transitionBrainPulse 1.5s ease-in-out infinite;
}
.transition-loader-text {
  font-family: 'Manrope', Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
@keyframes transitionGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes transitionBrainPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
@keyframes transitionLoaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Start Screen: Executive Registration ===== */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Manrope', Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.start-screen.visible {
  opacity: 1;
  transform: translateX(0);
}
.start-screen.hide { display: none !important; }

.start-header {
  flex: none;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}
.start-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.start-back:hover { opacity: 0.8; }
.start-back .material-icons { font-size: 1.25rem; }
.start-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.9;
}
.start-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-brand-icon svg { color: var(--accent); }
.start-brand-name {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
}

.start-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.start-card {
  width: 100%;
  max-width: 448px;
  background: color-mix(in srgb, #fff 60%, transparent);
  backdrop-filter: blur(12px);
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(91, 16, 90, 0.1);
  border: 1px solid color-mix(in srgb, #fff 50%, transparent);
}
@media (min-width: 768px) {
  .start-card { padding: 40px; }
}
.start-card-header {
  text-align: center;
  margin-bottom: 32px;
}
.start-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .start-title { font-size: 1.875rem; }
}
.start-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}

.start-form { display: flex; flex-direction: column; gap: 20px; }
.start-form-group { display: flex; flex-direction: column; gap: 6px; }
.start-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.start-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.start-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.start-input-icon .material-icons { font-size: 1.125rem; }
.start-form input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 0 2px 5px -1px rgba(91, 16, 90, 0.05);
  outline: none;
  transition: box-shadow 0.2s, ring 0.2s;
}
.start-form input::placeholder { color: var(--muted); }
.start-form input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.start-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .start-form-grid { grid-template-columns: 1fr 1fr; }
}
.start-form-actions { padding-top: 16px; }
.start-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.start-submit:hover {
  background: color-mix(in srgb, var(--accent) 90%, black);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.start-submit:active { transform: scale(0.99); }
.start-submit-arrow {
  transition: transform 0.2s;
}
.start-submit:hover .start-submit-arrow {
  transform: translateX(4px);
}

/* Start screen background */
.start-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.start-bg-blob {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  filter: blur(100px);
  animation: startPulse 4s ease-in-out infinite;
}
.start-bg-blob-1 {
  top: 10%;
  left: 10%;
  width: 384px;
  height: 384px;
}
.start-bg-blob-2 {
  bottom: 10%;
  right: 10%;
  width: 500px;
  height: 500px;
  animation-delay: 1.5s;
  filter: blur(120px);
}
.start-bg-brain {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  color: var(--accent);
}
@keyframes startPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* ===== Questions Screen (one question per view) ===== */
.questions-screen {
  font-family: 'Manrope', Inter, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 56rem;
}
.questions-header-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 56rem;
  margin: 0 auto 0.75rem;
  width: 100%;
  flex-shrink: 0;
}
.questions-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.questions-back-btn:hover { opacity: 0.8; }
.questions-back-btn .material-icons { font-size: 1.25rem; }
.questions-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 60%, var(--text));
}
.questions-header-spacer { width: 80px; }
.questions-progress-wrap {
  max-width: 56rem;
  margin: 1.25rem auto 1.25rem;
  width: 100%;
  position: relative;
  flex-shrink: 0;
}
.questions-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.questions-progress-label-left,
.questions-progress-label-right {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.questions-progress-bar {
  position: relative;
  width: 100%;
  height: 12px;
}
.questions-progress-track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: repeating-linear-gradient(
    -45deg,
    #e5e7eb,
    #e5e7eb 4px,
    #f3f4f6 4px,
    #f3f4f6 8px
  );
  overflow: hidden;
}
.questions-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 0.3s ease;
  z-index: 1;
}
.questions-brain-node {
  position: absolute;
  left: var(--node-left, 0);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.questions-brain-node-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--accent) 70%, transparent);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.questions-brain-node-inner .material-symbols-outlined { font-size: 20px !important; }
.questions-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.questions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  max-width: 48rem;
  margin: 0 auto 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { .questions-title { font-size: 2rem; } }
@media (min-width: 1024px) {
  .main-content { padding: 32px 48px 40px; }
  .questions-header-row, .questions-progress-wrap, .questions-options { max-width: 56rem; margin-left: auto; margin-right: auto; }
}
.questions-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}
.questions-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 56rem;
  min-width: 0;
  justify-items: stretch;
}
@media (min-width: 768px) {
  .questions-options { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.questions-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 1rem 1.25rem;
  min-width: 0;
  justify-content: flex-start;
  background: var(--card);
  border-radius: 0.75rem;
  border: 2px solid transparent;
  box-shadow: 0 10px 25px -5px rgba(91, 16, 90, 0.08), 0 8px 10px -6px rgba(91, 16, 90, 0.08);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.questions-option-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.questions-option-btn.selected {
  border-color: var(--accent);
  box-shadow: 0 20px 25px -5px rgba(91, 16, 90, 0.15);
  transform: scale(1.02);
  background: color-mix(in srgb, var(--accent) 5%, var(--card));
}
.questions-option-btn .option-radio {
  margin-top: 4px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.questions-option-btn:hover .option-radio {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.questions-option-btn.selected .option-radio {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.questions-option-btn.selected { font-weight: 600; }
.questions-option-btn .option-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.questions-footer {
  width: 100%;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.questions-continue-btn {
  background: var(--accent);
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}
.questions-continue-btn:hover {
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--accent) 20%, transparent);
}
.questions-continue-btn:active { transform: scale(0.95); }
.questions-footer-badge {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0.3;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.questions-footer-badge .dot { width: 8px; height: 8px; background: var(--accent); }
.questions-bg-blob {
  position: fixed;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  filter: blur(80px);
  pointer-events: none;
}
.questions-bg-blob-1 { bottom: -6rem; left: -6rem; }
.questions-bg-blob-2 { top: -6rem; right: -6rem; }

/* Completion screen */
.completion-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 24px;
}
.completion-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.completion-text {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 32px;
}
.completion-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.completion-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 24px 0 0;
}

/* ===== Executive Dashboard (Output Screen) ===== */
#completion-content.dashboard {
  width: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}
#app-container:has(.dashboard) { max-width: none; width: 100%; }
#results:has(.dashboard) { max-width: none; width: 100%; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 5%, transparent);
  background: color-mix(in srgb, #fff 50%, transparent);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px color-mix(in srgb, var(--accent) 20%, transparent);
}
.dash-brand-icon .material-icons { color: #fff; font-size: 24px; }
.dash-brand h1 { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin: 0; text-transform: uppercase; letter-spacing: -0.02em; }
.dash-brand p { font-size: 10px; letter-spacing: 0.2em; font-weight: 700; color: var(--muted); margin: 0; text-transform: uppercase; }
.dash-header-actions { display: flex; gap: 16px; }
.dash-header-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
}
.dash-header-btn:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.dash-header-btn.primary { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.dash-header-btn.primary:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.dash-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 24px 100px;
  gap: 12px;
  overflow: hidden;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
.dash-hero {
  text-align: center;
  flex-shrink: 0;
  padding: 0 0 8px;
}
.dash-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.dash-archetype {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 4px;
}
.dash-archetype span { color: var(--accent); font-style: italic; }
@media (min-width: 1024px) { .dash-archetype { font-size: 2.25rem; } }
.dash-desc { font-size: 1rem; color: var(--muted); font-weight: 500; max-width: 42rem; margin: 0 auto; }
.dash-grid {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  min-width: 0;
  flex-wrap: wrap;
  overflow: hidden;
}
.dash-left {
  flex: 1.5;
  min-width: 280px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.dash-right {
  flex: 1;
  min-width: 280px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dash-burning {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-left: 8px solid var(--accent);
  border-radius: 16px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.dash-burning::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 128px; height: 128px;
  margin: -32px -32px 0 0;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 50%;
  filter: blur(48px);
}
.dash-burning h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.dash-burning p { font-size: 1.125rem; line-height: 1.4; color: var(--text); font-weight: 500; margin: 0; }
.dash-burning p .highlight { font-weight: 800; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 4px; }
.dash-burning .sub { display: block; margin-top: 8px; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.dash-score-panel {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 16px;
  padding: 16px 20px;
  border-top: 4px solid color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.dash-score-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.dash-score-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 4px; }
.dash-score-value { font-size: 1.75rem; font-weight: 800; color: var(--accent); margin: 0; }
.dash-score-value span { font-size: 1.125rem; color: var(--line); margin-left: 4px; }
.dash-score-level { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 4px; text-align: right; }
.dash-score-benchmark { font-size: 12px; color: var(--muted); font-style: italic; margin: 0; text-align: right; }
.dash-benchmark-bar {
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.dash-benchmark-fill {
  height: 100%;
  min-width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s;
}
.dash-radar-wrap {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.dash-radar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  margin: auto;
  border: 30px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.1;
  pointer-events: none;
}
.dash-radar-svg { width: 100%; max-width: 320px; aspect-ratio: 1; }
.dash-radar-svg .radar-grid { stroke: color-mix(in srgb, var(--accent) 12%, transparent); stroke-width: 1; fill: none; }
.dash-radar-svg .radar-label { fill: var(--text); font-size: 13px; font-weight: 800; letter-spacing: 0.05em; }
.dash-radar-svg .radar-shape { fill: color-mix(in srgb, var(--accent) 15%, transparent); stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 30%, transparent)); }
.dash-radar-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 16px; }
.dash-bottom-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 120px;
  flex-shrink: 0;
}
.dash-video {
  flex: 1;
  min-width: 280px;
  max-height: 140px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  background: var(--text);
  cursor: pointer;
}
.dash-video-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?q=80&w=1000&auto=format&fit=crop') center/cover;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.dash-video-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 10%, transparent) 0%, rgba(32,18,32,0.8) 100%);
}
.dash-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-video-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 10%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, #fff 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 40%, transparent);
}
.dash-video:hover .dash-video-play span { transform: scale(1.1); }
.dash-video-play .material-icons { color: #fff; font-size: 32px; margin-left: 4px; }
.dash-video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.dash-video-tag { display: inline-block; padding: 2px 8px; background: var(--accent); color: #fff; font-size: 8px; font-weight: 700; border-radius: 4px; text-transform: uppercase; margin-bottom: 4px; }
.dash-video-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.dash-video-meta { font-size: 10px; color: color-mix(in srgb, #fff 70%, transparent); margin: 4px 0 0; }

/* Video Modal (popup when clicking dash video) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.video-modal.hide { display: none !important; }
.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 18, 32, 0.6);
  backdrop-filter: blur(8px);
}
.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 64rem;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
}
.video-modal-container:fullscreen {
  max-width: none;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
}
.video-modal-container:fullscreen .video-modal-player-area {
  flex: 1;
}
.video-modal-container:-webkit-full-screen { max-width: none; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.video-modal-container:-moz-full-screen { max-width: none; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.video-modal-container:-ms-fullscreen { max-width: none; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.video-modal-player-area {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2670&auto=format&fit=crop') center/cover;
  opacity: 0.8;
  transform: scale(1.05);
  filter: blur(4px);
}
.video-modal-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%, rgba(0,0,0,0.2) 100%);
}
.video-modal-video {
  position: absolute;
  width: 90%;
  max-width: 90%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 8px;
  z-index: 2;
}
.video-modal-play-wrap {
  position: absolute;
  width: 90%;
  max-width: 90%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
}
.video-modal-play-wrap.hidden { display: none; }
.video-modal-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 90%, black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform 0.2s;
}
.video-modal-play-btn:hover {
  transform: scale(1.1);
}
.video-modal-play-btn .material-icons {
  font-size: 48px;
  margin-left: 4px;
}
.video-modal-controls {
  background: color-mix(in srgb, var(--accent) 95%, black);
  backdrop-filter: blur(24px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-modal-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.video-modal-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  pointer-events: none;
}
.video-modal-progress-thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.video-modal-progress-wrap:hover .video-modal-progress-thumb {
  opacity: 1;
}
.video-modal-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.video-modal-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.video-modal-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-modal-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.video-modal-ctrl-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}
.video-modal-ctrl-btn .material-icons {
  font-size: 24px;
}
.video-modal-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-modal-volume-bar {
  width: 96px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.video-modal-volume-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
}
.video-modal-time {
  font-size: 14px;
  font-family: ui-monospace, monospace;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.05em;
}
.video-modal-speed-wrap {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  gap: 0;
}
.video-modal-speed-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}
.video-modal-speed-btn:hover {
  color: #fff;
}
.video-modal-speed-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Video modal responsive controls */
@media (max-width: 640px) {
  .video-modal-controls { padding: 16px; }
  .video-modal-controls-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .video-modal-controls-left { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .video-modal-controls-right { justify-content: flex-end; }
  .video-modal-speed-wrap { flex-wrap: wrap; max-width: 100%; }
  .video-modal-speed-btn { padding: 4px 8px; font-size: 11px; }
}

.dash-why-above-radar { margin-bottom: 24px; flex: none; }
.dash-why {
  flex: 1.5;
  min-width: 280px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.dash-why h4 {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-why p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin: 0; }
.dash-why p strong { color: var(--accent); }
.dash-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 16px 32px;
  z-index: 50;
  box-shadow: 0 -10px 15px -3px rgba(0,0,0,0.05);
}
.dash-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .dash-footer-inner { flex-direction: row; }
}
.dash-footer-brand { display: flex; align-items: center; gap: 16px; opacity: 0.9; }
.dash-footer-brand .dash-brand-icon { width: 40px; height: 40px; }
.dash-footer-brand h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.dash-footer-brand p { font-size: 10px; color: var(--muted); margin: 0; }
.dash-footer-brand p strong { color: var(--accent); }
.dash-footer-actions { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.dash-email-wrap { position: relative; width: 100%; max-width: 256px; }
.dash-email-wrap .material-icons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
.dash-email-input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dash-schedule-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 25px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: all 0.3s;
  white-space: nowrap;
}
.dash-schedule-btn:hover {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.dash-schedule-btn .material-icons { font-size: 18px; background: #fff; color: var(--accent); border-radius: 50%; padding: 2px; }
.dash-bg-gradient { position: fixed; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(to left, color-mix(in srgb, var(--accent) 5%, transparent), transparent); pointer-events: none; z-index: -1; }
.dash-bg-blob { position: fixed; bottom: -6rem; left: -6rem; width: 384px; height: 384px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 5%, transparent); filter: blur(100px); pointer-events: none; z-index: -1; }

/* ===== Dash Output (Reference Design / Mobile Structure) ===== */
.dash-output {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px 24px 48px;
  font-family: 'Manrope', Inter, sans-serif;
  box-sizing: border-box;
}
.dash-output-header {
  margin-bottom: 24px;
}
.dash-output-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dash-output-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash-output-date {
  font-size: 0.875rem;
  color: var(--muted);
}
.dash-output-title-row {
  margin-bottom: 4px;
}
.dash-output-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.dash-output-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.dash-output-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}
.dash-output-alignment-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dash-output-alignment-text strong { color: var(--text); }
.dash-output-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dash-output-btn:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--text); }
.dash-output-btn .material-icons { font-size: 18px; }
.dash-output-btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent);
}
.dash-output-btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000) !important;
  color: #fff !important;
}

.dash-share-wrap { position: relative; }
.dash-share-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dash-share-popup.hide { display: none !important; }
.dash-share-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}
.dash-share-popup-content {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  border: 1px solid var(--line);
}
.dash-share-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.dash-share-popup-close:hover { color: var(--text); }
.dash-share-popup-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.dash-share-popup-icon .material-icons { font-size: 28px; }
.dash-share-popup-text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}
.dash-share-popup-text strong { color: var(--accent); }
.dash-share-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dash-share-popup-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.dash-share-popup-option:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
}
.dash-share-popup-option .material-icons { font-size: 18px; }

.dash-share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-share-dropdown.hide { display: none; }
.dash-share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  text-align: left;
  width: 100%;
}
.dash-share-option:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.dash-share-option .material-icons { font-size: 18px; color: var(--muted); }

.dash-output-main { display: flex; flex-direction: column; gap: 28px; }
.dash-output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.dash-output-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
}
.dash-output-score-card {
  background: #fff;
  border-radius: 1rem;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(91,16,90,0.06);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
}
.dash-output-score-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.dash-output-score-circle-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}
.dash-output-score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dash-output-score-bg {
  stroke: color-mix(in srgb, var(--accent) 12%, transparent);
  fill: none;
}
.dash-output-score-fill {
  stroke: var(--accent);
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-out;
}
.dash-output-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash-output-score-value { font-size: 2rem; font-weight: 800; color: var(--text); }
.dash-output-score-of { font-size: 0.75rem; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.dash-output-score-text { text-align: center; }
.dash-output-score-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.dash-output-score-level { font-size: 0.9375rem; font-weight: 700; color: var(--accent); margin: 0 0 2px; }
.dash-output-score-benchmark { font-size: 0.75rem; color: var(--muted); margin: 0; }

.dash-output-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.dash-output-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(91,16,90,0.06);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
  transition: box-shadow 0.2s;
}
.dash-output-card:hover { box-shadow: 0 8px 30px -4px rgba(91,16,90,0.1); }
.dash-output-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-output-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-output-card-icon-green { background: #dcfce7; color: #16a34a; }
.dash-output-card-icon-red { background: #fee2e2; color: #dc2626; }
.dash-output-card-icon-accent { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.dash-output-card-icon-white { background: rgba(255,255,255,0.25); color: #fff; }
.dash-output-card-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.dash-output-card-tag-green { background: #dcfce7; color: #15803d; }
.dash-output-card-tag-red { background: #fee2e2; color: #b91c1c; }
.dash-output-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 35px;
  margin-bottom: 4px;
}
.dash-output-card-title-row .dash-output-card-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.dash-output-card-score {
  font-size: 1.125rem;
  font-weight: 800;
  background: none;
  padding: 0;
  flex-shrink: 0;
}
.dash-output-card-score-green { color: #16a34a; }
.dash-output-card-score-red { color: #dc2626; }
.dash-output-card-disposition {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  width: 100%;
  flex-basis: 100%;
}
.dash-output-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}
.dash-output-card-title { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.dash-output-card-desc { font-size: 0.875rem; color: var(--muted); margin: 0; }
.dash-output-card-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dash-output-card-cta:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  transform: translateY(-2px);
}
.dash-output-card-label-cta { color: rgba(255,255,255,0.8); }
.dash-output-card-title-cta { color: #fff; }
.dash-output-card-desc-cta { color: rgba(255,255,255,0.8); }

.dash-output-right { min-width: 0; }
.dash-output-radar-card {
  background: #fff;
  border-radius: 1rem;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(91,16,90,0.06);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
}
.dash-output-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-output-radar-title { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0; }
.dash-output-radar-info {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
.dash-output-radar-info:hover { color: var(--accent); }
.dash-output-radar-wrap {
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-radar-d3-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}
.dash-radar-d3-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dash-radar-d3-circle {
  fill: none;
  fill-opacity: 0;
}
.dash-radar-d3-axis-line {
  stroke: #adb5bd;
  stroke-width: 1px;
  stroke-dasharray: 4 4;
}
.dash-radar-d3-label {
  font-size: 12px;
  font-weight: 600;
  fill: #495057;
}
.dash-radar-d3-scale-label {
  font-size: 10px;
  fill: #666;
}
.dash-radar-d3-area {
  fill-opacity: 0.25;
  stroke-opacity: 0.35;
}
.dash-radar-d3-point {
  stroke: #fff;
  stroke-width: 1px;
}
.dash-output-radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dash-output-radar-svg .radar-grid {
  stroke: color-mix(in srgb, var(--accent) 15%, transparent);
  stroke-width: 1;
  fill: none;
}
.dash-output-radar-svg .radar-shape {
  fill: none;
  stroke-width: 3;
}
.dash-output-radar-svg .radar-shape-user {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 30%, transparent));
}
.dash-output-radar-svg .radar-shape-benchmark {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 40%, transparent);
  stroke-dasharray: 8 6;
  stroke-width: 2;
}
.dash-output-radar-svg .radar-label {
  fill: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
@media (min-width: 640px) {
  .dash-output-radar-svg .radar-label { font-size: 11px; }
}
@media (min-width: 1024px) {
  .dash-output-radar-svg .radar-label { font-size: 12px; }
}
.dash-output-radar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.dash-output-radar-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5b105a;
  margin-right: 8px;
  vertical-align: middle;
}
.dash-output-radar-dot-avg {
  background: rgba(13,35,89,0.15);
  border: 2px dashed #0d2359;
}
.dash-output-benchmark-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.dash-output-benchmark-list li { margin: 0; }
.dash-output-benchmark-list strong { color: var(--text); }

.dash-output-radar-wrap,
.dash-output-radar-card {
  overflow: visible;
}

.dash-output-cta {
  margin-top: 32px;
  background: #fff;
  border-radius: 1.5rem;
  padding: 40px 24px;
  box-shadow: 0 4px 20px -2px rgba(91,16,90,0.06);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
  position: relative;
  overflow: hidden;
}
.dash-output-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  margin: -80px -80px 0 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.dash-output-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.dash-output-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.dash-output-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.dash-output-cta-accent { color: var(--accent); }
.dash-output-cta-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
}
.dash-output-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 40px -10px rgba(91,16,90,0.5);
  transition: all 0.2s;
}
.dash-output-cta-btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  transform: scale(1.02);
}
.dash-output-cta-trust {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 24px 0 0;
}

/* Dash output: tablet+ 2-col grid */
@media (min-width: 640px) {
  .dash-output-cards { grid-template-columns: 1fr 1fr; }
  .dash-output-score-inner { flex-direction: row; justify-content: center; }
}
@media (min-width: 1024px) {
  .dash-output {
    padding: 32px 40px 64px;
    max-width: 80rem;
  }
  .dash-output-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .dash-output-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .dash-output-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .dash-output-radar-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .dash-output-radar-wrap {
    flex: 1;
    min-height: 280px;
    max-width: 100%;
  }
  .dash-output-title-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .dash-output-title { font-size: 2rem; }
  .dash-output-cta { margin-top: 48px; padding: 48px 40px; }
  .dash-output-cta-title { font-size: 2.5rem; }
}
@media (max-width: 639px) {
  .dash-output-title-row { align-items: flex-start; }
  .dash-share-popup .dash-share-popup-content { max-width: calc(100% - 32px); }
}

/* Dashboard mobile */
@media (max-width: 768px) {
  .main-content { padding: 16px; }
  .dash-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .dash-header-actions { width: 100%; justify-content: flex-end; }
  .dash-main {
    padding: 16px 12px 180px;
    gap: 20px;
  }
  .dash-archetype { font-size: 1.5rem; }
  .dash-desc { font-size: 0.9rem; }
  .dash-grid { flex-direction: column; gap: 20px; }
  .dash-left, .dash-right { min-width: 100%; }
  .dash-right { align-items: stretch; }
  .dash-burning {
    padding: 20px;
  }
  .dash-burning p { font-size: 1.1rem; }
  .dash-burning .sub { font-size: 0.95rem; }
  .dash-score-panel { padding: 16px; }
  .dash-score-header { flex-direction: column; gap: 12px; }
  .dash-score-header > div:last-child { text-align: left; }
  .dash-radar-wrap {
    padding: 16px;
  }
  .dash-radar-svg { max-width: 280px; }
  .dash-radar-svg .radar-label { font-size: 11px; }
  .dash-why-above-radar {
    padding: 16px;
  }
  .dash-why-above-radar p { font-size: 0.9rem; }
  .dash-bottom-row {
    flex-direction: column;
    gap: 16px;
    min-height: auto;
    flex-shrink: 0;
  }
  .dash-video {
    min-width: 0;
    width: 100%;
  }
  .dash-footer {
    padding: 12px 16px;
  }
  .dash-footer-inner {
    gap: 16px;
  }
  .dash-footer-actions {
    flex-direction: column;
    width: 100%;
  }
  .dash-email-wrap { max-width: 100%; }
  .dash-schedule-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* ===== Loading / Analyzing Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', Inter, sans-serif;
  overflow: hidden;
}
.loading-screen.hide { display: none !important; }
.loading-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, #fbf5fb 50%, #f4eef4 100%);
  opacity: 0.8;
  pointer-events: none;
}
.loading-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 32rem;
  padding: 24px;
}
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.loading-rings {
  position: relative;
  width: 256px;
  height: 256px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .loading-rings { width: 320px; height: 320px; }
}
.loading-ring {
  position: absolute;
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--accent) 10%, transparent);
}
.loading-ring-1 {
  inset: 0;
  border: 1px solid;
  animation: loadingSpin 12s linear infinite;
}
.loading-ring-2 {
  inset: 16px;
  border: 1px solid;
  border-style: dashed;
  animation: loadingSpin 15s linear infinite reverse;
}
.loading-ring-3 {
  inset: 0;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  filter: blur(24px);
  animation: loadingPulse 4s ease-in-out infinite;
}
.loading-ring-4 {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  margin: -80px 0 0 -80px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  transform: rotate(45deg);
  animation: loadingSpin 8s linear infinite;
}
.loading-ring-5 {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  margin: -80px 0 0 -80px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  transform: rotate(12deg);
  animation: loadingSpin 8s linear infinite reverse;
}
.loading-ring-dots {
  inset: 0;
  animation: loadingSpin 12s linear infinite;
}
.loading-ring-dots span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 50%;
}
.loading-dot-t { top: 0; left: 50%; transform: translate(-50%, -50%); }
.loading-dot-b { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.loading-dot-l { left: 0; top: 50%; transform: translate(-50%, -50%); }
.loading-dot-r { right: 0; top: 50%; transform: translate(50%, -50%); }
.loading-core {
  position: relative;
  z-index: 10;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #8e2a8d 100%);
  box-shadow: 0 0 60px 20px rgba(91, 16, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loadingPulse 4s ease-in-out infinite;
}
.loading-brain {
  font-size: 48px !important;
  color: #fff;
  opacity: 0.9;
}
.loading-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
  animation: loadingFloat 6s ease-in-out infinite;
}
.loading-node-1 { top: 40px; right: 40px; animation-delay: 0.5s; }
.loading-node-2 { bottom: 48px; left: 48px; animation-delay: 1.2s; width: 6px; height: 6px; }
.loading-node-3 { top: 50%; right: 8px; animation-delay: 2s; width: 4px; height: 4px; }
.loading-text {
  margin-bottom: 32px;
  animation: loadingFadeText 2s ease-in-out infinite;
}
.loading-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .loading-title { font-size: 1.875rem; }
}
.loading-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--accent) 60%, var(--text));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.loading-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 0.5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-sep {
  width: 1px;
  height: 16px;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}
.loading-blob {
  position: fixed;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  filter: blur(80px);
  pointer-events: none;
  animation: loadingPulse 4s ease-in-out infinite;
}
.loading-blob-1 { bottom: -12rem; left: -12rem; }
.loading-blob-2 { top: -12rem; right: -12rem; animation-delay: 2s; }
@keyframes loadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loadingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes loadingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes loadingFadeText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
