:root {
  --bg: #F8FAF9;
  --fg: #111827;
  --muted: #6B7280;
  --green-950: #022C22;
  --green-900: #064E3B;
  --green-800: #065F46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --gold: #C9A227;
  --gold-light: #D4AF37;
  --gold-fade: #F0DFA0;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.04);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.arabic, html[dir='rtl'] body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}
html[dir='rtl'] body { text-align: right; }
.bismillah.arabic, .ayah-card .ayah.arabic {
  font-family: 'Amiri', serif !important;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 78, 59, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, .12);
}

.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 64px;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-fade));
  display: grid;
  place-items: center;
  color: var(--green-900);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(212, 175, 55, .25);
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.brand-sub {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cairo', sans-serif;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,.08);
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.nav-social, .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  transition: all .15s ease;
}

.nav-social:hover, .footer-social-link:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.nav-language {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

.nav-language a, .nav-account-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .15s;
}

.nav-language a.is-active, .nav-account-link:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-fade));
  color: var(--green-900);
  font-weight: 700;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 22px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(212, 175, 55, .15);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, .25);
}

.btn-green {
  background: var(--green-800);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 22px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-green:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1.5px solid var(--green-800);
  color: var(--green-800);
  background: transparent;
  border-radius: var(--radius);
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-outline:hover {
  background: var(--green-800);
  color: #fff;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-950), var(--green-900) 40%, var(--green-800));
  padding: 96px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42'%3E%3Cpath d='M12 1l11 6v12l-11 6L1 19V7l11-6zm24 0l11 6v12l-11 6-11-6V7l11-6zM24 22l11 6v12l-11 6-11-6V28l11-6z' fill='none' stroke='rgba(212,175,55,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: 58px;
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 800;
  position: relative;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  color: rgba(255,255,255,.74);
  font-size: 19px;
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.55;
  position: relative;
}

/* ── Home Hero Shot ──────────────────────────────────────── */
.home-hero-shot {
  position: relative;
  min-height: 680px;
  padding: 64px 20px 90px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 40%),
              linear-gradient(135deg, var(--green-950), var(--green-800) 60%, var(--green-700));
  overflow: hidden;
}

.home-hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42'%3E%3Cpath d='M12 1l11 6v12l-11 6L1 19V7l11-6zm24 0l11 6v12l-11 6-11-6V7l11-6zM24 22l11 6v12l-11 6-11-6V28l11-6z' fill='none' stroke='rgba(212,175,55,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.04));
}

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

.hero-inner h1 {
  margin: 0 0 12px;
  font-size: 78px;
  line-height: 1.04;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-inner h1 span { color: var(--gold-light); }

.hero-inner p {
  margin: 0 auto 28px;
  max-width: 720px;
  color: rgba(220, 232, 224, .9);
  font-size: 34px;
  line-height: 1.4;
}

.bismillah {
  display: inline-block;
  color: var(--gold-light);
  letter-spacing: 2px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: .9;
}

.hero-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--gold-fade);
  color: var(--green-950);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-cta, .hero-cta-shot {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-ghost, .btn-outline-shot {
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.12);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}
.hero-ghost:hover, .btn-outline-shot:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
}

.hero-stats, .hero-stats-shot {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats { margin-top: 56px; }
.hero-stats-shot { margin-top: 64px; }
.hero-stats .n, .hero-stats-shot .n {
  font-size: 48px;
  color: var(--gold-light);
  font-weight: 800;
  line-height: 1;
}
.hero-stats .l, .hero-stats-shot .l {
  font-size: 28px;
  color: rgba(200, 220, 212, .85);
  margin-top: 4px;
}
.hero-stats .l { font-size: 14px; color: rgba(255,255,255,.68); }
.hero-stats .n { font-size: 36px; }

/* ── Ayah Band ───────────────────────────────────────────── */
.ayah-band {
  background: var(--green-950);
  padding: 56px 20px;
}

.ayah-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.ayah-card .label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ayah-card .ayah {
  font-size: 48px;
  color: #f5fffb;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ayah-card p {
  margin: 0;
  color: rgba(235, 244, 240, .9);
  font-size: 28px;
  line-height: 1.5;
}

.ayah-card .ref {
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 700;
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 72px 20px; }
.section-white { background: #fff; }
.section-cta {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  text-align: center;
}

.rest-white { background: var(--bg); padding: 60px 20px; }
.rest-gray { background: #F3F6F5; padding: 40px 20px 60px; }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner h2 {
  text-align: center;
  margin: 0;
  font-size: 36px;
  color: var(--fg);
  font-weight: 800;
}

.section-inner .sub {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin: 8px 0 24px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.center-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-wrap {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* ── Grid ────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ── Typography ──────────────────────────────────────────── */
.muted { color: var(--muted); }
.page-title {
  font-size: 38px;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
}
.page-sub { color: var(--muted); margin: 0; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-free { background: #DCFCE7; color: #166534; }
.badge-premium { background: #FEF3C7; color: #B45309; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  position: relative;
  transition: box-shadow .2s ease;
}

.price-card:hover { box-shadow: var(--shadow-md); }

.price-card.popular {
  border: 2px solid var(--gold-light);
  box-shadow: 0 8px 30px rgba(212, 175, 55, .18);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-fade));
  color: var(--green-950);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.price {
  font-size: 36px;
  font-weight: 800;
  color: var(--fg);
  margin: 12px 0;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Donation ────────────────────────────────────────────── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.amount-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
}

.amount-btn:hover, .amount-btn.selected {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #fff;
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 16px 0;
}

.toggle span {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.toggle .active {
  background: #fff;
  box-shadow: var(--shadow);
}

/* ── Forms ───────────────────────────────────────────────── */
input, select, textarea, button {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  margin-top: 6px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}

label {
  display: block;
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

/* ── Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow .2s ease;
}

.feature-grid article:hover { box-shadow: var(--shadow-md); }

.feature-grid .i {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(6, 78, 59, .15);
}

.feature-grid h4 {
  margin: 14px 0 6px;
  font-size: 16px;
  color: var(--fg);
  font-weight: 700;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Program Mini Grid ───────────────────────────────────── */
.program-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.mini-card:hover { box-shadow: var(--shadow-md); }

.mini-card .top {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-card .ar {
  color: rgba(220, 234, 225, .95);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

.pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: inline-block;
  text-decoration: none;
}

.pill.free { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.pill.premium { background: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.pill.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }

.mini-card h4 {
  margin: 12px 14px 8px;
  font-size: 16px;
  color: var(--fg);
  font-weight: 700;
}

.mini-card p {
  margin: 0 14px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 38px;
}

.mini-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--muted);
}

.mini-card .bottom a {
  background: var(--green-800);
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: background .15s ease;
}

.mini-card .bottom a:hover { background: var(--green-700); }

.all-wrap { text-align: center; margin-top: 18px; }

.all-btn {
  display: inline-block;
  background: var(--green-800);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s ease;
}

.all-btn:hover { background: var(--green-700); transform: translateY(-1px); }

/* ── CTA Final ───────────────────────────────────────────── */
.home-cta-final {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  padding: 56px 20px;
  text-align: center;
}

.home-cta-final h3 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.home-cta-final p {
  margin: 10px auto 20px;
  color: rgba(220, 232, 225, .88);
  max-width: 700px;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Programs Page ───────────────────────────────────────── */
.programs-page {
  background: var(--bg);
  min-height: calc(100vh - 170px);
  padding: 60px 20px;
}

.programs-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.programs-wrap h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
  color: var(--fg);
  font-weight: 800;
}

.programs-wrap .sub {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 20px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease;
}

.program-card:hover { box-shadow: var(--shadow-md); }

.program-head {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 90px;
}

.ar-title {
  color: rgba(220, 234, 225, .95);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.tag {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
}

.program-body { padding: 18px; }

.program-body h3 {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.program-body p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  min-height: 60px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.students { font-size: 12px; color: var(--muted); }

.action {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  line-height: 1;
  transition: background .15s ease;
}

.action.enroll { background: var(--green-800); color: #fff; }
.action.enroll:hover { background: var(--green-700); }
.action.subscribe { background: var(--gold-light); color: var(--green-950); }
.action.subscribe:hover { background: var(--gold-fade); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--green-950);
  color: rgba(255,255,255,.65);
  padding: 40px 20px;
  margin-top: auto;
  text-align: center;
}

.footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
  transition: color .15s ease;
}

.footer a:hover { color: #fff; }

.footer-brand {
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-links, .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links { margin-bottom: 12px; }
.footer-social { margin: 10px 0 14px; }
.footer-links a, .footer-social-link { margin: 0; }

.footer-social-link-whatsapp {
  background: rgba(37, 211, 102, .15);
  color: #25D366;
}

.footer-copy { font-size: 12px; opacity: .7; }

/* ── WhatsApp Float ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .3);
  z-index: 60;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .4);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.nav-mobile-shell { display: none; margin-inline-start: auto; }
.nav-mobile-shell > summary { list-style: none; }
.nav-mobile-shell > summary::-webkit-details-marker { display: none; }

.nav-mobile-strip {
  display: none;
  gap: 10px;
  padding: 0 0 12px;
  overflow: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav-mobile-strip a:active { background: rgba(255,255,255,.12); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-mobile-panel {
  border: 1px solid rgba(212, 175, 55, .12);
  border-radius: var(--radius-lg);
  background: rgba(6, 78, 59, .98);
  backdrop-filter: blur(12px);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 12px;
}

.nav-mobile-links, .nav-mobile-actions {
  display: grid;
  gap: 10px;
}

.nav-mobile-links a, .nav-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-mobile-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-language-mobile {
  justify-content: flex-start;
  font-size: 13px;
}

/* ── Utility ─────────────────────────────────────────────── */
main { width: 100%; min-width: 0; }
img, video, iframe { max-width: 100%; height: auto; }
a, button, input, select, textarea { touch-action: manipulation; }

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin: 12px 0;
}

.alert-success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* ── Dashboard Stats ─────────────────────────────────────── */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.dash-stat-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-stat-card .value {
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
  margin-top: 4px;
}

.dash-stat-card .trend {
  font-size: 12px;
  color: var(--green-600);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Dashboard Cards ─────────────────────────────────────── */
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dash-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.dash-card-grid {
  display: grid;
  gap: 14px;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow .15s ease;
}

.dash-item:hover { box-shadow: var(--shadow-sm); }

.dash-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dash-item-content {
  flex: 1;
  min-width: 0;
}

.dash-item-content .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

.dash-item-content .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dash-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dash-badge-success { background: #DCFCE7; color: #166534; }
.dash-badge-warning { background: #FEF3C7; color: #B45309; }
.dash-badge-danger  { background: #FEE2E2; color: #991B1B; }
.dash-badge-info    { background: #DBEAFE; color: #1E40AF; }
.dash-badge-neutral { background: #F3F4F6; color: #6B7280; }

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-800), var(--green-600));
  transition: width .4s ease;
}

.progress-bar-fill.gold {
  background: linear-gradient(90deg, var(--gold-light), var(--gold-fade));
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.progress-label .pct {
  color: var(--green-800);
  font-weight: 700;
}

/* ── Table ───────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-light);
  background: var(--bg);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--fg);
}

tr:hover td { background: var(--bg); }

/* ── Filters Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.filter-chip.active {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}

/* ── Side Nav (Dashboard) ────────────────────────────────── */
.dash-sidenav {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  flex-shrink: 0;
}

.dash-sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all .15s ease;
}

.dash-sidenav a:hover {
  background: var(--bg);
  color: var(--fg);
}

.dash-sidenav a.active {
  background: rgba(6, 78, 59, .08);
  color: var(--green-800);
  font-weight: 700;
}

/* ── RTL Specific ────────────────────────────────────────── */
html[dir='rtl'] .dash-sidenav {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir='rtl'] th {
  text-align: right;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner h1 { font-size: 54px; }
  .hero-inner p { font-size: 24px; }
  .hero-stats-shot .n { font-size: 38px; }
  .hero-stats-shot .l { font-size: 18px; }
  .ayah-card .ayah { font-size: 36px; }
  .ayah-card p { font-size: 20px; }
  .ayah-card .ref { font-size: 16px; }
  .feature-grid, .program-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile-shell { display: block; }
  .nav-mobile-strip { display: flex; }
  .site-header .navwrap { padding: 10px 0; }
  .grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .grid[style*="repeat(4,minmax(0,1fr))"],
  .grid[style*="1fr 1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .grid[style*="repeat(3,minmax(0,1fr))"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  form[style*="grid-template-columns:1fr 1fr auto auto"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 700px) {
  .hero-inner h1 { font-size: 38px; }
  .hero-inner p { font-size: 18px; }
  .hero-stats-shot { gap: 28px; margin-top: 40px; }
  .hero-stats-shot .n { font-size: 28px; }
  .hero-stats-shot .l { font-size: 14px; }
  .ayah-card { padding: 22px; }
  .ayah-card .ayah { font-size: 28px; }
  .ayah-card p { font-size: 16px; }
  .grid, .pricing-grid, .feature-grid, .program-mini-grid, .program-grid {
    grid-template-columns: 1fr;
  }
  .dash-stat-grid { grid-template-columns: 1fr 1fr; }
  .home-hero-shot { min-height: auto; padding-top: 44px; }
  .section-inner h2 { font-size: 28px; }
  .home-cta-final h3 { font-size: 26px; }
  .page-title { font-size: 28px; }
  .brand-title { font-size: 14px; }
  .brand-sub { font-size: 9px; }
  .hero, .section, .rest-white, .rest-gray, .programs-page,
  .home-cta-final, .ayah-band { padding-left: 16px; padding-right: 16px; }
  .card, .center-card, .form-wrap { padding: 20px; }
  .grid[style*="grid-template-columns:1fr 1fr"],
  .grid[style*="repeat(4,minmax(0,1fr))"],
  .grid[style*="1fr 1fr 1fr 1fr"],
  .grid[style*="repeat(3,minmax(0,1fr))"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:repeat(4,1fr)"],
  form[style*="grid-template-columns:1fr 1fr auto auto"],
  form[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-shot-grid { grid-template-columns: 1fr !important; }
  .dash-sidenav { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; white-space: nowrap; }
  .dash-sidenav a { flex-shrink: 0; }
}
