/* ── Push Permission Card ─────────────────────────────────── */
.push-permission-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1rem;
  margin: 1rem 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.push-permission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark), #3A9E8F);
}

.ppc-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }

.ppc-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
}

.ppc-body {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ppc-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.ppc-time-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}

.ppc-time-btn.selected {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.ppc-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ppc-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.ppc-confirm-btn {
  background: var(--teal-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.ppc-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Nuri — Belajar Bareng Nuri (Mode 5)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Landing page section ──────────────────────────────────────────────────── */

/* ── Belajar landing section ──────────────────────────────────────────────── */

.belajar-landing-section {
  padding: 0 16px;
  margin-top: 16px;
}

.belajar-landing-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px 28px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.belajar-landing-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.belajar-landing-card:active { transform: scale(0.98); }

.belajar-landing-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--teal-dark), var(--gold));
}
.belajar-landing-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.belajar-landing-desc { font-size: 13px; color: var(--text-mid); line-height: 1.45; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #D8DEE6; }
.belajar-landing-cta { font-size: 13px; font-weight: 600; color: var(--teal-dark); }

/* ── Belajar view ────────────────────────────────────────────────────────── */

#belajar-view.active {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.belajar-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.belajar-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.belajar-header-back {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-mid);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.belajar-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.belajar-header-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
}

.belajar-header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.69rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Active curriculum progress card */
.belajar-progress {
  margin: 12px 14px 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0A0F1E, #0D3B6E);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.belajar-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.belajar-progress-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.belajar-progress-emoji {
  font-size: 1rem;
}

.belajar-progress-title {
  font-size: 0.81rem;
  font-weight: 600;
  color: white;
}

.belajar-progress-sub {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

.belajar-progress-btn {
  background: var(--gold);
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

.belajar-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.belajar-progress-fill {
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Tabs */
.belajar-tabs-wrap {
  margin: 14px 14px 0;
  flex-shrink: 0;
}

.belajar-tabs {
  display: flex;
  background: #F0F0F5;
  border-radius: 12px;
  padding: 3px;
}

.belajar-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.belajar-tab.active {
  background: white;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Tab content */
.belajar-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.belajar-tab-panel {
  padding: 4px 14px;
}

.belajar-tab-intro {
  font-size: 0.81rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 0 2px;
}

/* Curriculum cards */
.belajar-curriculum-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.belajar-curriculum-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EDF7F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.38rem;
  flex-shrink: 0;
}

.belajar-curriculum-info {
  flex: 1;
  min-width: 0;
}

.belajar-curriculum-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.belajar-curriculum-tagline {
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-top: 3px;
  line-height: 1.4;
}

.belajar-curriculum-meta {
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.belajar-curriculum-chevron {
  color: #ccc;
  font-size: 1rem;
  align-self: center;
  flex-shrink: 0;
}

/* Topic search */
.belajar-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F5F5;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
}

.belajar-search-icon {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.belajar-search-input {
  border: none;
  background: transparent;
  font-size: 0.81rem;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.belajar-search-input::placeholder {
  color: var(--text-muted);
}

/* Topic groups (accordion) */
.belajar-group {
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.belajar-group-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
}

.belajar-group-header.open {
  background: #FAFAFA;
}

.belajar-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.belajar-group-emoji {
  font-size: 1.13rem;
}

.belajar-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.belajar-group-count {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.belajar-group-chevron {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: transform 0.3s;
}

.belajar-group-chevron.open {
  transform: rotate(180deg);
}

.belajar-group-paths {
  border-top: 1px solid var(--border);
  display: none;
}

.belajar-group-paths.open {
  display: block;
}

.belajar-path-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 46px;
  cursor: pointer;
  background: white;
  transition: background 0.15s;
}

.belajar-path-row:not(:last-child) {
  border-bottom: 1px solid #F0F0F0;
}

.belajar-path-row:active {
  background: #F8F8F8;
}

.belajar-path-emoji {
  font-size: 1rem;
  flex-shrink: 0;
}

.belajar-path-info {
  flex: 1;
  min-width: 0;
}

.belajar-path-title {
  font-size: 0.875rem;
  color: var(--text-dark);
}

.belajar-path-meta {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.belajar-path-chevron {
  color: #ddd;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Search results (flat list) */
.belajar-search-results {
  padding: 4px 0;
}

.belajar-search-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.81rem;
}

/* Nuri entry (sticky bottom) */
.belajar-nuri-entry {
  padding: 2px 14px 4px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.belajar-nuri-entry-inner {
  padding: 4px 4px;
  cursor: pointer;
  text-align: center;
}

.belajar-nuri-entry-inner:active {
  opacity: 0.7;
}

.belajar-nuri-entry-text {
  font-size: 0.81rem;
  color: var(--teal-dark);
  font-weight: 500;
}

/* ── Belajar onboarding ──────────────────────────────────────────────────── */

.belajar-ob {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Welcome screen */
.belajar-ob-welcome {
  flex: 1;
  background: linear-gradient(180deg, #0A0F1E 0%, #0F2044 60%, #0D3B6E 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.belajar-ob-welcome.visible {
  opacity: 1;
  transform: none;
}

.belajar-ob-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), #3A9C8E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px rgba(42,124,111,0.13), 0 0 0 12px rgba(42,124,111,0.07);
}

.belajar-ob-pretitle {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.belajar-ob-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.belajar-ob-greeting {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 40px;
}

.belajar-ob-verse-ar {
  font-family: 'Amiri', serif;
  font-size: 1.13rem;
  color: rgba(196, 151, 59, 0.53);
  direction: rtl;
  margin-bottom: 6px;
}

.belajar-ob-verse-tr {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-bottom: 48px;
}

.belajar-ob-start-btn {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  font-family: 'DM Sans', sans-serif;
}

.belajar-ob-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 16px;
}

/* Question screens */
.belajar-ob-question {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.belajar-ob-question.visible {
  opacity: 1;
  transform: none;
}

.belajar-ob-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--teal-dark), rgba(42,124,111,0.27));
  flex-shrink: 0;
}

.belajar-ob-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.belajar-ob-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.belajar-ob-step {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}

.belajar-ob-step.filled {
  background: var(--teal-dark);
}

.belajar-ob-nuri-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.belajar-ob-nuri-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.94rem;
  font-weight: 700;
}

.belajar-ob-nuri-says {
  font-size: 0.81rem;
  color: var(--text-mid);
}

.belajar-ob-q-text {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 28px;
}

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

.belajar-ob-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  background: white;
}

.belajar-ob-option:active,
.belajar-ob-option:hover {
  border-color: var(--teal-dark);
  background: #EDF7F6;
}

.belajar-ob-option-emoji {
  font-size: 1.75rem;
}

.belajar-ob-option-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
}

.belajar-ob-option-desc {
  font-size: 0.81rem;
  color: var(--text-mid);
  margin-top: 2px;
}

.belajar-ob-footer {
  padding: 0 24px 24px;
  text-align: center;
}

.belajar-ob-skip {
  font-size: 0.81rem;
  color: var(--teal-dark);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.belajar-ob-back {
  font-size: 0.81rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

/* Result screen */
.belajar-ob-result {
  flex: 1;
  background: linear-gradient(180deg, #0A0F1E 0%, #0F2044 60%, #0D3B6E 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s;
}

.belajar-ob-result.visible {
  opacity: 1;
}

.belajar-ob-loading-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), #3A9C8E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.38rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  animation: belajarPulse 1.5s infinite;
}

.belajar-ob-loading-text {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.6);
}

.belajar-ob-rec-intro {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.belajar-ob-rec-primary {
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  animation: belajarFadeInScale 0.5s ease 0.2s both;
}

.belajar-ob-rec-emoji {
  font-size: 2.25rem;
  margin-bottom: 10px;
}

.belajar-ob-rec-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.belajar-ob-rec-tagline {
  font-size: 0.81rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 10px;
}

.belajar-ob-rec-meta {
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.belajar-ob-rec-btn {
  background: var(--teal-dark);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 13px 0;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.belajar-ob-rec-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 18px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 16px;
  animation: belajarFadeUp 0.5s ease 0.35s both;
}

.belajar-ob-rec-secondary:active {
  background: rgba(255,255,255,0.12);
}

.belajar-ob-sec-emoji {
  font-size: 1.5rem;
}

.belajar-ob-sec-info {
  flex: 1;
  text-align: left;
}

.belajar-ob-sec-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.belajar-ob-sec-meta {
  font-size: 0.69rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.belajar-ob-sec-chevron {
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
}

.belajar-ob-browse {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  animation: belajarFadeUp 0.5s ease 0.5s both;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

@keyframes belajarPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes belajarFadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ── Path Preview ────────────────────────────────────────────────────────── */

#path-preview-view.active { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.pp-hero {
  background: linear-gradient(135deg, #0A0F1E 0%, #0F2044 70%, #0D3B6E 100%);
  padding: 16px 20px 24px; flex-shrink: 0;
}
.pp-back { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 12px; font-family: inherit; }
.pp-hero-content { text-align: center; padding: 0; }
.pp-title { color: white; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.pp-desc { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }

.pp-lessons { flex: 1; overflow-y: auto; padding: 10px 16px 16px; background: var(--bg-landing); }
.pp-lesson-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; background: white; border: 1.5px solid transparent;
  border-radius: 14px; margin-bottom: 8px; cursor: pointer;
  text-align: left; font: inherit;
}
.pp-lesson-row.done .pp-lesson-num { background: var(--teal-dark); color: white; }
.pp-lesson-row.current { border-color: var(--teal-dark); }
.pp-lesson-num {
  width: 32px; height: 32px; border-radius: 50%; background: #F0F0F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-mid); flex-shrink: 0;
}
.pp-lesson-info { flex: 1; }
.pp-lesson-title { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.pp-lesson-ref { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pp-lesson-chevron { color: var(--text-muted); font-size: 18px; }

.pp-start-wrap { padding: 8px 16px 16px; background: var(--bg-landing); flex-shrink: 0; }
.pp-start-btn {
  width: 100%; padding: 11px; background: var(--teal-dark); color: white;
  border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pp-complete-msg { text-align: center; font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.pp-closing { text-align: center; font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── Lesson View (swipe cards) ──────────────────────────────────────────── */

#lesson-view.active {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; overflow: hidden;
  position: relative;
}

.lc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; flex-shrink: 0; transition: all 0.3s;
  background: white; border-bottom: 1px solid var(--border);
}
.lc-header.lc-header-dark { background: rgba(10,15,30,0.95); border-bottom: 1px solid rgba(255,255,255,0.08); }
.lc-back { background: none; border: none; font-size: 20px; color: var(--text-mid); cursor: pointer; padding: 0; }
.lc-header-dark .lc-back { color: rgba(255,255,255,0.5); }
.lc-header-info { flex: 1; min-width: 0; }
.lc-header-title { font-size: 14px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-header-dark .lc-header-title { color: rgba(255,255,255,0.85); }
.lc-header-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-header-dark .lc-header-sub { color: rgba(255,255,255,0.4); }
.lc-lesson-dots { display: flex; gap: 3px; flex-shrink: 0; }
.lc-lesson-dot { width: 7px; height: 5px; border-radius: 3px; background: #D4D4D8; transition: all 0.3s; }
.lc-lesson-dot.active { width: 16px; background: var(--teal-dark); }
.lc-lesson-dot.done { background: rgba(42,124,111,0.45); }

/* Verse reference bar */
.lc-verse-bar { flex-shrink: 0; background: linear-gradient(135deg, #0A0F1E, #0D3B6E); cursor: pointer; transition: padding 0.3s; }
.lc-vb-header { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; }
.lc-verse-bar.open .lc-vb-header { padding: 12px 18px 4px; }
.lc-vb-left { display: flex; align-items: center; gap: 10px; }
.lc-vb-ref { color: #C4973B; font-size: 13px; font-weight: 600; }
.lc-vb-hint { color: rgba(255,255,255,0.3); font-size: 11px; }
.lc-vb-chevron { color: rgba(255,255,255,0.35); font-size: 14px; transition: transform 0.3s; }
.lc-vb-chevron.open { transform: rotate(180deg); }
.lc-vb-content { padding: 0 18px 14px; }
.lc-vb-arabic { font-family: 'Amiri', serif; font-size: 21px; color: white; direction: rtl; text-align: right; line-height: 1.9; margin: 8px 0 10px; }
.lc-vb-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(196,151,59,0.2), transparent); margin-bottom: 8px; }
.lc-vb-translation { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0 0 10px; }

/* Step dots */
.lc-dots-wrap { flex-shrink: 0; padding: 10px 0 6px; background: var(--bg-landing); }
.lc-dots { display: flex; justify-content: center; gap: 5px; }
.lc-dot { width: 6px; height: 5px; border-radius: 3px; background: #D4D4D8; transition: all 0.3s; }
.lc-dot.active { width: 18px; background: var(--teal-dark); }
.lc-dot.done { background: rgba(42,124,111,0.6); }

/* Card area */
.lc-card-area { flex: 1; overflow: hidden; position: relative; transition: background 0.4s; }
.lc-area-dark { background: linear-gradient(180deg, #0A0F1E 0%, #0F2044 50%, #0D3B6E 100%); }
.lc-area-light { background: var(--bg-landing); }
.lc-card-wrap { height: 100%; transition: transform 0.25s ease-out; }

/* Bottom nav */
.lc-bottom { flex-shrink: 0; padding: 6px 16px 10px; background: var(--bg-landing); transition: background 0.3s; }
.lc-bottom.lc-bottom-dark { background: transparent; padding-top: 0; padding-bottom: 8px; }
.lc-gold-btn {
  width: 100%; background: #C4973B; color: white; border: none; border-radius: 14px;
  padding: 11px 0; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 0; font-family: inherit;
}
.lc-nav-row { display: flex; justify-content: space-between; align-items: center; }
.lc-nav-prev { font-size: 13px; background: none; border: none; font-weight: 500; cursor: pointer; color: var(--text-muted); padding: 4px 0; font-family: inherit; }
.lc-bottom-dark .lc-nav-prev { color: rgba(255,255,255,0.5); }
.lc-nav-counter { font-size: 11px; color: #bbb; }
.lc-bottom-dark .lc-nav-counter { color: rgba(255,255,255,0.25); }
.lc-nav-next { font-size: 14px; background: none; border: none; font-weight: 600; cursor: pointer; color: var(--teal-dark); padding: 6px 0; font-family: inherit; }

/* Audio button (shared) */
.lc-audio-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.4); border-radius: 24px;
  padding: 10px 24px; color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
}
.lc-audio-btn.playing { border-color: #C4973B; color: #C4973B; }
.lc-audio-dark { border-radius: 20px; padding: 5px 14px; font-size: 11px; }

/* ── Card: Verse ── */
.lc-card-verse {
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 24px; text-align: center;
}
.lc-verse-ref { color: #C4973B; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 28px; }
.lc-verse-arabic { font-family: 'Amiri', serif; font-size: 28px; color: white; direction: rtl; line-height: 2.1; margin-bottom: 24px; }
.lc-verse-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(196,151,59,0.33), transparent); margin: 0 50px 20px; }
.lc-verse-translation { font-size: 15px; font-style: italic; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 330px; margin: 0 auto 28px; }

/* Gold CTA inline in verse card */
.lc-gold-inline {
  margin-top: auto; border-radius: 16px; padding: 13px 0;
}

/* ── Cards 2+: white card wrapper ── */
.lc-card-outer { height: 100%; padding: 6px 14px 10px; }
.lc-card-white {
  height: 100%; background: white; border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; overflow: hidden;
}

/* Shared card label */
.lc-card-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px; }
.lc-label-teal { color: var(--teal-dark); }
.lc-label-gold { color: #C4973B; }

/* Shared card footer link */
.lc-card-footer-link { margin-top: auto; text-align: center; padding: 12px 0; cursor: pointer; border-top: 1px solid var(--border); }
.lc-card-footer-link span { font-size: 14px; color: var(--teal-dark); font-weight: 600; }

/* ── Card: Insight ── */
.lc-insight-body { flex: 1; display: flex; flex-direction: column; padding: 28px 24px; }
.lc-insight-quote { border-left: 3px solid var(--teal-dark); padding-left: 18px; margin-bottom: 24px; }
.lc-insight-quote-dark { font-size: 21px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.lc-insight-quote-teal { font-size: 21px; font-weight: 700; color: var(--teal-dark); line-height: 1.4; margin-top: 6px; }
.lc-insight-divider { height: 2px; width: 40px; background: var(--teal-dark); margin-bottom: 20px; border-radius: 1px; }
.lc-insight-text { font-size: 15px; color: var(--text-mid); line-height: 1.75; }

/* ── Card: Konteks ── */
.lc-konteks-body { flex: 1; display: flex; flex-direction: column; padding: 28px 24px; overflow-y: auto; }
.lc-konteks-text { font-size: 16px; color: var(--text-dark); line-height: 1.7; margin-bottom: 20px; }
.lc-tafsir-ringkas {
  background: #FAFAF5; border: 1px solid rgba(196,151,59,0.13); border-radius: 14px;
  padding: 16px 18px; border-left: 3px solid #C4973B; margin-bottom: 16px;
}
.lc-tafsir-ringkas-label { font-size: 12px; color: #C4973B; font-weight: 600; margin-bottom: 8px; }
.lc-tafsir-ringkas-text { font-size: 14px; color: var(--text-mid); line-height: 1.65; font-style: italic; }
.lc-konteks-note { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Card: Kata Kunci (dark interior) ── */
.lc-card-kk-wrap { background: linear-gradient(135deg, #0A0F1E, #0D3B6E) !important; }
.lc-kk-body { flex: 1; display: flex; flex-direction: column; }
.lc-kk-header { padding: 24px 22px 0; }
.lc-kk-word { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 22px; }
.lc-kk-word-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lc-kk-arabic { font-family: 'Amiri', serif; font-size: 28px; color: #C4973B; direction: rtl; line-height: 1.2; }
.lc-kk-trans { font-size: 13px; font-weight: 700; color: white; }
.lc-kk-meaning { font-size: 11px; color: #C4973B; }
.lc-kk-explain { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.lc-kk-explain em { color: rgba(255,255,255,0.85); }
.lc-kk-explain strong { color: white; }
.lc-kk-divider { height: 1px; margin: 0 22px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }

/* ── Card: Doa ── */
.lc-doa-body { flex: 1; display: flex; flex-direction: column; padding: 28px 24px; overflow-y: auto; }
.lc-doa-intro { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.lc-doa-verse-card {
  background: linear-gradient(135deg, #0A0F1E, #0D3B6E); border-radius: 16px;
  padding: 20px 18px; margin-bottom: 16px; text-align: center;
}
.lc-doa-arabic { font-family: 'Amiri', serif; font-size: 24px; color: white; direction: rtl; line-height: 2.0; margin-bottom: 12px; }
.lc-doa-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(196,151,59,0.27), transparent); margin: 0 24px 10px; }
.lc-doa-translation { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.8); line-height: 1.6; }
.lc-doa-ref { color: #C4973B; font-size: 12px; font-weight: 600; margin-top: 8px; }
.lc-doa-audio-wrap { margin-top: 12px; }
.lc-tip-box { background: var(--teal-light, #EDF7F6); border-radius: 12px; padding: 12px 14px; border-left: 3px solid var(--teal-dark); }
.lc-tip-text { font-size: 13px; color: var(--text-dark); line-height: 1.55; }

/* ── Card: Renungan ── */
.lc-card-renungan-bg { background: linear-gradient(180deg, white 0%, rgba(42,124,111,0.024) 100%) !important; }
.lc-renungan-body { flex: 1; display: flex; flex-direction: column; padding: 28px 24px; }
.lc-renungan-scenario { background: #FAFAF5; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid rgba(196,151,59,0.13); border-left: 3px solid rgba(196,151,59,0.4); }
.lc-renungan-scenario-text { font-size: 14px; color: var(--text-mid); line-height: 1.65; font-style: italic; }
.lc-renungan-divider { height: 1px; background: var(--border); margin-bottom: 18px; }
.lc-renungan-q1 { font-size: 18px; color: var(--text-dark); line-height: 1.5; font-style: italic; margin-bottom: 10px; }
.lc-renungan-q2 { font-size: 18px; color: var(--teal-dark); line-height: 1.5; font-style: italic; margin-bottom: 16px; }
.lc-renungan-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.lc-nuri-btn {
  background: none; color: var(--teal-dark); border: 1.5px solid var(--teal-dark);
  border-radius: 14px; padding: 11px 0; font-size: 13px; cursor: pointer;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}

/* ── Card: Actions ── */
.lc-actions-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; }
.lc-actions-done { text-align: center; margin-bottom: 32px; }
.lc-actions-emoji { font-size: 40px; margin-bottom: 12px; }
.lc-actions-title { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.lc-actions-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.lc-actions-btns { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin: 0 auto; width: 100%; }
.lc-btn-primary {
  background: var(--teal-dark); color: white; border: none; border-radius: 14px;
  padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.lc-btn-outline {
  background: white; color: var(--teal-dark); border: 1.5px solid var(--teal-dark);
  border-radius: 14px; padding: 11px 0; font-size: 13px; cursor: pointer; font-family: inherit;
}
.lc-btn-row { display: flex; gap: 10px; }
.lc-btn-gray {
  flex: 1; background: white; color: var(--text-mid); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 10px 0; font-size: 12px; cursor: pointer; font-family: inherit;
}

/* Loading */
.lc-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; flex-direction: column; gap: 12px; color: var(--text-muted); font-size: 14px;
}
.lc-loading-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top: 3px solid var(--teal-dark); border-radius: 50%;
  animation: lcSpin 0.8s linear infinite;
}

/* Bismillah on verse card */
.lc-verse-bismillah {
  font-family: 'Amiri', serif; font-size: 18px; color: #C4973B;
  direction: rtl; text-align: center; margin-bottom: 20px; opacity: 0.85;
}

/* Belajar view loading state */
.belajar-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 12px;
}
.belajar-loading-icon {
  font-size: 2rem;
  animation: belajarLoadBounce 1.2s ease-in-out infinite;
}
.belajar-loading-text {
  font-size: 0.875rem; color: var(--text-muted);
}
@keyframes belajarLoadBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Swipe animations */
@keyframes lcCardInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lcCardInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lcSpin { to { transform: rotate(360deg); } }

/* ── Lesson Bottom Sheet (Tafsir / Asbabun Nuzul) ── */
.lc-sheet-overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.lc-sheet-overlay.visible { opacity: 1; pointer-events: auto; }

.lc-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 51;
  background: white; border-radius: 20px 20px 0 0;
  max-height: 85%; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.lc-sheet.visible { transform: translateY(0); }

.lc-sheet-header {
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.lc-sheet-header-info {}
.lc-sheet-ref { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.lc-sheet-type { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lc-sheet-close {
  background: none; border: none; font-size: 20px; color: var(--text-muted);
  cursor: pointer; padding: 4px 8px; font-family: inherit;
}

.lc-sheet-body { flex: 1; overflow: auto; padding: 12px 0; -webkit-overflow-scrolling: touch; }
.lc-sheet-intro { padding: 4px 20px 16px; font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* Tafsir accordion tabs */
.lc-sheet-tab { margin: 0 16px 8px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lc-sheet-tab-header {
  padding: 14px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: white; transition: background 0.2s;
}
.lc-sheet-tab-header.open { background: #FAFAFA; }
.lc-sheet-tab-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.lc-sheet-tab-chevron {
  color: var(--text-muted); font-size: 14px;
  transition: transform 0.3s; display: inline-block;
}
.lc-sheet-tab-header.open .lc-sheet-tab-chevron { transform: rotate(180deg); }
.lc-sheet-tab-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: #FAFAFA; border-top: 1px solid var(--border);
}
.lc-sheet-tab-content.open { max-height: 800px; }
.lc-sheet-tab-text { padding: 12px 16px 16px; font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* Asbabun nuzul direct text */
.lc-sheet-asbabun { padding: 8px 20px; }
.lc-sheet-asbabun p { font-size: 15px; color: var(--text-dark); line-height: 1.75; margin-bottom: 16px; }
.lc-sheet-asbabun-source {
  font-size: 12px; color: var(--text-muted); font-style: italic;
  border-top: 1px solid var(--border); padding-top: 14px;
}

