/* ==========================================================================
   ANCORAGEM EMOCIONAL 4D — DESIGN SYSTEM PREMIUM (DARK & LIGHT MODE + PRINT)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root,
[data-theme="dark"] {
  --bg-base: #040915;
  --bg-elevated: #081226;
  --bg-surface: rgba(12, 26, 54, 0.78);
  --bg-surface-hover: rgba(18, 38, 76, 0.9);
  --bg-input: rgba(6, 15, 34, 0.88);
  --bg-glass: rgba(8, 18, 38, 0.85);
  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.38);
  --border-gold: rgba(251, 191, 36, 0.38);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #040915;

  --accent-cyan: #0ea5e9;
  --accent-cyan-bright: #38bdf8;
  --accent-blue: #2563eb;
  --accent-gold: #f59e0b;
  --accent-gold-bright: #fbbf24;
  --accent-emerald: #10b981;
  --accent-indigo: #818cf8;
  --accent-rose: #f43f5e;
  --accent-whatsapp: #25D366;

  --glow-cyan: 0 0 28px rgba(14, 165, 233, 0.25);
  --glow-gold: 0 0 28px rgba(245, 158, 11, 0.22);
  --shadow-card: 0 14px 36px -8px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 25px 70px rgba(0, 0, 0, 0.75);

  --hero-overlay: linear-gradient(90deg, rgba(4, 9, 21, 0.94) 0%, rgba(6, 16, 38, 0.82) 55%, rgba(4, 9, 21, 0.45) 100%);
  --logo-blend: screen;
}

[data-theme="light"] {
  --bg-base: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.94);
  --bg-surface-hover: #f8fafc;
  --bg-input: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(2, 132, 199, 0.35);
  --border-gold: rgba(217, 119, 6, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-cyan: #0284c7;
  --accent-cyan-bright: #0369a1;
  --accent-blue: #1d4ed8;
  --accent-gold: #d97706;
  --accent-gold-bright: #b45309;
  --accent-emerald: #059669;
  --accent-indigo: #4f46e5;
  --accent-rose: #e11d48;
  --accent-whatsapp: #16a34a;

  --glow-cyan: 0 8px 24px rgba(2, 132, 199, 0.14);
  --glow-gold: 0 8px 24px rgba(217, 119, 6, 0.14);
  --shadow-card: 0 10px 30px -6px rgba(15, 23, 42, 0.07);
  --shadow-modal: 0 24px 60px rgba(15, 23, 42, 0.22);

  --hero-overlay: linear-gradient(90deg, rgba(4, 12, 28, 0.92) 0%, rgba(7, 22, 50, 0.80) 58%, rgba(7, 22, 50, 0.42) 100%);
  --logo-blend: normal;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.10), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.08), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   TOPBAR / HEADER
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 clamp(14px, 2.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.brand-crest {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

.brand-logo-wrap {
  background: #070d19;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--accent-cyan-bright), var(--accent-gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-title-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Gamification Pill in Topbar */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xp-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.xp-hud:hover {
  transform: translateY(-1px);
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}

.xp-level-icon {
  font-size: 18px;
}

.xp-hud-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xp-hud-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.xp-badge-pts {
  color: var(--accent-gold-bright);
  font-family: 'Outfit', sans-serif;
}

.xp-mini-bar {
  width: 110px;
  height: 5px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 99px;
  overflow: hidden;
}

.xp-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold-bright));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Topbar Right Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-top:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.btn-top.btn-workbook {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(245, 158, 11, 0.14));
  border-color: var(--border-strong);
}

.btn-top.btn-whatsapp-top {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
}

[data-theme="light"] .btn-top.btn-whatsapp-top {
  color: #15803d;
}

.btn-icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}

/* ==========================================================================
   MAIN LAYOUT (SIDEBAR + CONTENT)
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: calc(100vh - 72px);
  max-width: 1600px;
  margin: 0 auto;
}

/* SIDEBAR NAVIGATION */
.sidebar {
  width: 350px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-subtle);
  padding: 18px 14px 32px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
}

/* Student Profile Card in Sidebar */
.student-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-greeting {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-edit-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan-bright);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.course-progress-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.course-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.course-progress-track {
  height: 7px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 99px;
  overflow: hidden;
}

.course-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-gold-bright));
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Search Input in Sidebar */
.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-search input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.sidebar-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Module Accordion List */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-group {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.module-group.open {
  border-color: var(--border-strong);
}

.module-header-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.module-header-btn:hover {
  background: var(--bg-surface-hover);
}

.module-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.module-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.module-header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.module-pillar-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan-bright);
}

.module-name-txt {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.module-count-pill.all-done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.module-lessons {
  display: none;
  padding: 4px 8px 10px;
  border-top: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 4px;
}

.module-group.open .module-lessons {
  display: flex;
}

.lesson-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.18s ease;
  position: relative;
}

.lesson-nav-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.lesson-nav-item.active {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(245, 158, 11, 0.08));
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent-cyan-bright);
}

.lesson-nav-item.locked {
  opacity: 0.58;
}

.lesson-status-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
}

.lesson-nav-item.done .lesson-status-dot {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.lesson-nav-item.active:not(.done) .lesson-status-dot {
  border-color: var(--accent-cyan-bright);
  color: var(--accent-cyan-bright);
}

.lesson-nav-text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.lesson-nav-code {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-cyan-bright);
}

.lesson-nav-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sidebar-action {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-sidebar-action:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* ==========================================================================
   MAIN CONTENT AREA & HERO BANNER
   ========================================================================== */
.main-content {
  flex: 1;
  min-width: 0;
  padding: clamp(18px, 3vw, 36px) clamp(16px, 4vw, 52px) 90px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Greenn Club Official Banner Card */
.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 26px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  background-color: #040b1a;
  background-image: url('banner-ancoragem-4d.png');
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3.2vw, 34px);
  max-width: 680px;
  color: #f8fafc;
}

.hero-pillar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-lesson-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-lesson-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 16px;
  max-width: 580px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.hero-meta-chip.xp-chip {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

/* Module Switcher Pills (Quick Jump for Greenn Club Students) */
.module-quick-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
}

.module-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.module-quick-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.module-quick-pill.active {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

/* Lesson Mode Tabs (Estudo / Atividades Interativas / Inspiração da Turma / PDFs) */
.lesson-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.lesson-tab-btn {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lesson-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.lesson-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.tab-count-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   CONTENT CARDS (HOOK, STORY, THEORY, COMPARISON, BIBLICAL)
   ========================================================================== */
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card-block:hover {
  border-color: var(--border-strong);
}

/* Hook Banner */
.hook-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.08));
  border-left: 4px solid var(--accent-gold-bright);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hook-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.hook-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
}

/* Story Card */
.story-card {
  position: relative;
  overflow: hidden;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan-bright);
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-paragraph {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 15.5px;
}

.card-paragraph:last-child {
  margin-bottom: 0;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pillar-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.pillar-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  margin-bottom: 4px;
}

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

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.comparison-col {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
}

.comparison-col.col-left {
  background: rgba(244, 63, 94, 0.06);
  border-color: rgba(244, 63, 94, 0.25);
}

.comparison-col.col-right {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.28);
}

.comparison-col h4 {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.comparison-col.col-left .comparison-list li::before {
  content: "•";
  color: var(--accent-rose);
  font-weight: bold;
  position: absolute;
  left: 2px;
}

.comparison-col.col-right .comparison-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Biblical Base Card */
.biblical-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.08));
  border-color: rgba(129, 140, 248, 0.32);
}

.verses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.verse-item {
  background: var(--bg-input);
  border-left: 3px solid var(--accent-indigo);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
}

.verse-ref {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--accent-cyan-bright);
  display: block;
  margin-bottom: 3px;
}

.verse-text {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.attention-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

/* Quote Block */
.quote-card {
  border-left: 4px solid var(--accent-cyan-bright);
  background: var(--bg-input);
  padding: 20px 24px;
  border-radius: 0 16px 16px 0;
}

.quote-text {
  font-size: 16.5px;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quote-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold-bright);
}

/* PDFs Original Download Bar */
.pdf-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pdf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pdf-chip:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   INTERACTIVE EXERCISES, CHECKLISTS & AUTO-SAVE
   ========================================================================== */
.exercise-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  padding: clamp(20px, 2.8vw, 30px);
  box-shadow: var(--shadow-card);
  position: relative;
}

.exercise-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.field-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.interactive-textarea {
  width: 100%;
  min-height: 98px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.interactive-textarea:focus {
  border-color: var(--accent-cyan-bright);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.interactive-textarea.filled {
  border-color: rgba(16, 185, 129, 0.45);
}

/* Interactive Checklist */
.checklist-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.check-row:hover {
  border-color: var(--accent-cyan);
}

.check-row.checked {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.45);
}

.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-emerald);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.check-row span {
  font-size: 14.5px;
  color: var(--text-primary);
}

/* Declaration Box */
.declaration-phrase-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(14, 165, 233, 0.14));
  border: 1px dashed var(--accent-gold-bright);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* 4D Anchor Ritual Card */
.anchor4d-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(12, 26, 54, 0.85));
  border: 1.5px solid var(--border-gold);
}

[data-theme="light"] .anchor4d-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(245, 158, 11, 0.06));
}

.anchor4d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Prayer Card */
.prayer-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid var(--border-gold);
  position: relative;
}

.prayer-text {
  font-size: 16.5px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  padding: 14px 18px;
  background: var(--bg-input);
  border-left: 4px solid var(--accent-gold-bright);
  border-radius: 0 12px 12px 0;
  margin: 14px 0;
}

/* 14 Audio Capsules Grid (Bonus Module) */
.capsules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.capsule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.22s ease;
}

.capsule-card.completed {
  border-color: var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--bg-surface));
}

.capsule-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capsule-day-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--accent-gold-bright);
  text-transform: uppercase;
}

/* Community Inspiration Cards ("Ver outras respostas") */
.community-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.community-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 15px 18px;
}

.community-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.community-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.community-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(14, 165, 233, 0.16);
  color: var(--accent-cyan-bright);
}

/* Lesson Completion & WhatsApp Share Bar */
.lesson-complete-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(16, 185, 129, 0.14));
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.complete-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.48);
}

.btn-gold {
  background: linear-gradient(90deg, var(--accent-gold), #ea580c);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.32);
}

.btn-emerald {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.32);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #25D366;
  color: #04130a;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.lesson-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MODALS (MEU CADERNO / PRINT, ADMIN, CONQUISTAS, CERTIFICADO)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 16, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.22s ease;
}

.modal-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--bg-elevated);
  border: 1.5px solid var(--accent-cyan-bright);
  color: var(--text-primary);
  padding: 13px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  animation: slideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 980px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    z-index: 60;
    transform: translateX(-105%);
    width: 88%;
    max-width: 350px;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.6);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .brand-title-sub {
    display: none;
  }
  .btn-top span.hide-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .xp-mini-bar {
    display: none;
  }
  .hero-banner {
    background-position: 70% center;
  }
  .lesson-tab-btn {
    min-width: calc(50% - 6px);
    font-size: 12.5px;
    padding: 9px 10px;
  }
}

/* ==========================================================================
   PRINT / PDF WORKBOOK STYLESHEET (@media print)
   ========================================================================== */
#printWorkbookArea {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11.5pt;
    line-height: 1.5;
  }

  .topbar,
  .app-shell,
  .modal-backdrop,
  .toast-container,
  #confettiCanvas {
    display: none !important;
  }

  #printWorkbookArea {
    display: block !important;
    padding: 0;
    color: #0f172a;
  }

  .print-cover {
    border: 2px solid #0284c7;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .print-module-section {
    margin-bottom: 26px;
    page-break-inside: avoid;
  }

  .print-module-title {
    font-size: 16pt;
    font-weight: 800;
    color: #0369a1;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 6px;
    margin-bottom: 14px;
  }

  .print-lesson-box {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    page-break-inside: avoid;
  }

  .print-lesson-title {
    font-size: 13pt;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
  }

  .print-qa-item {
    margin-bottom: 10px;
  }

  .print-q {
    font-weight: 700;
    font-size: 10.5pt;
    color: #334155;
  }

  .print-a {
    margin-top: 3px;
    padding: 8px 11px;
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    white-space: pre-wrap;
    font-size: 11pt;
    color: #0f172a;
  }
}
