/* ==========================================================================
   ANTARA SEMALAM DAN HARI INI (بين الأمس واليوم) - PWA STYLESHEET
   Tema: Emerald, Gold & Soft Rose Pink Haraki Edition
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

:root {
  --bg-primary: #120d11;
  --bg-secondary: #1a1217;
  --bg-tertiary: #23161f;
  --bg-card: rgba(26, 18, 23, 0.88);
  --border-color: rgba(244, 114, 182, 0.22);
  --border-focus: rgba(245, 197, 66, 0.6);
  
  --text-primary: #fdf2f4;
  --text-secondary: #fbcfe8;
  --text-muted: #f472b6;
  
  --gold-light: #fef08a;
  --gold-primary: #f5c542;
  --gold-dark: #b48c1e;
  
  --emerald-light: #34d399;
  --emerald-primary: #059669;
  --emerald-dark: #064e3b;

  --rose-pink-light: #fce7f3;
  --rose-pink-primary: #f472b6;
  --rose-pink-glow: rgba(244, 114, 182, 0.12);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  
  --sidebar-width: 340px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(245, 197, 66, 0.25);
  
  --font-scale: 1;
}

[data-theme="light"] {
  --bg-primary: #fff1f3;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffe4e8;
  --bg-card: rgba(255, 255, 255, 0.96);
  --border-color: rgba(244, 114, 182, 0.28);
  --border-focus: rgba(180, 140, 30, 0.6);
  
  --text-primary: #371420;
  --text-secondary: #831843;
  --text-muted: #be185d;
  
  --gold-light: #854d0e;
  --gold-primary: #a16207;
  --gold-dark: #713f12;

  --rose-pink-light: #fff1f2;
  --rose-pink-primary: #ec4899;
  --rose-pink-glow: rgba(244, 114, 182, 0.18);
  
  --shadow-sm: 0 2px 8px rgba(131, 24, 67, 0.08);
  --shadow-md: 0 6px 20px rgba(131, 24, 67, 0.12);
  --shadow-lg: 0 12px 36px rgba(131, 24, 67, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(244, 114, 182, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(251, 113, 133, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 40%, rgba(253, 164, 175, 0.05) 0%, transparent 65%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(254, 205, 211, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(251, 113, 133, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 228, 230, 0.4) 0%, transparent 70%);
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-primary), var(--bg-tertiary));
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.brand-title span.sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN LAYOUT & SIDEBAR
   ========================================================================== */
.app-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s ease;
}

.sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-box input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 36px 10px 38px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.sidebar-search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.25);
  background: var(--bg-secondary);
}

.sidebar-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
  pointer-events: none;
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 114, 182, 0.2);
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  background: var(--gold-primary);
  color: #071714;
}

/* Nav Pills: Versi Penuh / Ringkasan / Mutiara */
.mode-pill-bar {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.mode-pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mode-pill-btn.active {
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-dark));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.mode-pill-btn.active.hikmah-mode {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #071714;
}

/* Sidebar Chapters Accordion */
.chapter-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-nav-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.25s ease;
}

.chapter-nav-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.chapter-nav-header:hover {
  background: rgba(52, 211, 153, 0.08);
}

.chapter-nav-header .ch-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold-primary);
  margin-right: 8px;
}

.subtopic-menu-list {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.chapter-nav-item.open .subtopic-menu-list {
  display: flex;
}

.chapter-nav-item.open .chevron {
  transform: rotate(180deg);
}

.subtopic-nav-btn {
  padding: 10px 16px 10px 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.subtopic-nav-btn:hover {
  background: rgba(52, 211, 153, 0.1);
  color: var(--text-primary);
}

.subtopic-nav-btn.active {
  background: rgba(52, 211, 153, 0.2);
  color: var(--gold-light);
  font-weight: 700;
  border-left: 3px solid var(--gold-primary);
}

/* ==========================================================================
   READER AREA & CONTENT
   ========================================================================== */
.reader-main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem 2rem;
  width: 100%;
}

.chapter-hero-banner {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), var(--bg-secondary) 45%, var(--bg-tertiary));
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chapter-hero-banner::before {
  content: "بين الأمس واليوم";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-arabic);
  font-size: 5rem;
  color: rgba(245, 197, 66, 0.05);
  pointer-events: none;
}

.hero-ch-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 197, 66, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.hero-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 12px;
}

.btn-copy-section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-copy-section:hover {
  background: rgba(5, 150, 105, 0.3);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-copy-section:active {
  transform: translateY(1px);
}

.btn-copy-section .copy-icon {
  font-size: 0.95rem;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-arabic-title {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  line-height: 1.7;
  direction: rtl;
}

.hero-arabic-title.hero-arabic-almarai {
  font-family: 'Almarai', sans-serif;
  font-size: 1.55rem;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 197, 66, 0.2);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.stat-item strong {
  color: var(--gold-primary);
  font-weight: 700;
}

.article-content {
  font-size: calc(1.06rem * var(--font-scale));
  line-height: 1.95;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content blockquote {
  background: rgba(5, 150, 105, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--gold-light);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.2rem 0 1rem 0;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   HIKMAH QUOTES GRID VIEW (AMIRI GOLD & FIQH HARAKI)
   ========================================================================== */
.hikmah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hikmah-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.hikmah-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.hikmah-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hikmah-card-speaker {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light, #f5c542);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hikmah-card-index {
  font-size: 0.74rem;
  color: var(--gold-light, #f5c542);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hikmah-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.hikmah-card-body {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-primary);
  flex: 1;
  margin-bottom: 1rem;
}

.hikmah-card-body .ar-quote,
.ar-quote {
  display: block !important;
  font-family: 'Amiri', 'Traditional Arabic', serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 1.35rem !important;
  line-height: 2.2 !important;
  color: var(--gold-light, #fde047) !important;
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: isolate !important;
  margin: 0.6rem 0 0.85rem 0 !important;
  padding: 10px 16px !important;
  background: rgba(212, 175, 55, 0.08) !important;
  border-right: 4px solid var(--gold-primary, #d4af37) !important;
  border-left: none !important;
  border-radius: 8px !important;
  word-spacing: 0.08em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hikmah-card-body .ar-quote,
[data-theme="light"] .ar-quote {
  color: #8c6b00 !important;
  background: rgba(212, 175, 55, 0.1) !important;
  border-right-color: #b38600 !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

.hikmah-trans-text,
.hikmah-quote-text {
  font-size: 1.02rem;
  line-height: 1.75;
  font-style: italic !important;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding: 2px 4px;
}

.hikmah-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.hikmah-lesson {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}

/* Kotak Dimensi Fiqh Haraki */
.hikmah-fiqh-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 3px solid var(--emerald-primary, #10b981);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

[data-theme="light"] .hikmah-fiqh-box {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(5, 150, 105, 0.25);
}

.hikmah-fiqh-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-primary, #10b981);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.hikmah-fiqh-text {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================================================
   BOTTOM NAVIGATION
   ========================================================================== */
.bottom-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.nav-pill-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-btn:hover:not(:disabled) {
  border-color: var(--gold-primary);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.nav-pill-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  #mobileMenuToggle {
    display: flex !important;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    z-index: 99;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .app-sidebar.open {
    transform: translateX(0);
  }
  
  .reader-main {
    padding: 1.5rem 1rem 4rem 1rem;
  }
}


/* ==========================================================================
   27 PRINSIP RINGKASAN NUMBERED LIST
   ========================================================================== */
.ringkasan-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ringkasan-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  line-height: 1.8;
  transition: all 0.25s ease;
}

.ringkasan-item:hover {
  border-color: var(--gold-primary);
  background: rgba(12, 35, 31, 0.98);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.ringkasan-num-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #071714;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(245, 197, 66, 0.35);
  margin-top: 2px;
}

.ringkasan-text {
  flex: 1;
  font-size: 1.02rem;
  color: var(--text-primary);
}

/* ==========================================================================
   UTILITI SALIN TEKS (COPY UTILITIES) & TOAST NOTIFICATION
   ========================================================================== */
.ringkasan-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.1rem;
}

.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-action-pill:hover {
  background: rgba(5, 150, 105, 0.3);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-action-pill.btn-primary-pill {
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(5, 150, 105, 0.3));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(245, 197, 66, 0.15);
}

.btn-action-pill.btn-primary-pill:hover {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #071714;
  box-shadow: 0 4px 16px rgba(245, 197, 66, 0.35);
}

.btn-sidebar-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(5, 150, 105, 0.3));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sidebar-download:hover {
  background: var(--gold-primary);
  color: #071714;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.3);
}

.article-content,
.article-content p,
.article-content blockquote,
.ringkasan-list,
.ringkasan-text,
.hikmah-quote-text,
.reader-main {
  user-select: text !important;
  -webkit-user-select: text !important;
}

.quote-wrapper {
  position: relative;
  margin: 1.75rem 0;
}

.quote-wrapper blockquote {
  margin: 0 !important;
  padding-right: 3.5rem;
}

/* =======================================================
   OPENING BANNER: BASMALLAH & TAHMID (BAB 1)
   ======================================================= */
.risalah-opening-banner {
  text-align: center;
  margin: 1.5rem 0 2.2rem 0;
  padding: 1.8rem 1.4rem;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ar-basmallah {
  font-family: 'Amiri', 'Traditional Arabic', serif !important;
  font-size: 2.35rem !important;
  font-weight: 700 !important;
  color: var(--gold-primary, #d4af37) !important;
  line-height: 1.85 !important;
  direction: rtl !important;
  text-align: center !important;
  margin-bottom: 0.85rem !important;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.28);
}

.ar-tahmid {
  font-family: 'Amiri', 'Traditional Arabic', serif !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--gold-light, #fde047) !important;
  line-height: 2.3 !important;
  direction: rtl !important;
  text-align: center !important;
  margin: 0 !important;
  word-spacing: 0.1em;
}

[data-theme="light"] .risalah-opening-banner {
  border-color: rgba(179, 134, 0, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

[data-theme="light"] .ar-basmallah {
  color: #8c6b00 !important;
  text-shadow: none;
}

[data-theme="light"] .ar-tahmid {
  color: #735700 !important;
}

@media (max-width: 640px) {
  .ar-basmallah {
    font-size: 1.85rem !important;
  }
  .ar-tahmid {
    font-size: 1.12rem !important;
    line-height: 2.1 !important;
  }
}

/* Kotak Hijau Khas (Emerald Callout Box) */
.emerald-callout-box {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-left: 5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  padding-right: 4.5rem;
  margin: 1.75rem 0;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

[data-theme="light"] .emerald-callout-box {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.35);
  border-left-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
}

.emerald-callout-box p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
  text-align: justify;
}

.emerald-callout-box p:last-child {
  margin-bottom: 0;
}

.btn-quote-copy {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(12, 35, 31, 0.7);
  border: 1px solid rgba(245, 197, 66, 0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.btn-quote-copy:hover {
  background: var(--gold-primary);
  color: #071714;
  border-color: var(--gold-primary);
  box-shadow: 0 2px 8px rgba(245, 197, 66, 0.4);
}

.btn-item-copy {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--emerald-light);
  font-size: 0.85rem;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-item-copy:hover {
  background: var(--gold-primary);
  color: #071714;
  border-color: var(--gold-primary);
}

.btn-quote-copy-bottom {
  margin-top: 0.8rem;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--emerald-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-quote-copy-bottom:hover {
  background: var(--gold-primary);
  color: #071714;
  border-color: var(--gold-primary);
}

/* Toast Notification Floating */
.app-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(12, 35, 31, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 197, 66, 0.2);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}

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

/* ==========================================================================
   PRINT / PDF STYLES
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .top-header,
  .app-sidebar,
  .bottom-nav-bar,
  .btn-copy-section,
  .btn-item-copy,
  .btn-quote-copy,
  .ringkasan-action-bar,
  .app-toast {
    display: none !important;
  }
  .app-container,
  .reader-main,
  #ringkasanSection {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .chapter-hero-banner {
    background: none !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
    box-shadow: none !important;
  }
  .chapter-hero-banner::before {
    display: none !important;
  }
  .hero-main-title {
    color: #065f46 !important;
    font-size: 1.6rem !important;
  }
  .hero-arabic-title {
    color: #92400e !important;
  }
  .ringkasan-item {
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    page-break-inside: avoid;
    margin-bottom: 0.75rem;
    box-shadow: none !important;
  }
  .ringkasan-num-badge {
    background: #047857 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   ENJIN CARIAN PINTAR (SEARCH ENGINE STYLES)
   ========================================================================== */
.search-results-summary {
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.btn-clear-results {
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-results:hover {
  background: var(--gold-primary);
  color: #071714;
}

.search-empty-box {
  text-align: center;
  padding: 2.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.search-result-card:hover {
  border-color: var(--gold-primary);
  background: rgba(26, 18, 23, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .search-result-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(131, 24, 67, 0.12);
}

.search-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.search-badge {
  background: rgba(245, 197, 66, 0.18);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 197, 66, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.search-match-type {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.search-card-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.search-card-snippet {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Highlight Match */
mark.search-match {
  background: rgba(245, 197, 66, 0.4);
  color: var(--gold-light);
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(245, 197, 66, 0.3);
}

[data-theme="light"] mark.search-match {
  background: #fef08a;
  color: #854d0e;
}

/* Pulse Highlight Animation */
.pulse-highlight {
  animation: pulseGoldGlow 3s ease;
  position: relative;
}

@keyframes pulseGoldGlow {
  0% {
    outline: 3px solid rgba(245, 197, 66, 0.85);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.6);
  }
  30% {
    outline: 3px solid rgba(245, 197, 66, 0.95);
    box-shadow: 0 0 25px rgba(245, 197, 66, 0.7);
  }
  70% {
    outline: 2px solid rgba(245, 197, 66, 0.4);
    box-shadow: 0 0 12px rgba(245, 197, 66, 0.3);
  }
  100% {
    outline: 2px solid transparent;
    box-shadow: none;
  }
}


/* ==========================================================================
   WAWASAN UMMAH FADHILAH & PERADABAN BARU ISLAM (PBI) SPOTLIGHT MODAL
   ========================================================================== */

.sidebar-peradaban-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 14px 16px 14px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-peradaban-promo:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28) 0%, rgba(217, 119, 6, 0.25) 100%);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

.peradaban-promo-icon {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.peradaban-promo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.peradaban-promo-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7dd3fc;
  line-height: 1.25;
}

.peradaban-promo-sub {
  font-size: 0.72rem;
  color: var(--gold-light, #fde047);
  line-height: 1.2;
  margin-top: 3px;
}

.peradaban-promo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.25);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
  letter-spacing: 0.4px;
}

.layer-btn-peradaban {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layer-btn-peradaban:hover {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .layer-btn-peradaban {
    display: none;
  }
}

/* Modal Overlay & Box */
#modalPeradabanSpotlight,
.peradaban-modal-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

#modalPeradabanSpotlight.show,
.peradaban-modal-overlay.show {
  display: flex !important;
}

#modalPeradabanSpotlight .peradaban-modal-box,
.peradaban-modal-box {
  position: relative !important;
  background: #091a29 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  border-top: 5px solid #38bdf8 !important;
  border-radius: 18px !important;
  max-width: 780px !important;
  width: 100% !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(2, 132, 199, 0.25) !important;
  overflow: hidden !important;
  animation: modalPeradabanZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalPeradabanZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.peradaban-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 0.6rem 1.5rem;
}

.peradaban-modal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(2, 132, 199, 0.25);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.tarbiah-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.tarbiah-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.peradaban-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #7dd3fc !important;
  margin: 0;
  padding: 0 1.5rem;
}

.peradaban-modal-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0.25rem 0 0 0;
  padding: 0 1.5rem 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

/* Panel Muat Turun Dokumen PDF */
.peradaban-download-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin: 0.6rem 1.5rem 0.5rem 1.5rem;
}

.download-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light, #fde047);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .download-buttons-group {
    grid-template-columns: 1fr;
  }
}

.peradaban-doc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.peradaban-doc-btn.pdf-btn {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(159, 18, 57, 0.35) 100%);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.peradaban-doc-btn.pdf-btn:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.45) 0%, rgba(159, 18, 57, 0.55) 100%);
  border-color: #fb7185;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  color: #ffffff;
}

.peradaban-doc-btn .doc-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.peradaban-doc-btn .doc-info {
  display: flex;
  flex-direction: column;
}

.peradaban-doc-btn .doc-main-text {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.peradaban-doc-btn .doc-sub-text {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}

.peradaban-modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.peradaban-card-highlight {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1.15rem;
}

.peradaban-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.peradaban-card-icon {
  font-size: 1.4rem;
}

.peradaban-desc-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0.4rem 0 0 0;
}

.peradaban-pillar-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  transition: all 0.2s ease;
}

.peradaban-pillar-card:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

.tarbiah-pillar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.35rem;
}

.tarbiah-pillar-icon {
  font-size: 1.25rem;
}

.tarbiah-pillar-titles h4 {
  margin: 0;
  font-size: 0.96rem;
  color: #bae6fd;
}

.tarbiah-pillar-tag {
  font-size: 0.72rem;
  color: #fb7185;
  font-weight: 600;
}

.tarbiah-modal-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  justify-content: flex-end;
  background: rgba(9, 26, 41, 0.95);
}

.peradaban-close-footer-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.peradaban-close-footer-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Light Theme Overrides */
[data-theme="light"] #modalPeradabanSpotlight,
[data-theme="light"] .peradaban-modal-overlay {
  background: rgba(15, 23, 42, 0.6) !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-modal-box,
[data-theme="light"] .peradaban-modal-box {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  color: #0f172a !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-modal-title {
  color: #0369a1 !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-modal-subtitle {
  color: #475569 !important;
  border-bottom-color: rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-download-panel {
  background: #f8fafc !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] #modalPeradabanSpotlight .download-panel-title {
  color: #a16207 !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-card-highlight {
  background: #f0fdf4 !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-desc-text {
  color: #1e293b !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-pillar-card {
  background: #f8fafc !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] #modalPeradabanSpotlight .peradaban-pillar-card:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] #modalPeradabanSpotlight .tarbiah-pillar-titles h4 {
  color: #0369a1 !important;
}

[data-theme="light"] #modalPeradabanSpotlight .tarbiah-modal-footer {
  background: #f8fafc !important;
  border-top-color: rgba(2, 132, 199, 0.2) !important;
}


/* ==========================================================================
   PEMURNIAN PRA-CLOUDFLARE: INFOGRAFIK 12 BAB, MASA BACAAN & PRINT POLISH
   ========================================================================== */
.hero-badge-group,
.hero-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
}

.btn-print-hero {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
}

.btn-print-hero:hover {
  background: rgba(56, 189, 248, 0.28) !important;
  border-color: #38bdf8 !important;
}

.stat-resume-pill {
  cursor: pointer;
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fde047 !important;
  font-family: inherit;
  transition: all 0.2s ease;
}

.stat-resume-pill:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .stat-resume-pill {
  color: #92400e !important;
  background: rgba(245, 158, 11, 0.16) !important;
}

.btn-wa-pill {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

/* Kad Infografik Pedagogi 12 Bab */
.ashi-infographic-wrap {
  margin: 2.2rem 0 1.2rem 0;
}

.pedagogical-infographic-card {
  background: linear-gradient(145deg, rgba(11, 30, 24, 0.96) 0%, rgba(7, 20, 16, 0.98) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-left: 4px solid #10b981;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.pedagogical-infographic-card.theme-amber {
  border-left-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.pedagogical-infographic-card.theme-cyan {
  border-left-color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.pedagogical-infographic-card.theme-rose {
  border-left-color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.32);
}

.ashi-inf-header {
  margin-bottom: 1.1rem;
}

.ashi-inf-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fde047;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 11px;
  border-radius: 9999px;
  margin-bottom: 0.55rem;
}

.ashi-inf-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.ashi-inf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.85rem;
}

.ashi-node {
  background: rgba(15, 36, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ashi-node:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.45);
}

.ashi-node.tone-amber { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.07); }
.ashi-node.tone-cyan { border-left-color: #38bdf8; background: rgba(56, 189, 248, 0.07); }
.ashi-node.tone-rose { border-left-color: #f43f5e; background: rgba(244, 63, 94, 0.08); }
.ashi-node.tone-emerald { border-left-color: #10b981; background: rgba(16, 185, 129, 0.08); }

.ashi-node-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fde047;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.ashi-node-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.ashi-node-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.ashi-inf-footer {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #e2e8f0;
}

[data-theme="light"] .pedagogical-infographic-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ashi-inf-title,
[data-theme="light"] .ashi-node-title {
  color: #0f172a;
}

[data-theme="light"] .ashi-node {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .ashi-node-badge {
  color: #b45309;
}

[data-theme="light"] .ashi-node-desc,
[data-theme="light"] .ashi-inf-footer {
  color: #334155;
}

[data-theme="light"] .ashi-inf-footer {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

@media print {
  .hero-action-group,
  .hero-reading-time,
  .stat-resume-pill,
  .btn-copy-section {
    display: none !important;
  }

  .pedagogical-infographic-card {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

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

  .ashi-node {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }
}
