/* ==========================================================================
   HAFALYUK - Modern Design System (Mobile-First Murojaah Web App)
   Color Palette: Emerald Green (#15803D / #16A34A), Soft White, Rich Slate
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=Scheherazade+New:wght@400;700&display=swap');

:root {
  /* Brand Primary: Mature Heritage Emerald */
  --primary: #047857;
  --primary-hover: #065F46;
  --primary-active: #064E3B;
  --primary-light: #F0FDF4;
  --primary-border: #E2E8F0;
  --accent: #10B981;
  --accent-gold: #D97706;
  --accent-gold-light: #FEF3C7;

  /* Surfaces & Canvas */
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface-muted: #F1F5F9;

  /* Text & Contrast */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Semantic Quran Status */
  --color-mutqin: #047857;
  --color-lancar: #059669;
  --color-cukup: #D97706;
  --color-belum: #E11D48;
  --color-lupa: #DC2626;

  /* Layered Natural Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);

  /* Disciplined 4-Tier Radius System */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography Scales */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-quran: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;

  /* Quran Ayah Font Scale System */
  --quran-font-size: 2.15rem;
  --quran-line-height: 2.3;
  --latin-font-size: 0.98rem;
  --translation-font-size: 0.88rem;
}

html[data-font-size="xsmall"], body[data-font-size="xsmall"] {
  --quran-font-size: 1.35rem;
  --quran-line-height: 1.95;
  --latin-font-size: 0.82rem;
  --translation-font-size: 0.76rem;
}
html[data-font-size="small"], body[data-font-size="small"] {
  --quran-font-size: 1.75rem;
  --quran-line-height: 2.1;
  --latin-font-size: 0.88rem;
  --translation-font-size: 0.80rem;
}
html[data-font-size="medium"], body[data-font-size="medium"] {
  --quran-font-size: 2.15rem;
  --quran-line-height: 2.3;
  --latin-font-size: 0.98rem;
  --translation-font-size: 0.88rem;
}
html[data-font-size="large"], body[data-font-size="large"] {
  --quran-font-size: 2.65rem;
  --quran-line-height: 2.4;
  --latin-font-size: 1.10rem;
  --translation-font-size: 0.96rem;
}
html[data-font-size="xlarge"], body[data-font-size="xlarge"] {
  --quran-font-size: 3.20rem;
  --quran-line-height: 2.5;
  --latin-font-size: 1.25rem;
  --translation-font-size: 1.05rem;
}

:root[data-theme="dark"] {
  --primary: #10B981;
  --primary-hover: #34D399;
  --primary-active: #059669;
  --primary-light: rgba(16, 185, 129, 0.14);
  --primary-border: #334155;
  --accent: #34D399;
  --accent-gold: #F59E0B;
  --accent-gold-light: rgba(245, 158, 11, 0.15);

  --bg-app: #0B1120;
  --bg-card: #1E293B;
  --bg-surface-muted: #152033;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.55);
}



.dashboard-hero {
  background-color: var(--bg-card) !important;
  padding: 20px;
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.3s ease;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-border);
}

.greeting-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.user-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.target-item {
  background-color: var(--bg-app);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #E2E8F0;
}

.stat-card-streak {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
  border-color: #FDE68A;
}

.stat-card-streak .streak-title, .stat-card-streak .streak-sub {
  color: #B45309;
}

.stat-card-streak .stat-number {
  color: #D97706;
}

.stat-card-progress {
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  border-color: #A7F3D0;
}

.stat-card-progress .progress-title, .stat-card-progress .progress-sub {
  color: #047857;
}

.stat-card-progress .stat-number {
  color: #059669;
}

.stat-card-progress .progress-bar-fill {
  background-color: #10B981;
}

[data-theme="dark"] .dashboard-hero {
  background-color: #1E293B !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .user-profile-header div {
  color: #F8FAFC !important;
}

[data-theme="dark"] .greeting-text {
  color: #94A3B8 !important;
}

[data-theme="dark"] .user-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .section-card {
  background-color: #1E293B !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .section-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .target-item {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .target-item span, [data-theme="dark"] .target-info span {
  color: #F8FAFC !important;
}

[data-theme="dark"] .stat-card-streak {
  background: linear-gradient(135deg, #2A2015 0%, #1E293B 100%) !important;
  border-color: #D97706 !important;
}

[data-theme="dark"] .stat-card-streak .streak-title,
[data-theme="dark"] .stat-card-streak .streak-sub {
  color: #FBBF24 !important;
}

[data-theme="dark"] .stat-card-streak .stat-number {
  color: #F59E0B !important;
}

[data-theme="dark"] .stat-card-progress {
  background: linear-gradient(135deg, #064E3B 0%, #1E293B 100%) !important;
  border-color: #059669 !important;
}

[data-theme="dark"] .stat-card-progress .progress-title,
[data-theme="dark"] .stat-card-progress .progress-sub {
  color: #A7F3D0 !important;
}

[data-theme="dark"] .stat-card-progress .stat-number {
  color: #34D399 !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* App Shell Container (Responsive Mobile & Desktop) */
.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--bg-app);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 85px; /* space for mobile bottom nav */
  overflow-x: clip;
  box-sizing: border-box;
}

/* Desktop Top Navigation Bar (Hidden on Mobile) */
.desktop-nav {
  display: none;
}

/* Header Navbar */
.app-header {
  background-color: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #F1F5F9;
}

.app-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-icon {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Status Bar & Streak Card */
.dashboard-hero {
  padding: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  background: #E2E8F0;
}

.greeting-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Stat Cards Row */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-val-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.streak-flame {
  font-size: 1.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #E2E8F0;
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Primary Target Section */
.section-card {
  background: var(--bg-card);
  margin: 0 20px 20px 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.target-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: #F8FAFC;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.target-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-small-ulangi {
  background: #10B981;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-small-ulangi:hover {
  background: #059669;
  color: #FFFFFF;
}

/* Big Green Primary CTA Button */
.btn-primary-murojaah {
  width: 100%;
  height: 52px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary-murojaah:hover {
  background-color: var(--primary-hover);
}

.btn-primary-murojaah:active {
  transform: scale(0.98);
}

/* Surah Cards & Lists */
.surah-list-group {
  padding: 0 20px;
}

.surah-row-card {
  background: var(--bg-card);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.1s;
}

.surah-row-card:hover {
  border-color: var(--primary-border);
}

.surah-number-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.surah-meta {
  flex-grow: 1;
  margin: 0 14px;
}

.surah-name-latin {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.surah-submeta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.surah-name-arabic {
  font-family: var(--font-quran);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  direction: rtl;
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-mutqin { background: #DCFCE7; color: #15803D; }
.badge-lancar { background: #F0FDF4; color: #16A34A; }
.badge-cukup { background: #FEF3C7; color: #D97706; }
.badge-belum { background: #FEE2E2; color: #DC2626; }
.badge-none { background: #F1F5F9; color: #64748B; }

/* Ayah View (Halaman Belajar) */
.ayah-header-card {
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid #F1F5F9;
}

.ayah-surah-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.ayah-surah-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ayah-box {
  background: var(--bg-card);
  margin: 16px 20px;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.arabic-text {
  font-family: var(--font-quran);
  font-size: var(--quran-font-size, 2.2rem);
  line-height: var(--quran-line-height, 2.2);
  color: #0F172A;
  direction: rtl;
  margin-bottom: 16px;
  font-weight: 700;
  transition: font-size 0.2s ease, line-height 0.2s ease;
}

.latin-text {
  font-size: var(--latin-font-size, 1rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  transition: font-size 0.2s ease;
}

.translation-text {
  font-size: var(--translation-font-size, 0.9rem);
  color: var(--text-muted);
  font-style: italic;
  transition: font-size 0.2s ease;
}

/* Floating Audio Player Toolbar */
.ayah-player-toolbar {
  background: var(--bg-card);
  padding: 16px 20px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-play-big {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

/* Rating Smiley Options */
.rating-option-card {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid #F1F5F9;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-option-card:hover, .rating-option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.rating-emoji {
  font-size: 2rem;
}

.rating-title {
  font-size: 1rem;
  font-weight: 700;
}

.rating-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ====== FITUR SOROT KATA PER KATA (KARAOKE HIGHLIGHT) ====== */
.quran-word {
  display: inline-block;
  padding: 2px 7px;
  margin: 1px 3px;
  border-radius: 10px;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  position: relative;
}
.quran-word:hover {
  background: rgba(16, 185, 129, 0.15);
}
.quran-word.word-active-highlight {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.75), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transform: scale(1.08) translateY(-2px);
  z-index: 5;
}
[data-theme="dark"] .quran-word.word-active-highlight {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
  color: #0F172A !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.85), 0 0 45px rgba(245, 158, 11, 0.45) !important;
  transform: scale(1.09) translateY(-2px);
}
.quran-ayah-symbol {
  display: inline-block;
  margin-left: 6px;
  color: #10B981;
  font-weight: 800;
}
.latin-word {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 6px;
  transition: all 0.18s ease;
}
.latin-word.word-active-highlight {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #D97706 !important;
  font-weight: 800 !important;
  border-bottom: 2.5px solid #F59E0B !important;
}
[data-theme="dark"] .latin-word.word-active-highlight {
  background: rgba(251, 191, 36, 0.25) !important;
  color: #FCD34D !important;
  font-weight: 800 !important;
  border-bottom: 2.5px solid #FBBF24 !important;
}

/* Bottom Navigation Bar (5 Tabs) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 10px 0;
  z-index: 9990;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  width: 20%;
  transition: color 0.2s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke: var(--primary);
}

/* ==========================================================================
   DARK MODE OVERRIDES (EYE COMFORT - AUTHORITATIVE AT THE BOTTOM)
   ========================================================================== */
[data-theme="dark"] body {
  background-color: #020617 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .app-container {
  background-color: #0F172A !important;
}

[data-theme="dark"] .app-header {
  background-color: #1E293B !important;
  border-bottom-color: #334155 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .app-header svg {
  stroke: #F8FAFC !important;
}

[data-theme="dark"] .bottom-nav {
  background: #1E293B !important;
  border-top-color: #334155 !important;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .nav-item {
  color: #94A3B8 !important;
}

[data-theme="dark"] .nav-item.active {
  color: #10B981 !important;
}

[data-theme="dark"] #screen-dashboard,
[data-theme="dark"] .dashboard-hero {
  background: #1E293B !important;
  background-image: none !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .user-profile-header div {
  color: #F8FAFC !important;
}

[data-theme="dark"] .greeting-text {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .user-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .stat-card-streak {
  background: linear-gradient(135deg, #2A2015 0%, #1E293B 100%) !important;
  border-color: #D97706 !important;
}

[data-theme="dark"] .stat-card-streak .streak-title,
[data-theme="dark"] .stat-card-streak .streak-sub {
  color: #FBBF24 !important;
}

[data-theme="dark"] .stat-card-streak .stat-number {
  color: #F59E0B !important;
}

[data-theme="dark"] .stat-card-progress {
  background: linear-gradient(135deg, #064E3B 0%, #1E293B 100%) !important;
  border-color: #059669 !important;
}

[data-theme="dark"] .stat-card-progress .progress-title,
[data-theme="dark"] .stat-card-progress .progress-sub {
  color: #A7F3D0 !important;
}

[data-theme="dark"] .stat-card-progress .stat-number {
  color: #34D399 !important;
}

[data-theme="dark"] .surah-row-card {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .surah-name-latin {
  color: #F8FAFC !important;
}

[data-theme="dark"] .arabic-text {
  color: #F8FAFC !important;
}

[data-theme="dark"] .ayah-box {
  background: #1E293B !important;
  border-color: #059669 !important;
}

[data-theme="dark"] .ayah-player-toolbar {
  background: #1E293B !important;
  border-top-color: #334155 !important;
}

[data-theme="dark"] #select-start-ayah {
  background: #0F172A !important;
  color: #10B981 !important;
  border-color: #059669 !important;
}

[data-theme="dark"] select {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

[data-theme="dark"] input[type="text"], 
[data-theme="dark"] input[type="search"] {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .section-card {
  background-color: #1E293B !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .section-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .target-item {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .target-item span, 
[data-theme="dark"] .target-info span {
  color: #F8FAFC !important;
}

[data-theme="dark"] .landing-hero {
  background: linear-gradient(180deg, #064E3B 0%, #1E293B 100%) !important;
  border-bottom-color: #059669 !important;
}

[data-theme="dark"] .landing-title {
  color: #6EE7B7 !important;
}

[data-theme="dark"] .landing-subtitle {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .btn-google-premium {
  background: #1E293B !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #custom-modal-card {
  background: #1E293B !important;
  border-color: #334155 !important;
}

[data-theme="dark"] #modal-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] #modal-message {
  color: #94A3B8 !important;
}

[data-theme="dark"] #murojaah-picker-backdrop > div {
  background: #1E293B !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] #murojaah-picker-title {
  color: #F8FAFC !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT SYSTEM: TABLET & DESKTOP (>= 768px & >= 1024px)
   Adapts layout smoothly from smartphone screens to desktop monitors
   ========================================================================== */

.surah-page-container,
.murojaah-page-container,
.progress-page-container,
.settings-page-container,
.admin-page-container {
  padding: 16px 20px;
}

.desktop-page-title-row {
  display: none;
}

.surah-controls-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.surah-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.murojaah-mode-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.murojaah-card {
  background: var(--bg-card);
  border: 1px solid #F1F5F9;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.murojaah-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.murojaah-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.murojaah-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.murojaah-arrow {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
}

.murojaah-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.murojaah-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.progress-surah-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-surah-card {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
}

.tab-pill {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.settings-desktop-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card-full {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.user-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--primary-border);
  margin-bottom: 12px;
}

.profile-name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
}

.profile-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-options-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-option-item {
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}

.settings-option-item:hover {
  background: var(--primary-light);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-main-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 20px 20px;
}

.dashboard-col-left,
.dashboard-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   BREAKPOINT: TABLET & DESKTOP (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  body {
    background-color: #E2E8F0;
    padding: 20px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  [data-theme="dark"] body {
    background-color: #020617;
  }

  .app-container {
    max-width: 1220px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    min-height: auto;
    padding-bottom: 20px;
  }

  [data-theme="dark"] .app-container {
    border-color: #1E293B;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
  }

  /* Desktop Top Navigation Bar */
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px;
    background: var(--bg-card);
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  [data-theme="dark"] .desktop-nav {
    border-bottom-color: #334155;
  }

  .desktop-nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .desktop-nav-brand .brand-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
  }

  .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .desktop-nav-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
  }

  .desktop-nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
  }

  .desktop-nav-item.active {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
  }

  .desktop-nav-item.active svg {
    stroke: #FFFFFF;
  }

  .btn-desktop-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: #F1F5F9;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
  }

  .btn-desktop-admin:hover,
  .btn-desktop-admin.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
  }

  /* Hide Mobile Specific Navigation on Desktop */
  .bottom-nav {
    display: none !important;
  }

  .mobile-only-header {
    display: none !important;
  }

  .desktop-page-title-row {
    display: block;
    margin-bottom: 24px;
  }

  /* Desktop Dashboard Layout */
  .dashboard-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 36px !important;
    gap: 24px;
    border-bottom: 1px solid #E2E8F0;
  }

  [data-theme="dark"] .dashboard-hero {
    border-bottom-color: #334155;
  }

  .dashboard-hero .user-profile-header {
    margin-bottom: 0;
  }

  .dashboard-hero .user-avatar {
    width: 64px;
    height: 64px;
  }

  .dashboard-hero .user-name {
    font-size: 1.4rem;
  }

  .dashboard-hero .stats-grid {
    margin-top: 0;
    grid-template-columns: 160px 240px;
    gap: 14px;
    flex-shrink: 0;
  }

  .dashboard-main-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 24px !important;
    padding: 24px 36px 36px 36px !important;
    align-items: start !important;
  }

  .dashboard-col-left,
  .dashboard-col-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Desktop Surah List */
  .surah-page-container,
  .murojaah-page-container,
  .progress-page-container,
  .settings-page-container,
  .admin-page-container {
    padding: 28px 36px !important;
  }

  .surah-controls-row {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .btn-inline-murojaah {
    width: auto !important;
    padding: 0 28px !important;
    height: 50px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  .surah-list-grid,
  .surah-list-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding: 0 !important;
  }

  .surah-row-card {
    margin-bottom: 0 !important;
  }

  /* Desktop Murojaah Modes */
  .murojaah-mode-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  /* Desktop Progress Grid */
  .progress-surah-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Desktop Settings Grid */
  .settings-desktop-grid {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 28px !important;
    align-items: start !important;
  }

  /* Desktop Admin Stats Grid */
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }
}

/* ==========================================================================
   BREAKPOINT: WIDE DESKTOP (min-width: 1080px)
   ========================================================================== */
@media (min-width: 1080px) {
  .app-container {
    max-width: 1220px;
  }

  .account-screen-modern-wrapper {
    max-width: 960px;
  }

  .surah-list-grid,
  .surah-list-group {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .murojaah-mode-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Premium Lightweight Desktop Bento Grid for Adult Dashboard */
  #screen-dashboard-dewasa,
  #screen-dashboard {
    min-height: auto !important;
    padding-bottom: 0 !important;
    background: #F3F6F5 !important;
  }

  [data-theme="dark"] #screen-dashboard-dewasa,
  [data-theme="dark"] #screen-dashboard {
    background: #0F172A !important;
  }

  .app-container {
    padding-bottom: 0 !important;
  }

  .dewasa-dash-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 20px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .dewasa-dash-grid .dash-dewasa-top-header {
    grid-column: 1 / -1;
    border-radius: 20px;
    padding: 18px 26px;
    box-shadow: 0 10px 24px -8px rgba(6, 78, 59, 0.25);
  }

  .dewasa-dash-grid .dash-dewasa-brand-title-box {
    display: none;
  }

  .dewasa-dash-grid .dash-dewasa-brand-row {
    justify-content: flex-end;
    margin-bottom: -38px;
    position: relative;
    z-index: 3;
  }

  .dewasa-dash-grid .widget-jadwal-salat,
  .dewasa-dash-grid .widget-lanjutkan-hafalan,
  .dewasa-dash-grid .widget-progres-dewasa,
  .dewasa-dash-grid .quick-actions-dewasa-grid,
  .dewasa-dash-grid .widget-hadis-dewasa,
  .dewasa-dash-grid .widget-hafalan-terakhir {
    margin: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  }

  .dewasa-dash-grid .widget-lanjutkan-hafalan {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 20px;
  }

  .dewasa-dash-grid .widget-jadwal-salat {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%) !important;
    border: 1.5px solid #A7F3D0 !important;
  }

  [data-theme="dark"] .dewasa-dash-grid .widget-jadwal-salat {
    background: linear-gradient(135deg, #064E3B 0%, #1E293B 100%) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
  }

  .dewasa-dash-grid .quick-actions-dewasa-grid {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 12px;
    box-shadow: none !important;
  }

  .dewasa-dash-grid .qa-dewasa-card {
    padding: 14px 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
  }

  .dewasa-dash-grid .qa-dewasa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .dewasa-dash-grid .widget-progres-dewasa {
    grid-column: 1;
    grid-row: 4;
  }

  .dewasa-dash-grid .widget-hafalan-terakhir {
    grid-column: 2;
    grid-row: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .dewasa-dash-grid .widget-hadis-dewasa {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  /* Desktop Layout for Al-Qur'an List (/alquran) */
  #screen-quran-list-dewasa {
    background: #F3F6F5 !important;
    min-height: auto !important;
    padding-bottom: 20px !important;
  }

  [data-theme="dark"] #screen-quran-list-dewasa {
    background: #0F172A !important;
  }

  #screen-quran-list-dewasa .dewasa-qlist-header {
    max-width: 1132px;
    margin: 18px auto 0;
    border-radius: 18px;
    padding: 14px 22px;
    position: static;
  }

  #screen-quran-list-dewasa .dewasa-qlist-theme-btn {
    display: none;
  }

  .dewasa-qlist-container {
    max-width: 1180px !important;
    padding: 16px 24px 20px !important;
  }

  .dewasa-30juz-grid:not([style*="display: none"]),
  .dewasa-114surah-grid:not([style*="display: none"]) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* Unified Desktop Proportions for Murojaah, Progress, Account, Checkout */
  #screen-murojaah,
  #screen-progress-dewasa,
  #screen-account,
  #screen-checkout {
    background: #F3F6F5 !important;
    min-height: auto !important;
    padding-bottom: 20px !important;
  }

  [data-theme="dark"] #screen-murojaah,
  [data-theme="dark"] #screen-progress-dewasa,
  [data-theme="dark"] #screen-account,
  [data-theme="dark"] #screen-checkout {
    background: #0F172A !important;
  }

  .murojaah-desktop-container {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 18px 24px 20px !important;
  }

  .dewasa-prog-container {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 18px 24px 20px !important;
  }

  #dewasa-prog-view-summary:not([style*="display: none"]) {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr;
    gap: 14px;
    align-items: stretch;
  }

  #dewasa-prog-view-summary .dewasa-prog-donut-card,
  #dewasa-prog-view-summary > .dewasa-prog-card {
    margin-bottom: 0 !important;
  }

  #dewasa-prog-view-summary .dewasa-prog-two-col {
    grid-column: 1 / -1;
    align-items: start;
  }

  .account-screen-modern-wrapper {
    max-width: 1180px !important;
    background: transparent !important;
    min-height: auto !important;
    padding: 18px 24px 20px !important;
    display: grid !important;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
    align-items: start;
  }

  .account-header-arch-ornament,
  .account-top-header-bar {
    display: none !important;
  }

  .account-profile-card-modern {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
  }

  .account-menu-card-modern {
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
  }

  #account-inline-settings {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0 !important;
  }

  /* Desktop 2-Column Layout for Checkout (/checkout) */
  .checkout-header-bar {
    max-width: 1132px;
    margin: 18px auto 0;
    border-radius: 18px;
    padding: 14px 22px !important;
  }

  .checkout-header-inner {
    max-width: 100% !important;
  }

  .checkout-desktop-grid {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 16px 24px 24px !important;
    display: grid !important;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px !important;
    align-items: start;
  }

  .checkout-desktop-grid > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .checkout-desktop-grid > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  #checkout-form-card,
  #checkout-qris-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Dark Mode Overrides for Responsive Elements */
[data-theme="dark"] .murojaah-card {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .murojaah-card:hover {
  border-color: #10B981;
}
[data-theme="dark"] .progress-surah-card {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .profile-card-full {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .settings-options-card {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .settings-option-item {
  border-bottom-color: #334155;
}
[data-theme="dark"] .settings-option-item:hover {
  background: #064E3B;
}
[data-theme="dark"] .tab-pill {
  background: #1E293B;
  border-color: #334155;
  color: #94A3B8;
}
[data-theme="dark"] .btn-desktop-admin {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}
[data-theme="dark"] .yukii-tips-box {
  background: #1E293B !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .yukii-tips-box div {
  color: #FDE68A !important;
}

/* ====== FITUR PUTAR BERURUTAN (SEQUENTIAL PLAY) ====== */
.btn-seq-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
  border: 1px solid #34D399 !important;
}

@keyframes pulse-seq-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.6);
  }
}

.pulse-seq-active {
  animation: pulse-seq-badge 2s infinite ease-in-out;
}



.landing-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border, #CBD5E1);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
  flex-shrink: 0;
}
.landing-theme-toggle:hover {
  transform: scale(1.08);
  border-color: #10B981;
}
.landing-theme-toggle:active {
  transform: scale(0.95);
}
[data-theme="dark"] .landing-theme-toggle {
  background: var(--bg-card);
  border-color: var(--card-border);
  color: #F8FAFC;
}
[data-theme="dark"] .lang-selector-pill {
  background: var(--bg-card);
  border-color: var(--card-border);
  color: #F8FAFC;
}
[data-theme="dark"] .role-avatar-circle {
  background: #0F172A;
  border-color: #334155;
}
[data-theme="dark"] .quick-role-card {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .quick-role-card:hover {
  border-color: #34D399;
}

[data-theme="dark"] .footer-mosque-img {
  content: url('/images/landing_footer_dark@2x.png');
}
[data-theme="dark"] .landing-hero-banner-img {
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .role-title {
  color: #F8FAFC !important;
}
[data-theme="dark"] .role-desc {
  color: #94A3B8 !important;
}
[data-theme="dark"] .btn-google-dark-pill {
  background: #064E3B;
  border: 1.5px solid #10B981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .landing-theme-toggle {
  background: #1E293B;
  border-color: #334155;
  color: #FDE047;
}
[data-theme="dark"] .lang-selector-pill {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

/* ==========================================================================
   HAFALYUK DUAL MODE (ANAK & ORANG DEWASA) MASTER DESIGN SYSTEM
   Strict implementation following the 5 approved final mockups.
   Mobile-First, Elegant Emerald & Gold, Zero Breaking Changes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESAIN 1: LANDING & PEMILIHAN KATEGORI ("Siapa Kamu?")
   Khusus Laman Ini: Selalu Posisi Terang (Light Mode Saja Tanpa Tombol Tema)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   REDESIGN LANDING PAGE: WELCOME & CATEGORY SELECTION
   -------------------------------------------------------------------------- */
.landing-welcome-block {
  text-align: center;
  padding: 8px 18px 4px 18px;
  flex-shrink: 0;
}

.landing-salam-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.18);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.landing-salam-ar {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #047857;
  direction: rtl;
}

.landing-salam-dot {
  color: #D4A53A;
  font-size: 0.7rem;
}

.landing-salam-id {
  font-size: 0.78rem;
  font-weight: 800;
  color: #064E3B;
  letter-spacing: 0.2px;
}

.landing-welcome-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #064E3B;
  margin: 4px 0 3px 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.landing-welcome-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: #475569;
  margin: 0 auto 8px auto;
  line-height: 1.4;
  max-width: 320px;
}

/* Benefits Section */
.landing-benefits-section {
  padding: 4px 16px 8px 16px;
  flex-shrink: 0;
}

.landing-benefits-header {
  text-align: center;
  margin-bottom: 10px;
}

.landing-benefits-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.landing-benefits-subtitle {
  font-size: 0.76rem;
  color: #64748B;
  margin: 0 auto;
  max-width: 350px;
  line-height: 1.35;
}

.landing-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.landing-benefit-item {
  background: #FFFFFF;
  border: 1.2px solid rgba(212, 165, 58, 0.28);
  border-radius: 14px;
  padding: 10px 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.1);
  border-color: rgba(4, 120, 87, 0.4);
}

.benefit-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon-box.emerald {
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
}

.benefit-icon-box.gold {
  background: rgba(212, 165, 58, 0.12);
  color: #B45309;
}

.benefit-text-box {
  flex: 1;
  min-width: 0;
}

.benefit-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.benefit-desc {
  font-size: 0.68rem;
  color: #64748B;
  margin: 0;
  line-height: 1.3;
}

/* Mode Selection Header */
.landing-mode-header {
  text-align: center;
  padding: 8px 16px 4px 16px;
  flex-shrink: 0;
}

.landing-mode-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.landing-mode-subtitle {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
}

.landing-cat-container,
[data-theme="dark"] #screen-landing.landing-cat-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background-color: #FAF5ED !important;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.75) 0%, rgba(250, 245, 237, 0.45) 50%, rgba(245, 236, 222, 0.7) 100%),
    url('/images/assets_dual/landing_bg_pattern.png?v=clean2') !important;
  background-repeat: repeat !important;
  background-size: auto, 120px 120px !important;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
}

#screen-landing .landing-cat-top-floats {
  display: none !important;
}

[data-theme="dark"] body:has(#screen-landing.active) {
  background: #FAF5ED !important;
}

[data-theme="dark"] #screen-landing .landing-cat-main-title {
  color: #064E3B !important;
  text-shadow: 0 1px 2px rgba(6, 78, 59, 0.08) !important;
}

[data-theme="dark"] #screen-landing .landing-cat-sub-title {
  color: #475569 !important;
}

[data-theme="dark"] #screen-landing .landing-cat-img-card {
  border: 1.5px solid rgba(217, 119, 6, 0.2) !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] #screen-landing .landing-legal-footer {
  color: #475569 !important;
}

[data-theme="dark"] #screen-landing .landing-legal-footer a {
  color: #047857 !important;
}

/* Global Unauthenticated Viewport Constraints (Mobile & Desktop) */
body.unauthenticated {
  min-height: 100vh;
  margin: 0;
}

@media (max-width: 480px) {
  body.unauthenticated {
    background: #FAF5ED !important;
    padding: 0 !important;
  }
  [data-theme="dark"] body.unauthenticated {
    background: #0B1329 !important;
  }
  body.unauthenticated .app-container,
  body:has(#screen-landing.active) .app-container,
  body:has(#screen-login.active) .app-container {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }
  .landing-cat-container.active,
  #screen-login.active {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .landing-cat-mosque-footer,
  .login-rehal-footer {
    margin-top: auto !important;
    width: 100% !important;
  }
}

@media (min-width: 481px) {
  body.unauthenticated,
  body:has(#screen-landing.active),
  body:has(#screen-login.active) {
    background: #EDE8DE !important;
    padding: 24px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
  }
  html[data-theme="dark"] body,
  html[data-theme="dark"] body.unauthenticated,
  [data-theme="dark"] body:has(#screen-landing.active),
  [data-theme="dark"] body:has(#screen-login.active) {
    background: #060B14 !important;
  }
  body.unauthenticated .app-container,
  body:has(#screen-landing.active) .app-container,
  body:has(#screen-login.active) .app-container {
    max-width: 720px !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    min-height: unset !important;
  }
  .landing-cat-container,
  #screen-login {
    border-radius: 28px !important;
    min-height: unset !important;
    height: auto !important;
    border: 2px solid rgba(217, 119, 6, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  [data-theme="dark"] #screen-login {
    border: 2px solid rgba(245, 158, 11, 0.28) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  .landing-cat-mosque-footer {
    margin-top: 14px !important;
  }
  .login-rehal-footer {
    margin-top: 10px !important;
  }
}

.landing-cat-arch-header {
  width: 100%;
  position: relative;
  line-height: 0;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.landing-cat-arch-img {
  width: 100%;
  height: auto;
  display: block;
}
.landing-arch-logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  background: radial-gradient(ellipse 58% 85% at 50% 48%, #FDF8EE 62%, rgba(253, 248, 238, 0.85) 78%, rgba(253, 248, 238, 0) 100%);
  pointer-events: none;
}
.landing-arch-new-logo {
  height: 68px;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(6, 78, 59, 0.14));
}
.login-arch-logo-wrap {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  pointer-events: none;
  z-index: 3;
}
.login-arch-new-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(6, 78, 59, 0.16));
}

/* Light / Dark Mode Dual Assets Switcher */
.arch-dark,
.mosque-dark,
.rehal-dark {
  display: none !important;
}
.arch-light,
.mosque-light,
.rehal-light {
  display: block !important;
}

[data-theme="dark"] .arch-light,
[data-theme="dark"] .mosque-light,
[data-theme="dark"] .rehal-light {
  display: none !important;
}
[data-theme="dark"] .arch-dark,
[data-theme="dark"] .mosque-dark,
[data-theme="dark"] .rehal-dark {
  display: block !important;
}

.landing-cat-top-floats {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
}
.landing-cat-float-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.landing-cat-float-btn:hover {
  transform: scale(1.08);
  background: #FFFFFF;
}
.landing-cat-lang-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #064E3B;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .landing-cat-float-btn,
[data-theme="dark"] .login-theme-btn {
  background: rgba(30, 41, 59, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #FBBF24 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="dark"] .landing-cat-float-btn:hover,
[data-theme="dark"] .login-theme-btn:hover {
  background: rgba(51, 65, 85, 0.95) !important;
  transform: scale(1.08) !important;
  border-color: rgba(245, 158, 11, 0.7) !important;
}
[data-theme="dark"] .landing-cat-lang-pill {
  background: rgba(30, 41, 59, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #34D399 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.landing-cat-title-block {
  text-align: center;
  padding: 4px 18px 6px 18px;
  flex-shrink: 0;
}
.landing-cat-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(6, 78, 59, 0.08);
}
[data-theme="dark"] .landing-cat-main-title {
  color: #34D399 !important;
  text-shadow: 0 2px 12px rgba(52, 211, 153, 0.25) !important;
}

.landing-star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 3px auto 6px auto;
  max-width: 170px;
}
.star-divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #D97706);
}
.star-divider-line:last-child {
  background: linear-gradient(90deg, #D97706, transparent);
}
.star-divider-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.landing-cat-sub-title {
  font-size: 0.84rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
  max-width: 290px;
  margin: 0 auto;
  font-weight: 500;
}
[data-theme="dark"] .landing-cat-sub-title {
  color: #94A3B8;
}

.landing-cat-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 16px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.landing-cat-img-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  border: 1.5px solid rgba(217, 119, 6, 0.2);
  background: #FFFFFF;
}
.landing-cat-img-card:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 14px 34px rgba(4, 120, 87, 0.22), 0 4px 12px rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.45);
}
.landing-cat-img-card:active {
  transform: scale(0.985);
}
.landing-cat-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-cat-mosque-footer {
  width: 100%;
  line-height: 0;
  margin-top: -8px;
  position: relative;
  flex-shrink: 0;
}
.landing-cat-mosque-img {
  width: 100%;
  height: auto;
  display: block;
}
[data-theme="dark"] .landing-cat-mosque-img {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   DESAIN 2: LOGIN GOOGLE DENGAN FRAME KUBAH & INFORMASI KATEGORI
   -------------------------------------------------------------------------- */
#screen-login {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: none;
  flex-direction: column;
  background-color: #FAF5ED;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.75) 0%, rgba(250, 245, 237, 0.45) 50%, rgba(245, 236, 222, 0.7) 100%),
    url('/images/assets_dual/landing_bg_pattern.png?v=clean2');
  background-repeat: repeat;
  background-size: auto, 120px 120px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
#screen-login.active {
  display: flex;
}
[data-theme="dark"] #screen-login {
  background-color: #0A121E !important;
  background-image: 
    radial-gradient(circle at 50% 18%, rgba(16, 185, 129, 0.20) 0%, rgba(10, 22, 34, 0.82) 55%, #060E18 100%),
    url('/images/assets_dual/landing_bg_pattern_dark.png?v=clean2') !important;
  background-repeat: repeat !important;
  background-size: auto, 120px 120px !important;
}

.login-arch-header {
  width: 100%;
  position: relative;
  line-height: 0;
  flex-shrink: 0;
  margin-bottom: -12px;
}
.login-arch-img {
  width: 100%;
  height: auto;
  display: block;
}
.login-back-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 120px;
  height: 44px;
  z-index: 25;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.login-back-btn:hover {
  opacity: 0.15;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
}
.login-theme-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}
.login-theme-btn:hover {
  transform: scale(1.08);
  background: #FFFFFF;
}

.login-content-block {
  text-align: center;
  padding: 8px 24px 0 24px;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}
.login-main-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
[data-theme="dark"] .login-main-heading {
  color: #34D399;
}
.login-sub-heading {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 12px 0;
  line-height: 1.45;
}
[data-theme="dark"] .login-sub-heading {
  color: #94A3B8;
}

.btn-google-dewasa-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 12px auto;
  padding: 13px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  border: 2px solid #F59E0B;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-google-dewasa-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(4, 120, 87, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.btn-google-dewasa-action:active {
  transform: scale(0.98);
}
.google-logo-bubble {
  width: 26px;
  height: 26px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.login-cat-confirmation-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 380px;
  margin: 0 auto 12px auto;
  text-align: left;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.06);
}
[data-theme="dark"] .login-cat-confirmation-badge {
  background: rgba(6, 78, 59, 0.25);
  border-color: rgba(5, 150, 105, 0.4);
}
.login-cat-shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.login-cat-confirmation-text {
  font-size: 0.78rem;
  color: #064E3B;
  line-height: 1.45;
  margin: 0;
  font-weight: 600;
}
[data-theme="dark"] .login-cat-confirmation-text {
  color: #A7F3D0;
}

.login-rehal-footer {
  margin-top: -12px;
  width: 100%;
  line-height: 0;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.login-rehal-img {
  width: 100%;
  height: auto;
  display: block;
}
[data-theme="dark"] .login-rehal-img {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   DESAIN 3: DASHBOARD DEWASA (EMERALD, GOLD, 30 JUZ, JADWAL SALAT, HADIS)
   -------------------------------------------------------------------------- */
#screen-dashboard-dewasa {
  background: var(--bg-app);
  min-height: auto;
  padding-bottom: 68px;
  overflow-x: hidden;
}

.dash-dewasa-top-header {
  position: relative;
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  color: #FFFFFF;
  padding: 16px 20px 24px 20px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.2);
  overflow: hidden;
}
.dash-dewasa-header-bg-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 380px;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  opacity: 0.95;
  pointer-events: none;
}
.dash-dewasa-header-content {
  position: relative;
  z-index: 5;
}
.dash-dewasa-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-dewasa-brand-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-dewasa-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-dewasa-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 1.1rem;
}
.dash-dewasa-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid #064E3B;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-dewasa-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #F59E0B;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.dash-dewasa-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-dewasa-greeting-box {
  margin-top: 4px;
}
.dash-dewasa-greeting-text {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}
.dash-dewasa-greeting-sub {
  font-size: 0.84rem;
  color: #A7F3D0;
  margin: 0;
}

/* WIDGET 1: JADWAL SALAT */
.widget-jadwal-salat {
  margin: -16px 16px 16px 16px;
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.jadwal-salat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.jadwal-location-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jadwal-icon-mosque {
  font-size: 1.25rem;
}
.jadwal-title-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.jadwal-location-city {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
}
.jadwal-countdown-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
}
[data-theme="dark"] .jadwal-countdown-pill {
  background: #064E3B44;
  border-color: #059669;
  color: #34D399;
}
.jadwal-grid-times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
}
.jadwal-col {
  padding: 6px 4px;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.jadwal-col.col-active {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
}
[data-theme="dark"] .jadwal-col.col-active {
  background: #064E3B66;
  border-color: #059669;
}
.jadwal-col-name {
  font-size: 0.72rem;
  color: var(--text-muted-dark);
  margin-bottom: 2px;
  font-weight: 600;
}
.jadwal-col.col-active .jadwal-col-name {
  color: #047857;
  font-weight: 800;
}
[data-theme="dark"] .jadwal-col.col-active .jadwal-col-name {
  color: #34D399;
}
.jadwal-col-time {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
}
.jadwal-col.col-active .jadwal-col-time {
  color: #064E3B;
}
[data-theme="dark"] .jadwal-col.col-active .jadwal-col-time {
  color: #6EE7B7;
}

/* WIDGET 2: LANJUTKAN HAFALAN */
.widget-lanjutkan-hafalan {
  margin: 0 16px 16px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 70%), linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  color: #FFFFFF;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.widget-lanjutkan-hafalan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.35);
}
.lanjutkan-rehal-box {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lanjutkan-rehal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lanjutkan-info-box {
  flex: 1;
  min-width: 0;
}
.lanjutkan-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #A7F3D0;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lanjutkan-surah-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: #FFFFFF;
  line-height: 1.25;
}
.lanjutkan-ayah-sub {
  font-size: 0.78rem;
  color: #D1FAE5;
  margin-bottom: 8px;
}
.lanjutkan-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}
.lanjutkan-progress-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: 9999px;
  transition: width 0.4s ease;
}
.lanjutkan-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #064E3B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease;
}
.widget-lanjutkan-hafalan:hover .lanjutkan-play-circle {
  transform: scale(1.08);
}

/* WIDGET 3: PROGRES HAFALAN 30 JUZ */
.widget-progres-dewasa {
  margin: 0 16px 16px 16px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.progres-dewasa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.progres-dewasa-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}
.progres-dewasa-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  text-decoration: none;
  cursor: pointer;
}
[data-theme="dark"] .progres-dewasa-link {
  color: #34D399;
}
.progres-dewasa-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.progres-donut-box {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(#047857 0% 20%, #E2E8F0 20% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
[data-theme="dark"] .progres-donut-box {
  background: conic-gradient(#10B981 0% 20%, #334155 20% 100%);
}
.progres-donut-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.progres-donut-percent {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.progres-donut-sub {
  font-size: 0.65rem;
  color: var(--text-muted-dark);
  line-height: 1;
  margin-top: 2px;
}
.progres-stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.progres-stat-item {
  background: var(--bg-surface-muted, #F8FAFC);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px 4px;
}
[data-theme="dark"] .progres-stat-item {
  background: #0F172A;
}
.progres-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.2;
}
[data-theme="dark"] .progres-stat-val {
  color: #34D399;
}
.progres-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted-dark);
  line-height: 1.2;
  margin-top: 2px;
}

/* WIDGET 4: 4 QUICK ACTIONS */
.quick-actions-dewasa-grid {
  margin: 0 16px 16px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qa-dewasa-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.qa-dewasa-card:hover {
  transform: translateY(-2px);
  border-color: #047857;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.12);
}
.qa-dewasa-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.qa-icon-juz { background: #ECFDF5; color: #047857; }
.qa-icon-audio { background: #FEF3C7; color: #D97706; }
.qa-icon-murojaah { background: #EFF6FF; color: #2563EB; }
.qa-icon-evaluasi { background: #FDF2F8; color: #DB2777; }
[data-theme="dark"] .qa-icon-juz { background: #064E3B44; color: #34D399; }
[data-theme="dark"] .qa-icon-audio { background: #78350F44; color: #FBBF24; }
[data-theme="dark"] .qa-icon-murojaah { background: #1E3A8A44; color: #60A5FA; }
[data-theme="dark"] .qa-icon-evaluasi { background: #83184344; color: #F472B6; }

.qa-dewasa-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* WIDGET 5: SEHARI SATU HADIS */
.widget-hadis-dewasa {
  margin: 0 16px 16px 16px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF9EE 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 20px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}
[data-theme="dark"] .widget-hadis-dewasa {
  background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  border-color: #78350F;
}
.hadis-lantern-art {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}
.hadis-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #047857;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.2);
}
.hadis-arabic-text {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.35rem;
  line-height: 1.9;
  color: #064E3B;
  direction: rtl;
  text-align: right;
  margin: 0 0 8px 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .hadis-arabic-text {
  color: #FCD34D;
}
.hadis-indo-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 10px 0;
  max-width: 100%;
  font-style: italic;
}
[data-theme="dark"] .hadis-indo-text {
  color: #CBD5E1;
}
.hadis-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding-top: 8px;
}
.hadis-source-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400E;
}
[data-theme="dark"] .hadis-source-pill {
  color: #FBBF24;
}
.hadis-hikmah-link {
  font-size: 0.75rem;
  font-weight: 800;
  color: #047857;
  cursor: pointer;
}
[data-theme="dark"] .hadis-hikmah-link {
  color: #34D399;
}

/* WIDGET 6: HAFALAN TERAKHIR */
.widget-hafalan-terakhir {
  margin: 0 16px 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.hafalan-terakhir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hafalan-terakhir-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
}
.hafalan-terakhir-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-surface-muted, #F8FAFC);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="dark"] .hafalan-terakhir-item {
  background: #0F172A;
}
.hafalan-terakhir-item:hover {
  border-color: #047857;
  transform: translateX(2px);
}
.hafalan-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hafalan-item-icon {
  font-size: 1.2rem;
  color: #D97706;
}
.hafalan-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
}
.hafalan-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted-dark);
}
.hafalan-item-time {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   DESAIN 4: HALAMAN HAFALAN AL-QUR'AN DEWASA
   -------------------------------------------------------------------------- */
#screen-quran-dewasa {
  background: var(--bg-app);
  min-height: 100vh;
  padding-bottom: 180px; /* space for floating audio player + bottom nav */
  position: relative;
  overflow-x: clip;
}

.dewasa-reader-top-bar {
  position: sticky;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  color: #FFFFFF;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 3px 12px rgba(6, 78, 59, 0.18);
}
.dewasa-reader-brand-center {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dewasa-reader-action-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dewasa-header-jump-btn {
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  min-height: 28px !important;
}

.dewasa-surah-header-card {
  margin: 14px 16px 10px 16px;
  background: var(--bg-card);
  border: 1.5px solid #FCD34D;
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}
.dewasa-surah-title-box {
  display: flex;
  flex-direction: column;
}
.dewasa-surah-main-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0;
}
[data-theme="dark"] .dewasa-surah-main-name {
  color: #34D399;
}
.dewasa-surah-meta-text {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  margin-top: 2px;
}
.dewasa-juz-picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  border: 1.5px solid #F59E0B;
  color: #92400E;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="dark"] .dewasa-juz-picker-pill {
  background: #78350F44;
  border-color: #D97706;
  color: #FCD34D;
}
.dewasa-juz-picker-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

.dewasa-tabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 16px;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.dewasa-tab-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 2px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  color: var(--text-muted-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.dewasa-tab-pill:hover {
  border-color: #047857;
  color: #047857;
  background: rgba(4, 120, 87, 0.04);
}
.dewasa-tab-pill.tab-active {
  background: #047857;
  border-color: #047857;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(4, 120, 87, 0.25);
}
[data-theme="dark"] .dewasa-tab-pill.tab-active {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

/* TAFSIR KEMENAG RI STYLING */
.dewasa-ayah-tafsir {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(4, 120, 87, 0.05);
  border-left: 3.5px solid #047857;
  border-radius: 0 12px 12px 0;
  transition: all 0.2s ease;
}
[data-theme="dark"] .dewasa-ayah-tafsir {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10B981;
}
.dewasa-tafsir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dewasa-tafsir-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.3px;
  background: rgba(4, 120, 87, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
[data-theme="dark"] .dewasa-tafsir-badge {
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
}
.dewasa-tafsir-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  white-space: pre-line;
}
[data-theme="dark"] .dewasa-tafsir-text {
  color: #CBD5E1;
}
.dewasa-tafsir-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: none;
  border: none;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s ease;
}
.dewasa-tafsir-expand-btn:hover {
  color: #065F46;
  text-decoration: underline;
}
[data-theme="dark"] .dewasa-tafsir-expand-btn {
  color: #34D399;
}

/* SURAH INFO & ASBABUN NUZUL BOX */
.dewasa-surah-info-box {
  margin: 0 16px 14px 16px;
  padding: 14px 16px;
  background: #FEFCE8;
  border: 1.5px solid #FEF08A;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.08);
}
[data-theme="dark"] .dewasa-surah-info-box {
  background: #42200633;
  border-color: #854D0E;
}
.dewasa-info-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dewasa-info-box-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #854D0E;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .dewasa-info-box-title {
  color: #FDE047;
}
.dewasa-info-box-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #FEF9C3;
  color: #A16207;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid #FDE047;
}
[data-theme="dark"] .dewasa-info-box-badge {
  background: #713F12;
  color: #FEF08A;
  border-color: #A16207;
}
.dewasa-info-box-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #713F12;
  margin: 0;
}
[data-theme="dark"] .dewasa-info-box-desc {
  color: #FEF08A;
}

.dewasa-surah-progress-box {
  margin: 0 16px 14px 16px;
}
.dewasa-surah-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.dewasa-surah-progress-track {
  height: 6px;
  background: var(--card-border);
  border-radius: 9999px;
  overflow: hidden;
}
.dewasa-surah-progress-fill {
  height: 100%;
  background: #047857;
  border-radius: 9999px;
  transition: width 0.3s ease;
}
[data-theme="dark"] .dewasa-surah-progress-fill {
  background: #10B981;
}

.dewasa-ayahs-container {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dewasa-header-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.dewasa-header-jump-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.jump-ayah-chip-btn {
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border, #E2E8F0);
  background: var(--bg-main, #F8FAFC);
  color: var(--text-main, #0F172A);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.jump-ayah-chip-btn:hover,
.jump-ayah-chip-btn.is-current {
  background: #ECFDF5;
  border-color: #059669;
  color: #047857;
}
[data-theme="dark"] .jump-ayah-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
[data-theme="dark"] .jump-ayah-chip-btn.is-current {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.dewasa-ayah-card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  scroll-margin-top: 84px;
}
.dewasa-ayah-card.ayah-active {
  background: #F0FDF4;
  border-color: #047857;
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.12);
}
[data-theme="dark"] .dewasa-ayah-card.ayah-active {
  background: #064E3B33;
  border-color: #10B981;
}
.dewasa-ayah-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dewasa-ayah-medal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #D97706;
  background: #FEF3C7;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}
[data-theme="dark"] .dewasa-ayah-medal {
  background: #78350F55;
  border-color: #F59E0B;
  color: #FCD34D;
}
.dewasa-ayah-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.85rem;
  line-height: 2.2;
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  margin: 0 0 10px 0;
  font-weight: 700;
}
.dewasa-ayah-card.ayah-active .dewasa-ayah-arabic {
  color: #064E3B;
}
[data-theme="dark"] .dewasa-ayah-card.ayah-active .dewasa-ayah-arabic {
  color: #34D399;
}
.dewasa-ar-word {
  display: inline;
  padding: 2px 4px;
  margin: 0 -2px;
  border-radius: 8px;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.dewasa-ar-word.word-passed {
  background-color: rgba(16, 185, 129, 0.12);
  color: #065F46;
}
.dewasa-ar-word.word-current {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(245, 158, 11, 0.28) 100%);
  color: #064E3B;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}
[data-theme="dark"] .dewasa-ar-word.word-passed {
  background-color: rgba(16, 185, 129, 0.16);
  color: #6EE7B7;
}
[data-theme="dark"] .dewasa-ar-word.word-current {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(245, 158, 11, 0.32) 100%);
  color: #FDE68A;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.dewasa-ayah-latin {
  font-size: 0.84rem;
  font-weight: 600;
  color: #047857;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 8px 0;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid #10B981;
  border-radius: 6px;
}
[data-theme="dark"] .dewasa-ayah-latin {
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.12);
}
.dewasa-ayah-trans {
  font-size: 0.84rem;
  color: var(--text-muted-dark);
  line-height: 1.55;
  margin: 0;
}

/* FLOATING AUDIO MURATTAL PLAYER (DESAIN 4 - COMPACT & RAMPING) */
.dewasa-floating-player-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 8px;
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dewasa-floating-player-bar.collapsed {
  max-width: 270px;
}

.dewasa-floating-player-inner {
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 18px;
  padding: 8px 12px;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.45);
}

.player-scrubber-row.compact-scrubber {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.player-time-num {
  font-size: 0.68rem;
  color: #A7F3D0;
  font-family: monospace;
  min-width: 24px;
}
.player-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}
.player-progress-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: 9999px;
  width: 0%;
  transition: width 0.1s linear;
}

.player-controls-row.compact-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0;
}

.player-mini-meta-col {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1.1;
}
.player-rehal-thumb-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #F59E0B;
  overflow: hidden;
  flex-shrink: 0;
}
.player-rehal-thumb-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-meta-texts {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.player-surah-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.player-qari-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 6px;
  outline: none;
  cursor: pointer;
  max-width: 110px;
}
.player-qari-select option {
  background: #064E3B;
  color: #FFFFFF;
}

.player-playback-cluster {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.player-btn-icon {
  background: none;
  border: none;
  color: #A7F3D0;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}
.player-btn-icon:hover {
  transform: scale(1.15);
  color: #FFFFFF;
}
.player-play-btn-large {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F59E0B;
  color: #064E3B;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  transition: transform 0.18s ease;
}
.player-play-btn-large:hover {
  transform: scale(1.08);
  background: #FBBF24;
}
.player-play-btn-large:active {
  transform: scale(0.95);
}

.player-side-tools-col {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.player-repeat-pills {
  display: flex;
  align-items: center;
  gap: 2px;
}
.repeat-num-pill {
  padding: 2px 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.repeat-num-pill.repeat-active {
  background: #F59E0B;
  color: #064E3B;
  border-color: #F59E0B;
}

/* Minimize (▾) & Close (✕) Buttons for Dewasa Floating Audio Player */
.player-btn-minimize {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FEF3C7;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0 0 2px 0;
  line-height: 1;
  transition: all 0.18s ease;
}
.player-btn-minimize:hover {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #064E3B;
  transform: scale(1.15);
}
.player-btn-minimize:active {
  transform: scale(0.92);
}

.player-btn-close-bar {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #E2E8F0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  line-height: 1;
  transition: all 0.18s ease;
}
.player-btn-close-bar:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: scale(1.15);
}
.player-btn-close-bar:active {
  transform: scale(0.92);
}

.btn-close-player-bottom {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 2px !important;
  transition: all 0.18s ease !important;
}
.btn-close-player-bottom:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
  transform: scale(1.15) !important;
}
.btn-close-player-bottom:active {
  transform: scale(0.92) !important;
}

.btn-close-collapsed {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-left: 4px !important;
  transition: all 0.18s ease !important;
}
.btn-close-collapsed:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  transform: scale(1.15) !important;
}

/* Collapsed Micro Bar */
.player-collapsed-bar {
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  border: 1.5px solid #FCD34D;
  border-radius: 9999px;
  padding: 5px 12px;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.player-collapsed-bar:hover {
  transform: scale(1.03);
}
.collapsed-play-icon {
  font-size: 0.85rem;
  color: #FCD34D;
}
.collapsed-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collapsed-expand-hint {
  font-size: 0.65rem;
  color: #A7F3D0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #main-bottom-nav,
  .bottom-nav {
    display: none !important;
  }
  .dewasa-floating-player-bar {
    bottom: 20px !important;
    max-width: 520px !important;
  }
}

/* --------------------------------------------------------------------------
   MODAL 30 JUZ PICKER (UNTUK PILIH JUZ 1 - 30)
   -------------------------------------------------------------------------- */
#modal-juz-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#modal-juz-picker-backdrop.show {
  opacity: 1;
  pointer-events: all;
}
.modal-juz-card {
  background: var(--bg-card);
  border: 1.5px solid #FCD34D;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#modal-juz-picker-backdrop.show .modal-juz-card {
  transform: scale(1);
}
.modal-juz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
  color: #FFFFFF;
}
.modal-juz-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.modal-juz-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-juz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
}
.juz-num-btn {
  background: var(--bg-surface-muted, #F8FAFC);
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.juz-num-btn:hover {
  border-color: #047857;
  transform: translateY(-2px);
  background: #ECFDF5;
}
.juz-num-btn.juz-active {
  background: #047857;
  border-color: #047857;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}
.juz-num-digit {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.juz-num-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 3px;
  opacity: 0.85;
}



/* Fix desktop unauthenticated outer container */
@media (min-width: 768px) {
  body.unauthenticated {
    background-color: #EDE8DE !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
  }
  [data-theme="dark"] body.unauthenticated {
    background-color: #060B14 !important;
  }
  body.unauthenticated .app-container {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Legal Footer Links (Desain 1 & Desain 2) */
.landing-legal-footer {
  text-align: center;
  padding: 10px 14px 18px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 5;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
.landing-legal-footer a {
  color: #065F46;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s ease;
}
.landing-legal-footer a:hover {
  color: #047857;
  text-decoration: underline;
}
.landing-legal-footer .legal-sep {
  color: #CBD5E1;
  font-size: 0.72rem;
}
[data-theme="dark"] #screen-login .landing-legal-footer {
  color: #94A3B8;
}
[data-theme="dark"] #screen-login .landing-legal-footer a {
  color: #34D399;
}
[data-theme="dark"] #screen-login .landing-legal-footer .legal-sep {
  color: #475569;
}

/* ===================================================
   MODAL PUSAT NOTIFIKASI & PENGINGAT HAFALAN (DEWASA)
   =================================================== */
.modal-notification-sheet {
  background: var(--bg-card, #FFFFFF);
  width: 100%;
  max-width: 440px;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 18px 20px 32px 20px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUpNotif 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes slideUpNotif {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-notif-handle-bar {
  width: 44px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 4px;
  margin: 0 auto 14px auto;
  flex-shrink: 0;
}
[data-theme="dark"] .modal-notif-handle-bar {
  background: #475569;
}

.modal-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.modal-notif-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-notif-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.modal-notif-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  margin: 0;
}

.modal-notif-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted, #64748B);
  margin: 2px 0 0 0;
}

.btn-notif-mark-read {
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.25);
  color: #047857;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-notif-mark-read:hover {
  background: #047857;
  color: #FFFFFF;
}

.btn-notif-close-icon {
  background: rgba(148, 163, 184, 0.15);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-muted, #64748B);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-notif-list-container {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
}

.notif-card-item {
  background: var(--bg-card-sub, #F8FAFC);
  border: 1.5px solid var(--border-color, #E2E8F0);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.notif-card-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.notif-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.notif-time-text {
  font-size: 0.72rem;
  color: var(--text-muted, #94A3B8);
}

.notif-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-title-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
}

.notif-body-text {
  font-size: 0.8rem;
  color: var(--text-muted, #475569);
  line-height: 1.45;
  margin: 0;
}

.notif-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-notif-action-sm {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-notif-primary {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}
.btn-notif-primary:hover {
  background: #059669;
}

.btn-notif-secondary {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.btn-notif-secondary:hover {
  background: #D97706;
  color: #FFFFFF;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  display: inline-block;
}

[data-theme="dark"] .modal-notification-sheet {
  background: #0E1726;
  border-top-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .notif-card-item {
  background: #131E30;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .notif-title-text {
  color: #FFFFFF;
}
[data-theme="dark"] .notif-body-text {
  color: #94A3B8;
}
[data-theme="dark"] .btn-notif-mark-read {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}



/* ==========================================================================
   PROMPT TAMBAHAN: DUAL MODE FACILITIES & DYNAMIC LOGIN EXPLANATIONS
   ========================================================================== */
.landing-mode-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  line-height: 0;
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  display: block;
  margin-bottom: 8px;
}
.landing-mode-card:hover {
  transform: translateY(-3px) scale(1.006);
  box-shadow: 0 14px 34px rgba(4, 120, 87, 0.18), 0 4px 12px rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.5);
}
.landing-mode-card:active {
  transform: scale(0.985);
}
.landing-mode-card.dewasa-mode {
  border-color: rgba(4, 120, 87, 0.35);
}
.landing-mode-card.anak-mode {
  border-color: rgba(245, 158, 11, 0.45);
}

.landing-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  text-align: left;
  line-height: normal;
  border-radius: 16px;
  font-family: inherit;
  position: relative;
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}
.landing-mode-btn.dewasa-mode {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  color: #FFFFFF;
}
.landing-mode-btn.anak-mode {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #064E3B;
}
.mode-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.dewasa-mode .mode-btn-icon {
  background: rgba(255, 255, 255, 0.16);
}
.anak-mode .mode-btn-icon {
  background: rgba(217, 119, 6, 0.14);
}
.mode-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}
.mode-btn-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}
.mode-btn-sub {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.32;
  opacity: 0.88;
}
.mode-btn-arrow {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.dewasa-mode .mode-btn-arrow {
  background: #FDE68A;
  color: #064E3B;
}
.anak-mode .mode-btn-arrow {
  background: #064E3B;
  color: #FFFFFF;
}

.landing-cat-img-wrapper {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
}
.landing-cat-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15);
  transform-origin: center center;
}

.landing-mode-card-body {
  padding: 14px 16px 16px 16px;
  text-align: left;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}
.mode-desc-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #064E3B;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.mode-desc-title.anak {
  color: #B45309;
}
.mode-desc-lead {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0 0 10px 0;
  line-height: 1.42;
  font-weight: 500;
}
.mode-facilities-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  background: #FAF8F5;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, 0.12);
}
.mode-facility-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.77rem;
  color: #334155;
  line-height: 1.35;
}
.mode-facility-row .row-icon {
  font-size: 0.88rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  line-height: 1.25;
}
.mode-facility-row .row-text {
  flex: 1;
  font-weight: 500;
}
.mode-card-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.mode-card-action-btn.dewasa {
  background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  border: 1px solid #10B981;
}
.mode-card-action-btn.anak {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  border: 1px solid #FCD34D;
}
.mode-card-action-btn .btn-arrow {
  font-size: 0.92rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.landing-mode-card:hover .mode-card-action-btn .btn-arrow {
  transform: translateX(4px);
}

/* Dark mode for landing mode cards */
[data-theme="dark"] .landing-mode-card {
  background: #0F172A;
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .landing-mode-card-body {
  background: #0F172A;
}
[data-theme="dark"] .mode-desc-title {
  color: #34D399;
}
[data-theme="dark"] .mode-desc-title.anak {
  color: #FBBF24;
}
[data-theme="dark"] .mode-desc-lead {
  color: #94A3B8;
}
[data-theme="dark"] .mode-facilities-list {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(5, 150, 105, 0.2);
}
[data-theme="dark"] .mode-facility-row {
  color: #E2E8F0;
}

/* --------------------------------------------------------------------------
   LOGIN SCREEN: DYNAMIC MODE FACILITIES CONTAINER
   -------------------------------------------------------------------------- */
.login-welcome-greeting-box {
  margin-bottom: 10px;
  text-align: center;
}
#login-mode-greeting-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: #064E3B;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
[data-theme="dark"] #login-mode-greeting-heading {
  color: #34D399;
}
#login-mode-greeting-desc {
  font-size: 0.8rem;
  color: #475569;
  margin: 0 auto;
  line-height: 1.42;
  max-width: 380px;
}
[data-theme="dark"] #login-mode-greeting-desc {
  color: #94A3B8;
}

.login-facilities-container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  max-width: 380px;
  margin: 10px auto 12px auto;
  text-align: left;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.05);
  box-sizing: border-box;
}
[data-theme="dark"] .login-facilities-container {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.login-facilities-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .login-facilities-label {
  color: #FCD34D;
}
.login-facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 340px) {
  .login-facilities-grid {
    grid-template-columns: 1fr;
  }
}
.login-facility-pill {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #FFFDF9;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 10px;
  padding: 7px 9px;
  box-sizing: border-box;
}
.login-facility-pill.anak-pill {
  border-color: rgba(245, 158, 11, 0.25);
  background: #FFFAF0;
}
[data-theme="dark"] .login-facility-pill {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(5, 150, 105, 0.25);
}
.login-facility-pill .facility-icon {
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.login-facility-pill .facility-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.login-facility-pill .facility-text strong {
  font-size: 0.74rem;
  color: #064E3B;
  font-weight: 700;
}
.login-facility-pill.anak-pill .facility-text strong {
  color: #B45309;
}
[data-theme="dark"] .login-facility-pill .facility-text strong {
  color: #34D399;
}
[data-theme="dark"] .login-facility-pill.anak-pill .facility-text strong {
  color: #FBBF24;
}
.login-facility-pill .facility-text span {
  font-size: 0.65rem;
  color: #64748B;
  margin-top: 2px;
}
[data-theme="dark"] .login-facility-pill .facility-text span {
  color: #94A3B8;
}
.login-facilities-summary-note {
  font-size: 0.72rem;
  color: #047857;
  text-align: center;
  border-top: 1px dashed rgba(217, 119, 6, 0.2);
  padding-top: 7px;
  font-weight: 500;
  line-height: 1.35;
}
[data-theme="dark"] .login-facilities-summary-note {
  color: #6EE7B7;
  border-color: rgba(5, 150, 105, 0.25);
}


/* ==========================================================================
   DAFTAR 30 JUZ & 114 SURAH AL-QUR'AN CATALOG (DEWASA)
   ========================================================================== */
#screen-quran-list-dewasa {
  background-color: #FAF8F5;
  min-height: 100vh;
  padding-bottom: 90px;
  box-sizing: border-box;
}
[data-theme="dark"] #screen-quran-list-dewasa {
  background-color: #0B1329 !important;
}

.dewasa-qlist-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.22);
}
.dewasa-qlist-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dewasa-qlist-back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.dewasa-qlist-back-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-2px);
}
.dewasa-qlist-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}
.dewasa-qlist-subtitle {
  font-size: 0.72rem;
  color: #A7F3D0;
  font-weight: 500;
  margin-top: 2px;
}
.dewasa-qlist-header-right {
  display: flex;
  align-items: center;
}
.dewasa-qlist-theme-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
  transition: transform 0.2s ease;
}
.dewasa-qlist-theme-btn:hover {
  transform: scale(1.08);
}

.dewasa-qlist-container {
  padding: 14px 16px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.dewasa-qlist-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.dewasa-qlist-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}
#dewasa-qlist-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 40px 11px 42px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  font-size: 0.88rem;
  background: #FFFFFF;
  color: #1E293B;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#dewasa-qlist-search-input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}
[data-theme="dark"] #dewasa-qlist-search-input {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}
#dewasa-qlist-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dewasa-qlist-tabs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.dewasa-qlist-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.dewasa-qlist-tab .tab-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #64748B;
  font-weight: 800;
}
.dewasa-qlist-tab.active {
  background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
  color: #FFFFFF;
  border-color: #064E3B;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.22);
}
.dewasa-qlist-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FEF3C7;
}
[data-theme="dark"] .dewasa-qlist-tab {
  background: #1E293B;
  border-color: #334155;
  color: #94A3B8;
}
[data-theme="dark"] .dewasa-qlist-tab.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  border-color: #10B981;
}

.dewasa-qlist-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}
#dewasa-qlist-counter-text {
  font-size: 0.74rem;
  font-weight: 800;
  color: #064E3B;
}
[data-theme="dark"] #dewasa-qlist-counter-text {
  color: #34D399;
}
.dewasa-qlist-meta-info {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
  white-space: nowrap;
}
[data-theme="dark"] .dewasa-qlist-meta-info {
  color: #94A3B8;
}

.dewasa-30juz-grid,
.dewasa-114surah-grid {
  display: flex;
  flex-direction: column;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* 30 Juz Item Card */
.dewasa-juz-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid rgba(4, 120, 87, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.dewasa-juz-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.14);
  border-color: #047857;
}
.dewasa-juz-item-card:active {
  transform: scale(0.985);
}
[data-theme="dark"] .dewasa-juz-item-card {
  background: #1E293B;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.juz-card-medal {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .juz-card-medal {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}
.juz-card-num {
  font-size: 1.05rem;
  font-weight: 900;
  color: #047857;
}
[data-theme="dark"] .juz-card-num {
  color: #34D399;
}
.juz-card-info {
  flex: 1;
  min-width: 0;
}
.juz-card-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.juz-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #064E3B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .juz-card-title {
  color: #34D399;
}
.juz-card-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.15rem;
  color: #B45309;
  flex-shrink: 0;
  line-height: 1;
}
[data-theme="dark"] .juz-card-arabic {
  color: #FBBF24;
}
.juz-card-coverage {
  font-size: 0.74rem;
  color: #475569;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .juz-card-coverage {
  color: #94A3B8;
}
.juz-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.juz-meta-pill {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
}
.juz-meta-pill.start {
  background: rgba(217, 119, 6, 0.1);
  color: #B45309;
}
[data-theme="dark"] .juz-meta-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}
[data-theme="dark"] .juz-meta-pill.start {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}
.juz-card-action {
  flex-shrink: 0;
}
.juz-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: #047857;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.74rem;
  transition: all 0.18s ease;
}
.dewasa-juz-item-card:hover .juz-action-btn {
  background: #065F46;
  transform: translateX(2px);
}

/* 114 Surah Item Card */
.dewasa-surah-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid rgba(4, 120, 87, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.dewasa-surah-item-card:hover {
  transform: translateY(-2px);
  border-color: #047857;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.12);
}
[data-theme="dark"] .dewasa-surah-item-card {
  background: #1E293B;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.surah-card-num-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .surah-card-num-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}
.surah-card-info {
  flex: 1;
  min-width: 0;
}
.surah-card-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.surah-card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #064E3B;
}
[data-theme="dark"] .surah-card-name {
  color: #34D399;
}
.surah-card-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  color: #B45309;
  line-height: 1;
}
[data-theme="dark"] .surah-card-arabic {
  color: #FBBF24;
}
.surah-card-arti {
  font-size: 0.72rem;
  color: #64748B;
  margin-bottom: 4px;
  font-style: italic;
}
[data-theme="dark"] .surah-card-arti {
  color: #94A3B8;
}
.surah-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.surah-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
}
.surah-type-badge.makkiyah {
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
}
.surah-type-badge.madaniyah {
  background: rgba(217, 119, 6, 0.1);
  color: #B45309;
}
[data-theme="dark"] .surah-type-badge.makkiyah {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}
[data-theme="dark"] .surah-type-badge.madaniyah {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}
.surah-ayah-count {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}
[data-theme="dark"] .surah-ayah-count {
  color: #94A3B8;
}
.surah-card-action {
  flex-shrink: 0;
}
.surah-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: #047857;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.74rem;
  transition: all 0.18s ease;
}
.dewasa-surah-item-card:hover .surah-action-btn {
  background: #065F46;
  transform: translateX(2px);
}

.dewasa-qlist-empty {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px dashed #CBD5E1;
}
[data-theme="dark"] .dewasa-qlist-empty {
  background: #1E293B;
  border-color: #334155;
}

/* ==========================================================================
   DESAIN BARU: LAMAN AKUN & PENGATURAN MODERN (SESUAI GAMBAR REFERENSI 2)
   ========================================================================== */
.account-screen-modern-wrapper {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 110px;
  position: relative;
  background: var(--bg-app, #F8FAFC);
  min-height: 100vh;
}
[data-theme="dark"] .account-screen-modern-wrapper {
  background: #0B132B;
}

.account-top-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px 18px;
  position: relative;
  z-index: 2;
}
.account-top-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border, #E2E8F0);
  background: var(--bg-card, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main, #334155);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.account-top-icon-btn:hover {
  transform: translateY(-1px);
  border-color: #047857;
  color: #047857;
}
[data-theme="dark"] .account-top-icon-btn {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}
.account-top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-top-brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: #047857;
  letter-spacing: -0.3px;
}
[data-theme="dark"] .account-top-brand-text {
  color: #10B981;
}

/* Background Arch Ornament */
.account-header-arch-ornament {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 78, 59, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(250, 245, 237, 0) 100%);
  border-top: 3px solid #047857;
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] .account-header-arch-ornament {
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16) 0%, transparent 48%),
    linear-gradient(180deg, rgba(6, 78, 59, 0.2) 0%, transparent 100%);
  border-top-color: #10B981;
}

/* Profile Card Modern */
.account-profile-card-modern {
  background: var(--bg-card, #FFFFFF);
  border-radius: 20px;
  border: 1.5px solid var(--card-border, #E2E8F0);
  padding: 18px 16px;
  margin: 6px 16px 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .account-profile-card-modern {
  background: #131E30;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.account-mode-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #FDE68A;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
[data-theme="dark"] .account-mode-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-profile-settings-modern {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 9999px;
  background: #E6F4EA;
  border: none;
  color: #047857;
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-profile-settings-modern:hover {
  background: #D1FAE5;
  transform: translateY(-1px);
}
[data-theme="dark"] .btn-profile-settings-modern {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

/* Continue Hafalan Banner */
.account-continue-banner {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  border-radius: 20px;
  color: #FFFFFF;
  padding: 18px 20px;
  margin: 0 16px 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.account-continue-banner:hover {
  transform: translateY(-1px);
}
.account-continue-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #047857;
  padding: 7px 14px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.76rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}
.account-continue-btn-pill:hover {
  background: #F0FDF4;
}

/* Menu Groups */
.account-menu-card-modern {
  background: var(--bg-card, #FFFFFF);
  border-radius: 20px;
  border: 1.5px solid var(--card-border, #F1F5F9);
  padding: 16px;
  margin: 0 16px 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .account-menu-card-modern {
  background: #131E30;
  border-color: rgba(255, 255, 255, 0.08);
}
.account-menu-header-modern {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main, #0F172A);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .account-menu-header-modern {
  color: #F8FAFC;
}
.account-menu-list {
  display: flex;
  flex-direction: column;
}
.account-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  border-bottom: 1px solid var(--card-border, #F8FAFC);
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 8px;
}
.account-menu-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.account-menu-row:hover {
  background: rgba(248, 250, 252, 0.8);
}
[data-theme="dark"] .account-menu-row {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .account-menu-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.account-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-row-icon {
  font-size: 1.15rem;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.account-row-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #1E293B);
}
[data-theme="dark"] .account-row-label {
  color: #E2E8F0;
}
.account-row-pill {
  background: var(--bg-card-sub, #F8FAFC);
  border: 1px solid var(--card-border, #E2E8F0);
  color: var(--text-muted, #475569);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
[data-theme="dark"] .account-row-pill {
  background: #0E1726;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

/* Custom Colored Pills from Image 2 */
.pill-amber {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FDE68A !important;
}
[data-theme="dark"] .pill-amber {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FCD34D !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.pill-sky {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border-color: #BAE6FD !important;
}
[data-theme="dark"] .pill-sky {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #7DD3FC !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
}

.pill-orange {
  background: #FFEDD5 !important;
  color: #C2410C !important;
  border-color: #FED7AA !important;
}
[data-theme="dark"] .pill-orange {
  background: rgba(249, 115, 22, 0.2) !important;
  color: #FDBA74 !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

.pill-mint {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-color: #BBF7D0 !important;
}
[data-theme="dark"] .pill-mint {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #86EFAC !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

.pill-purple {
  background: #F3E8FF !important;
  color: #7E22CE !important;
  border-color: #E9D5FF !important;
}
[data-theme="dark"] .pill-purple {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #D8B4FE !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

.pill-lavender {
  background: #EDE9FE !important;
  color: #6D28D9 !important;
  border-color: #DDD6FE !important;
}
[data-theme="dark"] .pill-lavender {
  background: rgba(124, 58, 237, 0.2) !important;
  color: #C4B5FD !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
}

/* Action Buttons */
.btn-upgrade-premium-card {
  width: calc(100% - 32px);
  margin: 0 16px 10px 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1.5px solid #FCD34D;
  color: #92400E;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  transition: all 0.18s ease;
  box-sizing: border-box;
}
.btn-upgrade-premium-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.btn-misi-reward-card {
  width: calc(100% - 32px);
  margin: 0 16px 14px 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #FEE2E2;
  border: 1.5px solid #FECACA;
  color: #B91C1C;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
  transition: all 0.18s ease;
  box-sizing: border-box;
}
.btn-misi-reward-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15);
}

/* Stats Footer Strip */
.account-stats-strip-modern {
  background: var(--bg-card, #FFFFFF);
  border-radius: 16px;
  border: 1.5px solid var(--card-border, #F1F5F9);
  margin: 0 16px 20px 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}
[data-theme="dark"] .account-stats-strip-modern {
  background: #131E30;
  border-color: rgba(255, 255, 255, 0.08);
}
.account-stat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 4px;
}
.account-stat-col.divider-left {
  border-left: 1px solid var(--card-border, #F1F5F9);
}
[data-theme="dark"] .account-stat-col.divider-left {
  border-left-color: rgba(255, 255, 255, 0.06);
}
.account-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  font-weight: 700;
}
[data-theme="dark"] .account-stat-label {
  color: #94A3B8;
}
.account-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #047857;
}
[data-theme="dark"] .account-stat-value {
  color: #10B981;
}


/* ==========================================================================
   PROGRES HAFALAN 30 JUZ MODE DEWASA (ISLAMIC PREMIUM FULL 30 JUZ SYSTEM)
   ========================================================================== */

#screen-progress-dewasa {
  background-color: var(--app-bg-warm, #FAF8F5);
  min-height: 100vh;
}

[data-theme="dark"] #screen-progress-dewasa {
  background-color: #0F172A;
}

.dewasa-prog-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 36px;
}

/* Mobile Header */
.dewasa-prog-mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card, #FFFFFF);
  border-bottom: 1px solid var(--card-border, #E2E8F0);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .dewasa-prog-mobile-header {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-prog-back-btn {
  background: none;
  border: none;
  color: var(--text-main, #0F172A);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.dewasa-prog-back-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

[data-theme="dark"] .dewasa-prog-back-btn {
  color: #F8FAFC;
}

.dewasa-prog-header-title {
  color: var(--text-main, #0F172A);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .dewasa-prog-header-title {
  color: #F8FAFC;
}

/* Desktop Banner */
.dewasa-prog-desktop-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .dewasa-prog-desktop-banner {
    display: none;
  }
}

[data-theme="dark"] .dewasa-prog-desktop-banner {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-prog-badge-quran {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .dewasa-prog-badge-quran {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

.dewasa-prog-cta-btn {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.dewasa-prog-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35);
}

/* 4 Top Stat Cards Grid (Compact) */
.dewasa-prog-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .dewasa-prog-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.dewasa-prog-stat-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.03));
}

.dewasa-prog-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

[data-theme="dark"] .dewasa-prog-stat-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-prog-stat-card.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .dewasa-prog-stat-card.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(52, 211, 153, 0.3);
}

.dewasa-stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

[data-theme="dark"] .dewasa-stat-card-icon {
  background: rgba(16, 185, 129, 0.18);
}

.dewasa-stat-card-body {
  min-width: 0;
  flex: 1;
}

.dewasa-stat-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

[data-theme="dark"] .dewasa-stat-card-label {
  color: #94A3B8;
}

.dewasa-stat-card-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

[data-theme="dark"] .dewasa-stat-card-val {
  color: #34D399;
}

.dewasa-prog-stat-card.highlight .dewasa-stat-card-val {
  color: #D97706;
}

[data-theme="dark"] .dewasa-prog-stat-card.highlight .dewasa-stat-card-val {
  color: #FBBF24;
}

.dewasa-stat-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted, #94A3B8);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4 Sub-Tabs Toolbar */
.dewasa-prog-tabs-bar {
  display: flex;
  background: #F1F5F9;
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dewasa-prog-tabs-bar::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .dewasa-prog-tabs-bar {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-prog-tab-item {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dewasa-prog-tab-item:hover {
  color: var(--text-main, #0F172A);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dewasa-prog-tab-item:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
}

.dewasa-prog-tab-item.active {
  background: #047857 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

[data-theme="dark"] .dewasa-prog-tab-item.active {
  background: #059669 !important;
  color: #FFFFFF !important;
}

/* General Card */
.dewasa-prog-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.03));
}

[data-theme="dark"] .dewasa-prog-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dewasa-card-h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .dewasa-card-h3 {
  color: #F8FAFC;
}

.dewasa-card-p {
  font-size: 0.82rem;
  color: var(--text-muted, #64748B);
  line-height: 1.45;
  margin: 4px 0 12px;
}

[data-theme="dark"] .dewasa-card-p {
  color: #94A3B8;
}

.dewasa-card-note {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  background: var(--app-bg-warm, #F1F5F9);
  padding: 3px 8px;
  border-radius: 8px;
}

[data-theme="dark"] .dewasa-card-note {
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}

/* Donut Progress Card (Compact Horizontal) */
.dewasa-prog-donut-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dewasa-donut-graphic-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.dewasa-donut-svg-box {
  position: relative;
  width: 88px;
  height: 88px;
}

.dewasa-donut-svg {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.donut-bg-circle {
  fill: none;
  stroke: var(--card-border, #E2E8F0);
  stroke-width: 10;
}

[data-theme="dark"] .donut-bg-circle {
  stroke: rgba(255, 255, 255, 0.1);
}

.donut-fg-circle {
  fill: none;
  stroke: #10B981;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.dewasa-donut-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dewasa-donut-big-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #047857;
  line-height: 1;
}

[data-theme="dark"] .dewasa-donut-big-val {
  color: #34D399;
}

.dewasa-donut-sub-val {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  margin-top: 2px;
}

[data-theme="dark"] .dewasa-donut-sub-val {
  color: #94A3B8;
}

.dewasa-donut-info-side {
  flex: 1;
}

.dewasa-donut-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dewasa-meta-pill {
  background: #F8FAFC;
  border: 1px solid var(--card-border, #E2E8F0);
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 0.72rem;
  color: var(--text-main, #334155);
}

[data-theme="dark"] .dewasa-meta-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}

.dewasa-meta-pill strong {
  color: #047857;
  font-weight: 800;
}

[data-theme="dark"] .dewasa-meta-pill strong {
  color: #34D399;
}

/* Quality Level Distribution */
.dewasa-level-dist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dewasa-level-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dewasa-level-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #1E293B);
}

[data-theme="dark"] .dewasa-level-top {
  color: #F1F5F9;
}

.level-indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-mutqin { background: #10B981; }
.dot-lancar { background: #059669; }
.dot-sedang { background: #F59E0B; }
.dot-belum  { background: #94A3B8; }

.dewasa-level-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted, #64748B);
}

[data-theme="dark"] .dewasa-level-count {
  color: #CBD5E1;
}

.dewasa-level-bar-bg {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

[data-theme="dark"] .dewasa-level-bar-bg {
  background: rgba(255, 255, 255, 0.08);
}

.dewasa-level-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.bar-mutqin { background: linear-gradient(90deg, #10B981, #059669); }
.bar-lancar { background: linear-gradient(90deg, #34D399, #10B981); }
.bar-sedang { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.bar-belum  { background: #CBD5E1; }

/* 2 Col Row */
.dewasa-prog-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .dewasa-prog-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.dewasa-target-box {
  background: var(--app-bg-warm, #F8FAFC);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .dewasa-target-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-target-icon {
  font-size: 1.4rem;
}

.dewasa-target-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
}

[data-theme="dark"] .dewasa-target-title {
  color: #F8FAFC;
}

.dewasa-target-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #64748B);
  margin-top: 2px;
  line-height: 1.35;
}

[data-theme="dark"] .dewasa-target-sub {
  color: #94A3B8;
}

.dewasa-prog-action-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dewasa-prog-action-btn:hover {
  background: #047857;
  color: #FFFFFF;
}

[data-theme="dark"] .dewasa-prog-action-btn {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .dewasa-prog-action-btn:hover {
  background: #059669;
  color: #FFFFFF;
}

/* Recent Activity List */
.dewasa-recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.dewasa-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--app-bg-warm, #F8FAFC);
  border: 1px solid var(--card-border, #E2E8F0);
  font-size: 0.78rem;
}

[data-theme="dark"] .dewasa-activity-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.dewasa-activity-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dewasa-activity-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

[data-theme="dark"] .dewasa-activity-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.dewasa-activity-name {
  font-weight: 700;
  color: var(--text-main, #1E293B);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .dewasa-activity-name {
  color: #F1F5F9;
}

.dewasa-activity-time {
  font-size: 0.7rem;
  color: var(--text-muted, #94A3B8);
  flex-shrink: 0;
}

/* ==========================================================================
   TAB 2: PER JUZ (30 JUZ CARDS)
   ========================================================================== */
.dewasa-prog-section-header {
  margin-bottom: 16px;
}

.dewasa-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  margin: 0 0 4px;
}

[data-theme="dark"] .dewasa-section-title {
  color: #F8FAFC;
}

.dewasa-section-sub {
  font-size: 0.8rem;
  color: var(--text-muted, #64748B);
  margin: 0;
}

[data-theme="dark"] .dewasa-section-sub {
  color: #94A3B8;
}

.dewasa-juz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .dewasa-juz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dewasa-juz-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dewasa-juz-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs, 0 1px 3px rgba(0,0,0,0.04));
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.dewasa-juz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .dewasa-juz-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-juz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dewasa-juz-pill {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  color: #047857;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 10px;
}

[data-theme="dark"] .dewasa-juz-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.dewasa-juz-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  direction: rtl;
}

[data-theme="dark"] .dewasa-juz-arabic {
  color: #F8FAFC;
}

.dewasa-juz-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.badge-status-selesai {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge-status-selesai {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.badge-status-sedang {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .badge-status-sedang {
  background: rgba(245, 158, 11, 0.25);
  color: #FBBF24;
}

.badge-status-belum {
  background: var(--app-bg-warm, #F1F5F9);
  color: var(--text-muted, #94A3B8);
  border: 1px solid var(--card-border, #E2E8F0);
}

[data-theme="dark"] .badge-status-belum {
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-juz-coverage {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  margin-bottom: 12px;
  line-height: 1.35;
}

[data-theme="dark"] .dewasa-juz-coverage {
  color: #94A3B8;
}

.dewasa-juz-prog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main, #334155);
  margin-bottom: 4px;
}

[data-theme="dark"] .dewasa-juz-prog-meta {
  color: #E2E8F0;
}

.dewasa-juz-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--app-bg-warm, #E2E8F0);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

[data-theme="dark"] .dewasa-juz-bar-bg {
  background: rgba(255, 255, 255, 0.08);
}

.dewasa-juz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.dewasa-juz-btn {
  background: var(--app-bg-warm, #F8FAFC);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dewasa-juz-btn:hover {
  background: #047857;
  color: #FFFFFF;
  border-color: #047857;
}

[data-theme="dark"] .dewasa-juz-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #34D399;
}

[data-theme="dark"] .dewasa-juz-btn:hover {
  background: #059669;
  color: #FFFFFF;
}

/* ==========================================================================
   TAB 3: PER SURAH (114 SURAH LIST)
   ========================================================================== */
.dewasa-surah-filter-toolbar {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark"] .dewasa-surah-filter-toolbar {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-surah-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--app-bg-warm, #F8FAFC);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 12px;
  padding: 0 12px;
}

[data-theme="dark"] .dewasa-surah-search-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-surah-search-box .search-icon {
  font-size: 0.95rem;
  color: var(--text-muted, #94A3B8);
  margin-right: 8px;
}

.dewasa-surah-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-main, #0F172A);
  outline: none;
}

[data-theme="dark"] .dewasa-surah-search-box input {
  color: #F8FAFC;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted, #94A3B8);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
}

.dewasa-surah-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.dewasa-surah-filter-chips::-webkit-scrollbar {
  display: none;
}

.dewasa-filter-chip {
  background: var(--app-bg-warm, #F1F5F9);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dewasa-filter-chip:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

[data-theme="dark"] .dewasa-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

.dewasa-filter-chip.active {
  background: #047857 !important;
  color: #FFFFFF !important;
  border-color: #047857 !important;
}

[data-theme="dark"] .dewasa-filter-chip.active {
  background: #059669 !important;
}

/* Surah Cards List */
.dewasa-surah-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dewasa-surah-item-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs, 0 1px 3px rgba(0,0,0,0.03));
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.dewasa-surah-item-card:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .dewasa-surah-item-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

.dewasa-surah-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .dewasa-surah-num-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.dewasa-surah-main-col {
  flex: 1;
  min-width: 0;
}

.dewasa-surah-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.dewasa-surah-title-latin {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .dewasa-surah-title-latin {
  color: #F8FAFC;
}

.dewasa-surah-title-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #047857;
  direction: rtl;
  margin-left: 8px;
}

[data-theme="dark"] .dewasa-surah-title-arabic {
  color: #34D399;
}

.dewasa-surah-sub-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  margin-bottom: 6px;
}

[data-theme="dark"] .dewasa-surah-sub-meta {
  color: #94A3B8;
}

.dewasa-surah-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dewasa-surah-bar-bg {
  flex: 1;
  height: 5px;
  background: var(--app-bg-warm, #E2E8F0);
  border-radius: 6px;
  overflow: hidden;
}

[data-theme="dark"] .dewasa-surah-bar-bg {
  background: rgba(255, 255, 255, 0.08);
}

.dewasa-surah-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.dewasa-surah-count-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  white-space: nowrap;
}

[data-theme="dark"] .dewasa-surah-count-text {
  color: #CBD5E1;
}

.dewasa-surah-action-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* ==========================================================================
   TAB 4: KALENDER AKTIVITAS HAFALAN
   ========================================================================== */
.dewasa-calendar-main-card {
  padding: 20px;
}

.dewasa-calendar-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dewasa-cal-nav-btn {
  background: var(--app-bg-warm, #F1F5F9);
  border: 1px solid var(--card-border, #E2E8F0);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  cursor: pointer;
  transition: all 0.2s;
}

.dewasa-cal-nav-btn:hover {
  background: #047857;
  color: #FFFFFF;
}

[data-theme="dark"] .dewasa-cal-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
}

.dewasa-cal-nav-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
}

[data-theme="dark"] .dewasa-cal-nav-title {
  color: #F8FAFC;
}

.dewasa-calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted, #64748B);
  margin-bottom: 8px;
}

[data-theme="dark"] .dewasa-calendar-weekdays-row {
  color: #94A3B8;
}

.dewasa-calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dewasa-cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  position: relative;
}

.dewasa-cal-day-cell:hover {
  border-color: #10B981;
}

.dewasa-cal-day-cell.is-today {
  background: #047857 !important;
  color: #FFFFFF !important;
  border-color: #065F46 !important;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.3);
}

.dewasa-cal-day-cell.has-activity {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .dewasa-cal-day-cell.has-activity {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

.dewasa-cal-day-cell.is-selected {
  outline: 2px solid #F59E0B;
  outline-offset: 1px;
}

.dewasa-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10B981;
  margin-top: 2px;
}

.dewasa-cal-day-cell.is-today .dewasa-cal-dot {
  background: #FFFFFF;
}

.dewasa-calendar-detail-card {
  padding: 18px;
}

.dewasa-cal-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dewasa-cal-detail-icon {
  font-size: 1.25rem;
}

.dewasa-cal-detail-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
}

[data-theme="dark"] .dewasa-cal-detail-title {
  color: #F8FAFC;
}

.dewasa-cal-detail-content {
  font-size: 0.82rem;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
}

[data-theme="dark"] .dewasa-cal-detail-content {
  color: #94A3B8;
}

/* Ayah Hafal Toggle Button in Quran Reader */
.dewasa-ayah-hafal-btn {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.dewasa-ayah-hafal-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
}

.dewasa-ayah-hafal-btn.is-memorized {
  background: #047857;
  color: #FFFFFF;
  border-color: #047857;
}

[data-theme="dark"] .dewasa-ayah-hafal-btn {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.25);
}

[data-theme="dark"] .dewasa-ayah-hafal-btn.is-memorized {
  background: #059669;
  color: #FFFFFF;
}


/* ==========================================================================
   CLEAN HUMAN-CRAFTED MUROJAAH SCREEN
   ========================================================================== */
.murojaah-daily-compact-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid rgba(4, 120, 87, 0.18);
  border-left: 4px solid #047857;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .murojaah-daily-compact-card {
  background: #1E293B;
  border-color: rgba(16, 185, 129, 0.25);
  border-left-color: #10B981;
}
.murojaah-daily-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.murojaah-daily-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
[data-theme="dark"] .murojaah-daily-kicker {
  color: #34D399;
}
.murojaah-daily-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
}
.murojaah-daily-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #047857;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.22);
}
.murojaah-compact-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.murojaah-compact-pills .daily-surah-pill {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.murojaah-compact-pills .daily-surah-pill span {
  color: #0F172A !important;
}
[data-theme="dark"] .murojaah-compact-pills .daily-surah-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #F1F5F9 !important;
}
[data-theme="dark"] .murojaah-compact-pills .daily-surah-pill span {
  color: #F1F5F9 !important;
}
.murojaah-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 4px 2px 10px 2px;
}
.murojaah-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .murojaah-clean-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
.murojaah-clean-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--card-border, #E2E8F0);
  border-radius: 16px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.murojaah-clean-card:hover {
  transform: translateY(-2px);
  border-color: #10B981;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.08);
}
[data-theme="dark"] .murojaah-clean-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}
.murojaah-clean-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.murojaah-clean-icon.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #047857; }
.murojaah-clean-icon.icon-amber   { background: rgba(245, 158, 11, 0.14); color: #B45309; }
.murojaah-clean-icon.icon-teal    { background: rgba(20, 184, 166, 0.14); color: #0F766E; }
.murojaah-clean-icon.icon-orange  { background: rgba(249, 115, 22, 0.14); color: #C2410C; }
.murojaah-clean-icon.icon-blue    { background: rgba(59, 130, 246, 0.14); color: #1D4ED8; }
.murojaah-clean-icon.icon-rose    { background: rgba(244, 63, 94, 0.14);  color: #BE123C; }
.murojaah-clean-icon.icon-purple  { background: rgba(139, 92, 246, 0.14); color: #6D28D9; }
[data-theme="dark"] .murojaah-clean-icon.icon-emerald { color: #34D399; }
[data-theme="dark"] .murojaah-clean-icon.icon-amber   { color: #FBBF24; }
[data-theme="dark"] .murojaah-clean-icon.icon-teal    { color: #2DD4BF; }
[data-theme="dark"] .murojaah-clean-icon.icon-orange  { color: #FB923C; }
[data-theme="dark"] .murojaah-clean-icon.icon-blue    { color: #60A5FA; }
[data-theme="dark"] .murojaah-clean-icon.icon-rose    { color: #FB7185; }
[data-theme="dark"] .murojaah-clean-icon.icon-purple  { color: #A78BFA; }
.murojaah-clean-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  line-height: 1.25;
}
.murojaah-clean-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  line-height: 1.35;
}
.murojaah-difficult-clean-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--card-border, #E2E8F0);
  border-radius: 16px;
  padding: 14px 16px;
}
[data-theme="dark"] .murojaah-difficult-clean-card {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Bottom Sheet Drawer Solid Surface */
.bottom-sheet-content {
  background: var(--bg-app, #F8FAFC);
  color: var(--text-main, #0F172A);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .bottom-sheet-content {
  background: #0F172A;
  color: #F8FAFC;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
