/* ====== Noor-ul-Iman | Premium Islamic App | v2.0 ====== */

:root {
  /* Premium Color Palette */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;

  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-lighter: #334155;

  --rose: #f43f5e;
  --violet: #8b5cf6;
  --sky: #0ea5e9;

  /* Theme Variables */
  --primary: var(--emerald-600);
  --primary-dark: var(--emerald-800);
  --primary-light: var(--emerald-400);
  --accent: var(--gold);
  --accent-light: var(--gold-light);

  --bg: #f8faf9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-solid: #ffffff;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.04);

  /* Shadows - Premium feel */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 50px -10px rgba(16, 185, 129, 0.4);
  --shadow-gold: 0 8px 30px -8px rgba(245, 158, 11, 0.5);

  /* Gradients */
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-night: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  --gradient-dawn: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
  --gradient-mosque: linear-gradient(180deg, #064e3b 0%, #047857 50%, #f59e0b 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --primary: var(--emerald-400);
  --primary-dark: var(--emerald-600);
  --primary-light: var(--emerald-500);

  --bg: #050a08;
  --bg-secondary: #0a1410;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-solid: #0f1f18;

  --text: #f0fdf4;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);

  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}

/* Decorative background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
}

.arabic {
  font-family: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif;
  direction: rtl;
  line-height: 2;
}

/* ====== SVG Icons ====== */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Decorative SVG mosque silhouette */
.mosque-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0 200 L0 140 L80 140 L80 100 Q80 80 100 80 Q100 60 120 60 Q120 40 140 40 L140 20 L150 10 L160 20 L160 40 Q180 40 180 60 Q200 60 200 80 Q220 80 220 100 L220 140 L320 140 L320 90 Q320 60 360 60 L360 30 L370 20 L380 30 L380 60 Q420 60 420 90 L420 140 L520 140 L520 80 Q520 50 560 50 Q560 30 580 30 L580 10 L590 0 L600 10 L600 30 Q620 30 620 50 Q660 50 660 80 L660 140 L780 140 L780 90 Q780 60 820 60 L820 30 L830 20 L840 30 L840 60 Q880 60 880 90 L880 140 L980 140 L980 100 Q980 80 1000 80 Q1000 60 1020 60 Q1020 40 1040 40 L1040 20 L1050 10 L1060 20 L1060 40 Q1080 40 1080 60 Q1100 60 1100 80 Q1120 80 1120 100 L1120 140 L1200 140 L1200 200 Z' fill='currentColor' opacity='0.06'/></svg>");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
  color: var(--primary);
}

/* Arabic geometric pattern overlay */
.geometric-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='currentColor' stroke-width='0.5' opacity='0.15'><polygon points='50,5 61,38 95,38 67,58 78,91 50,71 22,91 33,58 5,38 39,38'/></g></svg>");
  background-size: 80px 80px;
  opacity: 0.4;
  pointer-events: none;
  color: var(--primary);
}

/* ====== Animated Navbar ====== */
.navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(10, 20, 16, 0.7);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-emerald);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.nav-logo-text {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.87rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
}

/* ====== Dropdown Menu ====== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.87rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover {
  color: var(--primary);
  background: var(--emerald-50);
}

[data-theme="dark"] .nav-dropdown-trigger:hover {
  background: rgba(16, 185, 129, 0.1);
}

.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--primary);
  background: var(--emerald-50);
}

[data-theme="dark"] .nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(16, 185, 129, 0.1);
}

.nav-dropdown-trigger svg {
  transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s var(--transition);
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0.25rem;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem !important;
  text-decoration: none;
  color: var(--text) !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  border-radius: 10px !important;
  transition: all 0.2s ease;
}

.dropdown-item i,
.dropdown-item .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: var(--emerald-50) !important;
  color: var(--primary) !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(16, 185, 129, 0.08) !important;
}

.dropdown-item.active {
  background: var(--emerald-50) !important;
  color: var(--primary) !important;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.dropdown-item-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05)) !important;
  color: var(--gold-dark) !important;
  font-weight: 800 !important;
}

.dropdown-item-cta i,
.dropdown-item-cta .icon-wrap {
  background: var(--gradient-gold);
  color: white;
}

.dropdown-item-cta:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)) !important;
}

/* Support CTA button */
.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  background: var(--gradient-gold) !important;
  color: white !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--gradient-gold) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--emerald-50);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(16, 185, 129, 0.1);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--emerald-50);
}

[data-theme="dark"] .nav-links a.active {
  background: rgba(16, 185, 129, 0.15);
}

.theme-toggle {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(15deg);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* ====== Container ====== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ====== Premium Hero ====== */
.hero {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(16, 185, 129, 0.15), transparent 70%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.1), transparent 70%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.15) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card-solid);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero .bismillah {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero h1 .gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating-1 { top: 10%; left: 5%; font-size: 3rem; animation-delay: 0s; }
.floating-2 { top: 20%; right: 8%; font-size: 2.5rem; animation-delay: 1s; }
.floating-3 { bottom: 15%; left: 10%; font-size: 2.8rem; animation-delay: 2s; }
.floating-4 { bottom: 25%; right: 5%; font-size: 2rem; animation-delay: 3s; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--gradient-emerald);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  letter-spacing: -0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background: var(--bg-card-solid);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-card-solid);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gradient-gold);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  box-shadow: 0 12px 40px -8px rgba(245, 158, 11, 0.6);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ====== Bento Grid ====== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.bento-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

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

.bento-card.hover-glow:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
}

/* Bento sizes */
.bento-2 { grid-column: span 2; }
.bento-3 { grid-column: span 3; }
.bento-4 { grid-column: span 4; }
.bento-5 { grid-column: span 5; }
.bento-6 { grid-column: span 6; }
.bento-7 { grid-column: span 7; }
.bento-8 { grid-column: span 8; }
.bento-9 { grid-column: span 9; }
.bento-12 { grid-column: span 12; }

/* Featured Cards with special bg */
.bento-card.featured-dark {
  background: var(--gradient-night);
  color: white;
  border: none;
  overflow: hidden;
}

.bento-card.featured-dark::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
}

.bento-card.featured-gold {
  background: var(--gradient-dawn);
  color: var(--navy);
  border: none;
}

.bento-card.featured-emerald {
  background: var(--gradient-emerald);
  color: white;
  border: none;
  overflow: hidden;
}

.bento-card.featured-emerald::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Bento icon */
.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--emerald-50), white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .bento-icon {
  background: rgba(16, 185, 129, 0.1);
}

.bento-card.featured-dark .bento-icon,
.bento-card.featured-emerald .bento-icon {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.bento-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.bento-card.featured-dark .bento-desc,
.bento-card.featured-emerald .bento-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Arrow on hover */
.bento-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.3s var(--transition);
  transform: translate(-10px, 10px);
  z-index: 2;
}

.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--primary);
  color: white;
}

.bento-card.featured-dark:hover .bento-arrow,
.bento-card.featured-emerald:hover .bento-arrow {
  background: white;
  color: var(--primary);
}

/* ====== Daily Verse Card (Special) ====== */
.daily-verse-card {
  background: var(--gradient-night);
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.daily-verse-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.2) 0%, transparent 60%);
}

.daily-verse-card::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 140px;
  height: 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'><path d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
}

.daily-verse-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.daily-verse-arabic {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  margin-bottom: 1.5rem;
  position: relative;
  color: white;
}

.daily-verse-translation {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.daily-verse-ref {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

/* ====== Prayer Times Widget v2 ====== */
.prayer-widget {
  background: var(--bg-card-solid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.prayer-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.prayer-widget-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prayer-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.next-prayer-banner {
  background: var(--gradient-emerald);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.next-prayer-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21V11M21 21V11M3 11c0-3 4-6 9-6s9 3 9 6M12 5V2M11 2h2M7 21V14a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v7M3 21h18M12 21v-5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.2;
}

.next-prayer-label {
  font-size: 0.85rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.next-prayer-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.next-prayer-time {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.next-prayer-countdown {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.prayer-time-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all 0.3s var(--transition);
  position: relative;
}

.prayer-time-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.prayer-time-card.active {
  background: var(--gradient-emerald);
  color: white;
  border-color: var(--gold);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.4);
}

.prayer-time-card.active .prayer-name,
.prayer-time-card.active .prayer-time {
  color: white;
}

.prayer-time-card.passed {
  opacity: 0.5;
}

.prayer-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.prayer-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prayer-time {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ====== Stats / Streak Card ====== */
.streak-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.streak-number {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}

.streak-label {
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
}

.streak-days {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.streak-day {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.streak-day.completed {
  background: var(--gradient-emerald);
  border-color: var(--primary);
  color: white;
}

.streak-day.today {
  background: var(--gradient-gold);
  border-color: var(--gold);
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* ====== Hijri Display ====== */
.hijri-display {
  background: var(--bg-card-solid);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hijri-arabic {
  font-family: 'Amiri Quran', serif;
  font-size: 1.4rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  direction: rtl;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.hijri-date {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.gregorian-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ====== Section Title ====== */
.section-header {
  text-align: center;
  margin: 4rem 0 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  background: var(--emerald-50);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-eyebrow {
  background: rgba(16, 185, 129, 0.1);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-title .gradient-text {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ====== Live Clock ====== */
.live-clock-display {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ====== Hadith / Quote Card ====== */
.hadith-card {
  background: var(--gradient-dawn);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.hadith-card::before {
  content: '“';
  position: absolute;
  top: -2rem;
  left: 1rem;
  font-size: 10rem;
  color: rgba(15, 23, 42, 0.08);
  font-family: Georgia, serif;
}

.hadith-text {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 500;
}

.hadith-source {
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hadith-source::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--navy);
}

/* ====== Mood Selector ====== */
.mood-selector {
  background: var(--bg-card-solid);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mood-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.mood-chip:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mood-chip.selected {
  background: var(--gradient-emerald);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.mood-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.mood-chip:hover .mood-emoji {
  transform: scale(1.15);
}

.mood-chip.selected .mood-emoji {
  color: white !important;
}

.mood-chip.selected .mood-emoji i {
  color: white;
}

.mood-label {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ====== Footer ====== */
.footer {
  background: var(--gradient-night);
  color: white;
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(245, 158, 11, 0.1), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.1), transparent 50%);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-section h4 {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2.2;
  transition: all 0.2s ease;
  font-size: 0.92rem;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  position: relative;
}

.footer-bottom .quote {
  margin-top: 1rem;
  font-style: italic;
  color: var(--gold-light);
  opacity: 0.8;
}

/* ====== Loading ====== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,0.05) 50%, var(--bg) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====== Page Header (sub-pages) ====== */
.page-header {
  background: var(--gradient-emerald);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  position: relative;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 1100px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: var(--bg-card-solid);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.show { display: flex; }
  .nav-links a { width: 100%; text-align: left; padding: 0.75rem 1rem; }

  /* Mobile: dropdown shows inline */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 0.75rem 1rem; }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg);
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 600px;
    padding: 0.5rem;
  }
  .nav-cta { justify-content: center; width: 100%; text-align: center; }

  .bento-2, .bento-3, .bento-4, .bento-5, .bento-6, .bento-7, .bento-8, .bento-9 {
    grid-column: span 12;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 4rem; }
  .container { padding: 1.5rem 1rem; }
  .prayer-times-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: 1fr; }
  .daily-verse-card { padding: 1.5rem; }
  .daily-verse-arabic { font-size: 1.4rem; }
}

/* ====== Utility Classes ====== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.hidden { display: none; }
