/* ========== CSS Custom Properties ========== */
:root {
  /* Primary: Deep Indigo Navy — trustworthy, modern */
  --primary: #1B2A4A;
  --primary-light: #2A3F6B;
  --primary-soft: rgba(27, 42, 74, 0.08);

  /* Accent: Warm Coral — energetic, action */
  --coral: #E8634A;
  --coral-light: #F07D68;
  --coral-soft: rgba(232, 99, 74, 0.10);

  /* Accent: Amber — warmth, optimism */
  --amber: #F5A623;
  --amber-light: #FFC45C;
  --amber-soft: rgba(245, 166, 35, 0.12);

  /* Semantic: Teal — health, wellness, positive */
  --teal: #0EA5A0;
  --teal-soft: rgba(14, 165, 160, 0.10);

  /* Semantic: Red — warning, cycles, negative */
  --red: #D94F4F;
  --red-soft: rgba(217, 79, 79, 0.08);

  /* Neutrals */
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --text: #1A1D23;
  --text-secondary: #5F6B7A;
  --border: #E2E6EC;
  --border-light: #EEF1F5;

  /* Warm accent for cultural/community cards */
  --warm: #8B6B4A;
  --warm-soft: rgba(139, 107, 74, 0.08);

  /* System */
  --shadow: 0 2px 12px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 6px 24px rgba(27, 42, 74, 0.12);
  --shadow-hover: 0 8px 32px rgba(27, 42, 74, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s ease;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

/* ========== Screen System ========== */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 0;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.screen.exiting {
  opacity: 0;
  transform: translateX(-30px);
  z-index: 0;
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--primary);
  color: var(--white);
  flex-shrink: 0;
  padding-top: max(14px, env(safe-area-inset-top));
}

.screen-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
}

.screen-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--coral-light);
  box-shadow: 0 4px 16px rgba(232, 99, 74, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--primary-soft);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.15rem;
  border-radius: var(--radius);
}

.btn-back {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-share-small {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-card-nav {
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ========== Welcome Screen ========== */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #EDF0F7 100%);
}

.welcome-badge {
  background: var(--primary);
  color: var(--amber);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.welcome-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.15;
}

.welcome-tagline {
  font-size: 1.2rem;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.welcome-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: 2px;
  margin-bottom: 24px;
}

.welcome-location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}

.language-prompt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.language-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.language-btn {
  flex: 1;
  padding: 18px 12px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.language-btn:hover, .language-btn:active {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.language-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.badge-coming-soon {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ========== Module Cards ========== */
.modules-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 4px solid var(--coral);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.module-card:hover, .module-card:active {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.module-card:nth-child(2) {
  border-left-color: var(--teal);
}

.module-card:nth-child(3) {
  border-left-color: var(--amber);
}

.module-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 12px;
}

.module-info h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.module-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.module-time {
  font-size: 0.7rem;
  color: var(--coral);
  font-weight: 600;
}

.module-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transition: width var(--transition);
}

.btn-start-over {
  margin-top: 32px;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-start-over:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* ========== Learning Style Chooser ========== */
.choice-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  align-items: center;
}

.choice-card {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.choice-card:hover, .choice-card:active {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
}

.choice-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.choice-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.choice-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========== Card Viewer ========== */
.card-header {
  gap: 8px;
}

.card-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  transition: width var(--transition);
  width: 0%;
}

/* FIX: card area must scroll for tall content */
.card-area {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.card-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* Content Card Styles */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  animation: cardIn 0.3s ease;
}

/* Card Images (with watermark cover) */
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: -4px -0px 16px;
}
.card-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
.card-img-short img {
  height: 120px;
}

/* Comparison card side-by-side images */
.comp-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.comp-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.comp-img img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.comp-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
.comp-img-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  z-index: 1;
}

/* Strength card images */
.strength-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
}
.strength-img img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.strength-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

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

.card-type-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--coral);
  margin-bottom: 12px;
  font-weight: 700;
}

.content-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.content-card p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.content-card .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--coral);
  display: block;
  margin-bottom: 4px;
}

.content-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.content-card.card-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.content-card.card-context {
  border-left: 4px solid var(--amber);
}

.content-card.card-community-voice {
  border-left: 4px solid var(--warm);
  font-style: italic;
}

.content-card.card-community-voice::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: -8px;
}

.content-card.card-action {
  border-left: 4px solid var(--teal);
}

.content-card.card-affirmation {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.content-card.card-affirmation h3 {
  color: var(--amber);
}

/* Comparison Cards — Dynamic paired rows */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.comparison-col h4 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--amber);
}

.comparison-col ul {
  list-style: none;
  font-size: 0.8rem;
}

.comparison-col ul li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.comparison-col ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* New paired comparison */
.comp-header-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 8px;
}

.comp-col-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
}

.comp-left-label {
  background: var(--teal-soft);
  color: var(--teal);
}

.comp-right-label {
  background: var(--coral-soft);
  color: var(--coral);
}

.comp-pairs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comp-pair {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  gap: 4px;
}

.comp-left-item {
  background: var(--teal-soft);
  border-radius: var(--radius-xs);
  padding: 10px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  border-left: 3px solid var(--teal);
}

.comp-right-item {
  background: var(--coral-soft);
  border-radius: var(--radius-xs);
  padding: 10px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  border-right: 3px solid var(--coral);
  text-align: right;
}

.comp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.comp-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Cycle Legend (shared by all cycle types) */
.cycle-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding: 0 4px;
}

/* Impact Cards — Horizontal row list */
.impact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.impact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.impact-row-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.impact-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 4px;
}

.impact-row-icon span {
  font-size: 1.3rem;
}

.impact-row-text {
  flex: 1;
}

.impact-row-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.impact-row-x {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.35;
  flex-shrink: 0;
}

/* Card Navigation */
.card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.card-counter {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ========== Quiz Styles ========== */
.quiz-container {
  padding: 0;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  font-size: 0.9rem;
  min-height: 48px;
}

.quiz-option:hover {
  border-color: var(--primary);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.quiz-option.correct {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.quiz-option.incorrect {
  border-color: var(--red);
  background: var(--red-soft);
  opacity: 0.7;
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quiz-option.correct .quiz-option-letter {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.quiz-option.incorrect .quiz-option-letter {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.quiz-feedback {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: cardIn 0.3s ease;
}

.quiz-feedback.correct {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  color: #0a7a76;
}

.quiz-feedback.incorrect {
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  color: #b03b3b;
}

/* ========== Interactive Tools ========== */
.interactive-content {
  padding: 20px 16px;
}

/* Day Builder */
.day-builder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-builder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-builder-label {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
}

.day-builder-label .label-icon {
  margin-right: 6px;
}

.day-builder-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-builder-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition);
}

.day-builder-controls button:active {
  background: var(--primary);
  color: var(--white);
}

.day-builder-value {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

/* Old .day-chart replaced by SVG .day-chart-wrap — see new styles below */

.day-message {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  color: #b03b3b;
  animation: cardIn 0.3s ease;
}

.day-message.positive {
  background: var(--teal-soft);
  border-left-color: var(--teal);
  color: #0a7a76;
}

/* Plate Builder — SVG based */
.plate-builder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.plate-visual-wrap {
  display: flex;
  justify-content: center;
}

.plate-svg {
  max-width: 100%;
  height: auto;
}

.plate-tap:hover {
  filter: brightness(0.95);
}

.plate-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.plate-feedback {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
  background: var(--bg);
  width: 100%;
}

/* Portion Guide — Interactive */
.portion-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.portion-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.portion-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.portion-item .portion-emoji {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.portion-item .portion-name {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.portion-item .portion-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.portion-detail-area {
  margin-top: 12px;
}

.portion-detail-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}

.portion-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.portion-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.portion-example {
  background: var(--bg);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.portion-tip {
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

/* Breathing Tool */
.breathing-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  gap: 20px;
  text-align: center;
}

.breathing-circle-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.breathing-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.25;
  transition: all 4s ease-in-out;
}

.breathing-circle.inhale {
  transform: scale(1.4);
  opacity: 0.5;
}

.breathing-circle.hold {
  transform: scale(1.4);
  opacity: 0.4;
}

.breathing-circle.exhale {
  transform: scale(1);
  opacity: 0.25;
}

.breathing-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.breathing-count {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal);
}

.breathing-instruction {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.breathing-start-btn {
  margin-top: 8px;
}

/* ========== Pledge Card ========== */
.pledge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
}

.pledge-card-visual {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  border-top: 6px solid var(--coral);
}

.pledge-card-visual h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pledge-card-visual .pledge-action {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border-left: 4px solid var(--coral);
  text-align: left;
}

.pledge-card-visual .pledge-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pledge-card-visual .pledge-encourage {
  font-size: 0.9rem;
  color: var(--coral);
  font-style: italic;
  margin-top: 12px;
}

.pledge-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pledge-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  font-size: 0.9rem;
  text-align: left;
}

.pledge-option:hover, .pledge-option.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.pledge-option.selected::before {
  content: '\2713';
  color: var(--coral);
  font-weight: 700;
  font-size: 1.1rem;
}

.pledge-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ========== Video Placeholder ========== */
.video-content {
  display: flex;
  flex-direction: column;
}

.video-placeholder {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.video-play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.badge-coming-soon {
  display: inline-block;
  background: var(--amber);
  color: var(--text);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.video-coming-soon p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ========== Module Complete ========== */
.complete-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.complete-avatar {
  font-size: 3rem;
  line-height: 1;
}

.complete-avatar-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 12px;
}

.complete-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.complete-content h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.complete-content p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.complete-score {
  font-size: 0.9rem;
}

.complete-message {
  font-style: italic;
  color: var(--coral) !important;
  margin-bottom: 32px !important;
  line-height: 1.5;
  font-size: 0.95rem;
}

.complete-progress-bar {
  width: 100%;
  max-width: 300px;
  margin-bottom: 24px;
}

.complete-progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}

.complete-progress-track {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.complete-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.complete-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

/* ========== Strength / Connection Cards ========== */
.strength-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.strength-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  border-top: 3px solid var(--teal);
}

.strength-item .strength-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

.strength-item h4 {
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 4px;
}

.strength-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Connection flow */
.connection-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.connection-node {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.connection-arrow {
  font-size: 1.2rem;
  color: var(--coral);
}

/* Starter Plan with Week Visualization */
.starter-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.starter-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}

.starter-col-header h4 {
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
  border: none;
}

.starter-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.starter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.starter-option:hover, .starter-option.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.starter-option.selected::before {
  content: '\2713';
  color: var(--coral);
  font-weight: 700;
}

/* Week visualization - Starter Plan */
.starter-week-viz {
  margin-top: 16px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

/* Diabetes Distress Grid */
.distress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.distress-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  border-top: 3px solid var(--red);
}

.distress-item .distress-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.distress-item h4 {
  font-size: 0.8rem;
  color: #b03b3b;
  margin-bottom: 4px;
}

.distress-item p {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ========== Utility ========== */
.hidden {
  display: none !important;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ========== Responsive ========== */
@media (min-width: 481px) {
  .screen-content {
    max-width: 480px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  .welcome-title {
    font-size: 3.2rem;
  }
}

/* ========== Transition Intro ========== */
.transition-intro {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-soft), var(--coral-soft));
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--coral);
}

.transition-intro p {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ========== Arrow Wheel Cycle ========== */
.wheel-seg {
  transition: opacity 0.4s ease;
}

.wheel-arrow {
  transition: opacity 0.3s ease;
}

.legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cycle-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ========== Burnout Cycle Cards ========== */
.bo-cycles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bo-cycle-card {
  border-radius: 18px;
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}
.bo-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid currentColor;
  font-size: 0.9rem;
}
.bo-cycle-ring {
  position: relative;
  width: 272px;
  height: 272px;
  margin: 0 auto;
}
.bo-cycle-box {
  position: absolute;
  width: 108px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.3;
  color: white;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px 6px;
}
.bo-cycle-box.pos-top    { top: 0; left: 50%; margin-left: -54px }
.bo-cycle-box.pos-right  { top: 50%; right: 0; margin-top: -31px }
.bo-cycle-box.pos-bottom { bottom: 0; left: 50%; margin-left: -54px }
.bo-cycle-box.pos-left   { top: 50%; left: 0; margin-top: -31px }
.bo-center-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.bo-center-pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.2;
  animation: boPulse 2.5s ease-in-out infinite;
}
@keyframes boPulse {
  0%, 100% { transform: scale(1); opacity: 0.2 }
  50% { transform: scale(1.5); opacity: 0.05 }
}

/* ========== Funnel Cycle ========== */
.funnel-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  position: relative;
}

.funnel-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.funnel-return-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
}

.funnel-return-svg {
  height: 100%;
}

.funnel-step {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.funnel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: white;
  font-weight: 600;
  min-height: 38px;
}

.funnel-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.funnel-text {
  font-size: 0.78rem;
}

.funnel-arrow-down {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* ========== Hex Flow Cycle ========== */
.hex-node {
  transition: opacity 0.4s ease;
}

.hex-conn {
  transition: opacity 0.3s ease;
}

/* ========== Waterfall Cycle ========== */
.waterfall-container {
  display: flex;
  gap: 8px;
}

.waterfall-col {
  flex: 1;
  min-width: 0;
}

.waterfall-header {
  padding: 8px 6px;
  border-radius: var(--radius-xs);
  text-align: center;
  margin-bottom: 8px;
}

.waterfall-header span {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 2px;
}

.waterfall-header strong {
  font-size: 0.68rem;
  display: block;
}

.waterfall-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}

.waterfall-step {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.65rem;
  padding: 5px 4px;
  border-left: 2px solid;
  border-radius: 2px;
  line-height: 1.3;
}

.waterfall-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.waterfall-arrow {
  text-align: center;
  font-size: 0.6rem;
  opacity: 0.4;
  padding: 0;
  line-height: 1;
}

.waterfall-loop {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 0;
  opacity: 0.7;
}

/* ========== Shrinking Circle Cycle ========== */
.shrink-ring, .shrink-ring-stroke, .shrink-label {
  transition: opacity 0.5s ease;
}

/* ========== Action Card Animations ========== */
.action-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.action-anim {
  width: 70px;
  height: 70px;
}

.action-tip {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--teal-soft);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.action-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Walking animation */
.action-anim-walking .anim-bob {
  animation: bobUp 1.2s ease-in-out infinite;
}
.action-anim-walking .anim-leg-l {
  animation: legSwingL 0.8s ease-in-out infinite alternate;
  transform-origin: 40px 42px;
}
.action-anim-walking .anim-leg-r {
  animation: legSwingR 0.8s ease-in-out infinite alternate;
  transform-origin: 40px 42px;
}
.action-anim-walking .anim-step-dot {
  animation: fadeInOut 1.6s ease infinite;
}
.action-anim-walking .anim-step-dot2 {
  animation: fadeInOut 1.6s ease infinite 0.8s;
}

@keyframes bobUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes legSwingL {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

@keyframes legSwingR {
  from { transform: rotate(8deg); }
  to { transform: rotate(-8deg); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

/* Sleeping animation */
.anim-zzz {
  animation: floatUp 2s ease-in-out infinite;
}
.anim-zzz2 {
  animation: floatUp 2s ease-in-out infinite 0.4s;
}
.anim-zzz3 {
  animation: floatUp 2s ease-in-out infinite 0.8s;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(5px); }
  50% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Calendar animation */
.anim-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}
.anim-pulse2 {
  animation: pulse 1.5s ease-in-out infinite 0.3s;
}
.anim-pulse3 {
  animation: pulse 1.5s ease-in-out infinite 0.6s;
}

@keyframes pulse {
  0%, 100% { r: 4; opacity: 0.6; }
  50% { r: 6; opacity: 1; }
}

/* Cooking steam animation */
.anim-steam1 {
  animation: steamRise 2s ease-in-out infinite;
}
.anim-steam2 {
  animation: steamRise 2s ease-in-out infinite 0.5s;
}
.anim-steam3 {
  animation: steamRise 2s ease-in-out infinite 1s;
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(3px); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* Breathing animation */
.anim-breathe-outer {
  animation: breatheOuter 4s ease-in-out infinite;
}
.anim-breathe-inner {
  animation: breatheInner 4s ease-in-out infinite;
}

@keyframes breatheOuter {
  0%, 100% { r: 20; opacity: 0.1; }
  50% { r: 30; opacity: 0.2; }
}

@keyframes breatheInner {
  0%, 100% { r: 12; opacity: 0.2; }
  50% { r: 18; opacity: 0.35; }
}

/* Shield glow */
.anim-shield-glow {
  animation: shieldGlow 2s ease-in-out infinite;
}

@keyframes shieldGlow {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

/* Check mark draw */
.anim-check1 {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.6s ease forwards 0.3s;
}
.anim-check2 {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.6s ease forwards 0.8s;
}
.anim-check3 {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.6s ease forwards 1.3s;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Connect line animation */
.anim-connect {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: drawLine 1.5s ease forwards 0.5s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Bubble appear */
.anim-bubble {
  animation: bubbleAppear 2s ease-in-out infinite;
}

@keyframes bubbleAppear {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

/* Dots blink */
.anim-dot1 { animation: dotBlink 1.5s ease-in-out infinite; }
.anim-dot2 { animation: dotBlink 1.5s ease-in-out infinite 0.2s; }
.anim-dot3 { animation: dotBlink 1.5s ease-in-out infinite 0.4s; }

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

/* Bob animations */
.anim-bob2 { animation: bobUp 1.4s ease-in-out infinite 0.3s; }
.anim-bob3 { animation: bobUp 1.6s ease-in-out infinite 0.6s; }

/* Cross draw */
.anim-cross {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.8s ease forwards 0.5s;
}

/* Slow pulse for connection web */
.anim-pulse-slow {
  animation: pulseSlow 3s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% { r: 5; opacity: 0.4; }
  50% { r: 7; opacity: 0.8; }
}

/* ========== Community Protection: Point-by-Point Comparison ========== */
.cp-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0 0;
}

.cp-header {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cp-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.cp-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.cp-row:last-child {
  border-bottom: none;
}

.cp-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0 4px;
}

.cp-cell-left {
  color: var(--text);
}

.cp-cell-right {
  color: var(--text-secondary);
}

.cp-check, .cp-x {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1px;
}

.cp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cp-vs {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.4;
}

/* ========== Resilience Actions Card ========== */
.ra-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ra-header-icon {
  font-size: 1.5rem;
}

.ra-header h3 {
  margin: 0;
}

.resilience-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resilience-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border-left: 3px solid var(--teal);
  transition: all var(--transition);
}

.resilience-action:hover {
  background: var(--teal-soft);
}

.resilience-action-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.resilience-action-text {
  font-weight: 500;
}

/* ========== Spiritual Buffer Card ========== */
.spiritual-card {
  border-left: none !important;
  text-align: center;
}

.spiritual-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.spiritual-svg-wrap {
  width: 180px;
  height: 90px;
  margin: 0 auto;
}

.spiritual-prayer-svg {
  width: 100%;
  height: 100%;
}

.spiritual-header h3 {
  margin: 0;
}

.spiritual-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.spiritual-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: left;
}

.spiritual-time-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.spiritual-time-name {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 60px;
}

.spiritual-time-benefit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

.spiritual-extras {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.spiritual-extra-item {
  font-size: 0.8rem;
  color: var(--teal);
  padding: 4px 0;
}

/* ========== Day Builder SVG Donut ========== */
.day-chart-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 16px auto;
}

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

.donut-seg {
  transition: filter 0.2s ease;
}

.day-chart-center-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.day-chart-center-svg strong {
  font-size: 1.4rem;
  color: var(--text);
  display: block;
}

.day-chart-center-svg span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.day-hover-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
}

.day-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ========== Week Schedule Visualization ========== */
.week-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.week-schedule-header {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  background: var(--primary);
  padding: 6px 4px;
  gap: 2px;
}

.ws-label-col {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ws-day-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-day-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.ws-weekend {
  color: var(--amber);
}

.week-schedule-body {
  padding: 6px 4px;
}

.ws-empty-msg {
  text-align: center;
  padding: 20px 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.ws-row {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  gap: 2px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}

.ws-action-label {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-cell {
  height: 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ws-cell.ws-active {
  border-width: 1.5px;
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ws-summary {
  text-align: center;
  padding: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: var(--radius-xs);
  margin-top: 6px;
}

/* ========== Welcome Name Input ========== */
.welcome-name-input {
  width: 100%;
  max-width: 280px;
  margin-bottom: 24px;
  text-align: left;
}

.welcome-name-input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.welcome-name-input input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  text-align: center;
}

.welcome-name-input input:focus {
  outline: none;
  border-color: var(--coral);
}

.welcome-name-input input.input-error {
  border-color: var(--red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ========== Presenter Choice ========== */
.presenter-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.presenter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 16px;
}

.presenter-card:hover, .presenter-card:active {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.presenter-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.presenter-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.presenter-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0;
}

.presenter-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* ========== Intro Screen ========== */
.intro-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}

.intro-greeting {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.intro-avatar {
  text-align: center;
  font-size: 3.5rem;
  line-height: 1;
}

.intro-avatar-name {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coral);
}

.intro-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.intro-block h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.intro-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.intro-block ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.intro-block li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.intro-block li:last-child {
  border-bottom: none;
}

.intro-block li span {
  margin-right: 8px;
}

.intro-video-wrapper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.btn-continue {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* ========== Module Video Slides ========== */
.video-slide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.video-slide-title {
  font-size: 1.1rem;
  color: var(--primary);
  text-align: center;
}

.video-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-top: auto;
}

.video-coming-soon {
  text-align: center;
  padding: 40px 20px;
}

.badge-coming-soon {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.video-coming-soon p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.video-coming-soon .btn {
  margin-top: 16px;
}

/* ========== Outro Screen ========== */
.outro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 100%;
}

.outro-avatar {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.outro-avatar-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 16px;
}

.outro-content h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.outro-content p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.outro-highlight {
  font-style: italic;
  color: var(--coral) !important;
  font-weight: 600;
  margin-bottom: 16px !important;
}

.outro-share-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 320px;
  margin: 16px 0;
}

.outro-share-block p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.outro-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 8px;
}

/* ========== Confetti ========== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}

.confetti-piece[data-shape="circle"] {
  border-radius: 50%;
}

.confetti-piece[data-shape="triangle"] {
  width: 0;
  height: 0;
  background: transparent !important;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid var(--coral);
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  width: 100%;
}

.btn-whatsapp:hover, .btn-whatsapp:active {
  background: #20bd5a;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ========== Safe Area (notch phones) ========== */
@supports (padding: env(safe-area-inset-top)) {
  .screen-header {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .card-nav {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   VIDEO PATH — INTERACTIVE MINI-GAMES
   ============================================================ */

/* Shared activity styles */
.video-activity-slide {
  text-align: center;
  padding: 20px 16px 100px;
}
.activity-slide-wrapper {
  min-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
}
.activity-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-soft), rgba(245,166,35,0.1));
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.activity-question {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}
.activity-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.activity-feedback {
  margin-top: 16px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}
.activity-feedback.show {
  max-height: 300px;
  opacity: 1;
  padding: 16px;
  background: var(--primary-soft);
  border-radius: 12px;
}
.activity-feedback p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.pulse-once {
  animation: pulseOnce 0.5s ease;
}
@keyframes pulseOnce {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* --- 24-Hour Challenge (Balance Scale) --- */
.hour-bar-wrap {
  margin: 16px 0 12px;
}
.hour-bar {
  display: flex;
  height: 44px;
  background: #E2E6EC;
  border-radius: 10px;
  overflow: visible;
  position: relative;
  transition: box-shadow 0.4s ease;
}
.hour-bar.overflow {
  box-shadow: 0 0 0 3px var(--red), 0 0 16px rgba(217,79,79,0.3);
  animation: overflowPulse 1s ease infinite alternate;
}
@keyframes overflowPulse {
  from { box-shadow: 0 0 0 3px var(--red), 0 0 16px rgba(217,79,79,0.2); }
  to { box-shadow: 0 0 0 3px var(--red), 0 0 24px rgba(217,79,79,0.5); }
}
.hour-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-right: 1px solid rgba(255,255,255,0.3);
}
.hour-seg-label {
  font-size: 1rem;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
.hour-bar-marker {
  position: absolute;
  top: -10px;
  bottom: -10px;
  right: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  z-index: 2;
}
.hour-bar-marker span {
  position: absolute;
  top: -20px;
  right: -12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}
.hour-bar-total {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  transition: color 0.3s;
}
.hour-bar-total.overflow {
  color: var(--red);
  font-weight: 700;
}
.hour-phase-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 12px 0 8px;
}
.overflow-label {
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}
.hour-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  animation: fadeSlideUp 0.4s ease;
}
.hour-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hour-item:active { transform: scale(0.95); }
.hour-item.placed {
  opacity: 0.35;
  pointer-events: none;
  transform: scale(0.9);
}
.hour-item-emoji { font-size: 1.2rem; }
.hour-item-hours {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}

/* --- Reclaim Your Night (Night Timeline) --- */
.night-bar-wrap {
  margin: 12px 0;
}
.night-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.night-bar {
  display: flex;
  height: 48px;
  background: #E2E6EC;
  border-radius: 12px;
  overflow: hidden;
}
.night-sleep-seg {
  background: linear-gradient(135deg, #0EA5A0, #0CC0B8);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
}
.night-sleep-inner {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.night-act-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1rem;
  color: white;
}
.night-sleep-display {
  text-align: center;
  margin: 14px 0 10px;
  transition: all 0.3s;
}
.night-sleep-hours {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.4s;
}
.night-sleep-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.night-sleep-display.good .night-sleep-hours { color: var(--teal); }
.night-sleep-display.warning .night-sleep-hours { color: var(--amber); }
.night-sleep-display.danger .night-sleep-hours { color: var(--red); }
.night-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.night-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.night-item:active { transform: scale(0.95); }
.night-item.placed {
  opacity: 0.35;
  pointer-events: none;
  transform: scale(0.9);
}
.night-item-emoji { font-size: 1.2rem; }
.night-item-hours {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}

/* --- Break the Cycle (Cycle Breaker) --- */
.cycle-ring {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 6px;
  align-items: center;
  justify-items: center;
  margin: 16px 0;
  padding: 8px;
}
.cycle-node {
  background: var(--white);
  border: 2px solid #E2E6EC;
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cycle-node span { font-size: 1.6rem; display: block; }
.cycle-node p {
  font-size: 0.7rem;
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}
.cn-tl { grid-area: 1 / 1; }
.ca-top { grid-area: 1 / 2; }
.cn-tr { grid-area: 1 / 3; }
.ca-right { grid-area: 2 / 3; }
.cn-br { grid-area: 3 / 3; }
.ca-bottom { grid-area: 3 / 2; }
.cn-bl { grid-area: 3 / 1; }
.ca-left { grid-area: 2 / 1; }
.cycle-arrow {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 700;
  animation: arrowPulse 1.2s ease infinite;
  transition: all 0.5s ease;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.cycle-arrow.broken {
  opacity: 0 !important;
  transform: scale(0) rotate(180deg) !important;
  animation: none;
}
.cycle-arrow.arrow-healthy {
  color: var(--teal);
  animation: none;
  opacity: 1;
}
.cycle-node-replacing {
  transform: scale(0.8);
  opacity: 0.3;
}
.cycle-node-healthy {
  border-color: var(--teal) !important;
  background: var(--teal-soft) !important;
  animation: nodePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nodePopIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cycle-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0 12px;
}
.cycle-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cycle-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #E2E6EC;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cycle-tool:active { transform: scale(0.97); }
.cycle-tool-emoji { font-size: 1.3rem; }
.cycle-tool.correct {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: scale(1.03);
}
.cycle-tool.wrong {
  border-color: var(--red);
  background: var(--red-soft);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* --- Fact or Myth (Myth Buster) --- */
.myth-score {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.myth-score-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal);
}
.myth-card-area {
  height: 150px;
  position: relative;
  margin-bottom: 14px;
  perspective: 600px;
}
.myth-card {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 2px solid #E2E6EC;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.myth-card-num {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.myth-card-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}
.myth-fly-right {
  transform: translateX(130%) rotate(20deg) !important;
  opacity: 0 !important;
}
.myth-fly-left {
  transform: translateX(-130%) rotate(-20deg) !important;
  opacity: 0 !important;
}
.myth-slide-in {
  animation: mythSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mythSlideIn {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.myth-card.myth-final {
  background: linear-gradient(135deg, var(--teal-soft), rgba(245,166,35,0.08));
  border-color: var(--teal);
}
.myth-final-content {
  text-align: center;
}
.myth-final-emoji { font-size: 2.8rem; display: block; margin-bottom: 8px; }
.myth-final-content strong {
  font-size: 1.2rem;
  color: var(--primary);
}
.myth-final-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.myth-explain {
  margin-bottom: 12px;
}
.myth-explain-box {
  padding: 12px;
  border-radius: 10px;
  text-align: left;
  animation: fadeSlideUp 0.3s ease;
}
.myth-explain-box.correct {
  background: var(--teal-soft);
  color: var(--teal);
}
.myth-explain-box.wrong {
  background: var(--red-soft);
  color: var(--red);
}
.myth-explain-box p {
  color: var(--text);
  font-size: 0.82rem;
  margin-top: 4px;
  line-height: 1.4;
}
.myth-buttons {
  display: flex;
  gap: 14px;
}
.myth-btn {
  flex: 1;
  padding: 16px 0;
  border: 3px solid #E2E6EC;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.myth-fact { color: var(--teal); }
.myth-myth { color: var(--red); }
.myth-fact:active { border-color: var(--teal); background: var(--teal-soft); transform: scale(0.96); }
.myth-myth:active { border-color: var(--red); background: var(--red-soft); transform: scale(0.96); }

/* --- Lighten the Load (Unload Camel) --- */
.camel-scene {
  text-align: center;
  margin: 12px 0;
  padding: 8px 0;
}
.camel-weights {
  display: flex;
  gap: 4px;
  justify-content: center;
  min-height: 36px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.camel-weight-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  animation: weightDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
@keyframes weightDrop {
  from { transform: translateY(-30px) scale(0.3); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.weight-removing {
  animation: weightFlyUp 0.4s ease forwards !important;
}
@keyframes weightFlyUp {
  to { transform: translateY(-40px) scale(0.3); opacity: 0; }
}
.camel-figure {
  font-size: 4.5rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
  line-height: 1;
}
.camel-relieved {
  animation: camelCelebrate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes camelCelebrate {
  0% { transform: scaleY(1) rotate(0deg); }
  30% { transform: scaleY(1.1) rotate(-3deg); }
  60% { transform: scaleY(1.05) rotate(3deg); }
  100% { transform: scaleY(1) rotate(0deg); }
}
.camel-ground {
  height: 3px;
  background: linear-gradient(90deg, transparent, #D0D4DC, transparent);
  margin: 4px auto;
  width: 120px;
  border-radius: 2px;
}
.camel-burden-wrap {
  margin: 8px auto;
  max-width: 200px;
}
.camel-burden-bar {
  height: 10px;
  background: #E2E6EC;
  border-radius: 5px;
  overflow: hidden;
}
.camel-burden-fill {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease, background 0.3s ease;
  border-radius: 5px;
}
.camel-burden-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}
.camel-phase p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 10px 0;
}
.camel-heavy {
  color: var(--red) !important;
  font-weight: 600;
}
.camel-free {
  color: var(--teal) !important;
  font-weight: 700;
  font-size: 1rem !important;
}
.camel-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.camel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.camel-item:active { transform: scale(0.95); }
.camel-item.stress { border-color: rgba(232,69,60,0.3); }
.camel-item.tool { border-color: var(--teal); background: var(--teal-soft); }
.camel-item.placed {
  opacity: 0.35;
  pointer-events: none;
  transform: scale(0.9);
}

/* --- Build Your Shield (Shield Builder) --- */
.shield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto 14px;
}
.shield-quad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 10px;
  border: 3px solid #E2E6EC;
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.shield-quad:active { transform: scale(0.96); }
.shield-quad-emoji { font-size: 2.2rem; transition: transform 0.4s; }
.shield-filled .shield-quad-emoji { transform: scale(1.2); }
.shield-quad-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.shield-quad-hint {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.shield-filled {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.shield-grid.shield-complete {
  animation: shieldGlow 1.5s ease infinite alternate;
}
@keyframes shieldGlow {
  from { filter: drop-shadow(0 0 8px rgba(14,165,160,0.2)); }
  to { filter: drop-shadow(0 0 20px rgba(14,165,160,0.5)); }
}
.shield-progress-wrap {
  max-width: 300px;
  margin: 0 auto 12px;
}
.shield-progress-bar {
  height: 6px;
  background: #E2E6EC;
  border-radius: 3px;
  overflow: hidden;
}
.shield-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C5CBF, #0EA5A0, #F5A623, #2E7D32);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 3px;
}
.shield-msg {
  min-height: 24px;
  margin-bottom: 8px;
}
.shield-complete-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
}

/* Obligation legend below bar */
.hour-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.hour-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hour-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Reset button */
.activity-reset {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 2px solid #E2E6EC;
  border-radius: 10px;
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.activity-reset:active {
  background: var(--bg);
  transform: scale(0.96);
}

/* Shared animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   READ PATH — NEW INTERACTIVE TOOLS
   ============================================================ */

/* --- Sleep Calculator --- */
.sleep-calc {
  padding: 8px 0;
}
.sleep-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.sleep-calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sleep-calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.sleep-time-input {
  padding: 10px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  -webkit-appearance: none;
}
.sleep-time-input:focus {
  border-color: var(--primary);
  outline: none;
}
.sleep-calc-btn {
  width: 100%;
  margin-bottom: 12px;
}
.sleep-result-card {
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}
.sleep-result-card.good {
  background: var(--teal-soft);
  border-left-color: var(--teal);
}
.sleep-result-card.warning {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}
.sleep-result-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sleep-result-icon { font-size: 1.6rem; }
.sleep-result-time strong {
  font-size: 1.05rem;
  color: var(--text);
}
.sleep-result-range {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sleep-result-note {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}
.sleep-islamic-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(124, 92, 191, 0.08);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.sleep-islamic-note span { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.sleep-islamic-note p { margin: 0; }

/* --- Stress Thermometer --- */
.stress-thermo {
  padding: 8px 0;
}
.thermo-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  height: 180px;
}
.thermo-tube {
  width: 36px;
  height: 160px;
  background: #E2E6EC;
  border-radius: 18px 18px 0 0;
  position: relative;
  overflow: hidden;
  border: 2px solid #D0D4DC;
}
.thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--teal);
  border-radius: 0 0 0 0;
  transition: height 0.5s ease, background 0.5s ease;
}
.thermo-bulb {
  width: 48px;
  height: 48px;
  background: #E2E6EC;
  border-radius: 50%;
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #D0D4DC;
}
.thermo-level {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.thermo-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.thermo-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.9rem;
}
.thermo-source:hover { border-color: var(--coral); }
.thermo-source.active {
  border-color: var(--coral);
  background: var(--coral-soft);
}
.thermo-source-emoji { font-size: 1.3rem; flex-shrink: 0; }
.thermo-source-label { flex: 1; color: var(--text); font-weight: 500; }
.thermo-source-check {
  font-size: 1.2rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.thermo-source.active .thermo-source-check { color: var(--coral); }
.thermo-tip-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  background: var(--teal-soft);
  margin: 0;
}
.thermo-tip-text.warning { background: var(--amber-soft); }
.thermo-tip-text.danger { background: var(--red-soft); }

/* --- Gratitude Card --- */
.gratitude-card {
  padding: 8px 0;
}
.gratitude-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.gratitude-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gratitude-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.gratitude-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #E2E6EC;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.gratitude-input:focus {
  border-color: var(--teal);
  outline: none;
}
.gratitude-save-btn {
  width: 100%;
  margin-bottom: 12px;
}
.gratitude-output {
  margin-top: 8px;
}
.gratitude-styled-card {
  background: linear-gradient(135deg, #f0faf9 0%, #f5f7fa 100%);
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.gratitude-styled-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}
.gratitude-styled-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.gratitude-styled-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  text-align: left;
}
.gratitude-styled-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(14, 165, 160, 0.15);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}
.gratitude-styled-list li::before {
  content: '✦ ';
  color: var(--teal);
}
.gratitude-styled-list li:last-child { border-bottom: none; }
.gratitude-styled-name {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 8px;
}
.gratitude-share-btn {
  margin-top: 12px;
  width: 100%;
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.gratitude-share-btn:hover { background: #1DA855; }

/* ========================================================================
   REFRESH LAYER — shared motion, depth & activity helpers
   ======================================================================== */

/* Reduced-motion safety net — neutralizes all animation/transition app-wide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Feedback tone variants for the .activity-feedback panel */
.activity-feedback.show.tone-good    { background: var(--teal-soft); }
.activity-feedback.show.tone-warning { background: var(--amber-soft); }
.activity-feedback.show.tone-danger  { background: var(--red-soft); }
.activity-feedback.show.tone-info    { background: var(--primary-soft); }

/* Interactive-tool Activity title (sibling of the video-path .activity-question) */
.activity-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.interactive-activity .activity-body { text-align: center; }

/* P1 — tactile press feedback */
.btn, .btn-card-nav { transition: all var(--transition), transform 0.1s ease; }
.btn:active, .btn-card-nav:active { transform: scale(0.96); }
.btn-primary:active { box-shadow: 0 2px 10px rgba(232,99,74,0.4); }
.starter-option:active, .pledge-option:active { transform: scale(0.97); }

/* P1 — richer resting depth on content cards */
.content-card { box-shadow: 0 1px 2px rgba(27,42,74,0.04), 0 8px 22px rgba(27,42,74,0.09); }

/* P2 — richer flat cards (shared accent pattern) */
.content-card.card-rich { border-left: 4px solid var(--card-accent, var(--coral)); position: relative; overflow: hidden; }
.content-card.card-rich::before {
  content: ''; position: absolute; top: -45px; right: -45px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--card-accent, var(--coral)); opacity: 0.06; pointer-events: none;
}
.card-icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 10px;
  background: color-mix(in srgb, var(--card-accent, var(--coral)) 14%, transparent);
  color: var(--card-accent, var(--coral));
}
.rich-list { margin-top: 14px; text-align: left; }
.rich-list-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: var(--bg); margin-bottom: 8px;
}
.rich-list-row:last-child { margin-bottom: 0; }
.rich-list-row .rl-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.rich-list-row .rl-text { font-size: 0.9rem; line-height: 1.5; color: var(--text); }
.connection-node { box-shadow: var(--shadow); }

/* P3 — directional card-to-card enter animation */
#card-container.nav-next .content-card { animation: cardInRight 0.32s ease both; }
#card-container.nav-prev .content-card { animation: cardInLeft 0.32s ease both; }
@keyframes cardInRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes cardInLeft  { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

/* P4 — Day Builder live 24h budget meter */
.day-budget { margin-top: 18px; }
.day-budget-track { height: 12px; border-radius: 8px; background: var(--border-light); overflow: hidden; }
.day-budget-fill { height: 100%; width: 100%; border-radius: 8px; background: var(--teal); transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1), background 0.4s ease; }
.day-budget-fill.over { background: var(--red); animation: overflowPulse 1s infinite alternate; }
.day-budget-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; font-weight: 600; text-align: center; }
#day-total.over { color: var(--red); }

/* P4 — Plate Builder completeness dots + balanced payoff */
.plate-progress { display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.plate-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background 0.3s ease, transform 0.3s ease; }
.plate-dot.filled { background: var(--teal); transform: scale(1.25); }
.plate-feedback.balanced { background: var(--teal-soft); border: 1px solid var(--teal); }

/* P4 — Gratitude Card live "filled" affordance */
.gratitude-num.filled { background: var(--teal); color: #fff; }
