/* ==========================================================================
   مَوْقِعُ قَنَاةِ «اللهُ هُوَ الحَيُّ القَيُّوم» (@god_is_the_ever_living)
   المـَكْتَبَةُ الإِسْلَامِيَّةُ الوَقْفِيَّةُ المـَجَّانِيَّةُ
   النمط البصري: الزمردي الملكي والذهب الإسلامي الفاخر
   ========================================================================== */

:root {
  --bg-dark: #041712;
  --bg-primary: #082B23;
  --bg-secondary: #0D382E;
  --bg-card: rgba(13, 56, 46, 0.85);
  --bg-card-hover: rgba(18, 74, 62, 0.95);
  --bg-gate: #05201A;
  
  --gold-primary: #D5B66B;
  --gold-light: #F3E2B3;
  --gold-bright: #FFE599;
  --gold-dark: #A68238;
  --gold-border: rgba(213, 182, 107, 0.45);
  --gold-border-subtle: rgba(213, 182, 107, 0.22);
  
  --text-white: #FFFDF7;
  --text-parchment: #EFE8D8;
  --text-muted: #B8CFC5;
  --text-gold: #E8D196;
  
  --red-alert: #FF5A5F;
  --red-border: rgba(255, 90, 95, 0.5);
  --red-bg: rgba(60, 15, 20, 0.85);

  --font-amiri: 'Amiri', serif;
  --font-naskh: 'Noto Naskh Arabic', serif;
  --font-sans: 'Noto Sans Arabic', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(213, 182, 107, 0.25);
  --shadow-light-burst: 0 0 100px rgba(255, 245, 200, 0.95);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-naskh);
  background-color: var(--bg-dark);
  color: var(--text-parchment);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmospheric Gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(20, 80, 65, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(10, 45, 36, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(15, 60, 48, 0.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   DHIKR GATE SCREEN (البوابة الأولية لذكر الله الكاملة)
   ========================================================================== */
.dhikr-gate-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

.dhikr-gate-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dhikr-gate-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(13, 56, 46, 0.98) 0%, rgba(4, 23, 18, 0.99) 70%, #020C09 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Light Burst Radiation Animation (إشعاع النور العظيم) */
.light-burst-effect {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 240, 1) 0%, rgba(255, 225, 140, 0.85) 30%, rgba(213, 182, 107, 0.4) 65%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transform: scale(0.2);
  transition: opacity 0.5s ease-out, transform 0.8s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.light-burst-effect.active {
  opacity: 1;
  transform: scale(3.5);
}

/* Sparkle particles */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.dhikr-gate-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: radial-gradient(ellipse at 50% 25%, #0F4539 0%, #072B23 65%, #031813 100%);
  border: 1.6px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem 2.25rem;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), var(--shadow-gold);
  transform: translateY(0) scale(1);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  margin: auto 0;
}

.dhikr-gate-screen.hidden .dhikr-gate-card {
  transform: translateY(30px) scale(0.92);
}

/* Islamic Architectural Framing */
.dhikr-frame-outer {
  position: absolute;
  inset: 7px;
  border: 1.2px solid rgba(213, 182, 107, 0.45);
  border-radius: calc(var(--radius-lg) - 3px);
  pointer-events: none;
}

.dhikr-frame-inner {
  position: absolute;
  inset: 13px;
  border: 0.6px dashed rgba(213, 182, 107, 0.25);
  border-radius: calc(var(--radius-lg) - 7px);
  pointer-events: none;
}

.dhikr-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  background: url('../images/corner_ornament.svg') center/contain no-repeat;
  pointer-events: none;
  opacity: 0.6;
}

.dhikr-corner-tl { top: 12px; left: 12px; }
.dhikr-corner-tr { top: 12px; right: 12px; transform: scaleX(-1); }
.dhikr-corner-bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.dhikr-corner-br { bottom: 12px; right: 12px; transform: scale(-1, -1); }

.dhikr-rosette-top {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: url('../images/rosette.svg') center/contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(213, 182, 107, 0.5));
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 6px rgba(213, 182, 107, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(213, 182, 107, 0.7)); }
}

.dhikr-basmala {
  font-family: var(--font-amiri);
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.dhikr-title {
  font-family: var(--font-amiri);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dhikr-subtitle {
  font-size: 0.95rem;
  color: var(--gold-primary);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   THE 7 ADHKAR ORDERED LIST (قائمة الأذكار السبعة المحددة)
   ========================================================================== */
.dhikr-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  text-align: right;
}

.dhikr-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(8, 42, 34, 0.85);
  border: 1px solid rgba(213, 182, 107, 0.35);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dhikr-item:hover {
  background: rgba(14, 60, 48, 0.95);
  border-color: var(--gold-primary);
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 15px rgba(213, 182, 107, 0.2);
}

.dhikr-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(213, 182, 107, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--font-amiri);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dhikr-phrase {
  font-family: var(--font-amiri);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.6;
  flex: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dhikr-sparkle {
  color: var(--gold-primary);
  font-size: 0.85rem;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.dhikr-item:hover .dhikr-sparkle {
  opacity: 1;
  transform: scale(1.3);
  color: var(--gold-bright);
}

/* Radiant Glowing Enter Button */
.dhikr-enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  background: linear-gradient(135deg, #FFF0B8 0%, #E6CA85 30%, #D5B66B 70%, #A68238 100%);
  color: #041813;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1.15rem 2rem;
  border: 1.5px solid #FFFDF7;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 35px rgba(213, 182, 107, 0.6);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.dhikr-enter-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 230, 150, 0.85);
  filter: brightness(1.06);
}

.dhikr-enter-btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-halo {
  position: absolute;
  inset: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  animation: shineMove 3.5s infinite;
  pointer-events: none;
}

@keyframes shineMove {
  0% { transform: translateX(-150%) skewX(-25deg); }
  35%, 100% { transform: translateX(250%) skewX(-25deg); }
}

.btn-icon-shine {
  font-size: 1.2rem;
  animation: starTwinkle 2s infinite ease-in-out;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.dhikr-footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1000;
  background: rgba(8, 43, 35, 0.98);
  border-bottom: 1px solid var(--gold-border-subtle);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-rosette {
  width: 40px;
  height: 40px;
  background: url('../images/rosette.svg') center/contain no-repeat;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(213, 182, 107, 0.4));
}

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

.brand-title {
  font-family: var(--font-amiri);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.brand-handle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gold-primary);
  direction: ltr;
  text-align: right;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-parchment);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--gold-light);
  background: rgba(213, 182, 107, 0.1);
}

.btn-reopen-dhikr {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(213, 182, 107, 0.14);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-reopen-dhikr:hover {
  background: var(--gold-primary);
  color: #082B23;
  box-shadow: 0 0 18px rgba(213, 182, 107, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(213, 182, 107, 0.14);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
}

.hero-title {
  font-family: var(--font-amiri);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.gold-gradient {
  background: linear-gradient(135deg, #FFFDF7 0%, #F3E2B3 40%, #D5B66B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 43, 35, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1.25rem;
  margin-bottom: 1.5rem;
}

.pill-prefix {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pill-handle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  direction: ltr;
}

.hero-description {
  max-width: 780px;
  font-size: 1.12rem;
  line-height: 1.95;
  color: var(--text-parchment);
  margin-bottom: 2rem;
}

.hero-description strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* بطاقة التنبيه الشرعي الصارم وميثاق الوقف في واجهة الموقع */
.hero-waqf-banner {
  width: 100%;
  max-width: 820px;
  background: radial-gradient(ellipse at 50% 0%, rgba(18, 70, 56, 0.96) 0%, rgba(7, 34, 27, 0.98) 100%);
  border: 1.6px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.85rem 1.5rem;
  margin: 0 auto 2.25rem;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(213, 182, 107, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-waqf-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFE599, var(--gold-primary), #FFE599, transparent);
}

.waqf-banner-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.waqf-banner-icon {
  font-size: 1.4rem;
}

.waqf-banner-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.2px;
}

.waqf-banner-badge {
  background: rgba(220, 53, 69, 0.25);
  border: 1px solid rgba(255, 120, 130, 0.6);
  color: #FFC0C5;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.waqf-banner-text {
  font-family: var(--font-arabic-reading);
  font-size: 1.15rem;
  line-height: 1.85;
  color: #FFFDF7;
  margin-bottom: 1.25rem;
  text-align: center;
}

.waqf-banner-text strong {
  color: #FFE89E;
  font-weight: 700;
}

.waqf-banner-text .forbid-highlight {
  color: #FFB3BA;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-waqf-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(230, 202, 133, 0.18) 0%, rgba(213, 182, 107, 0.28) 100%);
  border: 1.4px solid var(--gold-primary);
  color: #FFF8E7;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-waqf-prompt:hover {
  background: linear-gradient(135deg, #E6CA85 0%, #D5B66B 50%, #B8934A 100%);
  color: #06231C;
  border-color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(213, 182, 107, 0.45);
}

.btn-waqf-prompt .prompt-icon {
  font-size: 1.15rem;
}

.btn-waqf-prompt .prompt-arrow {
  transition: transform 0.3s ease;
  font-weight: 800;
}

.btn-waqf-prompt:hover .prompt-arrow {
  transform: translateX(-4px);
}

@media (max-width: 600px) {
  .hero-waqf-banner {
    padding: 1.25rem 1rem;
    margin-bottom: 1.75rem;
  }
  .waqf-banner-title {
    font-size: 1.18rem;
  }
  .waqf-banner-text {
    font-size: 1.02rem;
    line-height: 1.75;
  }
  .btn-waqf-prompt {
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    width: 100%;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #E6CA85 0%, #D5B66B 50%, #B8934A 100%);
  color: #06231C;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid #FFE599;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(213, 182, 107, 0.5);
  color: #031712;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(13, 56, 46, 0.85);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
}

.btn-secondary:hover {
  background: rgba(20, 75, 62, 0.95);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 43, 35, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  width: 100%;
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.stat-num {
  font-family: var(--font-amiri);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 45px;
  background: linear-gradient(180deg, transparent, var(--gold-border), transparent);
}

/* ==========================================================================
   BOOKS SHOWCASE SECTION
   ========================================================================== */
.books-section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-rosette {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  background: url('../images/rosette.svg') center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(213, 182, 107, 0.35));
}

.section-title {
  font-family: var(--font-amiri);
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.divider-ornament-center {
  width: 180px;
  height: 16px;
  margin: 0.5rem auto 1rem;
  background: url('../images/divider.svg') center/contain no-repeat;
  filter: brightness(1.2);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-parchment);
  max-width: 650px;
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

.book-card {
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, #0F4438 0%, #082D25 70%, #041C16 100%);
  border: 1.2px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), var(--shadow-gold);
}

.book-card-border {
  position: absolute;
  inset: 6px;
  border: 0.5px dashed rgba(213, 182, 107, 0.25);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.book-badge {
  align-self: center;
  background: rgba(20, 70, 58, 0.85);
  border: 0.8px solid var(--gold-border);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  z-index: 1;
}

.featured-ribbon {
  position: absolute;
  top: 14px;
  right: -36px;
  background: linear-gradient(135deg, #E6CA85, #B8934A);
  color: #041C16;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(213, 182, 107, 0.35);
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover-wrapper {
  transform: scale(1.03);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
}

.book-cover-img {
  width: 100%;
  aspect-ratio: 148 / 210;
  object-fit: cover;
  display: block;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 28, 22, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-card:hover .cover-overlay {
  opacity: 1;
}

.cover-zoom-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--gold-border);
}

.book-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-family: var(--font-amiri);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  text-align: center;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.meta-item {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gold-primary);
  background: rgba(8, 43, 35, 0.75);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--gold-border-subtle);
}

.book-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-parchment);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.book-highlights {
  margin-bottom: 1.5rem;
  border-top: 0.5px dashed var(--gold-border-subtle);
  padding-top: 1rem;
}

.book-highlights li {
  position: relative;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-right: 1.25rem;
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

.book-highlights li::before {
  content: '✦';
  position: absolute;
  right: 0;
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.book-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.inapp-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 820px;
  margin: 0 auto 1.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(16, 59, 48, 0.88);
  border: 1px solid rgba(213, 182, 107, 0.48);
  color: #FFFDF7;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: right;
}

.inapp-notice[hidden] {
  display: none;
}

.inapp-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #E6CA85 0%, #D5B66B 50%, #B8934A 100%);
  color: #06231C;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid #FFE599;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(213, 182, 107, 0.4);
  color: #02120E;
}

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

.btn-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(8, 43, 35, 0.75);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border-subtle);
  text-align: center;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-preview:hover {
  background: rgba(18, 70, 58, 0.85);
  border-color: var(--gold-primary);
  color: #FFFDF7;
  transform: translateY(-2px);
}

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

/* ==========================================================================
   WAQF CHARTER & STRICT BAN ON SELLING
   ========================================================================== */
.waqf-section {
  padding: 4.5rem 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(18, 65, 52, 0.25) 0%, transparent 70%);
}

.waqf-card {
  position: relative;
  background: radial-gradient(ellipse at 50% 25%, #0D372E 0%, #07251E 70%, #031410 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  overflow: hidden;
}

.waqf-frame-outer {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(213, 182, 107, 0.45);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.waqf-frame-inner {
  position: absolute;
  inset: 16px;
  border: 0.5px dashed rgba(213, 182, 107, 0.25);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.waqf-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.waqf-seal {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.waqf-title {
  font-family: var(--font-amiri);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.waqf-badge {
  display: inline-block;
  background: rgba(213, 182, 107, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 1.25rem;
  border-radius: var(--radius-pill);
}

.waqf-content {
  position: relative;
  z-index: 1;
}

.waqf-quote {
  font-family: var(--font-amiri);
  font-size: 1.35rem;
  line-height: 1.95;
  color: var(--gold-light);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(6, 28, 22, 0.65);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border-subtle);
}

.waqf-quote strong {
  color: #FFFDF7;
  text-decoration: underline;
  text-decoration-color: var(--gold-primary);
}

.waqf-terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.term-box {
  background: rgba(7, 30, 24, 0.85);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gold-border-subtle);
}

.term-box.permitted {
  border-right: 4px solid #48BB78;
}

.term-box.prohibited {
  border-right: 4px solid var(--red-alert);
}

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

.term-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.term-list li {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-parchment);
  padding-right: 1.25rem;
  margin-bottom: 0.5rem;
}

.term-list li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--gold-primary);
  font-weight: bold;
}

.term-box.prohibited .term-list li strong {
  color: var(--red-alert);
}

/* Warning Banner */
.waqf-warning-banner {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(40, 5, 10, 0.5);
}

.warning-seal {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFB3BA;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.warning-paragraph {
  font-family: var(--font-amiri);
  font-size: 1.35rem;
  line-height: 2;
  color: #FFFDF7;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.warning-sign {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ==========================================================================
   SOCIAL MEDIA SECTION (منصات التواصل الاجتماعي الرسمية الثمانية)
   ========================================================================== */
.social-section {
  padding: 4.5rem 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.social-card {
  background: rgba(10, 42, 34, 0.85);
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(213, 182, 107, 0.2);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 26, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0.6px solid var(--gold-border-subtle);
  transition: transform 0.25s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

/* Brand specific icon colors */
.tiktok-card .social-icon { color: #EE1D52; }
.instagram-card .social-icon { color: #E1306C; }
.threads-card .social-icon { color: #F3E2B3; }
.youtube-card .social-icon { color: #FF0000; }
.snapchat-card .social-icon { color: #FFFC00; }
.x-card .social-icon { color: #FFFFFF; }
.pinterest-card .social-icon { color: #E60023; }
.tumblr-card .social-icon { color: #36465D; }

.social-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.social-platform {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.social-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.social-handle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gold-primary);
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  color: var(--gold-primary);
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.social-card:hover .social-arrow {
  transform: translateX(-5px);
  color: var(--gold-bright);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #020F0C;
  border-top: 1px solid var(--gold-border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid rgba(213, 182, 107, 0.2);
}

.footer-brand .brand-title {
  font-family: var(--font-amiri);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-brand .brand-handle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold-primary);
  direction: ltr;
  text-align: right;
  margin-bottom: 0.75rem;
}

.footer-summary {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-parchment);
}

.footer-heading {
  font-family: var(--font-amiri);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-parchment);
}

.footer-nav a:hover {
  color: var(--gold-light);
  padding-right: 4px;
}

.supplication-text {
  font-family: var(--font-amiri);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-parchment);
  font-style: italic;
  background: rgba(8, 43, 35, 0.5);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--gold-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.copyright-line strong {
  color: var(--gold-light);
}

.waqf-pill-footer {
  background: rgba(20, 68, 56, 0.8);
  border: 1px solid var(--gold-border-subtle);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (الحواسيب، الأجهزة اللوحية، والهواتف الذكية)
   ========================================================================== */

/* شاشات الحواسيب الواسعة (Desktop Monitors) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .hero-title {
    font-size: 3.25rem;
  }
}

/* شاشات الحواسيب المحمولة والأجهزة اللوحية الأفقية (Laptops & Tablets) */
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-supplication {
    grid-column: span 2;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

/* الهواتف الذكية والأجهزة اللوحية الرأسية (Tablets & Large Phones) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .site-header {
    padding: 0.75rem 0;
  }
  .header-container {
    padding: 0 1rem;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-handle {
    font-size: 0.8rem;
  }
  .btn-reopen-dhikr {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    max-width: 380px;
    margin: 0 auto;
  }
  .stat-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  }
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 2rem;
  }
  .waqf-terms-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .waqf-card {
    padding: 2rem 1.25rem;
  }
  .social-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 1rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-supplication {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1rem;
  }
  
  /* بطاقة الأذكار في الهاتف */
  .dhikr-gate-screen {
    padding: 1rem 0.65rem;
  }
  .dhikr-gate-card {
    padding: 1.85rem 1.15rem 1.35rem;
    max-width: 520px;
  }
  .dhikr-title {
    font-size: 1.45rem;
    line-height: 1.4;
  }
  .dhikr-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
  }
  .dhikr-list-container {
    gap: 0.55rem;
    margin-bottom: 1.25rem;
  }
  .dhikr-item {
    padding: 0.65rem 0.95rem;
    gap: 0.75rem;
  }
  .dhikr-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.95rem;
  }
  .dhikr-phrase {
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .dhikr-enter-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
  }
}

/* شاشات الهواتف الذكية الصغيرة (Small Mobile Screens <= 480px) */
.inapp-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 820px;
  margin: 0 auto 1.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(16, 59, 48, 0.88);
  border: 1px solid rgba(213, 182, 107, 0.48);
  color: #FFFDF7;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: right;
}

.inapp-notice[hidden] {
  display: none;
}

.inapp-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }
  .brand-title {
    font-size: 1.02rem;
  }
  .btn-reopen-dhikr .btn-text {
    display: none;
  }
  .btn-reopen-dhikr {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-tag {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
  }
  .books-grid {
    max-width: 100%;
    gap: 1.5rem;
  }
  .book-card {
    padding: 1.25rem 0.95rem;
  }
  .book-cover-wrapper {
    max-width: 215px;
    margin-bottom: 1.15rem;
  }
  .book-cover-img {
    width: 100%;
    height: auto;
    aspect-ratio: 148 / 210;
    object-fit: contain;
  }
  .book-title {
    min-height: auto;
    font-size: 1.32rem;
  }
  .book-meta {
    gap: 0.45rem;
  }
  .meta-item {
    font-size: 0.78rem;
  }
  .btn-download {
    padding: 0.78rem 1rem;
    font-size: 0.9rem;
  }
  .btn-preview {
    padding: 0.65rem 1rem;
    font-size: 0.84rem;
  }
  
  .dhikr-gate-screen {
    padding: 0.75rem 0.5rem;
  }
  .dhikr-gate-card {
    padding: 1.35rem 0.85rem 1.15rem;
    border-radius: var(--radius-md);
  }
  .dhikr-basmala {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  .dhikr-title {
    font-size: 1.28rem;
  }
  .dhikr-subtitle {
    font-size: 0.88rem;
  }
  .dhikr-item {
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
  }
  .dhikr-num {
    width: 25px;
    height: 25px;
    min-width: 25px;
    font-size: 0.85rem;
  }
  .dhikr-phrase {
    font-size: 1.05rem;
  }
  .dhikr-enter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .dhikr-footnote {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.62rem;
  }
  .book-cover-wrapper {
    max-width: 185px;
  }
  .book-title {
    font-size: 1.2rem;
  }
  .book-badge {
    font-size: 0.74rem;
    padding: 0.22rem 0.75rem;
  }
}

/* تحسين تجربة الهواتف ذات الارتفاع القصير أثناء فتح نافذة الأذكار (Landscape or Short Viewports) */
@media (max-height: 720px) {
  .dhikr-gate-screen {
    padding: 0.75rem 0.5rem;
  }
  .dhikr-gate-card {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 1.25rem 1rem 1rem;
  }
  .dhikr-item {
    padding: 0.45rem 0.75rem;
  }
  .dhikr-list-container {
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }
  .dhikr-enter-btn {
    padding: 0.7rem 1rem;
  }
}

/* ضبط دقة الشريط الذهبي المائل وحجم بطاقة الذكر على أضيق الشاشات */
.books-grid .featured-ribbon {
  font-size: 0.68rem;
  letter-spacing: 0;
}

@media (max-width: 480px) {
  .books-grid .featured-ribbon {
    font-size: 0.63rem;
  }
}

@media (max-width: 360px) and (max-height: 740px) {
  .dhikr-gate-card {
    padding: 1rem 0.85rem 0.85rem;
  }
  .dhikr-gate-header {
    margin-bottom: 0.7rem;
  }
  .dhikr-gate-title {
    font-size: 1.25rem;
  }
  .dhikr-item {
    padding: 0.38rem 0.6rem;
  }
  .dhikr-phrase {
    font-size: 0.96rem;
  }
}
