/* ==========================================================================
   RISALAH KAMI — TETRALOGI FIKRAH AL-IMAM HASAN AL-BANNA
   Style Sheet: Al-Raqā'iq & Tanẓīr Aesthetics
   Palet: Deep Forest Midnight + Emerald Haraki + Amiri Gold + Soft Rose Pink
   ========================================================================== */

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

:root {
  /* Dark Theme (Default) — Al-Raqaiq Deep Midnight Emerald */
  --bg-app: #061712;
  --bg-sidebar: #09201A;
  --bg-card: rgba(14, 32, 26, 0.84);
  --bg-card-hover: rgba(20, 46, 36, 0.94);
  --bg-header: rgba(6, 23, 18, 0.94);
  --bg-input: #0E241E;

  --border-subtle: rgba(56, 189, 248, 0.22);
  --border-card: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(16, 185, 129, 0.35);

  /* Brand Accents — Al-Raqaiq Emerald, Radiant Gold & Soft Rose Pink */
  --gold-primary: #F59E0B;
  --gold-light: #FDE047;
  --gold-amiri: #FFD700;
  --gold-dark: #B45309;
  --gold-glow: rgba(245, 158, 11, 0.35);

  --emerald-primary: #10B981;
  --emerald-light: #34D399;
  --emerald-dark: #064E3B;
  --emerald-glow: rgba(16, 185, 129, 0.4);

  --pink-soft: #F43F5E;
  --pink-light: #FB7185;
  --pink-dark: #BE123C;
  --pink-glow: rgba(244, 63, 94, 0.28);

  --cyan-primary: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.25);

  /* Typography */
  --text-main: #F0FDF4;
  --text-secondary: #CBD5E1;
  --text-muted: #84A396;
  --text-gold: #FDE047;

  --font-sans: 'Plus Jakarta Sans', 'Almarai', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-outfit: 'Outfit', 'Almarai', sans-serif;
  --font-arabic: 'Almarai', 'Amiri', sans-serif;
  --font-almarai: 'Almarai', sans-serif;
  --font-quran: 'Amiri', serif;
  --font-serif: 'Merriweather', Georgia, serif;

  --reader-font-size: 1.06rem;
  --reader-line-height: 1.85;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.18);
}

[data-theme="light"] {
  --bg-app: #F0F6F3;
  --bg-sidebar: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #F8FAF9;
  --bg-header: rgba(255, 255, 255, 0.96);
  --bg-input: #E6EFEA;

  --border-subtle: rgba(5, 150, 105, 0.25);
  --border-card: rgba(0, 0, 0, 0.08);

  --text-main: #062319;
  --text-secondary: #2C4A3E;
  --text-muted: #5A786C;
  --text-gold: #B45309;

  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-primary);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--gold-light), var(--pink-soft));
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   Header (Al-Raqaiq Style)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.icon-btn-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--emerald-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.icon-btn-menu:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: scale(1.05);
}

.brand-text h1 {
  font-family: var(--font-outfit);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 25%, var(--gold-light) 65%, var(--emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.brand-text .ar-badge {
  font-family: var(--font-arabic) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-primary) !important;
  -webkit-text-fill-color: var(--gold-primary) !important;
  text-shadow: 0 0 12px var(--gold-glow);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-tool-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.22) 100%);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.header-tool-btn:hover {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #000000;
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* Header Mode Tabs (Versi Penuh, Ringkasan, Mutiara Hikmah) */
.header-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 34, 26, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 5px;
}

.header-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.header-tab-btn:hover {
  color: var(--text-main);
}

.header-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.header-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.header-icon-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: scale(1.05);
}

.header-icon-btn.download-highlight {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(245, 158, 11, 0.15));
  border-color: var(--pink-soft);
  color: var(--pink-light);
}

.font-controls {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.pill-btn:hover {
  background: var(--bg-card-hover);
  color: var(--emerald-light);
}

/* ==========================================================================
   4 Risalah Tabs Bar (Tetralogi)
   ========================================================================== */
.risalah-nav {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 68px;
  z-index: 45;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.45rem 1.25rem;
  gap: 0.75rem;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.risalah-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.risalah-tab:hover {
  border-color: var(--gold-light);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.risalah-tab.active {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald-primary) 100%);
  color: #FFFFFF;
  border-color: var(--emerald-light);
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.tab-badge {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-family: monospace;
  color: var(--gold-light);
}

.tab-ar {
  font-family: var(--font-arabic) !important;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-left: 3px;
}

/* ==========================================================================
   Main Layout & Workspace
   ========================================================================== */
.main-layout {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  position: relative;
  min-height: calc(100vh - 125px);
}

/* Chapter Sidebar (Al-Raqaiq Card Style) */
.chapter-sidebar {
  width: 330px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
  height: calc(100vh - 125px);
  position: sticky;
  top: 125px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 1.2rem;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.sidebar-search-wrap {
  display: flex;
  align-items: center;
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-search-wrap:focus-within {
  border-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}

.search-inner-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-right: 8px;
}

.sidebar-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.82rem;
  width: 100%;
}

/* Sidebar Feature Cards (Al-Raqaiq Style) */
.sidebar-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.feat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: var(--transition);
}

.feat-card:hover {
  transform: translateY(-2px);
}

.feat-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(14, 34, 26, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.feat-gold:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.feat-pink {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(14, 34, 26, 0.95) 100%);
  border-color: rgba(244, 63, 94, 0.3);
}

.feat-pink:hover {
  border-color: var(--pink-soft);
  box-shadow: 0 4px 14px var(--pink-glow);
}

.feat-cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 34, 26, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.feat-cyan:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.feat-icon {
  font-size: 1.1rem;
}

.feat-gold .feat-icon {
  color: var(--gold-light);
}

.feat-pink .feat-icon {
  color: var(--pink-soft);
}

.feat-cyan .feat-icon {
  color: var(--cyan-primary);
}

.feat-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-left: 10px;
}

.feat-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.feat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.feat-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-outfit);
}

.badge-gold {
  background: var(--gold-primary);
  color: #000000;
}

.badge-pink {
  background: var(--pink-soft);
  color: #FFFFFF;
}

.badge-cyan {
  background: var(--cyan-primary);
  color: #000000;
}

.sidebar-section-title {
  padding: 8px 12px;
  background: rgba(14, 32, 26, 0.95);
  border-left: 3px solid var(--emerald-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.8rem;
}

.sidebar-section-title span {
  font-size: 0.7rem;
  color: var(--pink-soft);
  font-weight: 800;
}

.sidebar-section-title h4 {
  font-size: 0.92rem;
  color: var(--text-main);
}

/* Chapter List Items */
.chapter-list {
  list-style: none;
}

.chapter-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  transition: var(--transition);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.chapter-item:hover {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-main);
  transform: translateX(3px);
}

.chapter-item.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(244, 63, 94, 0.15) 100%);
  border-color: var(--emerald-primary);
  color: #FFFFFF;
  font-weight: 700;
}

.ch-num {
  font-size: 0.74rem;
  color: var(--gold-light);
  font-family: monospace;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.ch-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.45;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.title-sub-wrap {
  display: inline-block;
  white-space: normal;
  color: var(--text-muted);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Di dalam senarai sidebar skroll: Bawa turun seluruh kurungan ke baris baharu dengan margin kemas & elak keluar kotak */
.chapter-item .title-sub-wrap {
  display: block !important;
  margin-top: 6px !important;
  margin-bottom: 2px;
  font-size: 0.80rem;
  line-height: 1.4;
  color: #94A3B8;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .chapter-item .title-sub-wrap {
  color: #64748B;
}

/* Memastikan kurungan pembuka dan penutup tidak terasing atau tergantung dan bebas wrap */
.title-sub-wrap,
.content-block h3 .title-sub-wrap {
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  vertical-align: baseline;
}

.title-bracket {
  display: inline;
  color: inherit;
  opacity: 0.85;
}

.title-sub-wrap .arabic-inline-almarai,
.chapter-item .arabic-inline-almarai {
  display: inline !important;
  direction: rtl !important;
  unicode-bidi: isolate;
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.05em !important;
  font-weight: 700 !important;
  margin: 0 2px !important;
  vertical-align: baseline;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.35);
}

.arabic-inline-almarai {
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.06em !important;
  font-weight: 700 !important;
  color: var(--gold-light, #FDE047) !important;
  display: inline-block;
  direction: rtl !important;
  margin: 0 3px;
  vertical-align: baseline;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.35);
  letter-spacing: normal;
}

.sidebar-overlay {
  display: none;
}

/* ==========================================================================
   Content Workspace & Hero (Al-Raqaiq Style)
   ========================================================================== */
.content-workspace {
  flex-grow: 1;
  padding: 1.5rem 2.2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Hero Card — Al-Raqaiq Style dengan Cyan Border Glow */
.hero-card {
  background: linear-gradient(135deg, rgba(6, 23, 18, 0.96) 0%, rgba(14, 38, 30, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 30, 64, 0.4);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan-primary);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-soft);
  box-shadow: 0 0 8px var(--pink-glow);
}

.hero-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.hero-main-title {
  font-family: var(--font-outfit);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.hero-ar-title {
  font-family: var(--font-arabic) !important;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light) !important;
  text-shadow: 0 0 16px var(--gold-glow);
  direction: rtl;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  background: rgba(6, 23, 18, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-emerald {
  color: var(--emerald-light);
}

.text-blue {
  color: var(--cyan-primary);
}

.text-pink {
  color: var(--pink-light);
}

.text-green {
  color: #4ADE80;
}

.text-gold {
  color: var(--gold-light);
}

.meta-pill.status-offline {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: #86EFAC;
}

/* ==========================================================================
   Exclusive View Panels (Mod Paparan Berasingan & Eksklusif)
   Hanya satu paparan wujud dan terpapar pada satu-satu masa:
   1. Versi Penuh sahaja (Full Text Reader)
   2. Ringkasan sahaja (Executive Summary)
   3. Mutiara Hikmah sahaja (Golden Quotes)
   4. Ummah & PBI sahaja (Kajian Model 2026)
   ========================================================================== */
.view-panel {
  display: none !important;
}

.view-panel.active {
  display: block !important;
  animation: fadeInPanel 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Subheading Banner (Al-Raqaiq Style)
   ========================================================================== */
.subheading-banner {
  background: linear-gradient(135deg, rgba(14, 38, 30, 0.95) 0%, rgba(6, 23, 18, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald-primary);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.banner-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--pink-soft);
  letter-spacing: 0.06em;
}

.banner-arabic-gold {
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-light) !important;
  text-shadow: 0 0 12px var(--gold-glow);
  direction: rtl;
  letter-spacing: normal;
}

.banner-title {
  font-family: var(--font-outfit);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

/* ==========================================================================
   Ayat Al-Quran & Hadis Card (Amiri Gold di Atas + Terjemahan di Bawah)
   ========================================================================== */
.quran-verse-card {
  background: linear-gradient(135deg, rgba(14, 38, 30, 0.9) 0%, rgba(9, 26, 20, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin: 1.8rem 0;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* 1. Teks Arab Al-Quran di Atas (Amiri Gold Menyala, Besar & Berbaris) */
.quran-arabic {
  font-family: 'Amiri', serif !important;
  font-size: 1.68rem;
  font-weight: 700;
  color: var(--gold-amiri) !important;
  text-align: right;
  direction: rtl;
  line-height: 2.2 !important;
  font-style: normal !important;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.32);
}

.verse-arabic {
  font-family: 'Amiri', serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: var(--gold-amiri, #FBBF24) !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  direction: rtl;
  text-align: center;
  line-height: 2.2 !important;
  margin-bottom: 0.85rem;
}

/* 2. Terjemahan di Bawah */
.quran-translation {
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.8;
  font-style: italic;
}

.translation-text {
  margin-bottom: 0.7rem;
}

/* 3. Rujukan Surah / Hadis Berwarna Pink Soft */
.quran-reference {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-light);
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}

.ref-icon {
  font-size: 0.72rem;
  color: var(--gold-light);
}

/* Poetry Arabic Box */
.poetry-arabic-box {
  font-family: 'Amiri', serif !important;
  font-size: 1.45rem;
  color: var(--gold-light);
  text-align: center;
  direction: rtl;
  line-height: 2.1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1.4rem 0;
  border: 1px solid var(--border-card);
}

/* Chapter Card (Teks Penuh Reader) */
.chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  font-family: var(--font-serif);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  color: var(--text-main);
}

.chapter-heading {
  display: none;
  /* Dilindungi oleh Subheading Banner */
}

.chapter-card p {
  margin-bottom: 1.3rem;
  text-align: justify;
}

.chapter-card strong {
  font-family: var(--font-sans);
  color: #FFFFFF;
}

.content-list {
  margin: 1.2rem 0 1.5rem 1.8rem;
}

.content-list li {
  margin-bottom: 0.7rem;
  padding-left: 0.4rem;
}

.mindmap-pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: 0.8rem;
  color: #6EE7B7;
  margin: 1.6rem 0;
}

/* Pager Navigation */
.chapter-nav-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
}

.pager-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  flex: 1;
  max-width: 48%;
  transition: var(--transition);
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--gold-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pager-btn.next-btn {
  justify-content: flex-end;
}

.pager-text {
  display: flex;
  flex-direction: column;
}

.pager-text.text-right {
  text-align: right;
}

.pager-label {
  font-size: 0.72rem;
  color: var(--pink-soft);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pager-target {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ==========================================================================
   Summary & Quotes Views
   ========================================================================== */
.section-intro-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
}

.intro-icon {
  font-size: 1.6rem;
}

.intro-text h3 {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.intro-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.summary-card:hover {
  border-color: var(--pink-soft);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--pink-glow);
}

.summary-card-header {
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.summary-card h4 {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.summary-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.3rem;
}

.quote-card {
  background: linear-gradient(135deg, rgba(14, 38, 30, 0.94) 0%, rgba(9, 26, 20, 0.98) 100%);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.quote-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--gold-glow);
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quote-number {
  font-family: var(--font-outfit);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.quote-theme-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pink-light);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.quote-ar-snippet {
  font-family: 'Amiri', serif !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F6E08E !important;
  text-align: right;
  direction: rtl;
  line-height: 2.1;
  margin: 0.4rem 0 0.8rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: normal;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  border-right: 3px solid rgba(246, 224, 142, 0.45);
}

/* 6. UJIAN & PERBANDINGAN FONT ARAB MUTIARA HIKMAH (ALMARAI VS AMIRI) */
.font-compare-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 8px 16px;
  margin: 0 0 1.6rem 0;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.font-compare-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #94A3B8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.font-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main, #E2E8F0);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.font-pill-btn:hover {
  border-color: #FDE047;
  color: #FDE047;
  background: rgba(253, 224, 71, 0.08);
}
.font-pill-btn.active {
  background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
  color: #0F172A;
  border-color: #EAB308;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(234, 179, 8, 0.35);
}

/* Amiri Gold Style for Quotes */
.quote-ar-snippet.font-amiri-style {
  font-family: 'Amiri', serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #F6E08E !important;
  line-height: 2.15 !important;
  border-right: 3px solid #EAB308 !important;
}

/* Almarai Gold Style for Quotes */
.quote-ar-snippet.font-almarai-style {
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #F6E08E !important;
  line-height: 1.95 !important;
  border-right: 3px solid #3B82F6 !important;
}

.quote-font-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  margin-left: auto;
  letter-spacing: 0.02em;
}
.quote-font-badge.badge-almarai {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.quote-font-badge.badge-amiri {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
}

.quote-fasal-ref {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-card);
}

.quote-action-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.quote-action-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 8, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  margin-right: 1rem;
}

.search-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.92rem;
  flex-grow: 1;
  padding: 0 0.5rem;
}

.search-results {
  padding: 1.2rem;
  overflow-y: auto;
  max-height: 55vh;
}

.search-hit-item {
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 0.6rem;
  cursor: pointer;
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.search-hit-item:hover {
  border-color: var(--gold-light);
  transform: translateX(4px);
}

.hit-risalah {
  font-size: 0.72rem;
  color: var(--pink-soft);
  font-weight: 800;
}

.hit-title {
  font-size: 0.92rem;
  color: #FFFFFF;
  font-weight: 700;
  margin: 0.2rem 0;
}

.hit-snippet {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Download Modal */
.download-card {
  max-width: 580px;
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
}

.download-info {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.item-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.badge {
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge.b-green {
  background: #064E3B;
  color: #6EE7B7;
}

.badge.b-blue {
  background: #1E3A8A;
  color: #93C5FD;
}

.badge.b-amber {
  background: #78350F;
  color: #FCD34D;
}

.badge.b-red {
  background: #7F1D1D;
  color: #FCA5A5;
}

.dl-btn {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.dl-btn.docx {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border-color: rgba(37, 99, 235, 0.35);
}

.dl-btn.docx:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.dl-btn.md {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.35);
}

.dl-btn.md:hover {
  background: #10B981;
  color: #FFFFFF;
}

/* ==========================================================================
   UMMAH FADHILAH, KUASA NASIONAL & PBI VIEW STYLING
   ========================================================================== */
.header-tab-btn.tab-ummah-pbi {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 30, 64, 0.5);
  color: var(--cyan-primary);
}

.header-tab-btn.tab-ummah-pbi:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #FFFFFF;
  border-color: #38bdf8;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.header-tab-btn.tab-ummah-pbi.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #FFFFFF !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px var(--cyan-glow) !important;
}

.pbi-hero-card {
  background: linear-gradient(135deg, rgba(6, 23, 38, 0.96) 0%, rgba(14, 38, 40, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.2);
}

.pbi-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.pbi-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pbi-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pillar-emerald {
  border-left: 4px solid var(--emerald-primary);
}

.pillar-emerald:hover {
  border-color: var(--emerald-light);
  box-shadow: 0 8px 24px var(--emerald-glow);
}

.pillar-blue {
  border-left: 4px solid var(--cyan-primary);
}

.pillar-blue:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.pillar-rose {
  border-left: 4px solid var(--pink-soft);
}

.pillar-rose:hover {
  border-color: var(--pink-light);
  box-shadow: 0 8px 24px var(--pink-glow);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.pillar-icon {
  font-size: 1.5rem;
}

.pillar-emerald .pillar-icon {
  color: var(--emerald-light);
}

.pillar-blue .pillar-icon {
  color: var(--cyan-primary);
}

.pillar-rose .pillar-icon {
  color: var(--pink-soft);
}

.pillar-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-emerald {
  background: var(--emerald-dark);
  color: #A7F3D0;
}

.badge-blue {
  background: #1E3A8A;
  color: #93C5FD;
}

.badge-rose {
  background: #881337;
  color: #FDA4AF;
}

.pbi-pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.pillar-ar {
  font-family: var(--font-arabic) !important;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  display: block;
}

.pbi-pillar-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.pillar-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillar-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
  position: relative;
}

.pillar-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-light);
}

/* Matriks Table Card */
.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

.matrix-header {
  margin-bottom: 1.4rem;
}

.matrix-header h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.3rem;
}

.matrix-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.matrix-table-wrap {
  overflow-x: auto;
}

.pbi-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.pbi-matrix-table th {
  background: rgba(6, 23, 18, 0.95);
  color: var(--gold-light);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.pbi-matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.pbi-matrix-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.b-cyan {
  background: #0E7490;
  color: #CFFAFE;
}

.download-highlight-item {
  border-color: var(--cyan-primary) !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(14, 32, 26, 0.9) 100%) !important;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-sidebar);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .header-mode-tabs {
    display: none;
    /* Ditolak ke sub-bar jika mobile */
  }

  .tool-btn-text {
    display: none;
  }

  .chapter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }

  .chapter-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 95;
    backdrop-filter: blur(4px);
  }

  .icon-btn-sm {
    display: block;
  }

  .content-workspace {
    padding: 1.2rem 1rem 3rem;
  }

  .hero-main-title {
    font-size: 1.5rem;
  }

  .hero-ar-title {
    font-size: 1.6rem;
  }

  .chapter-card {
    padding: 1.4rem;
  }

  .quran-arabic {
    font-size: 1.4rem;
  }
}


/* ==========================================================
   PENAMBAHBAIKAN RISALAH 01: KHAT ARAB, HADIS, PUISI & INFOGRAFIK
   ========================================================== */

/* 1. KHAT ARAB PAPARAN UTAMA (ALMARAI GOLD) */
.chapter-card h1 [lang="ar"],
.chapter-card h2 [lang="ar"],
.chapter-card h3 [lang="ar"],
.chapter-card h4 [lang="ar"],
.chapter-card h5 [lang="ar"],
.chapter-card .arabic-inline-almarai,
.chapter-title [lang="ar"],
.arabic-inline-almarai {
  font-family: 'Almarai', sans-serif !important;
  font-size: 1.08em !important;
  font-weight: 700 !important;
  color: var(--gold-light, #FDE047) !important;
  direction: rtl !important;
  display: inline-block;
  margin: 0 4px;
  vertical-align: baseline;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.4);
  letter-spacing: normal;
}

/* 2. TEKS HADITH (AMIRI GOLD & ITALIC TRANSLATION) */
.hadith-card {
  background: linear-gradient(135deg, rgba(20, 35, 30, 0.8) 0%, rgba(12, 22, 18, 0.9) 100%);
  border-right: 4px solid #FFD700;
  border-left: 1px solid rgba(255, 215, 0, 0.2);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  margin: 1.6rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hadith-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 0.75rem;
}

.hadith-arabic {
  font-family: 'Amiri', serif !important;
  font-size: 1.48rem !important;
  font-weight: 700 !important;
  color: #FFD700 !important;
  line-height: 2.2 !important;
  text-align: right;
  direction: rtl;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.hadith-arabic.hadith-arabic-white,
.hadith-arabic-white {
  color: #FFFFFF !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25) !important;
}

.arabic-amiri-white {
  font-family: 'Amiri', serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25) !important;
  font-style: normal !important;
  line-height: 2.2 !important;
}

.hadith-translation {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.98rem;
  font-style: italic !important;
  color: #E2E8F0;
  line-height: 1.75;
}

.hadith-ref {
  font-size: 0.84rem;
  color: #94A3B8;
  margin-top: 0.6rem;
  text-align: right;
  font-style: normal;
}

/* 3. PUISI ARAB (AMIRI GOLD & DUAL STYLING) */
.poetry-card {
  background: linear-gradient(135deg, rgba(30, 26, 46, 0.75) 0%, rgba(18, 15, 28, 0.85) 100%);
  border-right: 4px solid #F59E0B;
  border-left: 1px solid rgba(245, 158, 11, 0.2);
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  margin: 1.6rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.poetry-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 0.85rem;
}

.poetry-arabic {
  font-family: 'Amiri', serif !important;
  font-size: 1.42rem !important;
  font-weight: 700 !important;
  color: #FBBF24 !important;
  line-height: 2.3 !important;
  direction: rtl;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.poetry-translation {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.96rem;
  font-style: italic !important;
  color: #E2E8F0;
  line-height: 1.75;
}

/* 4. TEKS AL-QURAN RASM UTHMANI */
.quran-card,
.quran-verse-card {
  background: linear-gradient(135deg, rgba(16, 40, 32, 0.85) 0%, rgba(10, 25, 20, 0.95) 100%);
  border-right: 4px solid #10B981;
  border-left: 1px solid rgba(16, 185, 129, 0.25);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.quran-arabic {
  font-family: 'Amiri', serif !important;
  font-size: 1.58rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 2.4 !important;
  text-align: right;
  direction: rtl;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.quran-translation {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 0.98rem;
  font-style: italic !important;
  color: #CBD5E1;
  line-height: 1.75;
}

/* 5. INFOGRAFIK TIGA RUKUN WASILAH (FASAL 20) */
.infographic-container {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 18, 30, 0.98) 100%);
  border: 1.5px solid rgba(253, 224, 71, 0.35);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.infographic-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.infographic-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FDE047;
  background: rgba(253, 224, 71, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(253, 224, 71, 0.3);
  margin-bottom: 0.5rem;
}

.infographic-title {
  font-family: var(--font-outfit, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.3rem 0;
  letter-spacing: 0.04em;
}

.infographic-subtitle {
  font-size: 1.2rem;
  color: #FDE047;
  margin-top: 0.3rem;
}

.infographic-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  border-radius: 14px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.pillar-card.pillar-manhaj {
  border-top: 4px solid #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.pillar-card.pillar-amilin {
  border-top: 4px solid #10B981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.pillar-card.pillar-qiyadah {
  border-top: 4px solid #3B82F6;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.pillar-top-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 0.4rem;
}

.pillar-arabic-title {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.pillar-malay-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 0.85rem;
}

.pillar-points {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.pillar-points li {
  margin-bottom: 0.45rem;
}
/* 5 Fasa Sunnah Kebangkitan Ummah (Kisah Nabi Musa AS) */
.pillar-card.phase-dhoaf {
  border-top: 4px solid #EF4444;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.pillar-card.phase-zaamah {
  border-top: 4px solid #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.pillar-card.phase-shiraa {
  border-top: 4px solid #8B5CF6;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.pillar-card.phase-iman {
  border-top: 4px solid #10B981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.pillar-card.phase-intishar {
  border-top: 4px solid #EAB308;
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Penjajaran Rapi Kurungan Bersama Teks Arab */
.arabic-inline-wrap {
  display: inline-block !important;
  white-space: nowrap !important;
  vertical-align: baseline;
}


/* ==========================================================================
   Intisari Fasal & Quick Summary Modal Styling (Pilihan 3)
   ========================================================================== */
.banner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-quick-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body, inherit);
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-quick-summary i {
  color: #FBBF24;
  font-size: 0.88rem;
}

.btn-quick-summary:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

/* Highlighted Active Summary Card in Grid */
.summary-card.active-highlight-card {
  border: 2px solid #F59E0B !important;
  background: linear-gradient(145deg, rgba(20, 50, 38, 0.95) 0%, rgba(12, 32, 24, 0.98) 100%) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), 0 8px 30px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  transform: scale(1.015);
  z-index: 2;
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-reading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #FDE047;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(253, 224, 71, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

/* Quick Summary Modal Card */
.summary-modal-card {
  max-width: 620px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(14, 38, 30, 0.98) 0%, rgba(8, 22, 17, 0.99) 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2);
}

.summary-modal-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 14px;
}

.summary-modal-body {
  padding: 1.5rem 1.6rem;
}

.summary-modal-title {
  font-family: var(--font-outfit, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.summary-modal-divider {
  height: 2px;
  background: linear-gradient(90deg, #F59E0B 0%, transparent 100%);
  margin-bottom: 1.15rem;
}

.summary-modal-brief {
  font-family: var(--font-body, 'Merriweather', serif);
  font-size: 1.04rem;
  color: #E2E8F0;
  line-height: 1.85;
}

.summary-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.btn-modal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body, inherit);
}

.btn-modal-view-all {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid rgba(203, 213, 225, 0.3);
}

.btn-modal-view-all:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

.btn-modal-close-main {
  background: var(--emerald-primary, #059669);
  color: #FFFFFF;
  border: 1px solid var(--emerald-light, #10B981);
}

.btn-modal-close-main:hover {
  background: #10B981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}


/* ==========================================================================
   INFOGRAFIK 8 SISTEM KENEGARAAN ISLAM (Risalah 04 Fasal 06)
   ========================================================================== */
.summary-card-brief {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.systems-infographic {
  margin-top: 0.95rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
}

.infographic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.5rem;
}

.system-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #10B981;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.system-item:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.system-item .sys-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.system-item .sys-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.system-item .sys-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.system-item .sys-text strong {
  font-size: 0.8rem;
  color: #F8FAFC;
  font-weight: 700;
}

.system-item .sys-text small {
  font-size: 0.71rem;
  color: #94A3B8;
  margin-top: 1px;
}


/* Varian Amaran / Diagnosis Penyimpangan (Fasal 03) */
.systems-infographic.infographic-warning {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.08);
}

.infographic-badge-warning {
  color: #FCA5A5 !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.system-item.sys-item-warning {
  border-left-color: #EF4444 !important;
}

.system-item.sys-item-warning:hover {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1px);
}

.system-item.sys-item-warning .sys-num {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #FCA5A5 !important;
}


/* ==========================================================================
   KERANGKA PEDAGOGI & INFOGRAFIK RISALAH 01 (FASAL 01-04)
   ========================================================================== */
.pedagogical-infographic-card {
  margin: 2.2rem 0 1.5rem;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(145deg, rgba(14, 38, 30, 0.9) 0%, rgba(8, 22, 17, 0.98) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.p-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.p-info-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  font-size: 1rem;
  flex-shrink: 0;
}

.p-info-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #F8FAFC;
  font-weight: 700;
  font-family: var(--font-outfit, sans-serif);
}

.p-info-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.grid-4-pillars {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sys-pillar-active {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-2px);
}

.sys-pillar-active .sys-num {
  background: #F59E0B !important;
  color: #0F172A !important;
  font-weight: 900 !important;
}

.sys-pillar-active .sys-text strong {
  color: #FBBF24 !important;
}


/* ==========================================================================
   MATRIKS 4 TIPOLOGI MANUSIA (Risalah 01 Fasal 05)
   ========================================================================== */
.grid-typology-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.typo-card {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.typo-card .sys-icon {
  font-size: 1.1rem;
  margin-top: 2px;
}

.typo-card .sys-text strong {
  font-size: 0.85rem;
  margin-bottom: 2px;
  line-height: 1.25;
}

.typo-trait {
  font-size: 0.74rem;
  color: #CBD5E1;
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}

.typo-action {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.typo-action em {
  font-style: normal;
  font-weight: 700;
}

/* 1. Mukmin */
.typo-mukmin {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
}
.typo-mukmin:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}
.typo-mukmin .sys-num {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34D399 !important;
}
.typo-mukmin .typo-action em { color: #34D399; }

/* 2. Ragu-Ragu */
.typo-ragu {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.05);
}
.typo-ragu:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}
.typo-ragu .sys-num {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #FBBF24 !important;
}
.typo-ragu .typo-action em { color: #FBBF24; }

/* 3. Oportunis */
.typo-oportunis {
  border-left: 3.5px solid #F97316 !important;
  background: rgba(249, 115, 22, 0.05);
}
.typo-oportunis:hover {
  background: rgba(249, 115, 22, 0.12);
  transform: translateY(-1px);
}
.typo-oportunis .sys-num {
  background: rgba(249, 115, 22, 0.25) !important;
  color: #FB923C !important;
}
.typo-oportunis .typo-action em { color: #FB923C; }

/* 4. Prejudis */
.typo-prejudis {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.05);
}
.typo-prejudis:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}
.typo-prejudis .sys-num {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #F87171 !important;
}
.typo-prejudis .typo-action em { color: #F87171; }


/* ==========================================================================
   KONTRAS DUA JENIS KEIMANAN (Risalah 01 Fasal 08)
   ========================================================================== */
.grid-faith-compare {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.faith-card {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.faith-card .sys-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.faith-card .sys-text strong {
  font-size: 0.88rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.faith-trait {
  font-size: 0.75rem;
  color: #CBD5E1;
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.faith-diag {
  font-size: 0.72rem;
  color: #94A3B8;
  display: block;
  line-height: 1.4;
}

.faith-diag em {
  font-style: normal;
  font-weight: 700;
}

/* 1. Iman Lesu & Terbius */
.faith-lesu {
  border-left: 3.5px solid #64748B !important;
  background: rgba(100, 116, 139, 0.08);
}
.faith-lesu:hover {
  background: rgba(100, 116, 139, 0.16);
  transform: translateY(-1px);
}
.faith-lesu .sys-num {
  background: rgba(100, 116, 139, 0.25) !important;
  color: #CBD5E1 !important;
}
.faith-lesu .faith-diag em { color: #E2E8F0; }

/* 2. Iman Hidup & Membara */
.faith-hidup {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
}
.faith-hidup:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}
.faith-hidup .sys-num {
  background: rgba(245, 158, 11, 0.28) !important;
  color: #FBBF24 !important;
}
.faith-hidup .sys-text strong { color: #FBBF24; }
.faith-hidup .faith-diag em { color: #FBBF24; }


/* ==========================================================================
   KESYUMULAN ISLAM (Risalah 01 Fasal 12)
   ========================================================================== */
.grid-syumul-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.syumul-card {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
  transition: all 0.2s ease;
}

.syumul-card:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.syumul-card .sys-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.syumul-card .sys-text strong {
  font-size: 0.85rem;
  color: #F8FAFC;
  margin-bottom: 2px;
  line-height: 1.25;
}

.syumul-trait {
  font-size: 0.74rem;
  color: #34D399;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.syumul-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.syumul-scope-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(245, 158, 11, 0.25);
}

.scope-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.scope-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}


/* ==========================================================================
   TAKSONOMI PATRIOTISME (Risalah 01 Fasal 14)
   ========================================================================== */
.grid-wataniyyah-5 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.watan-card {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.watan-card .sys-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.watan-card .sys-text strong {
  font-size: 0.85rem;
  margin-bottom: 2px;
  line-height: 1.25;
}

.watan-trait {
  font-size: 0.74rem;
  color: #CBD5E1;
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}

.watan-status {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.watan-status em {
  font-style: normal;
  font-weight: 700;
}

/* Watan Diterima */
.watan-diterima {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
}
.watan-diterima:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}
.watan-diterima .sys-num {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34D399 !important;
}
.watan-diterima .watan-status em { color: #34D399; }

/* Watan Ditolak (Hizbiyyah) */
.watan-ditolak {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.05);
}
.watan-ditolak:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}
.watan-ditolak .sys-num {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #F87171 !important;
}
.watan-ditolak .watan-status em { color: #F87171; }

/* Sempadan Watan Banner */
.watan-creed-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
}
.watan-creed-banner .creed-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.watan-creed-banner .creed-text {
  font-size: 0.78rem;
  color: #FBBF24;
  line-height: 1.45;
}
.watan-creed-banner .creed-text strong {
  color: #FFFFFF;
}


/* ==========================================================================
   NERACA KEBANGSAAN (Risalah 01 Fasal 15)
   ========================================================================== */
.grid-qawmiyyah-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.qawm-card {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.qawm-card .sys-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.qawm-card .sys-text strong {
  font-size: 0.85rem;
  margin-bottom: 2px;
  line-height: 1.25;
}

.qawm-trait {
  font-size: 0.74rem;
  color: #CBD5E1;
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}

.qawm-status {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.qawm-status em {
  font-style: normal;
  font-weight: 700;
}

/* Qawmiyyah Diterima */
.qawm-diterima {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
}
.qawm-diterima:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}
.qawm-diterima .sys-num {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34D399 !important;
}
.qawm-diterima .qawm-status em { color: #34D399; }

/* Qawmiyyah Ditolak */
.qawm-ditolak {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.05);
}
.qawm-ditolak:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}
.qawm-ditolak .sys-num {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #F87171 !important;
}
.qawm-ditolak .qawm-status em { color: #F87171; }

/* Qawm Creed Banner */
.qawm-creed-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
}
.qawm-creed-banner .creed-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.qawm-creed-banner .creed-text {
  font-size: 0.78rem;
  color: #34D399;
  line-height: 1.45;
}
.qawm-creed-banner .creed-text strong {
  color: #FFFFFF;
}


/* ==========================================================================
   FIQH IKHTILAF (Risalah 01 Fasal 16)
   ========================================================================== */
.grid-khilaf-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.khilaf-card {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
  transition: all 0.2s ease;
}

.khilaf-card:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

.khilaf-card .sys-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.khilaf-card .sys-text strong {
  font-size: 0.85rem;
  color: #F8FAFC;
  margin-bottom: 2px;
  line-height: 1.25;
}

.khilaf-trait {
  font-size: 0.74rem;
  color: #34D399;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.khilaf-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

/* Golden Rule Banner */
.khilaf-golden-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
}

.khilaf-golden-banner .golden-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.khilaf-golden-banner .golden-text {
  font-size: 0.78rem;
  color: #FBBF24;
  line-height: 1.45;
}

.khilaf-golden-banner .golden-text strong {
  color: #FFFFFF;
}


/* ==========================================================================
   DIAGNOSIS 6 PENYAKIT UMAT (Risalah 01 Fasal 18)
   ========================================================================== */
.grid-penyakit-6 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.penyakit-diagnosis-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
}

.penyakit-diagnosis-banner .creed-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.penyakit-diagnosis-banner .creed-text {
  font-size: 0.78rem;
  color: #FCA5A5;
  line-height: 1.45;
}

.penyakit-diagnosis-banner .creed-text strong {
  color: #FFFFFF;
}

/* ==========================================================================
   TIGA RUKUN WASILAH KEBANGKITAN (Risalah 01 Fasal 20)
   ========================================================================== */
.grid-rukun-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.sys-item-manhaj {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.05);
}
.sys-item-manhaj:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}
.sys-item-manhaj .rukun-trait {
  color: #FBBF24;
}

.sys-item-amilin {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.05);
}
.sys-item-amilin:hover {
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}
.sys-item-amilin .rukun-trait {
  color: #34D399;
}

.sys-item-qiyadah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.05);
}
.sys-item-qiyadah:hover {
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}
.sys-item-qiyadah .rukun-trait {
  color: #38BDF8;
}

.rukun-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.rukun-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.rukun-wasilah-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
}

.rukun-wasilah-banner .creed-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.rukun-wasilah-banner .creed-text {
  font-size: 0.78rem;
  color: #A7F3D0;
  line-height: 1.45;
}

.rukun-wasilah-banner .creed-text strong {
  color: #FFFFFF;
}

/* ==========================================================================
   SERUAN BERGABUNG BAHU & KHATIMAH BAI'AH (Risalah 01 Fasal 21)
   ========================================================================== */
.infographic-khatimah {
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.infographic-badge-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%) !important;
  color: #FCD34D !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.khatimah-yusuf-call {
  text-align: center;
  padding: 0.85rem 1rem;
  margin: 0.6rem 0 0.85rem 0;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 10px;
}

.yusuf-quote-ar {
  font-family: 'Amiri', 'Almarai', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.yusuf-quote-my {
  font-size: 0.85rem;
  color: #F8FAFC;
  line-height: 1.4;
}

.yusuf-quote-my strong {
  color: #FCD34D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid-khatimah-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.sys-item-khatimah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.sys-item-khatimah:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.khatimah-trait {
  font-size: 0.74rem;
  color: #FBBF24;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.khatimah-sub {
  font-size: 0.71rem;
  color: #CBD5E1;
  display: block;
  line-height: 1.35;
}

.khatimah-pledge-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
}

.khatimah-pledge-banner .pledge-icon,
.khatimah-pledge-banner .creed-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.khatimah-pledge-banner .pledge-text,
.khatimah-pledge-banner .creed-text {
  font-size: 0.8rem;
  color: #FEF3C7;
  line-height: 1.45;
}

.khatimah-pledge-banner .pledge-text strong,
.khatimah-pledge-banner .creed-text strong {
  color: #FCD34D;
}

/* ==========================================================================
   NERACA PENILAIAN AL-QURAN & KOMUNIKASI DAKWAH (Risalah 02 Fasal 01-03)
   ========================================================================== */
.grid-miqyas-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.sys-item-miqyas {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.05);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

.sys-item-miqyas:hover {
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.sys-item-miqyas.sys-pillar-active {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-2px);
}

.sys-item-miqyas.sys-pillar-active .sys-num {
  background: #F59E0B !important;
  color: #0F172A !important;
  font-weight: 900 !important;
}

.sys-item-miqyas.sys-pillar-active .sys-text strong {
  color: #FBBF24 !important;
}

.sys-current-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  background: #F59E0B;
  color: #0F172A;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.miqyas-trait {
  font-size: 0.74rem;
  color: #38BDF8;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.sys-pillar-active .miqyas-trait {
  color: #FCD34D !important;
}

.miqyas-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.sys-pillar-active .miqyas-sub {
  color: #E2E8F0 !important;
}

.miqyas-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 8px;
}

.miqyas-banner .creed-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.miqyas-banner .creed-text {
  font-size: 0.78rem;
  color: #BAE6FD;
  line-height: 1.45;
}

.miqyas-banner .creed-text strong {
  color: #FFFFFF;
}

/* ==========================================================================
   MATRIKS 4 ORIENTASI HALUAN HIDUP DALAM AL-QURAN (Risalah 02 Fasal 04)
   ========================================================================== */
.grid-orientasi-4 {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.65rem;
}

.orientasi-card {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

.orientasi-card.syahwat {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.orientasi-card.syahwat:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}
.orientasi-card.syahwat .orientasi-trait {
  color: #CBD5E1;
}

.orientasi-card.perhiasan {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.orientasi-card.perhiasan:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.orientasi-card.perhiasan .orientasi-trait {
  color: #FBBF24;
}

.orientasi-card.perosak {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.orientasi-card.perosak:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.orientasi-card.perosak .orientasi-trait {
  color: #F87171;
}

.orientasi-card.mukmin {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}
.orientasi-card.mukmin:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.orientasi-card.mukmin .orientasi-trait {
  color: #34D399;
  font-weight: 800;
}
.orientasi-card.mukmin .sys-num {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

.orientasi-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.orientasi-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.orientasi-card.mukmin .orientasi-sub {
  color: #E2E8F0;
}

.orientasi-mandat-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
}

.orientasi-mandat-banner .creed-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.orientasi-mandat-banner .creed-text {
  font-size: 0.79rem;
  color: #D1FAE5;
  line-height: 1.45;
}

.orientasi-mandat-banner .creed-text strong {
  color: #FCD34D;
}

/* ==========================================================================
   KEWALIAN RABBANI VS KOLONIALISME BARAT (Risalah 02 Fasal 05)
   ========================================================================== */
.grid-kewalian-2,
.grid-muhasabah-2,
.grid-kausaliti-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.kewalian-card,
.muhasabah-card,
.kausaliti-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

.kewalian-card.islami,
.muhasabah-card.rabbani,
.kausaliti-card.siyadah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.kewalian-card.islami:hover,
.muhasabah-card.rabbani:hover,
.kausaliti-card.siyadah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}

.kewalian-card.barat {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.kewalian-card.barat:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}

.muhasabah-card.kebendaan,
.kausaliti-card.fatamorgana {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.muhasabah-card.kebendaan:hover,
.kausaliti-card.fatamorgana:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}

.kewalian-trait,
.muhasabah-trait,
.kausaliti-trait,
.sumber-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.kewalian-card.islami .kewalian-trait,
.muhasabah-card.rabbani .muhasabah-trait,
.kausaliti-card.siyadah .kausaliti-trait {
  color: #34D399;
}

.kewalian-card.barat .kewalian-trait {
  color: #F87171;
}

.muhasabah-card.kebendaan .muhasabah-trait,
.kausaliti-card.fatamorgana .kausaliti-trait {
  color: #FBBF24;
}

.kewalian-sub,
.muhasabah-sub,
.kausaliti-sub,
.sumber-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

.kewalian-mandat-banner,
.muhasabah-banner,
.kausaliti-banner,
.sumber-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.kewalian-mandat-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.kewalian-mandat-banner .creed-text {
  font-size: 0.78rem;
  color: #A7F3D0;
  line-height: 1.45;
}

.muhasabah-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.muhasabah-banner .creed-text {
  font-size: 0.78rem;
  color: #FCA5A5;
  line-height: 1.45;
}

.kausaliti-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.kausaliti-banner .creed-text {
  font-size: 0.78rem;
  color: #FEF3C7;
  line-height: 1.45;
}

/* ==========================================================================
   TIGA SUMBER RUJUKAN MANHAJ DAKWAH (Risalah 02 Fasal 08)
   ========================================================================== */
.grid-sumber-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.sumber-card {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.sumber-card.quran {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.sumber-card.quran:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.sumber-card.quran .sumber-trait {
  color: #34D399;
}

.sumber-card.sunnah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.sumber-card.sunnah:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.sumber-card.sunnah .sumber-trait {
  color: #FBBF24;
}

.sumber-card.salaf {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.sumber-card.salaf:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.sumber-card.salaf .sumber-trait {
  color: #38BDF8;
}

.sumber-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.sumber-banner .creed-text {
  font-size: 0.78rem;
  color: #D1FAE5;
  line-height: 1.45;
}
.sumber-banner .creed-text strong {
  color: #FCD34D;
}

/* ==========================================================================
   PENGORBANAN PEMUDA, DANA MANDIRI, POLITIK & KEBANGSAAN (R02 F09-F12)
   ========================================================================== */
.grid-pemuda-3,
.grid-qawmiyyah-rabbani-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.grid-dana-2,
.grid-politik-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.pemuda-card,
.dana-card,
.politik-card,
.qawmiyyah-rabbani-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 09: Pemuda */
.pemuda-card.waktu {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.pemuda-card.waktu:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.pemuda-card.waktu .pemuda-trait {
  color: #38BDF8;
}

.pemuda-card.keringat {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.pemuda-card.keringat:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.pemuda-card.keringat .pemuda-trait {
  color: #FBBF24;
}

.pemuda-card.poket {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.pemuda-card.poket:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.pemuda-card.poket .pemuda-trait {
  color: #34D399;
}

.pemuda-trait,
.dana-trait,
.politik-trait,
.qawmiyyah-rabbani-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.pemuda-sub,
.dana-sub,
.politik-sub,
.qawmiyyah-rabbani-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

/* Fasal 10: Dana */
.dana-card.mandiri {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.dana-card.mandiri:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.dana-card.mandiri .dana-trait {
  color: #34D399;
}

.dana-card.asing {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.dana-card.asing:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.dana-card.asing .dana-trait {
  color: #F87171;
}

/* Fasal 11: Politik */
.politik-card.syariah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.politik-card.syariah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.politik-card.syariah .politik-trait {
  color: #34D399;
}

.politik-card.hizbi {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.politik-card.hizbi:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.politik-card.hizbi .politik-trait {
  color: #F87171;
}

/* Fasal 12: Kebangsaan Rabbani */
.qawmiyyah-rabbani-card.tauhid {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.qawmiyyah-rabbani-card.tauhid:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.qawmiyyah-rabbani-card.tauhid .qawmiyyah-rabbani-trait {
  color: #34D399;
}

.qawmiyyah-rabbani-card.takwa {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.qawmiyyah-rabbani-card.takwa:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.qawmiyyah-rabbani-card.takwa .qawmiyyah-rabbani-trait {
  color: #FBBF24;
}

.qawmiyyah-rabbani-card.watan {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.qawmiyyah-rabbani-card.watan:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.qawmiyyah-rabbani-card.watan .qawmiyyah-rabbani-trait {
  color: #38BDF8;
}

/* Banners */
.pemuda-banner,
.dana-banner,
.politik-banner,
.qawmiyyah-rabbani-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.pemuda-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.pemuda-banner .creed-text {
  font-size: 0.78rem;
  color: #BAE6FD;
  line-height: 1.45;
}

.dana-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.dana-banner .creed-text {
  font-size: 0.78rem;
  color: #A7F3D0;
  line-height: 1.45;
}

.politik-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.politik-banner .creed-text {
  font-size: 0.78rem;
  color: #D1FAE5;
  line-height: 1.45;
}

.qawmiyyah-rabbani-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.qawmiyyah-rabbani-banner .creed-text {
  font-size: 0.78rem;
  color: #FEF3C7;
  line-height: 1.45;
}
.qawmiyyah-rabbani-banner .creed-text strong {
  color: #FCD34D;
}

/* ==========================================================================
   KEMULIAAN, KEKUATAN TAUHID, NASAB LUHUR & REALITI IMPIAN (R02 F13-F16)
   ========================================================================== */
.grid-izzah-2,
.grid-nasab-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-quwwah-3,
.grid-impian-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.izzah-card,
.quwwah-card,
.nasab-card,
.impian-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 13: Kemuliaan */
.izzah-card.jahiliyyah {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.izzah-card.jahiliyyah:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.izzah-card.jahiliyyah .izzah-trait {
  color: #F87171;
}

.izzah-card.rabbani {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.izzah-card.rabbani:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.izzah-card.rabbani .izzah-trait {
  color: #34D399;
}

.izzah-trait,
.quwwah-trait,
.nasab-trait,
.impian-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.izzah-sub,
.quwwah-sub,
.nasab-sub,
.impian-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

/* Fasal 14: Kekuatan */
.quwwah-card.thiqah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.quwwah-card.thiqah:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.quwwah-card.thiqah .quwwah-trait {
  color: #38BDF8;
}

.quwwah-card.hasbunallah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.quwwah-card.hasbunallah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.quwwah-card.hasbunallah .quwwah-trait {
  color: #34D399;
}

.quwwah-card.syajaah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.quwwah-card.syajaah:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.quwwah-card.syajaah .quwwah-trait {
  color: #FBBF24;
}

/* Fasal 15: Nasab Luhur */
.nasab-card.luhur {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.nasab-card.luhur:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.nasab-card.luhur .nasab-trait {
  color: #34D399;
}

.nasab-card.asabiyyah {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.nasab-card.asabiyyah:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.nasab-card.asabiyyah .nasab-trait {
  color: #F87171;
}

/* Fasal 16: Impian Realiti */
.impian-card.fasa1 {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.impian-card.fasa1:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.impian-card.fasa1 .impian-trait {
  color: #38BDF8;
}

.impian-card.fasa2 {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.impian-card.fasa2:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.impian-card.fasa2 .impian-trait {
  color: #FBBF24;
}

.impian-card.fasa3 {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.impian-card.fasa3:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.impian-card.fasa3 .impian-trait {
  color: #34D399;
}

/* Banners */
.izzah-banner,
.quwwah-banner,
.nasab-banner,
.impian-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.izzah-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.izzah-banner .creed-text {
  font-size: 0.78rem;
  color: #D1FAE5;
  line-height: 1.45;
}

.quwwah-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.quwwah-banner .creed-text {
  font-size: 0.78rem;
  color: #BAE6FD;
  line-height: 1.45;
}

.nasab-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.nasab-banner .creed-text {
  font-size: 0.78rem;
  color: #A7F3D0;
  line-height: 1.45;
}

.impian-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.impian-banner .creed-text {
  font-size: 0.78rem;
  color: #FEF3C7;
  line-height: 1.45;
}
.impian-banner .creed-text strong {
  color: #FCD34D;
}

/* ==========================================================================
   MISI MUSLIM, HAK KEMANUSIAAN, HAK & KEKUATAN, RAHIB-PAHLAWAN (R02 F17-F20)
   ========================================================================== */
.grid-misi-2,
.grid-tahap-2,
.grid-sahabat-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-hak-kekuatan-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.misi-card,
.tahap-card,
.hak-kekuatan-card,
.sahabat-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 17: Misi */
.misi-card.fardiyyah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.misi-card.fardiyyah:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.misi-card.fardiyyah .misi-trait {
  color: #38BDF8;
}

.misi-card.ijtimaiyyah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.misi-card.ijtimaiyyah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.misi-card.ijtimaiyyah .misi-trait {
  color: #34D399;
}

.misi-trait,
.tahap-trait,
.hak-kekuatan-trait,
.sahabat-trait {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.misi-sub,
.tahap-sub,
.hak-kekuatan-sub,
.sahabat-sub {
  font-size: 0.71rem;
  color: #94A3B8;
  display: block;
  line-height: 1.35;
}

/* Fasal 18: Tahap Dakwah */
.tahap-card.hujah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.tahap-card.hujah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.tahap-card.hujah .tahap-trait {
  color: #34D399;
}

.tahap-card.pedang {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.tahap-card.pedang:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.tahap-card.pedang .tahap-trait {
  color: #FBBF24;
}

/* Fasal 19: Hak & Kekuatan */
.hak-kekuatan-card.lemah {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.hak-kekuatan-card.lemah:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}
.hak-kekuatan-card.lemah .hak-kekuatan-trait {
  color: #CBD5E1;
}

.hak-kekuatan-card.tirani {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.hak-kekuatan-card.tirani:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.hak-kekuatan-card.tirani .hak-kekuatan-trait {
  color: #F87171;
}

.hak-kekuatan-card.seimbang {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}
.hak-kekuatan-card.seimbang:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.hak-kekuatan-card.seimbang .hak-kekuatan-trait {
  color: #34D399;
  font-weight: 800;
}
.hak-kekuatan-card.seimbang .sys-num {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

/* Fasal 20: Rahib & Pahlawan */
.sahabat-card.malam {
  border-left: 3.5px solid #0EA5E9 !important;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.sahabat-card.malam:hover {
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.sahabat-card.malam .sahabat-trait {
  color: #38BDF8;
}

.sahabat-card.siang {
  border-left: 3.5px solid #F59E0B !important;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.sahabat-card.siang:hover {
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.sahabat-card.siang .sahabat-trait {
  color: #FBBF24;
}

/* Banners */
.misi-banner,
.tahap-banner,
.hak-kekuatan-banner,
.sahabat-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.misi-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.misi-banner .creed-text {
  font-size: 0.78rem;
  color: #BAE6FD;
  line-height: 1.45;
}

.tahap-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.tahap-banner .creed-text {
  font-size: 0.78rem;
  color: #D1FAE5;
  line-height: 1.45;
}

.hak-kekuatan-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.hak-kekuatan-banner .creed-text {
  font-size: 0.78rem;
  color: #A7F3D0;
  line-height: 1.45;
}
.hak-kekuatan-banner .creed-text strong {
  color: #FCD34D;
}

.sahabat-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.sahabat-banner .creed-text {
  font-size: 0.78rem;
  color: #FEF3C7;
  line-height: 1.45;
}
.sahabat-banner .creed-text strong {
  color: #FCD34D;
}


/* ==========================================================================
   FUTUHAT VS KOLONIALISME, KESEDARAN, 4 RUKUN JIWA, ROHANI VS KEBENDAAN (R02 F21-F24)
   ========================================================================== */
.grid-futuhat-2,
.grid-kesedaran-2,
.grid-kekuatan-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-jiwa-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.futuhat-card,
.kesedaran-card,
.jiwa-card,
.kekuatan-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 21: Futuhat vs Kolonialisme */
.futuhat-card.futuhat-islah {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.futuhat-card.futuhat-islah:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.futuhat-card.futuhat-islah .futuhat-trait {
  color: #34D399;
}

.futuhat-card.kolonial-barat {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.futuhat-card.kolonial-barat:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.futuhat-card.kolonial-barat .futuhat-trait {
  color: #F87171;
}

.futuhat-trait,
.kesedaran-trait,
.jiwa-trait,
.kekuatan-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.futuhat-sub,
.kesedaran-sub,
.jiwa-sub,
.kekuatan-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* Fasal 22: Dalih Kealpaan vs Fasa Takwin */
.kesedaran-card.dalih-leka {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.kesedaran-card.dalih-leka:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.kesedaran-card.dalih-leka .kesedaran-trait {
  color: #FBBF24;
}

.kesedaran-card.fasa-takwin {
  border-left: 3.5px solid #3B82F6 !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
}
.kesedaran-card.fasa-takwin:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.kesedaran-card.fasa-takwin .kesedaran-trait {
  color: #60A5FA;
}

/* Fasal 23: 4 Rukun Kekuatan Jiwa */
.jiwa-card.iradah {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.jiwa-card.iradah:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.jiwa-card.iradah .jiwa-trait {
  color: #F87171;
}

.jiwa-card.wafa {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.jiwa-card.wafa:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.jiwa-card.wafa .jiwa-trait {
  color: #38BDF8;
}

.jiwa-card.tadhiyah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.jiwa-card.tadhiyah:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.jiwa-card.tadhiyah .jiwa-trait {
  color: #FBBF24;
}

.jiwa-card.marifah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.jiwa-card.marifah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.jiwa-card.marifah .jiwa-trait {
  color: #34D399;
}

/* Fasal 24: Rohani vs Kebendaan */
.kekuatan-card.rohani {
  border-left: 3.5px solid #8B5CF6 !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}
.kekuatan-card.rohani:hover {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.22) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.kekuatan-card.rohani .kekuatan-trait {
  color: #A78BFA;
}

.kekuatan-card.kebendaan {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.kekuatan-card.kebendaan:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.kekuatan-card.kebendaan .kekuatan-trait {
  color: #38BDF8;
}

.futuhat-banner,
.kesedaran-banner,
.jiwa-banner,
.kekuatan-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   MANHAJ SYUMUL, ITTIBA' SYARIAT, 5 TUNTUTAN ISLAH, UKHUWAH SEJAGAT (R02 F25-F28)
   ========================================================================== */
.grid-manhaj-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.grid-ittiba-2,
.grid-ukhuwah-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-tuntutan-5 {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.65rem;
}

.manhaj-card,
.ittiba-card,
.tuntutan-card,
.ukhuwah-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 25: Manhaj Syumul */
.manhaj-card.individu {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.manhaj-card.individu:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.manhaj-card.individu .manhaj-trait {
  color: #38BDF8;
}

.manhaj-card.keadilan {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.manhaj-card.keadilan:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.manhaj-card.keadilan .manhaj-trait {
  color: #34D399;
}

.manhaj-card.tamadun {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.manhaj-card.tamadun:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.manhaj-card.tamadun .manhaj-trait {
  color: #A78BFA;
}

.manhaj-trait,
.ittiba-trait,
.tuntutan-trait,
.ukhuwah-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.manhaj-sub,
.ittiba-sub,
.tuntutan-sub,
.ukhuwah-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* Fasal 26: Ittiba' Syariat vs Eksperimen Sekular */
.ittiba-card.syariat-jaya {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.ittiba-card.syariat-jaya:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.ittiba-card.syariat-jaya .ittiba-trait {
  color: #34D399;
}

.ittiba-card.sekular-gagal {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.ittiba-card.sekular-gagal:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.ittiba-card.sekular-gagal .ittiba-trait {
  color: #F87171;
}

/* Fasal 27: 5 Tuntutan Islah */
.tuntutan-card.qanun {
  border-left: 3.5px solid #3B82F6 !important;
  background: rgba(59, 130, 246, 0.06);
}
.tuntutan-card.qanun:hover {
  background: rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}
.tuntutan-card.qanun .tuntutan-trait {
  color: #60A5FA;
}

.tuntutan-card.ijtima {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.tuntutan-card.ijtima:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.tuntutan-card.ijtima .tuntutan-trait {
  color: #FBBF24;
}

.tuntutan-card.ibahiyyah {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.tuntutan-card.ibahiyyah:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.tuntutan-card.ibahiyyah .tuntutan-trait {
  color: #F87171;
}

.tuntutan-card.talim {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.tuntutan-card.talim:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.tuntutan-card.talim .tuntutan-trait {
  color: #34D399;
}

.tuntutan-card.ikha {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.tuntutan-card.ikha:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.tuntutan-card.ikha .tuntutan-trait {
  color: #A78BFA;
}

/* Fasal 28: Dua Buah Ukhuwah */
.ukhuwah-card.insaniyyah {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.ukhuwah-card.insaniyyah:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.ukhuwah-card.insaniyyah .ukhuwah-trait {
  color: #34D399;
}

.ukhuwah-card.watan {
  border-left: 3.5px solid #0EA5E9 !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12);
}
.ukhuwah-card.watan:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.ukhuwah-card.watan .ukhuwah-trait {
  color: #38BDF8;
}

.manhaj-banner,
.ittiba-banner,
.tuntutan-banner,
.ukhuwah-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   JALAN INI PANJANG & 5 FASA KEBANGKITAN NABI MUSA AS (R02 F29-F30 FINALE)
   ========================================================================== */
.grid-jalan-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.grid-musa-5 {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.65rem;
}

.jalan-card,
.musa-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 29: Jalan Ini Panjang */
.jalan-card.sosiologi {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.jalan-card.sosiologi:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.jalan-card.sosiologi .jalan-trait {
  color: #38BDF8;
}

.jalan-card.sejarah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.jalan-card.sejarah:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.jalan-card.sejarah .jalan-trait {
  color: #FBBF24;
}

.jalan-card.kewajipan {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.jalan-card.kewajipan:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.jalan-card.kewajipan .jalan-trait {
  color: #34D399;
}

.jalan-trait,
.musa-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.jalan-sub,
.musa-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* Fasal 30: 5 Fasa Kisah Nabi Musa AS */
.musa-card.daaf {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.musa-card.daaf:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}
.musa-card.daaf .musa-trait {
  color: #CBD5E1;
}

.musa-card.zaamah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.musa-card.zaamah:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.musa-card.zaamah .musa-trait {
  color: #38BDF8;
}

.musa-card.siraa {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.musa-card.siraa:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.musa-card.siraa .musa-trait {
  color: #FBBF24;
}

.musa-card.imaan {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.musa-card.imaan:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.musa-card.imaan .musa-trait {
  color: #A78BFA;
}

.musa-card.intisar {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.musa-card.intisar:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.musa-card.intisar .musa-trait {
  color: #34D399;
}

.jalan-banner,
.musa-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   RISALAH 03: HAL NAHNU QAUMUN 'AMALIYYUN? (FASAL 01-05)
   ========================================================================== */
.grid-penyoal-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.grid-ghirah-2,
.grid-rijal-2,
.grid-wasilah-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-projek-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.penyoal-card,
.ghirah-card,
.projek-card,
.rijal-card,
.wasilah-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 01: 4 Tipologi Penyoal */
.penyoal-card.ikhlas {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.penyoal-card.ikhlas:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.penyoal-card.ikhlas .penyoal-trait {
  color: #34D399;
}

.penyoal-card.sinis {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.penyoal-card.sinis:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.penyoal-card.sinis .penyoal-trait {
  color: #F87171;
}

.penyoal-card.debat {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.penyoal-card.debat:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.penyoal-card.debat .penyoal-trait {
  color: #FBBF24;
}

.penyoal-card.dalih {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.penyoal-card.dalih:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}
.penyoal-card.dalih .penyoal-trait {
  color: #CBD5E1;
}

.penyoal-trait,
.ghirah-trait,
.projek-trait,
.rijal-trait,
.wasilah-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.penyoal-sub,
.ghirah-sub,
.projek-sub,
.rijal-sub,
.wasilah-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* Fasal 02: Ghirah */
.ghirah-card.ratapan {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.ghirah-card.ratapan:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.ghirah-card.ratapan .ghirah-trait {
  color: #FBBF24;
}

.ghirah-card.haraki {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.ghirah-card.haraki:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.ghirah-card.haraki .ghirah-trait {
  color: #34D399;
}

/* Fasal 03: Projek Nyata */
.projek-card.pendidikan {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.projek-card.pendidikan:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.projek-card.pendidikan .projek-trait {
  color: #38BDF8;
}

.projek-card.kesihatan {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.projek-card.kesihatan:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.projek-card.kesihatan .projek-trait {
  color: #34D399;
}

.projek-card.ekonomi {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.projek-card.ekonomi:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.projek-card.ekonomi .projek-trait {
  color: #A78BFA;
}

/* Fasal 04: Pembinaan Rijal */
.rijal-card.fizikal {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.rijal-card.fizikal:hover {
  background: rgba(148, 163, 184, 0.14);
  transform: translateY(-1px);
}
.rijal-card.fizikal .rijal-trait {
  color: #CBD5E1;
}

.rijal-card.rijal-rabbani {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.rijal-card.rijal-rabbani:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.rijal-card.rijal-rabbani .rijal-trait {
  color: #34D399;
}

/* Fasal 05: Wasilah Agama */
.wasilah-card.sekular {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.wasilah-card.sekular:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.wasilah-card.sekular .wasilah-trait {
  color: #F87171;
}

.wasilah-card.agama {
  border-left: 3.5px solid #3B82F6 !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
}
.wasilah-card.agama:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.wasilah-card.agama .wasilah-trait {
  color: #60A5FA;
}

.penyoal-banner,
.ghirah-banner,
.projek-banner,
.rijal-banner,
.wasilah-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   RISALAH 03: HAL NAHNU QAUMUN 'AMALIYYUN? (FASAL 06-10 FINALE)
   ========================================================================== */
.grid-solat-4,
.grid-jihad-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.grid-zakat-3,
.grid-quran-3,
.grid-manhaj-r03-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.solat-card,
.zakat-card,
.jihad-card,
.quran-card,
.manhaj-r03-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 06: Kedudukan Salat */
.solat-card.taharah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.solat-card.taharah:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.solat-card.taharah .solat-trait {
  color: #38BDF8;
}

.solat-card.disiplin {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.solat-card.disiplin:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.solat-card.disiplin .solat-trait {
  color: #FBBF24;
}

.solat-card.saf {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.solat-card.saf:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.solat-card.saf .solat-trait {
  color: #34D399;
}

.solat-card.zad {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.solat-card.zad:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.solat-card.zad .solat-trait {
  color: #A78BFA;
}

.solat-trait,
.zakat-trait,
.jihad-trait,
.quran-trait,
.manhaj-r03-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.solat-sub,
.zakat-sub,
.jihad-sub,
.quran-sub,
.manhaj-r03-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

/* Fasal 07: Zakat */
.zakat-card.tathir {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.zakat-card.tathir:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.zakat-card.tathir .zakat-trait {
  color: #34D399;
}

.zakat-card.haq {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.zakat-card.haq:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.zakat-card.haq .zakat-trait {
  color: #38BDF8;
}

.zakat-card.birinbal {
  border-left: 3.5px solid #F59E0B !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}
.zakat-card.birinbal:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.zakat-card.birinbal .zakat-trait {
  color: #FBBF24;
}

/* Fasal 08: Jihad Adalah Kemuliaan Kami */
.jihad-card.harta {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.jihad-card.harta:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.jihad-card.harta .jihad-trait {
  color: #38BDF8;
}

.jihad-card.kalimah {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.jihad-card.kalimah:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.jihad-card.kalimah .jihad-trait {
  color: #FBBF24;
}

.jihad-card.persediaan {
  border-left: 3.5px solid #3B82F6 !important;
  background: rgba(59, 130, 246, 0.06);
}
.jihad-card.persediaan:hover {
  background: rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}
.jihad-card.persediaan .jihad-trait {
  color: #60A5FA;
}

.jihad-card.syahadah {
  border-left: 3.5px solid #EF4444 !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.18);
}
.jihad-card.syahadah:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.jihad-card.syahadah .jihad-trait {
  color: #F87171;
}

/* Fasal 09: 3 Hak Al-Quran */
.quran-card.tilawah {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.quran-card.tilawah:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.quran-card.tilawah .quran-trait {
  color: #38BDF8;
}

.quran-card.fahm {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.quran-card.fahm:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.quran-card.fahm .quran-trait {
  color: #A78BFA;
}

.quran-card.tahkim {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.quran-card.tahkim:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.quran-card.tahkim .quran-trait {
  color: #34D399;
}

/* Fasal 10: Manhaj & Neraca Penilaian */
.manhaj-r03-card.malik {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.manhaj-r03-card.malik:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.manhaj-r03-card.malik .manhaj-r03-trait {
  color: #FBBF24;
}

.manhaj-r03-card.safi {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.manhaj-r03-card.safi:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.manhaj-r03-card.safi .manhaj-r03-trait {
  color: #38BDF8;
}

.manhaj-r03-card.syumul {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.manhaj-r03-card.syumul:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.manhaj-r03-card.syumul .manhaj-r03-trait {
  color: #34D399;
}

.solat-banner,
.zakat-banner,
.jihad-banner,
.quran-banner,
.manhaj-r03-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   RISALAH 04: MUHIMMATUNA (FASAL 01-06)
   ========================================================================== */
.grid-suara-2,
.grid-sinar-2,
.grid-taklid-2,
.grid-tamadun-barat-2,
.grid-duamisi-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-penyimpangan-8,
.grid-sistem-8 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.suara-card,
.sinar-card,
.taklid-card,
.tamadun-barat-card,
.duamisi-card,
.sistem-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 01: Suara Tenang */
.suara-card.parti {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.suara-card.parti:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.suara-card.parti .suara-trait {
  color: #F87171;
}

.suara-card.tenang {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.suara-card.tenang:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.suara-card.tenang .suara-trait {
  color: #34D399;
}

/* Fasal 02: Seruan Pertama */
.sinar-card.lena {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.sinar-card.lena:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.sinar-card.lena .sinar-trait {
  color: #FBBF24;
}

.sinar-card.seruan {
  border-left: 3.5px solid #3B82F6 !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
}
.sinar-card.seruan:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.sinar-card.seruan .sinar-trait {
  color: #60A5FA;
}

/* Fasal 04: Taklid Buta */
.taklid-card.barat {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.taklid-card.barat:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.taklid-card.barat .taklid-trait {
  color: #F87171;
}

.taklid-card.asalah {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.taklid-card.asalah:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.taklid-card.asalah .taklid-trait {
  color: #34D399;
}

/* Fasal 05: Penilaian Tamadun Barat */
.tamadun-barat-card.sains {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.tamadun-barat-card.sains:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.tamadun-barat-card.sains .tamadun-barat-trait {
  color: #38BDF8;
}

.tamadun-barat-card.bangkrap {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.tamadun-barat-card.bangkrap:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.tamadun-barat-card.bangkrap .tamadun-barat-trait {
  color: #F87171;
}

/* Fasal 06: Dua Misi Asasi */
.duamisi-card.benteng {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.duamisi-card.benteng:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.duamisi-card.benteng .duamisi-trait {
  color: #FBBF24;
}

.duamisi-card.penyelamat {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.duamisi-card.penyelamat:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.duamisi-card.penyelamat .duamisi-trait {
  color: #34D399;
}

.suara-trait,
.sinar-trait,
.taklid-trait,
.tamadun-barat-trait,
.duamisi-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.suara-sub,
.sinar-sub,
.taklid-sub,
.tamadun-barat-sub,
.duamisi-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

.suara-banner,
.sinar-banner,
.taklid-banner,
.tamadun-barat-banner,
.duamisi-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   RISALAH 04: MUHIMMATUNA (FASAL 07-12 GRAND FINALE)
   ========================================================================== */
.grid-maratib-6,
.grid-uddatuna-6 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.grid-realisme-2,
.grid-kerajaan-2,
.grid-identiti-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-khatimah-r04-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.maratib-card,
.uddatuna-card,
.realisme-card,
.kerajaan-card,
.identiti-card,
.khatimah-r04-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 07: Maratibul Amal */
.maratib-card.individu {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.maratib-card.individu:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.maratib-card.individu .maratib-trait { color: #38BDF8; }

.maratib-card.rumah {
  border-left: 3.5px solid #10B981 !important;
  background: rgba(16, 185, 129, 0.06);
}
.maratib-card.rumah:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}
.maratib-card.rumah .maratib-trait { color: #34D399; }

.maratib-card.masyarakat {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.maratib-card.masyarakat:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.maratib-card.masyarakat .maratib-trait { color: #FBBF24; }

.maratib-card.watan {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.maratib-card.watan:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.maratib-card.watan .maratib-trait { color: #F87171; }

.maratib-card.kerajaan {
  border-left: 3.5px solid #8B5CF6 !important;
  background: rgba(139, 92, 246, 0.06);
}
.maratib-card.kerajaan:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-1px);
}
.maratib-card.kerajaan .maratib-trait { color: #A78BFA; }

.maratib-card.alam {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.maratib-card.alam:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.maratib-card.alam .maratib-trait { color: #34D399; }

/* Fasal 08: Uddatuna */
.uddatuna-card.allah { border-left: 3.5px solid #0EA5E9 !important; background: rgba(14, 165, 233, 0.06); }
.uddatuna-card.allah .uddatuna-trait { color: #38BDF8; }

.uddatuna-card.manhaj { border-left: 3.5px solid #10B981 !important; background: rgba(16, 185, 129, 0.06); }
.uddatuna-card.manhaj .uddatuna-trait { color: #34D399; }

.uddatuna-card.ukhuwah { border-left: 3.5px solid #F59E0B !important; background: rgba(245, 158, 11, 0.06); }
.uddatuna-card.ukhuwah .uddatuna-trait { color: #FBBF24; }

.uddatuna-card.jaza { border-left: 3.5px solid #8B5CF6 !important; background: rgba(139, 92, 246, 0.06); }
.uddatuna-card.jaza .uddatuna-trait { color: #A78BFA; }

.uddatuna-card.nasr { border-left: 3.5px solid #3B82F6 !important; background: rgba(59, 130, 246, 0.06); }
.uddatuna-card.nasr .uddatuna-trait { color: #60A5FA; }

.uddatuna-card.dawr {
  border-left: 3.5px solid #EF4444 !important;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.uddatuna-card.dawr .uddatuna-trait { color: #F87171; }

.uddatuna-card:hover { transform: translateY(-1px); }

/* Fasal 09: Realisme */
.realisme-card.khayalan {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.realisme-card.khayalan:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.realisme-card.khayalan .realisme-trait { color: #F87171; }

.realisme-card.khandaq {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.realisme-card.khandaq:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.realisme-card.khandaq .realisme-trait { color: #34D399; }

/* Fasal 10: Kerajaan Islam */
.kerajaan-card.boneka {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.kerajaan-card.boneka:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}
.kerajaan-card.boneka .kerajaan-trait { color: #FBBF24; }

.kerajaan-card.rabbani {
  border-left: 3.5px solid #3B82F6 !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
}
.kerajaan-card.rabbani:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.kerajaan-card.rabbani .kerajaan-trait { color: #60A5FA; }

/* Fasal 11: Identiti Syumul */
.identiti-card.label {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.identiti-card.label:hover {
  background: rgba(239, 68, 68, 0.14);
  transform: translateY(-1px);
}
.identiti-card.label .identiti-trait { color: #F87171; }

.identiti-card.syumul {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.identiti-card.syumul:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.identiti-card.syumul .identiti-trait { color: #34D399; }

/* Fasal 12: Khatimah Bai'ah */
.khatimah-r04-card.martabat {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.khatimah-r04-card.martabat:hover {
  background: rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}
.khatimah-r04-card.martabat .khatimah-r04-trait { color: #38BDF8; }

.khatimah-r04-card.baiah {
  border-left: 3.5px solid #F59E0B !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}
.khatimah-r04-card.baiah:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  transform: translateY(-2px);
}
.khatimah-r04-card.baiah .khatimah-r04-trait { color: #FBBF24; }

.khatimah-r04-card.fajar {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.khatimah-r04-card.fajar:hover {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.24) 0%, rgba(15, 23, 42, 0.9) 100%);
  transform: translateY(-2px);
}
.khatimah-r04-card.fajar .khatimah-r04-trait { color: #34D399; }

.maratib-trait,
.uddatuna-trait,
.realisme-trait,
.kerajaan-trait,
.identiti-trait,
.khatimah-r04-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.maratib-sub,
.uddatuna-sub,
.realisme-sub,
.kerajaan-sub,
.identiti-sub,
.khatimah-r04-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

.maratib-banner,
.uddatuna-banner,
.realisme-banner,
.kerajaan-banner,
.identiti-banner,
.khatimah-r04-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   RISALAH 01: DA'WATUNA (8 REMAINING FASALS: F06, F07, F09, F10, F11, F13, F17, F19)
   ========================================================================== */
.grid-fana-2,
.grid-wuduh-2,
.grid-duah-2,
.grid-wasail-2,
.grid-sikap-2,
.grid-rawatan-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.grid-daawat-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.grid-optimisme-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.fana-card,
.wuduh-card,
.daawat-card,
.duah-card,
.wasail-card,
.sikap-card,
.rawatan-card,
.optimisme-card {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

/* Fasal 06: Fana' */
.fana-card.juzi {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.fana-card.juzi:hover { background: rgba(239, 68, 68, 0.14); transform: translateY(-1px); }
.fana-card.juzi .fana-trait { color: #F87171; }

.fana-card.total {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.fana-card.total:hover { background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%); transform: translateY(-2px); }
.fana-card.total .fana-trait { color: #34D399; }

/* Fasal 07: Wuduh */
.wuduh-card.muslihat {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.wuduh-card.muslihat:hover { background: rgba(245, 158, 11, 0.14); transform: translateY(-1px); }
.wuduh-card.muslihat .wuduh-trait { color: #FBBF24; }

.wuduh-card.terang {
  border-left: 3.5px solid #0EA5E9 !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12);
}
.wuduh-card.terang:hover { background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%); transform: translateY(-2px); }
.wuduh-card.terang .wuduh-trait { color: #38BDF8; }

/* Fasal 09: Da'awat */
.daawat-card.nasionalisme { border-left: 3.5px solid #EF4444 !important; background: rgba(239, 68, 68, 0.06); }
.daawat-card.nasionalisme .daawat-trait { color: #F87171; }

.daawat-card.marxisme { border-left: 3.5px solid #F59E0B !important; background: rgba(245, 158, 11, 0.06); }
.daawat-card.marxisme .daawat-trait { color: #FBBF24; }

.daawat-card.kapitalisme { border-left: 3.5px solid #8B5CF6 !important; background: rgba(139, 92, 246, 0.06); }
.daawat-card.kapitalisme .daawat-trait { color: #A78BFA; }

.daawat-card.islam {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}
.daawat-card.islam .daawat-trait { color: #34D399; }
.daawat-card:hover { transform: translateY(-1px); }

/* Fasal 10: Du'ah */
.duah-card.asing {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.duah-card.asing:hover { background: rgba(245, 158, 11, 0.14); transform: translateY(-1px); }
.duah-card.asing .duah-trait { color: #FBBF24; }

.duah-card.rabbani {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.duah-card.rabbani:hover { background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%); transform: translateY(-2px); }
.duah-card.rabbani .duah-trait { color: #34D399; }

/* Fasal 11: Wasa'il */
.wasail-card.tradisional {
  border-left: 3.5px solid #94A3B8 !important;
  background: rgba(148, 163, 184, 0.06);
}
.wasail-card.tradisional:hover { background: rgba(148, 163, 184, 0.14); transform: translateY(-1px); }
.wasail-card.tradisional .wasail-trait { color: #CBD5E1; }

.wasail-card.moden {
  border-left: 3.5px solid #0EA5E9 !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12);
}
.wasail-card.moden:hover { background: linear-gradient(180deg, rgba(14, 165, 233, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%); transform: translateY(-2px); }
.wasail-card.moden .wasail-trait { color: #38BDF8; }

/* Fasal 13: Sikap Terhadap Fahaman Lain */
.sikap-card.mizan {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.sikap-card.mizan:hover { background: rgba(16, 185, 129, 0.16); transform: translateY(-1px); }
.sikap-card.mizan .sikap-trait { color: #34D399; }

.sikap-card.tolak {
  border-left: 3.5px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.06);
}
.sikap-card.tolak:hover { background: rgba(239, 68, 68, 0.14); transform: translateY(-1px); }
.sikap-card.tolak .sikap-trait { color: #F87171; }

/* Fasal 17: Rawatan Umat */
.rawatan-card.diagnosis {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.rawatan-card.diagnosis:hover { background: rgba(14, 165, 233, 0.14); transform: translateY(-1px); }
.rawatan-card.diagnosis .rawatan-trait { color: #38BDF8; }

.rawatan-card.penawar {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rawatan-card.penawar:hover { background: rgba(16, 185, 129, 0.18); transform: translateY(-2px); }
.rawatan-card.penawar .rawatan-trait { color: #34D399; }

/* Fasal 19: Optimisme */
.optimisme-card.fajar {
  border-left: 3.5px solid #F59E0B !important;
  background: rgba(245, 158, 11, 0.06);
}
.optimisme-card.fajar:hover { background: rgba(245, 158, 11, 0.14); transform: translateY(-1px); }
.optimisme-card.fajar .optimisme-trait { color: #FBBF24; }

.optimisme-card.potensi {
  border-left: 3.5px solid #0EA5E9 !important;
  background: rgba(14, 165, 233, 0.06);
}
.optimisme-card.potensi:hover { background: rgba(14, 165, 233, 0.14); transform: translateY(-1px); }
.optimisme-card.potensi .optimisme-trait { color: #38BDF8; }

.optimisme-card.janji {
  border-left: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.optimisme-card.janji:hover { background: rgba(16, 185, 129, 0.22); transform: translateY(-2px); }
.optimisme-card.janji .optimisme-trait { color: #34D399; }

.fana-trait,
.wuduh-trait,
.daawat-trait,
.duah-trait,
.wasail-trait,
.sikap-trait,
.rawatan-trait,
.optimisme-trait {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

.fana-sub,
.wuduh-sub,
.daawat-sub,
.duah-sub,
.wasail-sub,
.sikap-sub,
.rawatan-sub,
.optimisme-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  display: block;
}

.fana-banner,
.wuduh-banner,
.daawat-banner,
.duah-banner,
.wasail-banner,
.sikap-banner,
.rawatan-banner,
.optimisme-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}


/* ==========================================================================
   PENAMBAHBAIKAN AKHIR: MASA BACAAN, PENANDA TERAKHIR, SALIN USRAH & CETAKAN
   ========================================================================== */
.banner-top-left {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.banner-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-primary, #38BDF8);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-banner-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-body, inherit);
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-banner-tool:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.meta-pill-resume {
  cursor: pointer;
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #FDE047 !important;
  transition: var(--transition);
  font-family: inherit;
}

.meta-pill-resume:hover {
  background: rgba(245, 158, 11, 0.26) !important;
  border-color: #FDE047 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

[data-theme="light"] .meta-pill-resume {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #92400E !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
}

.ch-last-icon {
  color: var(--gold-light, #FDE047);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 3px;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.45));
}

.summary-card {
  display: flex;
  flex-direction: column;
}

.summary-card-brief {
  flex: 1;
}

.summary-card-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

[data-theme="light"] .summary-card-actions {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.summary-copy-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.summary-copy-wa-btn:hover {
  background: #10B981;
  color: #062319;
  border-color: #34D399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.btn-modal-copy-wa {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.btn-modal-copy-wa:hover {
  background: #10B981;
  color: #062319;
  border-color: #34D399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   MOD CETAKAN & EKSPORT PDF PROFESIONAL (@media print)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 16mm 14mm;
  }

  html,
  body {
    background: #FFFFFF !important;
    color: #111827 !important;
    font-size: 10.5pt !important;
    line-height: 1.65 !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Sembunyikan elemen navigasi & alat interaktif */
  .app-header,
  .risalah-nav,
  .chapter-sidebar,
  .sidebar-overlay,
  .reading-progress,
  .chapter-nav-pager,
  .banner-actions,
  .btn-quick-summary,
  .btn-banner-tool,
  .font-compare-bar,
  .quote-actions,
  .summary-card-actions,
  .modal-backdrop,
  .toast,
  .hero-meta-grid,
  .hero-pill-badge {
    display: none !important;
  }

  .main-layout {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  .content-workspace {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-card,
  .pbi-hero-card,
  .subheading-banner,
  .chapter-card,
  .summary-card,
  .quote-card,
  .pbi-pillar-card,
  .matrix-card {
    background: #FFFFFF !important;
    color: #111827 !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .hero-card {
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
    border-left: 4px solid #059669 !important;
  }

  .hero-main-title,
  .banner-title,
  .summary-card h4,
  .matrix-header h3,
  .pbi-pillar-card h4,
  .chapter-card h1,
  .chapter-card h2,
  .chapter-card h3,
  .chapter-card h4,
  .chapter-card p,
  .chapter-card li {
    color: #111827 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #111827 !important;
  }

  .hero-tagline,
  .banner-reading-time {
    color: #374151 !important;
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
  }

  .banner-tag {
    color: #9F1239 !important;
  }

  /* Tukar emas menyala ke dakwat gelap berkontras tinggi atas kertas putih */
  .hero-ar-title,
  .banner-arabic-gold,
  .quran-arabic,
  .verse-arabic,
  .quote-ar-snippet,
  .arabic-inline-almarai,
  .pillar-ar {
    color: #064E3B !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #064E3B !important;
    background: transparent !important;
  }

  .subheading-banner {
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
    border-left: 4px solid #059669 !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .chapter-card {
    border: none !important;
    padding: 4px 0 !important;
  }

  .quran-verse-card {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-left: 4px solid #B45309 !important;
    color: #111827 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
  }

  .quran-arabic {
    border-bottom: 1px dashed #CBD5E1 !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .quran-translation,
  .translation-text {
    color: #1F2937 !important;
  }

  .quran-reference {
    color: #9F1239 !important;
    background: #FFF1F2 !important;
    border-color: #FECDD3 !important;
  }

  /* Kad infografik pedagogi dioptimumkan untuk cetakan bersih */
  .pedagogical-infographic-card,
  .systems-infographic {
    background: #F8FAFC !important;
    border: 1px solid #94A3B8 !important;
    color: #0F172A !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 14px 0 !important;
    padding: 12px !important;
  }

  .pedagogical-infographic-card *,
  .systems-infographic * {
    color: #1E293B !important;
    text-shadow: none !important;
  }

  .pedagogical-infographic-card [class*="-card"],
  .pedagogical-infographic-card [class*="-step"],
  .pedagogical-infographic-card [class*="-item"],
  .pedagogical-infographic-card [class*="-banner"],
  .systems-infographic .sys-item,
  .systems-infographic .infographic-item {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: none !important;
  }

  .infographic-badge,
  .pedagogical-infographic-header {
    background: #E2E8F0 !important;
    color: #0F172A !important;
    border: 1px solid #94A3B8 !important;
  }
}
