/* ==========================================================================
   ILM BY NOUMAN - Unified Design System
   Based on the Tajweed Essentials cosmic theme
   ========================================================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Night Sky Colors */
  --night-1: #160b3d;
  --night-2: #1c1050;
  --night-3: #241259;
  --night-deep: #0d0628;
  
  /* Accent Colors */
  --gold: #f5b942;
  --gold-soft: #ffd97a;
  --gold-bright: #ffe066;
  --sky-blue: #6fc9ff;
  --coral: #ff8383;
  --mint: #5fe0b0;
  --lavender: #c792ea;
  --peach: #ff9f7f;

  /* Legacy aliases used by hub sub-pages (qaida/resources/practice/games) */
  --accent-gold: #f5b942;
  --accent-warm: #e88a2f;
  --text-primary: #eae3fb;
  --space-3xl: 140px;
  
  /* Parchment Colors (for cards/modals) */
  --parch: #fff6e5;
  --parch-dark: #fdf0d6;
  --parch-line: #e8d5a8;
  --ink: #2c1a4d;
  
  /* Neutral Colors */
  --star: #ffffff;
  --text-light: #eae3fb;
  --text-muted: #d8cdf7;
  --text-dim: #b6a7e0;
  
  /* Functional Colors */
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 60px;
  --space-2xl: 100px;
  
  /* Typography */
  --font-display: 'Baloo 2', 'Amiri', sans-serif;
  --font-body: 'Quicksand', 'Amiri', sans-serif;
  --font-arabic: 'Amiri', serif;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-md: 0 10px 26px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 35px -8px var(--gold);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 50%, var(--night-3) 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   COSMIC BACKGROUND ANIMATION
   ========================================================================== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Stars */
.cosmic-bg .stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--star);
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.6); }
}

/* Nebula Blobs */
.cosmic-bg .nebula .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: driftBlob 30s ease-in-out infinite;
}

.cosmic-bg .nebula .blob:nth-child(1) {
  width: 420px; height: 420px;
  left: -10%; top: 4%;
  background: radial-gradient(circle, rgba(111,201,255,.55), transparent 70%);
  animation-duration: 32s;
}
.cosmic-bg .nebula .blob:nth-child(2) {
  width: 360px; height: 360px;
  right: -8%; top: 22%;
  background: radial-gradient(circle, rgba(255,131,131,.4), transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}
.cosmic-bg .nebula .blob:nth-child(3) {
  width: 460px; height: 460px;
  left: 15%; top: 55%;
  background: radial-gradient(circle, rgba(95,224,176,.35), transparent 70%);
  animation-duration: 36s;
  animation-delay: -12s;
}
.cosmic-bg .nebula .blob:nth-child(4) {
  width: 340px; height: 340px;
  right: 10%; top: 75%;
  background: radial-gradient(circle, rgba(245,185,66,.35), transparent 70%);
  animation-duration: 24s;
  animation-delay: -3s;
}
.cosmic-bg .nebula .blob:nth-child(5) {
  width: 400px; height: 400px;
  left: 40%; top: 92%;
  background: radial-gradient(circle, rgba(199,146,234,.35), transparent 70%);
  animation-duration: 28s;
  animation-delay: -9s;
}

@keyframes driftBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-25px) scale(1.08); }
  66% { transform: translate(-25px,20px) scale(0.95); }
}

/* Dust Particles */
.cosmic-bg .dust span {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px 2px rgba(245,185,66,.55);
  opacity: 0;
  animation: riseDust linear infinite;
}

@keyframes riseDust {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  92% { opacity: 0.4; }
  100% { transform: translateY(-115vh) translateX(var(--drift,20px)); opacity: 0; }
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--sky-blue), var(--mint));
  box-shadow: 0 0 12px rgba(245,185,66,.6);
  transition: width 0.08s linear;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(22,11,61,0.98) 0%, rgba(28,16,80,0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,185,66,0.15);
  padding: var(--space-md) 0;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-logo h1,
.site-logo .logo-title {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.site-logo p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(245,185,66,0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.mobile-menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-btn span:nth-child(1) { top: 12px; }
.mobile-menu-btn span:nth-child(2) { top: 20px; }
.mobile-menu-btn span:nth-child(3) { top: 28px; }

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(22,11,61,0.98);
    padding: var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }
  .main-nav.active { max-height: 500px; }
  .main-nav ul { flex-direction: column; gap: var(--space-xs); }
  .main-nav a { display: block; padding: var(--space-sm); }
}

/* ==========================================================================
   ALL PAGES DROPDOWN
   ========================================================================== */
.all-pages-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 95;
}

.all-pages-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border: none;
  border-radius: var(--radius-full);
  color: var(--night-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(245,185,66,.4), 0 0 0 1px rgba(255,255,255,.2) inset;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.all-pages-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(245,185,66,.55);
}

.all-pages-btn[aria-expanded="true"] {
  border-radius: var(--radius-full) var(--radius-full) var(--radius-full) 0;
}

.btn-icon { font-size: 18px; }
.btn-sparkle { font-size: 12px; }

.all-pages-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: linear-gradient(165deg, var(--night-2) 0%, var(--night-1) 100%);
  border: 1px solid rgba(245,185,66,.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.95);
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: 94;
}

.all-pages-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(245,185,66,.15), transparent);
  border-bottom: 1px solid rgba(245,185,66,.2);
}

.dropdown-header h4,
.dropdown-header .dropdown-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--star);
  margin: 0;
}

.dropdown-sections {
  padding: 12px 14px;
  max-height: 60vh;
  overflow-y: auto;
}

.dropdown-section { margin-bottom: 14px; }
.dropdown-section:last-child { margin-bottom: 0; }

.dropdown-section h5,
.dropdown-section .dropdown-group-title {
  margin: 0 0 8px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-section h5 i,
.dropdown-section .dropdown-group-title i {
  font-size: 13px;
  color: var(--gold);
}

.dropdown-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.dropdown-section a:hover {
  background: linear-gradient(90deg, rgba(245,185,66,.18), rgba(245,185,66,.06));
  border-color: rgba(245,185,66,.4);
  color: var(--star);
  transform: translateX(4px);
}

.dropdown-section a i {
  font-size: 14px;
  color: var(--gold-soft);
  width: 18px;
  text-align: center;
}

.dropdown-section a.current {
  background: linear-gradient(90deg, rgba(245,185,66,.25), rgba(245,185,66,.08));
  border-color: var(--gold);
  color: var(--star);
}

.dropdown-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: var(--radius-md);
  color: var(--star);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
  transition: all var(--transition-fast);
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
}

.whatsapp-link i { font-size: 18px; }

/* WhatsApp Nav Button */
.whatsapp-nav-btn {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark)) !important;
  color: var(--star) !important;
  border-radius: var(--radius-full) !important;
  padding: 8px 16px !important;
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}

.whatsapp-nav-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(37,211,102,.4) !important;
}

@media (max-width: 600px) {
  .all-pages-btn .btn-text { display: none; }
  .all-pages-btn { padding: 12px; border-radius: 50%; }
  .all-pages-dropdown { width: 92vw; right: -4px; }
  .all-pages-btn[aria-expanded="true"] { border-radius: 50%; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
}

.hero .kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.9;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--star), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px rgba(245,185,66,.25);
}

.hero .arabic-hero {
  font-family: var(--font-arabic);
  font-size: clamp(26px, 4.5vw, 42px);
  color: var(--gold);
  margin: 10px 0 18px;
}

.hero .lede {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--gold-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 2s ease-in-out infinite;
  margin-top: var(--space-lg);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-cue .arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--gold-soft);
  border-bottom: 2px solid var(--gold-soft);
  transform: rotate(45deg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--night-2);
  box-shadow: 0 8px 24px rgba(245,185,66,.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(245,185,66,.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--star);
  border: 2px solid rgba(255,255,255,.25);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--star);
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--star);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.info-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 30px rgba(245,185,66,.15);
}

.info-card .card-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--star);
  margin-bottom: var(--space-xs);
}

.info-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.info-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.info-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
}

/* Feature Card Variant */
.feature-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  background: rgba(255,255,255,.07);
}

.feature-card .feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,185,66,.2), rgba(111,201,255,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--night-2);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--star);
  margin-bottom: var(--space-xs);
}

.feature-card p {
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.feature-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-link {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   INTERACTIVE ORBS (like tajweed page)
   ========================================================================== */
.orb-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 26px;
  margin-top: var(--space-md);
}

.orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.orb-wrap:nth-child(2n) { animation-duration: 6.8s; animation-delay: 0.3s; }
.orb-wrap:nth-child(3n) { animation-duration: 5.6s; animation-delay: 0.6s; }
.orb-wrap:nth-child(4n) { animation-duration: 7.2s; animation-delay: 0.15s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.orb {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 40%),
             radial-gradient(circle at 60% 70%, var(--accent, var(--gold)), var(--accent, var(--gold)) 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 26px rgba(0,0,0,.35), 0 0 35px -8px var(--accent, var(--gold));
  animation: pulseGlow 3.4s ease-in-out infinite;
  transition: transform var(--transition-fast);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 26px rgba(0,0,0,.35), 0 0 25px -8px var(--accent, var(--gold)); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px rgba(0,0,0,.35), 0 0 46px -4px var(--accent, var(--gold)); }
}

.orb::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(15deg);
  animation: shimmer 4.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  45% { left: 150%; }
  100% { left: 150%; }
}

.orb:hover { transform: scale(1.08); }

.orb .letters {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 24px;
  color: var(--night-3);
  direction: rtl;
  text-align: center;
  padding: 0 6px;
}

.orb-label {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  color: var(--star);
}

.orb-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.pricing-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sky-blue), var(--mint));
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.3), 0 0 40px rgba(245,185,66,.1);
}

.pricing-type {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--star);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-md);
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--mint);
  font-size: 12px;
}

/* ==========================================================================
   VIDEO CARDS
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-md);
}

.video-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: var(--space-md);
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--star);
  margin-bottom: var(--space-xs);
}

.video-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: var(--star);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,0,0,.3);
}

/* ==========================================================================
   RESOURCE CARDS
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.resource-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.resource-thumbnail {
  height: 140px;
  background: linear-gradient(135deg, var(--night-3), var(--night-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
}

.resource-info {
  padding: var(--space-md);
}

.resource-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--star);
  margin-bottom: var(--space-xs);
}

.resource-description {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--night-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.resource-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245,185,66,.3);
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.category-btn {
  padding: 10px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--night-2);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(245,185,66,.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(13,6,40,0.9);
  border-top: 1px solid rgba(245,185,66,.15);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  font-size: 14px;
  color: var(--text-dim);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-section a i {
  font-size: 12px;
  color: var(--gold-soft);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--night-2);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   MODAL / OVERLAY
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,6,40,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(165deg, var(--parch) 0%, var(--parch-dark) 100%);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--parch-line);
  background: var(--parch-dark);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(44,26,77,.08);
  border-radius: 50%;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255,131,131,.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion {
  margin-top: var(--space-md);
}

.accordion-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: var(--space-md);
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--star);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255,255,255,.04);
}

.accordion-header i {
  color: var(--gold);
  transition: transform var(--transition-fast);
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-item.open .accordion-content {
  max-height: 2000px;
}

.accordion-body {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   SYMBOL GRID (for tajweed/qaida pages)
   ========================================================================== */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.symbol-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.symbol-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(245,185,66,.15);
}

.symbol-arabic {
  font-family: var(--font-arabic);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.symbol-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--star);
  font-size: 1rem;
}

.symbol-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ==========================================================================
   CHAPTER / LESSON GRID
   ========================================================================== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.chapter-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  display: block;
}

.chapter-card:hover {
  background: rgba(245,185,66,.1);
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(245,185,66,.15);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.chapter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--star);
  margin-bottom: var(--space-xs);
}

.chapter-desc {
  font-size: 13px;
  color: var(--text-dim);
}

/* Lesson Buttons Grid */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: var(--space-lg);
}

.lesson-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  color: var(--star);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.lesson-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-color: transparent;
  color: var(--night-2);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(245,185,66,.35);
}

.lesson-btn small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.lesson-btn:hover small {
  color: var(--night-3);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.in-view {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.in-view.visible {
  opacity: 1;
  transform: translateY(0);
}

.in-view:nth-child(2) { transition-delay: 0.08s; }
.in-view:nth-child(3) { transition-delay: 0.16s; }
.in-view:nth-child(4) { transition-delay: 0.24s; }
.in-view:nth-child(5) { transition-delay: 0.32s; }
.in-view:nth-child(6) { transition-delay: 0.40s; }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(100px + var(--space-xl)) var(--space-md) var(--space-xl);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  background: linear-gradient(180deg, var(--star), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-sm);
}

.page-hero .arabic-title {
  font-family: var(--font-arabic);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   TABLE OF CONTENTS (tajweed style)
   ========================================================================== */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.toc-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-normal);
}

.toc-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.toc-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-card h4 i {
  font-size: 14px;
}

.toc-card ul {
  list-style: none;
}

.toc-card li {
  margin-bottom: 8px;
}

.toc-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.toc-card a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.toc-card a i {
  font-size: 10px;
  color: var(--gold-soft);
}

/* ==========================================================================
   CALL TO ACTION SECTION
   ========================================================================== */
.cta-section {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(180deg, transparent 0%, rgba(245,185,66,.08) 50%, transparent 100%);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--star);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* ==========================================================================
   TESTIMONIAL / QUOTE
   ========================================================================== */
.quote-block {
  background: rgba(255,255,255,.04);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.quote-block p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
}

.quote-block cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-size: 14px;
  color: var(--gold-soft);
}

/* ==========================================================================
   DAILY INSPIRATION
   ========================================================================== */
.daily-inspiration {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.inspiration-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.inspiration-ayah {
  font-family: var(--font-arabic);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--gold);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.inspiration-translation {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.inspiration-reference {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   MOBILE NAVIGATION SHEET
   ========================================================================== */
@media (max-width: 768px) {
  .all-pages-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
  }
  
  .all-pages-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  
  .all-pages-btn .btn-text,
  .all-pages-btn .btn-sparkle {
    display: none;
  }
  
  .all-pages-dropdown {
    position: fixed;
    bottom: calc(100% + 12px);
    top: auto;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 70vh;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .cosmic-bg .stars span,
  .cosmic-bg .nebula .blob,
  .cosmic-bg .dust span,
  .orb-wrap,
  .orb,
  .orb::after {
    animation: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .main-nav ul {
  flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-section a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .footer-section a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .toc-card a:hover {
  transform: translateX(-4px);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .cosmic-bg,
  .reading-progress,
  .all-pages-wrapper,
  .site-header {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section,
  .page-hero {
    padding: 20px;
  }
}

/* ==========================================================================
   SITE-WIDE MOBILE POLISH (applies to all hub pages using theme.css)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  /* Prevent horizontal overflow from any wide element */
  img, video, iframe, svg, table { max-width: 100%; }
  iframe, video { height: auto; }

  /* 16px inputs prevent iOS Safari auto-zoom on focus */
  input, textarea, select {
    font-size: 16px;
    font-family: inherit;
  }

  /* Comfortable minimum touch targets on interactive elements */
  a, button { touch-action: manipulation; }
}

@media (max-width: 420px) {
  h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
}

/* ==========================================================================
   PATREON SUPPORT SECTION
   ========================================================================== */
.support-section {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  padding: 30px 20px 90px;
}
.support-card {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at top right, rgba(245, 185, 66, 0.14), transparent 55%),
              linear-gradient(160deg, rgba(28, 16, 80, 0.9), rgba(22, 11, 61, 0.95));
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 28px;
  padding: 46px 34px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px -12px rgba(245, 185, 66, 0.35) inset;
}
.support-icon {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #1c1050;
  background: radial-gradient(circle at 30% 30%, #ffe066, var(--gold) 55%, #e88a2f);
  animation: supportPulse 3s ease-in-out infinite;
}
@keyframes supportPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 35px rgba(245, 185, 66, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(245, 185, 66, 0.75); }
}
.support-card h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: #fff; margin-bottom: 6px;
}
.support-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(18px, 3vw, 22px);
  color: var(--gold-soft);
  margin-bottom: 16px; direction: rtl;
}
.support-card .support-text {
  max-width: 640px; margin: 0 auto 24px;
  font-size: 15.5px; line-height: 1.75;
  color: var(--text-muted);
}
.support-card .support-text strong { color: var(--gold-soft); }
.support-benefits {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 28px;
}
.support-benefit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px; font-weight: 600; color: var(--text-light);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.support-benefit:hover { border-color: var(--gold); transform: translateY(-2px); }
.support-benefit i { color: var(--gold); }
.btn-patreon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px;
  background: linear-gradient(135deg, #f96854, #e85b46);
  color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 16.5px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(249, 104, 84, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-patreon:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 38px rgba(249, 104, 84, 0.6); }
.btn-patreon i { font-size: 20px; }
.support-note { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.support-note .fa-heart { color: #f96854; }

@media (max-width: 768px) {
  .support-section { padding: 20px 16px 70px; }
  .support-card { padding: 34px 20px; border-radius: 22px; }
  .support-card .support-text { font-size: 14.5px; }
  .btn-patreon { width: 100%; justify-content: center; padding: 15px 20px; }
}

/* Screen-reader-only text — gives icon-only links real anchor text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}