/* CoolerMind Momentum Vector Test — Style Guide */

:root {
  /* Dark Mode default variables */
  --bg-color: #050811;           /* Deep cinematic dark navy */
  --bg-card: rgba(10, 18, 32, 0.65);
  --bg-card-hover: rgba(18, 30, 52, 0.85);
  
  --color-cyan: #00f2fe;        /* Theme highlight cyan */
  --color-teal: #0df2c9;        /* Theme highlight teal */
  --color-purple: #c084fc;      /* Theme highlight purple */
  --color-amber: #fbbf24;       /* Theme highlight gold */
  --color-red: #ef4444;         /* Error warning state */
  
  --glow-cyan: rgba(0, 242, 254, 0.15);
  --glow-teal: rgba(13, 242, 201, 0.15);
  
  --border-glow: rgba(255, 255, 255, 0.05);
  --border-glow-active: rgba(0, 242, 254, 0.55);
  
  --text-main: #f8fafc;          /* High contrast off-white */
  --text-greyblue: #8ba2c2;      /* Secondary text accent */
  --text-gold: #fbbf24;          /* Warm highlights */
  
  --glass-bg: rgba(13, 22, 38, 0.45);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(0, 242, 254, 0.15);
  
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --border-radius: 20px;
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width-content: 800px;
}

:root.light-mode {
  /* Light Mode accessible variables */
  --bg-color: #f8fafc;          /* Off-white background */
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  
  --color-cyan: #0284c7;        /* Accessible blue/cyan */
  --color-teal: #0d9488;        /* Accessible teal */
  --color-purple: #7c3aed;      /* Accessible purple */
  --color-amber: #d97706;       /* Accessible gold */
  --color-red: #dc2626;         /* Accessible red */
  
  --glow-cyan: rgba(2, 132, 199, 0.08);
  --glow-teal: rgba(13, 148, 136, 0.08);
  
  --border-glow: rgba(15, 23, 42, 0.08);
  --border-glow-active: rgba(2, 132, 199, 0.55);
  
  --text-main: #0f172a;         /* High contrast slate gray */
  --text-greyblue: #475569;     /* Secondary text accent */
  --text-gold: #b45309;         /* Warm dark highlights */
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(2, 132, 199, 0.2);
}

/* --- BASE STYLING --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Tech Grid Background */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.008) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}
:root.light-mode body::before {
  background-image: 
    linear-gradient(rgba(2, 132, 199, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.015) 1px, transparent 1px);
}

/* Ambient Glow Blurs */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
  top: 10%;
  left: -200px;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.ambient-glow-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-teal) 0%, transparent 70%);
  bottom: 10%;
  right: -200px;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* --- PERSISTENT GLOBAL LAYOUT --- */
.app-container {
  max-width: var(--max-width-content);
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 120px 16px;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header layout */
header.app-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 32px;
}

/* Header splitting squares logo */
.header-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.split-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: split-level-1 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.split-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: split-level-2 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.split-cell {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}

.split-left .split-cell {
  background: var(--color-cyan);
  box-shadow: 0 0 4px var(--color-cyan);
}

.split-right .split-cell {
  background: var(--color-teal);
  box-shadow: 0 0 4px var(--color-teal);
}

@keyframes split-level-1 {
  0%, 15% { gap: 0px; }
  20%, 35% { gap: 4px; }
  40%, 55% { gap: 4px; }
  60%, 75% { gap: 4px; }
  80%, 100% { gap: 0px; }
}

@keyframes split-level-2 {
  0%, 15% { gap: 0px; }
  20%, 35% { gap: 0px; }
  40%, 55% { gap: 2px; }
  60%, 75% { gap: 0px; }
  80%, 100% { gap: 0px; }
}

.logo-container {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-main {
  color: var(--text-main);
}

.logo-sub {
  color: var(--color-cyan);
  text-shadow: 0 0 8px var(--glow-cyan);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.theme-toggle-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--color-cyan);
  transform: scale(1.05);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.subtle-header-progress {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-greyblue);
  letter-spacing: 0.5px;
}

/* --- FOOTER FIXED DISCLAIMER --- */
footer.app-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 8, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: 12px 16px;
  text-align: center;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through if needed, but not on child text */
}
:root.light-mode footer.app-disclaimer {
  background: rgba(248, 250, 252, 0.9);
}

.disclaimer-text {
  max-width: var(--max-width-content);
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-greyblue);
  font-weight: 500;
  pointer-events: auto; /* Enable link clicks inside disclaimer if needed */
}

/* --- VIEW ROUTER VIEWS --- */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* --- BUTTONS STYLING --- */
.btn {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-teal) 100%);
  color: #050811;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
  filter: brightness(1.05);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--glass-border-hover);
  color: var(--color-cyan);
}

.btn-link {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--text-greyblue);
  background: transparent;
  border: none;
}
.btn-link:hover {
  color: var(--color-cyan);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- 1. LANDING VIEW --- */
.landing-view {
  text-align: center;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}

.landing-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing-title {
  font-family: var(--font-header);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-greyblue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-greyblue);
  max-width: 600px;
  margin: 0 auto;
}

.landing-meta-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.landing-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.landing-meta-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-greyblue);
  text-transform: uppercase;
}

.landing-meta-val {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-cyan);
}

.landing-privacy-note {
  font-size: 12px;
  color: var(--text-greyblue);
  max-width: 400px;
}

/* --- 2. QUESTION VIEW --- */
.quiz-view {
  gap: 24px;
  width: 100%;
}

/* Pattern indicators */
.pattern-indicators-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}

.pattern-tag {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 14px;
  text-align: center;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-greyblue);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pattern-tag.active {
  border-color: var(--color-cyan);
  color: var(--text-main);
  background: rgba(0, 242, 254, 0.04);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  font-weight: 700;
}

.pattern-tag.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-cyan);
  border-radius: 2px;
}

.pattern-tag-label-full {
  display: block;
}
.pattern-tag-label-compact {
  display: none;
}

/* Question Carousel Slider container */
.question-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 40px 32px;
}

.question-slider-track {
  display: flex;
  width: 100%;
  position: relative;
  align-items: center;
}

.question-card {
  width: 100%;
  flex-shrink: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(100px);
}

.question-card.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.question-card.slide-left-exit {
  display: block;
  opacity: 0;
  transform: translateX(-100px);
}

.question-card.slide-right-enter {
  display: block;
  opacity: 0;
  transform: translateX(100px);
}

.question-text {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  text-align: center;
  margin: 0 auto;
  max-width: 680px;
}

/* Static Answer Area */
.answer-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
}

.answer-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 14px 6px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.answer-btn-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-greyblue);
}

.answer-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.02);
}

.answer-btn.selected {
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  color: var(--color-cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.answer-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.progress-label {
  font-size: 13px;
  color: var(--text-greyblue);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-teal) 100%);
  transition: width 0.3s ease;
}

/* --- 3. CALCULATING VIEW --- */
.calculating-view {
  text-align: center;
  gap: 32px;
  align-items: center;
  padding: 60px 0;
}

/* Animated Brain Icon Container */
.brain-animation-box {
  width: 180px;
  height: 180px;
  position: relative;
  margin: 0 auto;
}

.brain-svg {
  width: 100%;
  height: 100%;
}

.brain-hemisphere {
  fill: none;
  stroke: var(--text-greyblue);
  stroke-width: 1.5;
  opacity: 0.35;
}

/* Synaptic pulse lights */
.synaptic-path {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 20 150;
  stroke-dashoffset: 0;
  animation: synaptic-pulse 3s linear infinite;
  opacity: 0.9;
}
.synaptic-path-2 {
  stroke: var(--color-teal);
  animation-delay: 1.5s;
}

@keyframes synaptic-pulse {
  0% { stroke-dashoffset: 170; }
  100% { stroke-dashoffset: 0; }
}

/* Subtle background flow paths inside the box */
.brain-flow-lines {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 1;
  stroke-dasharray: 6 30;
  animation: flow-lines 5s linear infinite;
  opacity: 0.4;
}

@keyframes flow-lines {
  0% { stroke-dashoffset: 36; }
  100% { stroke-dashoffset: 0; }
}

.status-rotator {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-cyan);
  height: 28px;
  transition: opacity 0.3s ease;
}

/* --- 4. EMAIL GATE VIEW --- */
.email-view {
  gap: 24px;
  align-items: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.email-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

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

.email-form-group label {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.email-form-group input[type="email"],
.email-form-group input[type="text"] {
  background: rgba(5, 8, 17, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}
:root.light-mode .email-form-group input[type="email"],
:root.light-mode .email-form-group input[type="text"] {
  background: rgba(255, 255, 255, 0.8);
}

.email-form-group input[type="email"]:focus,
.email-form-group input[type="text"]:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.1);
}

.consent-checkbox-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-greyblue);
  line-height: 1.4;
  cursor: pointer;
}

.consent-checkbox-wrapper input {
  margin-top: 2px;
}

.form-error {
  color: var(--color-red);
  font-size: 13px;
  font-weight: 500;
  display: none;
}

/* Turnstile container */
#turnstile-container {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* --- 5. RESULTS VIEW --- */
.results-view {
  gap: 32px;
  width: 100%;
}

.results-header-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results-pre-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.results-main-title {
  font-family: var(--font-header);
  font-size: 48px;
  font-weight: 800;
}

.results-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-greyblue);
  max-width: 700px;
  margin: 0 auto;
}

/* Balance meters */
.balance-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.balance-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-card-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
}

.balance-microcopy {
  font-size: 11px;
  color: var(--text-greyblue);
  line-height: 1.3;
}

.meters-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
}

.meter-name {
  font-weight: 600;
  font-family: var(--font-header);
}

.meter-values {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-greyblue);
}

.meter-bar-track {
  width: 100%;
  height: 10px;
  background: var(--glass-border);
  border-radius: 5px;
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  border-radius: 5px;
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter-item:nth-child(1) .meter-bar { background: var(--color-cyan); }
.meter-item:nth-child(2) .meter-bar { background: var(--color-teal); }
.meter-item:nth-child(3) .meter-bar { background: var(--color-purple); }
.meter-item:nth-child(4) .meter-bar { background: var(--color-amber); }

/* Profile breakdown cards */
.profile-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--transition-fast);
}

.profile-card:hover {
  border-color: var(--glass-border-hover);
}

.profile-card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-card-title {
  font-family: var(--font-header);
  font-size: 34px;
  font-weight: 700;
}

.profile-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-greyblue);
  border-left: 2px solid var(--color-cyan);
  padding-left: 12px;
}

.profile-grid-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-section-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-list {
  list-style: none;
}

.profile-list li {
  font-size: 13px;
  color: var(--text-greyblue);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.profile-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-cyan);
}

/* Action plan section */
.action-plan-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.action-plan-title {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-plan-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.action-time-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.action-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-item-heading {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 14px;
}

.action-item-desc {
  font-size: 13px;
  color: var(--text-greyblue);
  line-height: 1.5;
}

.results-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Expanded/collapsible segments */
.expandable-accordion {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--font-header);
  font-weight: 700;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 12px 0 24px 0;
}

.accordion-content.active {
  display: block;
}

/* Share Toast alert */
.toast-alert {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--color-cyan);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-alert.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- 6. PRIVACY & COMPLIANCE STYLING --- */
.text-page-view {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-page-view h1 {
  font-family: var(--font-header);
  font-size: 28px;
  margin-bottom: 8px;
}

.text-page-view h2 {
  font-family: var(--font-header);
  font-size: 20px;
  margin-top: 16px;
  margin-bottom: 4px;
  color: var(--color-cyan);
}

.text-page-view p,
.text-page-view ul {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-greyblue);
}

.text-page-view ul {
  padding-left: 20px;
}

.text-page-view li {
  margin-bottom: 6px;
}

/* --- ACCESSIBILITY / REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .ambient-glow,
  .ambient-glow-2,
  .split-grid,
  .split-quad,
  .synaptic-path,
  .synaptic-path-2,
  .brain-flow-lines,
  .wavy-path,
  .bg-flow-svg path {
    animation: none !important;
    transition: none !important;
  }
  .question-card {
    transition: opacity 0.1s ease !important;
    transform: none !important;
  }
  .view-section {
    transition: opacity 0.1s ease !important;
    transform: none !important;
  }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .profile-grid-sections {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-meta-box {
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 580px) {
  .pattern-indicators-container {
    gap: 4px;
  }
  .pattern-tag {
    font-size: 9px;
    padding: 6px 2px;
  }
  .pattern-tag-label-full {
    display: none;
  }
  .pattern-tag-label-compact {
    display: block;
  }
  .answer-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .answer-btn {
    padding: 14px;
    font-size: 13px;
    flex-direction: row;
    justify-content: space-between;
  }
  .answer-btn-val {
    font-size: 11px;
  }
  .results-action-buttons {
    flex-direction: column;
    width: 100%;
  }
  .results-action-buttons .btn {
    width: 100%;
  }
}

/* --- BACKGROUND FLOW SVG --- */
.bg-flow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.bg-flow-svg {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.wavy-path {
  fill: none;
  stroke: rgba(0, 242, 254, 0.035);
  stroke-width: 2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: bg-wind 50s linear infinite;
}

.wavy-path-2 {
  stroke: rgba(13, 242, 201, 0.025);
  animation-duration: 65s;
  animation-delay: -10s;
}

.wavy-path-3 {
  stroke: rgba(192, 132, 252, 0.02);
  animation-duration: 80s;
  animation-delay: -25s;
}

@keyframes bg-wind {
  0% { stroke-dashoffset: 2000; }
  100% { stroke-dashoffset: 0; }
}

:root.light-mode .wavy-path { stroke: rgba(2, 132, 199, 0.03); }
:root.light-mode .wavy-path-2 { stroke: rgba(13, 148, 136, 0.02); }
:root.light-mode .wavy-path-3 { stroke: rgba(124, 58, 237, 0.02); }

/* --- PRINT LAYOUT STYLES --- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  body::before,
  .ambient-glow,
  .ambient-glow-2,
  .bg-flow-container,
  .theme-toggle-btn,
  .answer-navigation,
  .results-action-buttons,
  footer.app-disclaimer,
  .subtle-header-progress {
    display: none !important;
  }
  .app-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .balance-card,
  .profile-card,
  .action-plan-box {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    color: #000 !important;
  }
  .profile-card-badge,
  .meter-values,
  .action-time-badge,
  .logo-sub {
    color: #444 !important;
    text-shadow: none !important;
  }
  .meter-bar-track {
    border: 1px solid #000 !important;
    background: #eee !important;
  }
  .meter-item:nth-child(1) .meter-bar { background: #555 !important; }
  .meter-item:nth-child(2) .meter-bar { background: #777 !important; }
  .meter-item:nth-child(3) .meter-bar { background: #999 !important; }
  .meter-item:nth-child(4) .meter-bar { background: #bbb !important; }
  
  .profile-list li::before {
    color: #333 !important;
  }
}

/* Wavy Canvas full screen background */
#wavy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}
