/* Your GOOD. Life App - Design System CSS
   created-by: claude
   created-date: 2026-03-10
   Light theme, warm wellness aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== Design Tokens ===== */
:root {
  /* Backgrounds - Light & Warm */
  --bg-base: #FAFAF7;
  --bg-surface-1: #FFFFFF;
  --bg-surface-2: #F3F4F1;
  --bg-surface-3: #E8EAE5;
  --bg-overlay: rgba(0,0,0,0.04);

  /* Brand Colors (from GOOD. logo) */
  --primary: #43959d;
  --primary-light: #5aabb3;
  --primary-dark: #377d84;
  --secondary: #74c1b2;
  --secondary-light: #8fd0c4;
  --accent-warm: #db7e49;
  --achieve: #eec889;
  --success: #74c1b2;
  --danger: #d14f49;

  /* Pijler Colors (official GOOD. brand) */
  --pillar-g: #43959d;
  --pillar-o1: #74c1b2;
  --pillar-o2: #eec889;
  --pillar-d: #db7e49;
  --pillar-dot: #d14f49;

  /* Text */
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-tertiary: #9CA3AF;
  --text-disabled: #D1D5DB;

  /* Borders */
  --border-subtle: #E5E7EB;
  --border-default: #D1D5DB;
  --border-focus: #00d084;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Layout */
  --tab-bar-height: 60px;
  --header-height: 56px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  background: var(--bg-base);
}

body {
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== App Shell ===== */
.app {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--safe-top) + var(--space-3));
  height: calc(var(--header-height) + var(--safe-top));
  background: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  height: 28px;
  width: auto;
}

.header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ===== Tab Content ===== */
.tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.tab-panel {
  display: none;
  min-height: 100%;
}

.tab-panel.active {
  display: block;
}

/* ===== Bottom Tab Bar ===== */
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(var(--tab-bar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 10;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-1) 0;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  min-height: 48px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.tab-item.active svg {
  stroke-width: 2.25;
}

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Center tab (Coach) */
.tab-item-center .tab-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: 50%;
  margin-top: -12px;
  box-shadow: 0 4px 12px rgba(67, 149, 157, 0.3);
}

.tab-item-center .tab-icon-wrap svg {
  color: white;
  stroke-width: 2.5;
  width: 24px;
  height: 24px;
}

/* ===== VANDAAG TAB ===== */
.today-content {
  padding: var(--space-4);
  padding-bottom: var(--space-8);
}

.greeting {
  margin-bottom: var(--space-5);
}

.greeting-text {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.greeting-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.greeting-day {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* GOOD Score Circle */
.score-card {
  background: var(--bg-surface-1);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-4);
  position: relative;
}

.score-circle svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.score-circle .bg-ring {
  fill: none;
  stroke: var(--bg-surface-2);
  stroke-width: 8;
}

.score-circle .score-ring {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 98;
  transition: stroke-dashoffset 1s ease;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
}

.score-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pillar-scores {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.pillar-score {
  text-align: center;
}

.pillar-letter {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.pillar-value {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-subtle);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(67, 149, 157, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* Ritual items */
.ritual-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ritual-item:last-child {
  border-bottom: none;
}

.ritual-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.ritual-check.done {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.ritual-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.ritual-text.done-text {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.ritual-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Tip card */
.tip-card {
  background: linear-gradient(135deg, rgba(67, 149, 157, 0.08), rgba(6, 147, 227, 0.08));
  border: 1px solid rgba(67, 149, 157, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.tip-icon {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.tip-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.tip-source {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: var(--space-2);
}

/* Quick coach card */
.coach-card {
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: none;
}

.coach-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.coach-card-text {
  flex: 1;
  color: white;
}

.coach-card-title {
  font-size: 15px;
  font-weight: 600;
}

.coach-card-hint {
  font-size: 13px;
  opacity: 0.85;
}

.coach-card-arrow {
  color: rgba(255,255,255,0.7);
}

/* ===== COACH/CHAT TAB ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4);
  padding-bottom: var(--space-2);
}

.message {
  display: flex;
  margin-bottom: var(--space-3);
  animation: messageIn 0.25s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-coach {
  justify-content: flex-start;
}

.message-user {
  justify-content: flex-end;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: var(--space-2);
  margin-top: 2px;
}

.message-avatar-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-right: var(--space-2);
  margin-top: 2px;
}

.message-bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-coach .message-bubble {
  background: var(--bg-surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--space-1);
}

.message-user .message-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: var(--space-1);
}

.message-bubble strong { font-weight: 600; }
.message-bubble em { font-style: italic; color: var(--text-secondary); }
.message-bubble ul, .message-bubble ol { margin: var(--space-2) 0; padding-left: var(--space-5); }
.message-bubble li { margin-bottom: var(--space-1); }

.message-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
  padding: 0 var(--space-1);
}

.message-coach .message-time { margin-left: 40px; }
.message-user .message-time { text-align: right; }

/* Typing indicator */
.typing-indicator {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-3);
}

.typing-indicator.visible { display: flex; }

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--space-1);
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat input */
.chat-input-wrap {
  padding: var(--space-2) var(--space-4);
  padding-bottom: calc(var(--space-2) + var(--safe-bottom));
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chat-input-outer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.media-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.media-btn svg { width: 24px; height: 24px; }

.media-btn:active {
  background: rgba(67, 149, 157, 0.1);
  transform: scale(0.92);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  flex: 1;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  outline: none;
  max-height: 120px;
  padding: var(--space-2) 0;
}

.chat-input::placeholder { color: var(--text-tertiary); }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.send-btn:active { transform: scale(0.92); background: var(--primary-dark); }
.send-btn:disabled { background: var(--bg-surface-3); color: var(--text-disabled); cursor: not-allowed; }
.send-btn svg { width: 20px; height: 20px; }

/* Media preview */
.media-preview {
  position: relative;
  padding: var(--space-2) var(--space-4) 0;
}

.media-preview-img, .media-preview-video {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-default);
}

.media-preview-remove {
  position: absolute;
  top: var(--space-1);
  left: calc(var(--space-4) + 64px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-label {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.chat-media-img, .chat-media-video {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Welcome */
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-4);
  text-align: center;
}

.chat-welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: var(--space-4);
}

.chat-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.chat-welcome-text {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 280px;
  line-height: 1.5;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
  padding: 0 var(--space-4);
}

.suggestion-chip {
  font-size: 13px;
  font-family: inherit;
  color: var(--primary-dark);
  background: rgba(67, 149, 157, 0.08);
  border: 1px solid rgba(67, 149, 157, 0.2);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.suggestion-chip:active { background: rgba(67, 149, 157, 0.15); }

/* Streaming cursor */
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.message-bubble.streaming { min-height: 24px; }

/* ===== MIJN REIS TAB ===== */
.reis-content {
  padding: var(--space-4);
  padding-bottom: var(--space-8);
}

.streak-card {
  background: linear-gradient(135deg, rgba(252, 185, 0, 0.1), rgba(252, 185, 0, 0.05));
  border: 1px solid rgba(252, 185, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.streak-flame {
  font-size: 32px;
}

.streak-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--achieve);
}

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

/* Score trend chart */
.chart-container {
  background: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  height: 200px;
  position: relative;
}

.chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

/* Simple bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 120px;
  padding-top: var(--space-2);
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.chart-bar-value {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Pillar highlights */
.pillar-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.pillar-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pillar-highlight-text {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

.pillar-highlight-stat {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Journal entries */
.journal-section {
  margin-bottom: var(--space-4);
}

.journal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.journal-entry {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}

.journal-date {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.journal-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 2px;
  font-style: italic;
}

/* ===== ONTDEK TAB ===== */
.discover-content {
  padding: var(--space-4);
  padding-bottom: var(--space-8);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

/* Content cards */
.content-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.content-card:active {
  transform: scale(0.98);
}

.content-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.content-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.content-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.content-card-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* Category buttons */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.category-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.category-btn:active { transform: scale(0.97); }

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.category-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

/* ===== ONBOARDING ===== */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: var(--bg-base);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.onboarding-overlay.hidden { display: none; }

.onboarding-slide {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.onboarding-slide.active { display: flex; }

.onboarding-logo {
  height: 48px;
  margin-bottom: var(--space-6);
}

.onboarding-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: var(--space-6);
}

.onboarding-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.onboarding-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: var(--space-6);
}

.onboarding-pillars {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.onboarding-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.onboarding-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.onboarding-pillar-label {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Quiz options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  max-width: 320px;
}

.quiz-option {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface-1);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.quiz-option:hover, .quiz-option.selected {
  border-color: var(--primary);
  background: rgba(67, 149, 157, 0.05);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 200px;
}

.btn-primary:active { transform: scale(0.97); }

.onboarding-dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-default);
}

.onboarding-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.hidden { display: none !important; }

/* Version indicator */
.version-indicator {
  position: fixed;
  bottom: 72px;
  right: 8px;
  font-size: 9px;
  color: var(--text-disabled);
  opacity: 0.5;
  pointer-events: none;
  z-index: 10;
}
