/* Final visual fixes v12
   This file is intentionally loaded after styles.css to hard-lock critical UI fixes. */

@font-face {
  font-family: "Thmanyah Quote";
  src: url("assets/fonts/thmanyahseriftext-bold.otf?v=20260501-quote-actions-order-fix") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

body > main {
  width: min(100%, 440px) !important;
  margin-inline: auto !important;
}

/* Login: centered, no tilt, green logo on light background */
#loginView.login-screen,
#loginView .login-brand-wrap,
#loginView .login-form-shell,
#loginView .login-brand-card {
  transform: none !important;
  translate: none !important;
  perspective: none !important;
  margin-inline: auto !important;
}

#loginView .login-brand-wrap,
#loginView .login-form-shell {
  width: 100% !important;
  max-width: 400px !important;
  padding-inline: 0 !important;
}

#loginView .login-mark-image,
#loginView .login-wordmark-image {
  content: url("assets/faqih-logo-green-transparent.png") !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

#loginView .login-wordmark-image {
  display: none !important;
  width: 124px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

#loginView .login-brand-title {
  display: none !important;
}

/* Loader: white logo on dark background */
#globalLoader .global-loader-logo,
#globalLoader .global-loader-wordmark {
  content: url("assets/faqih-logo-white-transparent.png") !important;
  filter: none !important;
}

#globalLoader .global-loader-logo-shell,
#globalLoader .global-loader-logo-core {
  width: 116px !important;
  height: 116px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#globalLoader .global-loader-logo-ring {
  display: none !important;
}

#globalLoader .global-loader-logo {
  width: 116px !important;
  height: 116px !important;
  object-fit: contain !important;
}

/* Account-ready: improve white text contrast/readability */
#profileCelebrateOverlay .profile-celebrate-card {
  background:
    radial-gradient(circle at 50% -16%, rgba(201, 167, 93, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 230, 0.96)) !important;
  border: 1px solid rgba(15, 61, 46, 0.10) !important;
}

#profileCelebrateOverlay .profile-celebrate-eyebrow,
#profileCelebrateOverlay .profile-celebrate-title,
#profileCelebrateOverlay .profile-celebrate-text {
  color: #173127 !important;
  text-shadow: none !important;
}

#profileCelebrateOverlay .profile-celebrate-eyebrow {
  color: #8b6a2e !important;
}

/* Remove useless daily mini message card */
#tab-home .faqih-home-mini-card {
  display: none !important;
}

/* Hero door section: wide cinematic card with a single title */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  min-height: 0 !important;
  height: clamp(164px, 43vw, 206px) !important;
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

#tab-home .faqih-home-door-bg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center right !important;
  opacity: 1 !important;
  filter: saturate(1.12) contrast(1.08) brightness(0.95) !important;
  transform: none !important;
}

#tab-home .faqih-home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(4, 20, 15, 0.90) 0%, rgba(4, 20, 15, 0.62) 45%, rgba(4, 20, 15, 0.16) 100%),
    radial-gradient(circle at 78% 48%, rgba(255, 216, 124, 0.20), transparent 22%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  min-height: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 22px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#tab-home .faqih-home-hero-copy {
  max-width: 58% !important;
  margin: 0 !important;
  text-align: right !important;
}

#tab-home .faqih-home-hero-head,
#tab-home .faqih-home-eyebrow,
#tab-home .faqih-home-hero-copy strong,
#tab-home .faqih-home-hero-copy p,
#tab-home .faqih-home-trust-row {
  display: none !important;
}

#tab-home .faqih-home-hero-copy h2 {
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: 2.15rem !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42) !important;
}

#tab-home .questioner-home-instant-cta {
  display: none !important;
}

/* Quote share: preview must match downloaded output */
.quote-share-preview-wrap {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: min(100% - 24px, 392px) !important;
  min-height: min(72vh, 492px) !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(15, 61, 46, 0.08), rgba(15, 61, 46, 0.02)) !important;
  box-shadow:
    0 18px 42px rgba(15, 61, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

.quote-share-canvas-preview {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 34px rgba(15, 61, 46, 0.18) !important;
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease !important;
}

.quote-share-canvas-preview.is-loading {
  opacity: 0.54 !important;
  filter: blur(1px) saturate(0.88) !important;
  transform: scale(0.992) !important;
}

.quote-share-canvas-preview[src=""] {
  opacity: 0 !important;
}

.quote-share-capture {
  position: fixed !important;
  top: -99999px !important;
  left: -99999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: block !important;
  transform: none !important;
}

#tab-home .questioner-home-quote-text,
#quoteText.quote-text,
.quote-card .quote-text,
.quote-share-capture .quote-share-text,
#quoteShareText.quote-share-text {
  font-family: "Thmanyah Quote", "Noto Serif Arabic", "Cairo", "Tajawal", serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

#tab-home .questioner-home-quote-text,
#quoteText.quote-text,
.quote-card .quote-text {
  line-height: 1.82 !important;
}

.quote-share-capture .quote-share-text,
#quoteShareText.quote-share-text {
  line-height: 1.5 !important;
}

/* Quote share: show an instant DOM preview first, then swap to the final PNG. */
.quote-share-preview-wrap .quote-share-capture {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  display: block !important;
  transform-origin: top center !important;
  transition: opacity 0.22s ease, filter 0.22s ease !important;
}

.quote-share-preview-wrap.has-canvas-preview .quote-share-capture {
  opacity: 0 !important;
  visibility: hidden !important;
}

.quote-share-preview-wrap:not(.has-canvas-preview) .quote-share-canvas-preview {
  opacity: 0 !important;
  visibility: hidden !important;
}

.quote-share-preview-wrap.has-canvas-preview .quote-share-canvas-preview {
  opacity: 1 !important;
  visibility: visible !important;
}

.quote-share-preview-wrap.is-rendering-preview .quote-share-capture {
  filter: saturate(0.96) contrast(0.98) !important;
}

.quote-share-preview-wrap.is-canvas-error .quote-share-capture {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Support center: premium style within app identity */
#settingsHelpView {
  background:
    radial-gradient(circle at 50% -14%, rgba(201, 167, 93, 0.28), transparent 34%),
    linear-gradient(180deg, #0f3d2e 0%, #072119 100%) !important;
}

#settingsHelpView section.rounded-3xl {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

#settingsHelpView article {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#settingsHelpInstagramBtn {
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ecd7a5, #c9a75d) !important;
  color: #132b22 !important;
  font-weight: 900 !important;
}

/* Final hero image correction: keep the instant-path artwork square on mobile. */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(86vw, 430px) !important;
  border-radius: 30px !important;
}

#tab-home .faqih-home-hero-card .faqih-home-door-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 69% center !important;
  transform: none !important;
  filter: saturate(1.08) contrast(1.04) brightness(0.95) !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section::before {
  background:
    linear-gradient(270deg, rgba(3, 17, 13, 0.88) 0%, rgba(5, 25, 19, 0.60) 42%, rgba(6, 30, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 14, 11, 0.76) 0%, transparent 48%),
    radial-gradient(circle at 70% 38%, rgba(255, 218, 142, 0.22), transparent 26%) !important;
}

@media (min-width: 431px) {
  #tab-home .faqih-home-hero-card.questioner-home-instant-section {
    aspect-ratio: 1 / 1 !important;
    max-height: 430px !important;
  }
}

/* Last pass: this intentionally sits at the end so older hero overrides cannot stretch the door again. */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(86vw, 430px) !important;
}

#tab-home .faqih-home-hero-card .faqih-home-door-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 70% center !important;
  transform: none !important;
  image-rendering: auto !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-door-bg {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    object-position: 70% center !important;
  }

  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    min-height: 100% !important;
    height: 100% !important;
  }

  #tab-home .faqih-home-hero-copy {
    max-width: 62% !important;
  }

  #tab-home .faqih-home-hero-copy h2 {
    font-size: 1.95rem !important;
  }
}

/* Welcome v14: use the provided premium Islamic background as the locked backdrop */
#welcomeView.welcome-screen {
  background:
    linear-gradient(180deg, rgba(2, 18, 15, 0.08), rgba(2, 18, 15, 0.16)),
    url("assets/welcome-bg.png?v=20260501-quote-actions-order-fix") center / cover no-repeat !important;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 18px calc(env(safe-area-inset-bottom, 0px) + 26px) !important;
  overflow: hidden !important;
}

#welcomeView::before,
#welcomeView::after {
  content: none !important;
  display: none !important;
}

#welcomeView .welcome-bg-layer,
#welcomeView .welcome-bg-overlay,
#welcomeView .welcome-glow {
  display: none !important;
  opacity: 0 !important;
}

#welcomeView .welcome-content {
  min-height: calc(100svh - 46px) !important;
  padding: clamp(34px, 7vh, 72px) 22px 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

#welcomeView .welcome-logo-shell {
  width: 142px !important;
  height: 142px !important;
  margin: 0 auto 28px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(233, 204, 137, 0.22) !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 246, 214, 0.12), transparent 58%),
    rgba(2, 27, 22, 0.18) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
}

#welcomeView .welcome-turban-logo {
  width: 108px !important;
  height: 108px !important;
}

#welcomeView .welcome-title {
  color: #fffaf0 !important;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
}

#welcomeView .welcome-subtitle {
  color: rgba(255, 250, 240, 0.86) !important;
  max-width: 360px !important;
  margin-inline: auto !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.24) !important;
}

#welcomeView .welcome-features span {
  background: rgba(4, 37, 31, 0.32) !important;
  border-color: rgba(233, 204, 137, 0.24) !important;
  color: #f5dfaa !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

#welcomeView .welcome-start-btn {
  margin-top: 18px !important;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset !important;
}

/* Default avatars v15: keep the new high-resolution avatars crisp everywhere */
#profileAvatarPreview,
#homeHeaderAvatar,
#settingsAvatarImage,
#sheikhHeaderAvatar,
#developerSheikhAvatarPreview,
.questioner-profile-avatar,
.sheikh-conversation-avatar,
.chat-msg-avatar img {
  object-fit: cover !important;
  object-position: center !important;
  image-rendering: auto !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(233, 204, 137, 0.16), transparent 56%),
    #0f3d2e !important;
}

/* Loader v16: logo only, no frame/background/card/text */
#globalLoader.global-loader {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#globalLoader.global-loader::before,
#globalLoader.global-loader::after,
#globalLoader .global-loader-card::before,
#globalLoader .global-loader-noor,
#globalLoader .global-loader-pattern,
#globalLoader .global-loader-logo-ring,
#globalLoader .global-loader-brand,
#globalLoader .global-loader-wordmark,
#globalLoader .global-loader-text,
#globalLoader .global-loader-hint,
#globalLoader .global-loader-progress,
#globalLoader .global-loader-dots {
  display: none !important;
}

#globalLoader .global-loader-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#globalLoader .global-loader-logo-shell,
#globalLoader .global-loader-logo-core {
  width: 148px !important;
  height: 148px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#globalLoader .global-loader-logo {
  content: url("assets/faqih-loader-logo-only.png?v=20260501-quote-actions-order-fix") !important;
  width: 148px !important;
  height: 148px !important;
  object-fit: contain !important;
  filter: none !important;
  animation: faqihLogoOnlyPulse 1.45s ease-in-out infinite !important;
}

@keyframes faqihLogoOnlyPulse {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.015);
    opacity: 1;
  }
}

/* Loader v19: premium calm loading experience */
#globalLoader.global-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 28px !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(232, 204, 143, 0.22), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(22, 74, 58, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(5, 31, 24, 0.96), rgba(3, 19, 15, 0.98)) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  overflow: hidden !important;
}

#globalLoader.global-loader.hidden {
  display: none !important;
}

#globalLoader.global-loader::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -12% !important;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.18) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.14) 87.5%) !important;
  background-size: 84px 146px !important;
  opacity: 0.07 !important;
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%) !important;
  pointer-events: none !important;
}

#globalLoader.global-loader::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: min(86vw, 430px) !important;
  height: min(86vw, 430px) !important;
  border-radius: 999px !important;
  background:
    conic-gradient(from 180deg, transparent, rgba(232, 204, 143, 0.24), transparent 35%, rgba(255, 255, 255, 0.08), transparent 68%) !important;
  filter: blur(18px) !important;
  opacity: 0.72 !important;
  animation: faqihLoaderAura 5s linear infinite !important;
  pointer-events: none !important;
}

#globalLoader .global-loader-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(86vw, 348px) !important;
  max-width: 348px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 34px 26px 30px !important;
  border-radius: 34px !important;
  border: 1px solid rgba(232, 204, 143, 0.20) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(232, 204, 143, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(24px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.14) !important;
  overflow: hidden !important;
}

#globalLoader .global-loader-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: 33px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  pointer-events: none !important;
}

#globalLoader .global-loader-noor {
  display: block !important;
  position: absolute !important;
  width: 190px !important;
  height: 190px !important;
  top: -70px !important;
  right: -62px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(232, 204, 143, 0.22), transparent 66%) !important;
  pointer-events: none !important;
}

#globalLoader .global-loader-pattern {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  opacity: 0.08 !important;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.38) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.38) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.28) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.28) 87.5%) !important;
  background-size: 58px 100px !important;
  pointer-events: none !important;
}

#globalLoader .global-loader-logo-shell {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 126px !important;
  height: 126px !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  border-radius: 34px !important;
  border: 1px solid rgba(232, 204, 143, 0.18) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#globalLoader .global-loader-logo-ring {
  display: block !important;
  position: absolute !important;
  inset: 8px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(232, 204, 143, 0.16) !important;
  border-top-color: rgba(232, 204, 143, 0.78) !important;
  animation: faqihLoaderRing 2.6s linear infinite !important;
}

#globalLoader .global-loader-logo-core {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 94px !important;
  height: 94px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#globalLoader .global-loader-logo {
  content: url("assets/faqih-loader-logo-only.png?v=20260501-quote-actions-order-fix") !important;
  width: 94px !important;
  height: 94px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.30)) !important;
  animation: faqihLoaderLogoBreath 1.8s ease-in-out infinite !important;
}

#globalLoader .global-loader-brand,
#globalLoader .global-loader-wordmark {
  display: none !important;
}

#globalLoader .global-loader-text {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

#globalLoader .global-loader-hint {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  max-width: 270px !important;
  margin: -2px auto 4px !important;
  color: rgba(255, 250, 240, 0.72) !important;
  font-size: 0.88rem !important;
  line-height: 1.9 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

#globalLoader .global-loader-progress {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 8px !important;
  margin-top: 8px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#globalLoader .global-loader-progress span {
  display: block !important;
  width: 45% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #b89247, #f0d999, #c9a75d) !important;
  box-shadow: 0 0 24px rgba(232, 204, 143, 0.46) !important;
  animation: faqihLoaderProgress 1.65s ease-in-out infinite !important;
}

#globalLoader .global-loader-dots {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin-top: 2px !important;
}

#globalLoader .global-loader-dots span {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #e6cc8c !important;
  opacity: 0.45 !important;
  animation: faqihLoaderDot 1.15s ease-in-out infinite !important;
}

#globalLoader .global-loader-dots span:nth-child(2) {
  animation-delay: 0.14s !important;
}

#globalLoader .global-loader-dots span:nth-child(3) {
  animation-delay: 0.28s !important;
}

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

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

@keyframes faqihLoaderLogoBreath {
  0%,
  100% {
    transform: translateY(0) scale(0.985);
    opacity: 0.92;
  }
  50% {
    transform: translateY(-2px) scale(1.02);
    opacity: 1;
  }
}

@keyframes faqihLoaderProgress {
  0% {
    transform: translateX(135%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-145%);
  }
}

@keyframes faqihLoaderDot {
  0%,
  100% {
    transform: translateY(0) scale(0.88);
    opacity: 0.38;
  }
  50% {
    transform: translateY(-4px) scale(1);
    opacity: 1;
  }
}

/* Profile completion v20: premium emerald onboarding */
#profileView.profile-shell,
#profileView.profile-shell-v2 {
  position: relative !important;
  min-height: 100svh !important;
  overflow-x: hidden !important;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(201, 167, 93, 0.28), transparent 32%),
    radial-gradient(circle at 94% 16%, rgba(15, 61, 46, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, #f4efe4 56%, #eee6d8 100%) !important;
  color: #173127 !important;
}

#profileView.profile-shell-v2::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(135deg, rgba(15, 61, 46, 0.055) 1px, transparent 1px),
    linear-gradient(45deg, rgba(201, 167, 93, 0.045) 1px, transparent 1px) !important;
  background-size: 34px 34px, 44px 44px !important;
  mask-image: radial-gradient(circle at top, #000 0%, transparent 68%) !important;
  opacity: 0.55 !important;
}

#profileView.profile-shell-v2::after {
  content: "" !important;
  position: fixed !important;
  left: -18% !important;
  right: -18% !important;
  bottom: -24% !important;
  height: 42% !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at center, rgba(15, 61, 46, 0.2), transparent 66%),
    linear-gradient(180deg, transparent, rgba(11, 47, 36, 0.16)) !important;
  filter: blur(4px) !important;
}

#profileView .profile-topbar-v2 {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 20 !important;
  margin: 0 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    0 18px 42px rgba(15, 61, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.16) !important;
}

#profileView #profileBackBtn {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 242, 229, 0.82)) !important;
  color: #0f3d2e !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, 0.08) !important;
}

#profileView .profile-topbar-v2 h2 {
  color: #173127 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

#profileView .profile-v2-hero {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

#profileView .profile-v2-hero-glass {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 16px !important;
  align-items: center !important;
  min-height: 168px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 86% 10%, rgba(232, 204, 143, 0.24), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #0f3d2e 0%, #0b2f24 100%) !important;
  color: #fffaf0 !important;
  box-shadow:
    0 26px 70px rgba(15, 61, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

#profileView .profile-v2-hero-glass::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(201, 167, 93, 0.08) 49% 51%, transparent 52% 100%) !important;
  background-size: 18px 18px, 42px 42px !important;
  opacity: 0.35 !important;
}

#profileView .profile-v2-hero-glass::after {
  content: "" !important;
  position: absolute !important;
  width: 190px !important;
  height: 190px !important;
  right: -84px !important;
  top: -70px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(201, 167, 93, 0.24), transparent 68%) !important;
  filter: blur(2px) !important;
  pointer-events: none !important;
}

#profileView .profile-v2-identity {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#profileView .profile-v2-logo-wrap {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 auto !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#profileView .profile-v2-logo {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
}

#profileView .profile-v2-eyebrow {
  color: #e6cc8c !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

#profileView .profile-v2-copy h3 {
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
}

#profileView .profile-v2-copy p {
  margin: 4px 0 0 !important;
  color: rgba(255, 250, 240, 0.78) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
}

#profileView .profile-v2-avatar-slot {
  position: relative !important;
  z-index: 2 !important;
}

#profileView .profile-v2-avatar-slot .profile-avatar-wrap {
  width: 104px !important;
  min-height: 104px !important;
  overflow: hidden !important;
  border: 3px solid rgba(232, 204, 143, 0.72) !important;
  border-radius: 32px !important;
  background: #0f3d2e !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.07) !important;
}

#profileView .profile-v2-avatar-slot .profile-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#profileView .profile-v2-avatar-slot .profile-avatar-camera {
  left: 8px !important;
  bottom: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  background: linear-gradient(180deg, #ead49b, #c9a75d) !important;
  color: #173127 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

#profileView .profile-v2-body {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

#profileView .profile-v2-card {
  overflow: hidden !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 20px 52px rgba(15, 61, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

#profileView .profile-v2-card-head {
  padding: 18px 18px 8px !important;
}

#profileView .profile-v2-card-title {
  margin: 0 !important;
  color: #173127 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

#profileView .profile-v2-card-text {
  margin: 5px 0 0 !important;
  color: #66756e !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.85 !important;
}

#profileView .profile-v2-card-content {
  display: grid !important;
  gap: 8px !important;
  padding: 0 0 14px !important;
}

#profileView .profile-v2-row,
#profileView .profile-v2-gender-row {
  padding: 6px 16px !important;
}

#profileView .profile-v2-field p,
#profileView .profile-v2-gender-row > p {
  margin-bottom: 8px !important;
  color: #173127 !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
}

#profileView .profile-v2-field .form-input {
  height: 58px !important;
  border: 1px solid rgba(15, 61, 46, 0.1) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #173127 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(15, 61, 46, 0.06) !important;
}

#profileView .profile-v2-field .form-input:focus {
  border-color: rgba(201, 167, 93, 0.72) !important;
  box-shadow:
    0 0 0 4px rgba(201, 167, 93, 0.18),
    0 14px 30px rgba(15, 61, 46, 0.1) !important;
}

#profileView .profile-v2-gender-row .gender-picker {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

#profileView .profile-v2-gender-option {
  position: relative !important;
  display: flex !important;
  min-height: 96px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 61, 46, 0.1) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 243, 0.78)) !important;
  color: #173127 !important;
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.07) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

#profileView .profile-v2-gender-option.is-selected,
#profileView .profile-v2-gender-option:has(input:checked) {
  transform: translateY(-2px) !important;
  border-color: rgba(201, 167, 93, 0.78) !important;
  background: linear-gradient(180deg, #fffaf0, #f8efd9) !important;
  box-shadow:
    0 0 0 4px rgba(201, 167, 93, 0.16),
    0 18px 36px rgba(15, 61, 46, 0.12) !important;
}

#profileView .gender-option-badge {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(201, 167, 93, 0.34) !important;
  border-radius: 16px !important;
  background: rgba(15, 61, 46, 0.08) !important;
  color: #0f3d2e !important;
}

#profileView .gender-option-title {
  color: #173127 !important;
  font-weight: 900 !important;
}

#profileView .gender-option-hint {
  color: #66756e !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

#profileView .gender-option-check {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  display: grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e6cc8c !important;
  color: #0f3d2e !important;
  font-weight: 900 !important;
}

#profileView .faqih-profile-privacy-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 8px 16px 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  border-radius: 20px !important;
  background: rgba(15, 61, 46, 0.06) !important;
  color: #173127 !important;
}

#profileView .faqih-profile-privacy-note span {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  border-radius: 14px !important;
  background: rgba(201, 167, 93, 0.18) !important;
  color: #8b6a2e !important;
}

#profileView .faqih-profile-privacy-note p {
  margin: 0 !important;
  color: #4f5f57 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
}

#profileView .profile-v2-save-btn {
  width: 100% !important;
  height: 58px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ead49b, #c9a75d) !important;
  color: #173127 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  box-shadow:
    0 18px 38px rgba(185, 148, 85, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

#profileView .profile-v2-save-btn:active {
  transform: scale(0.985) !important;
}

#profileView .profile-v2-footer {
  padding: 4px 16px 14px !important;
}

#profileView .profile-v2-footer > p:not(.auth-status-text) {
  margin: 10px 0 0 !important;
  color: #66756e !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
}

@media (max-width: 420px) {
  #profileView .profile-v2-hero-glass {
    gap: 12px !important;
    padding: 16px !important;
  }

  #profileView .profile-v2-copy h3 {
    font-size: 1rem !important;
  }

  #profileView .profile-v2-copy p {
    font-size: 0.76rem !important;
  }

  #profileView .profile-v2-avatar-slot .profile-avatar-wrap {
    width: 92px !important;
    min-height: 92px !important;
    border-radius: 28px !important;
  }
}

/* Instant path v21: title top-right + clear rectangular action */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  height: clamp(214px, 50vw, 252px) !important;
  min-height: 214px !important;
  padding: 0 !important;
  border-radius: 28px !important;
  border: 1px solid rgba(232, 204, 143, 0.32) !important;
  box-shadow:
    0 22px 54px rgba(15, 61, 46, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(270deg, rgba(3, 17, 13, 0.96) 0%, rgba(5, 25, 19, 0.82) 38%, rgba(6, 30, 22, 0.42) 72%, rgba(6, 30, 22, 0.10) 100%),
    linear-gradient(0deg, rgba(2, 14, 11, 0.78) 0%, transparent 46%),
    radial-gradient(circle at 76% 32%, rgba(255, 218, 142, 0.24), transparent 25%) !important;
  pointer-events: none !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  z-index: 4 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 27px !important;
  box-shadow: inset 0 0 80px rgba(232, 204, 143, 0.12) !important;
  pointer-events: none !important;
}

#tab-home .faqih-home-hero-card .faqih-home-door-bg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center right !important;
  opacity: 1 !important;
  filter: saturate(1.15) contrast(1.08) brightness(0.92) drop-shadow(0 0 28px rgba(232, 204, 143, 0.22)) !important;
  transform: scale(1.02) !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-orb {
  position: absolute !important;
  right: 16px !important;
  top: 18px !important;
  width: 108px !important;
  height: 108px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(232, 204, 143, 0.28), transparent 66%) !important;
  filter: blur(3px) !important;
  opacity: 0.9 !important;
  z-index: 2 !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-panel.questioner-home-instant-card {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-copy {
  width: min(62%, 260px) !important;
  max-width: min(62%, 260px) !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  text-align: right !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-head,
#tab-home .faqih-home-hero-card .faqih-home-eyebrow,
#tab-home .faqih-home-hero-card .faqih-home-hero-copy strong,
#tab-home .faqih-home-hero-card .faqih-home-hero-copy p,
#tab-home .faqih-home-hero-card .faqih-home-trust-row {
  display: none !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-copy h2 {
  margin: 0 !important;
  color: #fffaf0 !important;
  font-size: clamp(2rem, 7.5vw, 2.6rem) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
  text-shadow:
    0 16px 34px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(232, 204, 143, 0.16) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 231, 196, 0.88)),
    linear-gradient(180deg, #ead49b, #c9a75d) !important;
  color: #143126 !important;
  font-size: 0 !important;
  font-weight: 950 !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::before {
  content: "الانتقال إلى المسار الفوري" !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::after {
  content: "‹" !important;
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  margin-right: 10px !important;
  border-radius: 999px !important;
  background: rgba(15, 61, 46, 0.12) !important;
  color: #0f3d2e !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta:active {
  transform: scale(0.985) !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-hero-card.questioner-home-instant-section {
    height: 224px !important;
    min-height: 224px !important;
    border-radius: 26px !important;
  }

  #tab-home .faqih-home-hero-card.questioner-home-instant-section::after {
    border-radius: 25px !important;
  }

  #tab-home .faqih-home-hero-card .faqih-home-hero-panel.questioner-home-instant-card {
    padding: 18px !important;
  }

  #tab-home .faqih-home-hero-card .faqih-home-hero-copy {
    width: 66% !important;
    max-width: 66% !important;
  }
}

/* Bottom navigation v22: frosted active pill instead of hard green frame */
.app-bottom-nav {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34)) !important;
  box-shadow:
    0 22px 52px rgba(15, 61, 46, 0.14),
    0 8px 20px rgba(15, 61, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(26px) saturate(1.28) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.28) !important;
}

.app-bottom-nav::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(circle at 20% 0%, rgba(201, 167, 93, 0.16), transparent 34%),
    radial-gradient(circle at 80% 100%, rgba(15, 61, 46, 0.10), transparent 38%) !important;
  opacity: 0.85 !important;
}

.questioner-tab-btn {
  position: relative !important;
  color: rgba(28, 43, 37, 0.58) !important;
  isolation: isolate !important;
}

.questioner-tab-btn::before {
  inset: 4px 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28)) !important;
  box-shadow:
    0 14px 30px rgba(15, 61, 46, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18) !important;
  opacity: 0 !important;
  transform: scale(0.9) translateY(3px) !important;
  backdrop-filter: blur(18px) saturate(1.28) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.28) !important;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease !important;
}

.questioner-tab-btn.active {
  color: #173127 !important;
}

.questioner-tab-btn.active::before {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

.questioner-tab-btn.active .questioner-tab-icon-wrap {
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
}

.questioner-tab-btn.active .questioner-tab-icon-img,
.questioner-tab-btn.active .questioner-tab-icon-home {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(18%) sepia(21%) saturate(801%) hue-rotate(104deg) brightness(92%) contrast(93%) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

.questioner-tab-btn.active .questioner-tab-label {
  color: #173127 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.dark .app-bottom-nav {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(15, 35, 29, 0.72), rgba(4, 20, 15, 0.56)) !important;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.dark .questioner-tab-btn {
  color: rgba(255, 250, 240, 0.62) !important;
}

.dark .questioner-tab-btn::before {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.dark .questioner-tab-btn.active,
.dark .questioner-tab-btn.active .questioner-tab-label {
  color: #fffaf0 !important;
}

.dark .questioner-tab-btn.active .questioner-tab-icon-img,
.dark .questioner-tab-btn.active .questioner-tab-icon-home {
  filter: brightness(0) saturate(100%) invert(93%) sepia(24%) saturate(548%) hue-rotate(350deg) brightness(103%) contrast(96%) !important;
}

/* Hero/nav refinement v23: cleaner glass with no green edges */
.app-bottom-nav {
  border-color: rgba(255, 255, 255, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.30)) !important;
  box-shadow:
    0 24px 54px rgba(17, 24, 39, 0.14),
    0 8px 22px rgba(17, 24, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.app-bottom-nav::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30), transparent),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 44%) !important;
}

.questioner-tab-btn::before,
.questioner-tab-btn.active::before {
  border-color: rgba(255, 255, 255, 0.56) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.24)) !important;
  box-shadow:
    0 14px 30px rgba(17, 24, 39, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16) !important;
}

.questioner-tab-btn.active .questioner-tab-icon-wrap {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

.questioner-tab-btn.active,
.questioner-tab-btn.active .questioner-tab-label {
  color: #2f352f !important;
}

.questioner-tab-btn.active .questioner-tab-icon-img,
.questioner-tab-btn.active .questioner-tab-icon-home {
  filter: brightness(0) saturate(100%) invert(18%) sepia(9%) saturate(471%) hue-rotate(68deg) brightness(92%) contrast(89%) !important;
}

/* Light mode bottom nav: active state is glass only, no green fill or frame. */
html:not(.dark) .app-bottom-nav {
  border-color: rgba(255, 255, 255, 0.70) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.70), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)) !important;
}

html:not(.dark) .questioner-tab-btn.active::before {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.22)) !important;
  box-shadow:
    0 18px 38px rgba(17, 24, 39, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(22px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.35) !important;
}

html:not(.dark) .questioner-tab-btn.active .questioner-tab-icon-wrap {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html:not(.dark) .questioner-tab-btn.active,
html:not(.dark) .questioner-tab-btn.active .questioner-tab-label {
  color: rgba(28, 43, 37, 0.76) !important;
}

html:not(.dark) .questioner-tab-btn.active .questioner-tab-icon-img,
html:not(.dark) .questioner-tab-btn.active .questioner-tab-icon-home {
  filter: brightness(0) saturate(0%) opacity(0.74) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

/* Final light bottom-nav lock: active tab is glass only, never green. */
html:not(.dark) .app-bottom-nav .questioner-tab-btn.active,
html:not(.dark) .app-bottom-nav button.questioner-tab-btn.active,
html:not(.dark) .app-bottom-nav button.active,
html:not(.dark) .app-bottom-nav .nav-item.active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: rgba(28, 43, 37, 0.76) !important;
}

html:not(.dark) .app-bottom-nav .questioner-tab-btn.active::before,
html:not(.dark) .app-bottom-nav button.questioner-tab-btn.active::before {
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)) !important;
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(22px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.35) !important;
}

html:not(.dark) .app-bottom-nav .questioner-tab-btn.active .questioner-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.20) !important;
  border-color: rgba(255, 255, 255, 0.60) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
}

html:not(.dark) .app-bottom-nav .questioner-tab-btn.active .questioner-tab-label {
  color: rgba(28, 43, 37, 0.76) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html:not(.dark) .app-bottom-nav .questioner-tab-btn.active .questioner-tab-icon-img,
html:not(.dark) .app-bottom-nav .questioner-tab-btn.active .questioner-tab-icon-home {
  filter: grayscale(1) brightness(0.35) opacity(0.72) !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 30px !important;
  background: #061c15 !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section::before {
  background:
    linear-gradient(270deg, rgba(3, 17, 13, 0.88) 0%, rgba(5, 25, 19, 0.68) 38%, rgba(6, 30, 22, 0.30) 70%, rgba(6, 30, 22, 0.04) 100%),
    linear-gradient(0deg, rgba(2, 14, 11, 0.68) 0%, transparent 44%),
    radial-gradient(circle at 78% 34%, rgba(255, 218, 142, 0.18), transparent 24%) !important;
}

#tab-home .faqih-home-hero-card .faqih-home-door-bg {
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: saturate(1.04) contrast(1.02) brightness(0.94) !important;
  transform: none !important;
  image-rendering: auto !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-copy {
  width: min(60%, 252px) !important;
  max-width: min(60%, 252px) !important;
}

#tab-home .faqih-home-hero-card .faqih-home-hero-copy h2 {
  font-size: clamp(1.85rem, 7vw, 2.45rem) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta {
  min-height: 54px !important;
  border-color: rgba(232, 204, 143, 0.42) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(9, 43, 33, 0.82), rgba(13, 62, 47, 0.52)),
    radial-gradient(circle at 88% 0%, rgba(232, 204, 143, 0.20), transparent 42%) !important;
  color: #fffaf0 !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 24px rgba(232, 204, 143, 0.08) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::before {
  content: "الانتقال إلى المسار الفوري" !important;
  color: #fffaf0 !important;
  font-size: 0.98rem !important;
  font-weight: 950 !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::after {
  content: "‹" !important;
  width: 30px !important;
  height: 30px !important;
  background: rgba(232, 204, 143, 0.22) !important;
  color: #f6dfab !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(232, 204, 143, 0.18) !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-hero-card.questioner-home-instant-section {
    height: auto !important;
    min-height: 0 !important;
  }

  #tab-home .faqih-home-hero-card .faqih-home-hero-panel.questioner-home-instant-card {
    padding: 16px !important;
  }

  #tab-home .faqih-home-hero-card .faqih-home-hero-copy {
    width: 64% !important;
    max-width: 64% !important;
  }
}

/* Home hero carousel: alternate instant path with social channel promos. */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  isolation: isolate !important;
}

#tab-home .faqih-home-hero-card .faqih-home-instagram-slide,
#tab-home .faqih-home-hero-card .faqih-home-whatsapp-slide {
  position: absolute !important;
  inset: 0 !important;
  z-index: 12 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: #fff !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.985) !important;
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 560ms step-end !important;
  box-shadow:
    inset 0 0 0 1px rgba(201, 167, 93, 0.28),
    inset 0 0 46px rgba(201, 167, 93, 0.10) !important;
}

#tab-home .faqih-home-hero-card .faqih-home-instagram-slide img,
#tab-home .faqih-home-hero-card .faqih-home-whatsapp-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#tab-home .faqih-home-hero-card.is-instagram-slide,
#tab-home .faqih-home-hero-card.is-whatsapp-slide {
  cursor: pointer !important;
  background: #fff !important;
}

#tab-home .faqih-home-hero-card.is-instagram-slide .faqih-home-instagram-slide,
#tab-home .faqih-home-hero-card.is-whatsapp-slide .faqih-home-whatsapp-slide {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: scale(1) !important;
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0ms linear !important;
}

#tab-home .faqih-home-hero-card.is-instagram-slide .faqih-home-door-bg,
#tab-home .faqih-home-hero-card.is-instagram-slide .faqih-home-hero-orb,
#tab-home .faqih-home-hero-card.is-instagram-slide .faqih-home-hero-head,
#tab-home .faqih-home-hero-card.is-instagram-slide .faqih-home-hero-panel,
#tab-home .faqih-home-hero-card.is-whatsapp-slide .faqih-home-door-bg,
#tab-home .faqih-home-hero-card.is-whatsapp-slide .faqih-home-hero-orb,
#tab-home .faqih-home-hero-card.is-whatsapp-slide .faqih-home-hero-head,
#tab-home .faqih-home-hero-card.is-whatsapp-slide .faqih-home-hero-panel {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 420ms ease !important;
}

#quoteActionBar #quotePrevBtn {
  order: 1 !important;
}

#quoteActionBar #quoteNextBtn {
  order: 2 !important;
}

#quoteActionBar #quoteShareBtn {
  order: 3 !important;
}

#quoteActionBar #quoteSaveBtn {
  order: 4 !important;
}

/* Final square hero override: keep the door artwork visible and not stretched on phones. */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(86vw, 430px) !important;
  border-radius: 30px !important;
}

#tab-home .faqih-home-hero-card .faqih-home-door-bg {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 70% center !important;
  transform: none !important;
  image-rendering: auto !important;
  filter: saturate(1.08) contrast(1.04) brightness(0.95) !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section::before {
  background:
    linear-gradient(270deg, rgba(3, 17, 13, 0.88) 0%, rgba(5, 25, 19, 0.60) 42%, rgba(6, 30, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 14, 11, 0.76) 0%, transparent 48%),
    radial-gradient(circle at 70% 38%, rgba(255, 218, 142, 0.22), transparent 26%) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::before {
  content: "الانتقال إلى المسار الفوري" !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta::after {
  content: "‹" !important;
}
