/* ============================================================
   CAMINHAR COM CRISTO — Design System
   ============================================================ */

:root {
  --bg: #0D0D0D;
  --surface: #1A1A2E;
  --surface-2: #22223B;
  --primary: #C9A84C;
  --primary-dim: rgba(201, 168, 76, 0.15);
  --primary-dim2: rgba(201, 168, 76, 0.08);
  --secondary: #1B4332;
  --secondary-light: #2D6A4F;
  --text: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.55);
  --text-faint: rgba(245, 240, 232, 0.3);
  --accent: #4A90A4;
  --accent-dim: rgba(74, 144, 164, 0.15);
  --border: rgba(201, 168, 76, 0.15);
  --border-soft: rgba(245, 240, 232, 0.08);
  --danger: #E07070;
  --success: #5CB85C;
  --nav-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

[data-theme="light"] {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #EDE8E0;
  --primary: #7A5C0E;
  --gold: #7A5C0E;
  --primary-dim: rgba(122, 92, 14, 0.12);
  --primary-dim2: rgba(122, 92, 14, 0.06);
  --secondary: #1B4332;
  --secondary-light: #2D6A4F;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-faint: #888888;
  --accent: #2C5F6E;
  --accent-dim: rgba(44, 95, 110, 0.1);
  --border: rgba(122, 92, 14, 0.25);
  --border-soft: rgba(26, 26, 26, 0.12);
  --danger: #C0392B;
  --success: #27AE60;
}

/* Correções de contraste específicas do modo claro */
[data-theme="light"] .btn-primary { color: #FFFFFF; }
[data-theme="light"] .nav-btn { color: #666666; }
[data-theme="light"] .nav-btn.active { color: var(--primary); }
[data-theme="light"] .bottom-nav { background: rgba(255,255,255,0.97); border-top: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .lesson-hero { background: linear-gradient(180deg, #EDE8E0 0%, var(--bg) 100%); }
[data-theme="light"] .lesson-hero-overlay { background: linear-gradient(to top, var(--bg) 20%, transparent 100%); }
[data-theme="light"] .lesson-title { color: #1A1A1A; }
[data-theme="light"] .lesson-subtitle { color: #555555; }
[data-theme="light"] .section-heading { color: #1A1A1A; }
[data-theme="light"] .teaching-text { color: #2D2D2D; }
[data-theme="light"] .passage-text { color: #2D2D2D; }
[data-theme="light"] .passage-ref { color: #7A5C0E; }
[data-theme="light"] .practice-text { color: #2D2D2D; }
[data-theme="light"] .purpose-box { background: #2D2D2D; }
[data-theme="light"] .purpose-text { color: #F5F0E8; }
[data-theme="light"] .journal-textarea { background: #FFFFFF; color: #1A1A1A; border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .journal-label { color: #444444; }
[data-theme="light"] .char-count { color: #888888; }
[data-theme="light"] .tag-chip { background: #EDE8E0; color: #444444; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .tag-chip.selected { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); }
[data-theme="light"] .mood-btn { border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .quiz-option { background: #FFFFFF; border-color: rgba(0,0,0,0.15); color: #1A1A1A; }
[data-theme="light"] .quiz-q-text { color: #1A1A1A; }
[data-theme="light"] .modal-container { background: #FFFFFF; }
[data-theme="light"] .modal-title { color: #1A1A1A; }
[data-theme="light"] .verse-text { color: #2D2D2D; }
[data-theme="light"] .hebrew-box { background: rgba(122,92,14,0.08); }
[data-theme="light"] .loading-title { color: #1A1A1A; }
[data-theme="light"] .loading-sub { color: #555555; }
[data-theme="light"] .home-name { color: #1A1A1A; }
[data-theme="light"] .today-title { color: #1A1A1A; }
[data-theme="light"] .stats-card-val { color: #1A1A1A; }
[data-theme="light"] .progress-title { color: #1A1A1A; }
[data-theme="light"] .auth-title { color: #1A1A1A; }
[data-theme="light"] .auth-subtitle { color: #555555; }
[data-theme="light"] .form-input { background: #FFFFFF; color: #1A1A1A; border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .form-label { color: #444444; }
[data-theme="light"] .complete-btn { color: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100dvh; position: relative; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loading-content { text-align: center; padding: 2rem; }
.loading-symbol {
  font-size: 3rem; color: var(--primary);
  animation: pulse-gold 2s ease-in-out infinite;
  display: block; margin-bottom: 1.5rem;
}
.loading-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
}
.loading-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.loading-bar {
  width: 200px; height: 2px;
  background: var(--border-soft);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loading-bar-fill {
  height: 100%; background: var(--primary);
  border-radius: 2px;
  animation: loading-progress 1.5s ease-in-out forwards;
}
@keyframes loading-progress { from { width: 0; } to { width: 100%; } }
@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.screen {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + 1rem);
  overflow-y: auto;
}
.screen.hidden { display: none !important; }
.hidden { display: none !important; }

.container { max-width: 480px; margin: 0 auto; padding: 0 1rem; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 0.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 0.5rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-faint);
  font-size: 0.65rem; font-family: 'Inter', sans-serif;
  transition: color 0.2s;
  flex: 1;
}
.nav-btn i { width: 20px; height: 20px; }
.nav-btn.active, .nav-btn:hover { color: var(--primary); }
.nav-btn--center { flex: 0 0 56px; }
.nav-center-ring {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--bg);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  margin-bottom: -2px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-btn--center:hover .nav-center-ring,
.nav-btn--center.active .nav-center-ring {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.6);
}

/* ============================================================
   AUTH SCREEN
   ============================================================ */
.auth-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem; padding-bottom: 2rem;
}
.auth-logo { text-align: center; margin-bottom: 2.5rem; }
.auth-symbol { font-size: 2.5rem; color: var(--primary); display: block; margin-bottom: 1rem; }
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.25rem;
}
.auth-subtitle { color: var(--text-muted); font-size: 0.85rem; }
.auth-form { width: 100%; max-width: 360px; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-input {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-faint); }
.btn { display: block; width: 100%; padding: 0.9rem; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; text-align: center; }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-soft); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: none; color: var(--text-muted); font-size: 0.85rem; }
.btn-ghost:hover { color: var(--primary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.85rem; }
.auth-switch a { color: var(--primary); cursor: pointer; text-decoration: none; }
.auth-trial-info {
  background: var(--primary-dim); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--text-muted); text-align: center;
}
.auth-trial-info strong { color: var(--primary); }

/* ============================================================
   HOME SCREEN
   ============================================================ */
.home-header {
  padding: 3rem 1.5rem 1rem;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}
.home-greeting { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.home-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 600; color: var(--text);
}
.home-body { padding: 0 1rem 1rem; }

/* Trial banner */
.trial-banner {
  background: var(--primary-dim); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem; font-size: 0.82rem;
}
.trial-banner-icon { font-size: 1.1rem; }
.trial-banner-text { flex: 1; color: var(--text-muted); }
.trial-banner-text strong { color: var(--primary); }
.trial-banner-upgrade {
  background: var(--primary); color: var(--bg);
  border: none; border-radius: 6px; padding: 0.35rem 0.7rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}

/* Today card */
.today-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.today-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.today-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15); }
.today-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.today-day { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.today-of { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.today-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); margin-bottom: 0.25rem; }
.today-theme { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.today-block { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.5px; }
.today-arrow { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--primary); opacity: 0.6; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Progress ring */
.progress-ring-container { text-align: center; margin-bottom: 1rem; }
.progress-ring-wrap { position: relative; display: inline-block; }
.progress-ring-svg { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--border-soft); }
.progress-ring-fill { fill: none; stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.progress-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-ring-pct { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.progress-ring-sub { font-size: 0.65rem; color: var(--text-muted); }

/* Badges preview */
.badges-section { margin-bottom: 1rem; }
.section-title { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.75rem; }
.badges-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge-chip {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 0.35rem 0.75rem;
  font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem;
}
.badge-chip.earned { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }
.badge-chip-locked { filter: grayscale(1); opacity: 0.4; }

/* Upgrade wall */
.upgrade-wall {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center; margin: 1rem;
}
.upgrade-wall-symbol { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.upgrade-wall-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 0.75rem; }
.upgrade-wall-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.upgrade-price { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); margin-bottom: 0.25rem; }
.upgrade-price-sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============================================================
   LESSON SCREEN
   ============================================================ */
.lesson-scroll { padding-bottom: calc(var(--nav-h) + 2rem); }

/* Topbar com botão voltar e imprimir */
.lesson-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem 0;
  position: relative; z-index: 2;
}
.lesson-back-btn, .lesson-print-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem; border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.lesson-back-btn:hover, .lesson-print-btn:hover { color: var(--gold); background: var(--surface); }
.lesson-topbar-title { font-size: 0.8rem; color: var(--text-faint); font-weight: 500; }

/* Modal com botão voltar */
.modal-header-row {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.modal-back-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem; font-size: 0.85rem;
  padding: 0.3rem 0.5rem; border-radius: 6px; transition: color 0.2s;
  white-space: nowrap;
}
.modal-back-btn:hover { color: var(--gold); }

/* Versículos do capítulo */
.chapter-verses { display: flex; flex-direction: column; gap: 0.6rem; }
.chapter-verse {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.5rem 0.6rem; border-radius: 6px; transition: background 0.2s;
}
.chapter-verse:hover { background: var(--surface); }
.verse-highlight {
  background: color-mix(in srgb, var(--gold) 12%, transparent) !important;
  border-left: 2px solid var(--gold); padding-left: 0.8rem;
}
.verse-num {
  font-size: 0.7rem; color: var(--gold); font-weight: 600;
  min-width: 1.5rem; padding-top: 0.2rem; text-align: right;
}
.verse-text { font-size: 0.9rem; line-height: 1.7; color: var(--text); }

.lesson-hero {
  position: relative; min-height: 220px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.lesson-hero-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.35; }
.lesson-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 30%, transparent 100%); }
.lesson-hero-content { position: relative; z-index: 1; }
.lesson-block-tag { font-size: 0.7rem; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.5rem; }
.lesson-day-num { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--primary); margin-bottom: 0.25rem; }
.lesson-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.lesson-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

.lesson-body { padding: 0 1rem; }

/* Section */
.lesson-section { margin-bottom: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border-soft); }
.lesson-section:first-child { border-top: none; padding-top: 0; }
.section-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.section-icon { color: var(--primary); font-size: 1rem; }
.section-heading { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

/* Passages */
.passage-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.passage-text {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  line-height: 1.75; color: var(--text); font-style: italic;
  margin-bottom: 0.5rem;
}
.passage-ref { font-size: 0.78rem; color: var(--primary); font-style: normal; }
.passage-expand {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.75rem; cursor: pointer; padding: 0.25rem 0;
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem;
}
.passage-expand:hover { color: var(--primary); }

/* Deep teaching */
.teaching-text { font-size: 0.95rem; line-height: 1.8; color: var(--text); white-space: pre-wrap; }
.hebrew-box {
  background: var(--primary-dim); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0; text-align: center;
}
.hebrew-name-he { font-size: 1.8rem; color: var(--primary); direction: rtl; margin-bottom: 0.5rem; display: block; }
.hebrew-transliteration { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.hebrew-meaning { font-size: 0.82rem; color: var(--text-muted); }

/* Practice */
.practice-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.25rem;
}
.practice-text { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); white-space: pre-wrap; margin-bottom: 1rem; }
.practice-check {
  display: flex; align-items: center; gap: 0.75rem; cursor: pointer;
  padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm);
}
.practice-checkbox {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.practice-checkbox.checked { border-color: var(--primary); background: var(--primary); }
.practice-checkbox-label { font-size: 0.85rem; color: var(--text-muted); }

/* Daily purpose */
.purpose-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.purpose-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem;
  line-height: 1.5; color: var(--text); margin-bottom: 1rem;
}
.purpose-actions { display: flex; gap: 0.75rem; justify-content: center; }
.purpose-btn {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 0.4rem 1rem;
  font-size: 0.78rem; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; gap: 0.35rem;
  transition: all 0.2s;
}
.purpose-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Journal */
.mood-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; justify-content: space-between; }
.mood-btn {
  flex: 1; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--border-soft);
  background: var(--surface-2); cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mood-btn.selected { border-color: var(--primary); background: var(--primary-dim); transform: scale(1.1); }
.mood-label { text-align: center; font-size: 0.68rem; color: var(--text-faint); margin-top: 0.25rem; }
.mood-group { display: flex; flex-direction: column; flex: 1; }

.tag-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag-chip {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-size: 0.78rem; color: var(--text-muted); cursor: pointer;
  transition: all 0.2s; user-select: none;
}
.tag-chip.selected { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }

.journal-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.journal-textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.85rem; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.88rem; line-height: 1.65;
  resize: none; outline: none; transition: border-color 0.2s; min-height: 120px;
}
.journal-textarea:focus { border-color: var(--primary); }
.journal-textarea::placeholder { color: var(--text-faint); }
.char-count { text-align: right; font-size: 0.72rem; color: var(--text-faint); margin-top: 0.25rem; }

/* Quiz */
.quiz-question { margin-bottom: 1.5rem; }
.quiz-q-text { font-size: 0.92rem; color: var(--text); margin-bottom: 0.75rem; line-height: 1.5; font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.8rem 1rem;
  cursor: pointer; font-size: 0.88rem; color: var(--text-muted);
  transition: all 0.2s; display: flex; align-items: flex-start; gap: 0.75rem;
}
.quiz-option:hover:not(.disabled) { border-color: var(--primary); color: var(--text); }
.quiz-option.selected { border-color: var(--primary); color: var(--text); background: var(--primary-dim); }
.quiz-option.correct { border-color: var(--success); color: var(--success); background: rgba(92, 184, 92, 0.1); }
.quiz-option.wrong { border-color: var(--danger); color: var(--danger); background: rgba(224, 112, 112, 0.1); }
.quiz-option.disabled { pointer-events: none; }
.quiz-letter {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; flex-shrink: 0; margin-top: 1px;
}
.quiz-explanation {
  margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted);
  background: var(--surface); border-radius: var(--radius-sm); padding: 0.75rem;
  border-left: 2px solid var(--primary); display: none;
}
.quiz-explanation.show { display: block; }
.quiz-submit {
  background: var(--primary); color: var(--bg); border: none;
  border-radius: var(--radius-sm); padding: 0.85rem; width: 100%;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  margin-top: 0.5rem; transition: all 0.2s;
}
.quiz-submit:hover { filter: brightness(1.1); }
.quiz-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-score-box {
  background: var(--primary-dim); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center; margin-top: 1rem;
}
.quiz-score-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); }
.quiz-score-label { font-size: 0.78rem; color: var(--text-muted); }

/* Complete button */
.complete-btn {
  width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary), #E8C86A);
  border: none; border-radius: var(--radius); color: var(--bg);
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}
.complete-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5); }
.complete-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.complete-btn.done { background: var(--secondary); color: var(--text); box-shadow: none; }

/* ============================================================
   BIBLE SCREEN
   ============================================================ */
.bible-header { padding: 3rem 1.5rem 1rem; }
.bible-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; }
.bible-nav { padding: 0 1rem 1rem; }
.bible-search {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.bible-search input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.bible-search input:focus { border-color: var(--primary); }
.bible-search input::placeholder { color: var(--text-faint); }
.bible-search-btn {
  background: var(--primary); border: none; border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; color: var(--bg); cursor: pointer;
}
.bible-books-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem;
}
.bible-book-btn {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.65rem 0.75rem;
  text-align: left; cursor: pointer; font-size: 0.82rem; color: var(--text-muted);
  transition: all 0.15s;
}
.bible-book-btn:hover { border-color: var(--primary); color: var(--text); }
.bible-section-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin: 0.75rem 0 0.5rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; margin-bottom: 1rem; }
.chapter-btn {
  aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.chapter-btn:hover { border-color: var(--primary); color: var(--primary); }
.verse-list { padding: 0 0 1rem; }
.verse-row {
  display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft);
}
.verse-num { font-size: 0.75rem; color: var(--primary); font-weight: 600; min-width: 24px; padding-top: 2px; }
.verse-text { font-size: 0.9rem; color: var(--text); line-height: 1.65; flex: 1; }
.verse-fav { background: none; border: none; color: var(--text-faint); cursor: pointer; padding: 0.25rem; transition: color 0.2s; }
.verse-fav.active { color: var(--primary); }
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb-btn { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 0.8rem; padding: 0.2rem 0; }
.breadcrumb-sep { color: var(--text-faint); }

/* ============================================================
   PROGRESS SCREEN
   ============================================================ */
.progress-header { padding: 3rem 1.5rem 1rem; }
.progress-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; }
.progress-body { padding: 0 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-bottom: 1.5rem; }
.cal-day {
  aspect-ratio: 1; border-radius: 3px; background: var(--surface-2);
  transition: background 0.2s;
}
.cal-day.done { background: var(--primary); }
.cal-day.today { background: var(--accent); }
.cal-day.future { background: var(--border-soft); }
.cal-day--clickable { cursor: pointer; }
.cal-day--clickable:hover { opacity: 0.75; transform: scale(1.2); }
.mood-chart { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.mood-chart-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.mood-chart-inner { display: flex; gap: 0.5rem; align-items: stretch; }
.mood-y-axis {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 0.85rem; padding-bottom: 1.4rem; min-width: 1.4rem;
  color: var(--text);
}
.mood-bars-area { flex: 1; display: flex; flex-direction: column; }
.mood-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; flex: 1; }
.mood-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mood-emoji-top { font-size: 0.7rem; line-height: 1; min-height: 0.9rem; }
.mood-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.mood-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 4px; transition: height 0.5s; }
.mood-day-label { font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }
.mood-x-line { height: 1px; background: var(--border-soft); margin-top: 2px; }
.mood-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.75rem; font-size: 0.72rem; color: var(--text-muted); }
[data-theme="light"] .mood-y-axis { color: #333; }
[data-theme="light"] .mood-day-label { color: #666; }
[data-theme="light"] .mood-legend { color: #555; }
.all-badges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.badge-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.badge-card.earned { border-color: var(--primary); background: var(--primary-dim); }
.badge-card-emoji { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.badge-card-name { font-size: 0.82rem; color: var(--text); font-weight: 500; margin-bottom: 0.25rem; }
.badge-card-days { font-size: 0.72rem; color: var(--text-muted); }
.badge-card.locked { filter: grayscale(0.8); opacity: 0.5; }
.stats-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.stats-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0.75rem; text-align: center; }
.stats-card-val { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.stats-card-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============================================================
   PROFILE SCREEN
   ============================================================ */
.profile-header { padding: 3rem 1.5rem 1rem; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-dim); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem;
}
.profile-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; }
.profile-email { font-size: 0.82rem; color: var(--text-muted); }
.profile-body { padding: 0 1rem; }
.profile-section { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.profile-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-soft); cursor: pointer;
  transition: background 0.15s;
}
.profile-row:last-child { border-bottom: none; }
.profile-row:hover { background: var(--surface-2); }
.profile-row-label { font-size: 0.9rem; color: var(--text); display: flex; align-items: center; gap: 0.75rem; }
.profile-row-label i { color: var(--primary); }
.profile-row-value { font-size: 0.82rem; color: var(--text-muted); }
.profile-row-arrow { color: var(--text-faint); }
.theme-toggle {
  width: 44px; height: 24px; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 12px; position: relative; cursor: pointer; transition: background 0.2s;
}
.theme-toggle.on { background: var(--primary); border-color: var(--primary); }
.theme-toggle-dot {
  width: 18px; height: 18px; background: var(--text); border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.theme-toggle.on .theme-toggle-dot { transform: translateX(20px); background: var(--bg); }
.subscription-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--primary-dim); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.25rem 0.65rem; font-size: 0.75rem; color: var(--primary);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; backdrop-filter: blur(4px); }
.modal-container {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 201;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 90dvh; overflow-y: auto; padding: 1.5rem;
  animation: slide-up 0.3s ease;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 1.25rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1.25rem;
  font-size: 0.88rem; color: var(--text); white-space: nowrap;
  animation: toast-in 0.3s ease; box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   CELEBRATION
   ============================================================ */
.celebration-overlay {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.celebration-card {
  background: var(--surface); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  animation: celebrate-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all; max-width: 300px;
}
@keyframes celebrate-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.celebration-emoji { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.celebration-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.celebration-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.celebration-close { background: var(--primary); color: var(--bg); border: none; border-radius: var(--radius-sm); padding: 0.65rem 2rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.font-serif { font-family: 'Playfair Display', serif; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border-soft); margin: 1.5rem 0; }

/* Spinner */
.spinner { width: 24px; height: 24px; border: 2px solid var(--border-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { display: flex; align-items: center; justify-content: center; padding: 3rem; }

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

/* ── Cabeçalho de marca (home) ────────────────────────────────────── */
.app-brand-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2A1A08 100%);
  padding: 1.1rem 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #C9A84C;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.app-brand-subtitle {
  font-size: 0.68rem;
  color: rgba(201,168,76,0.6);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

[data-theme="light"] .app-brand-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #3D2710 100%);
}

.stat-label { font-size: 0.68rem; }

/* ── Capítulos estudados hoje (lesson.js) ─────────────────────────── */
.chapters-studied-section {
  background: var(--primary-dim2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.75rem;
}
.chapters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.5rem;
}
.chapters-chip {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chapters-note {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin: 0;
  font-style: italic;
}

/* ── Cobertura Bíblica (progress.js) ──────────────────────────────── */
.coverage-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}
.coverage-book {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}
.coverage-book-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.35rem;
}
.coverage-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.coverage-ch {
  background: var(--primary-dim);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-family: monospace;
}
.coverage-download-btn {
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}
.coverage-download-btn:hover {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
}

[data-theme="light"] .chapters-chip {
  background: rgba(122,92,14,0.1);
  color: #7A5C0E;
  border-color: rgba(122,92,14,0.2);
}
[data-theme="light"] .coverage-book-name { color: #7A5C0E; }
[data-theme="light"] .coverage-ch { background: rgba(122,92,14,0.08); color: #555; }
