/* ==========================================================================
   MAULANA FAIZ ABBAS MASHHADI - ROYAL ISLAMIC LUXURY EDITION
   Style: Holy Shrine, Royal Zarih & Al-Ataba Architectural Heritage
   Palette: Alabaster / Pearl White, Burnished Gold Leaf, Noorani Silver & Karbala Crimson
   Typography: Cinzel (Imperial Roman Serif), Amiri (Sacred Arabic), Plus Jakarta
   ========================================================================== */

:root {
  /* Alabaster & Sacred Ivory Surfaces */
  --bg-primary: #faf8f4;
  --bg-secondary: #f4eee2;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fbf9f4;
  --bg-ivory-glow: radial-gradient(circle at 50% 0%, #ffffff 0%, #faf6ec 60%, #f4eee0 100%);
  --bg-glass: rgba(255, 255, 255, 0.96);

  /* Burnished Royal Gold (Haram Minaret & Zarih Gold Leaf) */
  --gold-primary: #b88a28;
  --gold-light: #dfb743;
  --gold-bright: #d4af37;
  --gold-deep: #7a5813;
  --gold-foil: linear-gradient(135deg, #d4af37 0%, #aa771c 45%, #e8c872 75%, #946811 100%);
  --gold-soft: linear-gradient(135deg, #fffcf5 0%, #f7e8b8 100%);
  --gold-border: rgba(184, 138, 40, 0.38);
  --gold-border-solid: #c59b27;
  --gold-subtle: rgba(184, 138, 40, 0.08);

  /* Noorani Silver / Platinum (Sacred Shrine Grille & Chandi) */
  --silver-primary: #8e9cae;
  --silver-light: #f8fafc;
  --silver-border: #cbd5e1;
  --silver-foil: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);

  /* Sacred Karbala Crimson Red (Al-Ataba Al-Husseiniya / Velvet Banner) */
  --crimson-primary: #801219;
  --crimson-light: #9e1a22;
  --crimson-dark: #580c10;
  --crimson-gradient: linear-gradient(135deg, #9e1a22 0%, #801219 50%, #580c10 100%);
  --crimson-subtle: rgba(128, 18, 25, 0.07);
  --crimson-border: rgba(128, 18, 25, 0.3);

  /* High Contrast Classical Typography */
  --text-primary: #15181e;
  --text-secondary: #4a5464;
  --text-muted: #64748b;
  --text-gold: #7a5813;
  --text-crimson: #801219;

  /* Font Families */
  --font-display: 'Cinzel', -apple-system, 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-royal: 0 16px 40px -10px rgba(184, 138, 40, 0.2), 0 6px 16px -4px rgba(21, 24, 30, 0.04);
  --shadow-card: 0 10px 30px -6px rgba(40, 30, 15, 0.07), 0 3px 10px -2px rgba(40, 30, 15, 0.03);
  --shadow-card-hover: 0 20px 45px -10px rgba(184, 138, 40, 0.25), 0 8px 20px -4px rgba(40, 30, 15, 0.06);
  --shadow-crimson: 0 10px 26px -5px rgba(128, 18, 25, 0.38);

  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(184, 138, 40, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(128, 18, 25, 0.035) 0%, transparent 45%),
    linear-gradient(180deg, #fdfbf7 0%, #faf7ef 50%, #f5efe2 100%);
  background-attachment: fixed;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--gold-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.crimson-text {
  color: var(--crimson-primary);
}

.arabic-calligraphy {
  font-family: var(--font-arabic);
  font-size: 2.5rem;
  line-height: 1.8;
  color: var(--crimson-primary);
  text-align: center;
  direction: rtl;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(128, 18, 25, 0.15);
  font-weight: 700;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 2rem;
  line-height: 2.2;
  color: var(--crimson-primary);
  direction: rtl;
}

/* ==========================================================================
   NAVIGATION BAR (ROYAL ALABASTER & GOLD CORD)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 6%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold-border);
  box-shadow: 0 4px 25px rgba(40, 30, 15, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(184, 138, 40, 0.25);
  object-fit: cover;
}

.brand-text h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--crimson-primary);
  background: rgba(184, 138, 40, 0.1);
}

.btn-nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crimson-gradient);
  border: 1.5px solid var(--gold-primary);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-crimson);
}

.btn-nav-ai:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Mobile Nav Actions in Header */
.mobile-nav-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.btn-nav-ai-mobile {
  background: var(--crimson-gradient);
  border: 1.5px solid var(--gold-primary);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-crimson);
}

.mobile-hamburger-btn {
  background: #ffffff;
  border: 1.5px solid var(--gold-primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px rgba(184, 138, 40, 0.18);
  transition: var(--transition);
}

.mobile-hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--crimson-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-hamburger-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 32, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  border-left: 2.5px solid var(--gold-primary);
  box-shadow: -15px 0 45px rgba(30, 20, 10, 0.2), var(--shadow-royal);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.4rem;
  border-bottom: 2px solid var(--gold-border);
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f0e0 100%);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-drawer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(184, 138, 40, 0.25);
}

.mobile-drawer-brand h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0;
}

.mobile-drawer-brand span {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  display: block;
}

.mobile-drawer-close-btn {
  background: rgba(128, 18, 25, 0.08);
  border: 1px solid var(--crimson-border);
  color: var(--crimson-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-drawer-close-btn:hover {
  background: var(--crimson-primary);
  color: #ffffff;
}

.mobile-drawer-body {
  padding: 1.3rem 1.4rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

.mobile-drawer-tagline {
  font-size: 0.8rem;
  color: var(--crimson-primary);
  font-weight: 700;
  text-align: center;
  background: rgba(128, 18, 25, 0.06);
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px dashed var(--gold-border);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
  background: #fbf9f4;
  border: 1px solid rgba(184, 138, 40, 0.15);
}

.mobile-link:hover, .mobile-link.active {
  background: rgba(184, 138, 40, 0.12);
  color: var(--crimson-primary);
  border-color: var(--gold-primary);
  transform: translateX(-4px);
}

.mobile-link .icon {
  font-size: 1.3rem;
}

.mobile-link .badge-new {
  margin-left: auto;
  background: var(--crimson-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
}

.mobile-link-ai {
  background: linear-gradient(135deg, rgba(128, 18, 25, 0.08), rgba(184, 138, 40, 0.12));
  border-color: var(--gold-primary);
  color: var(--crimson-primary);
}

.mobile-drawer-quick-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.5rem;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
}

.mobile-cta-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.mobile-cta-btn.phone {
  background: var(--crimson-gradient);
  color: #ffffff;
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-crimson);
}

/* ==========================================================================
   HERO SECTION: GRAND SCHOLAR PROFILE (ROYAL ARCH & ZARIH STYLE)
   ========================================================================== */
.hero-full-banner {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.5rem 7% 4.8rem;
  background: 
    radial-gradient(ellipse at 80% 50%, rgba(184, 138, 40, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(128, 18, 25, 0.05) 0%, transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #f8f2e4 100%);
  border-bottom: 2px solid var(--gold-border);
  overflow: hidden;
}

/* Subtle Sacred Arabesque Watermark */
.hero-full-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(184, 138, 40, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(128, 18, 25, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-banner-content {
  max-width: 660px;
  z-index: 10;
}

/* Dedicated Mobile Portrait (Centered Regally at Top) */
.hero-mobile-portrait-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.8rem;
}

.hero-portrait-frame {
  position: relative;
  width: 200px;
  height: 220px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #d4af37, #801219, #cbd5e1, #c59b27);
  box-shadow: 0 12px 32px rgba(128, 18, 25, 0.28), var(--shadow-royal);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  border: 3px solid #ffffff;
}

.hero-portrait-caption {
  margin-top: 12px;
}

.hero-portrait-caption h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.35rem;
  margin: 0;
  font-weight: 800;
}

.hero-portrait-caption span {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

/* Grand Desktop Portrait Mihrab Arch Frame */
.hero-desktop-portrait-col {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hero-mihrab-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  border-radius: 190px 190px 24px 24px;
  padding: 10px;
  background: linear-gradient(135deg, #d4af37 0%, #cbd5e1 35%, #801219 70%, #c59b27 100%);
  box-shadow: 0 20px 50px rgba(40, 30, 15, 0.18), var(--shadow-royal);
  transition: var(--transition);
}

.hero-mihrab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 65px rgba(184, 138, 40, 0.3);
}

.hero-mihrab-inner {
  border-radius: 180px 180px 18px 18px;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid #ffffff;
  position: relative;
}

.hero-mihrab-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-mihrab-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.75) 30%, rgba(255, 255, 255, 0.95) 100%);
  text-align: center;
  color: var(--text-primary);
  backdrop-filter: blur(6px);
}

.hero-mihrab-badge h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero-mihrab-badge span {
  color: var(--crimson-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Hero Typography & Credentials */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--gold-border-solid);
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--crimson-primary);
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 16px rgba(184, 138, 40, 0.16);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-weight: 900;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  line-height: 1.75;
  font-weight: 600;
}

.hero-stats-row {
  display: flex;
  gap: 1.3rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--silver-border);
  border-left: 4px solid var(--gold-primary);
  padding: 0.8rem 1.4rem;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--crimson-primary);
  box-shadow: var(--shadow-card-hover);
}

.stat-card .val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--crimson-primary);
}

.stat-card .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   ROYAL BUTTONS
   ========================================================================== */
.btn-primary {
  background: var(--crimson-gradient);
  color: #ffffff;
  font-weight: 800;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-crimson);
  border: 1.5px solid var(--gold-primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.96rem;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(128, 18, 25, 0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1.5px solid var(--gold-border-solid);
  padding: 0.9rem 1.7rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition);
  font-size: 0.96rem;
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--crimson-primary);
  color: var(--crimson-primary);
  background: rgba(184, 138, 40, 0.09);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-foil);
  color: #1a1200;
  font-weight: 900;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-royal);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.96rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ==========================================================================
   SECTIONS & SACRED HEADERS
   ========================================================================== */
.section {
  padding: 4.8rem 7%;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #faf6ef 0%, #ffffff 100%);
  border-top: 1.5px solid var(--gold-border);
  border-bottom: 1.5px solid var(--gold-border);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.2rem;
}

.section-tag {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--crimson-primary);
  display: inline-block;
  margin-bottom: 0.7rem;
  font-weight: 900;
  background: rgba(128, 18, 25, 0.06);
  padding: 0.35rem 1.1rem;
  border-radius: 25px;
  border: 1px solid var(--crimson-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.section-desc {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ==========================================================================
   FARMAN-E-ROZANA (ILLUMINATED ISLAMIC MANUSCRIPT LAUH)
   ========================================================================== */
.farman-image-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--gold-border-solid) !important;
  box-shadow: 0 12px 35px rgba(184, 138, 40, 0.12), var(--shadow-card);
  background: #ffffff !important;
  background-image: none !important;
  padding: 2.6rem 2.4rem 2rem;
}

.farman-image-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold-foil);
}

.farman-badge {
  color: #7a5813 !important;
  font-weight: 800;
  font-size: 0.94rem;
  background: linear-gradient(135deg, #fffcf5 0%, #faecd0 100%) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1.5px solid #c59b27 !important;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.farman-arabic-overlay {
  font-family: var(--font-arabic);
  font-size: 2.3rem;
  line-height: 2.4;
  color: #15181e;
  text-align: center;
  direction: rtl;
  margin: 2.2rem 0;
  font-weight: 700;
  background: linear-gradient(135deg, #fdfaf2 0%, #fef9e8 50%, #faf3e0 100%);
  border: 1.5px solid var(--gold-border);
  border-right: 5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2rem 2.2rem;
  box-shadow: inset 0 1px 4px rgba(184, 138, 40, 0.08);
}

.farman-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1.5px solid var(--gold-border);
  padding-top: 1.5rem;
}

.btn-tarjuma-toggle {
  background: var(--gold-foil);
  color: #1a1200;
  font-weight: 900;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  border: 1px solid #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  box-shadow: var(--shadow-royal);
  transition: var(--transition);
}

.btn-tarjuma-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Tarjuma Modal */
.tarjuma-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 32, 0.68);
  backdrop-filter: blur(12px);
  z-index: 2200;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.tarjuma-modal-box {
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  padding: 2.4rem;
  box-shadow: var(--shadow-royal), 0 25px 50px rgba(0,0,0,0.18);
  position: relative;
}

.tarjuma-lang-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--silver-border);
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.tarjuma-lang-btn {
  background: #f8fafc;
  border: 1px solid var(--silver-border);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tarjuma-lang-btn.active, .tarjuma-lang-btn:hover {
  background: var(--crimson-gradient);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.tarjuma-display-area {
  background: #fdfbf7;
  border: 1.5px solid var(--gold-border);
  border-radius: 16px;
  padding: 1.8rem;
  min-height: 125px;
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.95;
  font-weight: 600;
}

/* ==========================================================================
   CALENDAR & LIVE 12-HOUR CLOCKS
   ========================================================================== */
.calendar-section-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: 24px;
  padding: 2.6rem;
  box-shadow: var(--shadow-card);
}

.clocks-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-bottom: 2.2rem;
}

.clock-box {
  background: linear-gradient(135deg, #ffffff 0%, #faf7ef 100%);
  border: 1px solid var(--silver-border);
  border-top: 3.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.3rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.clock-city {
  font-size: 0.88rem;
  color: var(--crimson-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
}

.clock-time {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: monospace;
}

.clock-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

.cal-lang-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.cal-btn {
  background: #f8fafc;
  border: 1px solid var(--silver-border);
  color: var(--text-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cal-btn.active, .cal-btn:hover {
  background: var(--gold-foil);
  color: #1a1200;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-royal);
}

.cal-view-box {
  background: #fdfbf7;
  border-radius: 18px;
  border: 1.5px solid var(--gold-border);
  padding: 2rem;
  color: var(--text-primary);
}

/* ==========================================================================
   PUBLIC RATINGS & REVIEWS
   ========================================================================== */
.rating-section-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: 24px;
  padding: 2.6rem;
  box-shadow: var(--shadow-card);
}

.stars-selector {
  display: flex;
  gap: 8px;
  font-size: 2.3rem;
  color: #d1d5db;
  cursor: pointer;
  margin-bottom: 1.2rem;
}

.stars-selector span.selected, .stars-selector span:hover {
  color: #d4af37;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin-top: 2.2rem;
}

.review-card {
  background: #faf7f2;
  border: 1px solid var(--silver-border);
  border-top: 3.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 800;
}

.review-stars {
  color: #d4af37;
  font-size: 1rem;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ==========================================================================
   SOCIAL MEDIA HUB
   ========================================================================== */
.social-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.2rem auto;
}

.social-circle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(184, 138, 40, 0.16);
}

.social-circle-icon svg {
  width: 25px;
  height: 25px;
  transition: var(--transition);
}

.social-circle-icon:hover {
  transform: scale(1.15) translateY(-4px);
  border-color: var(--crimson-primary);
  box-shadow: var(--shadow-royal);
}

.social-circle-icon.icon-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-color: #d6249f;
}

.social-circle-icon.icon-youtube:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.social-circle-icon.icon-facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.social-circle-icon.icon-threads:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.social-circle-icon.icon-whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* ==========================================================================
   INPUTS & FORMS
   ========================================================================== */
.ai-input {
  background: #ffffff;
  border: 1.5px solid var(--silver-border);
  color: var(--text-primary);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.ai-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 138, 40, 0.16);
}

/* ==========================================================================
   FOOTER (IMPERIAL ALABASTER & SACRED CREST)
   ========================================================================== */
footer {
  background: linear-gradient(180deg, #f7f1e4 0%, #ece2cd 100%);
  border-top: 2px solid var(--gold-border);
  padding: 4rem 7% 2.4rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.2rem;
  margin-bottom: 2.8rem;
}

.footer-info h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}

.footer-info p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--crimson-primary);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a, .footer-links li {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--crimson-primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 138, 40, 0.25);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* ==========================================================================
   FAM.BOT AI ASSISTANT
   ========================================================================== */
.fambot-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 24, 32, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  justify-content: flex-end;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fambot-wrapper.open {
  display: flex;
  opacity: 1;
}

.fambot-box {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-left: 2.5px solid var(--gold-primary);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.fambot-header {
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7efe0 100%);
  border-bottom: 2px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fambot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--crimson-gradient);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-crimson);
}

.fambot-sparkle-icon {
  font-size: 1.3rem;
  color: #fff;
}

.fambot-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.fambot-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 800;
}

.fambot-hdr-btn {
  background: #f1f5f9;
  border: 1px solid var(--silver-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.fambot-hdr-close {
  background: rgba(128, 18, 25, 0.08);
  border: none;
  color: var(--crimson-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.fambot-lang-bar {
  background: #faf7f2;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--silver-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fambot-lang-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--crimson-primary);
  white-space: nowrap;
}

.fambot-lang-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fambot-lang-chip {
  background: #ffffff;
  border: 1px solid var(--silver-border);
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 0.28rem 0.65rem;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
}

.fambot-lang-chip.active, .fambot-lang-chip:hover {
  background: var(--crimson-gradient);
  color: #fff;
  border-color: var(--gold-primary);
}

.fambot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fdfbf7;
}

.fambot-bubble {
  max-width: 88%;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  word-break: break-word;
}

.fambot-bubble.bot {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.fambot-bubble.user {
  background: var(--crimson-gradient);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-crimson);
}

.fambot-suggestions {
  padding: 0.65rem 0.9rem;
  background: #f8fafc;
  border-top: 1px solid var(--silver-border);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fambot-sug-btn {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.fambot-sug-btn:hover {
  background: var(--gold-foil);
  color: #1a1200;
}

.fambot-input-wrap {
  padding: 0.9rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--silver-border);
  display: flex;
  gap: 8px;
}

.fambot-input {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid var(--silver-border);
  color: var(--text-primary);
  padding: 0.8rem 1.1rem;
  border-radius: 25px;
  font-size: 0.94rem;
  outline: none;
}

.fambot-input:focus {
  border-color: var(--gold-primary);
  background: #ffffff;
}

.fambot-send-btn {
  background: var(--crimson-gradient);
  color: #ffffff;
  border: 1px solid var(--gold-primary);
  border-radius: 25px;
  padding: 0 1.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--shadow-crimson);
}

/* ==========================================================================
   FLOATING QUICK ACTIONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid #ffffff;
}

.fab-btn:hover {
  transform: scale(1.12);
}

.fab-whatsapp { background: #25d366; }
.fab-call { background: #007aff; }
.fab-fambot {
  background: var(--crimson-gradient) !important;
  border-color: var(--gold-primary) !important;
  box-shadow: var(--shadow-crimson) !important;
}

/* ==========================================================================
   SCHEDULE & EVENT CARDS
   ========================================================================== */
.schedule-two-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: start;
}

.schedule-card-col {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.majlis-event-card-luxury {
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.majlis-poster-wrapper {
  position: relative;
  width: 100%;
  background: #0b1120;
  border-bottom: 2px solid var(--gold-border);
  display: block;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

.majlis-poster-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.majlis-poster-img:hover {
  transform: scale(1.008);
}

.majlis-poster-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.6);
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.majlis-details-body {
  padding: 2rem;
}

.majlis-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #faf7f2;
  border: 1px solid var(--silver-border);
  border-radius: 14px;
  padding: 1.3rem;
  margin: 1.3rem 0;
}

.majlis-meta-item .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 800;
}

.majlis-meta-item .val {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 800;
}

/* Secondary Pages Grids */
.surah-grid, .hadees-grid, .duas-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.surah-box, .hadees-card, .dua-box, .gallery-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.surah-box:hover, .hadees-card:hover, .dua-box:hover, .gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--crimson-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST OVERHAUL)
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-full-banner {
    padding: 3.8rem 5% 4.2rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-mihrab-card {
    width: 320px;
  }
  .hero-mihrab-img {
    height: 400px;
  }
}

/* Mobile Screens & Small Tablets (<= 860px) */
@media (max-width: 860px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-actions {
    display: flex !important;
  }

  /* Hero Section Mobile Adaptation */
  .hero-full-banner {
    min-height: auto;
    padding: 2.6rem 5% 3.2rem;
    flex-direction: column;
    text-align: center;
  }

  .hero-desktop-portrait-col {
    display: none !important;
  }

  .hero-mobile-portrait-box {
    display: flex !important;
  }

  .hero-banner-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .arabic-calligraphy {
    text-align: center !important;
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
  }

  .hero-stats-row {
    justify-content: center;
    gap: 0.8rem;
  }

  .stat-card {
    flex: 1 1 120px;
    padding: 0.65rem 0.85rem;
  }

  .stat-card .val {
    font-size: 1.25rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
  }

  .btn-primary, .btn-secondary, .btn-gold {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
  }

  .farman-image-card {
    padding: 1.8rem 1.4rem;
  }

  .farman-arabic-overlay {
    font-size: 1.65rem;
    line-height: 2.1;
    margin: 1.4rem 0;
  }

  .farman-actions-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .farman-actions-bar > div {
    flex-direction: column;
  }

  .btn-tarjuma-toggle {
    width: 100%;
    justify-content: center;
  }

  .schedule-two-columns {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .clocks-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

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

  .section {
    padding: 3.4rem 5%;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .arabic-calligraphy {
    font-size: 1.7rem;
  }

  .farman-arabic-overlay {
    font-size: 1.45rem;
    line-height: 2;
  }

  .calendar-section-card,
  .rating-section-card,
  .schedule-card-col {
    padding: 1.5rem 1.1rem;
    border-radius: 18px;
  }

  .floating-actions {
    bottom: 18px;
    right: 18px;
    gap: 9px;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   LIVE SHIA ITHNA-ASHARI INDIAN NAMAZ BAR & LIVE COUNTDOWN WIDGET
   ========================================================================== */
.namaz-header-bar {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border-bottom: 2px solid var(--gold-border);
  box-shadow: 0 4px 18px rgba(184, 138, 40, 0.08);
  position: relative;
  z-index: 990;
  font-family: var(--font-sans);
}

.namaz-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.namaz-bar-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Location Button */
.namaz-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1.5px solid var(--gold-border-solid);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(184, 138, 40, 0.12);
}

.namaz-location-btn:hover {
  background: #ffffff;
  border-color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 138, 40, 0.22);
}

.namaz-pin-icon {
  font-size: 1rem;
}

.namaz-loc-text {
  color: var(--crimson-primary);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.namaz-chevron {
  font-size: 0.75rem;
  color: var(--gold-deep);
  background: rgba(184, 138, 40, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}

.namaz-hijri-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(184, 138, 40, 0.08);
  border: 1px solid rgba(184, 138, 40, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Next Prayer & Countdown Box */
.namaz-next-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(184, 138, 40, 0.25);
  padding: 5px 14px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.namaz-next-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.namaz-glow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulseGlow 2s infinite;
}

.namaz-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.namaz-next-title strong {
  color: var(--crimson-primary);
  font-weight: 800;
}

.namaz-next-time-val {
  background: rgba(128, 18, 25, 0.08);
  color: var(--crimson-primary);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.84rem;
}

/* Live Countdown Ticker */
.namaz-countdown-box {
  display: inline-flex;
  align-items: center;
}

.countdown-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #15181e;
  color: #ffffff;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.82rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseLive 1.2s infinite;
}

.countdown-label {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.countdown-digits {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'SF Pro Display', -apple-system, monospace, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.digit-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  color: #f1f5f9;
  min-width: 22px;
  text-align: center;
}

.digit-box.highlight {
  color: #fcd34d;
  background: rgba(212, 175, 55, 0.2);
}

.colon {
  color: #d4af37;
  font-weight: 900;
}

/* Expand Full Table Toggle Button */
.namaz-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--gold-border-solid);
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.namaz-toggle-btn:hover,
.namaz-toggle-btn.active {
  background: var(--gold-primary);
  color: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(184, 138, 40, 0.25);
}

/* Expandable Drawer */
.namaz-full-schedule-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  background: #fbf9f4;
  border-top: 1px dashed var(--gold-border);
}

.namaz-full-schedule-drawer.expanded {
  max-height: 800px;
  padding: 1rem 4% 1.4rem;
  overflow-y: visible;
}

.namaz-cards-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.namaz-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.namaz-cards-header small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.namaz-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.namaz-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(184, 138, 40, 0.22);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(40, 30, 15, 0.03);
  transition: var(--transition);
}

.namaz-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 138, 40, 0.15);
}

.namaz-card.active-next {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(135deg, #fffcf5 0%, #fbf2db 100%);
  box-shadow: 0 6px 20px rgba(184, 138, 40, 0.25);
  transform: translateY(-3px);
}

.namaz-active-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--crimson-primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(128, 18, 25, 0.3);
  white-space: nowrap;
}

.namaz-card-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.namaz-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.namaz-card-urdu {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 4px;
  line-height: 1.2;
}

.namaz-card-time {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--crimson-primary);
  background: rgba(128, 18, 25, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.namaz-card.active-next .namaz-card-time {
  background: var(--crimson-primary);
  color: #ffffff;
}

/* ==========================================================================
   CITY SELECTION MODAL
   ========================================================================== */
.namaz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.namaz-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.namaz-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 92%;
  max-width: 620px;
  max-height: 88vh;
  background: #ffffff;
  border: 2px solid var(--gold-border-solid);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}

.namaz-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.namaz-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  border-bottom: 1.5px solid var(--gold-border);
  background: linear-gradient(180deg, #fffcf5 0%, #faf6ec 100%);
}

.namaz-modal-title-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--crimson-primary);
  margin-bottom: 2px;
}

.namaz-modal-title-box p {
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.namaz-modal-close {
  background: rgba(184, 138, 40, 0.12);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.namaz-modal-close:hover {
  background: var(--crimson-primary);
  color: #ffffff;
}

.namaz-modal-body {
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  max-height: calc(88vh - 85px);
}

/* GPS Button */
.namaz-gps-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #9e1a22 0%, #801219 100%);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(128, 18, 25, 0.3);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.namaz-gps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(128, 18, 25, 0.45);
}

.namaz-modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.namaz-modal-divider::before,
.namaz-modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gold-border);
}

.namaz-modal-divider span {
  padding: 0 10px;
}

/* Search Box */
.namaz-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.namaz-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

.namaz-search-box input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border-radius: 12px;
  border: 1.5px solid var(--gold-border);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.namaz-search-box input:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 138, 40, 0.15);
}

/* Custom City Button */
.namaz-custom-city-btn {
  width: 100%;
  background: rgba(184, 138, 40, 0.12);
  border: 1.5px dashed var(--gold-primary);
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.namaz-custom-city-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
}

/* City Grid */
.namaz-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.namaz-city-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  background: #faf8f4;
  border: 1px solid rgba(184, 138, 40, 0.2);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.namaz-city-chip:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(184, 138, 40, 0.15);
}

.namaz-city-chip.selected {
  background: linear-gradient(135deg, #fffcf5 0%, #faecd0 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(184, 138, 40, 0.2);
}

.namaz-city-chip .city-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.namaz-city-chip.selected .city-name {
  color: var(--crimson-primary);
}

.namaz-city-chip .city-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.namaz-city-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Keyframes */
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--gold-bright); }
  50% { transform: scale(1.15); box-shadow: 0 0 16px var(--gold-bright); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR NAMAZ BAR (TOUCH-OPTIMIZED HORIZONTAL SWIPE)
   ========================================================================== */
@media (max-width: 992px) {
  .namaz-cards-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .namaz-swipe-hint {
    background: rgba(184, 138, 40, 0.12);
    color: var(--gold-deep);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
  }

  /* Smooth Horizontal Swipeable Prayer Rail */
  .namaz-cards-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px !important;
    padding: 12px 6px 14px 6px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-border-solid) #f4eee2;
  }

  .namaz-cards-grid::-webkit-scrollbar {
    height: 5px;
  }

  .namaz-cards-grid::-webkit-scrollbar-track {
    background: #f4eee2;
    border-radius: 10px;
  }

  .namaz-cards-grid::-webkit-scrollbar-thumb {
    background: var(--gold-border-solid);
    border-radius: 10px;
  }

  .namaz-card {
    flex: 0 0 135px !important;
    min-width: 135px !important;
    max-width: 145px !important;
    scroll-snap-align: center;
    box-shadow: 0 3px 12px rgba(40, 30, 15, 0.05);
  }

  .namaz-full-schedule-drawer.expanded {
    max-height: 800px;
    padding: 0.8rem 3% 1.2rem;
  }
}

@media (max-width: 768px) {
  .namaz-bar-container {
    padding: 0.6rem 3%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .namaz-bar-col {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .namaz-location-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .namaz-next-prayer-col {
    width: 100%;
  }

  .namaz-next-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .namaz-actions-col {
    width: 100%;
  }

  .namaz-toggle-btn {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

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

@media (max-width: 480px) {
  .namaz-location-btn {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .namaz-hijri-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .namaz-next-card {
    padding: 7px 10px;
  }

  .namaz-next-title {
    font-size: 0.8rem;
  }

  .namaz-next-title strong {
    font-size: 0.82rem;
  }

  .countdown-badge-inner {
    padding: 3px 8px;
    font-size: 0.76rem;
  }

  .digit-box {
    min-width: 18px;
    padding: 1px 3px;
    font-size: 0.74rem;
  }

  .namaz-card {
    flex: 0 0 128px !important;
    min-width: 128px !important;
    padding: 0.75rem 0.4rem;
  }

  .namaz-card-urdu {
    font-size: 0.86rem;
  }

  .namaz-card-time {
    font-size: 0.82rem;
    padding: 3px 6px;
  }
}
