/* =========================================================
   MyIman — Design System & Global Styles
   ========================================================= */

/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --green: #1a4a1f;
  --green-mid: #2d6b35;
  --green-light: #4a9954;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #faf8f2;
  --cream-dark: #f0ebe0;
  --dark: #0e1a10;
  --text: #1c2b1e;
  --text-muted: #6b7c6d;
  --white: #ffffff;
  --error: #c0392b;
  --success: #27ae60;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Borders & Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 50px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(14, 26, 16, 0.06);
  --shadow-md: 0 4px 20px rgba(14, 26, 16, 0.08);
  --shadow-lg: 0 8px 40px rgba(14, 26, 16, 0.12);
  --shadow-xl: 0 16px 60px rgba(14, 26, 16, 0.16);
  --shadow-glow: 0 0 60px rgba(201, 168, 76, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

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

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark p {
  color: rgba(250, 248, 242, 0.8);
}

.section--cream-dark {
  background: var(--cream-dark);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--green);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--green-mid);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
}

.btn--gold:hover {
  box-shadow: var(--shadow-glow);
  color: var(--dark);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: var(--cream);
}

.btn--dark {
  background: var(--dark);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--green);
  color: var(--cream);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ── Bento Cards ───────────────────────────────────────── */
.bento-grid {
  display: grid;
  gap: var(--space-lg);
}

.bento-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.bento-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.bento-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
}

.bento-card--dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.bento-card--dark:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.bento-card--accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--cream);
  border-color: transparent;
}

.bento-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: rgba(26, 74, 31, 0.08);
  color: var(--green);
}

.bento-card--dark .bento-card__icon,
.bento-card--accent .bento-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}

.bento-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.bento-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bento-card--dark .bento-card__desc {
  color: rgba(250, 248, 242, 0.65);
}

.bento-card--accent .bento-card__desc {
  color: rgba(250, 248, 242, 0.8);
}

.bento-card--clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.bento-card--clickable:hover {
  color: inherit;
}

/* ── Floating Stat Pills ──────────────────────────────── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.stat-pill--dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.stat-pill__icon {
  font-size: 1.1rem;
}

.stat-pill__value {
  font-weight: 700;
  color: var(--gold);
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 26, 16, 0.06);
  z-index: 1000;
  transition: background var(--duration-fast) ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  z-index: 1001;
}

.nav__logo:hover {
  color: var(--green);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--green);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Nav dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-trigger::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform var(--duration-fast) ease;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 1002;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown--open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.nav__dropdown-item:hover {
  background: var(--cream-dark);
  color: var(--green);
}

.nav__dropdown-item span {
  font-size: 1.2rem;
}

.nav__dropdown-divider {
  height: 1px;
  background: var(--cream-dark);
  margin: var(--space-xs) 0;
}

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  background: var(--cream-dark);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) ease;
  min-height: 36px;
}

.lang-switcher__btn:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 1003;
}

.lang-switcher--open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.lang-switcher__option:hover {
  background: var(--cream-dark);
  color: var(--green);
}

.lang-switcher__option--active {
  background: rgba(26, 74, 31, 0.06);
  color: var(--green);
  font-weight: 600;
}

/* Hamburger menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--cream);
  z-index: 999;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  overflow-y: auto;
  transition: right var(--duration-slow) var(--ease-out);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-menu--open {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 26, 16, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
}

.mobile-menu__overlay--active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  min-height: 48px;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  background: rgba(26, 74, 31, 0.06);
  color: var(--green);
}

.mobile-menu__link span {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.mobile-menu__section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-md) var(--space-xs);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--cream-dark);
  margin: var(--space-md) 0;
}

.mobile-menu__lang {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-xl);
}

.mobile-menu__lang a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--cream-dark);
  color: var(--text);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: all var(--duration-fast) ease;
}

.mobile-menu__lang a:hover,
.mobile-menu__lang a.active {
  background: var(--green);
  color: var(--cream);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

/* ── Hero Sections ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero--compact {
  min-height: auto;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero__glow--green {
  background: radial-gradient(circle, var(--green-light), transparent 70%);
  top: -200px;
  right: -100px;
}

.hero__glow--gold {
  background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: -200px;
  left: -100px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(26, 74, 31, 0.08);
  border: 1px solid rgba(26, 74, 31, 0.12);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: italic;
  color: var(--green);
}

.hero__title .gold {
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* ── Phone Mockup ──────────────────────────────────────── */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--green) 0%, var(--dark) 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--dark);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* ── Feature Cards (homepage preview) ──────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Explore Page Cards ────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.explore-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
}

.explore-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.2);
  color: inherit;
}

.explore-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(26, 74, 31, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.explore-card__content {
  flex: 1;
  min-width: 0;
}

.explore-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.explore-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Search box */
.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.search-box__input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid rgba(14, 26, 16, 0.1);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--duration-fast) ease;
  min-height: 52px;
}

.search-box__input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 74, 31, 0.08);
  outline: none;
}

.search-box__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── Prayer Times Page ─────────────────────────────────── */
.prayer-next {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.prayer-next::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  pointer-events: none;
}

.prayer-next__label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.prayer-next__name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--cream);
}

.prayer-next__time {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.prayer-next__countdown {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
}

.prayer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
}

.prayer-table th {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}

.prayer-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}

.prayer-table tr:last-child td {
  border-bottom: none;
}

.prayer-table tr:hover td {
  background: var(--cream);
}

.prayer-table .prayer-active td {
  background: rgba(26, 74, 31, 0.05);
  font-weight: 600;
}

.prayer-settings {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.prayer-settings__group {
  flex: 1;
  min-width: 200px;
}

.prayer-settings__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

/* ── Form Elements ─────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(14, 26, 16, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--duration-fast) ease;
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 74, 31, 0.08);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c6d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ── Quran Reader ──────────────────────────────────────── */
.quran-verse {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--cream-dark);
  transition: background var(--duration-fast) ease;
}

.quran-verse:hover {
  background: rgba(26, 74, 31, 0.02);
}

.quran-verse__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.quran-verse__arabic {
  font-family: 'Scheherazade New', 'Traditional Arabic', 'Amiri', serif;
  font-size: 1.8rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.quran-verse__transliteration {
  font-style: italic;
  color: var(--green-mid);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.quran-verse__translation {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.quran-verse__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quran-controls {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.quran-controls__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.quran-controls__toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
}

.quran-font-slider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.quran-font-slider input[type="range"] {
  accent-color: var(--green);
}

/* Surah list */
.surah-list {
  display: grid;
  gap: var(--space-sm);
}

.surah-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-fast) ease;
  min-height: 64px;
}

.surah-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateX(4px);
  color: inherit;
}

[dir="rtl"] .surah-item:hover {
  transform: translateX(-4px);
}

.surah-item__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(26, 74, 31, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.surah-item__info {
  flex: 1;
  min-width: 0;
}

.surah-item__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
}

.surah-item__meaning {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.surah-item__meta {
  text-align: right;
  flex-shrink: 0;
}

[dir="rtl"] .surah-item__meta {
  text-align: left;
}

.surah-item__arabic {
  font-family: 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 1.2rem;
  color: var(--dark);
}

.surah-item__badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(26, 74, 31, 0.08);
  color: var(--green);
}

.surah-item__verses {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Dua Cards ─────────────────────────────────────────── */
.dua-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.dua-card__category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.dua-card__arabic {
  font-family: 'Scheherazade New', 'Traditional Arabic', 'Amiri', serif;
  font-size: 1.6rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  color: var(--dark);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.dua-card__transliteration {
  font-style: italic;
  color: var(--green-mid);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.dua-card__translation {
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.dua-card__source {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.dua-card__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-dark);
}

/* Category filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.category-filter__btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 26, 16, 0.1);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
}

.category-filter__btn:hover,
.category-filter__btn--active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

/* ── Qibla Compass ─────────────────────────────────────── */
.qibla-compass {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid var(--gold);
  position: relative;
  margin: var(--space-2xl) auto;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(201, 168, 76, 0.15);
}

.qibla-compass__needle {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, var(--gold), var(--green));
  border-radius: 4px;
  transform-origin: bottom center;
  transition: transform 0.5s ease;
}

.qibla-compass__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 2;
}

.qibla-compass__kaaba {
  position: absolute;
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.qibla-compass__direction {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(250, 248, 242, 0.6);
}

.qibla-compass__direction--n { top: 8px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.qibla-compass__direction--s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.qibla-compass__direction--e { right: 12px; top: 50%; transform: translateY(-50%); }
.qibla-compass__direction--w { left: 12px; top: 50%; transform: translateY(-50%); }

.qibla-info {
  text-align: center;
  margin-top: var(--space-xl);
}

.qibla-info__bearing {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.qibla-info__distance {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Tasbeeh Counter ───────────────────────────────────── */
.tasbeeh-counter {
  position: relative;
  width: 260px;
  height: 260px;
  margin: var(--space-2xl) auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tasbeeh-counter__ring {
  width: 100%;
  height: 100%;
}

.tasbeeh-counter__bg {
  fill: none;
  stroke: var(--cream-dark);
  stroke-width: 8;
}

.tasbeeh-counter__progress {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset var(--duration-normal) var(--ease-out);
}

.tasbeeh-counter__count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.tasbeeh-counter__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.tasbeeh-counter__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.tasbeeh-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tasbeeh-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(14, 26, 16, 0.1);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
}

.tasbeeh-chip:hover,
.tasbeeh-chip--active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.tasbeeh-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ── Calendar Page ─────────────────────────────────────── */
.hijri-today {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hijri-today::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.12), transparent 60%);
  pointer-events: none;
}

.hijri-today__date {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--cream);
}

.hijri-today__gregorian {
  font-size: 1rem;
  opacity: 0.7;
}

.converter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.converter-card__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: end;
}

.converter-card__swap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform var(--duration-fast) ease;
}

.converter-card__swap:hover {
  transform: rotate(180deg);
}

.upcoming-events {
  display: grid;
  gap: var(--space-md);
}

.event-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-fast) ease;
}

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

.event-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.event-card__info {
  flex: 1;
}

.event-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
}

.event-card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-card__countdown {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Names of Allah ────────────────────────────────────── */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.name-card {
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  perspective: 800px;
  min-height: 180px;
}

.name-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.name-card__arabic {
  font-family: 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.name-card__transliteration {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-xs);
}

.name-card__meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.name-card__number {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(26, 74, 31, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

[dir="rtl"] .name-card__number {
  right: auto;
  left: var(--space-sm);
}

/* ── Zakat Calculator ──────────────────────────────────── */
.zakat-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
}

.zakat-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--cream-dark);
}

.zakat-result {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-top: var(--space-xl);
}

.zakat-result__amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.zakat-result__label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
}

.zakat-disclaimer {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Hadith Page ───────────────────────────────────────── */
.hadith-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.hadith-card__arabic {
  font-family: 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 1.4rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  color: var(--dark);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.hadith-card__text {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.hadith-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-dark);
}

.hadith-grade {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hadith-grade--sahih {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.hadith-grade--hasan {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
}

.hadith-grade--daif {
  background: rgba(192, 57, 43, 0.1);
  color: var(--error);
}

/* ── Accordion (Fiqh Q&A) ─────────────────────────────── */
.accordion {
  display: grid;
  gap: var(--space-sm);
}

.accordion__item {
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) ease;
}

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

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  min-height: 56px;
  gap: var(--space-md);
}

[dir="rtl"] .accordion__trigger {
  text-align: right;
}

.accordion__trigger::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--duration-fast) ease;
  flex-shrink: 0;
}

.accordion__item--open .accordion__trigger::after {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.accordion__item--open .accordion__content {
  max-height: 800px;
}

.accordion__body {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Articles / Blog ───────────────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 26, 16, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.article-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
}

.article-card__body {
  padding: var(--space-xl);
}

.article-card__category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(26, 74, 31, 0.08);
  color: var(--green);
  margin-bottom: var(--space-md);
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Article detail */
.article-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content p {
  margin-bottom: var(--space-lg);
}

/* ── Splash Screen ─────────────────────────────────────── */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__logo {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  box-shadow: 0 0 60px rgba(74, 153, 84, 0.3);
  animation: splash-pulse 2s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(74, 153, 84, 0.2); }
  50% { box-shadow: 0 0 80px rgba(74, 153, 84, 0.4); }
}

.splash__logo-icon {
  font-size: 2.5rem;
  color: var(--gold-light);
}

.splash__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.splash__tagline {
  font-size: 1rem;
  color: rgba(250, 248, 242, 0.6);
  margin-bottom: var(--space-2xl);
}

.splash__btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  border: none;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.splash__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

/* ── Disclaimer Toast ──────────────────────────────────── */
.disclaimer-toast {
  position: fixed;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  width: 92%;
  max-width: 560px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 950;
  transition: bottom var(--duration-slow) var(--ease-out);
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer-toast.show {
  bottom: 24px;
}

.disclaimer-toast p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.disclaimer-toast button {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: all var(--duration-fast) ease;
  min-height: 44px;
}

.disclaimer-toast button:hover {
  background: var(--gold-light);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(250, 248, 242, 0.75);
  padding: var(--space-4xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.footer__brand-tagline {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  color: rgba(250, 248, 242, 0.6);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 248, 242, 0.6);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  font-size: 1.1rem;
}

.footer__social a:hover {
  background: var(--gold);
  color: var(--dark);
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(250, 248, 242, 0.6);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  padding: 4px 0;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__email {
  color: var(--gold);
  font-weight: 600;
}

.footer__feedback {
  font-size: 0.85rem;
  color: rgba(250, 248, 242, 0.5);
  margin-top: var(--space-md);
}

.footer__feedback a {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(250, 248, 242, 0.4);
}

.footer__bottom-lang {
  display: flex;
  gap: var(--space-md);
}

.footer__bottom-lang a {
  font-size: 0.8rem;
  color: rgba(250, 248, 242, 0.5);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer__bottom-lang a:hover,
.footer__bottom-lang a.active {
  color: var(--gold);
}

/* ── Utility Classes ───────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Loading Spinner ───────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-2xl) auto;
}

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

.loading-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

/* ── Bookmark button ───────────────────────────────────── */
.bookmark-btn {
  background: none;
  border: 1px solid rgba(14, 26, 16, 0.1);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
  min-height: 40px;
}

.bookmark-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.bookmark-btn--active {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Tab Navigation ────────────────────────────────────── */
.tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--cream-dark);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}

.tabs__tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
  min-height: 44px;
}

.tabs__tab:hover {
  color: var(--text);
}

.tabs__tab--active {
  background: var(--white);
  color: var(--green);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Page content wrapper (below nav) ──────────────────── */
.page-content {
  padding-top: var(--nav-height);
}

/* ── Hajj/Umrah Timeline ──────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--green), var(--gold));
  border-radius: 2px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 16px;
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--green);
  border: 3px solid var(--cream);
}

[dir="rtl"] .timeline__dot {
  left: auto;
  right: -32px;
}

.timeline__step {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Checklist ─────────────────────────────────────────── */
.checklist {
  display: grid;
  gap: var(--space-sm);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
  min-height: 48px;
}

.checklist__item:hover {
  background: var(--cream);
}

.checklist__item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.checklist__item--checked {
  opacity: 0.6;
  text-decoration: line-through;
}

/* ── Kids Section ──────────────────────────────────────── */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
}

.alphabet-card {
  background: var(--white);
  border: 2px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.alphabet-card:hover {
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.alphabet-card__letter {
  font-family: 'Scheherazade New', 'Traditional Arabic', serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: var(--space-xs);
}

.alphabet-card__name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Audio Player ──────────────────────────────────────── */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.audio-player__play {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--green);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--duration-fast) ease;
}

.audio-player__play:hover {
  background: var(--green-mid);
}

.audio-player__info {
  flex: 1;
  min-width: 0;
}

.audio-player__title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.audio-player__artist {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Mosque Finder Map ─────────────────────────────────── */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(14, 26, 16, 0.06);
  margin-bottom: var(--space-xl);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__actions .btn,
  .nav__actions .lang-switcher {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__actions {
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid--3,
  .bento-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .converter-card__grid {
    grid-template-columns: 1fr;
  }

  .prayer-settings {
    flex-direction: column;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
    margin-top: var(--space-2xl);
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .bento-grid--2,
  .bento-grid--3,
  .bento-grid--4 {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .names-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .disclaimer-toast {
    width: 95%;
    padding: 14px 16px;
    gap: 12px;
  }
}

/* ── RTL Support ───────────────────────────────────────── */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .nav__links {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer__grid {
  direction: rtl;
}

[dir="rtl"] .mobile-menu {
  right: auto;
  left: -100%;
}

[dir="rtl"] .mobile-menu--open {
  left: 0;
}

[dir="rtl"] .mobile-menu {
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .search-box__input {
  padding: 16px 52px 16px 20px;
}

[dir="rtl"] .search-box__icon {
  left: auto;
  right: 20px;
}

[dir="rtl"] .form-select {
  background-position: left 16px center;
  padding-right: 18px;
  padding-left: 44px;
}

[dir="rtl"] .prayer-table th,
[dir="rtl"] .prayer-table td {
  text-align: right;
}

/* ── Component Styles: Phase 2 & 3 ────────────────────────── */

/* ── Transparency Policy Card (Donate Page) ──────────────── */
.transparency-card {
  background: linear-gradient(145deg, #f5fbf1 0%, #ecf7e7 100%);
  border: 1px solid rgba(45, 107, 53, 0.18);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(26, 74, 31, 0.05);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.transparency-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e2f4e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(45, 107, 53, 0.1);
}
.transparency-title {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 800;
  color: #112214;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.transparency-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #556c59;
  max-width: 480px;
  margin: 0 auto 28px;
}
.transparency-list {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
[dir="rtl"] .transparency-list {
  text-align: right;
}
.transparency-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.transparency-item__icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transparency-item__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #112214;
  margin-bottom: 4px;
}
.transparency-item__desc {
  font-size: 0.98rem;
  color: #556c59;
  line-height: 1.4;
}
.transparency-divider {
  height: 1px;
  background: rgba(26, 74, 31, 0.1);
  width: 100%;
  margin: 4px 0;
}

/* Hadith Collections & Badges */
.hadith-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.grade-badge--sahih {
  background: rgba(45, 107, 53, 0.15);
  color: var(--green-mid);
  border: 1px solid rgba(45, 107, 53, 0.3);
}
.grade-badge--hasan {
  background: rgba(201, 168, 76, 0.15);
  color: #93721e;
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.grade-badge--daif {
  background: rgba(217, 83, 79, 0.12);
  color: #b52b27;
  border: 1px solid rgba(217, 83, 79, 0.25);
}

/* Zakat Calculator */
.zakat-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 991px) {
  .zakat-layout {
    grid-template-columns: 1fr;
  }
}
.calc-section {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.calc-section__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.calc-row:last-child {
  border-bottom: none;
}
.calc-row label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.calc-row .input-wrapper {
  position: relative;
  width: 170px;
}
.calc-row .input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.calc-row input {
  width: 100%;
  padding: 10px 14px 10px 32px;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  text-align: right;
  background: var(--cream);
  color: var(--dark);
  font-weight: 600;
  transition: border-color var(--duration-fast);
}
.calc-row input:focus {
  outline: none;
  border-color: var(--gold);
  background: white;
}
.zakat-summary-card {
  background: var(--dark);
  color: white;
  border-radius: 28px;
  padding: 32px;
  position: sticky;
  top: 96px;
  box-shadow: 0 20px 40px rgba(14, 26, 16, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.zakat-summary-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.zakat-stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.zakat-stat--highlight {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--gold);
  border-bottom: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* Ramadan Page */
.ramadan-hero-card {
  background: linear-gradient(135deg, var(--dark) 0%, #152d19 100%);
  color: white;
  border-radius: 28px;
  padding: 36px 32px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.fasting-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.fasting-time-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}
.fasting-time-box__label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.fasting-time-box__time {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
}

/* Articles Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--cream-dark);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  border-color: rgba(201, 168, 76, 0.4);
}
.article-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-mid);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.article-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.article-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 14px;
}

/* Article Reader */
.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body p {
  margin-bottom: 1.6rem;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-body blockquote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 2rem 0;
  font-style: italic;
}
[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 4px solid var(--gold);
  border-radius: 16px 0 0 16px;
}

/* Timeline Components (Seerah & Hajj) */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--green-mid) 100%);
  border-radius: 2px;
}
[dir="rtl"] .timeline::before {
  left: auto;
  right: 28px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 68px;
}
[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 68px;
}
.timeline-dot {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 24px;
  height: 24px;
  background: var(--gold);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
  z-index: 2;
}
[dir="rtl"] .timeline-dot {
  left: auto;
  right: 18px;
}
.timeline-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}
.timeline-year {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: #8c6e1c;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* Accordion (Fiqh Q&A & FAQs) */
.accordion-item {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--duration-fast);
}
.accordion-item--open {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
[dir="rtl"] .accordion-header {
  text-align: right;
}
.accordion-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--duration-fast);
  flex-shrink: 0;
}
.accordion-item--open .accordion-icon {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0 24px 22px;
  display: none;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 16px;
}
.accordion-item--open .accordion-body {
  display: block;
}

/* Kids Corner */
.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}
.letter-card {
  background: white;
  border: 2px solid var(--cream-dark);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.letter-card:hover, .letter-card--active {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
  background: #fdfbf7;
}
.letter-arabic {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--green);
  line-height: 1.2;
}
.letter-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
}

/* Audio Hub */
.audio-track-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.audio-track-card:hover, .audio-track-card--playing {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  background: #faf8f0;
}
.audio-track-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast);
}
.audio-play-btn:hover {
  background: var(--green-mid);
}

/* Mosque Finder Map Container */
.mosque-map-container {
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
  z-index: 1;
}

/* ── Breadcrumb Navigation (SEO & UX) ───────────────────── */
.breadcrumbs {
  padding: var(--space-sm) 0 var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
  color: var(--dark-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "›";
  color: var(--dark-light);
  font-weight: 600;
  font-size: 1rem;
}

[dir="rtl"] .breadcrumbs__list li:not(:last-child)::after {
  content: "‹";
}

.breadcrumbs__list a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumbs__list a:hover {
  color: var(--green-mid);
  text-decoration: underline;
}

.breadcrumbs__list [aria-current="page"] {
  color: var(--dark-muted);
  font-weight: 500;
}

/* ── FAQ Accordion Section (AI & Rich Results) ───────────── */
.faq-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(14, 26, 16, 0.08);
}

.faq-section__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-fast) ease;
}

.faq-item[open] {
  border-color: rgba(45, 107, 53, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-item__summary {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--duration-fast);
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green);
  transition: transform var(--duration-fast) ease;
  line-height: 1;
}

.faq-item[open] .faq-item__summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item__summary:hover {
  background: rgba(26, 74, 31, 0.02);
}

.faq-item__summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  font-family: inherit;
}

.faq-item__content {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--dark-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item__content p:last-child {
  margin-bottom: 0;
}

/* ── Download App Popup Modal ────────────────────────────── */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1),
              visibility var(--duration-normal);
}

.download-modal--open {
  opacity: 1;
  visibility: visible;
}

.download-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.download-modal__card {
  position: relative;
  z-index: 10;
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal--open .download-modal__card {
  transform: scale(1) translateY(0);
}

.download-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--cream);
  border: 1px solid rgba(14, 26, 16, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

[dir="rtl"] .download-modal__close {
  right: auto;
  left: 16px;
}

.download-modal__close:hover {
  background: rgba(26, 74, 31, 0.12);
  color: var(--green);
  transform: rotate(90deg);
}

.download-modal__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 16px;
  padding-right: 32px;
}

[dir="rtl"] .download-modal__header {
  padding-right: 0;
  padding-left: 32px;
}

.download-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  box-shadow: 0 8px 20px rgba(26, 74, 31, 0.25);
  flex-shrink: 0;
}

.download-modal__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.download-modal__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dark-muted);
}

.download-modal__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--cream);
  border: 1px solid rgba(14, 26, 16, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}

.download-modal__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(250, 248, 242, 0.65);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(14, 26, 16, 0.05);
}

.download-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.download-feature__icon {
  font-size: 1.25rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.download-feature strong {
  display: block;
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 600;
}

.download-feature p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--dark-muted);
  line-height: 1.4;
}

.download-modal__actions {
  text-align: center;
  margin-bottom: 18px;
}

.download-modal__download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 74, 31, 0.35);
  transition: all var(--duration-fast);
}

.download-modal__download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 74, 31, 0.45);
  color: var(--white);
}

.download-modal__btn-size {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

.download-modal__url-hint {
  font-size: 0.82rem;
  color: var(--dark-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.download-modal__url-hint code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
  font-family: monospace;
  font-weight: 600;
}

.download-modal__install-guide {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
}

[dir="rtl"] .download-modal__install-guide {
  border-left: none;
  border-right: 3px solid var(--gold);
}

.install-guide__title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.install-guide__steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--dark-muted);
  line-height: 1.5;
}

[dir="rtl"] .install-guide__steps {
  padding-left: 0;
  padding-right: 18px;
}

.install-guide__steps li:not(:last-child) {
  margin-bottom: 4px;
}

/* ── Print ─────────────────────────────────────────────── */
@media print {
  .nav,
  .mobile-menu,
  .mobile-menu__overlay,
  .splash,
  .disclaimer-toast,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .page-content {
    padding-top: 0;
  }
}
