body {
  font-family: "Inter", sans-serif;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 8%, rgba(37, 99, 235, 0.19), transparent 34%),
    radial-gradient(circle at 92% 14%, rgba(14, 165, 233, 0.16), transparent 42%),
    linear-gradient(180deg, #edf4fb 0%, #e5eef7 60%, #deebf7 100%);
}

/* Fallback utility in case Tailwind CDN fails to load */
.hidden {
  display: none !important;
}

.dark body {
  background:
    radial-gradient(circle at 8% 8%, rgba(48, 156, 232, 0.2), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(14, 165, 233, 0.16), transparent 42%),
    #111a21;
}

#appView {
  background:
    radial-gradient(circle at 12% 5%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 94% 2%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(180deg, #eaf2fa 0%, #e3edf8 55%, #dce9f6 100%);
}

.dark #appView {
  background:
    radial-gradient(circle at 10% 4%, rgba(14, 165, 233, 0.22), transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(16, 185, 129, 0.17), transparent 30%),
    #0f172a;
}

.welcome-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
  padding: 22px;
  --welcome-shift-x: 0px;
  --welcome-shift-y: 0px;
  --welcome-tilt: 0deg;
  --welcome-glow-x: 50%;
  --welcome-glow-y: 22%;
}

.welcome-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/welcome-bg.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
}

.welcome-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at var(--welcome-glow-x) var(--welcome-glow-y), rgba(134, 239, 172, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(8, 31, 53, 0.22) 0%, rgba(9, 22, 37, 0.82) 74%, rgba(8, 18, 31, 0.94) 100%);
  transition: background-position 0.3s ease;
}

.welcome-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.75;
  pointer-events: none;
}

.welcome-glow-top {
  width: 220px;
  height: 220px;
  right: -72px;
  top: -68px;
  background: rgba(103, 232, 249, 0.3);
}

.welcome-glow-bottom {
  width: 240px;
  height: 240px;
  left: -92px;
  bottom: 14%;
  background: rgba(186, 230, 253, 0.28);
}

.welcome-content {
  position: relative;
  width: 100%;
  border-radius: 34px;
  border: 1px solid rgba(224, 242, 254, 0.36);
  background: linear-gradient(160deg, rgba(12, 40, 67, 0.52), rgba(9, 29, 49, 0.7));
  box-shadow: 0 26px 46px -28px rgba(2, 12, 27, 0.9);
  backdrop-filter: blur(10px);
  padding: 28px 22px 24px;
  animation: welcome-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-logo-shell {
  border-radius: 30px;
  border: 1px solid rgba(191, 219, 254, 0.26);
  background: linear-gradient(145deg, rgba(8, 33, 57, 0.78), rgba(9, 27, 47, 0.55));
  box-shadow: inset 0 1px 0 rgba(226, 232, 240, 0.2), 0 20px 28px -24px rgba(8, 21, 36, 0.95);
  padding: 18px 16px 24px;
  text-align: center;
  transform: translate3d(var(--welcome-shift-x), var(--welcome-shift-y), 0) rotate(var(--welcome-tilt));
  transition: transform 0.35s ease;
}

.welcome-turban-logo {
  display: block;
  width: min(54vw, 238px);
  max-width: 100%;
  margin: 0 auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 12px 24px rgba(14, 165, 233, 0.26));
  animation: welcome-float 4.6s ease-in-out infinite;
}

.welcome-wordmark-logo {
  display: block;
  width: min(66vw, 292px);
  max-width: 100%;
  margin: 8px auto 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 26px rgba(2, 132, 199, 0.26));
  animation: welcome-float 5.2s ease-in-out infinite;
  animation-delay: -1.5s;
}

.welcome-copy {
  text-align: center;
  margin-top: 18px;
}

.welcome-title {
  margin: 0;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.38;
  color: #f8fafc;
  text-shadow: 0 6px 20px rgba(2, 6, 23, 0.54);
}

.welcome-subtitle {
  margin: 10px auto 0;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.9;
  color: #dbeafe;
}

.welcome-features {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.welcome-features span {
  border: 1px solid rgba(186, 230, 253, 0.3);
  background: rgba(15, 23, 42, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.welcome-start-btn {
  margin-top: 24px;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(240, 249, 255, 0.32);
  background: linear-gradient(135deg, #38bdf8, #14b8a6);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px -22px rgba(20, 184, 166, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.welcome-start-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 22px 34px -20px rgba(14, 116, 144, 0.8);
}

.welcome-start-btn:active {
  transform: scale(0.985);
}

.welcome-status-copy {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.dark .welcome-content {
  border-color: rgba(186, 230, 253, 0.26);
  background: linear-gradient(160deg, rgba(5, 16, 29, 0.7), rgba(10, 23, 39, 0.84));
}

.dark .welcome-features span {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(15, 23, 42, 0.46);
  color: #e2e8f0;
}

@keyframes welcome-enter {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .welcome-content,
  .welcome-turban-logo,
  .welcome-wordmark-logo {
    animation: none;
  }

  .welcome-logo-shell {
    transition: none;
  }
}

@media (max-width: 420px) {
  .welcome-screen {
    padding: 16px 14px;
  }

  .welcome-content {
    border-radius: 26px;
    padding: 18px 16px 18px;
  }

  .welcome-title {
    font-size: 27px;
  }
}

.login-screen {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 0 28px;
  background:
    linear-gradient(180deg, rgba(9, 29, 49, 0.14), rgba(8, 18, 31, 0.24)),
    url("assets/welcome-bg.png") center/cover no-repeat,
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.12), transparent 40%),
    radial-gradient(circle at 14% 0%, rgba(14, 165, 233, 0.16), transparent 38%),
    #f8fafc;
}

.dark .login-screen {
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.34), rgba(8, 18, 31, 0.62)),
    url("assets/welcome-bg.png") center/cover no-repeat,
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.2), transparent 42%),
    radial-gradient(circle at 14% 0%, rgba(14, 165, 233, 0.22), transparent 40%),
    #0f172a;
}

.faqih-inline-logo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(14, 165, 233, 0.26));
}

#questionerHomeHeader {
  border: 0;
  background: transparent;
}

.dark #questionerHomeHeader {
  border-color: transparent;
  background: transparent;
}

#questionerHomeHeader #currentUserLabel {
  color: #f8fafc;
}

#questionerHomeHeader p {
  color: #cbd5e1;
}

.questioner-home-header {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.34);
  border-top: 0;
  box-shadow: 0 18px 24px -22px rgba(15, 23, 42, 0.78);
}

.questioner-home-header::after {
  content: "";
  position: absolute;
  inset: auto -52px -62px auto;
  width: 148px;
  height: 148px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 64%);
  pointer-events: none;
}

.questioner-home-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.16), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(214, 180, 118, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.94), rgba(229, 239, 249, 0.98));
}

.dark .questioner-home-main {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(214, 180, 118, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 18, 31, 0.98), rgba(10, 20, 35, 1));
}

.questioner-home-header {
  padding: 16px 16px 12px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(4, 18, 35, 0.98), rgba(7, 27, 47, 0.94)),
    url("assets/welcome-bg.png") center/cover no-repeat;
  box-shadow: 0 22px 40px -30px rgba(2, 6, 23, 0.9);
  display: grid;
  gap: 10px;
}

.questioner-home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
}

.questioner-home-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.questioner-home-brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(125, 211, 252, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 20px 30px -24px rgba(0, 0, 0, 0.85);
}

.questioner-home-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.questioner-home-notify {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.questioner-home-meta {
  border: 1px solid rgba(186, 230, 253, 0.24);
  border-radius: 18px;
  padding: 11px 12px 10px;
  background: linear-gradient(145deg, rgba(8, 33, 58, 0.62), rgba(6, 25, 44, 0.52));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 28px -24px rgba(0, 0, 0, 0.75);
}

.questioner-home-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #dbeafe;
  font-weight: 800;
}

.questioner-home-pill-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.questioner-home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 10.5px;
  font-weight: 800;
}

.questioner-home-pulse {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #bfdbfe;
}

.questioner-home-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 0 rgba(34, 197, 94, 0.55),
    0 0 0 7px rgba(34, 197, 94, 0.16);
  animation: questionerPulseGlow 1.8s ease-out infinite;
}

@keyframes questionerPulseGlow {
  0% {
    box-shadow:
      0 0 0 0 rgba(34, 197, 94, 0.55),
      0 0 0 7px rgba(34, 197, 94, 0.18);
  }
  70% {
    box-shadow:
      0 0 0 6px rgba(34, 197, 94, 0),
      0 0 0 11px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(34, 197, 94, 0),
      0 0 0 7px rgba(34, 197, 94, 0);
  }
}

.questioner-home-welcome {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.2;
}

.questioner-home-username {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.22;
}

/* Home header refresh */
.questioner-home-header {
  padding: 10px 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: block;
}

.questioner-home-header::after {
  display: none;
}

.questioner-home-header-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 24px;
  border: 1px solid rgba(214, 180, 118, 0.42);
  background:
    linear-gradient(180deg, rgba(4, 18, 35, 0.96), rgba(7, 27, 47, 0.95)),
    url("assets/welcome-bg.png") center/cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 34px -28px rgba(2, 6, 23, 0.9);
}

.questioner-home-header-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 12%, rgba(214, 180, 118, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.questioner-home-topbar {
  margin-bottom: 0;
  padding: 0;
}

.questioner-home-profile {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
}

.questioner-home-profile-ring {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 2px solid rgba(214, 180, 118, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 20px -16px rgba(0, 0, 0, 0.95);
  flex-shrink: 0;
}

.questioner-home-profile-ring img {
  width: 112%;
  height: 112%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transform-origin: center;
  display: block;
}

.questioner-home-profile-copy {
  min-width: 0;
}

.questioner-home-welcome {
  margin: 0 0 2px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.92);
}

.questioner-home-username {
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.questioner-home-logo-wrap {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: clamp(100px, 31vw, 138px);
}

.questioner-home-header-logo {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
  filter: drop-shadow(0 9px 12px rgba(2, 6, 23, 0.5));
}

.questioner-home-notify {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(214, 180, 118, 0.44);
  background: rgba(255, 255, 255, 0.09);
  color: #f7e6b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.questioner-home-notify-icon {
  width: 21px;
  height: 21px;
  display: block;
}

.questioner-home-notify-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(4, 18, 35, 0.92);
  background: #ef4444;
}

.dark .questioner-home-header {
  background: transparent;
  border: 0;
}

@media (max-width: 860px) {
  .questioner-home-header {
    padding: 8px 10px 1px;
  }

  .questioner-home-header-card {
    border-radius: 21px;
    padding: 11px 10px;
  }

  .questioner-home-profile-ring {
    width: 56px;
    height: 56px;
  }

  .questioner-home-username {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .questioner-home-header {
    padding: 8px 8px 1px;
  }

  .questioner-home-header-card {
    border-radius: 19px;
    padding: 10px 8px;
    gap: 8px;
  }

  .questioner-home-profile-ring {
    width: 50px;
    height: 50px;
    padding: 0;
  }

  .questioner-home-welcome {
    font-size: 10px;
  }

  .questioner-home-username {
    font-size: 15px;
  }

  .questioner-home-logo-wrap {
    width: clamp(82px, 30vw, 110px);
  }

  .questioner-home-notify {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

.questioner-home-search {
  margin-top: 8px;
}

.questioner-home-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(135deg, rgba(8, 24, 44, 0.52), rgba(15, 52, 86, 0.34));
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.24),
    0 16px 28px -24px rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(18px) saturate(138%);
  -webkit-backdrop-filter: blur(18px) saturate(138%);
}

.questioner-home-search-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  color: #f8fafc;
  font-size: 14px;
}

.questioner-home-search-shell:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.52),
    0 18px 30px -24px rgba(14, 165, 233, 0.55);
}

.questioner-home-search-shell:focus-within .questioner-home-search-input {
  outline: none;
}

.questioner-home-search-input::-webkit-search-decoration,
.questioner-home-search-input::-webkit-search-cancel-button,
.questioner-home-search-input::-webkit-search-results-button,
.questioner-home-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.questioner-home-search-input::placeholder {
  color: rgba(226, 232, 240, 0.85);
}

.questioner-home-search-shell,
.questioner-home-search-shell:focus-within,
.dark .questioner-home-search-shell,
.dark .questioner-home-search-shell:focus-within {
  border: 0 !important;
  outline: 0 !important;
}

#searchInput,
#searchInput:focus,
#searchInput:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

.dark .questioner-home-search-shell {
  border: 0;
  background: linear-gradient(135deg, rgba(2, 8, 22, 0.78), rgba(8, 30, 52, 0.66));
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.3),
    0 16px 28px -24px rgba(2, 6, 23, 1);
}

.dark .questioner-home-search-shell:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.58),
    0 18px 30px -24px rgba(14, 165, 233, 0.62);
}

.questioner-home-section {
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.dark .questioner-home-section {
  border-color: rgba(51, 65, 85, 0.82);
  background: rgba(10, 20, 35, 0.72);
}

.questioner-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.questioner-section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0f766e;
}

.dark .questioner-section-kicker {
  color: #7dd3fc;
}

.questioner-section-head h2 {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.dark .questioner-section-head h2 {
  color: #f8fafc;
}

.questioner-section-note {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.dark .questioner-section-note {
  color: #94a3b8;
}

.questioner-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(186, 230, 253, 0.25);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background:
    linear-gradient(140deg, rgba(4, 18, 35, 0.98), rgba(9, 29, 49, 0.95)),
    url("assets/welcome-bg.png") center/cover no-repeat;
  box-shadow: 0 28px 48px -36px rgba(2, 6, 23, 0.98);
}

.questioner-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -48px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 180, 118, 0.22), transparent 68%);
  pointer-events: none;
}

.questioner-hero-copy {
  position: relative;
  z-index: 1;
}

.questioner-hero-copy h2 {
  font-size: clamp(24px, 4vw, 33px);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.45;
  margin-bottom: 10px;
}

.questioner-hero-copy p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.9;
  max-width: 520px;
}

.questioner-hero-features {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.questioner-hero-features span {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #eff6ff;
  border: 1px solid rgba(186, 230, 253, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.questioner-hero-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.questioner-hero-cta {
  border: 0;
  border-radius: 16px;
  min-height: 50px;
  padding: 0 22px;
  white-space: nowrap;
  background: linear-gradient(135deg, #d4af70, #c79343);
  color: #09111d;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 20px 30px -24px rgba(214, 180, 118, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.questioner-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 34px -26px rgba(214, 180, 118, 1);
}

.questioner-hero-visual {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.questioner-hero-mosque {
  position: absolute;
  inset: 10px 4px 0 auto;
  width: min(220px, 100%);
  opacity: 0.16;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.questioner-hero-mosque img {
  width: 100%;
  object-fit: contain;
}

.questioner-hero-mark {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 250px;
  padding: 20px 18px;
  border-radius: 28px;
  border: 1px solid rgba(186, 230, 253, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(125, 211, 252, 0.05));
  backdrop-filter: blur(14px);
  text-align: center;
}

.questioner-hero-mark-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(14, 165, 233, 0.26));
}

.questioner-hero-mark-wordmark {
  width: min(154px, 100%);
  margin: 14px auto 0;
  object-fit: contain;
  mix-blend-mode: screen;
}

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

.questioner-highlight-card {
  border-radius: 22px;
  padding: 16px 14px;
  border: 1px solid rgba(186, 230, 253, 0.24);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.75);
  text-align: right;
}

.dark .questioner-highlight-card {
  background: rgba(10, 20, 35, 0.74);
  border-color: rgba(51, 65, 85, 0.82);
}

.questioner-highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid rgba(214, 180, 118, 0.34);
  background: linear-gradient(145deg, rgba(255, 248, 233, 0.95), rgba(247, 232, 199, 0.88));
}

.questioner-highlight-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.questioner-highlight-card strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 5px;
}

.dark .questioner-highlight-card strong {
  color: #f8fafc;
}

.questioner-highlight-card p {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.7;
}

.dark .questioner-highlight-card p {
  color: #94a3b8;
}

.questioner-category-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.questioner-category-row::-webkit-scrollbar {
  display: none;
}

.questioner-category-item {
  position: relative;
  overflow: visible;
  flex: 0 0 136px;
  min-width: 136px;
  padding: 4px 2px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  scroll-snap-align: start;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.dark .questioner-category-item {
  background: transparent;
}

.questioner-category-item::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 50%;
  width: 118px;
  height: 118px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 68%);
  pointer-events: none;
  opacity: 0.9;
}

.questioner-category-item:hover {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.05);
}

.questioner-category-row.is-static-categories .questioner-category-item {
  pointer-events: none;
  cursor: default;
}

.questioner-category-row.is-static-categories .questioner-category-item:hover {
  transform: none;
  filter: none;
}

.questioner-category-icon {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  border: 1px solid rgba(214, 180, 118, 0.5);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 248, 233, 0.88) 34%, rgba(228, 210, 174, 0.86) 62%, rgba(179, 145, 87, 0.92) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.7),
    0 24px 32px -24px rgba(15, 23, 42, 0.9),
    0 0 0 7px rgba(255, 255, 255, 0.56);
}

.questioner-category-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.questioner-category-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px dashed rgba(214, 180, 118, 0.36);
  pointer-events: none;
}

.questioner-category-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.18));
}

.questioner-category-label {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.dark .questioner-category-label {
  color: #f8fafc;
}

.questioner-category-hint {
  max-width: 126px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.65;
  min-height: 36px;
}

.dark .questioner-category-hint {
  color: #94a3b8;
}

.dark .questioner-category-item::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
}

.dark .questioner-category-icon {
  border-color: rgba(214, 180, 118, 0.48);
  background:
    radial-gradient(circle at 30% 24%, rgba(36, 60, 92, 0.96), rgba(17, 30, 49, 0.96) 38%, rgba(9, 19, 34, 0.98) 70%, rgba(4, 10, 20, 1) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 24px 32px -24px rgba(0, 0, 0, 0.96),
    0 0 0 7px rgba(15, 23, 42, 0.76);
}

.dark .questioner-category-icon::before {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .questioner-category-icon::after {
  border-color: rgba(214, 180, 118, 0.26);
}

.questioner-sheikhs-section {
  margin-bottom: 8px;
}

.questioner-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}

.dark .questioner-live-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.questioner-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.questioner-sheikh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.questioner-sheikh-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.88));
  box-shadow: 0 22px 34px -30px rgba(15, 23, 42, 0.9);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.dark .questioner-sheikh-card {
  border-color: rgba(51, 65, 85, 0.82);
  background:
    linear-gradient(145deg, rgba(12, 22, 38, 0.95), rgba(7, 14, 27, 0.98));
}

.questioner-sheikh-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.95), rgba(214, 180, 118, 0.95));
}

.questioner-sheikh-card.is-offline {
  opacity: 0.8;
}

.questioner-sheikh-avatar-wrap {
  position: relative;
}

.questioner-sheikh-avatar-frame {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.24);
  background: rgba(15, 23, 42, 0.08);
}

.questioner-sheikh-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.questioner-sheikh-status-dot {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #22c55e;
}

.dark .questioner-sheikh-status-dot {
  border-color: #08121f;
}

.questioner-sheikh-status-dot.offline {
  background: #94a3b8;
}

.questioner-sheikh-copy {
  min-width: 0;
}

.questioner-sheikh-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.questioner-sheikh-topline h3 {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.dark .questioner-sheikh-topline h3 {
  color: #f8fafc;
}

.questioner-sheikh-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #d97706;
}

.questioner-sheikh-specialty {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.75;
}

.dark .questioner-sheikh-specialty {
  color: #94a3b8;
}

.questioner-sheikh-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.questioner-sheikh-meta span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  background: rgba(15, 23, 42, 0.05);
}

.dark .questioner-sheikh-meta span {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.questioner-sheikh-action {
  min-width: 116px;
  min-height: 48px;
  border-radius: 16px;
  border: 0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  color: #09111d;
  background: linear-gradient(135deg, #d4af70, #c79343);
  box-shadow: 0 18px 28px -22px rgba(214, 180, 118, 0.95);
}

.questioner-sheikh-action[disabled] {
  color: #64748b;
  background: #e2e8f0;
  box-shadow: none;
}

.dark .questioner-sheikh-action[disabled] {
  color: #94a3b8;
  background: #1e293b;
}

@media (max-width: 860px) {
  .questioner-home-main {
    gap: 14px;
    padding: 14px 12px 0;
  }

  .questioner-home-header {
    padding: 8px 10px 1px;
    border-radius: 0;
    gap: 0;
  }

  .questioner-home-username {
    font-size: 18px;
  }

  .questioner-home-meta {
    padding: 9px 10px;
    border-radius: 14px;
  }

  .questioner-home-tagline {
    font-size: 11px;
  }

  .questioner-home-search {
    margin-top: 6px;
  }

  .questioner-home-search-shell {
    border-radius: 15px;
    padding: 12px 14px;
  }

  .questioner-home-section {
    border-radius: 20px;
    padding: 14px;
  }

  .questioner-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .questioner-section-head h2 {
    font-size: 18px;
  }

  .questioner-section-note {
    font-size: 11px;
  }

  .questioner-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 22px;
    padding: 18px;
  }

  .questioner-hero-copy h2 {
    font-size: 21px;
    line-height: 1.5;
  }

  .questioner-hero-copy p {
    font-size: 13px;
    line-height: 1.8;
  }

  .questioner-hero-actions {
    margin-top: 14px;
  }

  .questioner-hero-cta {
    width: 100%;
    min-height: 48px;
    padding-inline: 16px;
  }

  .questioner-hero-visual {
    min-height: 130px;
    justify-content: flex-start;
  }

  .questioner-hero-mosque {
    inset: 8px auto auto 0;
    width: 140px;
    opacity: 0.14;
  }

  .questioner-hero-mark {
    margin-inline: auto;
    max-width: 180px;
    border-radius: 20px;
    padding: 14px 12px;
  }

  .questioner-hero-mark-icon {
    width: 60px;
    height: 60px;
  }

  .questioner-hero-mark-wordmark {
    width: min(118px, 100%);
    margin-top: 10px;
  }

  .questioner-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .questioner-highlight-card {
    border-radius: 18px;
    padding: 14px 12px;
  }

  .questioner-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .questioner-highlight-card strong {
    font-size: 13px;
  }

  .questioner-highlight-card p {
    font-size: 11px;
    line-height: 1.6;
  }

  .questioner-category-row {
    gap: 12px;
    padding: 4px 2px 8px;
  }

  .questioner-category-item {
    flex: 0 0 116px;
    min-width: 116px;
    padding: 2px 0 6px;
    gap: 8px;
  }

  .questioner-category-item::before {
    width: 100px;
    height: 100px;
    inset: 4px auto auto 50%;
  }

  .questioner-category-icon {
    width: 102px;
    height: 102px;
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, 0.7),
      0 22px 28px -24px rgba(15, 23, 42, 0.9),
      0 0 0 6px rgba(255, 255, 255, 0.56);
  }

  .questioner-category-icon::after {
    inset: -5px;
  }

  .questioner-category-icon img {
    width: 58px;
    height: 58px;
  }

  .questioner-category-label {
    font-size: 13px;
  }

  .questioner-category-hint {
    max-width: 110px;
    min-height: 32px;
    font-size: 10px;
    line-height: 1.55;
  }

  .questioner-sheikh-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
    border-radius: 18px;
  }

  .questioner-sheikh-avatar-frame {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .questioner-sheikh-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
  }

  .questioner-sheikh-topline h3 {
    font-size: 15px;
  }

  .questioner-sheikh-specialty {
    font-size: 11px;
    line-height: 1.6;
  }

  .questioner-sheikh-meta {
    margin-top: 8px;
    gap: 6px;
  }

  .questioner-sheikh-meta span {
    font-size: 10px;
    padding: 5px 8px;
  }

  .questioner-sheikh-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    font-size: 12px;
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .questioner-home-main {
    padding: 12px 10px 0;
  }

  .questioner-home-header {
    padding: 8px 8px 1px;
  }

  .questioner-home-brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .faqih-inline-logo {
    width: 78%;
    height: 78%;
  }

  .questioner-home-username {
    font-size: 16px;
  }

  .questioner-home-meta {
    padding: 8px 9px;
  }

  .questioner-home-pill {
    height: 22px;
    font-size: 10px;
    padding: 0 8px;
  }

  .questioner-hero-copy h2 {
    font-size: 19px;
  }

  .questioner-hero-copy p {
    font-size: 12px;
  }

  .questioner-hero-features span {
    font-size: 10px;
    padding: 6px 10px;
  }

  .questioner-highlights-grid {
    grid-template-columns: 1fr;
  }

  .questioner-category-item {
    flex: 0 0 104px;
    min-width: 104px;
  }

  .questioner-category-icon {
    width: 92px;
    height: 92px;
  }

  .questioner-category-icon img {
    width: 52px;
    height: 52px;
  }

  .questioner-category-hint {
    display: none;
  }

  .questioner-live-badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  .questioner-sheikh-rating {
    font-size: 11px;
  }

  .questioner-sheikh-action {
    min-height: 42px;
  }
}

.login-brand-wrap {
  padding: 4px 18px 10px;
}

.login-brand-card {
  border-radius: 24px;
  border: 1px solid rgba(186, 230, 253, 0.58);
  background: linear-gradient(145deg, rgba(7, 42, 66, 0.96), rgba(5, 24, 45, 0.96));
  box-shadow: 0 20px 34px -22px rgba(2, 12, 27, 0.9);
  padding: 18px 16px 16px;
  text-align: center;
}

.login-mark-orb {
  width: 94px;
  height: 94px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.16), rgba(15, 23, 42, 0.28));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-mark-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(14, 165, 233, 0.3));
}

.login-wordmark-image {
  display: block;
  margin: 10px auto 0;
  width: min(58vw, 220px);
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.login-brand-title {
  margin: 6px 0 0;
  color: #f8fafc;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.login-brand-subtitle {
  margin: 6px auto 0;
  max-width: 90%;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.75;
}

.login-form-shell {
  margin: 10px 14px 0;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 34px -30px rgba(15, 23, 42, 0.75);
  padding: 14px 0 18px;
}

.dark .login-form-shell {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.82);
}

.login-form-head {
  padding: 0 22px 10px;
}

.login-form-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.login-form-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.dark .login-form-head h2 {
  color: #f8fafc;
}

.dark .login-form-head p {
  color: #94a3b8;
}

@media (max-width: 420px) {
  .login-brand-wrap {
    padding: 2px 12px 8px;
  }

  .login-form-shell {
    margin: 10px 10px 0;
    border-radius: 18px;
  }

  .login-brand-title {
    font-size: 23px;
  }
}

.verify-email-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.verify-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/welcome-bg.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.verify-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(8, 31, 53, 0.28) 0%, rgba(8, 20, 36, 0.9) 82%, rgba(8, 20, 36, 0.96) 100%);
}

.verify-content-card {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(186, 230, 253, 0.32);
  background: linear-gradient(160deg, rgba(8, 33, 57, 0.65), rgba(7, 24, 42, 0.84));
  box-shadow: 0 28px 46px -28px rgba(2, 12, 27, 0.9);
  backdrop-filter: blur(10px);
  padding: 26px 20px 20px;
}

.verify-logo-wrap {
  border-radius: 22px;
  border: 1px solid rgba(186, 230, 253, 0.24);
  background: rgba(8, 29, 48, 0.54);
  padding: 14px 12px 18px;
  text-align: center;
}

.verify-logo-turban {
  width: min(44vw, 170px);
  max-width: 100%;
  margin: 0 auto;
  display: block;
  mix-blend-mode: screen;
}

.verify-logo-wordmark {
  width: min(58vw, 220px);
  max-width: 100%;
  margin: 8px auto 0;
  display: block;
  mix-blend-mode: screen;
}

.verify-copy {
  margin-top: 16px;
  text-align: center;
}

.verify-copy h2 {
  margin: 0;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
  color: #f8fafc;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.34;
}

.verify-copy p {
  margin: 10px auto 0;
  max-width: 95%;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 14px;
}

.verify-email-chip {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: rgba(15, 23, 42, 0.42);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.verify-help-list {
  margin: 14px 0 0;
  padding: 0 18px 0 0;
  text-align: right;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.85;
}

.verify-help-list li + li {
  margin-top: 4px;
}

.verify-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.verify-login-btn,
.verify-edit-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.verify-login-btn {
  border: 1px solid rgba(224, 242, 254, 0.38);
  background: linear-gradient(135deg, #38bdf8, #14b8a6);
  color: #ffffff;
}

.verify-edit-btn {
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: rgba(15, 23, 42, 0.4);
  color: #e2e8f0;
}

.verify-login-btn:active,
.verify-edit-btn:active {
  transform: scale(0.985);
}

@media (max-width: 420px) {
  .verify-content-card {
    border-radius: 24px;
    padding: 20px 14px 14px;
  }

  .verify-copy h2 {
    font-size: 24px;
  }
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.direction-ltr {
  direction: ltr;
}

.theme-emoji {
  font-size: 20px;
  line-height: 1;
}

.auth-eye-icon {
  font-size: 18px;
  line-height: 1;
}

.app-shell {
  gap: 12px;
}

.app-hero {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background:
    linear-gradient(140deg, rgba(48, 156, 232, 0.2), rgba(13, 148, 136, 0.14)),
    #ffffff;
  box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.45);
}

.dark .app-hero {
  border-color: rgba(125, 211, 252, 0.2);
  background:
    linear-gradient(140deg, rgba(56, 189, 248, 0.16), rgba(45, 212, 191, 0.12)),
    #0f172a;
}

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

.app-brand {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}

.dark .app-brand {
  color: #7dd3fc;
}

.app-user {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.logout-pill {
  height: 40px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dark .logout-pill {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.7);
}

.app-tabs {
  display: flex;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px;
}

.dark .app-tabs {
  border-color: #1e293b;
  background: rgba(15, 23, 42, 0.75);
}

.app-tabs .tab-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s ease;
  color: #475569;
}

.app-tabs .tab-btn.active {
  color: #0c4a6e;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(14, 165, 233, 0.45);
}

.dark .app-tabs .tab-btn.active {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.3);
}

.dark .app-tabs .tab-btn {
  color: #cbd5e1;
}

.app-panel {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  box-shadow: 0 16px 24px -20px rgba(15, 23, 42, 0.55);
}

.dark .app-panel {
  border-color: #1e293b;
  background: rgba(15, 23, 42, 0.85);
}

.search-shell {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 14px;
  color: #0f172a;
  outline: none;
}

textarea.search-input {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.search-input:focus {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.dark .search-input {
  border-color: #334155;
  background: #0b1220;
  color: #e2e8f0;
}

.search-shell .search-input {
  padding-right: 40px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
}

.panel-chip {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 4px 9px;
}

.dark .panel-chip {
  color: #7dd3fc;
  background: rgba(14, 116, 144, 0.3);
}

.secure-note {
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}

.dark .secure-note {
  border-color: #1e3a8a;
  background: rgba(30, 58, 138, 0.25);
  color: #bfdbfe;
}

.send-pill {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 800;
}

.social-login-divider p {
  display: block;
  font-weight: 700;
}

.social-login-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.social-login-btn {
  height: 56px;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.social-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.55);
}

.dark .social-login-btn {
  border-color: #334155;
  background: #0f172a;
}

.social-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.apple-logo {
  filter: brightness(0);
}

.dark .apple-logo {
  filter: brightness(0) invert(1);
}

.entity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  background: #f8fafc;
}

.dark .entity-card {
  border-color: #1e293b;
  background: #0f172a;
}

.entity-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(48, 156, 232, 0.18);
  color: #0b78c9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.entity-title {
  font-weight: 700;
  font-size: 14px;
}

.entity-sub {
  font-size: 12px;
  color: #64748b;
}

.dark .entity-sub {
  color: #94a3b8;
}

.status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.status-badge.online {
  color: #0a7a60;
  background: #dcfce7;
}

.status-badge.offline {
  color: #64748b;
  background: #f1f5f9;
}

.dark .status-badge.online {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
}

.dark .status-badge.offline {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.15);
}

.chat-feed {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  min-height: 320px;
  max-height: 44dvh;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dark .chat-feed {
  border-color: #1e293b;
  background: #0f172a;
}

.bubble-row {
  display: flex;
}

.bubble-row.from-user {
  justify-content: flex-end;
}

.bubble-row.from-sheikh {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.chat-bubble-user {
  background: rgba(48, 156, 232, 0.18);
  color: #0f172a;
}

.dark .chat-bubble-user {
  color: #e2e8f0;
}

.chat-bubble-sheikh {
  background: #ffffff;
  border-color: #e2e8f0;
}

.dark .chat-bubble-sheikh {
  background: #111827;
  border-color: #1f2937;
}

.icon-btn {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark .icon-btn {
  border-color: #1e293b;
  background: #0f172a;
  color: #cbd5e1;
}

.question-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  background: #f8fafc;
}

.dark .question-card {
  border-color: #1e293b;
  background: #0f172a;
}

.question-text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.question-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.question-status {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
}

.question-status.new {
  color: #0f766e;
  background: #ccfbf1;
}

.question-status.active {
  color: #854d0e;
  background: #fef9c3;
}

.dark .question-status.new {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.2);
}

.dark .question-status.active {
  color: #fde68a;
  background: rgba(202, 138, 4, 0.2);
}

.question-sender {
  font-size: 12px;
  color: #64748b;
}

.dark .question-sender {
  color: #94a3b8;
}

.empty-card {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 13px 10px;
}

.dark .empty-card {
  border-color: #334155;
  background: #0f172a;
  color: #94a3b8;
}

.consultations-tab-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 14% 8%, rgba(56, 189, 248, 0.22), transparent 35%),
    radial-gradient(circle at 88% 1%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.75), rgba(227, 238, 249, 0.82));
}

.dark .consultations-tab-shell {
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.24), transparent 38%),
    radial-gradient(circle at 92% 0%, rgba(16, 185, 129, 0.19), transparent 30%),
    #0c1324;
}

.consultations-header {
  position: sticky;
  top: 0;
  z-index: 18;
  padding: 10px 12px 8px;
  background: transparent;
}

.dark .consultations-header {
  background: transparent;
}

.consultations-header-glass {
  border-radius: 22px;
  border: 1px solid rgba(186, 230, 253, 0.5);
  background: linear-gradient(160deg, rgba(8, 33, 57, 0.93), rgba(5, 22, 43, 0.95));
  box-shadow:
    0 20px 30px -24px rgba(2, 6, 23, 0.9),
    inset 0 1px 0 rgba(226, 232, 240, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px;
}

.dark .consultations-header-glass {
  border-color: rgba(71, 85, 105, 0.62);
  background: linear-gradient(160deg, rgba(6, 22, 40, 0.94), rgba(2, 12, 26, 0.96));
}

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

.consultations-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.consultations-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(186, 230, 253, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(125, 211, 252, 0.15));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.consultations-brand-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.consultations-brand-copy p {
  margin: 0;
  font-size: 11px;
  color: #bae6fd;
  font-weight: 700;
}

.consultations-brand-copy h1 {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.consultations-refresh-btn {
  border: 1px solid rgba(186, 230, 253, 0.46);
  border-radius: 12px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.15));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.consultations-refresh-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.consultations-header-subtitle {
  margin: 9px 2px 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.6;
}

.consultations-stats-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.consult-stat-card {
  border: 1px solid rgba(186, 230, 253, 0.36);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.32);
  min-height: 70px;
  padding: 9px 8px 8px;
  text-align: center;
  color: #dbeafe;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.consult-stat-card:hover {
  transform: translateY(-1px);
}

.consult-stat-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.consult-stat-card strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.consult-stat-card.active {
  border-color: rgba(125, 211, 252, 0.76);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(16, 185, 129, 0.24));
  color: #f8fafc;
  box-shadow: 0 12px 20px -16px rgba(14, 165, 233, 0.85);
}

.dark .consultations-refresh-btn {
  border-color: rgba(125, 211, 252, 0.4);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.36), rgba(6, 95, 70, 0.22));
}

.dark .consult-stat-card {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.56);
}

.dark .consult-stat-card.active {
  border-color: rgba(125, 211, 252, 0.72);
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.42), rgba(5, 150, 105, 0.26));
}

.consultations-main {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 26px;
}

.consultations-toolbar {
  margin-bottom: 12px;
}

.consultations-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(186, 230, 253, 0.44);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 48px;
  padding: 0 10px;
  box-shadow: 0 14px 22px -18px rgba(15, 23, 42, 0.52);
}

.dark .consultations-search {
  border-color: rgba(71, 85, 105, 0.68);
  background: rgba(15, 23, 42, 0.64);
}

.consultations-search-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consultations-search-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(91%) saturate(1105%) hue-rotate(176deg) brightness(95%) contrast(93%);
}

.consultations-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.consultations-search input::placeholder {
  color: #64748b;
}

.dark .consultations-search input {
  color: #e2e8f0;
}

.dark .consultations-search input::placeholder {
  color: #94a3b8;
}

.consultations-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 15px;
  border: 1px solid rgba(186, 230, 253, 0.44);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 20px -18px rgba(15, 23, 42, 0.58);
  margin-bottom: 14px;
}

.dark .consultations-filters {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(15, 23, 42, 0.64);
}

.consult-filter-btn {
  flex: 1;
  border: 0;
  border-radius: 11px;
  height: 40px;
  background: transparent;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  transition: color 0.22s ease, background 0.22s ease;
}

.consult-filter-btn.active {
  color: #0f172a;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.42), rgba(186, 230, 253, 0.64));
  box-shadow: 0 8px 12px -11px rgba(14, 165, 233, 0.68);
}

.dark .consult-filter-btn {
  color: #cbd5e1;
}

.dark .consult-filter-btn.active {
  color: #f8fafc;
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.5), rgba(16, 185, 129, 0.34));
}

.consult-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.consult-card {
  width: 100%;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(240, 249, 255, 0.42));
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  text-align: right;
  padding: 14px 14px 13px;
  box-shadow:
    0 18px 28px -22px rgba(15, 23, 42, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.consult-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow:
    0 22px 30px -22px rgba(14, 165, 233, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(224, 242, 254, 0.52));
}

.dark .consult-card {
  border-color: rgba(71, 85, 105, 0.65);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(11, 18, 32, 0.62));
  box-shadow:
    0 20px 30px -24px rgba(2, 6, 23, 0.96),
    inset 0 1px 0 rgba(148, 163, 184, 0.18);
}

.consult-card-line {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 16px 16px 0;
}

.consult-card-line.pending {
  background: #fb923c;
}

.consult-card-line.active {
  background: #3b82f6;
}

.consult-card-line.answered {
  background: #10b981;
}

.consult-card-line.closed {
  background: #ef4444;
}

.consult-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.consult-card-top-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.consult-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
}

.consult-chip.pending {
  color: #c2410c;
  background: #fff7ed;
}

.consult-chip.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.consult-chip.answered {
  color: #065f46;
  background: linear-gradient(145deg, #d1fae5, #ecfdf5);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.consult-chip.closed {
  color: #b91c1c;
  background: linear-gradient(145deg, #fee2e2, #fff1f2);
  border: 1px solid rgba(239, 68, 68, 0.26);
}

.dark .consult-chip.pending {
  color: #fdba74;
  background: rgba(194, 65, 12, 0.22);
}

.dark .consult-chip.active {
  color: #93c5fd;
  background: rgba(29, 78, 216, 0.22);
}

.dark .consult-chip.answered {
  color: #99f6e4;
  background: linear-gradient(145deg, rgba(5, 150, 105, 0.28), rgba(6, 95, 70, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.dark .consult-chip.closed {
  color: #fecaca;
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.34), rgba(69, 10, 10, 0.3));
  border: 1px solid rgba(248, 113, 113, 0.34);
}

.consult-date {
  font-size: 11px;
  color: #94a3b8;
}

.consult-title {
  font-size: 14px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.75;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .consult-title {
  color: #f8fafc;
}

.consult-preview {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .consult-preview {
  color: #94a3b8;
}

.consult-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.consult-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  min-width: 0;
}

.consult-owner-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consult-owner-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.95;
}

.dark .consult-owner {
  color: #94a3b8;
}

.dark .consult-owner-icon {
  background: #0f2940;
}

.consult-arrow {
  font-size: 16px;
  font-weight: 800;
  color: #94a3b8;
  flex-shrink: 0;
}

.consult-thread-tag {
  font-size: 10px;
  font-weight: 800;
  color: #075985;
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.9), rgba(186, 230, 253, 0.8));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
}

.dark .consult-thread-tag {
  color: #7dd3fc;
  background: rgba(14, 116, 144, 0.3);
}

.consult-empty-card {
  border: 1px dashed rgba(148, 163, 184, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px 12px;
}

.dark .consult-empty-card {
  border-color: rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.76);
  color: #94a3b8;
}

.consult-fab {
  position: fixed;
  left: max(calc((100vw - 448px) / 2 + 16px), 16px);
  bottom: 95px;
  min-width: 64px;
  height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #0284c7, #0ea5a4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 24px -16px rgba(2, 132, 199, 0.8);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.consult-fab img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.dark .consult-fab {
  background: linear-gradient(135deg, #0891b2, #0f766e);
  color: #f8fafc;
}

@media (max-width: 420px) {
  .consultations-stats-grid {
    gap: 6px;
  }

  .consult-stat-card {
    border-radius: 12px;
    min-height: 62px;
    padding-inline: 6px;
  }

  .consult-stat-card strong {
    font-size: 18px;
  }
}

.auth-status-text[data-type="success"] {
  color: #0d9488;
}

.auth-status-text[data-type="warn"] {
  color: #b45309;
}

.auth-status-text[data-type="error"] {
  color: #dc2626;
}

.app-status-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 14px 26px -18px rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  z-index: 80;
}

.app-status-toast[data-type="success"] {
  background: rgba(5, 150, 105, 0.92);
  border-color: rgba(110, 231, 183, 0.45);
}

.app-status-toast[data-type="warn"] {
  background: rgba(180, 83, 9, 0.92);
  border-color: rgba(251, 191, 36, 0.45);
}

.app-status-toast[data-type="error"] {
  background: rgba(185, 28, 28, 0.94);
  border-color: rgba(252, 165, 165, 0.48);
}

.dark .app-status-toast {
  background: rgba(2, 6, 23, 0.94);
  border-color: rgba(51, 65, 85, 0.75);
}

.profile-shell {
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 28px -24px rgba(15, 23, 42, 0.55);
}

.dark .profile-shell {
  border-color: #1e293b;
  background: rgba(15, 23, 42, 0.88);
}

.profile-avatar-wrap {
  min-height: 152px;
  width: 152px;
  border-radius: 999px;
  border: 5px solid #ffffff;
  background: rgba(48, 156, 232, 0.14);
  box-shadow: 0 20px 34px -18px rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.18);
  transform-origin: center 36%;
}

.dark .profile-avatar-wrap {
  border-color: #1e293b;
  background: rgba(56, 189, 248, 0.18);
}

.profile-avatar-camera {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 34px;
  width: 34px;
  border-radius: 999px;
  background: #309ce8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 14px -10px rgba(15, 23, 42, 0.75);
}

.settings-avatar-frame {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  background: linear-gradient(145deg, rgba(48, 156, 232, 0.16), rgba(37, 99, 235, 0.1));
  box-shadow: 0 20px 34px -22px rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.settings-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.18);
  transform-origin: center 36%;
}

.settings-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(140deg, #0ea5e9, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px -12px rgba(2, 6, 23, 0.85);
}

.settings-avatar-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.dark .settings-avatar-frame {
  border-color: #1e293b;
}

.dark .settings-avatar-badge {
  border-color: #1e293b;
}

.sheikh-brand-badge {
  box-shadow: 0 12px 22px -16px rgba(14, 165, 233, 0.75);
}

.gender-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gender-option {
  position: relative;
  height: 52px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option:has(input:checked) {
  border-color: rgba(14, 165, 233, 0.7);
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.dark .gender-option {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

.dark .gender-option:has(input:checked) {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

.profile-shell-v2 {
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 92% -8%, rgba(223, 188, 119, 0.2), rgba(223, 188, 119, 0)),
    radial-gradient(circle at 6% 10%, rgba(48, 156, 232, 0.16), rgba(48, 156, 232, 0)),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(243, 247, 253, 0.96) 100%);
  box-shadow:
    0 32px 46px -36px rgba(15, 23, 42, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.profile-shell-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/welcome-bg.png") center/cover no-repeat;
  opacity: 0.045;
}

.profile-topbar-v2 {
  position: relative;
  z-index: 1;
  padding-inline: 18px;
  padding-top: 14px;
  padding-bottom: 10px;
}

.profile-v2-hero {
  position: relative;
  z-index: 1;
  margin: 6px 14px 10px;
}

.profile-v2-hero-glass {
  border-radius: 22px;
  border: 1px solid rgba(223, 188, 119, 0.35);
  background:
    linear-gradient(125deg, rgba(8, 30, 58, 0.94) 0%, rgba(10, 40, 78, 0.9) 52%, rgba(7, 26, 53, 0.95) 100%);
  box-shadow:
    0 22px 34px -28px rgba(2, 6, 23, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px 14px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-v2-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-v2-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(223, 188, 119, 0.46);
  background: rgba(10, 30, 60, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-v2-logo {
  width: 95%;
  height: 95%;
  object-fit: cover;
}

.profile-v2-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-v2-eyebrow {
  color: rgba(223, 188, 119, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-v2-copy h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-v2-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 12px;
  line-height: 1.6;
}

.profile-v2-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 2px 14px 18px;
}

.profile-v2-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(48, 156, 232, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.94) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 26px 36px -34px rgba(15, 23, 42, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.profile-v2-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(223, 188, 119, 0.88), rgba(48, 156, 232, 0.32));
}

.profile-v2-card-head {
  padding: 16px 18px 8px;
}

.profile-v2-card-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.profile-v2-card-text {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.profile-v2-card-content {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.profile-v2-avatar-slot {
  flex-shrink: 0;
}

.profile-v2-avatar-shell {
  position: relative !important;
}

.profile-v2-avatar-slot .profile-avatar-wrap {
  width: 98px;
  min-height: 98px;
  border: 3px solid rgba(223, 188, 119, 0.64);
  box-shadow:
    0 16px 28px -20px rgba(2, 6, 23, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background: rgba(2, 13, 32, 0.66);
}

.profile-v2-avatar-slot .profile-avatar-wrap img {
  transform: none;
  object-position: center center;
}

.profile-v2-avatar-slot .profile-avatar-camera {
  width: 28px;
  height: 28px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(223, 188, 119, 0.45);
  background: linear-gradient(140deg, #dfbc77, #c89d59);
  color: #0f172a;
  font-weight: 900;
}

.profile-legacy-intro {
  display: none !important;
}

.profile-v2-row,
.profile-v2-gender-row {
  max-width: 100% !important;
  width: 100%;
  margin-inline: 0;
  padding-inline: 16px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  position: relative;
  z-index: 1;
}

.profile-v2-field p,
.profile-v2-gender-row > p {
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: 0.01em;
}

.profile-shell-v2 .profile-v2-field .form-input,
.profile-shell-v2 .profile-v2-gender-row .gender-option {
  border-radius: 16px;
  border-color: rgba(48, 156, 232, 0.24) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    0 14px 26px -26px rgba(15, 23, 42, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.profile-shell-v2 .profile-v2-field .form-input:focus {
  border-color: rgba(14, 165, 233, 0.65) !important;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.22),
    0 18px 28px -26px rgba(14, 165, 233, 0.82) !important;
}

.profile-v2-gender-row .gender-picker {
  gap: 12px;
}

.profile-v2-gender-option {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  height: auto;
  padding: 12px 14px;
  justify-content: flex-start;
  gap: 12px;
  text-align: right;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.profile-v2-gender-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(223, 188, 119, 0.2), rgba(48, 156, 232, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option.is-selected,
.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option:has(input:checked) {
  border-color: rgba(223, 188, 119, 0.78) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  box-shadow:
    0 0 0 3px rgba(223, 188, 119, 0.18),
    0 18px 26px -24px rgba(15, 23, 42, 0.62) !important;
  transform: translateY(-1px);
}

.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option.is-selected::after,
.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option:has(input:checked)::after {
  opacity: 1;
}

.gender-option-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(223, 188, 119, 0.44);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04), rgba(223, 188, 119, 0.16));
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gender-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.gender-option-title {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.gender-option-hint {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.gender-option-check {
  margin-inline-start: auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(223, 188, 119, 0.7);
  background: rgba(255, 255, 255, 0.94);
  color: #1a5e97;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option.is-selected .gender-option-check,
.profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option:has(input:checked) .gender-option-check {
  opacity: 1;
  transform: scale(1);
}

.profile-v2-footer {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  padding-inline: 16px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.profile-v2-footer > .flex.items-center.gap-2 {
  display: none !important;
}

.profile-v2-save-btn {
  height: 56px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(223, 188, 119, 0.55);
  background:
    linear-gradient(135deg, #1a5e97 0%, #2788cc 46%, #329ce6 100%) !important;
  box-shadow:
    0 22px 32px -26px rgba(2, 6, 23, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.profile-v2-footer > p:not(.auth-status-text) {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.65;
}

.dark .profile-shell-v2 {
  border-color: rgba(71, 85, 105, 0.6);
  background:
    radial-gradient(circle at 92% -8%, rgba(223, 188, 119, 0.16), rgba(223, 188, 119, 0)),
    radial-gradient(circle at 6% 10%, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0)),
    linear-gradient(180deg, rgba(3, 12, 28, 0.96) 0%, rgba(4, 16, 34, 0.94) 100%);
}

.dark .profile-v2-field p,
.dark .profile-v2-gender-row > p {
  color: #e2e8f0 !important;
}

.dark .profile-v2-card {
  border-color: rgba(71, 85, 105, 0.48);
  background:
    linear-gradient(180deg, rgba(6, 18, 39, 0.86) 0%, rgba(5, 16, 32, 0.94) 100%);
}

.dark .profile-v2-card-title {
  color: #f8fafc;
}

.dark .profile-v2-card-text {
  color: #94a3b8;
}

.dark .profile-shell-v2 .profile-v2-field .form-input,
.dark .profile-shell-v2 .profile-v2-gender-row .gender-option {
  border-color: rgba(71, 85, 105, 0.78) !important;
  background: rgba(6, 19, 40, 0.78) !important;
  color: #e2e8f0 !important;
}

.dark .profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option.is-selected,
.dark .profile-shell-v2 .profile-v2-gender-row .gender-option.profile-v2-gender-option:has(input:checked) {
  border-color: rgba(223, 188, 119, 0.68) !important;
  background: rgba(7, 22, 45, 0.96) !important;
  color: #f8fafc !important;
  box-shadow:
    0 0 0 3px rgba(223, 188, 119, 0.14),
    0 18px 26px -24px rgba(2, 6, 23, 0.92) !important;
}

.dark .gender-option-badge {
  border-color: rgba(223, 188, 119, 0.36);
  background: linear-gradient(145deg, rgba(223, 188, 119, 0.14), rgba(15, 23, 42, 0.28));
  color: #f8fafc;
}

.dark .gender-option-hint {
  color: #94a3b8;
}

.dark .gender-option-check {
  border-color: rgba(223, 188, 119, 0.58);
  background: rgba(15, 23, 42, 0.9);
  color: #dfbc77;
}

.dark .profile-v2-footer > p:not(.auth-status-text) {
  color: #94a3b8 !important;
}

@media (max-width: 420px) {
  .profile-v2-hero-glass {
    padding: 12px 10px 12px 10px;
    gap: 10px;
  }

  .profile-v2-copy h3 {
    font-size: 14px;
  }

  .profile-v2-copy p {
    font-size: 11px;
  }

  .profile-v2-logo-wrap {
    width: 50px;
    height: 50px;
  }

  .profile-v2-avatar-slot .profile-avatar-wrap {
    width: 86px;
    min-height: 86px;
  }

  .profile-v2-gender-option {
    min-height: 76px;
    padding: 10px 12px;
    gap: 10px;
  }

  .gender-option-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 17px;
  }

  .gender-option-title {
    font-size: 14px;
  }
}

.global-loader,
.profile-celebrate-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}

/* Android native wrapper tweaks (safe: applied only when .android-native is present) */
.android-native body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

.android-native .app-shell,
.android-native #appView,
.android-native .tab-view {
  touch-action: pan-y;
}

.global-loader {
  z-index: 140;
  background: rgba(4, 12, 24, 0.26);
  backdrop-filter: blur(12px) saturate(1.12);
}

.profile-celebrate-overlay {
  z-index: 150;
  background:
    radial-gradient(circle at 50% 8%, rgba(223, 188, 119, 0.28) 0, rgba(223, 188, 119, 0.1) 24%, transparent 52%),
    linear-gradient(180deg, rgba(6, 16, 31, 0.9) 0%, rgba(5, 14, 28, 0.98) 100%);
  backdrop-filter: blur(18px);
}

.global-loader::before,
.profile-celebrate-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.global-loader::before {
  background:
    radial-gradient(circle at 50% 46%, rgba(223, 188, 119, 0.13) 0, rgba(223, 188, 119, 0.08) 12%, rgba(7, 17, 33, 0) 46%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0, transparent 55%);
  opacity: 1;
}

.profile-celebrate-overlay::before {
  background: url("assets/welcome-bg.png") center / cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.global-loader::after,
.profile-celebrate-overlay::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.global-loader::after {
  inset: 50% auto auto 50%;
  width: min(78vw, 440px);
  height: min(78vw, 440px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(223, 188, 119, 0.14) 0%, rgba(223, 188, 119, 0.06) 32%, transparent 72%);
  filter: blur(18px);
}

.profile-celebrate-overlay::after {
  inset: auto 50% -18%;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(223, 188, 119, 0.18) 0%, rgba(223, 188, 119, 0.04) 36%, transparent 70%);
  filter: blur(28px);
}

.global-loader.hidden,
.profile-celebrate-overlay.hidden {
  display: none;
}

.global-loader-card,
.profile-celebrate-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(223, 188, 119, 0.2);
  background: linear-gradient(180deg, rgba(15, 29, 53, 0.84) 0%, rgba(8, 18, 35, 0.94) 100%);
  box-shadow:
    0 28px 80px rgba(2, 8, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 48px rgba(7, 15, 30, 0.48);
  backdrop-filter: blur(24px) saturate(1.2);
  text-align: center;
}

.global-loader-card::before,
.profile-celebrate-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.global-loader-card {
  width: min(90vw, 350px);
  padding: 28px 22px 24px;
  border-color: rgba(223, 188, 119, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 29, 53, 0.72) 0%, rgba(9, 18, 35, 0.82) 100%);
  box-shadow:
    0 24px 64px rgba(2, 8, 23, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -16px 34px rgba(7, 15, 30, 0.28);
  backdrop-filter: blur(24px) saturate(1.24);
  animation: faqihLoaderCardIn 240ms ease-out;
}

.profile-celebrate-card {
  width: min(92vw, 440px);
  padding: 36px 24px 28px;
}

.global-loader-noor,
.profile-celebrate-noor {
  position: absolute;
  top: -104px;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 208, 149, 0.5) 0%, rgba(236, 208, 149, 0.18) 34%, transparent 74%);
  filter: blur(18px);
  opacity: 0.9;
  animation: faqihNoorBreath 5.5s ease-in-out infinite;
}

.global-loader-pattern,
.profile-celebrate-pattern {
  position: absolute;
  inset: 0;
  background: url("assets/welcome-bg.png") center / cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.global-loader-logo-shell,
.profile-celebrate-logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(2, 8, 23, 0.4);
  backdrop-filter: blur(18px);
}

.global-loader-logo-shell {
  width: 102px;
  height: 102px;
  margin-bottom: 18px;
  animation: faqihFloat 2.9s ease-in-out infinite;
}

.profile-celebrate-logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-celebrate-logo-shell {
  width: 126px;
  height: 126px;
  animation: faqihFloat 3.8s ease-in-out infinite;
}

.global-loader-logo-ring {
  position: absolute;
  inset: -9px;
  border-radius: 38px;
  border: 1px solid rgba(223, 188, 119, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px rgba(223, 188, 119, 0.12);
  animation: faqihRingPulse 3.2s ease-in-out infinite;
}

.global-loader-logo-core {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.94) 0%, rgba(12, 26, 47, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 18px rgba(0, 0, 0, 0.25);
}

.global-loader-logo,
.profile-celebrate-logo {
  width: 64%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(255, 255, 255, 0.12));
}

.profile-celebrate-wordmark,
.global-loader-wordmark {
  display: block;
  height: auto;
}

.global-loader-brand {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
}

.global-loader-wordmark {
  width: min(134px, 40vw);
  margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(255, 255, 255, 0.09));
}

.profile-celebrate-wordmark {
  width: min(168px, 48vw);
  filter: drop-shadow(0 10px 22px rgba(255, 255, 255, 0.09));
}

.global-loader-text,
.profile-celebrate-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff8ea;
}

.global-loader-text {
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.global-loader-hint,
.profile-celebrate-text {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  color: rgba(241, 245, 249, 0.84);
  line-height: 1.9;
}

.global-loader-hint {
  max-width: 268px;
  font-size: 0.87rem;
}

.global-loader-progress {
  position: relative;
  z-index: 1;
  width: min(100%, 212px);
  height: 7px;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(2, 8, 23, 0.22);
}

.global-loader-progress span {
  position: absolute;
  inset: 0 auto 0 -36%;
  width: 42%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(244, 223, 184, 0.12) 0%, rgba(236, 211, 160, 0.84) 52%, rgba(197, 139, 49, 0.95) 100%);
  box-shadow: 0 0 18px rgba(223, 188, 119, 0.28);
  animation: faqihLoaderSweep 1.55s ease-in-out infinite;
}

.global-loader-dots {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.global-loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4dfb8 0%, #d8a95e 100%);
  box-shadow: 0 0 18px rgba(223, 188, 119, 0.3);
  animation: faqihDotBlink 1.25s ease-in-out infinite;
}

.global-loader-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.global-loader-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.profile-celebrate-copy {
  position: relative;
  z-index: 1;
}

.profile-celebrate-eyebrow {
  margin: 0 0 10px;
  color: #e4c98f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-celebrate-title {
  font-size: clamp(1.56rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
}

.profile-celebrate-text {
  max-width: 330px;
  font-size: 0.98rem;
}

.profile-celebrate-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.profile-celebrate-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(223, 188, 119, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.profile-celebrate-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecd3a0 0%, #d3a254 48%, #c58b31 100%);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  box-shadow:
    0 18px 36px rgba(197, 139, 49, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.profile-celebrate-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 40px rgba(197, 139, 49, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter: brightness(1.03);
}

.profile-celebrate-btn:active {
  transform: scale(0.985);
}

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

@keyframes faqihLoaderCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes faqihLoaderSweep {
  0% {
    transform: translateX(0);
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(360%);
    opacity: 0.75;
  }
}

@keyframes faqihRingPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes faqihDotBlink {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes faqihNoorBreath {
  0%,
  100% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.82;
  }
  50% {
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .global-loader,
  .profile-celebrate-overlay {
    padding: 18px 12px;
  }

  .global-loader-card,
  .profile-celebrate-card {
    border-radius: 28px;
  }

  .global-loader-card {
    width: min(92vw, 330px);
    padding: 24px 18px 20px;
  }

  .profile-celebrate-card {
    padding: 30px 18px 22px;
  }

  .global-loader-logo-shell {
    width: 94px;
    height: 94px;
  }

  .profile-celebrate-logo-shell {
    width: 112px;
    height: 112px;
  }

  .global-loader-text {
    font-size: 0.96rem;
  }

  .global-loader-hint,
  .profile-celebrate-text {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-loader-noor,
  .profile-celebrate-noor,
  .global-loader-logo-shell,
  .profile-celebrate-logo-shell,
  .global-loader-logo-ring,
  .global-loader-dots span {
    animation: none !important;
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-dashboard {
  position: relative;
  padding-bottom: 92px;
  min-height: 100vh;
}

.dashboard-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.5);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 20px 16px 14px;
}

.dark .dashboard-header {
  background: rgba(15, 23, 42, 0.94);
  border-color: #1e293b;
}

.dashboard-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(48, 156, 232, 0.12);
  color: #309ce8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-welcome {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.dark .dashboard-welcome {
  color: #94a3b8;
}

.dashboard-username {
  font-size: 16px;
  font-weight: 800;
}

.dashboard-notify-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark .dashboard-notify-btn {
  background: #1e293b;
  color: #cbd5e1;
}

.dashboard-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 10px 12px;
  border: 1px solid transparent;
}

.dashboard-search-wrap:focus-within {
  border-color: rgba(48, 156, 232, 0.45);
  box-shadow: 0 0 0 3px rgba(48, 156, 232, 0.16);
}

.dashboard-search-wrap .material-symbols-outlined {
  color: #94a3b8;
}

.dark .dashboard-search-wrap {
  background: #1e293b;
}

.dashboard-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0f172a;
}

.dark .dashboard-search-input {
  color: #e2e8f0;
}

.dashboard-search-input::placeholder {
  color: #94a3b8;
}

.dashboard-content {
  padding: 16px;
  padding-bottom: 20px;
  overflow-y: auto;
}

.dashboard-categories {
  margin-bottom: 20px;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-section-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.dashboard-section-head button {
  color: #309ce8;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-cats-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dashboard-cat-item {
  min-width: 76px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dashboard-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fdfaf1;
  border: 1px solid rgba(48, 156, 232, 0.15);
  color: #309ce8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -14px rgba(15, 23, 42, 0.55);
}

.dashboard-cat-icon .material-symbols-outlined {
  font-size: 32px;
}

.dark .dashboard-cat-icon {
  background: #1e293b;
}

.dashboard-cat-item span {
  font-size: 12px;
  font-weight: 700;
}

.dashboard-live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.17);
}

.dashboard-sheikhs {
  display: grid;
  gap: 12px;
}

.sheikh-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 18px -16px rgba(15, 23, 42, 0.55);
}

.dark .sheikh-card {
  background: #0f172a;
  border-color: #1e293b;
}

.sheikh-card.sheikh-offline {
  opacity: 0.72;
}

.sheikh-avatar-shell {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.sheikh-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheikh-online-dot {
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #ffffff;
}

.dark .sheikh-online-dot {
  border-color: #0f172a;
}

.sheikh-online-dot.on {
  background: #22c55e;
}

.sheikh-online-dot.off {
  background: #94a3b8;
}

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

.sheikh-content h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
}

.sheikh-content p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 7px;
}

.dark .sheikh-content p {
  color: #94a3b8;
}

.sheikh-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sheikh-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(48, 156, 232, 0.12);
  color: #309ce8;
}

.sheikh-rate {
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
}

.sheikh-chat-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #309ce8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheikh-chat-btn[disabled] {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.dark .sheikh-chat-btn[disabled] {
  background: #1e293b;
}

.dashboard-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 448px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  padding: 10px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.dark .dashboard-bottom-nav {
  background: rgba(15, 23, 42, 0.96);
  border-color: #1e293b;
}

.bottom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  min-width: 62px;
  padding: 2px 4px;
}

.bottom-tab-btn .material-symbols-outlined {
  font-size: 21px;
}

.bottom-tab-btn.active {
  color: #309ce8;
}

.app-bottom-nav {
  width: min(calc(100% - 20px), 428px);
  margin-right: auto;
  margin-left: auto;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 28px 36px -30px rgba(15, 23, 42, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(172%);
  -webkit-backdrop-filter: blur(24px) saturate(172%);
  overflow: hidden;
}

.dark .app-bottom-nav {
  border-color: rgba(71, 85, 105, 0.7);
  background: rgba(15, 23, 42, 0.52);
  box-shadow:
    0 28px 36px -30px rgba(2, 6, 23, 0.95),
    inset 0 1px 0 rgba(148, 163, 184, 0.2);
}

.questioner-tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  min-width: 62px;
  min-height: 56px;
  padding: 6px 8px;
  color: #334155;
  border-radius: 999px;
  transition: color 0.24s ease, transform 0.2s ease;
}

.questioner-tab-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.72));
  box-shadow:
    0 8px 14px -12px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
}

.questioner-tab-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.96;
  filter: saturate(1.1) contrast(1.08) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.16));
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.questioner-tab-icon-home {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(26%) sepia(15%) saturate(1284%) hue-rotate(178deg) brightness(93%) contrast(94%);
}

.questioner-tab-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.questioner-tab-btn::before {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 22px -20px rgba(2, 6, 23, 0.78);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 1;
  pointer-events: none;
}

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

.questioner-tab-btn.active .questioner-tab-icon-wrap {
  border-color: rgba(14, 116, 144, 0.66);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.95), rgba(8, 145, 178, 0.9));
  transform: translateY(-0.5px);
}

.questioner-tab-btn.active .questioner-tab-icon-img,
.questioner-tab-btn.active .questioner-tab-icon-home {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(15, 23, 42, 0.24));
  transform: scale(1.05);
}

.questioner-tab-btn.active .questioner-tab-label {
  color: #0f172a;
  font-weight: 800;
}

.dark .questioner-tab-btn {
  color: #cbd5e1;
}

.dark .questioner-tab-icon-wrap {
  border-color: rgba(148, 163, 184, 0.48);
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.68), rgba(30, 41, 59, 0.6));
  box-shadow:
    0 10px 16px -14px rgba(2, 6, 23, 0.86),
    inset 0 1px 0 rgba(203, 213, 225, 0.28);
}

.dark .questioner-tab-btn::before {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.2), rgba(30, 41, 59, 0.38));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 22px -20px rgba(2, 6, 23, 0.92);
}

.dark .questioner-tab-btn.active .questioner-tab-icon-wrap {
  border-color: rgba(125, 211, 252, 0.74);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.9), rgba(8, 145, 178, 0.86));
}

.dark .questioner-tab-btn.active .questioner-tab-icon-img,
.dark .questioner-tab-btn.active .questioner-tab-icon-home {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(2, 6, 23, 0.3));
}

.dark .questioner-tab-btn.active .questioner-tab-label {
  color: #f8fafc;
}

@media (max-width: 760px) {
  .app-bottom-nav {
    width: calc(100% - 14px);
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .questioner-tab-btn {
    min-width: 56px;
    min-height: 52px;
    padding: 4px 6px;
    gap: 1px;
  }

  .questioner-tab-btn::before {
    inset: 4px 3px;
  }

  .questioner-tab-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .questioner-tab-icon-img {
    width: 19px;
    height: 19px;
  }

  .questioner-tab-icon-home {
    width: 20px;
    height: 20px;
  }

  .questioner-tab-label {
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .app-bottom-nav {
    width: calc(100% - 10px);
    border-radius: 22px;
  }

  .questioner-tab-btn {
    min-width: 52px;
    min-height: 50px;
    padding: 4px;
  }

  .questioner-tab-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .questioner-tab-icon-img {
    width: 18px;
    height: 18px;
  }

  .questioner-tab-icon-home {
    width: 19px;
    height: 19px;
  }

  .questioner-tab-label {
    font-size: 9.5px;
  }
}

.sheikh-bottom-nav {
  width: min(100%, 448px);
  margin-right: auto;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 26px 34px -28px rgba(15, 23, 42, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  overflow: hidden;
}

.dark .sheikh-bottom-nav {
  border-color: rgba(71, 85, 105, 0.64);
  background: rgba(15, 23, 42, 0.46);
  box-shadow:
    0 26px 34px -28px rgba(2, 6, 23, 0.95),
    inset 0 1px 0 rgba(148, 163, 184, 0.16);
}

.sheikh-tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  min-width: 62px;
  min-height: 56px;
  padding: 6px 8px;
  color: #334155;
  border-radius: 999px;
  transition: color 0.24s ease, transform 0.2s ease;
}

.sheikh-tab-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.72));
  box-shadow:
    0 8px 14px -12px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.sheikh-tab-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.96;
  filter: saturate(1.1) contrast(1.08) drop-shadow(0 1px 1px rgba(15, 23, 42, 0.16));
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.sheikh-tab-icon-home {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(26%) sepia(15%) saturate(1284%) hue-rotate(178deg) brightness(93%) contrast(94%);
}

.sheikh-tab-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.sheikh-tab-btn::before {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 22px -20px rgba(2, 6, 23, 0.78);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 1;
  pointer-events: none;
}

.sheikh-tab-btn.active {
  color: #0f172a;
}

.sheikh-tab-btn.active::before {
  opacity: 1;
  transform: scale(1);
}

.sheikh-tab-btn.active .sheikh-tab-icon-wrap {
  border-color: rgba(37, 99, 235, 0.6);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.9));
  transform: translateY(-0.5px);
}

.sheikh-tab-btn.active .sheikh-tab-icon-img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(15, 23, 42, 0.24));
  transform: scale(1.05);
}

.sheikh-tab-btn.active .sheikh-tab-icon-home {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(15, 23, 42, 0.24));
}

.sheikh-tab-btn.active .sheikh-tab-label {
  color: #0f172a;
  font-weight: 800;
}

.dark .sheikh-tab-btn {
  color: #cbd5e1;
}

.dark .sheikh-tab-icon-wrap {
  border-color: rgba(148, 163, 184, 0.48);
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.68), rgba(30, 41, 59, 0.6));
  box-shadow:
    0 10px 16px -14px rgba(2, 6, 23, 0.86),
    inset 0 1px 0 rgba(203, 213, 225, 0.28);
}

.dark .sheikh-tab-btn::before {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.2), rgba(30, 41, 59, 0.38));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 22px -20px rgba(2, 6, 23, 0.92);
}

.dark .sheikh-tab-btn.active {
  color: #f8fafc;
}

.dark .sheikh-tab-btn.active .sheikh-tab-icon-wrap {
  border-color: rgba(125, 211, 252, 0.74);
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.9), rgba(8, 145, 178, 0.86));
}

.dark .sheikh-tab-btn.active .sheikh-tab-icon-img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(2, 6, 23, 0.3));
}

.dark .sheikh-tab-btn.active .sheikh-tab-label {
  color: #f8fafc;
}

.sheikh-question-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.questioner-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.15);
  transform-origin: center 36%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.dark .questioner-profile-avatar {
  border-color: #334155;
  background: #0f172a;
}

.questioner-profile-meta {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  white-space: normal;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.dark .questioner-profile-meta {
  color: #e2e8f0;
}

.sheikh-question-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sheikh-question-meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid rgba(30, 64, 175, 0.18);
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.sheikh-question-meta-pill.marja {
  border-color: rgba(22, 163, 74, 0.2);
  background: #ecfdf5;
  color: #166534;
}

.sheikh-question-focus-box {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: linear-gradient(160deg, #f8fbff, #eef6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dark .sheikh-question-focus-box {
  border-color: rgba(51, 65, 85, 0.9);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
}

.sheikh-questions-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sheikh-question-group {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 22px -22px rgba(15, 23, 42, 0.82);
  padding: 12px;
}

.sheikh-question-group.instant {
  border-color: rgba(15, 118, 110, 0.28);
  background:
    radial-gradient(circle at 12% 14%, rgba(15, 118, 110, 0.12), transparent 42%),
    rgba(240, 253, 250, 0.9);
}

.sheikh-question-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sheikh-question-group-head h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.sheikh-question-group-head span {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
  background: rgba(56, 189, 248, 0.16);
}

.sheikh-question-group-note {
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
  margin: -2px 0 10px;
}

.dark .sheikh-question-group {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.9);
}

.dark .sheikh-question-group.instant {
  border-color: rgba(45, 212, 191, 0.36);
  background:
    radial-gradient(circle at 12% 14%, rgba(20, 184, 166, 0.2), transparent 45%),
    rgba(8, 23, 22, 0.9);
}

.dark .sheikh-question-group-head h3 {
  color: #e2e8f0;
}

.dark .sheikh-question-group-head span {
  color: #7dd3fc;
  background: rgba(14, 116, 144, 0.3);
}

.dark .sheikh-question-group-note {
  color: #94a3b8;
}

.sheikh-empty-card {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 16px 10px;
}

.dark .sheikh-empty-card {
  border-color: #334155;
  background: #0f172a;
  color: #94a3b8;
}

.chat-room-header {
  margin: 10px 14px 8px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(48, 156, 232, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.7);
}
.chat-tab-shell {
  min-height: 0;
  padding-bottom: 74px;
}

.chat-tab-shell.thread-mode-active {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.chat-thread-screen {
  min-height: 0;
  position: relative;
}

.ask-page-header {
  border-bottom: 1px solid rgba(186, 230, 253, 0.4);
  background:
    linear-gradient(150deg, rgba(7, 32, 55, 0.92), rgba(6, 24, 44, 0.9));
  backdrop-filter: blur(6px);
}

.dark .ask-page-header {
  border-bottom-color: rgba(51, 65, 85, 0.92);
  background:
    linear-gradient(150deg, rgba(6, 20, 36, 0.98), rgba(5, 16, 30, 0.96));
}

.ask-page-header-row {
  height: 60px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ask-page-header-row h1 {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
}

.ask-page-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.18);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark .ask-page-back-btn {
  background: #1e293b;
  color: #cbd5e1;
}

.ask-page-spacer {
  width: 38px;
  height: 38px;
}

.ask-page-main {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 16px;
}

.ask-page-intro {
  text-align: center;
  margin-bottom: 14px;
}

.ask-page-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(8, 33, 57, 0.95), rgba(9, 29, 49, 0.84));
  border: 1px solid rgba(186, 230, 253, 0.35);
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 24px -18px rgba(2, 6, 23, 0.82);
}

.ask-page-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(14, 165, 233, 0.28));
}

.ask-page-intro h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ask-page-intro p {
  font-size: 13px;
  color: #64748b;
}

.dark .ask-page-intro p {
  color: #94a3b8;
}

.ask-page-target {
  border: 1px solid rgba(48, 156, 232, 0.25);
  border-radius: 14px;
  background: rgba(48, 156, 232, 0.06);
  padding: 9px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ask-page-target.hidden {
  display: none !important;
}

.ask-page-target-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(48, 156, 232, 0.25);
}

.ask-page-target-copy h3 {
  font-size: 14px;
  font-weight: 800;
}

.ask-page-target-copy p {
  font-size: 11px;
  font-weight: 700;
  color: #309ce8;
}

.ask-page-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ask-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ask-mode-picker.hidden {
  display: none !important;
}

.ask-mode-option {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ask-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ask-mode-option:has(input:checked) {
  border-color: rgba(48, 156, 232, 0.58);
  background: rgba(48, 156, 232, 0.12);
  color: #075985;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.ask-mode-hint {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-top: -2px;
}

.dark .ask-mode-option {
  border-color: rgba(71, 85, 105, 0.74);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
}

.dark .ask-mode-option:has(input:checked) {
  border-color: rgba(125, 211, 252, 0.56);
  background: rgba(14, 165, 233, 0.16);
  color: #dbeafe;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.dark .ask-mode-hint {
  color: #94a3b8;
}

.ask-page-textarea-wrap {
  position: relative;
}

.ask-page-textarea {
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 14px 30px;
  resize: vertical;
  outline: none;
  line-height: 1.7;
}

.ask-page-textarea:focus {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.dark .ask-page-textarea {
  border-color: #334155;
  background: #0f172a;
  color: #e2e8f0;
}

.ask-page-counter {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.ask-page-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ask-page-media-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.ask-page-media-btn:hover {
  border-color: rgba(48, 156, 232, 0.42);
  background: #f1f5f9;
  transform: translateY(-1px);
}

.ask-page-media-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.ask-page-media-btn .chat-action-icon-img {
  width: 17px;
  height: 17px;
}

.ask-page-media-btn.is-recording {
  border-style: solid;
  border-color: rgba(220, 38, 38, 0.45);
  background: #fee2e2;
  color: #b91c1c;
}

.ask-page-media-btn.is-recording .chat-action-icon-img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(2229%) hue-rotate(345deg) brightness(83%) contrast(103%);
}

.dark .ask-page-media-btn {
  border-color: #334155;
  background: #111827;
  color: #cbd5e1;
}

.dark .ask-page-media-btn:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: #162132;
}

.dark .ask-page-media-btn.is-recording {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.ask-page-privacy {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask-page-privacy p {
  flex: 1;
  font-size: 12px;
  color: #1d4ed8;
}

.ask-page-privacy button {
  font-size: 12px;
  font-weight: 700;
  color: #309ce8;
}

.dark .ask-page-privacy {
  border-color: #1e3a8a;
  background: rgba(30, 58, 138, 0.2);
}

.dark .ask-page-privacy p {
  color: #bfdbfe;
}

.ask-page-send-btn {
  height: 50px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(140deg, #309ce8, #167fc8);
  box-shadow: 0 14px 24px -18px rgba(15, 23, 42, 0.7);
}

/* Ask page redesign v3 */
#askQuestionView .ask-page-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 18px;
  background:
    radial-gradient(circle at 14% -2%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(214, 180, 118, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(236, 245, 255, 0.84), rgba(232, 241, 252, 0.65));
}

#askQuestionView .ask-page-intro {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(186, 230, 253, 0.32);
  background:
    linear-gradient(145deg, rgba(7, 29, 52, 0.95), rgba(8, 38, 66, 0.92));
  box-shadow: 0 24px 36px -30px rgba(2, 6, 23, 0.94);
  padding: 16px 14px 14px;
  margin-bottom: 0;
}

#askQuestionView .ask-page-intro::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}

#askQuestionView .ask-page-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(214, 180, 118, 0.42);
  background: linear-gradient(145deg, rgba(5, 22, 41, 0.92), rgba(8, 31, 56, 0.88));
  margin: 0 auto 10px;
}

#askQuestionView .ask-page-icon img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 10px 16px rgba(14, 165, 233, 0.34));
}

#askQuestionView .ask-page-intro h2 {
  margin: 0;
  font-size: clamp(22px, 4.4vw, 28px);
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
}

#askQuestionView .ask-page-intro p {
  margin: 7px auto 0;
  max-width: 92%;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(226, 232, 240, 0.94);
}

#askQuestionView .ask-page-target {
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, rgba(236, 249, 255, 0.96), rgba(224, 242, 254, 0.82));
  padding: 10px 11px;
  margin-bottom: 0;
}

#askQuestionView .ask-page-target-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 18px -14px rgba(56, 189, 248, 0.9);
}

#askQuestionView .ask-page-target-copy h3 {
  font-size: 15px;
}

#askQuestionView .ask-page-target-copy p {
  font-size: 12px;
}

#askQuestionView .ask-page-form {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 36px -32px rgba(15, 23, 42, 0.85);
  padding: 12px;
  gap: 11px;
}

#askQuestionView .ask-mode-hint {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.5);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.9));
  color: #0c4a6e;
  padding: 9px 12px 9px 10px;
  margin-top: -1px;
  font-size: 12px;
  line-height: 1.7;
}

#askQuestionView .ask-mode-hint::before {
  content: "⚡";
  margin-left: 6px;
}

#askQuestionView .ask-page-textarea-wrap {
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#askQuestionView .ask-page-textarea-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

#askQuestionView .ask-page-textarea {
  min-height: 230px;
  border: 0;
  background: transparent;
  padding: 14px 14px 34px;
  font-size: 14px;
  line-height: 1.85;
}

#askQuestionView .ask-page-textarea:focus {
  border: 0;
  box-shadow: none;
}

#askQuestionView .ask-page-counter {
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 3px 8px;
}

#askQuestionView .ask-page-media-grid {
  gap: 9px;
}

#askQuestionView .ask-page-media-btn {
  height: 46px;
  border-radius: 13px;
  border: 1px dashed rgba(125, 211, 252, 0.72);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

#askQuestionView .ask-page-media-btn:hover {
  border-color: rgba(14, 165, 233, 0.62);
  background: linear-gradient(145deg, rgba(239, 246, 255, 1), rgba(224, 242, 254, 0.95));
  box-shadow: 0 12px 20px -18px rgba(14, 165, 233, 0.92);
  transform: translateY(-1px);
}

#askQuestionView .ask-page-media-btn .chat-action-icon-img {
  width: 18px;
  height: 18px;
}

#askQuestionView .ask-page-privacy {
  border-radius: 13px;
  border: 1px solid rgba(186, 230, 253, 0.6);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.9));
  padding: 9px 10px;
}

#askQuestionView .ask-page-privacy p {
  font-size: 12px;
  font-weight: 700;
  color: #075985;
}

@keyframes faqih-send-shine {
  0% { right: -44%; }
  100% { right: 116%; }
}

#askQuestionView .ask-page-send-btn {
  position: relative;
  overflow: hidden;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(214, 180, 118, 0.3);
  background: linear-gradient(135deg, #0ea5e9, #0284c7 52%, #0369a1);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px -22px rgba(2, 132, 199, 0.95);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

#askQuestionView .ask-page-send-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  right: -44%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

#askQuestionView .ask-page-send-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 22px 34px -24px rgba(2, 132, 199, 1);
}

#askQuestionView .ask-page-send-btn:hover::after {
  animation: faqih-send-shine 720ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

#askQuestionView .ask-page-send-btn:active {
  transform: translateY(-1px) scale(0.992);
}

.dark #askQuestionView .ask-page-main {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 94% 8%, rgba(214, 180, 118, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(8, 18, 31, 0.96), rgba(10, 20, 35, 0.99));
}

.dark #askQuestionView .ask-page-intro {
  border-color: rgba(71, 85, 105, 0.72);
  background: linear-gradient(145deg, rgba(6, 20, 36, 0.96), rgba(7, 26, 45, 0.94));
}

.dark #askQuestionView .ask-page-target {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(145deg, rgba(8, 21, 37, 0.94), rgba(13, 30, 50, 0.9));
}

.dark #askQuestionView .ask-page-form {
  border-color: rgba(51, 65, 85, 0.82);
  background: rgba(7, 14, 27, 0.93);
}

.dark #askQuestionView .ask-mode-hint {
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(145deg, rgba(8, 21, 37, 0.9), rgba(12, 30, 50, 0.86));
  color: #bae6fd;
}

.dark #askQuestionView .ask-page-textarea-wrap {
  border-color: rgba(51, 65, 85, 0.88);
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.92), rgba(12, 24, 41, 0.9));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.72);
}

.dark #askQuestionView .ask-page-textarea {
  color: #e2e8f0;
}

.dark #askQuestionView .ask-page-counter {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(51, 65, 85, 0.9);
}

.dark #askQuestionView .ask-page-media-btn {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(10, 20, 35, 0.9));
  color: #cbd5e1;
}

.dark #askQuestionView .ask-page-media-btn:hover {
  border-color: rgba(125, 211, 252, 0.52);
  background: linear-gradient(145deg, rgba(12, 24, 41, 0.94), rgba(14, 30, 52, 0.92));
}

.dark #askQuestionView .ask-page-privacy {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(145deg, rgba(8, 21, 37, 0.9), rgba(12, 30, 50, 0.86));
}

.dark #askQuestionView .ask-page-privacy p {
  color: #bae6fd;
}

@media (max-width: 520px) {
  #askQuestionView .ask-page-main {
    padding: 14px 10px 16px;
    gap: 10px;
  }

  #askQuestionView .ask-page-intro {
    border-radius: 18px;
    padding: 14px 10px 12px;
  }

  #askQuestionView .ask-page-intro h2 {
    font-size: 22px;
  }

  #askQuestionView .ask-page-intro p {
    max-width: 100%;
    font-size: 12px;
  }

  #askQuestionView .ask-page-form {
    padding: 10px;
  }

  #askQuestionView .ask-page-textarea {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #askQuestionView .ask-page-send-btn::after {
    animation: none !important;
  }
}

.dark .chat-room-header {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 30, 48, 0.92));
  border-color: rgba(125, 211, 252, 0.3);
}

.chat-room-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-room-back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.chat-room-menu {
  display: none !important;
}

.dark .chat-room-back {
  color: #cbd5e1;
  background: #1e293b;
  border-color: rgba(100, 116, 139, 0.58);
}

.chat-room-sheikh {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-room-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(48, 156, 232, 0.25);
  flex-shrink: 0;
}

.chat-room-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-room-online {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #ffffff;
  bottom: 1px;
  left: 1px;
}

.dark .chat-room-online {
  border-color: #0f172a;
}

.chat-room-sheikh-text h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  max-width: min(58vw, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-sheikh-text p {
  font-size: 11px;
  font-weight: 700;
  color: #309ce8;
}

.chat-privacy-note {
  margin: 0 14px 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background:
    linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(224, 242, 254, 0.85));
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px -22px rgba(2, 132, 199, 0.75);
}

.chat-privacy-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.26));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-privacy-copy {
  flex: 1;
  min-width: 0;
}

.chat-privacy-copy p {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.chat-privacy-copy span {
  font-size: 11px;
  color: #334155;
}

.dark .chat-privacy-copy span {
  color: #94a3b8;
}

.chat-privacy-note button {
  height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.45);
}

.dark .chat-privacy-note {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.5), rgba(15, 23, 42, 0.6));
}

.dark .chat-privacy-copy p {
  color: #dbeafe;
}

.dark .chat-privacy-note button {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(8, 47, 73, 0.5);
}

.chat-room-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.08), transparent 40%), radial-gradient(circle at 82% 12%, rgba(15, 23, 42, 0.04), transparent 34%);
}

.dark .chat-room-feed {
  background-image: radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.11), transparent 40%), radial-gradient(circle at 82% 12%, rgba(30, 41, 59, 0.35), transparent 34%);
}
.sheikh-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 2px;
  max-height: 184px;
  overflow-y: auto;
  border-bottom: 1px solid #e2e8f0;
}

.dark .sheikh-chat-list {
  border-bottom-color: #1e293b;
}

.sheikh-chat-tab-view {
  margin: -16px -16px 0;
}

.sheikh-conversations-shell {
  position: relative;
  background: #f8fafc;
  overflow: hidden;
  min-height: calc(100vh - 136px);
}

.dark .sheikh-conversations-shell {
  background: #0b1220;
}

.sheikh-conversations-list-panel {
  min-height: calc(100vh - 136px);
  padding-bottom: 86px;
}

.sheikh-conversations-topbar {
  height: 62px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #047857;
  color: #ffffff;
}

.dark .sheikh-conversations-topbar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.sheikh-conversations-topbar h2 {
  font-size: 18px;
  font-weight: 800;
}

.sheikh-conversations-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.sheikh-conversations-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.dark .sheikh-conversations-icon {
  background: #1e293b;
}

.dark .sheikh-conversations-icon-img {
  filter: brightness(0) saturate(100%) invert(89%) sepia(10%) saturate(388%) hue-rotate(173deg) brightness(95%) contrast(90%);
}

.sheikh-conversations-search-wrap {
  padding: 10px;
}

.sheikh-conversations-search {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 13px;
}

.sheikh-conversations-search:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dark .sheikh-conversations-search {
  border-color: #334155;
  background: #0b1220;
  color: #f8fafc;
}

.sheikh-conversations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 272px);
  overflow-y: auto;
  padding: 0 10px 10px;
}

.sheikh-conversation-card {
  position: relative;
  width: 100%;
  min-height: 76px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  box-shadow: 0 8px 14px -16px rgba(15, 23, 42, 0.48);
}

.sheikh-conversation-card.new {
  border-right: 4px solid #10b981;
  background: #ecfdf5;
}

.sheikh-conversation-card.active {
  border-right: 4px solid #047857;
  background: #d1fae5;
}

.dark .sheikh-conversation-card {
  border-color: #334155;
  background: #0b1220;
}

.dark .sheikh-conversation-card.new,
.dark .sheikh-conversation-card.active {
  background: rgba(4, 120, 87, 0.2);
}

.sheikh-conversation-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.sheikh-conversation-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.14);
  transform-origin: center 36%;
  background: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.sheikh-conversation-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  left: 0;
  bottom: 1px;
}

.sheikh-conversation-dot.online {
  background: #10b981;
}

.sheikh-conversation-dot.offline {
  background: #94a3b8;
}

.dark .sheikh-conversation-dot {
  border-color: #0f172a;
}

.sheikh-conversation-copy {
  flex: 1;
  min-width: 0;
}

.sheikh-conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.sheikh-conversation-top strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheikh-conversation-top span {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

.dark .sheikh-conversation-top strong {
  color: #e2e8f0;
}

.sheikh-conversation-copy p {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheikh-conversation-copy .sheikh-conversation-profile {
  font-size: 11px;
  color: #0f766e;
  margin-bottom: 2px;
}

.dark .sheikh-conversation-copy p {
  color: #94a3b8;
}

.dark .sheikh-conversation-copy .sheikh-conversation-profile {
  color: #5eead4;
}

.sheikh-conversation-meta {
  min-width: 22px;
  display: inline-flex;
  justify-content: flex-end;
}

.sheikh-conversation-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.sheikh-conversation-seen {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
}

.sheikh-conversation-pill {
  position: absolute;
  left: 10px;
  bottom: 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 7px;
}

.dark .sheikh-conversation-pill {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.3);
}

.sheikh-conversations-fab {
  position: fixed;
  left: 16px;
  bottom: 88px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #059669;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 16px 24px -14px rgba(5, 150, 105, 0.7);
}

.dark .sheikh-conversations-fab {
  background: #10b981;
  color: #052e25;
}

.sheikh-chat-thread-panel {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.sheikh-chat-thread-panel.hidden {
  display: none;
}

.dark .sheikh-chat-thread-panel {
  background: #0b1220;
}

.sheikh-thread-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.dark .sheikh-thread-header {
  background: #0f172a;
  border-bottom-color: #1e293b;
}

.sheikh-thread-back,
.sheikh-thread-menu {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dark .sheikh-thread-back,
.dark .sheikh-thread-menu {
  background: #1e293b;
  color: #e2e8f0;
}

.sheikh-chat-thread-panel .chat-room-feed {
  padding: 12px 12px 80px;
}

.sheikh-chat-thread-panel .chat-room-composer {
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
}

.dark .sheikh-chat-thread-panel .chat-room-composer {
  border-top-color: #1e293b;
}

.sheikh-chat-room-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.dark .sheikh-chat-room-btn {
  border-color: #334155;
  background: #0f172a;
}

.sheikh-chat-room-btn.active {
  border-color: rgba(48, 156, 232, 0.55);
  background: rgba(48, 156, 232, 0.12);
}

.sheikh-chat-room-btn.has-new {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.sheikh-chat-room-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.14);
  transform-origin: center 36%;
  border: 1px solid rgba(48, 156, 232, 0.25);
  flex-shrink: 0;
}

.sheikh-chat-room-copy {
  flex: 1;
  min-width: 0;
}

.sheikh-chat-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sheikh-chat-room-top strong {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheikh-chat-room-top span {
  font-size: 10px;
  color: #94a3b8;
  flex-shrink: 0;
}

.sheikh-chat-room-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sheikh-chat-room-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  color: #ffffff;
  background: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheikh-chat-room-copy p {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dark .sheikh-chat-room-copy p {
  color: #94a3b8;
}

.chat-empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 10px;
}

.dark .chat-empty-state {
  border-color: #334155;
  background: #0f172a;
  color: #94a3b8;
}

.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
}

.chat-msg-row.user {
  margin-right: auto;
  flex-direction: row-reverse;
}

.chat-msg-row.sheikh {
  margin-left: auto;
}

.chat-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg-avatar.user {
  background: #e2e8f0;
  color: #ffffff;
  font-size: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.chat-msg-avatar.user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.14);
  transform-origin: center 36%;
}

.chat-msg-avatar.sheikh {
  overflow: hidden;
  border: 1px solid rgba(48, 156, 232, 0.26);
}

.chat-msg-avatar.sheikh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-bundle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg-bundle.user {
  align-items: flex-end;
}

.chat-msg-bubble {
  font-size: 14px;
  line-height: 1.75;
  padding: 11px 13px;
  border-radius: 16px;
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.42);
}

.chat-msg-media-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.chat-msg-media-image {
  display: block;
  width: min(68vw, 250px);
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
}

.chat-msg-media-audio {
  display: block;
  width: min(72vw, 260px);
  max-width: 100%;
  height: 36px;
}

.chat-msg-media-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.95;
}

.chat-msg-bubble.sheikh {
  border-top-right-radius: 4px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dark .chat-msg-bubble.sheikh {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.34);
}

.chat-msg-bubble.user {
  border-top-left-radius: 4px;
  color: #ffffff;
  background: linear-gradient(148deg, #2c8bd1, #1f6fb6);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.chat-msg-bubble.user .chat-msg-media-link {
  border-color: rgba(255, 255, 255, 0.34);
}

.chat-msg-bubble.user .chat-msg-media-image {
  background: rgba(255, 255, 255, 0.08);
}

.chat-msg-time {
  font-size: 10px;
  color: #94a3b8;
}

.chat-msg-time.user {
  margin-left: 2px;
}

.chat-msg-time.sheikh {
  margin-right: 2px;
}

.chat-room-composer {
  margin: auto 14px calc(env(safe-area-inset-bottom) + 12px);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 32px -28px rgba(15, 23, 42, 0.8);
  position: sticky;
  bottom: 0;
  z-index: 12;
}

.chat-thread-actions {
  margin: 0 14px 8px;
  display: grid;
  gap: 9px;
}

.chat-thread-close-btn {
  min-height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.chat-thread-lock-notice {
  border-radius: 13px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(224, 242, 254, 0.84));
  color: #0c4a6e;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
}

.chat-thread-lock-notice[data-lock-state="pending"] {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.9));
  color: #92400e;
}

.chat-thread-lock-notice[data-lock-state="manual"],
.chat-thread-lock-notice[data-lock-state="auto"] {
  border-color: rgba(239, 68, 68, 0.26);
  background: linear-gradient(145deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.9));
  color: #991b1b;
}

.dark .chat-room-composer {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.72));
  border-color: rgba(56, 189, 248, 0.28);
}

.dark .chat-thread-close-btn {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(145deg, #dc2626, #991b1b);
}

.dark .chat-thread-lock-notice {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(8, 47, 73, 0.38);
  color: #bae6fd;
}

.dark .chat-thread-lock-notice[data-lock-state="pending"] {
  border-color: rgba(250, 204, 21, 0.38);
  background: rgba(113, 63, 18, 0.46);
  color: #fde68a;
}

.dark .chat-thread-lock-notice[data-lock-state="manual"],
.dark .chat-thread-lock-notice[data-lock-state="auto"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.38);
  color: #fecaca;
}

.chat-room-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-action-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}

.chat-send-btn .chat-action-icon-img.send {
  width: 19px;
  height: 19px;
  filter: none;
}

.dark .chat-action-icon-img {
  filter: brightness(0) saturate(100%) invert(86%) sepia(9%) saturate(447%) hue-rotate(174deg) brightness(98%) contrast(91%);
}

.dark .chat-send-btn .chat-action-icon-img.send {
  filter: none;
}

.chat-compose-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.36);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.chat-compose-icon:hover {
  background: #e2e8f0;
  border-color: rgba(48, 156, 232, 0.38);
  transform: translateY(-1px);
}

.chat-compose-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-compose-icon.is-recording {
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.chat-compose-icon.is-recording .chat-action-icon-img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(2229%) hue-rotate(345deg) brightness(83%) contrast(103%);
}

.dark .chat-compose-icon {
  background: #1e293b;
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.32);
}

.dark .chat-compose-icon:hover {
  background: #253449;
  border-color: rgba(125, 211, 252, 0.45);
}

.dark .chat-compose-icon.is-recording {
  background: rgba(153, 27, 27, 0.4);
  color: #fecaca;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.24);
}

.dark .chat-compose-icon.is-recording .chat-action-icon-img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(14%) saturate(1030%) hue-rotate(303deg) brightness(102%) contrast(99%);
}

.chat-compose-input-wrap {
  position: relative;
  flex: 1;
}

.chat-compose-input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 14px 0 42px;
  font-size: 14px;
  outline: none;
}

.chat-compose-input:focus {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.chat-compose-input:disabled {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: not-allowed;
}

.dark .chat-compose-input {
  border-color: #334155;
  background: #111827;
  color: #e2e8f0;
}

.dark .chat-compose-input:disabled {
  color: #64748b;
  background: #0b1220;
}

.chat-compose-mood {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(140deg, #309ce8, #167fc8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 20px -14px rgba(15, 23, 42, 0.65);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.chat-send-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.2);
  cursor: not-allowed;
  box-shadow: none;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch span {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.2s ease;
}

.dark .settings-switch span {
  background: #334155;
}

.settings-switch span::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: 0.2s ease;
}

.settings-switch input:checked + span {
  background: #309ce8;
}

.settings-switch input:checked + span::after {
  transform: translateX(-20px);
}

.fatwa-tab-shell {
  min-height: 100%;
  padding-bottom: 84px;
}

.fatwa-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
}

.dark .fatwa-topbar {
  border-bottom-color: #1e293b;
  background: rgba(15, 23, 42, 0.94);
}

.fatwa-topbar-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
}

.fatwa-topbar-row h1 {
  font-size: 20px;
  font-weight: 800;
  color: #047857;
}

.dark .fatwa-topbar-row h1 {
  color: #6ee7b7;
}

.fatwa-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
}

.dark .fatwa-topbar-icon {
  background: #1e293b;
  color: #cbd5e1;
}

.fatwa-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 14px 30px;
}

.fatwa-search-wrap {
  margin-bottom: 14px;
}

.fatwa-search-input {
  width: 100%;
  height: 46px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.fatwa-search-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.dark .fatwa-search-input {
  border-color: #334155;
  background: #0b1220;
  color: #f8fafc;
}

.fatwa-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.fatwa-category-btn {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.fatwa-category-btn.active {
  border-color: #047857;
  background: #047857;
  color: #ffffff;
}

.dark .fatwa-category-btn {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

.dark .fatwa-category-btn.active {
  border-color: #059669;
  background: #059669;
  color: #ecfeff;
}

.fatwa-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fatwa-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 22px -20px rgba(15, 23, 42, 0.55);
}

.dark .fatwa-card {
  border-color: #334155;
  background: #0f172a;
}

.fatwa-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fatwa-badge {
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
}

.fatwa-badge.featured {
  background: #047857;
  color: #ffffff;
}

.fatwa-top-flag {
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
}

.fatwa-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.7;
}

.dark .fatwa-title {
  color: #e2e8f0;
}

.fatwa-answer {
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.dark .fatwa-answer {
  color: #94a3b8;
}

.fatwa-card-foot {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dark .fatwa-card-foot {
  border-top-color: #1e293b;
}

.fatwa-sheikh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fatwa-sheikh img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d1fae5;
}

.fatwa-sheikh span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.dark .fatwa-sheikh span {
  color: #cbd5e1;
}

.fatwa-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.fatwa-more-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}

.fatwa-more-btn {
  border: 1px solid #d1fae5;
  border-radius: 999px;
  background: #ffffff;
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
}

.dark .fatwa-more-btn {
  border-color: #14532d;
  background: #0f172a;
  color: #6ee7b7;
}

.fatwa-empty-card {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 20px 12px;
}

.dark .fatwa-empty-card {
  border-color: #334155;
  background: #0f172a;
  color: #94a3b8;
}

.sheikh-publish-shell {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 24px -24px rgba(15, 23, 42, 0.7);
}

.dark .sheikh-publish-shell {
  border-color: #334155;
  background: #0f172a;
}

.sheikh-publish-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sheikh-publish-head p {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 12px;
}

.dark .sheikh-publish-head p {
  color: #94a3b8;
}

.sheikh-publish-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheikh-publish-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.dark .sheikh-publish-label {
  color: #cbd5e1;
}

.sheikh-publish-input,
.sheikh-publish-textarea,
.sheikh-publish-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.sheikh-publish-input:focus,
.sheikh-publish-textarea:focus,
.sheikh-publish-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.14);
}

.dark .sheikh-publish-input,
.dark .sheikh-publish-textarea,
.dark .sheikh-publish-select {
  border-color: #334155;
  background: #0b1220;
  color: #f8fafc;
}

.sheikh-publish-textarea {
  min-height: 130px;
  resize: vertical;
}

.sheikh-publish-btn {
  margin-top: 4px;
  height: 46px;
  border-radius: 12px;
  background: #047857;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  box-shadow: 0 14px 26px -18px rgba(4, 120, 87, 0.8);
}

.sheikh-publish-btn:disabled {
  opacity: 0.55;
}

.sheikh-published-wrap {
  margin-top: 14px;
}

.sheikh-fatwa-item {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 12px;
}

.dark .sheikh-fatwa-item {
  border-color: #334155;
  background: #0f172a;
}

.sheikh-fatwa-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sheikh-fatwa-chip {
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
}

.sheikh-fatwa-date {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.sheikh-fatwa-item h4 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  margin-bottom: 6px;
}

.sheikh-fatwa-item p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.dark .sheikh-fatwa-item p {
  color: #94a3b8;
}

.sheikh-fatwa-item-foot {
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.dark .sheikh-fatwa-item-foot {
  border-top-color: #1e293b;
}

/* Sheikh Dashboard - Brand Refresh */
.sheikh-dashboard-shell {
  background:
    linear-gradient(180deg, rgba(8, 31, 53, 0.22), rgba(8, 18, 31, 0.76)),
    url("assets/welcome-bg.png") center/cover no-repeat fixed;
}

.sheikh-hero-header {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-top: 0;
  background: linear-gradient(150deg, rgba(7, 33, 57, 0.94), rgba(6, 24, 44, 0.95));
  box-shadow: 0 16px 24px -22px rgba(2, 6, 23, 0.9);
}

.sheikh-hero-header::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 64%);
  pointer-events: none;
}

.sheikh-header-grid {
  min-height: 58px;
}

.sheikh-header-main {
  flex: 1;
}

.sheikh-hero-header h1 {
  color: #f8fafc;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
}

.sheikh-hero-header #sheikhWelcomeName {
  color: #cbd5e1 !important;
  font-size: 11px;
}

.sheikh-brand-badge {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(14, 165, 233, 0.12) !important;
}

.sheikh-brand-wordmark-wrap {
  padding: 6px 4px 0;
  display: flex;
  justify-content: center;
}

.sheikh-brand-wordmark {
  width: min(132px, 38vw);
  max-width: 100%;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 8px 14px rgba(14, 165, 233, 0.24));
}

.sheikh-brand-wordmark-inline {
  width: 58px;
  min-width: 58px;
  margin-top: -1px;
}

.sheikh-availability-pill {
  min-height: 40px;
  padding-inline: 10px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .sheikh-brand-wordmark-inline {
    width: 50px;
    min-width: 50px;
  }

  .sheikh-availability-pill {
    padding-inline: 8px;
  }
}

.sheikh-dashboard-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%);
  border-radius: 20px;
}

.sheikh-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheikh-home-insights {
  display: grid;
  gap: 12px;
}

.sheikh-response-card {
  border-radius: 16px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: 0 20px 30px -24px rgba(2, 6, 23, 0.72);
  padding: 14px 14px 12px;
}

.sheikh-response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.sheikh-response-head h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.sheikh-response-head span {
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
}

.sheikh-response-hint {
  color: #475569;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.sheikh-response-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.sheikh-response-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.35s ease;
}

.sheikh-response-last {
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.sheikh-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sheikh-quick-action-btn {
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.34);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  min-height: 64px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 16px 24px -24px rgba(2, 6, 23, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sheikh-quick-action-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
}

.dark .sheikh-quick-action-icon {
  filter: brightness(0) saturate(100%) invert(88%) sepia(9%) saturate(379%) hue-rotate(176deg) brightness(95%) contrast(92%);
}

.sheikh-quick-action-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 28px -24px rgba(2, 6, 23, 0.82);
}

.dark .sheikh-response-card {
  border-color: rgba(51, 65, 85, 0.88);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.92));
}

.dark .sheikh-response-head h3 {
  color: #e2e8f0;
}

.dark .sheikh-response-head span {
  border-color: rgba(125, 211, 252, 0.46);
  background: rgba(8, 47, 73, 0.35);
  color: #bae6fd;
}

.dark .sheikh-response-hint,
.dark .sheikh-response-last {
  color: #94a3b8;
}

.dark .sheikh-response-track {
  background: #1e293b;
}

.dark .sheikh-quick-action-btn {
  border-color: rgba(51, 65, 85, 0.85);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

.dark .sheikh-quick-action-btn:hover {
  border-color: rgba(125, 211, 252, 0.58);
}

.sheikh-stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.34) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)) !important;
  box-shadow: 0 18px 28px -24px rgba(2, 6, 23, 0.72) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sheikh-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px -24px rgba(2, 6, 23, 0.82) !important;
}

.dark .sheikh-stat-card {
  border-color: rgba(51, 65, 85, 0.85) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.92)) !important;
}

#sheikhHomeList > article,
#sheikhQuestionsList > article {
  border-color: rgba(186, 230, 253, 0.32) !important;
  box-shadow: 0 16px 24px -24px rgba(2, 6, 23, 0.66) !important;
}

.sheikh-fatwa-editor-state {
  border: 1px solid rgba(14, 165, 233, 0.34);
  background: rgba(14, 165, 233, 0.1);
  color: #075985;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.dark .sheikh-fatwa-editor-state {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(14, 116, 144, 0.18);
  color: #bae6fd;
}

.sheikh-publish-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sheikh-publish-cancel-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.dark .sheikh-publish-cancel-btn {
  border-color: #334155;
  background: #0f172a;
  color: #cbd5e1;
}

.sheikh-fatwa-item.editing {
  border-color: rgba(14, 165, 233, 0.48);
  box-shadow: 0 16px 26px -24px rgba(14, 165, 233, 0.6);
}

.sheikh-fatwa-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sheikh-fatwa-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sheikh-fatwa-action {
  height: 30px;
  border-radius: 8px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
}

.sheikh-fatwa-action.edit {
  border-color: rgba(14, 165, 233, 0.44);
  color: #0369a1;
  background: rgba(14, 165, 233, 0.08);
}

.sheikh-fatwa-action.delete {
  border-color: rgba(239, 68, 68, 0.38);
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
}

.dark .sheikh-fatwa-action {
  border-color: #334155;
  background: #0b1220;
  color: #cbd5e1;
}

.dark .sheikh-fatwa-action.edit {
  border-color: rgba(14, 165, 233, 0.42);
  color: #7dd3fc;
  background: rgba(8, 47, 73, 0.35);
}

.dark .sheikh-fatwa-action.delete {
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.32);
}

.marja-select-wrap {
  position: relative;
}

.marja-select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(14, 165, 233, 0.7);
  border-bottom: 2px solid rgba(14, 165, 233, 0.7);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.marja-select-field {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(14, 165, 233, 0.28) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  background-image:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(59, 130, 246, 0.05)),
    url("assets/nav-fatwa.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  background-size: 100% 100%, 18px 18px;
  box-shadow: 0 16px 26px -22px rgba(14, 165, 233, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding-right: 42px !important;
  padding-left: 32px !important;
}

.marja-select-field:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22), 0 16px 26px -22px rgba(14, 165, 233, 0.72) !important;
}

.dark .marja-select-field {
  border-color: rgba(125, 211, 252, 0.35) !important;
  background-color: rgba(15, 23, 42, 0.86) !important;
  background-image:
    linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(15, 23, 42, 0.18)),
    url("assets/nav-fatwa.svg");
  box-shadow: 0 20px 30px -24px rgba(2, 132, 199, 0.8), inset 0 1px 0 rgba(226, 232, 240, 0.08);
}

.dark .marja-select-wrap::after {
  border-right-color: rgba(125, 211, 252, 0.9);
  border-bottom-color: rgba(125, 211, 252, 0.9);
}

/* Restore legacy-like bottom navigation look for questioner app */
.app-bottom-nav {
  width: min(calc(100% - 18px), 430px);
  margin-right: auto;
  margin-left: auto;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 26px 38px -32px rgba(15, 23, 42, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  overflow: hidden;
}

.dark .app-bottom-nav {
  border-color: rgba(100, 116, 139, 0.58);
  background: rgba(15, 23, 42, 0.62);
  box-shadow:
    0 26px 38px -32px rgba(2, 6, 23, 0.95),
    inset 0 1px 0 rgba(148, 163, 184, 0.16);
}

.questioner-tab-btn {
  min-width: 64px;
  min-height: 58px;
  padding: 7px 10px;
  gap: 3px;
  border-radius: 999px;
  color: #475569;
}

.questioner-tab-icon-wrap {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.questioner-tab-icon-img,
.questioner-tab-icon-home {
  opacity: 0.88;
  filter: brightness(0) saturate(100%) invert(31%) sepia(10%) saturate(1014%) hue-rotate(176deg) brightness(92%) contrast(90%);
}

.questioner-tab-icon-img {
  width: 23px;
  height: 23px;
}

.questioner-tab-icon-home {
  width: 25px;
  height: 25px;
}

.questioner-tab-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.questioner-tab-btn::before {
  inset: 4px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 22px -18px rgba(15, 23, 42, 0.56);
  opacity: 0;
  transform: scale(0.92);
}

.questioner-tab-btn.active {
  color: #0c4a6e;
}

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

.questioner-tab-btn.active .questioner-tab-icon-img,
.questioner-tab-btn.active .questioner-tab-icon-home {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(39%) sepia(80%) saturate(953%) hue-rotate(163deg) brightness(90%) contrast(95%);
  transform: none;
}

.questioner-tab-btn.active .questioner-tab-label {
  color: #0c4a6e;
  font-weight: 800;
}

.dark .questioner-tab-btn {
  color: #cbd5e1;
}

.dark .questioner-tab-btn::before {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 22px -18px rgba(2, 6, 23, 0.92);
}

.dark .questioner-tab-icon-img,
.dark .questioner-tab-icon-home {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(674%) hue-rotate(176deg) brightness(96%) contrast(86%);
}

.dark .questioner-tab-btn.active {
  color: #7dd3fc;
}

.dark .questioner-tab-btn.active .questioner-tab-icon-img,
.dark .questioner-tab-btn.active .questioner-tab-icon-home {
  filter: brightness(0) saturate(100%) invert(86%) sepia(30%) saturate(4138%) hue-rotate(164deg) brightness(106%) contrast(98%);
}

.dark .questioner-tab-btn.active .questioner-tab-label {
  color: #7dd3fc;
}

@media (max-width: 760px) {
  .app-bottom-nav {
    width: calc(100% - 12px);
    border-radius: 26px;
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .questioner-tab-btn {
    min-width: 56px;
    min-height: 52px;
    padding: 4px 7px;
  }

  .questioner-tab-btn::before {
    inset: 3px 2px;
  }

  .questioner-tab-label {
    font-size: 10px;
  }
}

.fatwa-tab-shell {
  min-height: 100%;
  padding-bottom: 104px;
  background:
    radial-gradient(circle at top, rgba(232, 201, 142, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f5ee 0%, #f4efe4 42%, #f7f4ed 100%);
}

.dark .fatwa-tab-shell {
  background:
    radial-gradient(circle at top, rgba(214, 173, 96, 0.16), transparent 30%),
    linear-gradient(180deg, #08101c 0%, #0c1727 46%, #0f1d30 100%);
}

.fatwa-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 12px 0;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

.fatwa-topbar-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(224, 199, 144, 0.34);
  background:
    linear-gradient(145deg, rgba(13, 26, 45, 0.98), rgba(9, 20, 35, 0.95)),
    #0b1626;
  box-shadow:
    0 24px 44px -26px rgba(15, 23, 42, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fatwa-topbar-pattern,
.fatwa-topbar-noor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fatwa-topbar-pattern {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    url("assets/welcome-bg.png") center/cover no-repeat;
  opacity: 0.12;
}

.fatwa-topbar-noor {
  inset: -18% 10% auto;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(237, 211, 154, 0.32), rgba(237, 211, 154, 0) 72%);
  filter: blur(6px);
}

.fatwa-topbar-row,
.fatwa-hero-stats {
  position: relative;
  z-index: 1;
}

.fatwa-topbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fatwa-brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.fatwa-brand-badge {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 28px -24px rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
}

.fatwa-brand-mark {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(237, 211, 154, 0.22));
}

.fatwa-brand-copy {
  min-width: 0;
}

.fatwa-brand-eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e8d7ae;
}

.fatwa-brand-copy h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 900;
  color: #fffaf0;
}

.fatwa-brand-copy p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(241, 245, 249, 0.84);
}

.fatwa-library-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 215, 174, 0.34);
  background: rgba(239, 225, 188, 0.12);
  color: #f9e9c5;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fatwa-library-pill-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.fatwa-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.fatwa-hero-stat {
  padding: 13px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px);
  text-align: center;
}

.fatwa-hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #fffdf8;
}

.fatwa-hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.82);
}

.fatwa-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 14px 30px;
}

.fatwa-filter-shell {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(224, 199, 144, 0.18);
  background: rgba(255, 251, 243, 0.78);
  box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(16px);
}

.dark .fatwa-filter-shell {
  border-color: rgba(224, 199, 144, 0.16);
  background: rgba(10, 20, 35, 0.72);
}

.fatwa-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.fatwa-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
}

.fatwa-search-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.fatwa-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(224, 199, 144, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.88));
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fatwa-search-input:focus {
  border-color: rgba(208, 166, 83, 0.68);
  box-shadow:
    0 0 0 4px rgba(208, 166, 83, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dark .fatwa-search-input {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(9, 18, 31, 0.92), rgba(12, 24, 40, 0.88));
  color: #f8fafc;
}

.fatwa-category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.fatwa-category-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(224, 199, 144, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fatwa-category-btn.active {
  border-color: rgba(217, 176, 95, 0.72);
  background: linear-gradient(135deg, #0d2038, #162b47);
  color: #fffaf0;
  box-shadow: 0 16px 24px -22px rgba(13, 32, 56, 0.92);
}

.dark .fatwa-category-btn {
  border-color: rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.fatwa-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fatwa-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(224, 199, 144, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 239, 0.92));
  box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.4);
}

.fatwa-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    url("assets/welcome-bg.png") center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.fatwa-card.featured {
  border-color: rgba(216, 178, 96, 0.34);
  box-shadow:
    0 26px 46px -34px rgba(15, 23, 42, 0.44),
    0 0 0 1px rgba(216, 178, 96, 0.08);
}

.dark .fatwa-card {
  border-color: rgba(224, 199, 144, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 21, 35, 0.96), rgba(13, 25, 41, 0.92));
}

.fatwa-card-badges {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.fatwa-badge,
.fatwa-date-chip,
.fatwa-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.fatwa-badge {
  min-height: 30px;
  padding: 0 12px;
  background: rgba(13, 32, 56, 0.08);
  color: #0d2038;
  font-size: 11px;
}

.fatwa-badge.featured {
  background: linear-gradient(135deg, #d7b26a, #f2e2b8);
  color: #33230b;
}

.fatwa-date-chip {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 10px;
}

.fatwa-date-chip.accent {
  border-color: rgba(215, 178, 106, 0.4);
  background: rgba(244, 229, 193, 0.84);
  color: #7c5a17;
}

.dark .fatwa-date-chip {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(71, 85, 105, 0.5);
  color: #cbd5e1;
}

.fatwa-title,
.fatwa-answer,
.fatwa-card-foot {
  position: relative;
  z-index: 1;
}

.fatwa-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 900;
  color: #10233a;
}

.dark .fatwa-title {
  color: #f8fafc;
}

.fatwa-answer {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 2;
  color: #475569;
}

.dark .fatwa-answer {
  color: #cbd5e1;
}

.fatwa-card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(224, 199, 144, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dark .fatwa-card-foot {
  border-top-color: rgba(71, 85, 105, 0.36);
}

.fatwa-sheikh {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fatwa-sheikh img {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(224, 199, 144, 0.28);
  box-shadow: 0 14px 22px -20px rgba(15, 23, 42, 0.6);
}

.fatwa-sheikh-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fatwa-sheikh-name {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.fatwa-sheikh-role {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.dark .fatwa-sheikh-name {
  color: #f8fafc;
}

.dark .fatwa-sheikh-role {
  color: #94a3b8;
}

.fatwa-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fatwa-meta-pill {
  min-height: 30px;
  padding: 0 11px;
  background: rgba(13, 32, 56, 0.08);
  color: #0d2038;
  font-size: 10px;
}

.fatwa-meta-pill.soft {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.dark .fatwa-meta-pill {
  background: rgba(30, 41, 59, 0.86);
  color: #f8fafc;
}

.dark .fatwa-meta-pill.soft {
  background: rgba(51, 65, 85, 0.68);
  color: #cbd5e1;
}

.fatwa-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.fatwa-more-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(215, 178, 106, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 239, 215, 0.92));
  color: #0d2038;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 26px -22px rgba(13, 32, 56, 0.6);
}

.dark .fatwa-more-btn {
  background: linear-gradient(135deg, rgba(13, 32, 56, 0.92), rgba(22, 43, 71, 0.92));
  color: #fffaf0;
}

.fatwa-empty-card {
  padding: 28px 18px;
  border-radius: 24px;
  border: 1px dashed rgba(215, 178, 106, 0.34);
  background: rgba(255, 250, 240, 0.74);
  text-align: center;
  box-shadow: 0 16px 30px -28px rgba(15, 23, 42, 0.3);
}

.fatwa-empty-card strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 900;
  color: #0d2038;
}

.fatwa-empty-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: #64748b;
}

.dark .fatwa-empty-card {
  background: rgba(10, 20, 35, 0.72);
  border-color: rgba(215, 178, 106, 0.18);
}

.dark .fatwa-empty-card strong {
  color: #fffaf0;
}

.dark .fatwa-empty-card p {
  color: #cbd5e1;
}

.fatwa-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #0d2038, #162b47);
  box-shadow: 0 18px 28px -24px rgba(13, 32, 56, 0.82);
}

.fatwa-empty-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.app-status-toast {
  top: 16px;
  width: min(92vw, 560px);
  border-radius: 20px;
  padding: 14px 18px;
  background: linear-gradient(145deg, rgba(13, 26, 45, 0.96), rgba(8, 20, 35, 0.92));
  color: #fffaf0;
  border: 1px solid rgba(224, 199, 144, 0.28);
  box-shadow:
    0 28px 40px -28px rgba(2, 6, 23, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
}

.app-status-toast[data-type="success"] {
  background: linear-gradient(145deg, rgba(13, 32, 56, 0.97), rgba(11, 27, 48, 0.95));
  border-color: rgba(224, 199, 144, 0.36);
  color: #fff8ec;
}

.app-status-toast[data-type="warn"] {
  background: linear-gradient(145deg, rgba(133, 90, 18, 0.96), rgba(111, 75, 17, 0.94));
  border-color: rgba(255, 224, 163, 0.42);
}

.app-status-toast[data-type="error"] {
  background: linear-gradient(145deg, rgba(134, 31, 31, 0.96), rgba(110, 24, 24, 0.94));
  border-color: rgba(254, 202, 202, 0.46);
}

.dark .app-status-toast {
  background: linear-gradient(145deg, rgba(4, 11, 21, 0.96), rgba(8, 20, 35, 0.94));
  border-color: rgba(224, 199, 144, 0.18);
}

@media (max-width: 420px) {
  .fatwa-topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fatwa-topbar-shell {
    border-radius: 26px;
    padding: 18px 14px 14px;
  }

  .fatwa-topbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fatwa-brand-badge {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .fatwa-brand-copy h1 {
    font-size: 19px;
  }

  .fatwa-brand-copy p {
    font-size: 12px;
  }

  .fatwa-library-pill {
    align-self: flex-start;
  }

  .fatwa-hero-stats {
    gap: 8px;
  }

  .fatwa-hero-stat {
    padding: 11px 8px;
    border-radius: 18px;
  }

  .fatwa-hero-stat strong {
    font-size: 20px;
  }

  .fatwa-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fatwa-card {
    padding: 14px;
    border-radius: 22px;
  }

  .fatwa-card-badges {
    flex-wrap: wrap;
  }

  .fatwa-title {
    font-size: 16px;
  }

  .fatwa-card-foot {
    align-items: flex-start;
  }

  .fatwa-meta {
    justify-content: flex-start;
  }
}

/* --- Library + fatwa media polish --- */
.fatwa-hero-stats {
  display: none !important;
}

.fatwa-media-wrap {
  margin-top: 12px;
}

.fatwa-media-btn-open {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: right;
}

.dark .fatwa-media-btn-open {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  border-color: rgba(148, 163, 184, 0.32);
}

.fatwa-media-thumb {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
}

.fatwa-media-thumb.image {
  max-height: 260px;
}

.fatwa-media-thumb.video {
  max-height: 260px;
}

.fatwa-media-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #075985;
  background: rgba(14, 165, 233, 0.14);
}

.dark .fatwa-media-chip {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.2);
}

.fatwa-media-wrap.compact .fatwa-media-btn-open {
  padding: 8px;
  border-radius: 12px;
}

.fatwa-media-wrap.compact .fatwa-media-thumb.image,
.fatwa-media-wrap.compact .fatwa-media-thumb.video {
  max-height: 180px;
}

.fatwa-media-wrap.compact .fatwa-media-chip {
  font-size: 10px;
  padding: 4px 8px;
}

/* --- Sheikh fatwa form media controls --- */
.sheikh-fatwa-media-tools {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.sheikh-fatwa-media-btn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(140deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
  color: #0f172a;
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.sheikh-fatwa-media-btn.is-single {
  justify-content: flex-start;
  padding-inline: 14px;
}

.sheikh-fatwa-media-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.95;
}

.dark .sheikh-fatwa-media-btn {
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.88));
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.sheikh-fatwa-media-preview {
  margin-top: 10px;
}

.sheikh-fatwa-media-preview-open {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.75);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: right;
}

.dark .sheikh-fatwa-media-preview-open {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.36);
}

.sheikh-fatwa-media-thumb {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
}

.sheikh-fatwa-media-thumb.image,
.sheikh-fatwa-media-thumb.video {
  max-height: 220px;
}

.sheikh-fatwa-media-caption {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.dark .sheikh-fatwa-media-caption {
  color: #cbd5e1;
}

.sheikh-fatwa-media-remove {
  margin-top: 8px;
  align-self: flex-start;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dark .sheikh-fatwa-media-remove {
  background: rgba(127, 29, 29, 0.24);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* --- Chat media + in-app viewer --- */
.chat-msg-media-link {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

.chat-msg-media-video {
  display: block;
  width: min(68vw, 250px);
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.08);
}

.chat-msg-bubble.user .chat-msg-media-video {
  background: rgba(255, 255, 255, 0.08);
}

.media-viewer-open {
  overflow: hidden;
}

.media-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.media-viewer-overlay:not(.hidden) {
  display: flex;
}

.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-viewer-panel {
  position: relative;
  width: min(92vw, 760px);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(224, 199, 144, 0.36);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.94));
  box-shadow: 0 30px 60px -32px rgba(2, 6, 23, 0.9);
}

.media-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(7, 17, 33, 0.96)),
    url("assets/welcome-bg.png") center / cover no-repeat;
}

.media-viewer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.media-viewer-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(2, 6, 23, 0.45));
}

.media-viewer-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.media-viewer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.media-viewer-close-btn:hover {
  transform: scale(1.05);
  background: rgba(30, 41, 59, 0.82);
}

.media-viewer-body {
  padding: 14px;
  max-height: calc(88vh - 64px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-viewer-image,
.media-viewer-video {
  max-width: 100%;
  max-height: calc(88vh - 96px);
  border-radius: 12px;
  display: block;
}

.media-viewer-audio {
  width: min(92vw, 520px);
}

.developer-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: 100vw;
  max-width: 100vw;
  overflow: auto;
  background: linear-gradient(180deg, #f7f4ee 0%, #fbf9f5 50%, #f6f2ea 100%);
}

.font-noto-serif-arabic {
  font-family: "Noto Serif Arabic", "Noto Sans Arabic", "Cairo", serif;
}

.dark .developer-shell {
  background: linear-gradient(180deg, #050a12 0%, #0b1320 60%, #0a121f 100%);
}

.developer-pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20px 20px, #b7954e 1px, transparent 1px),
    radial-gradient(circle at 0 0, #0f3556 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
}

.developer-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-right: 4px solid transparent;
  border-radius: 0.85rem;
  color: rgba(209, 250, 229, 0.75);
  transition: all 0.18s ease;
}

.developer-nav-item:hover {
  background: rgba(6, 95, 70, 0.35);
  color: #6ee7b7;
}

.developer-nav-item.active {
  border-right-color: #34d399;
  background: rgba(6, 95, 70, 0.45);
  color: #6ee7b7;
}

.developer-upload-drop {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.developer-upload-drop:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background-color: rgba(236, 253, 245, 0.82);
  transform: translateY(-1px);
}

.dark .developer-upload-drop:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background-color: rgba(15, 23, 42, 0.75);
}

/* --- Sheikh Workspace Redesign --- */
#sheikhDashboardView.sheikh-dashboard-shell {
  background:
    linear-gradient(180deg, rgba(5, 20, 38, 0.76), rgba(7, 15, 26, 0.9)),
    url("assets/welcome-bg.png") center/cover no-repeat fixed;
}

#sheikhDashboardView .sheikh-hero-header {
  border: 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.2);
  background:
    linear-gradient(135deg, rgba(7, 29, 52, 0.94), rgba(4, 21, 39, 0.96));
  box-shadow: 0 16px 34px -28px rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#sheikhDashboardView .sheikh-header-grid {
  min-height: 70px;
  gap: 12px;
}

#sheikhDashboardView .sheikh-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

#sheikhDashboardView .sheikh-brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: linear-gradient(150deg, rgba(14, 165, 233, 0.16), rgba(14, 116, 144, 0.1)) !important;
  box-shadow: 0 12px 28px -22px rgba(56, 189, 248, 0.85);
}

#sheikhDashboardView .sheikh-brand-wordmark-inline {
  width: 62px;
  min-width: 62px;
  opacity: 0.94;
}

#sheikhDashboardView .sheikh-hero-header h1 {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

#sheikhDashboardView #sheikhWelcomeName {
  color: #dbeafe !important;
  font-size: 11px;
  font-weight: 700;
}

#sheikhDashboardView .sheikh-availability-pill {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  background: rgba(15, 23, 42, 0.55) !important;
  padding-inline: 10px;
  gap: 8px;
}

#sheikhDashboardView #sheikhAvailabilityLabel {
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  max-width: 110px;
}

#sheikhDashboardView #sheikhAvailabilityLabel.off {
  color: #fecaca;
}

#sheikhDashboardView .sheikh-dashboard-main {
  background: transparent;
  border-radius: 0;
  padding-top: 14px;
}

#sheikhDashboardView .sheikh-tab-view {
  animation: sheikhFadeIn 180ms ease;
}

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

#sheikhDashboardView .sheikh-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

#sheikhDashboardView .sheikh-stat-card {
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.32) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95)) !important;
  box-shadow: 0 18px 26px -24px rgba(2, 6, 23, 0.78) !important;
  padding: 14px 12px !important;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(4, 29, 51, 0.96), rgba(10, 39, 67, 0.94)) !important;
  border-color: rgba(125, 211, 252, 0.32) !important;
  box-shadow: 0 24px 36px -26px rgba(2, 6, 23, 0.95) !important;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child p:first-child {
  color: rgba(191, 219, 254, 0.9) !important;
  font-size: 12px !important;
  font-weight: 800;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child #sheikhPendingCount {
  color: #ffffff !important;
  font-size: 42px !important;
  line-height: 1;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child::after {
  content: "طلبات تحتاج إلى رد";
  grid-column: 1 / -1;
  color: rgba(191, 219, 254, 0.82);
  font-size: 11px;
  font-weight: 700;
  margin-top: -2px;
}

#sheikhDashboardView .sheikh-home-insights {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

#sheikhDashboardView .sheikh-response-card {
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 20px 30px -24px rgba(2, 6, 23, 0.78);
  padding: 14px;
}

#sheikhDashboardView .sheikh-response-head h3 {
  font-size: 14px;
}

#sheikhDashboardView .sheikh-response-head span {
  border-color: rgba(14, 116, 144, 0.3);
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
}

#sheikhDashboardView .sheikh-response-hint {
  font-size: 12px;
}

#sheikhDashboardView .sheikh-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

#sheikhDashboardView .sheikh-quick-action-btn {
  border-radius: 14px;
  min-height: 70px;
  background: #ffffff;
}

#sheikhDashboardView .sheikh-quick-action-icon {
  width: 22px;
  height: 22px;
}

#sheikhDashboardView #sheikhFilterBtn {
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #0c4a6e;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
}

#sheikhDashboardView #sheikhFilterBtn img {
  width: 14px;
  height: 14px;
}

#sheikhDashboardView #sheikhHomeList > article,
#sheikhDashboardView #sheikhQuestionsDirectList > article,
#sheikhDashboardView #sheikhQuestionsInstantList > article {
  border-radius: 16px !important;
  border: 1px solid rgba(191, 219, 254, 0.3) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 16px 24px -24px rgba(2, 6, 23, 0.72) !important;
}

#sheikhDashboardView .sheikh-questions-split {
  gap: 12px;
}

#sheikhDashboardView .sheikh-question-group {
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.25);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 28px -26px rgba(2, 6, 23, 0.75);
}

#sheikhDashboardView .sheikh-question-group.instant {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(160deg, rgba(236, 254, 255, 0.92), rgba(255, 255, 255, 0.97));
}

#sheikhDashboardView .sheikh-question-group-head {
  margin-bottom: 10px;
}

#sheikhDashboardView .sheikh-question-group-head h3 {
  font-size: 14px;
  font-weight: 800;
}

#sheikhDashboardView .sheikh-question-group-note {
  border-radius: 12px;
  background: rgba(236, 253, 245, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
  padding: 8px 10px;
}

#sheikhDashboardView .sheikh-conversations-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

#sheikhDashboardView .sheikh-conversations-list-panel,
#sheikhDashboardView .sheikh-chat-thread-panel {
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.26);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 32px -28px rgba(2, 6, 23, 0.78);
}

#sheikhDashboardView .sheikh-conversations-topbar {
  padding: 14px 14px 10px;
  justify-content: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

#sheikhDashboardView .sheikh-conversations-icon {
  display: none;
}

#sheikhDashboardView .sheikh-conversations-topbar h2 {
  font-size: 16px;
  color: #0f172a;
}

#sheikhDashboardView .sheikh-conversations-search {
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.54);
  background: #f8fafc;
}

#sheikhDashboardView .sheikh-conversation-card {
  border-radius: 14px;
}

#sheikhDashboardView .sheikh-conversations-fab {
  border-radius: 999px;
  height: 44px;
  min-width: 92px;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(135deg, #0369a1, #0891b2);
}

#sheikhDashboardView .sheikh-chat-thread-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  min-height: 58vh;
}

#sheikhDashboardView .sheikh-chat-thread-panel .chat-room-feed {
  flex: 1;
  min-height: 260px;
  max-height: none;
}

#sheikhDashboardView .sheikh-chat-thread-panel .chat-room-composer {
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.95);
}

#sheikhDashboardView .sheikh-thread-back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: rgba(248, 250, 252, 0.95);
  color: #0c4a6e;
}

#sheikhDashboardView .sheikh-publish-shell,
#sheikhDashboardView .sheikh-published-wrap,
#sheikhDashboardView #sheikhTab-settings > div {
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 28px -24px rgba(2, 6, 23, 0.76);
}

#sheikhDashboardView .sheikh-publish-form {
  gap: 11px;
}

#sheikhDashboardView .sheikh-publish-input,
#sheikhDashboardView .sheikh-publish-textarea,
#sheikhDashboardView .sheikh-publish-select {
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: #f8fafc;
}

#sheikhDashboardView .sheikh-publish-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4c81, #1d70b8);
}

#sheikhDashboardView #sheikhTab-settings > div {
  padding: 18px;
}

#sheikhDashboardView #sheikhTab-settings h3 {
  font-size: 18px;
  color: #0f172a;
}

#sheikhDashboardView #sheikhTab-settings #sheikhSettingsName {
  font-size: 15px;
}

#sheikhDashboardView #sheikhTab-settings #sheikhSettingsEmail {
  font-size: 13px;
}

#sheikhDashboardView .sheikh-bottom-nav {
  background: rgba(248, 250, 252, 0.92);
  border-top: 1px solid rgba(186, 230, 253, 0.45);
  box-shadow: 0 -10px 22px -20px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#sheikhDashboardView .sheikh-tab-btn {
  min-width: 62px;
  padding: 0 2px;
}

#sheikhDashboardView .sheikh-tab-icon-wrap {
  border-radius: 14px;
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-tab-icon-wrap {
  box-shadow: 0 10px 16px -14px rgba(14, 116, 144, 0.95);
}

#sheikhDashboardView .sheikh-tab-label {
  font-size: 10px;
  font-weight: 800;
}

.dark #sheikhDashboardView.sheikh-dashboard-shell {
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.9), rgba(2, 10, 20, 0.94)),
    url("assets/welcome-bg.png") center/cover no-repeat fixed;
}

.dark #sheikhDashboardView .sheikh-stat-card,
.dark #sheikhDashboardView .sheikh-response-card,
.dark #sheikhDashboardView .sheikh-question-group,
.dark #sheikhDashboardView .sheikh-conversations-list-panel,
.dark #sheikhDashboardView .sheikh-chat-thread-panel,
.dark #sheikhDashboardView .sheikh-publish-shell,
.dark #sheikhDashboardView .sheikh-published-wrap,
.dark #sheikhDashboardView #sheikhTab-settings > div {
  border-color: rgba(51, 65, 85, 0.9) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

.dark #sheikhDashboardView .sheikh-question-group.instant {
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.28), rgba(15, 23, 42, 0.9)) !important;
}

.dark #sheikhDashboardView .sheikh-conversations-topbar h2,
.dark #sheikhDashboardView #sheikhTab-settings h3 {
  color: #e2e8f0;
}

.dark #sheikhDashboardView .sheikh-conversations-search,
.dark #sheikhDashboardView .sheikh-publish-input,
.dark #sheikhDashboardView .sheikh-publish-textarea,
.dark #sheikhDashboardView .sheikh-publish-select {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.92);
  color: #e2e8f0;
}

.dark #sheikhDashboardView .sheikh-chat-thread-panel .chat-room-composer {
  border-top-color: rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.95);
}

.dark #sheikhDashboardView .sheikh-bottom-nav {
  background: rgba(3, 10, 23, 0.9);
  border-top-color: rgba(51, 65, 85, 0.86);
}

@media (max-width: 720px) {
  #sheikhDashboardView .sheikh-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child {
    grid-column: 1 / -1;
  }

  #sheikhDashboardView .sheikh-quick-actions {
    grid-template-columns: 1fr;
  }

  #sheikhDashboardView .sheikh-conversations-shell {
    gap: 10px;
  }

  #sheikhDashboardView .sheikh-availability-pill {
    padding-inline: 8px;
  }

  #sheikhDashboardView #sheikhAvailabilityLabel {
    max-width: 92px;
    font-size: 9px;
  }
}

/* --- Sheikh Elite Workspace (Exact-style pass) --- */
#sheikhDashboardView.sheikh-dashboard-shell {
  background: #f8f9fa !important;
}

#sheikhDashboardView .sheikh-elite-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #f1f5f9 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

#sheikhDashboardView .sheikh-header-grid {
  max-width: 42rem;
  margin: 0 auto;
  min-height: 64px;
  gap: 10px;
}

#sheikhDashboardView .sheikh-elite-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
}

#sheikhDashboardView .sheikh-elite-head-icon:hover {
  background: #f8fafc;
  color: #334155;
}

#sheikhDashboardView .sheikh-header-main {
  justify-content: center;
  flex: 1;
}

#sheikhDashboardView .sheikh-brand-badge {
  display: none !important;
}

#sheikhDashboardView .sheikh-header-title-wrap {
  text-align: center;
}

#sheikhDashboardView .sheikh-header-title-wrap > div {
  justify-content: center;
}

#sheikhDashboardView .sheikh-brand-wordmark-inline {
  display: none !important;
}

#sheikhDashboardView .sheikh-hero-header h1 {
  color: #0a192f !important;
  font-size: 1.2rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#sheikhDashboardView #sheikhWelcomeName {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 700;
  max-width: 132px;
}

#sheikhDashboardView .sheikh-availability-pill {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  gap: 8px;
}

#sheikhDashboardView .sheikh-elite-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

#sheikhDashboardView #sheikhAvailabilityLabel {
  color: #059669 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  max-width: 90px;
  line-height: 1.2;
}

#sheikhDashboardView #sheikhAvailabilityLabel.off {
  color: #dc2626 !important;
}

#sheikhDashboardView .sheikh-elite-available-switch {
  transform: scale(0.92);
  transform-origin: center;
}

#sheikhDashboardView .sheikh-elite-home {
  max-width: 42rem;
  margin-inline: auto;
}

#sheikhDashboardView .sheikh-dashboard-main {
  padding-top: 14px !important;
  background: transparent !important;
}

#sheikhDashboardView .sheikh-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card {
  border: 1px solid #f1f5f9 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
  background: #fff !important;
  text-align: center;
  padding: 14px !important;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card p {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card p:last-child,
#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card > p[id] {
  font-size: 30px !important;
  line-height: 1;
  font-weight: 800;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child {
  grid-column: 1 / -1;
  border: 0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 22px 36px -28px rgba(10, 25, 47, 0.8) !important;
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%) !important;
  padding: 28px 20px !important;
  position: relative;
  overflow: hidden;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20px 20px, rgba(197, 163, 88, 0.4) 1px, transparent 1px);
  background-size: 22px 22px;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child p:first-child {
  position: relative;
  z-index: 1;
  color: rgba(197, 163, 88, 0.88) !important;
  font-size: 11px !important;
  letter-spacing: 0.18em;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child #sheikhPendingCount {
  position: relative;
  z-index: 1;
  font-size: 62px !important;
  color: #fff !important;
}

#sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child::after {
  content: "أسئلة فقهية جديدة بانتظارك";
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

#sheikhDashboardView .sheikh-home-insights {
  display: grid;
  gap: 14px;
  margin-bottom: 24px !important;
}

#sheikhDashboardView .sheikh-response-card {
  background: #fff !important;
  border: 1px solid rgba(197, 163, 88, 0.2) !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  padding: 16px !important;
}

#sheikhDashboardView .sheikh-response-head h3 {
  color: #0a192f !important;
  font-weight: 800;
}

#sheikhDashboardView .sheikh-response-head span {
  border-color: rgba(197, 163, 88, 0.25) !important;
  background: rgba(197, 163, 88, 0.08) !important;
  color: #8a6d26 !important;
}

#sheikhDashboardView .sheikh-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#sheikhDashboardView #sheikhQuickOpenQuestionsBtn {
  display: none !important;
}

#sheikhDashboardView .sheikh-quick-action-btn {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f9fafc !important;
  min-height: 58px;
}

#sheikhDashboardView .sheikh-quick-action-btn span {
  font-size: 12px;
  font-weight: 800;
}

#sheikhDashboardView .sheikh-quick-action-icon {
  width: 20px;
  height: 20px;
}

#sheikhDashboardView .sheikh-tab-view > .flex.items-center.justify-between.mb-4 h2 {
  color: #0a192f;
  font-size: 1.125rem;
  font-weight: 800;
}

#sheikhDashboardView #sheikhFilterBtn {
  border-radius: 999px !important;
  background: rgba(197, 163, 88, 0.08) !important;
  color: #b2851d !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#sheikhDashboardView #sheikhFilterBtn img {
  display: none;
}

#sheikhDashboardView #sheikhHomeList > article,
#sheikhDashboardView #sheikhQuestionsDirectList > article,
#sheikhDashboardView #sheikhQuestionsInstantList > article {
  border-radius: 16px !important;
  border: 1px solid rgba(197, 163, 88, 0.2) !important;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05) !important;
  background: #fff !important;
}

#sheikhDashboardView .sheikh-bottom-nav {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #f1f5f9 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
  border-radius: 1.5rem 1.5rem 0 0;
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-tab-icon-wrap {
  background: #0a192f !important;
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-tab-label {
  color: #0a192f !important;
}

.dark #sheikhDashboardView.sheikh-dashboard-shell {
  background: #0f172a !important;
}

.dark #sheikhDashboardView .sheikh-elite-header {
  background: rgba(15, 23, 42, 0.85) !important;
  border-bottom-color: rgba(51, 65, 85, 0.8) !important;
}

.dark #sheikhDashboardView .sheikh-hero-header h1,
.dark #sheikhDashboardView #sheikhWelcomeName {
  color: #e2e8f0 !important;
}

.dark #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card,
.dark #sheikhDashboardView .sheikh-response-card,
.dark #sheikhDashboardView #sheikhHomeList > article,
.dark #sheikhDashboardView #sheikhQuestionsDirectList > article,
.dark #sheikhDashboardView #sheikhQuestionsInstantList > article {
  background: #0f172a !important;
  border-color: rgba(51, 65, 85, 0.9) !important;
}

.dark #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card p,
.dark #sheikhDashboardView .sheikh-response-hint,
.dark #sheikhDashboardView .sheikh-response-last {
  color: #94a3b8 !important;
}

@media (max-width: 720px) {
  #sheikhDashboardView .sheikh-header-grid {
    padding-inline: 2px;
  }

  #sheikhDashboardView #sheikhWelcomeName {
    max-width: 86px;
  }

  #sheikhDashboardView #sheikhAvailabilityLabel {
    display: none;
  }

  #sheikhDashboardView .sheikh-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child {
    grid-column: 1 / -1;
    padding: 22px 16px !important;
  }

  #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child #sheikhPendingCount {
    font-size: 50px !important;
  }

  #sheikhDashboardView .sheikh-stats-grid .sheikh-stat-card:first-child::after {
    font-size: 16px;
  }
}

/* ===== Sheikh Exact Elite Layout (latest) ===== */
#sheikhDashboardView.sheikh-elite-workspace {
  --institutional-navy: #0a192f;
  --institutional-gold: #c5a358;
  background-color: #f8f9fa !important;
  color: #0f172a;
  font-family: "Tajawal", "Plus Jakarta Sans", system-ui, sans-serif;
}

#sheikhDashboardView .sheikh-elite-glass-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #f1f5f9;
}

#sheikhDashboardView .sheikh-elite-brand-title {
  color: var(--institutional-navy);
}

#sheikhDashboardView .islamic-pattern-subtle {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l2.5 12.5L45 15l-12.5 2.5L30 30l-2.5-12.5L15 15l12.5-2.5z' fill='%23C5A358' fill-opacity='0.18' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#sheikhDashboardView .hero-gradient {
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}

#sheikhDashboardView .sheikh-hero-card {
  border: 1px solid rgba(197, 163, 88, 0.14);
}

#sheikhDashboardView .sheikh-elite-stats > article {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#sheikhDashboardView .sheikh-elite-stats > article:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

#sheikhDashboardView #sheikhHomeList > article {
  background: #fff !important;
  border: 1px solid rgba(197, 163, 88, 0.18) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

#sheikhDashboardView .sheikh-question-card.instant {
  border: 2px solid #16a34a !important;
  background: linear-gradient(160deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: 0 14px 28px -24px rgba(16, 185, 129, 0.55), 0 0 0 1px rgba(22, 163, 74, 0.25) !important;
}

.dark #sheikhDashboardView .sheikh-question-card.instant {
  border: 2px solid rgba(16, 185, 129, 0.85) !important;
  background: linear-gradient(160deg, rgba(6, 36, 30, 0.95), rgba(15, 23, 42, 0.95)) !important;
}

#sheikhDashboardView .sheikh-availability-chip,
#sheikhDashboardView #sheikhAvailabilityPill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 54px;
  min-width: 54px;
  height: 30px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.9), rgba(16, 185, 129, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 16px -12px rgba(16, 185, 129, 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#sheikhDashboardView #sheikhAvailabilityPill:hover {
  transform: translateY(-1px);
}

#sheikhDashboardView #sheikhAvailabilityPill.off {
  justify-content: flex-start;
  border-color: rgba(244, 63, 94, 0.45);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(225, 29, 72, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 16px -12px rgba(244, 63, 94, 0.78);
}

#sheikhDashboardView #sheikhAvailabilityDot {
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px;
  background: #ffffff !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.26);
  animation: none !important;
  transition: transform 0.2s ease;
}

#sheikhDashboardView #sheikhAvailabilityLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#sheikhDashboardView #sheikhAvailabilityLabel.off {
  color: #e11d48 !important;
}

#sheikhDashboardView .sheikh-dashboard-main {
  padding-top: 0.25rem;
}

#sheikhDashboardView .sheikh-elite-bottom-nav {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#sheikhDashboardView .sheikh-elite-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding-inline: 0.45rem;
}

#sheikhDashboardView .sheikh-elite-nav-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.95rem;
  color: #94a3b8;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#sheikhDashboardView .sheikh-nav-chat-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

.dark #sheikhDashboardView .sheikh-nav-chat-badge {
  border-color: #0f172a;
}

#sheikhDashboardView .sheikh-elite-nav-icon-img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(10%) saturate(807%) hue-rotate(176deg) brightness(95%) contrast(86%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

#sheikhDashboardView .sheikh-elite-home-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

#sheikhDashboardView .sheikh-header-icon-img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(46%) sepia(9%) saturate(747%) hue-rotate(175deg) brightness(90%) contrast(90%);
}

#sheikhDashboardView .sheikh-elite-nav-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-elite-nav-icon {
  background: var(--institutional-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.28);
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-elite-nav-icon-img {
  filter: brightness(0) saturate(100%) invert(100%);
}

#sheikhDashboardView .sheikh-tab-btn.active .sheikh-elite-nav-label {
  color: var(--institutional-navy);
}

#sheikhDashboardView .sheikh-tab-btn:not(.active):hover .sheikh-elite-nav-icon {
  color: var(--institutional-navy);
  background: rgba(10, 25, 47, 0.06);
}

#sheikhDashboardView .sheikh-tab-btn:not(.active):hover .sheikh-elite-nav-icon-img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(22%) saturate(1889%) hue-rotate(181deg) brightness(94%) contrast(93%);
}

#sheikhDashboardView .sheikh-tab-btn:not(.active):hover .sheikh-elite-nav-label {
  color: #475569;
}

@media (max-width: 640px) {
  #sheikhDashboardView .sheikh-elite-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #sheikhDashboardView .sheikh-elite-stats > article {
    padding: 12px 8px;
  }

  #sheikhDashboardView .sheikh-elite-stats > article > span:first-child {
    font-size: 1.15rem;
  }

  #sheikhDashboardView .sheikh-elite-nav-label {
    font-size: 9px;
  }
}

/* =========================================================
   Faqih Premium Motion Layer (inspired by donor UI system)
   ========================================================= */
:root {
  --faqih-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --faqih-motion-fast: 220ms;
  --faqih-motion-medium: 460ms;
  --faqih-motion-slow: 620ms;
}

.tab-view.faqih-tab-enter {
  animation: faqih-tab-enter var(--faqih-motion-medium) var(--faqih-motion-ease);
}

@keyframes faqih-tab-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.992);
    filter: saturate(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

.faqih-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.985);
  filter: blur(7px);
  transition:
    opacity var(--faqih-motion-medium) var(--faqih-motion-ease),
    transform var(--faqih-motion-medium) var(--faqih-motion-ease),
    filter var(--faqih-motion-medium) var(--faqih-motion-ease);
  transition-delay: calc(var(--faqih-reveal-order, 0) * 70ms);
  will-change: transform, opacity;
}

.faqih-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.faqih-reveal-0 {
  --faqih-reveal-order: 0;
}

.faqih-reveal-1 {
  --faqih-reveal-order: 1;
}

.faqih-reveal-2 {
  --faqih-reveal-order: 2;
}

.faqih-reveal-3 {
  --faqih-reveal-order: 3;
}

.faqih-motion-host .questioner-home-header-card {
  transition:
    transform var(--faqih-motion-fast) ease,
    box-shadow var(--faqih-motion-fast) ease,
    border-color var(--faqih-motion-fast) ease;
}

.faqih-motion-host .questioner-home-header-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 40px -28px rgba(2, 6, 23, 0.95);
  border-color: rgba(214, 180, 118, 0.62);
}

.questioner-home-section,
.questioner-hero-card,
.questioner-sheikh-card {
  transition:
    transform var(--faqih-motion-fast) ease,
    box-shadow var(--faqih-motion-fast) ease,
    border-color var(--faqih-motion-fast) ease;
}

.questioner-home-section:hover,
.questioner-hero-card:hover {
  transform: translateY(-2px);
}

.questioner-category-item {
  transition:
    transform var(--faqih-motion-fast) ease,
    filter var(--faqih-motion-fast) ease;
}

.questioner-category-item:active {
  transform: translateY(-1px) scale(0.985);
}

.questioner-hero-cta {
  position: relative;
  overflow: hidden;
}

.questioner-hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  right: -46%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: right var(--faqih-motion-slow) var(--faqih-motion-ease);
  pointer-events: none;
}

.questioner-hero-cta:hover::after {
  right: 112%;
}

.faqih-sheikh-entrance {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  animation: faqih-sheikh-enter var(--faqih-motion-medium) var(--faqih-motion-ease) forwards;
  animation-delay: calc(var(--faqih-stagger, 0) * 55ms);
}

.faqih-reveal-4 {
  --faqih-reveal-order: 4;
}

.questioner-hero-card-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-color: rgba(214, 180, 118, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 54px -38px rgba(2, 6, 23, 0.95);
}

.questioner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 180, 118, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #f8e7c1;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.questioner-hero-side {
  width: 132px;
  min-height: 132px;
  border-radius: 24px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(125, 211, 252, 0.06));
  backdrop-filter: blur(12px);
  text-align: center;
}

.questioner-hero-side-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(14, 165, 233, 0.25));
}

.questioner-hero-side span {
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
}

.questioner-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.questioner-home-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(186, 230, 253, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(236, 246, 255, 0.74));
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.72);
}

.questioner-home-stat-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -26px auto;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}

.questioner-home-stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 4px;
}

.questioner-home-stat-card span {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.dark .questioner-home-stat-card {
  border-color: rgba(51, 65, 85, 0.82);
  background: linear-gradient(145deg, rgba(12, 22, 38, 0.95), rgba(7, 14, 27, 0.98));
}

.dark .questioner-home-stat-card strong {
  color: #f8fafc;
}

.dark .questioner-home-stat-card span {
  color: #94a3b8;
}

@keyframes faqih-sheikh-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-view.faqih-tab-enter,
  .faqih-sheikh-entrance {
    animation: none !important;
  }

  .faqih-reveal,
  .faqih-reveal.is-visible {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .questioner-hero-cta::after {
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .questioner-hero-card-v2 {
    grid-template-columns: 1fr;
  }

  .questioner-hero-side {
    width: 100%;
    min-height: 88px;
    border-radius: 16px;
    flex-direction: row;
    justify-content: center;
  }

  .questioner-hero-side-logo {
    width: 42px;
    height: 42px;
  }

  .questioner-home-stats {
    gap: 8px;
  }

  .questioner-home-stat-card {
    border-radius: 15px;
    padding: 11px 6px;
  }

  .questioner-home-stat-card strong {
    font-size: 17px;
  }

  .questioner-home-stat-card span {
    font-size: 10px;
  }
}

/* Questioner home redesign v2 */
#tab-home.questioner-home-main {
  gap: 16px;
  padding: 10px 14px 0;
}

#tab-home .questioner-hero-card-v2 {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 194, 92, 0.28), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(56, 189, 248, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(6, 29, 52, 0.98), rgba(7, 38, 66, 0.95));
  box-shadow:
    0 24px 36px -28px rgba(2, 6, 23, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#tab-home .questioner-hero-copy {
  gap: 10px;
}

#tab-home .questioner-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 222, 179, 0.46);
  background: rgba(15, 23, 42, 0.4);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

#tab-home .questioner-hero-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 900;
}

#tab-home .questioner-hero-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.95);
  font-size: 14px;
  line-height: 1.8;
  max-width: 42ch;
}

#tab-home .questioner-hero-side {
  border-radius: 18px;
  border: 1px solid rgba(245, 222, 179, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#tab-home .questioner-hero-side span {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}


@media (max-width: 860px) {
  #tab-home.questioner-home-main {
    padding: 10px 12px 0;
    gap: 13px;
  }

  #tab-home .questioner-hero-card-v2 {
    border-radius: 22px;
  }

  #tab-home .questioner-hero-copy h2 {
    font-size: 24px;
  }

}

/* Home refresh override: make top welcome bar unmistakably visible */
#questionerHomeHeader.questioner-home-header {
  position: sticky;
  top: 0;
  z-index: 35;
  padding: 4px 10px 2px;
  border: 0 !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background:
    radial-gradient(circle at 50% -30%, rgba(244, 220, 163, 0.34), transparent 56%),
    linear-gradient(145deg, rgba(4, 28, 52, 0.98), rgba(9, 39, 67, 0.95));
  box-shadow:
    0 16px 34px -22px rgba(2, 12, 27, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#questionerHomeHeader .questioner-home-profile {
  gap: 9px;
}

#questionerHomeHeader .questioner-home-profile-ring {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(140deg, rgba(245, 222, 179, 0.88), rgba(245, 158, 11, 0.72));
  box-shadow: 0 10px 20px -16px rgba(245, 158, 11, 0.95);
}

#questionerHomeHeader #homeHeaderAvatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #0f172a;
}

#questionerHomeHeader .questioner-home-welcome {
  margin: 0;
  color: rgba(229, 231, 235, 0.92);
  font-size: 11px;
  font-weight: 700;
}

#questionerHomeHeader .questioner-home-username {
  margin: 1px 0 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  width: 98px;
  max-width: 34vw;
  margin-inline: auto;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 100%;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.35));
}

#questionerHomeHeader .questioner-home-notify {
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.34);
  color: #f8fafc;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

#questionerHomeHeader .questioner-home-notify:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 220, 163, 0.5);
  background: rgba(245, 158, 11, 0.2);
}

#questionerHomeHeader .questioner-home-notify-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

#tab-home.questioner-home-main {
  padding-top: 6px;
}

#tab-home .questioner-hero-card-v2 {
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 24px;
  box-shadow:
    0 18px 38px -28px rgba(2, 6, 23, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#tab-home .questioner-hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 220, 163, 0.36);
  background: rgba(15, 23, 42, 0.36);
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 860px) {
  #questionerHomeHeader.questioner-home-header {
    padding: 4px 8px 1px;
  }

  #questionerHomeHeader .questioner-home-header-card {
    min-height: 58px;
    border-radius: 18px;
    padding: 7px 8px;
    gap: 7px;
  }

  #questionerHomeHeader .questioner-home-logo-wrap {
    width: 88px;
  }

  #questionerHomeHeader .questioner-home-username {
    font-size: 15px;
  }
}

/* =========================================================
   Faqih Home Polish v3 (logo scale + richer motion)
   ========================================================= */
#questionerHomeHeader .questioner-home-logo-wrap {
  width: 132px;
  max-width: 42vw;
}

#questionerHomeHeader .questioner-home-header-logo {
  transform: scale(1.2);
  transform-origin: center;
  filter: drop-shadow(0 9px 18px rgba(2, 6, 23, 0.44));
}

#questionerHomeHeader .questioner-home-notify {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#questionerHomeHeader .questioner-home-notify:hover {
  box-shadow: 0 14px 22px -18px rgba(251, 191, 36, 0.95);
}

@keyframes faqih-hero-glow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate3d(-2%, -2%, 0) scale(1.07);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
}

#tab-home .questioner-hero-card-v2 {
  isolation: isolate;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tab-home .questioner-hero-card-v2::after {
  content: "";
  position: absolute;
  inset: auto -35px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.44), transparent 68%);
  filter: blur(14px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  animation: faqih-hero-glow 4.4s ease-in-out infinite;
}

#tab-home .questioner-hero-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 222, 179, 0.46);
  box-shadow:
    0 28px 44px -30px rgba(2, 6, 23, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#tab-home .questioner-home-quote-copy {
  gap: 10px;
}

#tab-home .questioner-home-quote-text {
  margin: 6px 0 0;
  max-width: min(100%, 15ch);
  color: #f8fafc;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.9;
}

#tab-home .questioner-home-quote-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

#tab-home .questioner-home-quote-source {
  color: rgba(248, 250, 252, 0.94);
  font-size: 14px;
  font-weight: 800;
}

#tab-home .questioner-home-quote-reference {
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  line-height: 1.75;
}

#tab-home .questioner-home-quote-side {
  justify-content: center;
}

#tab-home .questioner-home-instant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 18, 35, 0.9), rgba(11, 22, 39, 0.96));
  box-shadow:
    0 20px 34px -30px rgba(2, 6, 23, 0.94),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#tab-home .questioner-home-instant-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#tab-home .questioner-home-instant-copy strong {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75;
}

#tab-home .questioner-home-instant-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 13px;
  line-height: 1.8;
}

#tab-home .questioner-home-instant-cta {
  flex-shrink: 0;
}

#tab-home .questioner-home-section {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tab-home .questioner-home-section:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 22px 36px -30px rgba(15, 23, 42, 0.92);
}

#tab-home .questioner-category-item {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tab-home .questioner-category-item:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 30px -24px rgba(15, 23, 42, 0.9);
}

#tab-home .questioner-category-item:active {
  transform: translateY(-2px) scale(0.99);
}

#tab-home .questioner-sheikh-card {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tab-home .questioner-sheikh-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 24px 36px -28px rgba(15, 23, 42, 0.95);
}

#tab-home .questioner-sheikh-action {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#tab-home .questioner-sheikh-action:hover:not([disabled]) {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 20px 30px -20px rgba(214, 180, 118, 0.98);
}

@media (max-width: 860px) {
  #questionerHomeHeader .questioner-home-logo-wrap {
    width: 108px;
    max-width: 43vw;
  }

  #questionerHomeHeader .questioner-home-header-logo {
    transform: scale(1.16);
  }

  #tab-home .questioner-hero-card-v2::after {
    width: 128px;
    height: 128px;
  }

  #tab-home .questioner-home-quote-text {
    max-width: 100%;
    font-size: 1.15rem;
  }

  .quote-text {
    width: 100%;
    font-size: 1.14rem;
    line-height: 1.88;
  }

  .quote-card {
    min-height: 360px;
    padding: 28px 18px 22px;
  }

  #tab-home .questioner-home-instant-card {
    flex-direction: column;
    align-items: stretch;
  }

  #tab-home .questioner-home-instant-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tab-home .questioner-hero-card-v2::after {
    animation: none !important;
  }
}

/* --- كلمات مضيئة (Library Quotes) --- */
.library-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.library-mode-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    background 180ms ease;
}

.library-mode-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -20px rgba(2, 6, 23, 0.7);
}

.library-mode-btn.active {
  border-color: rgba(16, 185, 129, 0.46);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.92));
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.dark .library-mode-btn {
  border-color: rgba(71, 85, 105, 0.62);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.86);
}

.dark .library-mode-btn.active {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.88), rgba(6, 78, 59, 0.84));
  color: #bbf7d0;
}

.library-quotes-panel {
  min-height: clamp(400px, 68vh, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
}

.quote-loading-card,
.quote-card,
.quote-empty-card {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 24px 44px -30px rgba(2, 6, 23, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.quote-loading-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.quote-loading-line {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(95deg, rgba(226, 232, 240, 0.88), rgba(241, 245, 249, 1), rgba(226, 232, 240, 0.88));
  background-size: 220% 100%;
  animation: quoteSkeleton 1.35s ease-in-out infinite;
}

.dark .quote-loading-card {
  border-color: rgba(51, 65, 85, 0.54);
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.86));
}

.dark .quote-loading-line {
  background: linear-gradient(95deg, rgba(51, 65, 85, 0.84), rgba(71, 85, 105, 0.94), rgba(51, 65, 85, 0.84));
  background-size: 220% 100%;
}

@keyframes quoteSkeleton {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.quote-card {
  position: relative;
  min-height: 420px;
  padding: 32px 26px 24px;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 88% -10%, rgba(197, 163, 88, 0.26), transparent 42%),
    radial-gradient(circle at 8% 118%, rgba(16, 185, 129, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(7, 23, 43, 0.985), rgba(13, 39, 66, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    opacity 230ms ease,
    transform 230ms ease,
    box-shadow 230ms ease;
  box-shadow:
    0 34px 56px -34px rgba(2, 6, 23, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0%, rgba(197, 163, 88, 0.08) 32%, transparent 70%),
    radial-gradient(circle at 12% 20%, rgba(197, 163, 88, 0.12), transparent 48%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 8px,
      transparent 8px,
      transparent 24px
    );
}

.quote-card.fade-switch {
  opacity: 0;
  transform: translateY(6px) scale(0.992);
}

.quote-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.quote-card-badge,
.quote-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-card-badge {
  background: rgba(197, 163, 88, 0.2);
  color: #fef3c7;
  border: 1px solid rgba(197, 163, 88, 0.36);
}

.quote-day-badge {
  background: rgba(226, 232, 240, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.quote-text {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 72%);
  margin: 24px auto 0;
  font-size: clamp(1.22rem, 2.45vw, 1.66rem);
  line-height: 1.95;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.42);
  text-wrap: balance;
  text-align: center;
  white-space: pre-line;
}

.quote-card-foot {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.quote-source-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.quote-source {
  font-size: 1rem;
  font-weight: 900;
  color: #f8deb0;
}

.quote-reference {
  font-size: 0.83rem;
  line-height: 1.9;
  color: rgba(241, 245, 249, 0.76);
  max-width: min(100%, 360px);
}

.quote-category {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #bbf7d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 11px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dark .quote-source {
  color: #7dd3fc;
}

.dark .quote-reference {
  color: rgba(226, 232, 240, 0.78);
}

.dark .quote-category {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

.quote-action-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quote-action-btn,
.quote-nav-btn,
.quote-main-action {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 170ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 170ms ease,
    filter 170ms ease;
}

.quote-action-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(2, 6, 23, 0.22));
}

.quote-action-btn:hover,
.quote-nav-btn:hover,
.quote-main-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px -20px rgba(2, 6, 23, 0.68);
  filter: brightness(1.03);
}

.quote-main-action.save.is-active {
  border-color: rgba(16, 185, 129, 0.52);
  background: linear-gradient(130deg, rgba(240, 253, 250, 0.95), rgba(209, 250, 229, 0.95));
  box-shadow: 0 16px 24px -20px rgba(6, 78, 59, 0.75);
}

.quote-action-btn:disabled,
.quote-nav-btn:disabled,
.quote-main-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dark .quote-action-btn,
.dark .quote-nav-btn,
.dark .quote-main-action {
  border-color: rgba(51, 65, 85, 0.72);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.82));
}

.dark .quote-main-action.save.is-active {
  border-color: rgba(16, 185, 129, 0.46);
  background: linear-gradient(130deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9));
}

.quote-empty-card {
  text-align: center;
  padding: 26px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.quote-empty-card strong {
  display: block;
  font-size: 1.03rem;
  color: #0f172a;
}

.quote-empty-card p {
  margin-top: 8px;
  font-size: 0.83rem;
  color: #64748b;
}

.dark .quote-empty-card {
  border-color: rgba(51, 65, 85, 0.54);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.86));
}

.dark .quote-empty-card strong {
  color: #f8fafc;
}

.dark .quote-empty-card p {
  color: #94a3b8;
}

.quote-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.quote-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.quote-share-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  box-shadow: 0 34px 80px -36px rgba(2, 6, 23, 0.95);
}

.dark .quote-share-dialog {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  border-color: rgba(148, 163, 184, 0.14);
}

.quote-share-shell {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.quote-share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quote-share-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c5a358;
}

.quote-share-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 900;
  color: #0f172a;
}

.dark .quote-share-title {
  color: #f8fafc;
}

.quote-share-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dark .quote-share-close {
  background: rgba(30, 41, 59, 0.82);
  color: #f8fafc;
}

.quote-share-theme-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quote-share-theme-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 180ms ease;
}

.quote-share-theme-btn.active {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(220, 252, 231, 0.96));
  color: #047857;
}

.dark .quote-share-theme-btn {
  background: rgba(30, 41, 59, 0.84);
  color: #cbd5e1;
  border-color: rgba(71, 85, 105, 0.58);
}

.dark .quote-share-theme-btn.active {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.56), rgba(15, 23, 42, 0.9));
  color: #bbf7d0;
}

.quote-share-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.quote-share-capture {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 36px;
  padding: 52px 44px 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow:
    0 26px 52px -34px rgba(2, 6, 23, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.quote-share-capture.theme-dark {
  background:
    radial-gradient(circle at 88% -8%, rgba(197, 163, 88, 0.3), transparent 40%),
    radial-gradient(circle at 12% 108%, rgba(14, 165, 233, 0.15), transparent 36%),
    linear-gradient(160deg, #07172b 0%, #0d2742 54%, #133256 100%);
  color: #f8fafc;
}

.quote-share-capture.theme-light {
  background:
    radial-gradient(circle at 88% -8%, rgba(197, 163, 88, 0.18), transparent 40%),
    radial-gradient(circle at 12% 108%, rgba(14, 165, 233, 0.1), transparent 36%),
    linear-gradient(160deg, #ffffff 0%, #eef4fa 56%, #e2ebf5 100%);
  color: #0f172a;
}

.quote-share-capture.theme-gold {
  background:
    radial-gradient(circle at 88% -8%, rgba(255, 244, 195, 0.36), transparent 40%),
    radial-gradient(circle at 12% 108%, rgba(251, 191, 36, 0.18), transparent 36%),
    linear-gradient(160deg, #3b2b0f 0%, #6f4d18 48%, #c5a358 100%);
  color: #fffdf7;
}

.quote-share-pattern,
.quote-share-glow {
  position: absolute;
  pointer-events: none;
}

.quote-share-pattern {
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 24%, transparent 24%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.08) 24%, transparent 24%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08) 24%, transparent 24%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 24%, transparent 24%);
  background-position: 18px 0, 18px 0, 0 0, 0 0;
  background-size: 72px 72px;
  background-repeat: repeat;
}

.quote-share-glow {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.18;
}

.quote-share-glow-top {
  top: -80px;
  right: -30px;
  background: rgba(197, 163, 88, 0.9);
}

.quote-share-glow-bottom {
  bottom: -90px;
  left: -40px;
  background: rgba(14, 165, 233, 0.72);
}

.quote-share-topline,
.quote-share-body,
.quote-share-footer {
  position: relative;
  z-index: 1;
}

.quote-share-topline {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.quote-share-brand-title {
  font-size: 1.06rem;
  font-weight: 900;
  opacity: 0.66;
}

.quote-share-brand-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.9;
}

.quote-share-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 0;
  text-align: center;
}

.quote-share-text {
  margin: 0 auto;
  width: min(100%, 68%);
  font-size: 2rem;
  line-height: 1.72;
  font-weight: 800;
  text-wrap: balance;
  text-align: center;
  white-space: pre-line;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: 1.74rem;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: 1.48rem;
  line-height: 1.84;
}

.quote-share-source-stack {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.quote-share-source {
  font-size: 1rem;
  font-weight: 900;
  opacity: 0.82;
}

.quote-share-reference {
  max-width: min(100%, 72%);
  font-size: 0.84rem;
  line-height: 1.95;
  opacity: 0.72;
  text-align: center;
}

.quote-share-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quote-share-date {
  font-size: 0.8rem;
  opacity: 0.74;
}

.quote-share-watermark {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

.quote-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-share-action-btn {
  min-height: 48px;
  border-radius: 18px;
  border: 0;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.quote-share-action-btn:hover {
  transform: translateY(-1px);
}

.quote-share-action-btn.primary {
  background: linear-gradient(135deg, #0d2742, #123558);
  color: #f8fafc;
  box-shadow: 0 18px 30px -22px rgba(13, 39, 66, 0.9);
}

.quote-share-action-btn.secondary {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.96));
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.quote-share-action-btn:disabled,
.quote-share-close:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

body.quote-share-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .quote-action-bar {
    gap: 8px;
  }

  .quote-action-btn,
  .quote-nav-btn,
  .quote-main-action {
    min-height: 46px;
  }

  .quote-action-icon {
    width: 22px;
    height: 22px;
  }

  .quote-share-sheet {
    padding: 12px;
  }

  .quote-share-dialog {
    width: 100%;
    border-radius: 26px;
  }

  .quote-share-shell {
    padding: 14px;
  }

  .quote-share-capture {
    width: 100%;
    padding: 34px 24px 28px;
  }

  .quote-share-text {
    width: min(100%, 86%);
    font-size: 1.48rem;
  }

  .quote-share-capture.is-medium .quote-share-text {
    font-size: 1.3rem;
  }

  .quote-share-capture.is-long .quote-share-text {
    font-size: 1.12rem;
    line-height: 1.78;
  }
}
/* Fakih Brand Identity 2026
   New premium identity: deep green, soft white, subtle gold, flat surfaces. */
:root {
  --fakih-green: #0f3d2e;
  --fakih-green-2: #174b3a;
  --fakih-soft: #f5f5f5;
  --fakih-card: #ffffff;
  --fakih-gold: #c9a75d;
  --fakih-ink: #163126;
  --fakih-muted: #66746f;
  --fakih-line: rgba(15, 61, 46, 0.12);
  --fakih-radius: 24px;
  --fakih-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  background: var(--fakih-soft) !important;
  color: var(--fakih-ink);
  font-family: "Cairo", "IBM Plex Sans Arabic", "Noto Sans Arabic", Inter, system-ui, sans-serif !important;
}

#appView,
.questioner-home-main,
.chat-thread-screen,
.chat-room-feed,
.sheikh-elite-workspace,
#sheikhDashboardView,
.login-screen,
.verify-email-screen {
  background: var(--fakih-soft) !important;
}

body.dark,
.dark body,
.dark #appView {
  background: var(--fakih-green) !important;
}

.welcome-bg-layer,
.welcome-bg-overlay,
.welcome-glow,
.welcome-features,
.welcome-wordmark-logo,
.login-wordmark-image,
.verify-logo-wordmark,
.global-loader-wordmark,
.profile-celebrate-wordmark,
.questioner-home-header::after,
.questioner-home-header-card::before,
.questioner-hero-card::before,
.quote-share-pattern,
.quote-share-glow,
.sheikh-hero-card .islamic-pattern-subtle,
.sheikh-hero-card [class*="blur"] {
  display: none !important;
}

.welcome-screen {
  background: var(--fakih-green) !important;
  justify-content: center !important;
  padding: 24px !important;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 12px !important;
  background: var(--fakih-green) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  animation: fakihFadeUp 0.55s var(--fakih-ease) both;
}

.welcome-logo-shell {
  width: min(68vw, 230px);
  aspect-ratio: 1;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  border-radius: 38px;
  box-shadow: none !important;
}

.welcome-turban-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 38px;
  mix-blend-mode: normal !important;
  filter: none !important;
  animation: fakihLogoBreath 4.5s ease-in-out infinite;
}

.welcome-title {
  color: #fff !important;
  font-size: 1.8rem !important;
  line-height: 1.45 !important;
  letter-spacing: -0.02em;
  text-shadow: none !important;
}

.welcome-subtitle {
  max-width: 320px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 2 !important;
}

.welcome-start-btn,
.questioner-hero-cta,
.quote-share-action-btn.primary,
#emailLoginBtn,
#signupSubmitBtn,
#forgotSendBtn,
#profileSaveBtn {
  color: #fff !important;
  background: var(--fakih-green) !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  transition: transform 0.2s var(--fakih-ease), opacity 0.2s ease !important;
}

.welcome-start-btn {
  max-width: 320px;
  color: var(--fakih-green) !important;
  background: #fff !important;
}

button:active,
.welcome-start-btn:active,
.questioner-hero-cta:active {
  transform: scale(0.98) !important;
}

.login-brand-card,
.verify-content-card,
.profile-shell .profile-v2-card,
.questioner-home-header-card,
.questioner-hero-card,
.questioner-home-section,
.questioner-home-instant-card,
.quote-card,
.fatwa-brand-card,
.chat-room-header,
.chat-room-composer,
.chat-privacy-note,
.consultation-card,
.fatwa-card,
.settings-card,
.chat-conversation-card,
.sheikh-card,
.sheikh-elite-stat-card,
.sheikh-elite-question-card {
  background: var(--fakih-card) !important;
  border: 1px solid var(--fakih-line) !important;
  border-radius: var(--fakih-radius) !important;
  box-shadow: none !important;
}

.login-mark-orb,
.verify-logo-wrap,
.global-loader-logo-core,
.profile-celebrate-logo-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.login-mark-image,
.verify-logo-turban,
.global-loader-logo,
.profile-celebrate-logo,
.questioner-home-header-logo,
.fatwa-brand-mark,
.sheikh-avatar-img,
.chat-room-sheikh-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.login-brand-title,
.login-form-head h2,
.questioner-home-greeting strong,
.questioner-home-section-title,
.quote-card-badge,
.quote-source,
.chat-room-sheikh-text h3,
.sheikh-elite-brand-title,
.fatwa-library-title,
.settings-title {
  color: var(--fakih-green) !important;
}

.login-brand-subtitle,
.login-form-head p,
.questioner-home-section-subtitle,
.quote-reference,
.chat-privacy-copy p,
.chat-room-sheikh-text p,
.settings-subtitle,
.fatwa-library-subtitle {
  color: var(--fakih-muted) !important;
}

.questioner-home-header {
  padding: 12px 16px 8px !important;
  background: var(--fakih-soft) !important;
}

.questioner-home-header-card {
  min-height: auto !important;
  padding: 14px 16px !important;
}

.questioner-home-logo-wrap {
  width: 54px !important;
  height: 54px !important;
  overflow: hidden;
  background: var(--fakih-green) !important;
  border: 0 !important;
  border-radius: 18px !important;
}

.questioner-home-header-logo {
  width: 100% !important;
  height: 100% !important;
}

.app-bottom-nav,
.sheikh-elite-bottom-nav,
.sheikh-elite-glass-header {
  background: rgba(245, 245, 245, 0.94) !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-tab-button.active,
.tab-btn.active,
.sheikh-tab-btn.active .sheikh-elite-nav-icon {
  color: #fff !important;
  background: var(--fakih-green) !important;
}

.questioner-tab-icon-img,
.sheikh-elite-nav-icon-img {
  filter: none !important;
}

.message-bubble,
.chat-message-bubble {
  border-radius: 22px !important;
  box-shadow: none !important;
}

.message-row.self .message-bubble,
.chat-message.self .chat-message-bubble {
  color: #fff !important;
  background: var(--fakih-green) !important;
}

.message-row.other .message-bubble,
.chat-message.other .chat-message-bubble {
  color: var(--fakih-ink) !important;
  background: #fff !important;
  border: 1px solid var(--fakih-line) !important;
}

.quote-card {
  padding: 28px 24px !important;
  text-align: center;
}

.quote-text {
  color: var(--fakih-ink) !important;
  font-size: 1.55rem !important;
  line-height: 2 !important;
}

.quote-action-btn {
  background: #fff !important;
  border: 1px solid var(--fakih-line) !important;
  box-shadow: none !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  color: #fff !important;
  background: var(--fakih-green) !important;
  box-shadow: none !important;
}

.quote-share-text {
  width: min(100%, 70%) !important;
  line-height: 1.75 !important;
}

.hero-gradient,
.sheikh-hero-card,
.sheikh-elite-hero-card {
  background: var(--fakih-green) !important;
  box-shadow: none !important;
}

.gold-border,
.sheikh-elite-question-card.instant,
.instant-question-card {
  border-color: rgba(201, 167, 93, 0.34) !important;
}

.brand-gold,
.text-institutional-gold {
  color: var(--fakih-gold) !important;
}

@keyframes fakihFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fakihLogoBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (max-width: 480px) {
  .welcome-logo-shell {
    width: min(64vw, 210px);
  }

  .welcome-title {
    font-size: 1.55rem !important;
  }

  .questioner-home-header-card {
    border-radius: 20px !important;
  }
}

/* Fakih Identity Refresh 2026 - PWA + Android safe overlay */
:root {
  --faqih-green: #0F3D2E;
  --faqih-green-2: #15533F;
  --faqih-green-soft: #E7F0EC;
  --faqih-gold: #C9A75D;
  --faqih-gold-soft: rgba(201, 167, 93, 0.14);
  --faqih-cream: #F5F5F5;
  --faqih-card: #FFFFFF;
  --faqih-ink: #14372B;
  --faqih-muted: #667B72;
  --faqih-line: rgba(15, 61, 46, 0.12);
  --faqih-shadow: 0 18px 44px rgba(15, 61, 46, 0.12);
  --faqih-soft-shadow: 0 10px 28px rgba(15, 61, 46, 0.08);
}

html,
body {
  background: var(--faqih-cream) !important;
  color: var(--faqih-ink) !important;
  font-family: "Cairo", "Noto Sans Arabic", "Inter", sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html.dark,
html.dark body,
.dark body {
  background: var(--faqih-green) !important;
  color: #F7FBF8 !important;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 440, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.primary-btn,
.welcome-start-btn,
.login-submit-btn,
.questioner-hero-cta,
.quote-share-action-btn,
.developer-primary-btn,
.sheikh-elite-primary-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

button:active,
.primary-btn:active,
.welcome-start-btn:active,
.login-submit-btn:active,
.questioner-hero-cta:active,
.quote-share-action-btn:active,
.developer-primary-btn:active,
.sheikh-elite-primary-btn:active {
  transform: translateY(1px) scale(0.985) !important;
}

input,
textarea,
select,
.login-input,
.profile-v2-input,
.profile-v2-select,
.questioner-home-search-input {
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
  border-radius: 18px !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: rgba(201, 167, 93, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, 0.16) !important;
}

.welcome-screen,
.login-screen,
.verify-screen,
.profile-v2-screen {
  background: var(--faqih-green) !important;
  color: #fff !important;
}

.welcome-bg-layer,
.welcome-bg-overlay,
.welcome-glow,
.login-bg-layer,
.profile-v2-bg-pattern {
  display: none !important;
}

.welcome-content {
  justify-content: center !important;
  gap: 22px !important;
  padding: 28px 22px !important;
}

.welcome-logo-shell,
.login-brand-logo-shell,
.verify-logo-shell,
.profile-v2-logo-shell,
.global-loader-logo-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.welcome-turban-logo,
.login-mark-image,
.verify-logo-turban,
.profile-v2-logo,
.global-loader-logo,
.profile-celebrate-logo {
  object-fit: contain !important;
  border-radius: 28px !important;
  filter: none !important;
  animation: faqihIdentityBreath 3.8s ease-in-out infinite;
}

.welcome-turban-logo {
  width: min(72vw, 280px) !important;
  height: auto !important;
  max-height: 280px !important;
}

.welcome-wordmark-logo {
  display: none !important;
}

.welcome-title,
.login-title,
.verify-title,
.profile-v2-title {
  color: #fff !important;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

.welcome-subtitle,
.login-subtitle,
.verify-subtitle,
.profile-v2-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.9 !important;
}

.welcome-features {
  display: none !important;
}

.welcome-start-btn,
.login-submit-btn,
.verify-primary-btn,
.profile-v2-submit-btn {
  background: #fff !important;
  color: var(--faqih-green) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
  font-weight: 800 !important;
}

.login-form-card,
.profile-v2-card,
.verify-card,
.global-loader-card,
.profile-celebrate-card {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--faqih-ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 28px !important;
  box-shadow: var(--faqih-shadow) !important;
  backdrop-filter: blur(18px);
}

.login-field,
.profile-v2-field,
.profile-v2-choice,
.profile-v2-marja-option {
  background: #F9FBFA !important;
  border: 1px solid var(--faqih-line) !important;
  color: var(--faqih-ink) !important;
}

.profile-v2-choice.is-selected,
.profile-v2-marja-option.is-selected,
.profile-v2-option.selected,
.profile-gender-option.active,
.marja-option.active {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border-color: var(--faqih-gold) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, 0.18) !important;
}

.questioner-home-main,
.dashboard-main,
.settings-screen,
.library-screen,
.chat-screen,
.fatwas-screen,
.developer-shell,
#tab-home,
#tab-library,
#tab-consultations,
#tab-settings {
  background: linear-gradient(180deg, #FAFBFA 0%, #F0F5F2 100%) !important;
  color: var(--faqih-ink) !important;
}

.dark .questioner-home-main,
.dark .dashboard-main,
.dark .settings-screen,
.dark .library-screen,
.dark .chat-screen,
.dark .fatwas-screen,
.dark .developer-shell,
.dark #tab-home,
.dark #tab-library,
.dark #tab-consultations,
.dark #tab-settings {
  background: var(--faqih-green) !important;
  color: #F7FBF8 !important;
}

#questionerHomeHeader.questioner-home-header {
  padding: 10px 14px 6px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 82px !important;
  padding: 12px 14px !important;
  border-radius: 26px !important;
  background: var(--faqih-green) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  box-shadow: 0 16px 42px rgba(15, 61, 46, 0.24) !important;
  overflow: hidden;
}

#questionerHomeHeader .questioner-home-header-card::after {
  content: "";
  position: absolute;
  inset: auto 18px -44px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(201, 167, 93, 0.12);
  pointer-events: none;
}

#questionerHomeHeader .questioner-home-profile-ring {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(201, 167, 93, 0.72) !important;
  background: #fff !important;
}

#questionerHomeHeader .questioner-home-welcome {
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.76rem !important;
  margin: 0 !important;
}

#questionerHomeHeader .questioner-home-username {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  width: 70px !important;
  height: 54px !important;
  background: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.34) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

#questionerHomeHeader .questioner-home-notify {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.questioner-hero-card,
.questioner-home-section,
.questioner-home-instant-card,
.settings-card,
.consultation-card,
.fatwa-card,
.quote-card,
.library-card,
.chat-list-card,
.sheikh-card,
.profile-card {
  background: var(--faqih-card) !important;
  color: var(--faqih-ink) !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 28px !important;
  box-shadow: var(--faqih-soft-shadow) !important;
}

.dark .questioner-hero-card,
.dark .questioner-home-section,
.dark .questioner-home-instant-card,
.dark .settings-card,
.dark .consultation-card,
.dark .fatwa-card,
.dark .quote-card,
.dark .library-card,
.dark .chat-list-card,
.dark .sheikh-card,
.dark .profile-card {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #F7FBF8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.questioner-hero-card-v2,
.questioner-home-quote-hero {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border-color: rgba(201, 167, 93, 0.28) !important;
}

.questioner-home-quote-text,
.questioner-home-quote-source,
.questioner-home-quote-reference {
  color: inherit !important;
}

.questioner-home-instant-card {
  border-color: rgba(201, 167, 93, 0.28) !important;
  position: relative;
  overflow: hidden;
}

.questioner-home-instant-card::before,
.quote-card::before,
.settings-card::before {
  background: var(--faqih-gold) !important;
}

.questioner-home-instant-cta,
.questioner-hero-cta,
.primary-action,
.chat-send-btn,
.developer-primary-btn {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.32) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(15, 61, 46, 0.18) !important;
  font-weight: 800 !important;
}

.secondary-action,
.quote-action-btn,
.quote-nav-btn,
.quote-main-action {
  background: #fff !important;
  color: var(--faqih-green) !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.questioner-home-section-title,
.settings-title,
.library-title,
.quote-card-title,
.section-title,
h1,
h2,
h3 {
  color: var(--faqih-green) !important;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
  letter-spacing: -0.018em;
}

.dark .questioner-home-section-title,
.dark .settings-title,
.dark .library-title,
.dark .quote-card-title,
.dark .section-title,
.dark h1,
.dark h2,
.dark h3 {
  color: #fff !important;
}

.questioner-home-section-subtitle,
.settings-subtitle,
.library-subtitle,
.muted,
.quote-reference {
  color: var(--faqih-muted) !important;
  line-height: 1.8 !important;
}

.app-bottom-nav,
.dashboard-bottom-nav,
.sheikh-bottom-nav,
.sheikh-elite-bottom-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -10px 30px rgba(15, 61, 46, 0.10) !important;
  backdrop-filter: blur(18px);
}

.dark .app-bottom-nav,
.dark .dashboard-bottom-nav,
.dark .sheikh-bottom-nav,
.dark .sheikh-elite-bottom-nav {
  background: rgba(10, 45, 34, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.app-bottom-nav button,
.dashboard-bottom-nav button,
.sheikh-bottom-nav button,
.sheikh-elite-bottom-nav button,
.app-bottom-nav .nav-item,
.sheikh-elite-nav-item {
  color: var(--faqih-muted) !important;
  border-radius: 18px !important;
  min-height: 54px;
}

.app-bottom-nav button.active,
.dashboard-bottom-nav button.active,
.sheikh-bottom-nav button.active,
.sheikh-elite-bottom-nav button.active,
.app-bottom-nav .nav-item.active,
.sheikh-elite-nav-item.active {
  color: var(--faqih-green) !important;
  background: var(--faqih-green-soft) !important;
  font-weight: 800 !important;
}

.dark .app-bottom-nav button.active,
.dark .dashboard-bottom-nav button.active,
.dark .sheikh-bottom-nav button.active,
.dark .sheikh-elite-bottom-nav button.active,
.dark .app-bottom-nav .nav-item.active,
.dark .sheikh-elite-nav-item.active {
  color: #fff !important;
  background: rgba(201, 167, 93, 0.18) !important;
}

.quote-card {
  padding: 28px 22px !important;
  text-align: center !important;
}

.quote-card-badge,
.quote-day-badge,
.library-mode-btn.active {
  background: var(--faqih-green-soft) !important;
  color: var(--faqih-green) !important;
  border: 1px solid rgba(15, 61, 46, 0.12) !important;
  border-radius: 999px !important;
}

.quote-text {
  color: var(--faqih-green) !important;
  font-size: clamp(1.35rem, 6vw, 2rem) !important;
  line-height: 2.05 !important;
  font-weight: 800 !important;
  max-width: 95%;
  margin-inline: auto;
}

.quote-source {
  color: var(--faqih-green) !important;
  font-weight: 800 !important;
}

.quote-share-dialog {
  border-radius: 30px !important;
  background: #fff !important;
  border: 1px solid var(--faqih-line) !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  width: min(82vw, 420px) !important;
  aspect-ratio: 1 / 1 !important;
  padding: 44px 34px !important;
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 34px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

.quote-share-pattern,
.quote-share-glow {
  display: none !important;
}

.quote-share-brand-title {
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}

.quote-share-brand-subtitle {
  color: rgba(201, 167, 93, 0.86) !important;
  font-weight: 800 !important;
}

.quote-share-body {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.quote-share-text {
  width: min(100%, 76%) !important;
  color: #fff !important;
  font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
  line-height: 1.75 !important;
  font-weight: 800 !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: clamp(1.14rem, 4.9vw, 1.55rem) !important;
  width: min(100%, 88%) !important;
}

.quote-share-source,
.quote-share-reference,
.quote-share-date,
.quote-share-watermark {
  color: rgba(255, 255, 255, 0.72) !important;
}

.quote-share-watermark {
  color: rgba(201, 167, 93, 0.9) !important;
  font-weight: 800 !important;
}

.settings-avatar-frame,
.user-avatar,
.profile-avatar,
.chat-avatar,
.sheikh-avatar {
  border-color: rgba(201, 167, 93, 0.52) !important;
  box-shadow: none !important;
}

.settings-avatar-img,
.user-avatar img,
.profile-avatar img,
.chat-avatar img,
.sheikh-avatar img {
  object-fit: cover !important;
}

.toast,
.app-toast,
.notification-toast {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: var(--faqih-shadow) !important;
}

.global-loader-backdrop {
  background: rgba(15, 61, 46, 0.42) !important;
  backdrop-filter: blur(16px) !important;
}

.global-loader-card {
  max-width: 300px !important;
  text-align: center !important;
}

.global-loader-logo {
  width: 92px !important;
  height: 92px !important;
  margin-inline: auto !important;
}

.sheikh-elite-page,
#sheikhDashboardView {
  background: #F8FAF9 !important;
  color: var(--faqih-ink) !important;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
}

.sheikh-elite-header,
.sheikh-dashboard-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--faqih-line) !important;
  backdrop-filter: blur(18px) !important;
}

.sheikh-elite-hero-card,
.sheikh-hero-card,
.hero-gradient {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 44px rgba(15, 61, 46, 0.20) !important;
}

.instant-question-card,
.sheikh-elite-question-card.instant,
.question-card.instant {
  background: #ECF7F1 !important;
  border: 1px solid rgba(15, 61, 46, 0.24) !important;
  border-right: 5px solid var(--faqih-green) !important;
}

.instant-question-card .start-answer-btn,
.sheikh-elite-question-card.instant .start-answer-btn,
.question-card.instant .start-answer-btn {
  background: var(--faqih-green) !important;
  color: #fff !important;
}

@keyframes faqihIdentityBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

@media (hover: hover) {
  .questioner-home-section:hover,
  .questioner-home-instant-card:hover,
  .quote-card:hover,
  .settings-card:hover,
  .fatwa-card:hover,
  .consultation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--faqih-shadow) !important;
  }

  .welcome-start-btn:hover,
  .login-submit-btn:hover,
  .questioner-hero-cta:hover,
  .quote-share-action-btn:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .welcome-turban-logo {
    width: min(74vw, 250px) !important;
  }

  #questionerHomeHeader .questioner-home-header-card {
    min-height: 76px !important;
    padding: 10px 12px !important;
    border-radius: 23px !important;
  }

  #questionerHomeHeader .questioner-home-logo-wrap {
    width: 62px !important;
    height: 48px !important;
  }

  .questioner-home-main,
  #tab-home {
    padding-top: 4px !important;
  }

  .quote-share-capture {
    width: min(86vw, 360px) !important;
    padding: 36px 26px !important;
    border-radius: 28px !important;
  }
}

/* =========================================================
   Faqih Web Final Identity Pass - green/gold minimal PWA
   Web only. Android project is intentionally untouched.
   ========================================================= */
:root {
  --faqih-green: #0F3D2E;
  --faqih-green-deep: #0A2F24;
  --faqih-green-soft: rgba(15, 61, 46, 0.08);
  --faqih-gold: #C9A75D;
  --faqih-white: #F5F5F5;
  --faqih-cream: #FBFAF6;
  --faqih-ink: #10241D;
  --faqih-muted: #617169;
  --faqih-line: rgba(15, 61, 46, 0.12);
  --faqih-card: rgba(255, 255, 255, 0.96);
  --faqih-shadow-soft: 0 14px 34px rgba(15, 61, 46, 0.10);
  --faqih-shadow-tap: 0 10px 24px rgba(15, 61, 46, 0.16);
}

html,
body {
  background: var(--faqih-white) !important;
  color: var(--faqih-ink) !important;
  font-family: "Cairo", "Inter", "Noto Sans Arabic", sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.dark body,
body.dark {
  background: var(--faqih-green) !important;
  color: #F7FAF8 !important;
}

body::selection {
  background: rgba(201, 167, 93, 0.28);
  color: var(--faqih-green);
}

#welcomeView {
  background: var(--faqih-green) !important;
  color: #fff !important;
}

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

.welcome-content {
  padding-inline: 26px !important;
  gap: 28px !important;
}

.welcome-logo-shell {
  width: min(64vw, 270px) !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline: auto !important;
  border-radius: 34px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(201, 167, 93, 0.20) !important;
  display: grid !important;
  place-items: center !important;
}

.welcome-turban-logo {
  width: 92% !important;
  height: 92% !important;
  object-fit: contain !important;
  filter: none !important;
}

.welcome-wordmark-logo {
  display: none !important;
}

.welcome-title,
.welcome-subtitle {
  color: #fff !important;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.9 !important;
}

.welcome-start-btn,
.login-submit-btn,
#profileSaveBtn,
.profile-v2-save-btn,
.questioner-hero-cta,
.questioner-home-instant-cta,
.primary-action,
.quote-share-action-btn.primary,
.chat-send-btn,
.ask-page-submit,
.developer-primary-btn {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: var(--faqih-shadow-tap) !important;
  font-weight: 800 !important;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease !important;
}

.welcome-start-btn {
  background: #fff !important;
  color: var(--faqih-green) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}

.welcome-start-btn:active,
.login-submit-btn:active,
#profileSaveBtn:active,
.profile-v2-save-btn:active,
.questioner-hero-cta:active,
.quote-share-action-btn:active,
.chat-send-btn:active {
  transform: scale(0.98) !important;
}

@media (hover: hover) {
  .welcome-start-btn:hover,
  .login-submit-btn:hover,
  #profileSaveBtn:hover,
  .profile-v2-save-btn:hover,
  .questioner-hero-cta:hover,
  .quote-share-action-btn:hover,
  .chat-send-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 36px rgba(15, 61, 46, 0.18) !important;
  }
}

.login-screen,
.profile-shell-v2,
.settings-shell,
.questioner-home-main,
#tab-home,
#tab-library,
#tab-settings,
#tab-chat {
  background: var(--faqih-white) !important;
}

.login-form-shell,
.profile-v2-card,
.settings-card,
.questioner-home-section,
.questioner-home-instant-card,
.fatwa-card,
.library-card,
.quote-card,
.consultation-card,
.chat-list-card,
.sheikh-card,
.ask-page-form,
.ask-page-target,
.ask-page-intro {
  background: var(--faqih-card) !important;
  color: var(--faqih-ink) !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 28px !important;
  box-shadow: var(--faqih-shadow-soft) !important;
}

input,
textarea,
select,
.form-input {
  background: #fff !important;
  color: var(--faqih-ink) !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus,
.form-input:focus {
  border-color: rgba(201, 167, 93, 0.70) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, 0.14) !important;
}

#questionerHomeHeader.questioner-home-header {
  padding: 6px 12px 4px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 66px !important;
  border-radius: 24px !important;
  padding: 9px 12px !important;
  background: var(--faqih-green) !important;
  border: 1px solid rgba(201, 167, 93, 0.32) !important;
  box-shadow: 0 16px 38px rgba(15, 61, 46, 0.18) !important;
}

#questionerHomeHeader .questioner-home-profile-ring {
  background: #fff !important;
  border: 2px solid rgba(201, 167, 93, 0.78) !important;
  box-shadow: none !important;
}

#questionerHomeHeader .questioner-home-welcome {
  color: rgba(255, 255, 255, 0.74) !important;
  font-weight: 700 !important;
}

#questionerHomeHeader .questioner-home-username {
  color: #fff !important;
  font-weight: 800 !important;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  width: 76px !important;
  height: 52px !important;
  max-width: 26vw !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.34) !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.02) !important;
  filter: none !important;
  border-radius: 0 !important;
}

#questionerHomeHeader .questioner-home-notify {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

#tab-home.questioner-home-main {
  padding: 6px 14px 110px !important;
  gap: 16px !important;
}

.questioner-section-kicker,
.questioner-hero-badge,
.quote-card-badge,
.quote-day-badge,
.library-mode-btn.active {
  background: rgba(201, 167, 93, 0.14) !important;
  color: var(--faqih-green) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.questioner-home-quote-hero {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 1px solid rgba(201, 167, 93, 0.34) !important;
  box-shadow: 0 18px 42px rgba(15, 61, 46, 0.18) !important;
}

.questioner-home-quote-hero .questioner-section-kicker,
.questioner-home-quote-hero .questioner-hero-badge {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.questioner-home-quote-text {
  color: #fff !important;
  font-size: clamp(1.22rem, 5vw, 1.78rem) !important;
  line-height: 1.95 !important;
  font-weight: 800 !important;
}

.questioner-home-quote-source,
.questioner-home-quote-reference {
  color: rgba(255, 255, 255, 0.76) !important;
}

.questioner-home-instant-card {
  background: #fff !important;
  border-color: rgba(15, 61, 46, 0.14) !important;
}

.questioner-home-instant-copy strong {
  color: var(--faqih-green) !important;
}

.questioner-home-instant-copy p,
.questioner-section-note,
.settings-subtitle,
.library-subtitle,
.profile-v2-card-text,
.quote-reference,
.quote-share-reference {
  color: var(--faqih-muted) !important;
}

.app-bottom-nav,
.dashboard-bottom-nav,
.sheikh-bottom-nav,
.sheikh-elite-bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 61, 46, 0.10) !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -12px 34px rgba(15, 61, 46, 0.12) !important;
  backdrop-filter: blur(18px) !important;
}

.app-bottom-nav button.active,
.dashboard-bottom-nav button.active,
.sheikh-bottom-nav button.active,
.sheikh-elite-bottom-nav button.active,
.app-bottom-nav .nav-item.active,
.sheikh-elite-nav-item.active {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border-radius: 18px !important;
}

.quote-card {
  min-height: 360px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 30px 24px !important;
  text-align: center !important;
  overflow: hidden !important;
}

.quote-text {
  color: var(--faqih-green) !important;
  font-size: clamp(1.45rem, 6.5vw, 2.15rem) !important;
  line-height: 2.05 !important;
  font-weight: 800 !important;
  max-width: 92% !important;
  margin: 24px auto !important;
}

.quote-source {
  color: var(--faqih-green) !important;
  font-weight: 800 !important;
}

.quote-action-bar {
  background: #fff !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--faqih-shadow-soft) !important;
  padding: 10px !important;
}

.quote-action-btn {
  border-radius: 18px !important;
  background: var(--faqih-green-soft) !important;
  color: var(--faqih-green) !important;
}

.quote-action-btn.is-active {
  background: var(--faqih-green) !important;
  color: #fff !important;
}

.quote-share-dialog {
  background: var(--faqih-cream) !important;
  border: 1px solid var(--faqih-line) !important;
  border-radius: 30px !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  width: min(86vw, 440px) !important;
  aspect-ratio: 1 / 1 !important;
  padding: clamp(34px, 8vw, 58px) !important;
  background: var(--faqih-green) !important;
  color: #fff !important;
  border-radius: 32px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.quote-share-pattern,
.quote-share-glow {
  display: none !important;
}

.quote-share-topline,
.quote-share-footer {
  text-align: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.quote-share-brand-title {
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 800 !important;
}

.quote-share-brand-subtitle,
.quote-share-watermark {
  color: var(--faqih-gold) !important;
  font-weight: 800 !important;
}

.quote-share-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 26px !important;
  text-align: center !important;
}

.quote-share-text {
  width: min(100%, 74%) !important;
  color: #fff !important;
  font-size: clamp(1.42rem, 6.4vw, 2.35rem) !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
  white-space: pre-line !important;
}

.quote-share-capture.is-medium .quote-share-text {
  width: min(100%, 82%) !important;
  font-size: clamp(1.18rem, 5.2vw, 1.78rem) !important;
}

.quote-share-capture.is-long .quote-share-text {
  width: min(100%, 88%) !important;
  font-size: clamp(1.02rem, 4.3vw, 1.36rem) !important;
}

.quote-share-source,
.quote-share-reference,
.quote-share-date {
  color: rgba(255, 255, 255, 0.70) !important;
}

@media (max-width: 480px) {
  #questionerHomeHeader.questioner-home-header {
    padding-inline: 10px !important;
  }

  #questionerHomeHeader .questioner-home-header-card {
    grid-template-columns: minmax(0, 1fr) 68px 36px !important;
    min-height: 62px !important;
    padding: 8px 10px !important;
  }

  #questionerHomeHeader .questioner-home-logo-wrap {
    width: 68px !important;
    height: 48px !important;
  }

  #tab-home.questioner-home-main {
    padding-inline: 12px !important;
  }

  .quote-card {
    min-height: 340px !important;
  }
}

/* =========================================================
   Faqih Quote Share Card - portrait social image, web only
   ========================================================= */
.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  position: relative !important;
  width: min(86vw, 440px) !important;
  aspect-ratio: 4 / 5 !important;
  padding: clamp(24px, 6vw, 34px) clamp(22px, 5.5vw, 34px) !important;
  overflow: hidden !important;
  border-radius: 34px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 50% 60%, rgba(201, 167, 93, 0.12), transparent 54%),
    linear-gradient(145deg, #145743 0%, var(--faqih-green) 48%, #06241B 100%) !important;
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  box-shadow: 0 24px 70px rgba(6, 36, 27, 0.28) !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto auto !important;
  gap: clamp(12px, 3vw, 18px) !important;
  isolation: isolate !important;
}

.quote-share-capture.theme-light {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 50% 64%, rgba(201, 167, 93, 0.10), transparent 56%),
    linear-gradient(145deg, #1D604C 0%, #0F3D2E 56%, #08291F 100%) !important;
}

.quote-share-capture.theme-gold {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 50% 60%, rgba(249, 221, 142, 0.18), transparent 56%),
    linear-gradient(145deg, #174634 0%, #0F3D2E 46%, #241A07 100%) !important;
}

.quote-share-pattern {
  display: block !important;
  position: absolute !important;
  inset: -18% !important;
  opacity: 0.14 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(30deg, rgba(201, 167, 93, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(201, 167, 93, 0.18) 87.5%),
    linear-gradient(150deg, rgba(201, 167, 93, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(201, 167, 93, 0.18) 87.5%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.10) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.10) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.10) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.10) 87.5%);
  background-position: 0 0, 0 0, 34px 58px, 34px 58px;
  background-size: 68px 116px;
  transform: rotate(-8deg) scale(1.08);
  z-index: -3;
}

.quote-share-vignette {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 22%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 53%, transparent 0 43%, rgba(0, 0, 0, 0.18) 100%);
  z-index: -2;
}

.quote-share-glow {
  display: none !important;
}

.quote-share-topline {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  text-align: center !important;
  min-height: 106px !important;
}

.quote-share-logo {
  width: clamp(64px, 15vw, 86px) !important;
  height: clamp(64px, 15vw, 86px) !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18)) !important;
}

.quote-share-brand-title {
  color: rgba(245, 245, 245, 0.96) !important;
  font-size: clamp(1.2rem, 4.5vw, 1.65rem) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.quote-share-brand-subtitle {
  color: rgba(245, 245, 245, 0.72) !important;
  font-size: clamp(0.74rem, 2.8vw, 0.9rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.quote-share-gold-divider {
  width: min(58%, 190px) !important;
  height: 16px !important;
  display: grid !important;
  grid-template-columns: 1fr 16px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 4px auto 2px !important;
}

.quote-share-gold-divider::before,
.quote-share-gold-divider::after {
  content: "" !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(201, 167, 93, 0.86), transparent) !important;
}

.quote-share-gold-divider i {
  width: 10px !important;
  height: 10px !important;
  margin: auto !important;
  display: block !important;
  transform: rotate(45deg) !important;
  background: var(--faqih-gold) !important;
  box-shadow: 0 0 16px rgba(201, 167, 93, 0.42) !important;
}

.quote-share-body {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.quote-share-arch-panel {
  position: relative !important;
  width: 100% !important;
  min-height: min(55vw, 270px) !important;
  padding: clamp(28px, 7vw, 42px) clamp(18px, 5vw, 28px) clamp(24px, 6vw, 34px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(12px, 3vw, 18px) !important;
  border: 1.5px solid rgba(201, 167, 93, 0.72) !important;
  border-radius: 46% 46% 26px 26px / 20% 20% 26px 26px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(8, 40, 31, 0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

.quote-share-arch-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 12px !important;
  border-radius: inherit !important;
  border: 1px solid rgba(201, 167, 93, 0.16) !important;
  pointer-events: none !important;
}

.quote-share-arch-panel::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  opacity: 0.08 !important;
  background:
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(201, 167, 93, 0.45) 16px 17px, transparent 17px 32px);
  pointer-events: none !important;
}

.quote-share-ornament {
  position: relative !important;
  z-index: 1 !important;
  color: var(--faqih-gold) !important;
  font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  line-height: 1 !important;
}

.quote-share-text {
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 82%) !important;
  margin: 0 auto !important;
  color: #F5F5F5 !important;
  font-size: clamp(1.72rem, 7.3vw, 2.55rem) !important;
  line-height: 1.62 !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: pre-line !important;
  text-wrap: balance !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24) !important;
}

.quote-share-capture.is-medium .quote-share-text {
  width: min(100%, 88%) !important;
  font-size: clamp(1.38rem, 5.8vw, 2.02rem) !important;
}

.quote-share-capture.is-long .quote-share-text {
  width: min(100%, 92%) !important;
  font-size: clamp(1.08rem, 4.6vw, 1.52rem) !important;
  line-height: 1.82 !important;
}

.quote-share-source-stack {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  justify-items: center !important;
  gap: 7px !important;
  width: 100% !important;
}

.quote-share-source {
  color: rgba(245, 245, 245, 0.84) !important;
  font-size: clamp(0.88rem, 3.2vw, 1.05rem) !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.quote-share-reference {
  width: min(100%, 90%) !important;
  color: rgba(245, 245, 245, 0.64) !important;
  font-size: clamp(0.68rem, 2.45vw, 0.8rem) !important;
  line-height: 1.75 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.quote-share-attribution {
  color: rgba(201, 167, 93, 0.94) !important;
  font-size: clamp(0.75rem, 2.65vw, 0.88rem) !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
}

.quote-share-cta {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--faqih-gold) !important;
  font-size: clamp(0.9rem, 3.2vw, 1.08rem) !important;
  line-height: 1.4 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.quote-share-cta::before,
.quote-share-cta::after {
  content: "" !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(201, 167, 93, 0.62), transparent) !important;
}

.quote-share-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  text-align: start !important;
}

.quote-share-footer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.quote-share-footer-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  flex: 0 0 auto !important;
}

.quote-share-footer-copy {
  display: grid !important;
  gap: 1px !important;
  min-width: 0 !important;
}

.quote-share-footer-copy strong {
  color: rgba(245, 245, 245, 0.96) !important;
  font-size: 0.88rem !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

.quote-share-footer-copy small {
  color: rgba(201, 167, 93, 0.92) !important;
  font-size: 0.68rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.quote-share-date {
  color: rgba(245, 245, 245, 0.58) !important;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.quote-share-watermark {
  color: var(--faqih-gold) !important;
}

@media (max-width: 480px) {
  .quote-share-capture,
  .quote-share-capture.theme-dark,
  .quote-share-capture.theme-light,
  .quote-share-capture.theme-gold {
    width: min(90vw, 390px) !important;
    border-radius: 28px !important;
  }

  .quote-share-topline {
    min-height: 94px !important;
  }

  .quote-share-arch-panel {
    min-height: 238px !important;
  }
}

/* Faqih Quote Reading Card - refreshed web identity */
.quote-card {
  position: relative;
  overflow: hidden;
  background: #0F3D2E !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(201, 167, 93, 0.32) !important;
  box-shadow: 0 22px 50px rgba(15, 61, 46, 0.18) !important;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(201, 167, 93, 0.12), transparent 34%),
    radial-gradient(circle at 85% 78%, rgba(245, 245, 245, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%);
  pointer-events: none;
}

.quote-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: url("assets/faqih-logo-green-transparent.png") center / contain no-repeat;
  opacity: 0.16;
  filter: saturate(1.05);
  pointer-events: none;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-day-badge,
.quote-card-badge,
.quote-category {
  background: rgba(245, 245, 245, 0.08) !important;
  color: #F5F5F5 !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  box-shadow: none !important;
}

.quote-day-badge::before,
.quote-card-badge::before {
  background: #C9A75D !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, 0.14) !important;
}

.quote-text {
  color: #F5F5F5 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.quote-source {
  color: #C9A75D !important;
  font-size: 1.04rem !important;
  font-weight: 800 !important;
}

.quote-reference {
  color: rgba(245, 245, 245, 0.72) !important;
  font-weight: 600 !important;
}

.quote-action-bar {
  background: rgba(245, 245, 245, 0.96) !important;
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  box-shadow: 0 18px 38px rgba(15, 61, 46, 0.12) !important;
}

.quote-action-btn {
  color: #0F3D2E !important;
}

.quote-action-btn:hover,
.quote-action-btn:focus-visible {
  background: rgba(15, 61, 46, 0.08) !important;
}

/* Faqih Web Identity v5 - final visual system override */
:root {
  --faqih-primary: #0F3D2E;
  --faqih-primary-2: #145342;
  --faqih-soft: #F5F5F5;
  --faqih-card: #FFFFFF;
  --faqih-gold: #C9A75D;
  --faqih-ink: #12261F;
  --faqih-muted: #66746E;
  --faqih-border: rgba(15, 61, 46, 0.12);
  --faqih-shadow: 0 18px 42px rgba(15, 61, 46, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--faqih-soft) !important;
  color: var(--faqih-ink) !important;
  font-family: "Cairo", "Tajawal", "Inter", system-ui, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
.tab-button,
.nav-item,
.questioner-hero-cta,
.welcome-start-btn,
.quote-action-btn {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease !important;
}

button:active,
.tab-button:active,
.nav-item:active,
.questioner-hero-cta:active,
.welcome-start-btn:active,
.quote-action-btn:active {
  transform: translateY(1px) scale(0.985);
}

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

@keyframes faqihLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.015);
  }
}

@keyframes faqihSoftPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

.screen:not(.hidden),
.tab-view:not(.hidden),
.auth-panel:not(.hidden),
.modal:not(.hidden) .modal-card {
  animation: faqihFadeUp 360ms ease both;
}

.welcome-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 167, 93, 0.18), transparent 30%),
    var(--faqih-primary) !important;
  color: var(--faqih-soft) !important;
}

.welcome-screen::before,
.welcome-screen::after {
  opacity: 0.12 !important;
}

.welcome-content {
  gap: 18px !important;
  padding-inline: 26px !important;
}

.welcome-logo-shell {
  width: min(78vw, 300px) !important;
  min-height: 190px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.welcome-turban-logo {
  width: min(58vw, 230px) !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.18));
  animation: faqihLogoFloat 4.8s ease-in-out infinite;
}

.welcome-wordmark-logo,
.login-wordmark-image,
.verify-logo-wordmark,
.verify-wordmark-image,
.profile-celebrate-wordmark {
  display: none !important;
}

.verify-logo-turban,
.global-loader-wordmark {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
}

.welcome-title,
.welcome-subtitle {
  color: var(--faqih-soft) !important;
}

.welcome-start-btn,
#emailLoginBtn,
#signupSubmitBtn,
.verify-login-btn,
.questioner-hero-cta,
.profile-save-btn,
.developer-save-btn {
  background: var(--faqih-primary) !important;
  color: var(--faqih-soft) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, 0.18) !important;
  font-weight: 900 !important;
}

.welcome-start-btn {
  background: var(--faqih-gold) !important;
  color: var(--faqih-primary) !important;
  box-shadow: 0 14px 34px rgba(201, 167, 93, 0.22) !important;
}

.welcome-start-btn:hover,
#emailLoginBtn:hover,
#signupSubmitBtn:hover,
.verify-login-btn:hover,
.questioner-hero-cta:hover,
.profile-save-btn:hover,
.developer-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 61, 46, 0.2) !important;
}

.login-screen,
.verify-email-screen,
.profile-completion-screen {
  background:
    radial-gradient(circle at 85% 8%, rgba(201, 167, 93, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfbf8, var(--faqih-soft)) !important;
}

.login-brand-card,
.verify-brand-card,
.profile-completion-card,
.login-form-shell,
.signup-form-shell {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid var(--faqih-border) !important;
  border-radius: 30px !important;
  box-shadow: var(--faqih-shadow) !important;
}

.login-mark-orb,
.verify-mark-orb {
  background: rgba(15, 61, 46, 0.06) !important;
  border: 1px solid rgba(201, 167, 93, 0.24) !important;
  box-shadow: none !important;
}

.login-mark-image,
.verify-mark-image {
  width: 84px !important;
  height: 84px !important;
  object-fit: contain !important;
}

.login-field,
.profile-input,
.profile-select,
.settings-input,
.developer-input,
.developer-select,
.developer-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border-radius: 18px !important;
  border-color: rgba(15, 61, 46, 0.14) !important;
  background: rgba(245, 245, 245, 0.9) !important;
  color: var(--faqih-ink) !important;
}

.login-field:focus,
.profile-input:focus,
.profile-select:focus,
.settings-input:focus,
.developer-input:focus,
.developer-select:focus,
.developer-textarea:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: rgba(201, 167, 93, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, 0.14) !important;
}

.questioner-home-main,
.questioner-tab-content,
.library-view,
.settings-view,
.consultations-view {
  background:
    radial-gradient(circle at 12% 4%, rgba(201, 167, 93, 0.1), transparent 28%),
    var(--faqih-soft) !important;
}

.questioner-home-header-card {
  min-height: 116px !important;
  padding: 18px 18px !important;
  border-radius: 28px !important;
  background: var(--faqih-primary) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  box-shadow: 0 18px 42px rgba(15, 61, 46, 0.16) !important;
  overflow: hidden !important;
}

.questioner-home-header-card::before {
  opacity: 0.08 !important;
}

.questioner-home-header-logo {
  width: 74px !important;
  height: 74px !important;
  border-radius: 23px !important;
  object-fit: cover !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16) !important;
}

.questioner-home-greeting,
.questioner-home-name,
.questioner-home-subtitle {
  color: var(--faqih-soft) !important;
}

.questioner-home-name {
  color: var(--faqih-gold) !important;
}

.questioner-hero-card,
.instant-consultation-card,
.consultation-card,
.fatwa-card,
.settings-card,
.profile-card,
.library-card,
.sheikh-card,
.quote-card {
  border-radius: 26px !important;
  border: 1px solid rgba(15, 61, 46, 0.1) !important;
  box-shadow: 0 14px 34px rgba(15, 61, 46, 0.09) !important;
}

.questioner-hero-card,
.instant-consultation-card {
  background: #ffffff !important;
  color: var(--faqih-ink) !important;
}

.questioner-hero-title,
.section-title,
.library-title,
.settings-title,
.profile-title {
  color: var(--faqih-primary) !important;
  letter-spacing: -0.03em;
}

.questioner-hero-description,
.section-subtitle,
.library-subtitle,
.settings-subtitle,
.profile-subtitle {
  color: var(--faqih-muted) !important;
  line-height: 1.8 !important;
}

.questioner-hero-side {
  background: rgba(15, 61, 46, 0.06) !important;
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  color: var(--faqih-primary) !important;
}

.questioner-hero-side-logo {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
}

.category-pill,
.category-card,
.quote-topic-chip,
.filter-chip {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 61, 46, 0.1) !important;
  color: var(--faqih-primary) !important;
  box-shadow: 0 10px 24px rgba(15, 61, 46, 0.07) !important;
}

.category-pill.is-active,
.category-card.is-active,
.quote-topic-chip.is-active,
.filter-chip.active {
  background: var(--faqih-primary) !important;
  color: var(--faqih-soft) !important;
  border-color: rgba(201, 167, 93, 0.34) !important;
}

.app-bottom-nav,
.questioner-bottom-nav,
.sheikh-bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 61, 46, 0.1) !important;
  box-shadow: 0 -12px 34px rgba(15, 61, 46, 0.1) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-item,
.bottom-nav-item,
.sheikh-nav-item {
  color: rgba(15, 61, 46, 0.62) !important;
}

.nav-item.active,
.bottom-nav-item.active,
.sheikh-nav-item.active {
  color: var(--faqih-primary) !important;
}

.nav-item.active .nav-icon,
.bottom-nav-item.active .nav-icon,
.sheikh-nav-item.active .nav-icon {
  background: rgba(15, 61, 46, 0.1) !important;
  border-color: rgba(201, 167, 93, 0.24) !important;
}

.material-symbols-outlined,
.material-icons {
  font-family: "Material Symbols Outlined", "Material Icons" !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  direction: ltr !important;
  -webkit-font-feature-settings: "liga" !important;
  -webkit-font-smoothing: antialiased !important;
  font-feature-settings: "liga" !important;
}

.toast,
.app-toast,
.loading-card {
  background: rgba(15, 61, 46, 0.96) !important;
  color: var(--faqih-soft) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  box-shadow: 0 18px 42px rgba(15, 61, 46, 0.2) !important;
}

@media (max-width: 520px) {
  .welcome-logo-shell {
    min-height: 170px !important;
  }

  .welcome-turban-logo {
    width: min(62vw, 218px) !important;
  }

  .questioner-home-header-card {
    min-height: 104px !important;
    padding: 14px 14px !important;
  }

  .questioner-home-header-logo {
    width: 62px !important;
    height: 62px !important;
    border-radius: 19px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* V8 HARD EOF OVERRIDE: keep this block literally last. */
:root {
  --v8-green: #0f3d2e;
  --v8-green-2: #164a3a;
  --v8-dark: #07231a;
  --v8-ivory: #f7f4ee;
  --v8-pearl: #fffdf8;
  --v8-gold: #d9c48b;
  --v8-gold-2: #b99455;
  --v8-ink: #1c2b25;
  --v8-muted: #66756e;
  --v8-shadow: 0 18px 48px rgba(15, 61, 46, .13);
  --v8-shadow-strong: 0 28px 72px rgba(7, 35, 26, .28);
}

html,
body,
#appView {
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 196, 139, .18), transparent 36%),
    linear-gradient(180deg, #fbfaf5 0%, #f1ede3 100%) !important;
  color: var(--v8-ink) !important;
}

body > main {
  max-width: 440px !important;
}

#welcomeView.welcome-screen {
  position: relative !important;
  min-height: 100svh !important;
  padding: 22px 18px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  justify-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(217, 196, 139, .18), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(255, 242, 195, .11), transparent 28%),
    linear-gradient(180deg, #123f31 0%, #0b2b21 56%, #061a14 100%) !important;
}

#welcomeView::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  opacity: .12 !important;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32)),
    linear-gradient(150deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32)) !important;
  background-size: 64px 110px !important;
  mask-image: linear-gradient(180deg, #000, transparent 72%) !important;
}

#welcomeView::after {
  content: "" !important;
  position: absolute !important;
  left: -14% !important;
  right: -14% !important;
  bottom: -74px !important;
  height: 245px !important;
  opacity: .72 !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 196, 139, .18), transparent 44%),
    linear-gradient(180deg, transparent 0 16%, rgba(3, 17, 13, .82) 17% 100%) !important;
  clip-path: polygon(0 100%, 0 64%, 14% 64%, 14% 38%, 22% 38%, 22% 20%, 32% 20%, 32% 42%, 42% 42%, 42% 14%, 50% 0, 58% 14%, 58% 42%, 68% 42%, 68% 20%, 78% 20%, 78% 38%, 86% 38%, 86% 64%, 100% 64%, 100% 100%) !important;
}

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

#welcomeView .welcome-content {
  z-index: 2 !important;
  width: 100% !important;
  min-height: calc(100svh - 48px) !important;
  padding: 44px 22px 28px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .20) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) !important;
  box-shadow: var(--v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

#welcomeView .welcome-logo-shell {
  width: 154px !important;
  height: 154px !important;
  border-radius: 44px !important;
  margin: 0 auto 24px !important;
  border: 1px solid rgba(217, 196, 139, .18) !important;
  background: radial-gradient(circle at 50% 20%, rgba(217, 196, 139, .10), rgba(255, 255, 255, .035)) !important;
}

#welcomeView .welcome-turban-logo {
  width: 116px !important;
  height: 116px !important;
  object-fit: contain !important;
}

#welcomeView .welcome-wordmark-logo {
  display: none !important;
}

#welcomeView .welcome-title {
  color: #fffaf0 !important;
  font-size: clamp(2rem, 9vw, 2.65rem) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

#welcomeView .welcome-copy::after {
  content: "" !important;
  display: block !important;
  width: 164px !important;
  height: 2px !important;
  margin: 22px auto 0 !important;
  background: linear-gradient(90deg, transparent, var(--v8-gold), transparent) !important;
}

#welcomeView .welcome-subtitle {
  color: rgba(255, 250, 240, .80) !important;
  font-size: 1.02rem !important;
  line-height: 2.05 !important;
  font-weight: 700 !important;
}

#welcomeView .welcome-features {
  margin-top: auto !important;
}

#welcomeView .welcome-features span {
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f0deaa !important;
  font-weight: 900 !important;
}

#welcomeView .welcome-start-btn,
#emailLoginBtn,
#profileSaveBtn,
.quote-share-action-btn.primary,
#tab-home .questioner-home-instant-cta {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ead49b 0%, #c5a15d 100%) !important;
  color: #153126 !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 36px rgba(185, 148, 85, .26), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

#loginView.login-screen,
#profileView.profile-shell,
#profileView.profile-shell-v2,
#tab-library.fatwa-tab-shell {
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .20), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f3eee3 100%) !important;
}

#loginView .login-brand-card,
#loginView .login-form-shell,
#tab-library .fatwa-topbar-shell,
#tab-library .library-mode-switch,
#quoteCard.quote-card,
#quoteActionBar.quote-action-bar {
  border: 1px solid rgba(15, 61, 46, .09) !important;
  border-radius: 34px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .84) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

#loginView .login-brand-title,
#loginView .login-form-head h2,
#tab-library .fatwa-brand-copy h1,
#quoteText.quote-text {
  color: var(--v8-green) !important;
  font-weight: 900 !important;
}

#loginView .login-brand-subtitle,
#loginView .login-form-head p {
  color: var(--v8-muted) !important;
  font-weight: 700 !important;
}

#loginView .form-input,
#profileView .form-input,
#profileView select {
  height: 58px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 61, 46, .11) !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--v8-ink) !important;
}

#signupBtn,
#googleLoginBtn,
.quote-share-action-btn.secondary {
  border: 1px solid rgba(15, 61, 46, .10) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .70) !important;
  color: var(--v8-green) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, .07) !important;
  font-weight: 900 !important;
}

#googleLoginBtn {
  width: 100% !important;
  justify-content: center !important;
  gap: 10px !important;
}

#googleLoginBtn span {
  display: inline !important;
}

#globalLoader.global-loader {
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 196, 139, .22), transparent 32%),
    rgba(5, 24, 18, .76) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

#globalLoader .global-loader-card {
  border-radius: 36px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)) !important;
  box-shadow: 0 34px 92px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .20) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
}

#globalLoader .global-loader-text {
  color: #fffaf0 !important;
  font-weight: 900 !important;
}

#globalLoader .global-loader-hint {
  color: rgba(255, 250, 240, .76) !important;
}

#globalLoader .global-loader-progress span,
#globalLoader .global-loader-dots span {
  background: linear-gradient(90deg, #ead49b, #b99455) !important;
}

#questionerHomeHeader.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 90 !important;
  padding: 10px 14px 5px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: 54px 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48)) !important;
  box-shadow: var(--v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
}

#questionerHomeHeader .questioner-home-notify {
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .52) !important;
  color: var(--v8-green) !important;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  justify-self: center !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  gap: 9px !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#questionerHomeHeader .questioner-home-logo-wrap::after {
  content: "فقيه" !important;
  color: var(--v8-green) !important;
  font-size: 1.22rem !important;
  font-weight: 900 !important;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

#questionerHomeHeader .questioner-home-profile {
  border-radius: 999px !important;
  padding: 6px 8px 6px 12px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
  box-shadow: 0 13px 28px rgba(15, 61, 46, .22) !important;
}

#questionerHomeHeader .questioner-home-profile-ring {
  width: 42px !important;
  height: 42px !important;
  border-color: rgba(255, 255, 255, .58) !important;
}

#questionerHomeHeader .questioner-home-welcome {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .72rem !important;
}

#questionerHomeHeader .questioner-home-username {
  color: white !important;
  font-size: .92rem !important;
}

#tab-home.questioner-home-main {
  padding: 10px 14px 120px !important;
  background: transparent !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 324px !important;
  padding: 18px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .34) !important;
  background: var(--v8-dark) !important;
  box-shadow: var(--v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#tab-home .faqih-home-door-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: -4 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 61% center !important;
  opacity: 1 !important;
  transform: scale(1.03) !important;
}

#tab-home .faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -3 !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 14, .98) 0%, rgba(6, 28, 21, .88) 42%, rgba(6, 28, 21, .48) 70%, rgba(6, 28, 21, .20) 100%),
    radial-gradient(circle at 77% 46%, rgba(255, 199, 91, .42), transparent 24%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  display: grid !important;
  grid-template-columns: minmax(0, .64fr) minmax(120px, .36fr) !important;
  min-height: 224px !important;
  align-items: end !important;
  padding: 18px !important;
  border-radius: 30px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

#tab-home .faqih-home-hero-copy h2 {
  color: #fffaf0 !important;
  font-size: clamp(2.4rem, 10vw, 3.9rem) !important;
  line-height: 1.03 !important;
  font-weight: 900 !important;
}

#tab-home .faqih-home-hero-copy strong {
  color: #f4dfa8 !important;
}

#tab-home .faqih-home-hero-copy p,
#tab-home .faqih-home-eyebrow {
  color: rgba(255, 250, 240, .86) !important;
}

#tab-home .faqih-home-hero-head .questioner-section-kicker,
#tab-home .faqih-home-privacy-chip,
#tab-home .faqih-home-trust-row span {
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .10) !important;
  color: #f2dfaa !important;
  border-radius: 999px !important;
}

#tab-home .faqih-home-quote-card,
#tab-home .faqih-home-mini-card,
#tab-home .faqih-home-scholars-section {
  border-radius: 34px !important;
  border: 1px solid rgba(217, 196, 139, .18) !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: var(--v8-shadow) !important;
  backdrop-filter: blur(18px) !important;
}

#tab-home .questioner-home-quote-text {
  color: var(--v8-green) !important;
  font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
  line-height: 1.9 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#quoteText.quote-text {
  color: var(--v8-green) !important;
  font-size: clamp(1.65rem, 7.3vw, 2.35rem) !important;
  line-height: 1.95 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#quoteActionBar.quote-action-bar {
  border-radius: 999px !important;
  padding: 10px !important;
}

.quote-share-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 180 !important;
}

.quote-share-backdrop {
  background: rgba(6, 28, 21, .64) !important;
  backdrop-filter: blur(12px) !important;
}

.quote-share-shell {
  width: min(100%, 430px) !important;
  max-height: min(92svh, 840px) !important;
  overflow-y: auto !important;
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  background: rgba(255, 253, 248, .90) !important;
  box-shadow: 0 32px 84px rgba(6, 28, 21, .34) !important;
  backdrop-filter: blur(24px) !important;
}

.quote-share-title {
  color: var(--v8-green) !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
}

.quote-share-theme-row {
  margin: 8px 18px 16px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .56) !important;
}

.quote-share-theme-btn.active {
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
}

.quote-share-preview-wrap {
  width: min(100% - 28px, 360px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  border-radius: 22px !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  position: relative !important;
  flex: 0 0 1122px !important;
  width: 1122px !important;
  height: 1402px !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  transform-origin: top center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
}

.quote-share-capture.theme-dark {
  background-image: url("assets/share-templates/faqih_quote_template_dark.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-light {
  background-image: url("assets/share-templates/faqih_quote_template_light.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-gold {
  background-image: url("assets/share-templates/faqih_quote_template_gold.png?v=20260429-square-hero") !important;
}

.quote-share-capture .quote-share-pattern,
.quote-share-capture .quote-share-vignette,
.quote-share-capture .quote-share-topline,
.quote-share-capture .quote-share-cta,
.quote-share-capture .quote-share-footer,
.quote-share-capture .quote-share-ornament {
  display: none !important;
}

.quote-share-capture .quote-share-body {
  position: absolute !important;
  inset: 500px 150px auto 150px !important;
  width: 822px !important;
  height: 450px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.quote-share-capture .quote-share-arch-panel {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quote-share-capture .quote-share-text {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 365px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #f5f5f5 !important;
  text-align: center !important;
  white-space: pre-line !important;
  font-size: 78px !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .28) !important;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: 60px !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: 48px !important;
}

.quote-share-capture.theme-light .quote-share-text {
  color: var(--v8-green) !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .55) !important;
}

.quote-share-capture.theme-gold .quote-share-text {
  color: #4f350c !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .45) !important;
}

.quote-share-capture .quote-share-source-stack {
  position: absolute !important;
  top: 385px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(245, 245, 245, .92) !important;
  text-align: center !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

.quote-share-capture .quote-share-attribution {
  display: none !important;
}

.quote-share-capture.theme-light .quote-share-source-stack {
  color: rgba(15, 61, 46, .86) !important;
}

.quote-share-capture.theme-gold .quote-share-source-stack {
  color: rgba(79, 53, 12, .86) !important;
}

#profileView .profile-avatar-wrap {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(217, 196, 139, .62) !important;
}

#profileView .gender-option:has(input:checked),
#profileView .gender-option.is-selected {
  border-color: rgba(185, 148, 85, .72) !important;
  background: rgba(217, 196, 139, .18) !important;
  box-shadow: 0 0 0 4px rgba(217, 196, 139, .12) !important;
}

#profileView .faqih-profile-privacy-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .62) !important;
  color: var(--v8-muted) !important;
}

#profileView .faqih-profile-privacy-note p {
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.8 !important;
  font-weight: 800 !important;
}

.chat-room-composer,
.sheikh-chat-thread-panel .chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 80 !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, .76) 38%, rgba(247, 244, 238, .96)) !important;
  backdrop-filter: blur(12px) !important;
}

.chat-room-form {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) 54px !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 18px 40px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
}

.chat-compose-input-wrap {
  min-height: 52px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .60) !important;
}

.chat-compose-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .60) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .24) !important;
}

.app-bottom-nav {
  width: min(100% - 24px, 420px) !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 20px 48px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(24px) saturate(1.16) !important;
}

.questioner-tab-btn.active {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .18) !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    background: linear-gradient(90deg, rgba(3, 18, 13, .68), rgba(3, 18, 13, .18)) !important;
  }

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

  #tab-home .questioner-home-instant-cta {
    width: min(100%, 232px) !important;
  }

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
  }
}

/* ===== FINAL LOCK v12 (MUST STAY LAST) ===== */
body > main {
  width: min(100%, 440px) !important;
  margin-inline: auto !important;
}

#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: block !important;
  width: 124px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

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

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

#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;
}

#tab-home .faqih-home-mini-card {
  display: none !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  min-height: 352px !important;
  padding: 18px !important;
}

#tab-home .faqih-home-door-bg {
  right: 0 !important;
  left: auto !important;
  width: 49% !important;
  object-position: right center !important;
  opacity: 0.78 !important;
  filter: saturate(1.2) contrast(1.1) brightness(0.95) drop-shadow(0 0 28px rgba(201, 167, 93, 0.28)) !important;
  transform: scale(1.03) !important;
}

#tab-home .faqih-home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(4, 20, 15, 0.98) 0%, rgba(7, 31, 23, 0.90) 46%, rgba(7, 31, 23, 0.60) 72%, rgba(7, 31, 23, 0.34) 100%),
    radial-gradient(circle at 86% 42%, rgba(255, 216, 124, 0.22), transparent 22%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  min-height: 308px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
  padding: 20px !important;
}

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

#tab-home .faqih-home-trust-row {
  margin-top: 14px !important;
  gap: 8px !important;
}

#tab-home .questioner-home-instant-cta {
  align-self: end !important;
  justify-self: start !important;
  margin: 0 !important;
}

.quote-share-preview-wrap {
  width: min(100% - 24px, 392px) !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.quote-share-canvas-preview {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 22px !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;
}

#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;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-door-bg {
    width: 57% !important;
    opacity: 0.72 !important;
  }

  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    min-height: 324px !important;
  }

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

  #tab-home .questioner-home-instant-cta {
    justify-self: end !important;
    width: min(100%, 240px) !important;
  }
}

/* ==========================================================================
   V12 HARD-LOCK FIXES (keep this block at file end)
   ========================================================================== */
body > main {
  width: min(100%, 440px) !important;
  margin-inline: auto !important;
}

/* Login: center layout, remove tilt, force green logo on light background */
#loginView.login-screen {
  transform: none !important;
  perspective: none !important;
  overflow-x: hidden !important;
}

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

#loginView .login-brand-card,
#loginView .login-form-shell {
  transform: none !important;
  margin-inline: auto !important;
}

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

#loginView .login-wordmark-image {
  display: block !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;
  opacity: 1 !important;
}

/* Success card: improve 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;
}

/* Hero door card: reduce crowding and improve spacing around image */
#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  min-height: 352px !important;
  padding: 18px !important;
}

#tab-home .faqih-home-door-bg {
  right: 0 !important;
  left: auto !important;
  width: 49% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
  opacity: 0.78 !important;
  filter: saturate(1.2) contrast(1.1) brightness(0.95) drop-shadow(0 0 28px rgba(201, 167, 93, 0.28)) !important;
  transform: scale(1.03) !important;
}

#tab-home .faqih-home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(4, 20, 15, 0.98) 0%, rgba(7, 31, 23, 0.90) 46%, rgba(7, 31, 23, 0.60) 72%, rgba(7, 31, 23, 0.34) 100%),
    radial-gradient(circle at 86% 42%, rgba(255, 216, 124, 0.22), transparent 22%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  min-height: 308px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
  padding: 20px !important;
}

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

#tab-home .faqih-home-hero-copy p:not(.faqih-home-eyebrow) {
  font-size: 0.95rem !important;
  line-height: 1.95 !important;
}

#tab-home .faqih-home-trust-row {
  margin-top: 14px !important;
  gap: 8px !important;
}

#tab-home .questioner-home-instant-cta {
  align-self: end !important;
  justify-self: start !important;
  margin: 0 !important;
}

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

/* Quote share: keep preview and downloaded image identical */
.quote-share-preview-wrap {
  width: min(100% - 24px, 392px) !important;
  margin-inline: auto !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.quote-share-canvas-preview {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 22px !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;
}

/* Help center: premium style aligned with 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;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-door-bg {
    width: 57% !important;
    opacity: 0.72 !important;
  }

  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    min-height: 324px !important;
  }

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

  #tab-home .questioner-home-instant-cta {
    justify-self: end !important;
    width: min(100%, 240px) !important;
  }
}

/* V9 RADICAL PWA POLISH: keep this block last. */
:root {
  --v9-emerald: #0f3d2e;
  --v9-forest: #0b2f24;
  --v9-ink: #173127;
  --v9-muted: #5f6e66;
  --v9-ivory: #f8f6f1;
  --v9-pearl: #f3efe6;
  --v9-gold: #c9a75d;
  --v9-gold-deep: #b89247;
  --v9-glow: rgba(201, 167, 93, .28);
  --v9-card-shadow: 0 22px 58px rgba(15, 61, 46, .14);
  --v9-soft-shadow: 0 14px 34px rgba(15, 61, 46, .10);
  --v9-ease: cubic-bezier(.2, .8, .2, 1);
}

html,
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 167, 93, .18), transparent 28%),
    radial-gradient(circle at 96% 10%, rgba(15, 61, 46, .10), transparent 32%),
    linear-gradient(180deg, #fbf8f0 0%, var(--v9-pearl) 100%) !important;
  color: var(--v9-ink) !important;
  font-family: "Cairo", "Tajawal", "Noto Sans Arabic", sans-serif !important;
  -webkit-tap-highlight-color: transparent;
}

button,
.questioner-tab-btn,
.quote-share-theme-btn,
.quote-share-action-btn,
.questioner-hero-cta,
.chat-send-btn,
.chat-compose-icon {
  transition: transform .18s var(--v9-ease), box-shadow .18s var(--v9-ease), background .18s var(--v9-ease), border-color .18s var(--v9-ease) !important;
}

button:active,
.questioner-tab-btn:active,
.quote-share-action-btn:active,
.questioner-hero-cta:active,
.chat-send-btn:active,
.chat-compose-icon:active {
  transform: scale(.975) !important;
}

.welcome-screen {
  position: relative !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 196, 139, .20), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(201, 167, 93, .18), transparent 32%),
    linear-gradient(180deg, #0f3d2e 0%, #071e17 100%) !important;
}

.welcome-bg-layer,
.welcome-bg-overlay {
  opacity: .58 !important;
}

.welcome-content {
  width: min(100% - 34px, 430px) !important;
  margin: auto !important;
  min-height: 100dvh !important;
  padding: calc(env(safe-area-inset-top, 0px) + 34px) 0 calc(env(safe-area-inset-bottom, 0px) + 30px) !important;
  display: grid !important;
  align-content: center !important;
  gap: 24px !important;
}

.welcome-logo-shell {
  width: min(78vw, 258px) !important;
  min-height: 258px !important;
  margin: 0 auto !important;
  border-radius: 42px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 50% 35%, rgba(201, 167, 93, .20), transparent 55%) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
}

.welcome-title {
  color: #fffaf0 !important;
  font-size: clamp(2rem, 8vw, 3.15rem) !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .24) !important;
}

.welcome-subtitle {
  width: min(100%, 360px) !important;
  margin: 0 auto !important;
  color: rgba(255, 250, 239, .90) !important;
  font-size: 1.02rem !important;
  line-height: 2 !important;
  font-weight: 700 !important;
}

.welcome-start-btn {
  height: 58px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ead39b, var(--v9-gold)) !important;
  color: #142b22 !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .18) inset !important;
}

#loginView {
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .16), transparent 33%),
    linear-gradient(180deg, var(--v9-ivory), var(--v9-pearl)) !important;
}

.login-card,
.auth-card,
#loginView .rounded-3xl,
#signupView .rounded-3xl,
#forgotView .rounded-3xl {
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .80) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--v9-card-shadow), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
}

#loginView input,
#signupView input,
#forgotView input,
#profileView input {
  border-radius: 20px !important;
  border: 1px solid rgba(15, 61, 46, .10) !important;
  background: rgba(255, 255, 255, .78) !important;
  min-height: 56px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80) !important;
}

#loginView input:focus,
#signupView input:focus,
#forgotView input:focus,
#profileView input:focus {
  border-color: rgba(201, 167, 93, .74) !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, .14), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

#globalLoader.global-loader {
  background:
    radial-gradient(circle at 50% 24%, rgba(201, 167, 93, .18), transparent 28%),
    rgba(7, 30, 23, .72) !important;
  backdrop-filter: blur(22px) saturate(1.1) !important;
}

#globalLoader .global-loader-card {
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
}

#globalLoader .global-loader-text {
  color: #fff8e7 !important;
  font-weight: 900 !important;
}

#globalLoader .global-loader-hint {
  color: rgba(255, 248, 231, .82) !important;
}

.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
  z-index: 70 !important;
  padding: 10px 14px 0 !important;
  background: transparent !important;
}

.questioner-home-header-card.faqih-home-appbar {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border-radius: 30px !important;
  display: grid !important;
  grid-template-columns: 50px 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: var(--v9-soft-shadow), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(24px) saturate(1.16) !important;
}

.questioner-home-notify,
.faqih-home-action {
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .55) !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  color: var(--v9-emerald) !important;
}

.questioner-home-header-logo {
  width: 44px !important;
  height: 44px !important;
  filter: drop-shadow(0 10px 18px rgba(15, 61, 46, .14)) !important;
}

.questioner-home-profile.faqih-home-profile-chip {
  min-width: 118px !important;
  padding: 7px 8px 7px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #164a3a, #0f3d2e) !important;
  color: white !important;
  box-shadow: 0 12px 28px rgba(15, 61, 46, .20) !important;
}

#tab-home.faqih-home-redesign {
  padding: 14px 14px 118px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 167, 93, .12), transparent 24%),
    linear-gradient(180deg, #fbf8f1, #f3efe6) !important;
}

#tab-home .faqih-home-hero-card {
  border-radius: 34px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(201, 167, 93, .30) !important;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 215, 132, .30), transparent 24%),
    linear-gradient(135deg, #09251c, #0f3d2e 55%, #164a3a) !important;
  box-shadow: 0 26px 60px rgba(15, 61, 46, .22), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#tab-home .faqih-home-door-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 72% center !important;
  opacity: .62 !important;
  filter: saturate(1.04) contrast(1.04) !important;
  transform: scale(1.02) !important;
}

#tab-home .faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(90deg, rgba(5, 22, 16, .98) 0%, rgba(7, 30, 22, .92) 42%, rgba(7, 30, 22, .56) 100%),
    radial-gradient(circle at 78% 45%, rgba(255, 218, 142, .30), transparent 20%) !important;
  pointer-events: none !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  position: relative !important;
  z-index: 2 !important;
  min-height: 288px !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#tab-home .faqih-home-hero-copy {
  width: min(100%, 250px) !important;
  max-width: 64% !important;
}

#tab-home .faqih-home-eyebrow,
#tab-home .faqih-home-trust-row span,
#tab-home .faqih-home-privacy-chip {
  color: #f4dfa9 !important;
  background: rgba(255, 255, 255, .11) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  backdrop-filter: blur(12px) !important;
}

#tab-home .faqih-home-hero-copy h2 {
  color: #fffaf0 !important;
  font-size: clamp(2rem, 9vw, 3.35rem) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
  margin: 8px 0 6px !important;
}

#tab-home .faqih-home-hero-copy p {
  color: rgba(255, 250, 240, .90) !important;
  font-size: .98rem !important;
  line-height: 1.9 !important;
}

#tab-home .questioner-home-instant-cta {
  width: min(100%, 252px) !important;
  height: 56px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ecd79f, var(--v9-gold)) !important;
  color: #142b22 !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

.faqih-home-quote-card,
.quote-card,
.questioner-home-quote-hero {
  border-radius: 32px !important;
  border: 1px solid rgba(201, 167, 93, .22) !important;
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .13), transparent 30%),
    rgba(255, 255, 255, .76) !important;
  box-shadow: var(--v9-card-shadow), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(18px) !important;
}

.questioner-home-quote-text,
.quote-text {
  color: var(--v9-emerald) !important;
  font-weight: 900 !important;
  line-height: 1.85 !important;
}

.quote-share-dialog {
  align-items: stretch !important;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
}

.quote-share-shell {
  width: min(100%, 432px) !important;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  overflow: auto !important;
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .18), transparent 30%),
    rgba(248, 246, 241, .88) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .90) !important;
  backdrop-filter: blur(24px) saturate(1.16) !important;
}

.quote-share-preview-wrap {
  width: min(100% - 28px, 390px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  border-radius: 26px !important;
  background: rgba(15, 61, 46, .06) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 61, 46, .05), 0 16px 32px rgba(15, 61, 46, .10) !important;
}

.quote-share-canvas-preview {
  display: block !important;
  width: 100% !important;
  max-width: 390px !important;
  height: auto !important;
  border-radius: 26px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  transform: translateZ(0) !important;
  transition: opacity .2s var(--v9-ease), transform .2s var(--v9-ease), filter .2s var(--v9-ease) !important;
}

.quote-share-canvas-preview.is-loading {
  opacity: .62 !important;
  filter: blur(.7px) saturate(.92) !important;
  transform: scale(.992) !important;
}

.quote-share-capture {
  position: fixed !important;
  top: -10000px !important;
  right: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.quote-share-action-btn.primary {
  background: linear-gradient(180deg, var(--v9-emerald), var(--v9-forest)) !important;
  box-shadow: 0 16px 30px rgba(15, 61, 46, .22) !important;
}

.quote-share-action-btn.secondary {
  color: var(--v9-emerald) !important;
  background: rgba(255, 255, 255, .76) !important;
  border: 1px solid rgba(15, 61, 46, .10) !important;
}

#profileView.profile-shell,
#profileView.profile-shell-v2 {
  min-height: 100dvh !important;
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .14), transparent 28%),
    linear-gradient(180deg, #fbf8f1, #f1eadf) !important;
  color: var(--v9-ink) !important;
}

#profileView .profile-v2-hero-glass,
#profileView .profile-v2-card {
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .80) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--v9-card-shadow), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
}

#profileView .profile-v2-card-marja,
#profileView .marja-select-wrap,
#profileView .marja-select-field {
  display: none !important;
}

#profileView .profile-v2-eyebrow::before {
  content: "خطوة قصيرة قبل الانطلاق" !important;
  font-size: 0 !important;
}

#profileView .profile-v2-save-btn {
  height: 58px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v9-emerald), var(--v9-forest)) !important;
  box-shadow: 0 18px 34px rgba(15, 61, 46, .20) !important;
}

.profile-celebrate-card {
  border-radius: 38px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .18), transparent 34%),
    rgba(248, 246, 241, .92) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
}

.chat-tab-shell,
.chat-thread-screen {
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .12), transparent 24%),
    linear-gradient(180deg, #fbf8f1, #efe8dc) !important;
}

.chat-room-header,
.ask-page-header {
  border-radius: 0 0 30px 30px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--v9-soft-shadow), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(22px) saturate(1.14) !important;
}

.chat-privacy-note {
  margin: 12px 14px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: var(--v9-soft-shadow) !important;
  backdrop-filter: blur(18px) !important;
}

.chat-empty-state {
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .70) !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  box-shadow: var(--v9-soft-shadow) !important;
}

.chat-msg-bubble {
  border-radius: 26px !important;
  line-height: 1.9 !important;
  box-shadow: 0 10px 24px rgba(15, 61, 46, .08) !important;
}

.chat-msg-bubble.user {
  background: linear-gradient(180deg, #164a3a, #0f3d2e) !important;
  color: #fffaf0 !important;
}

.chat-msg-bubble.sheikh {
  background: rgba(255, 255, 255, .82) !important;
  color: var(--v9-ink) !important;
}

.chat-room-composer,
.sheikh-chat-thread-panel .chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 95 !important;
  padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  background: linear-gradient(180deg, rgba(248, 246, 241, 0), rgba(248, 246, 241, .82) 40%, rgba(248, 246, 241, .98)) !important;
  backdrop-filter: blur(14px) !important;
}

.chat-room-form {
  grid-template-columns: 46px 46px minmax(0, 1fr) 54px !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 18px 44px rgba(15, 61, 46, .16), inset 0 1px 0 rgba(255, 255, 255, .90) !important;
  backdrop-filter: blur(26px) saturate(1.18) !important;
}

.chat-compose-input-wrap {
  min-height: 54px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .66) !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
}

.chat-compose-input {
  font-weight: 700 !important;
  color: var(--v9-ink) !important;
}

.chat-compose-input::placeholder {
  color: rgba(95, 110, 102, .78) !important;
}

.chat-compose-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .68) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v9-emerald), var(--v9-forest)) !important;
  box-shadow: 0 14px 28px rgba(15, 61, 46, .26), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.app-bottom-nav {
  width: min(100% - 24px, 430px) !important;
  padding: 8px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 22px 54px rgba(15, 61, 46, .16), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
  backdrop-filter: blur(26px) saturate(1.16) !important;
}

.questioner-tab-btn.active {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v9-emerald), var(--v9-forest)) !important;
  color: #fffaf0 !important;
  box-shadow: 0 12px 28px rgba(15, 61, 46, .22) !important;
}

@media (max-width: 430px) {
  .welcome-logo-shell {
    width: min(74vw, 238px) !important;
    min-height: 238px !important;
  }

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

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

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
  }
}

/* V10 targeted fixes requested by user: keep this as the final override block. */
#loginView.login-screen {
  width: 100% !important;
  max-width: 430px !important;
  margin-inline: auto !important;
  padding-inline: 16px !important;
  transform: none !important;
  translate: none !important;
  overflow-x: hidden !important;
  align-items: stretch !important;
}

#loginView .login-brand-wrap,
#loginView .login-form-shell,
#loginView .login-brand-card {
  width: 100% !important;
  max-width: 398px !important;
  margin-inline: auto !important;
  transform: none !important;
  translate: none !important;
}

#loginView .login-brand-card {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 24px 18px 20px !important;
}

#loginView .login-mark-orb {
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 246, 241, .78)) !important;
  border: 1px solid rgba(15, 61, 46, .10) !important;
  box-shadow: 0 16px 32px rgba(15, 61, 46, .12), inset 0 1px 0 rgba(255, 255, 255, .95) !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: block !important;
  width: 118px !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain !important;
  margin-top: 12px !important;
}

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

#globalLoader .global-loader-logo,
#globalLoader .global-loader-wordmark,
.profile-celebrate-logo,
.profile-celebrate-wordmark {
  content: url("assets/faqih-logo-green-transparent.png") !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#globalLoader .global-loader-logo-core,
.profile-celebrate-logo-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 246, 241, .86)) !important;
  border: 1px solid rgba(201, 167, 93, .28) !important;
}

.profile-celebrate-card {
  color: var(--v9-ink, #173127) !important;
  background:
    radial-gradient(circle at top, rgba(201, 167, 93, .16), transparent 34%),
    rgba(248, 246, 241, .96) !important;
}

.profile-celebrate-eyebrow,
.profile-celebrate-title,
.profile-celebrate-text {
  color: var(--v9-ink, #173127) !important;
  text-shadow: none !important;
}

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

.profile-celebrate-pills span {
  color: var(--v9-emerald, #0f3d2e) !important;
  background: rgba(15, 61, 46, .08) !important;
  border-color: rgba(15, 61, 46, .10) !important;
}

#tab-home .faqih-home-mini-card,
#tab-home .questioner-home-quote-side {
  display: none !important;
}

#tab-home .faqih-home-hero-card {
  min-height: 342px !important;
}

#tab-home .faqih-home-door-bg {
  object-position: 96% 50% !important;
  width: 62% !important;
  right: auto !important;
  left: 0 !important;
  opacity: .70 !important;
  filter: saturate(1.16) contrast(1.08) brightness(.92) drop-shadow(0 0 28px rgba(201, 167, 93, .24)) !important;
  transform: scale(1.08) translateX(-3%) !important;
}

#tab-home .faqih-home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(5, 22, 16, .48) 0%, rgba(7, 30, 22, .76) 38%, rgba(7, 30, 22, .98) 100%),
    radial-gradient(circle at 18% 47%, rgba(255, 218, 142, .28), transparent 24%),
    radial-gradient(circle at 70% 12%, rgba(255, 255, 255, .08), transparent 18%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  min-height: 342px !important;
  padding: 24px !important;
  align-items: flex-end !important;
  gap: 18px !important;
}

#tab-home .faqih-home-hero-copy {
  width: min(100%, 268px) !important;
  max-width: 72% !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: right !important;
}

#tab-home .faqih-home-hero-copy h2 {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

#tab-home .faqih-home-trust-row {
  gap: 8px !important;
  margin-top: 14px !important;
}

#tab-home .questioner-home-instant-cta {
  align-self: flex-end !important;
  margin-top: 2px !important;
}

.quote-share-preview-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

.quote-share-canvas-preview {
  border-radius: 20px !important;
  box-shadow: 0 18px 44px rgba(15, 61, 46, .18) !important;
}

#settingsHelpView {
  background:
    radial-gradient(circle at 50% -12%, rgba(201, 167, 93, .24), transparent 28%),
    linear-gradient(180deg, #0f3d2e 0%, #071e17 100%) !important;
}

#settingsHelpView > .absolute {
  opacity: .18 !important;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(201, 167, 93, .28), transparent 40%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .12), transparent 34%) !important;
}

#settingsHelpView header {
  padding: 10px 4px !important;
}

#settingsHelpView header button,
#settingsHelpView header .size-10 {
  border-radius: 18px !important;
}

#settingsHelpView header img {
  content: url("assets/faqih-logo-white-transparent.png") !important;
  width: 34px !important;
  height: 34px !important;
}

#settingsHelpView section.rounded-3xl {
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: 0 28px 74px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(24px) saturate(1.12) !important;
}

#settingsHelpView section.rounded-3xl > .flex img {
  content: url("assets/faqih-logo-white-transparent.png") !important;
  background: rgba(255, 255, 255, .08) !important;
  object-fit: contain !important;
}

#settingsHelpView article {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
}

#settingsHelpInstagramBtn {
  background: linear-gradient(180deg, #ead39b, #c9a75d) !important;
  color: #142b22 !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24) !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-hero-copy {
    max-width: 78% !important;
  }

  #tab-home .faqih-home-door-bg {
    width: 70% !important;
    opacity: .58 !important;
    transform: scale(1.1) translateX(-10%) !important;
  }
}

/* FINAL UI SHOWCASE v8: production UI layer for the requested six-screen luxury direction. */
:root {
  --faqih-v8-green: #0f3d2e;
  --faqih-v8-green-2: #164a3a;
  --faqih-v8-green-3: #07231a;
  --faqih-v8-ivory: #f7f4ee;
  --faqih-v8-pearl: #fffdf8;
  --faqih-v8-accent: #d9c48b;
  --faqih-v8-accent-2: #b99455;
  --faqih-v8-ink: #1c2b25;
  --faqih-v8-muted: #66756e;
  --faqih-v8-line: rgba(15, 61, 46, 0.10);
  --faqih-v8-glass: rgba(255, 255, 255, 0.66);
  --faqih-v8-shadow: 0 18px 48px rgba(15, 61, 46, 0.13);
  --faqih-v8-shadow-strong: 0 28px 72px rgba(7, 35, 26, 0.28);
  --faqih-v8-ease: cubic-bezier(.2, .82, .2, 1);
}

html,
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 196, 139, 0.18), transparent 36%),
    linear-gradient(180deg, #fbfaf5 0%, #f1ede3 100%) !important;
  color: var(--faqih-v8-ink) !important;
}

body {
  direction: rtl;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(30deg, rgba(15, 61, 46, .035) 12%, transparent 12.5%, transparent 87%, rgba(15, 61, 46, .035) 87.5%, rgba(15, 61, 46, .035)),
    linear-gradient(150deg, rgba(15, 61, 46, .035) 12%, transparent 12.5%, transparent 87%, rgba(15, 61, 46, .035) 87.5%, rgba(15, 61, 46, .035));
  background-size: 54px 94px;
}

body > main {
  max-width: 440px !important;
  min-height: 100svh !important;
  background: transparent !important;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.questioner-hero-cta,
.quote-action-btn,
.quote-share-action-btn,
.social-login-btn,
.library-mode-btn,
.chat-send-btn,
.chat-compose-icon {
  transition:
    transform .2s var(--faqih-v8-ease),
    box-shadow .2s var(--faqih-v8-ease),
    background .2s var(--faqih-v8-ease),
    border-color .2s ease,
    opacity .2s ease !important;
}

button:active,
.questioner-hero-cta:active,
.quote-action-btn:active,
.quote-share-action-btn:active,
.social-login-btn:active,
.library-mode-btn:active,
.chat-send-btn:active,
.chat-compose-icon:active {
  transform: scale(.975) !important;
}

/* Screen 1: welcome */
#welcomeView.welcome-screen {
  position: relative !important;
  min-height: 100svh !important;
  padding: 22px 18px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  justify-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(217, 196, 139, .18), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(255, 242, 195, .11), transparent 28%),
    linear-gradient(180deg, #123f31 0%, #0b2b21 56%, #061a14 100%) !important;
}

#welcomeView::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32)),
    linear-gradient(150deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32));
  background-size: 64px 110px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

#welcomeView::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -74px;
  height: 245px;
  opacity: .72;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 196, 139, .18), transparent 44%),
    linear-gradient(180deg, transparent 0 16%, rgba(3, 17, 13, .82) 17% 100%);
  clip-path: polygon(0 100%, 0 64%, 14% 64%, 14% 38%, 22% 38%, 22% 20%, 32% 20%, 32% 42%, 42% 42%, 42% 14%, 50% 0, 58% 14%, 58% 42%, 68% 42%, 68% 20%, 78% 20%, 78% 38%, 86% 38%, 86% 64%, 100% 64%, 100% 100%);
}

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

#welcomeView .welcome-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  min-height: calc(100svh - 48px) !important;
  padding: 44px 22px 28px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .20) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) !important;
  box-shadow: var(--faqih-v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

#welcomeView .welcome-logo-shell {
  width: 154px !important;
  height: 154px !important;
  border-radius: 44px !important;
  margin: 0 auto 24px !important;
  border: 1px solid rgba(217, 196, 139, .18) !important;
  background: radial-gradient(circle at 50% 20%, rgba(217, 196, 139, .10), rgba(255, 255, 255, .035)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 48px rgba(0, 0, 0, .18) !important;
}

#welcomeView .welcome-turban-logo {
  width: 116px !important;
  height: 116px !important;
  object-fit: contain !important;
}

#welcomeView .welcome-wordmark-logo {
  display: none !important;
}

#welcomeView .welcome-title {
  margin-top: 10px !important;
  color: #fffaf0 !important;
  font-size: clamp(2rem, 9vw, 2.65rem) !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .28) !important;
}

#welcomeView .welcome-copy::after {
  content: "";
  display: block;
  width: 164px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--faqih-v8-accent), transparent);
}

#welcomeView .welcome-subtitle {
  margin-top: 16px !important;
  color: rgba(255, 250, 240, .80) !important;
  font-size: 1.02rem !important;
  line-height: 2.05 !important;
  font-weight: 700 !important;
}

#welcomeView .welcome-features {
  margin-top: auto !important;
  gap: 8px !important;
}

#welcomeView .welcome-features span {
  border-radius: 999px !important;
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f0deaa !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
}

#welcomeView .welcome-start-btn {
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ead49b 0%, #c6a560 100%) !important;
  color: #153126 !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .44) !important;
}

/* Screen 2: login */
#loginView.login-screen {
  min-height: 100svh !important;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 28px !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .20), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f3eee3 100%) !important;
  overflow-y: auto !important;
}

#loginView .login-brand-wrap,
#loginView .login-form-shell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#loginView .login-brand-card,
#loginView .login-form-shell {
  width: 100% !important;
  border-radius: 34px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: var(--faqih-v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(20px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.15) !important;
}

#loginView .login-brand-card {
  padding: 22px 18px !important;
}

#loginView .login-mark-orb {
  width: 82px !important;
  height: 82px !important;
  border-radius: 27px !important;
  background: linear-gradient(180deg, rgba(15, 61, 46, .08), rgba(217, 196, 139, .10)) !important;
  border: 1px solid rgba(185, 148, 85, .20) !important;
}

#loginView .login-mark-image {
  width: 70px !important;
  height: 70px !important;
}

#loginView .login-wordmark-image {
  display: none !important;
}

#loginView .login-brand-title,
#loginView .login-form-head h2 {
  color: var(--faqih-v8-green) !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

#loginView .login-brand-title {
  font-size: 2.1rem !important;
  margin-top: 12px !important;
}

#loginView .login-brand-subtitle,
#loginView .login-form-head p {
  color: var(--faqih-v8-muted) !important;
  font-weight: 700 !important;
  line-height: 1.85 !important;
}

#loginView .login-form-shell {
  margin-top: 16px !important;
  padding: 22px 0 !important;
}

#loginView .login-form-head {
  padding: 0 22px 14px !important;
}

#loginView label {
  color: var(--faqih-v8-ink) !important;
  font-weight: 900 !important;
}

#loginView .form-input,
#profileView .form-input,
#profileView select {
  height: 58px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 61, 46, .11) !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--faqih-v8-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

#loginView .form-input:focus,
#profileView .form-input:focus,
#profileView select:focus {
  border-color: rgba(185, 148, 85, .58) !important;
  box-shadow: 0 0 0 4px rgba(217, 196, 139, .17) !important;
}

#forgotPasswordBtn {
  color: #9a7437 !important;
  font-weight: 900 !important;
}

#emailLoginBtn,
#signupBtn,
#googleLoginBtn,
#profileSaveBtn,
.quote-share-action-btn.primary {
  min-height: 56px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

#emailLoginBtn,
#profileSaveBtn,
.quote-share-action-btn.primary {
  border: 0 !important;
  background: linear-gradient(180deg, #ead49b 0%, #c5a15d 100%) !important;
  color: #153126 !important;
  box-shadow: 0 18px 36px rgba(185, 148, 85, .26) !important;
}

#signupBtn,
#googleLoginBtn,
.quote-share-action-btn.secondary {
  border: 1px solid rgba(15, 61, 46, .10) !important;
  background: rgba(255, 255, 255, .70) !important;
  color: var(--faqih-v8-green) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, .07) !important;
}

#googleLoginBtn {
  width: 100% !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
}

#googleLoginBtn .social-logo {
  width: 22px !important;
  height: 22px !important;
}

#googleLoginBtn span {
  display: inline !important;
  font-size: .96rem !important;
}

#socialLoginRow {
  display: block !important;
}

/* Screen 3: loading */
#globalLoader.global-loader {
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 196, 139, .22), transparent 32%),
    rgba(5, 24, 18, .76) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
}

#globalLoader .global-loader-card {
  width: min(100% - 34px, 370px) !important;
  border-radius: 36px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)) !important;
  box-shadow: 0 34px 92px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .20) !important;
  color: #fffaf0 !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18) !important;
}

#globalLoader .global-loader-text {
  color: #fffaf0 !important;
  font-size: 1.28rem !important;
  font-weight: 900 !important;
}

#globalLoader .global-loader-hint {
  color: rgba(255, 250, 240, .76) !important;
  font-weight: 700 !important;
}

#globalLoader .global-loader-progress {
  background: rgba(255, 255, 255, .12) !important;
}

#globalLoader .global-loader-progress span,
#globalLoader .global-loader-dots span {
  background: linear-gradient(90deg, #ead49b, #b99455) !important;
}

/* Screen 4: home */
#appView {
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .16), transparent 32%),
    linear-gradient(180deg, #fbfaf5 0%, #f1ede3 100%) !important;
}

#questionerHomeHeader.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 90 !important;
  padding: 10px 14px 5px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: 54px 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48)) !important;
  box-shadow: var(--faqih-v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
}

#questionerHomeHeader .questioner-home-notify {
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .52) !important;
  color: var(--faqih-v8-green) !important;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  justify-self: center !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  gap: 9px !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#questionerHomeHeader .questioner-home-logo-wrap::after {
  content: "فقيه";
  color: var(--faqih-v8-green);
  font-size: 1.22rem;
  font-weight: 900;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  object-fit: contain !important;
}

#questionerHomeHeader .questioner-home-profile {
  border-radius: 999px !important;
  padding: 6px 8px 6px 12px !important;
  background: linear-gradient(180deg, var(--faqih-v8-green-2), var(--faqih-v8-green)) !important;
  color: white !important;
  box-shadow: 0 13px 28px rgba(15, 61, 46, .22) !important;
}

#questionerHomeHeader .questioner-home-profile-ring {
  width: 42px !important;
  height: 42px !important;
  border-color: rgba(255, 255, 255, .58) !important;
}

#questionerHomeHeader .questioner-home-welcome {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

#questionerHomeHeader .questioner-home-username {
  color: white !important;
  font-size: .92rem !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

#tab-home.questioner-home-main {
  padding: 10px 14px 120px !important;
  background: transparent !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 324px !important;
  padding: 18px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .34) !important;
  background: var(--faqih-v8-green-3) !important;
  box-shadow: var(--faqih-v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#tab-home .faqih-home-door-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: -4 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 61% center !important;
  opacity: 1 !important;
  transform: scale(1.03) !important;
  filter: saturate(1.08) contrast(1.06) !important;
}

#tab-home .faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -3 !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 14, .98) 0%, rgba(6, 28, 21, .88) 42%, rgba(6, 28, 21, .48) 70%, rgba(6, 28, 21, .20) 100%),
    radial-gradient(circle at 77% 46%, rgba(255, 199, 91, .42), transparent 24%),
    radial-gradient(circle at 17% 8%, rgba(121, 255, 225, .10), transparent 30%) !important;
}

#tab-home .faqih-home-hero-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  z-index: 5 !important;
  border-radius: 37px !important;
  pointer-events: none !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 0 84px rgba(255, 199, 91, .11) !important;
}

#tab-home .faqih-home-hero-card > *:not(.faqih-home-door-bg) {
  position: relative !important;
  z-index: 2 !important;
}

#tab-home .faqih-home-hero-head {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#tab-home .faqih-home-hero-head .questioner-section-kicker,
#tab-home .faqih-home-privacy-chip,
#tab-home .faqih-home-trust-row span {
  border-radius: 999px !important;
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .10) !important;
  color: #f2dfaa !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  margin-top: 14px !important;
  min-height: 224px !important;
  display: grid !important;
  grid-template-columns: minmax(0, .64fr) minmax(120px, .36fr) !important;
  align-items: end !important;
  gap: 16px !important;
  padding: 18px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#tab-home .faqih-home-hero-copy h2 {
  color: #fffaf0 !important;
  font-size: clamp(2.4rem, 10vw, 3.9rem) !important;
  line-height: 1.03 !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  text-shadow: 0 10px 36px rgba(0, 0, 0, .46) !important;
}

#tab-home .faqih-home-hero-copy strong {
  display: block !important;
  color: #f4dfa8 !important;
  font-size: 1.04rem !important;
  line-height: 1.75 !important;
}

#tab-home .faqih-home-hero-copy p,
#tab-home .faqih-home-eyebrow {
  color: rgba(255, 250, 240, .86) !important;
  font-weight: 700 !important;
}

#tab-home .faqih-home-trust-row {
  gap: 7px !important;
  margin-top: 12px !important;
}

#tab-home .questioner-home-instant-cta {
  min-height: 58px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(180deg, #ead49b 0%, #c5a15d 100%) !important;
  color: #153126 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
  font-weight: 900 !important;
}

#tab-home .faqih-home-quote-card {
  border-radius: 34px !important;
  border: 1px solid rgba(217, 196, 139, .24) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 196, 139, .16), transparent 34%),
    rgba(255, 255, 255, .78) !important;
  box-shadow: var(--faqih-v8-shadow) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#tab-home .questioner-home-quote-text {
  color: var(--faqih-v8-green) !important;
  font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
  line-height: 1.9 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#tab-home .questioner-home-quote-source,
#tab-home .questioner-home-quote-reference {
  color: var(--faqih-v8-muted) !important;
  font-weight: 800 !important;
}

#tab-home .faqih-home-mini-card,
#tab-home .faqih-home-scholars-section {
  border-radius: 30px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 14px 32px rgba(15, 61, 46, .08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* Screen 5: quotes and share image */
#tab-library.fatwa-tab-shell {
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .18), transparent 32%),
    linear-gradient(180deg, #fbfaf5, #f1ede3) !important;
}

#tab-library .fatwa-topbar-shell,
#tab-library .library-mode-switch,
#quoteCard.quote-card,
#quoteActionBar.quote-action-bar {
  border: 1px solid rgba(15, 61, 46, .09) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--faqih-v8-shadow) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#tab-library .fatwa-brand-copy h1 {
  color: var(--faqih-v8-green) !important;
  font-weight: 900 !important;
}

#tab-library .library-mode-btn {
  border-radius: 999px !important;
  font-weight: 900 !important;
}

#tab-library .library-mode-btn.active {
  background: linear-gradient(180deg, var(--faqih-v8-green-2), var(--faqih-v8-green)) !important;
  color: white !important;
}

#quoteCard.quote-card {
  border-radius: 34px !important;
  padding: 24px !important;
  overflow: hidden !important;
}

#quoteCard.quote-card::before {
  opacity: .8 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 196, 139, .17), transparent 34%),
    linear-gradient(180deg, rgba(15, 61, 46, .035), transparent) !important;
}

#quoteText.quote-text {
  color: var(--faqih-v8-green) !important;
  font-size: clamp(1.65rem, 7.3vw, 2.35rem) !important;
  line-height: 1.95 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#quoteText.quote-text::after {
  content: "";
  display: block;
  width: 156px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--faqih-v8-accent-2), transparent);
}

#quoteActionBar.quote-action-bar {
  border-radius: 999px !important;
  padding: 10px !important;
}

#quoteActionBar .quote-action-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .66) !important;
}

#quoteActionBar .quote-main-action.share,
#quoteActionBar .quote-main-action.save.is-active {
  background: linear-gradient(180deg, #ead49b, #c5a15d) !important;
}

.quote-share-open {
  overflow: hidden !important;
}

.quote-share-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 180 !important;
}

.quote-share-backdrop {
  background: rgba(6, 28, 21, .64) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.quote-share-dialog {
  align-items: end !important;
  padding: 14px !important;
}

.quote-share-shell {
  width: min(100%, 430px) !important;
  max-height: min(92svh, 840px) !important;
  overflow-y: auto !important;
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .18), transparent 34%),
    rgba(255, 253, 248, .86) !important;
  box-shadow: 0 32px 84px rgba(6, 28, 21, .34), inset 0 1px 0 rgba(255, 255, 255, .84) !important;
  backdrop-filter: blur(24px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.15) !important;
}

.quote-share-head {
  padding: 18px 18px 8px !important;
}

.quote-share-kicker {
  color: #9a7437 !important;
  font-weight: 900 !important;
}

.quote-share-title {
  color: var(--faqih-v8-green) !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
}

.quote-share-close {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .68) !important;
  color: var(--faqih-v8-green) !important;
}

.quote-share-theme-row {
  margin: 8px 18px 16px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .56) !important;
}

.quote-share-theme-btn {
  border-radius: 999px !important;
  color: var(--faqih-v8-muted) !important;
  font-weight: 900 !important;
}

.quote-share-theme-btn.active {
  background: linear-gradient(180deg, var(--faqih-v8-green-2), var(--faqih-v8-green)) !important;
  color: white !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .18) !important;
}

.quote-share-preview-wrap {
  position: relative !important;
  width: min(100% - 28px, 360px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  border-radius: 22px !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  position: relative !important;
  flex: 0 0 1122px !important;
  width: 1122px !important;
  height: 1402px !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  transform-origin: top center !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
}

.quote-share-capture.theme-dark {
  background-image: url("assets/share-templates/faqih_quote_template_dark.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-light {
  background-image: url("assets/share-templates/faqih_quote_template_light.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-gold {
  background-image: url("assets/share-templates/faqih_quote_template_gold.png?v=20260429-square-hero") !important;
}

.quote-share-capture .quote-share-pattern,
.quote-share-capture .quote-share-vignette,
.quote-share-capture .quote-share-topline,
.quote-share-capture .quote-share-cta,
.quote-share-capture .quote-share-footer,
.quote-share-capture .quote-share-ornament {
  display: none !important;
}

.quote-share-capture .quote-share-body {
  position: absolute !important;
  inset: 500px 150px auto 150px !important;
  width: 822px !important;
  height: 450px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
}

.quote-share-capture .quote-share-arch-panel {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quote-share-capture .quote-share-text {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 365px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #f5f5f5 !important;
  text-align: center !important;
  white-space: pre-line !important;
  font-size: 78px !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .28) !important;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: 60px !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: 48px !important;
}

.quote-share-capture.theme-light .quote-share-text {
  color: var(--faqih-v8-green) !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .55) !important;
}

.quote-share-capture.theme-gold .quote-share-text {
  color: #4f350c !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, .45) !important;
}

.quote-share-capture .quote-share-source-stack {
  position: absolute !important;
  top: 385px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  color: rgba(245, 245, 245, .92) !important;
  text-align: center !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .20) !important;
}

.quote-share-capture .quote-share-attribution {
  display: none !important;
}

.quote-share-capture.theme-light .quote-share-source-stack {
  color: rgba(15, 61, 46, .86) !important;
  text-shadow: 0 2px 6px rgba(255, 255, 255, .50) !important;
}

.quote-share-capture.theme-gold .quote-share-source-stack {
  color: rgba(79, 53, 12, .86) !important;
  text-shadow: 0 2px 6px rgba(255, 255, 255, .45) !important;
}

.quote-share-actions {
  padding: 16px 18px 20px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.quote-share-action-btn {
  min-height: 54px !important;
  border-radius: 999px !important;
}

/* Screen 6: complete profile */
#profileView.profile-shell,
#profileView.profile-shell-v2 {
  min-height: 100svh !important;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .18), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f1ede3 100%) !important;
}

#profileView > .flex.items-center.p-4,
#profileView .profile-topbar-v2 {
  margin: 10px 14px 0 !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 14px 32px rgba(15, 61, 46, .08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

#profileView .profile-avatar-wrap {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(217, 196, 139, .62) !important;
  box-shadow: 0 18px 40px rgba(15, 61, 46, .14) !important;
}

#profileView .profile-avatar-camera {
  background: linear-gradient(180deg, #ead49b, #c5a15d) !important;
  color: #153126 !important;
  border: 2px solid #fffdf8 !important;
}

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

#profileView .gender-option {
  min-height: 62px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 61, 46, .10) !important;
  background: rgba(255, 255, 255, .68) !important;
  color: var(--faqih-v8-ink) !important;
  font-weight: 900 !important;
}

#profileView .gender-option:has(input:checked),
#profileView .gender-option.is-selected {
  border-color: rgba(185, 148, 85, .72) !important;
  background: rgba(217, 196, 139, .18) !important;
  box-shadow: 0 0 0 4px rgba(217, 196, 139, .12) !important;
}

#profileView .faqih-profile-privacy-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .62) !important;
  color: var(--faqih-v8-muted) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, .07) !important;
}

#profileView .faqih-profile-privacy-note span {
  color: #9a7437 !important;
}

#profileView .faqih-profile-privacy-note p {
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.8 !important;
  font-weight: 800 !important;
}

/* Premium chat composer */
.chat-room-composer,
.sheikh-chat-thread-panel .chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 80 !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, .76) 38%, rgba(247, 244, 238, .96)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.chat-room-form {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) 54px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 18px 40px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.chat-compose-input-wrap {
  min-height: 52px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .60) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.chat-compose-input {
  font-size: 1rem !important;
  color: var(--faqih-v8-ink) !important;
}

.chat-compose-icon,
.chat-send-btn {
  border-radius: 999px !important;
}

.chat-compose-icon {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .60) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  border: 0 !important;
  background: linear-gradient(180deg, var(--faqih-v8-green-2), var(--faqih-v8-green)) !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .24) !important;
}

.app-bottom-nav {
  width: min(100% - 24px, 420px) !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 20px 48px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(24px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.16) !important;
}

.questioner-tab-btn.active {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--faqih-v8-green-2), var(--faqih-v8-green)) !important;
  color: white !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .18) !important;
}

.faqih-reveal,
.questioner-hero-card,
.questioner-home-section,
.quote-card,
.fatwa-card,
.questioner-sheikh-card,
.profile-shell .form-input {
  animation: faqih-v8-rise .55s var(--faqih-v8-ease) both;
}

@keyframes faqih-v8-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 430px) {
  #questionerHomeHeader .questioner-home-header-card {
    grid-template-columns: 50px 1fr auto !important;
    min-height: 74px !important;
  }

  #questionerHomeHeader .questioner-home-profile-copy {
    max-width: 76px !important;
  }

  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    background: linear-gradient(90deg, rgba(3, 18, 13, .68), rgba(3, 18, 13, .18)) !important;
  }

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

  #tab-home .questioner-home-instant-cta {
    width: min(100%, 232px) !important;
  }

  .quote-share-actions {
    grid-template-columns: 1fr !important;
  }

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
    padding: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faqih-reveal,
  .questioner-hero-card,
  .questioner-home-section,
  .quote-card,
  .fatwa-card,
  .questioner-sheikh-card,
  .profile-shell .form-input {
    animation: none !important;
  }
}

/* FINAL OVERRIDE v7: must stay at EOF so older legacy layers cannot cancel it. */
#questionerHomeHeader.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 80 !important;
  padding: 10px 14px 4px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 74px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.48)) !important;
  box-shadow: 0 18px 44px rgba(15, 61, 46, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
}

#tab-home .faqih-home-hero-card.questioner-home-section.questioner-home-instant-section {
  isolation: isolate !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 342px !important;
  padding: 14px !important;
  border-radius: 36px !important;
  border: 1px solid rgba(232, 199, 124, 0.38) !important;
  background:
    linear-gradient(90deg, rgba(5, 24, 18, 0.99) 0%, rgba(7, 34, 25, 0.92) 34%, rgba(8, 42, 31, 0.68) 62%, rgba(8, 42, 31, 0.22) 100%) !important;
  box-shadow: 0 28px 68px rgba(15, 61, 46, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#tab-home .faqih-home-door-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: -3 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 64% center !important;
  opacity: 1 !important;
  transform: scale(1.02) !important;
  filter: saturate(1.05) contrast(1.05) !important;
  pointer-events: none !important;
}

#tab-home .faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 14, 0.98) 0%, rgba(6, 27, 20, 0.88) 38%, rgba(6, 27, 20, 0.54) 66%, rgba(6, 27, 20, 0.28) 100%),
    radial-gradient(circle at 72% 42%, rgba(255, 199, 91, 0.34), transparent 23%),
    radial-gradient(circle at 16% 10%, rgba(110, 231, 207, 0.12), transparent 34%) !important;
}

#tab-home .faqih-home-hero-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  z-index: 4 !important;
  border-radius: 35px !important;
  pointer-events: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 78px rgba(255, 198, 91, 0.10) !important;
}

#tab-home .faqih-home-hero-card > *:not(.faqih-home-door-bg) {
  position: relative !important;
  z-index: 2 !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  min-height: 238px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.65fr) minmax(128px, 0.35fr) !important;
  gap: 16px !important;
  align-items: end !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

#tab-home .faqih-home-hero-copy h2 {
  color: #fff !important;
  font-size: clamp(2.2rem, 10vw, 3.75rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.48) !important;
}

#tab-home .faqih-home-hero-copy strong {
  color: #F8E5B4 !important;
}

#tab-home .faqih-home-hero-copy p,
#tab-home .faqih-home-eyebrow {
  color: rgba(255, 255, 255, 0.90) !important;
}

#tab-home .faqih-home-hero-head .questioner-section-kicker,
#tab-home .faqih-home-privacy-chip,
#tab-home .faqih-home-trust-row span {
  border-color: rgba(232, 199, 124, 0.24) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: #F5E4B8 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

#tab-home .faqih-home-hero-card .questioner-home-instant-cta {
  align-self: end !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #14291F !important;
  background: linear-gradient(180deg, #F2D68E 0%, #C9A75D 100%) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

.chat-room-composer,
.sheikh-chat-thread-panel .chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 70 !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, 0.78) 38%, rgba(247, 244, 238, 0.96)) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.chat-room-form {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) 54px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: 0 18px 40px rgba(15, 61, 46, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.chat-compose-input-wrap {
  min-height: 52px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  background: rgba(255, 255, 255, 0.60) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.chat-send-btn,
.chat-compose-icon {
  border-radius: 999px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.chat-compose-icon {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  background: linear-gradient(180deg, #16634E, #0F3D2E) !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.24) !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  width: min(100%, 350px, calc(100vw - 52px)) !important;
  max-width: 100% !important;
  aspect-ratio: 1122 / 1402 !important;
  transform: none !important;
  margin: 0 auto !important;
}

.quote-share-capture .quote-share-text {
  white-space: pre-line !important;
  text-wrap: balance !important;
  line-height: 1.55 !important;
}

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

  #tab-home .faqih-home-door-bg {
    object-position: 61% center !important;
  }

  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    padding: 18px !important;
    background: linear-gradient(90deg, rgba(3, 18, 13, 0.64), rgba(3, 18, 13, 0.18)) !important;
  }

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

  #tab-home .faqih-home-hero-card .questioner-home-instant-cta {
    width: min(100%, 224px) !important;
  }

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
    padding: 8px !important;
  }
}

/* Ultra polish pass: door hero, iPhone glass top bar, and premium chat composer. */
:root {
  --faqih-door-glow: rgba(255, 194, 91, 0.34);
  --faqih-door-line: rgba(232, 199, 124, 0.34);
  --faqih-glass-white: rgba(255, 255, 255, 0.62);
  --faqih-glass-border: rgba(255, 255, 255, 0.72);
}

#questionerHomeHeader.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 45 !important;
  padding: 10px 14px 4px !important;
  margin: 0 !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card,
.faqih-home-appbar {
  min-height: 74px !important;
  border-radius: 30px !important;
  border: 1px solid var(--faqih-glass-border) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46)) !important;
  box-shadow:
    0 18px 44px rgba(15, 61, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(24px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.25) !important;
}

#questionerHomeHeader .questioner-home-header-card::before {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 84% 0%, rgba(201, 167, 93, 0.12), transparent 28%) !important;
  opacity: 1 !important;
}

.faqih-home-logo-center {
  filter: drop-shadow(0 8px 18px rgba(15, 61, 46, 0.14));
}

.faqih-home-logo-center::after {
  content: "فقيه";
  display: block;
  margin-top: -3px;
  color: var(--faqih-green) !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.faqih-home-action,
.questioner-home-notification-btn,
.questioner-home-settings-btn {
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  background: rgba(255, 255, 255, 0.50) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.faqih-home-profile-chip {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(180deg, rgba(22, 74, 58, 0.98), rgba(15, 61, 46, 0.98)) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, 0.22) !important;
}

.faqih-home-hero-card {
  position: relative !important;
  min-height: 324px !important;
  overflow: hidden !important;
  border-radius: 36px !important;
  padding: 18px !important;
  border: 1px solid var(--faqih-door-line) !important;
  background:
    linear-gradient(90deg, rgba(6, 27, 20, 0.98) 0%, rgba(7, 35, 26, 0.94) 30%, rgba(8, 42, 31, 0.72) 56%, rgba(8, 42, 31, 0.34) 100%),
    radial-gradient(circle at 73% 42%, var(--faqih-door-glow), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 36%),
    url("assets/hero/door-archway-fast.jpg") !important;
  background-size: cover !important;
  background-position: center right !important;
  box-shadow:
    0 26px 64px rgba(15, 61, 46, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 79% 40%, rgba(255, 213, 128, 0.26), transparent 21%),
    radial-gradient(circle at 14% 16%, rgba(110, 231, 207, 0.10), transparent 34%),
    linear-gradient(90deg, rgba(3, 18, 13, 0.18), transparent 70%) !important;
  opacity: 1 !important;
}

.faqih-home-hero-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: 35px !important;
  pointer-events: none !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: inset 0 0 70px rgba(255, 193, 83, 0.08) !important;
}

.faqih-home-hero-card > * {
  position: relative !important;
  z-index: 2 !important;
}

.faqih-home-hero-orb {
  position: absolute !important;
  width: 180px !important;
  height: 180px !important;
  top: 25% !important;
  right: 12% !important;
  opacity: 0.42 !important;
  background: radial-gradient(circle, rgba(255, 205, 112, 0.44), transparent 66%) !important;
  filter: blur(22px) !important;
}

.faqih-home-hero-head {
  align-items: center !important;
  justify-content: space-between !important;
}

.faqih-home-hero-head .questioner-section-kicker,
.faqih-home-privacy-chip,
.faqih-home-trust-row span {
  border-color: rgba(232, 199, 124, 0.24) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: #F5E4B8 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.faqih-home-hero-panel,
#tab-home .questioner-home-instant-card {
  min-height: 232px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.64fr) minmax(132px, 0.36fr) !important;
  align-items: end !important;
  gap: 16px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

.faqih-home-hero-copy {
  max-width: 100% !important;
  color: #fff !important;
}

.faqih-home-eyebrow {
  color: rgba(245, 228, 184, 0.92) !important;
}

.faqih-home-hero-copy h2 {
  color: #fff !important;
  font-size: clamp(2.15rem, 9.6vw, 3.7rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.44) !important;
}

.faqih-home-hero-copy strong {
  color: #F8E5B4 !important;
  font-size: clamp(1.04rem, 4.2vw, 1.28rem) !important;
}

.faqih-home-hero-copy p:not(.faqih-home-eyebrow) {
  color: rgba(255, 255, 255, 0.90) !important;
  line-height: 1.9 !important;
}

.faqih-home-hero-card .questioner-home-instant-cta {
  align-self: end !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #14291F !important;
  background: linear-gradient(180deg, #F2D68E 0%, #C9A75D 100%) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 35 !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, 0.78) 38%, rgba(247, 244, 238, 0.96)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.dark .chat-room-composer {
  background:
    linear-gradient(180deg, rgba(6, 27, 20, 0), rgba(6, 27, 20, 0.74) 38%, rgba(6, 27, 20, 0.96)) !important;
}

.chat-room-form {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) 54px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.64) !important;
  box-shadow:
    0 18px 40px rgba(15, 61, 46, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

.dark .chat-room-form {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(8, 36, 27, 0.72) !important;
}

.chat-compose-input-wrap {
  min-height: 52px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.dark .chat-compose-input-wrap {
  border-color: rgba(232, 215, 168, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.chat-compose-input {
  font-size: 16px !important;
  color: #1C2B25 !important;
}

.dark .chat-compose-input {
  color: #F7F4EE !important;
}

.chat-compose-input::placeholder {
  color: rgba(99, 114, 108, 0.82) !important;
}

.chat-send-btn,
.chat-compose-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.chat-compose-icon {
  background: rgba(255, 255, 255, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  background: linear-gradient(180deg, #16634E, #0F3D2E) !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.24) !important;
}

.chat-send-btn:hover,
.chat-compose-icon:hover {
  transform: translateY(-1px) !important;
}

.chat-send-btn:active,
.chat-compose-icon:active {
  transform: scale(0.96) !important;
}

.ask-page-counter {
  padding-inline: 14px !important;
  color: rgba(99, 114, 108, 0.72) !important;
}

@media (max-width: 430px) {
  .faqih-home-hero-card {
    min-height: 338px !important;
    padding: 14px !important;
    background-position: 62% center !important;
  }

  .faqih-home-hero-panel,
  #tab-home .questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    padding: 18px !important;
    background:
      linear-gradient(90deg, rgba(3, 18, 13, 0.62), rgba(3, 18, 13, 0.20)),
      rgba(255, 255, 255, 0.07) !important;
  }

  .faqih-home-hero-copy {
    max-width: 72% !important;
  }

  .faqih-home-hero-card .questioner-home-instant-cta {
    width: min(100%, 220px) !important;
  }

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .chat-compose-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .chat-send-btn {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Quote page final polish - keeps the export template locked and fixes mobile preview width. */
:root {
  --faqih-jade: #6EE7CF;
  --faqih-jade-strong: #2DD4BF;
  --faqih-jade-soft: rgba(110, 231, 207, 0.18);
  --faqih-pearl: #F7F4EE;
}

.fatwa-brand-eyebrow {
  color: var(--faqih-jade-strong) !important;
}

.fatwa-library-pill {
  color: #08342A !important;
  border-color: rgba(45, 212, 191, 0.34) !important;
  background: linear-gradient(135deg, rgba(110, 231, 207, 0.28), rgba(255, 254, 250, 0.9)) !important;
}

.library-quotes-panel {
  min-height: clamp(500px, 76vh, 760px) !important;
  justify-content: flex-start !important;
  padding: 4px 0 14px !important;
  gap: 16px !important;
}

.library-mode-switch {
  padding: 6px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(232, 255, 249, 0.72)) !important;
}

.library-mode-btn.active {
  border-color: rgba(45, 212, 191, 0.42) !important;
  background: linear-gradient(135deg, #0F3D2E, #146A58) !important;
  color: #F7FFFC !important;
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.quote-card {
  min-height: 460px !important;
  border: 1px solid rgba(110, 231, 207, 0.24) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(110, 231, 207, 0.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(145deg, #08241B 0%, #0F3D2E 54%, #062119 100%) !important;
  box-shadow:
    0 28px 60px rgba(15, 61, 46, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.quote-card::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(110, 231, 207, 0.10) 36%, transparent 74%),
    radial-gradient(circle at 12% 20%, rgba(110, 231, 207, 0.12), transparent 48%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 8px, transparent 8px 25px) !important;
}

.quote-card-badge {
  color: #DBFFF7 !important;
  background: rgba(110, 231, 207, 0.16) !important;
  border-color: rgba(110, 231, 207, 0.34) !important;
}

.quote-day-badge {
  color: #C8FFF4 !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(110, 231, 207, 0.20) !important;
}

.quote-text {
  width: min(100%, 82%) !important;
  margin-top: 30px !important;
  font-size: clamp(1.45rem, 6.8vw, 2.45rem) !important;
  line-height: 1.9 !important;
  color: #F7FFFC !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.32) !important;
}

.quote-source {
  color: var(--faqih-jade) !important;
}

.quote-reference {
  color: rgba(247, 255, 252, 0.72) !important;
}

.quote-action-bar {
  border-color: rgba(45, 212, 191, 0.20) !important;
  background: rgba(247, 255, 252, 0.88) !important;
}

.quote-action-btn {
  border-color: rgba(45, 212, 191, 0.24) !important;
  background: rgba(45, 212, 191, 0.10) !important;
  color: var(--faqih-green) !important;
}

.quote-action-btn:hover,
.quote-action-btn:active {
  background: rgba(45, 212, 191, 0.18) !important;
  transform: translateY(-1px) scale(0.99);
}

body.quote-share-open {
  overflow: hidden !important;
}

.quote-share-sheet {
  padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom)) !important;
  align-items: center !important;
}

.quote-share-dialog {
  width: min(100% - 12px, 458px) !important;
  max-width: calc(100vw - 12px) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(110, 231, 207, 0.12), transparent 30%),
    rgba(255, 254, 250, 0.94) !important;
}

.quote-share-shell {
  padding: 14px !important;
  gap: 12px !important;
  overflow-x: hidden !important;
}

.quote-share-kicker {
  color: #0F766E !important;
}

.quote-share-theme-btn.active {
  border-color: rgba(45, 212, 191, 0.46) !important;
  background: linear-gradient(135deg, #0F3D2E, #17745F) !important;
  color: #F7FFFC !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.18) !important;
}

.quote-share-preview-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  padding: 2px 0 0 !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  flex: 0 0 auto !important;
  width: min(100%, 350px, calc(100vw - 52px)) !important;
  max-width: 100% !important;
  aspect-ratio: 1122 / 1402 !important;
  border-radius: 22px !important;
  transform: none !important;
  margin: 0 auto !important;
}

.quote-share-capture .quote-share-arch-panel {
  inset: 37.1% 13.35% auto 13.35% !important;
  height: 26% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.quote-share-capture .quote-share-text {
  white-space: pre-line !important;
  text-wrap: balance !important;
  width: 100% !important;
  padding-inline: 4% !important;
  font-size: clamp(1.12rem, 5.25vw, 1.94rem) !important;
  line-height: 1.55 !important;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: clamp(0.98rem, 4.6vw, 1.5rem) !important;
  line-height: 1.62 !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: clamp(0.78rem, 3.72vw, 1.04rem) !important;
  line-height: 1.7 !important;
}

.quote-share-capture .quote-share-source-stack {
  top: 103.5% !important;
  left: 0 !important;
  right: 0 !important;
}

.quote-share-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.quote-share-action-btn.primary {
  background: linear-gradient(135deg, #0F3D2E, #168B72) !important;
  color: #F7FFFC !important;
  box-shadow: 0 14px 26px rgba(15, 61, 46, 0.20) !important;
}

.quote-share-action-btn.secondary {
  color: #0F3D2E !important;
  border-color: rgba(45, 212, 191, 0.25) !important;
  background: rgba(45, 212, 191, 0.10) !important;
}

@media (max-width: 380px) {
  .quote-share-shell {
    padding: 10px !important;
  }

  .quote-share-capture,
  .quote-share-capture.theme-dark,
  .quote-share-capture.theme-light,
  .quote-share-capture.theme-gold {
    width: min(100%, calc(100vw - 42px)) !important;
    border-radius: 18px !important;
  }
}

/* Home page full redesign */
.faqih-home-appbar-host {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(10px, env(safe-area-inset-top)) 14px 8px !important;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.96), rgba(247, 244, 238, 0.70) 72%, transparent) !important;
  backdrop-filter: blur(14px);
}

.dark .faqih-home-appbar-host {
  background: linear-gradient(180deg, rgba(8, 36, 27, 0.96), rgba(8, 36, 27, 0.72) 72%, transparent) !important;
}

.faqih-home-appbar {
  direction: ltr;
  display: grid !important;
  grid-template-columns: 50px minmax(82px, 1fr) auto !important;
  align-items: center !important;
  min-height: 78px !important;
  gap: 12px !important;
  padding: 10px 10px 10px 12px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(255, 254, 250, 0.76)),
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.12), transparent 44%) !important;
  box-shadow: 0 16px 34px rgba(15, 61, 46, 0.10) !important;
  backdrop-filter: blur(20px);
}

.dark .faqih-home-appbar {
  border-color: rgba(232, 215, 168, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(10, 44, 33, 0.92), rgba(7, 30, 23, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.13), transparent 44%) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

.faqih-home-appbar::before,
.faqih-home-appbar::after {
  display: none !important;
}

.faqih-home-action {
  grid-column: 1;
  justify-self: start !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
  color: var(--faqih-green) !important;
  background: rgba(15, 61, 46, 0.07) !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
}

.dark .faqih-home-action {
  color: var(--faqih-gold-soft) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
}

.faqih-home-logo-center {
  grid-column: 2;
  justify-self: center !important;
  width: 72px !important;
  height: 72px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 24px;
  background: var(--faqih-green) !important;
  border: 1px solid rgba(201, 167, 93, 0.28) !important;
  box-shadow: 0 16px 24px rgba(15, 61, 46, 0.18);
}

.faqih-home-logo-center .questioner-home-header-logo {
  width: 66px !important;
  height: 66px !important;
  object-fit: cover;
  transform: none !important;
  border-radius: 22px;
}

.faqih-home-profile-chip {
  grid-column: 3;
  direction: rtl;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
  padding: 7px 9px 7px 12px;
  border-radius: 999px;
  background: var(--faqih-green) !important;
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 61, 46, 0.18);
}

.faqih-home-profile-chip .questioner-home-profile-ring {
  width: 42px !important;
  height: 42px !important;
  border-width: 1.5px !important;
  border-color: rgba(201, 167, 93, 0.68) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.faqih-home-profile-chip .questioner-home-profile-ring img {
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.faqih-home-profile-chip .questioner-home-welcome {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px !important;
  line-height: 1.25;
}

.faqih-home-profile-chip .questioner-home-username {
  color: #fff !important;
  font-size: 13px !important;
  max-width: 92px;
}

.faqih-home-redesign {
  gap: 18px !important;
  padding: 14px 14px 0 !important;
  background:
    radial-gradient(circle at 18% 4%, rgba(201, 167, 93, 0.11), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, #f2efe7 56%, #edf4ee 100%) !important;
}

.dark .faqih-home-redesign {
  background:
    radial-gradient(circle at 18% 4%, rgba(201, 167, 93, 0.13), transparent 28%),
    linear-gradient(180deg, #08241B 0%, #071D16 100%) !important;
}

.faqih-home-redesign .legacy-home-hero {
  display: none !important;
}

.faqih-home-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 167, 93, 0.22), transparent 34%),
    linear-gradient(145deg, #0F3D2E 0%, #164A3A 58%, #08241B 100%) !important;
  color: #fff;
  box-shadow: 0 24px 52px rgba(15, 61, 46, 0.23) !important;
}

.faqih-home-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%);
  background-size: 34px 34px;
  opacity: 0.34;
}

.faqih-home-hero-orb {
  position: absolute;
  left: -54px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 167, 93, 0.24), transparent 68%);
  pointer-events: none;
}

.faqih-home-hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 0;
}

.faqih-home-hero-head .questioner-section-kicker,
.faqih-home-privacy-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin: 0 !important;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: #F1E3BE !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.faqih-home-hero-panel {
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 18px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.faqih-home-eyebrow {
  margin: 0 0 8px !important;
  color: rgba(245, 245, 245, 0.78) !important;
  font-size: 12px !important;
  font-weight: 800;
}

.faqih-home-hero-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2rem, 10vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.faqih-home-hero-copy strong {
  display: block;
  color: #fff !important;
  font-size: 1.1rem;
  line-height: 1.75;
}

.faqih-home-hero-copy p:not(.faqih-home-eyebrow) {
  color: rgba(245, 245, 245, 0.82) !important;
  font-size: 14px;
  line-height: 1.95;
}

.faqih-home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 16px;
}

.faqih-home-trust-row span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 167, 93, 0.22);
  background: rgba(201, 167, 93, 0.11);
  color: #F4E5BD;
  font-size: 11px;
  font-weight: 900;
}

.faqih-home-hero-card .questioner-home-instant-cta {
  min-height: 54px !important;
  border-radius: 19px !important;
  background: linear-gradient(180deg, #E1C47B, var(--faqih-gold)) !important;
  color: #13231d !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

.faqih-home-quote-card {
  display: block !important;
  position: relative;
  overflow: hidden;
  padding: 20px !important;
  border-radius: 34px !important;
  border: 1px solid rgba(201, 167, 93, 0.25) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.16), transparent 35%),
    linear-gradient(180deg, #FFFEFA 0%, #F8F4EA 100%) !important;
  color: var(--faqih-ink);
  box-shadow: 0 18px 40px rgba(15, 61, 46, 0.10) !important;
}

.dark .faqih-home-quote-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.15), transparent 35%),
    linear-gradient(180deg, rgba(11, 48, 36, 0.95), rgba(8, 36, 27, 0.92)) !important;
}

.faqih-home-quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 61, 46, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.24;
  pointer-events: none;
}

.faqih-home-quote-card .questioner-home-quote-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.faqih-home-quote-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faqih-home-quote-top .questioner-hero-badge,
.faqih-home-quote-top .questioner-section-kicker {
  margin: 0 !important;
  color: var(--faqih-green) !important;
  background: rgba(201, 167, 93, 0.14) !important;
  border: 1px solid rgba(201, 167, 93, 0.20) !important;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
}

.dark .faqih-home-quote-top .questioner-hero-badge,
.dark .faqih-home-quote-top .questioner-section-kicker {
  color: var(--faqih-gold-soft) !important;
}

.faqih-home-quote-ornament {
  display: block;
  width: fit-content;
  margin: 16px auto 12px;
  color: var(--faqih-gold);
  font-size: 18px;
}

.faqih-home-quote-ornament::before,
.faqih-home-quote-ornament::after {
  content: "";
  display: inline-block;
  width: 58px;
  height: 1px;
  margin: 0 12px 5px;
  background: rgba(201, 167, 93, 0.48);
}

.faqih-home-quote-card .questioner-home-quote-text {
  margin: 0 auto !important;
  max-width: 92%;
  color: var(--faqih-green) !important;
  font-size: clamp(1.5rem, 7.2vw, 2.5rem) !important;
  line-height: 1.85 !important;
  font-weight: 900 !important;
  text-align: center;
}

.dark .faqih-home-quote-card .questioner-home-quote-text {
  color: #F8FBF8 !important;
}

.faqih-home-quote-card .questioner-home-quote-meta {
  justify-content: center;
  margin-top: 16px;
}

.faqih-home-quote-card .questioner-home-quote-source,
.faqih-home-quote-card .questioner-home-quote-reference {
  color: var(--faqih-muted) !important;
  font-size: 13px;
  font-weight: 800;
}

.dark .faqih-home-quote-card .questioner-home-quote-source,
.dark .faqih-home-quote-card .questioner-home-quote-reference {
  color: rgba(245, 245, 245, 0.72) !important;
}

.faqih-home-quote-card .questioner-hero-actions {
  justify-content: center;
}

.faqih-home-quote-card .questioner-hero-cta {
  width: 100%;
  min-height: 50px !important;
  margin-top: 18px;
  background: var(--faqih-green) !important;
}

.faqih-home-quote-side {
  display: none !important;
}

.faqih-home-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(15, 61, 46, 0.08);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.07);
  backdrop-filter: blur(16px);
}

.dark .faqih-home-mini-card {
  border-color: rgba(232, 215, 168, 0.12);
  background: rgba(8, 36, 27, 0.70);
}

.faqih-home-mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(201, 167, 93, 0.15);
  color: var(--faqih-gold);
  font-size: 22px;
}

.faqih-home-mini-copy {
  display: grid;
  gap: 4px;
}

.faqih-home-mini-copy strong {
  color: var(--faqih-ink);
  font-size: 15px;
  font-weight: 900;
}

.dark .faqih-home-mini-copy strong {
  color: #F8FBF8;
}

.faqih-home-mini-copy span {
  color: var(--faqih-muted);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.dark .faqih-home-mini-copy span {
  color: rgba(245, 245, 245, 0.68);
}

.faqih-home-scholars-section {
  padding: 18px !important;
  border-radius: 32px !important;
  background: rgba(255, 254, 250, 0.74) !important;
  border-color: rgba(15, 61, 46, 0.08) !important;
  box-shadow: none !important;
}

.dark .faqih-home-scholars-section {
  background: rgba(8, 36, 27, 0.64) !important;
}

.faqih-home-scholars-section .questioner-section-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.faqih-home-scholars-section .questioner-section-head h2 {
  color: var(--faqih-ink) !important;
  font-size: 24px;
  line-height: 1.35;
}

.dark .faqih-home-scholars-section .questioner-section-head h2 {
  color: #F8FBF8 !important;
}

.faqih-home-scholars-section .questioner-live-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(58, 174, 122, 0.18) !important;
  background: rgba(58, 174, 122, 0.10) !important;
  color: #267D58 !important;
  font-size: 11px;
  font-weight: 900;
}

#sheikhList.questioner-sheikh-grid,
.questioner-sheikh-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.faqih-home-scholars-section .questioner-sheikh-card {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 167, 93, 0.10), transparent 30%),
    linear-gradient(180deg, #FFFFFF, #FCFAF5) !important;
  box-shadow: 0 16px 34px rgba(15, 61, 46, 0.08) !important;
}

.dark .faqih-home-scholars-section .questioner-sheikh-card {
  border-color: rgba(232, 215, 168, 0.12) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 167, 93, 0.11), transparent 30%),
    rgba(8, 36, 27, 0.82) !important;
}

.faqih-home-scholars-section .questioner-sheikh-avatar-wrap {
  grid-column: 1;
  width: 74px;
  height: 74px;
}

.faqih-home-scholars-section .questioner-sheikh-avatar-frame {
  width: 72px !important;
  height: 72px !important;
  border-radius: 24px !important;
  border: 2px solid rgba(201, 167, 93, 0.26) !important;
  overflow: hidden;
}

.faqih-home-scholars-section .questioner-sheikh-copy {
  grid-column: 2;
  min-width: 0;
}

.faqih-home-scholars-section .questioner-sheikh-topline {
  gap: 8px;
}

.faqih-home-scholars-section .questioner-sheikh-topline h3 {
  color: var(--faqih-ink) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.dark .faqih-home-scholars-section .questioner-sheikh-topline h3 {
  color: #F8FBF8 !important;
}

.faqih-home-scholars-section .questioner-sheikh-rating {
  background: rgba(201, 167, 93, 0.15) !important;
  color: #8A692C !important;
  border: 0 !important;
}

.faqih-home-scholars-section .questioner-sheikh-specialty {
  color: var(--faqih-muted) !important;
  font-weight: 800;
}

.dark .faqih-home-scholars-section .questioner-sheikh-specialty {
  color: rgba(245, 245, 245, 0.68) !important;
}

.faqih-home-scholars-section .questioner-sheikh-meta {
  gap: 6px;
  margin-top: 9px;
}

.faqih-home-scholars-section .questioner-sheikh-meta span {
  background: rgba(15, 61, 46, 0.06) !important;
  color: var(--faqih-green) !important;
  border: 0 !important;
  font-weight: 900;
}

.dark .faqih-home-scholars-section .questioner-sheikh-meta span {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--faqih-gold-soft) !important;
}

.faqih-home-scholars-section .questioner-sheikh-trustline {
  margin: 10px 0 0;
  color: var(--faqih-muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.7;
}

.dark .faqih-home-scholars-section .questioner-sheikh-trustline {
  color: rgba(245, 245, 245, 0.66);
}

.faqih-home-scholars-section .questioner-sheikh-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px !important;
  background: var(--faqih-green) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.16) !important;
}

.faqih-home-scholars-section .questioner-sheikh-action-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 22px;
  line-height: 1;
}

.faqih-home-scholars-section .questioner-sheikh-action[disabled] {
  background: rgba(15, 61, 46, 0.12) !important;
  color: rgba(15, 61, 46, 0.45) !important;
  box-shadow: none !important;
}

.faqih-home-scholars-section .questioner-sheikh-status-dot:not(.offline) {
  background: #3AAE7A !important;
  box-shadow: 0 0 0 6px rgba(58, 174, 122, 0.15) !important;
}

.app-bottom-nav {
  padding: 8px !important;
  gap: 4px !important;
}

.questioner-tab-btn {
  min-height: 58px !important;
  padding: 6px 9px !important;
}

.questioner-tab-btn.active {
  border-radius: 22px !important;
  transform: translateY(-2px) scale(1.01);
}

.questioner-tab-label {
  font-size: 10.5px !important;
  font-weight: 900 !important;
}

.questioner-tab-icon-wrap {
  width: 32px !important;
  height: 32px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(15, 61, 46, 0.06) !important;
}

.dark .questioner-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.07) !important;
}

.questioner-tab-btn.active .questioner-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.13) !important;
}

.faqih-home-redesign .chat-empty-state {
  border: 1px solid rgba(15, 61, 46, 0.08);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 254, 250, 0.76);
  color: var(--faqih-muted);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 61, 46, 0.07);
}

.dark .faqih-home-redesign .chat-empty-state {
  border-color: rgba(232, 215, 168, 0.12);
  background: rgba(8, 36, 27, 0.72);
  color: rgba(245, 245, 245, 0.72);
}

@media (max-width: 380px) {
  .faqih-home-appbar {
    grid-template-columns: 46px 64px minmax(112px, 1fr) !important;
    gap: 8px !important;
    padding: 9px !important;
  }

  .faqih-home-logo-center {
    width: 64px !important;
    height: 64px !important;
  }

  .faqih-home-logo-center .questioner-home-header-logo {
    width: 58px !important;
    height: 58px !important;
  }

  .faqih-home-profile-chip {
    gap: 7px !important;
    padding-inline: 8px 10px;
  }

  .faqih-home-profile-chip .questioner-home-profile-ring {
    width: 38px !important;
    height: 38px !important;
  }

  .faqih-home-profile-chip .questioner-home-username {
    max-width: 74px;
    font-size: 12px !important;
  }

  .faqih-home-hero-copy h2 {
    font-size: 2rem;
  }

  .faqih-home-scholars-section .questioner-sheikh-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .faqih-home-scholars-section .questioner-sheikh-avatar-wrap,
  .faqih-home-scholars-section .questioner-sheikh-avatar-frame {
    width: 64px !important;
    height: 64px !important;
  }
}

/* Fixed-template quote sharing preview.
   Exported images use the same PNG templates and only inject quote/source text. */
.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  width: min(88vw, 430px) !important;
  aspect-ratio: 1122 / 1402 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 30px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  overflow: hidden !important;
}

.quote-share-capture.theme-dark {
  background-image: url("assets/share-templates/faqih_quote_template_dark.png") !important;
}

.quote-share-capture.theme-light {
  background-image: url("assets/share-templates/faqih_quote_template_light.png") !important;
}

.quote-share-capture.theme-gold {
  background-image: url("assets/share-templates/faqih_quote_template_gold.png") !important;
}

.quote-share-capture .quote-share-pattern,
.quote-share-capture .quote-share-vignette,
.quote-share-capture .quote-share-topline,
.quote-share-capture .quote-share-cta,
.quote-share-capture .quote-share-footer,
.quote-share-capture .quote-share-ornament,
.quote-share-capture .quote-share-attribution {
  display: none !important;
}

.quote-share-capture .quote-share-body {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.quote-share-capture .quote-share-arch-panel {
  position: absolute !important;
  inset: 37.1% 13.35% auto 13.35% !important;
  width: auto !important;
  height: 26% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.quote-share-capture .quote-share-arch-panel::before,
.quote-share-capture .quote-share-arch-panel::after {
  display: none !important;
  content: none !important;
}

.quote-share-capture .quote-share-text {
  width: 100% !important;
  max-width: 100% !important;
  color: #F5F5F5 !important;
  font-family: "Cairo", "Noto Sans Arabic", "Tajawal", sans-serif !important;
  font-size: clamp(1.28rem, 5.8vw, 2.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.58 !important;
  text-align: center !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.24) !important;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: clamp(1.08rem, 5vw, 1.78rem) !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: clamp(0.92rem, 4.2vw, 1.28rem) !important;
  line-height: 1.72 !important;
}

.quote-share-capture .quote-share-source-stack {
  position: absolute !important;
  top: 104% !important;
  left: -3% !important;
  right: -3% !important;
  display: block !important;
  margin: 0 !important;
  text-align: center !important;
}

.quote-share-capture .quote-share-source {
  display: block !important;
  color: rgba(245, 245, 245, 0.9) !important;
  font-family: "Cairo", "Noto Sans Arabic", "Tajawal", sans-serif !important;
  font-size: clamp(0.72rem, 2.5vw, 1.02rem) !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
}

.quote-share-capture.theme-light .quote-share-text,
.quote-share-capture.theme-light .quote-share-source,
.quote-share-capture.theme-gold .quote-share-text,
.quote-share-capture.theme-gold .quote-share-source {
  color: #0F3D2E !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5) !important;
}

/* Faqih 2026 premium identity layer
   This layer intentionally overrides the older blue-heavy styling without
   changing app logic. Keep it at the end of the file. */
:root {
  --faqih-green: #0F3D2E;
  --faqih-green-900: #08241B;
  --faqih-green-800: #0B3024;
  --faqih-green-700: #15543F;
  --faqih-gold: #C9A75D;
  --faqih-gold-soft: #E8D7A8;
  --faqih-ivory: #F5F5F5;
  --faqih-paper: #FFFEFA;
  --faqih-ink: #14231D;
  --faqih-muted: #63726C;
  --faqih-line: rgba(15, 61, 46, 0.12);
  --faqih-shadow: 0 18px 42px rgba(15, 61, 46, 0.10);
  --faqih-shadow-strong: 0 24px 70px rgba(8, 36, 27, 0.18);
  --faqih-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Noto Sans Arabic", "Inter", sans-serif !important;
  color: var(--faqih-ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 167, 93, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfaf5 0%, var(--faqih-ivory) 64%, #eef4ef 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dark body {
  color: #eef7f2;
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 167, 93, 0.13), transparent 30%),
    linear-gradient(180deg, var(--faqih-green-900), #061B14 100%) !important;
}

#appView {
  background:
    radial-gradient(circle at 86% 0%, rgba(201, 167, 93, 0.09), transparent 30%),
    linear-gradient(180deg, #fbfaf5 0%, #f3f6f1 100%) !important;
}

.dark #appView {
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 167, 93, 0.12), transparent 30%),
    linear-gradient(180deg, var(--faqih-green-900), #071D16 100%) !important;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.tab-btn,
.questioner-hero-cta,
.ask-page-send-btn,
.chat-send-btn,
.quote-action-btn,
.library-mode-btn,
.social-login-btn,
.developer-nav-item {
  transition:
    transform 0.2s var(--faqih-ease),
    box-shadow 0.2s var(--faqih-ease),
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease !important;
}

button:active,
.tab-btn:active,
.questioner-hero-cta:active,
.ask-page-send-btn:active,
.chat-send-btn:active,
.quote-action-btn:active,
.library-mode-btn:active,
.social-login-btn:active {
  transform: scale(0.97);
}

input,
textarea,
select,
.form-input {
  border-color: rgba(15, 61, 46, 0.14) !important;
  background: rgba(255, 254, 250, 0.92) !important;
  color: var(--faqih-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

input:focus,
textarea:focus,
select:focus,
.form-input:focus {
  border-color: rgba(201, 167, 93, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(201, 167, 93, 0.14) !important;
}

.dark input,
.dark textarea,
.dark select,
.dark .form-input {
  background: rgba(8, 36, 27, 0.72) !important;
  border-color: rgba(232, 215, 168, 0.16) !important;
  color: #f7fbf8 !important;
}

.welcome-screen {
  background: var(--faqih-green) !important;
  padding: 18px !important;
}

.welcome-bg-layer {
  opacity: 0.18;
  filter: saturate(0.65) contrast(1.08);
  mix-blend-mode: soft-light;
}

.welcome-bg-overlay {
  background:
    radial-gradient(circle at 50% 22%, rgba(201, 167, 93, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(15, 61, 46, 0.15), rgba(8, 36, 27, 0.90) 74%, rgba(6, 27, 20, 0.98)) !important;
}

.welcome-glow {
  background: rgba(201, 167, 93, 0.18) !important;
}

.welcome-content,
.login-brand-card,
.login-form-shell,
.profile-shell,
.profile-shell-v2,
.consultations-header-glass,
.fatwa-topbar-shell,
.quote-share-dialog {
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  background: rgba(255, 254, 250, 0.88) !important;
  box-shadow: var(--faqih-shadow) !important;
  backdrop-filter: blur(18px);
}

.welcome-content {
  background: rgba(8, 36, 27, 0.78) !important;
  border-color: rgba(232, 215, 168, 0.20) !important;
  box-shadow: var(--faqih-shadow-strong) !important;
}

.welcome-logo-shell {
  border-color: rgba(232, 215, 168, 0.20) !important;
  background: rgba(4, 25, 18, 0.35) !important;
  box-shadow: none !important;
}

.welcome-title,
.login-brand-title,
.questioner-home-username,
.questioner-section-head h2,
.questioner-hero-copy h2,
.fatwa-brand-copy h1,
.quote-share-title {
  font-family: "Cairo", "Noto Sans Arabic", sans-serif !important;
  letter-spacing: -0.02em;
}

.welcome-title {
  color: var(--faqih-ivory) !important;
}

.welcome-subtitle,
.welcome-status-copy {
  color: rgba(245, 245, 245, 0.78) !important;
}

.welcome-features span {
  color: var(--faqih-gold-soft) !important;
  border-color: rgba(201, 167, 93, 0.22) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.welcome-start-btn,
#emailLoginBtn,
#signupSubmitBtn,
#profileSaveBtn,
.questioner-hero-cta,
.questioner-home-instant-cta,
.ask-page-send-btn,
.chat-send-btn,
.consult-fab,
.verify-login-btn {
  border: 1px solid rgba(201, 167, 93, 0.24) !important;
  background: var(--faqih-green) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(15, 61, 46, 0.20) !important;
}

.welcome-start-btn:hover,
#emailLoginBtn:hover,
#signupSubmitBtn:hover,
#profileSaveBtn:hover,
.questioner-hero-cta:hover,
.ask-page-send-btn:hover,
.consult-fab:hover,
.verify-login-btn:hover {
  background: var(--faqih-green-700) !important;
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 61, 46, 0.24) !important;
}

.login-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.11), transparent 34%),
    linear-gradient(180deg, #fbfaf5 0%, #eff5ef 100%) !important;
}

.dark .login-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 167, 93, 0.13), transparent 34%),
    linear-gradient(180deg, var(--faqih-green-900) 0%, #061B14 100%) !important;
}

.login-mark-orb,
.login-brand-badge,
.ask-page-icon,
.fatwa-brand-badge,
.questioner-home-logo-wrap,
.questioner-home-brand-badge {
  background: rgba(15, 61, 46, 0.08) !important;
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  box-shadow: none !important;
}

.login-brand-subtitle,
.login-form-head p,
.questioner-section-note,
.questioner-home-meta,
.fatwa-brand-copy p {
  color: var(--faqih-muted) !important;
}

.dark .login-brand-card,
.dark .login-form-shell,
.dark .profile-shell,
.dark .profile-shell-v2,
.dark .consultations-header-glass,
.dark .fatwa-topbar-shell,
.dark .quote-share-dialog {
  background: rgba(8, 36, 27, 0.82) !important;
  border-color: rgba(232, 215, 168, 0.14) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26) !important;
}

.questioner-home-header {
  padding: 12px 14px 6px !important;
  background: transparent !important;
}

.questioner-home-header-card {
  min-height: 94px !important;
  padding: 14px 14px !important;
  border: 1px solid rgba(201, 167, 93, 0.22) !important;
  background: var(--faqih-green) !important;
  box-shadow: 0 20px 44px rgba(8, 36, 27, 0.17) !important;
}

.questioner-home-header-card::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 167, 93, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent) !important;
}

.questioner-home-profile-ring {
  border-color: rgba(201, 167, 93, 0.55) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.questioner-home-welcome,
.questioner-home-username,
.questioner-home-notify {
  color: #fff !important;
}

.questioner-home-welcome {
  opacity: 0.78;
}

.questioner-home-header-logo {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.questioner-home-notify {
  border-color: rgba(201, 167, 93, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.questioner-home-notify-dot,
.questioner-live-dot,
.questioner-sheikh-status-dot {
  background: var(--faqih-gold) !important;
  box-shadow: 0 0 0 5px rgba(201, 167, 93, 0.15) !important;
}

.questioner-home-main {
  padding-top: 10px !important;
}

.questioner-home-section,
.questioner-hero-card,
.questioner-home-instant-card,
.questioner-sheikh-card,
.fatwa-card,
.quote-card,
.ask-page-intro,
.ask-page-target,
.ask-page-form,
.chat-privacy-note,
.chat-room-composer,
.consultation-card,
.question-card,
.settings-section,
.profile-card {
  border: 1px solid var(--faqih-line) !important;
  background: rgba(255, 254, 250, 0.92) !important;
  box-shadow: var(--faqih-shadow) !important;
}

.dark .questioner-home-section,
.dark .questioner-hero-card,
.dark .questioner-home-instant-card,
.dark .questioner-sheikh-card,
.dark .fatwa-card,
.dark .quote-card,
.dark .ask-page-intro,
.dark .ask-page-target,
.dark .ask-page-form,
.dark .chat-privacy-note,
.dark .chat-room-composer,
.dark .consultation-card,
.dark .question-card,
.dark .settings-section,
.dark .profile-card {
  background: rgba(8, 36, 27, 0.78) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22) !important;
}

.questioner-section-kicker,
.questioner-hero-badge,
.quote-card-badge,
.quote-day-badge,
.fatwa-brand-eyebrow,
.questioner-live-badge,
.quote-share-kicker {
  color: var(--faqih-green) !important;
  background: rgba(201, 167, 93, 0.14) !important;
  border-color: rgba(201, 167, 93, 0.20) !important;
}

.dark .questioner-section-kicker,
.dark .questioner-hero-badge,
.dark .quote-card-badge,
.dark .quote-day-badge,
.dark .fatwa-brand-eyebrow,
.dark .questioner-live-badge,
.dark .quote-share-kicker {
  color: var(--faqih-gold-soft) !important;
  background: rgba(201, 167, 93, 0.10) !important;
}

.questioner-home-instant-card {
  position: relative;
  overflow: hidden;
}

.questioner-home-instant-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -22px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(201, 167, 93, 0.13);
  pointer-events: none;
}

.questioner-home-instant-copy strong,
.questioner-home-quote-text,
.quote-text {
  color: var(--faqih-ink) !important;
}

.dark .questioner-home-instant-copy strong,
.dark .questioner-home-quote-text,
.dark .quote-text {
  color: #f8fbf8 !important;
}

.questioner-home-instant-copy p,
.quote-source,
.quote-reference,
.questioner-home-quote-source,
.questioner-home-quote-reference {
  color: var(--faqih-muted) !important;
}

.dark .questioner-home-instant-copy p,
.dark .quote-source,
.dark .quote-reference,
.dark .questioner-home-quote-source,
.dark .questioner-home-quote-reference {
  color: rgba(245, 245, 245, 0.72) !important;
}

.questioner-home-quote-hero {
  background:
    radial-gradient(circle at 18% 8%, rgba(201, 167, 93, 0.12), transparent 32%),
    var(--faqih-paper) !important;
}

.dark .questioner-home-quote-hero {
  background:
    radial-gradient(circle at 18% 8%, rgba(201, 167, 93, 0.13), transparent 32%),
    rgba(8, 36, 27, 0.82) !important;
}

.questioner-sheikh-card:hover,
.quote-card:hover,
.fatwa-card:hover,
.consultation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--faqih-shadow-strong) !important;
}

.questioner-sheikh-action,
.library-mode-btn.active,
.quote-share-theme-btn.active {
  background: var(--faqih-green) !important;
  color: #fff !important;
  border-color: rgba(201, 167, 93, 0.28) !important;
}

.app-bottom-nav {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: min(100% - 22px, 430px) !important;
  margin: 0 auto 10px !important;
  border: 1px solid rgba(15, 61, 46, 0.12) !important;
  border-radius: 28px !important;
  background: rgba(255, 254, 250, 0.88) !important;
  box-shadow: 0 18px 42px rgba(15, 61, 46, 0.14) !important;
  backdrop-filter: blur(20px);
}

.dark .app-bottom-nav {
  background: rgba(8, 36, 27, 0.88) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
}

.questioner-tab-btn {
  border-radius: 20px !important;
  color: rgba(15, 61, 46, 0.62) !important;
}

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

.questioner-tab-btn.active {
  background: var(--faqih-green) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.18) !important;
}

.questioner-tab-btn.active .questioner-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.12) !important;
}

.questioner-tab-icon-img,
.chat-action-icon-img,
.quote-action-icon {
  filter: none !important;
}

.questioner-tab-btn.active .questioner-tab-icon-img {
  filter: brightness(0) invert(1) !important;
}

.fatwa-topbar-shell {
  background:
    radial-gradient(circle at 86% 8%, rgba(201, 167, 93, 0.11), transparent 30%),
    var(--faqih-paper) !important;
}

.fatwa-hero-stats {
  display: none !important;
}

.library-mode-switch {
  border: 1px solid var(--faqih-line) !important;
  background: rgba(255, 254, 250, 0.82) !important;
  box-shadow: var(--faqih-shadow) !important;
}

.dark .library-mode-switch {
  background: rgba(8, 36, 27, 0.78) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
}

.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px !important;
  padding: 24px !important;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 167, 93, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(15, 61, 46, 0.03), transparent);
  pointer-events: none;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-text {
  font-size: clamp(1.35rem, 6.5vw, 2.18rem) !important;
  line-height: 1.95 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.quote-action-bar {
  border: 1px solid rgba(15, 61, 46, 0.10) !important;
  background: rgba(255, 254, 250, 0.86) !important;
  box-shadow: var(--faqih-shadow) !important;
  backdrop-filter: blur(16px);
}

.dark .quote-action-bar {
  background: rgba(8, 36, 27, 0.82) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
}

.quote-action-btn {
  border-color: rgba(201, 167, 93, 0.18) !important;
  background: rgba(15, 61, 46, 0.06) !important;
}

.quote-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(201, 167, 93, 0.14) !important;
}

.quote-share-capture {
  border-radius: 22px !important;
}

.ask-page-header,
.chat-room-header {
  background: rgba(255, 254, 250, 0.86) !important;
  border-bottom: 1px solid rgba(15, 61, 46, 0.08) !important;
  backdrop-filter: blur(18px);
}

.dark .ask-page-header,
.dark .chat-room-header {
  background: rgba(8, 36, 27, 0.88) !important;
  border-bottom-color: rgba(232, 215, 168, 0.12) !important;
}

.ask-page-header h1,
.ask-page-intro h2,
.chat-room-sheikh-text h3 {
  color: var(--faqih-green) !important;
}

.dark .ask-page-header h1,
.dark .ask-page-intro h2,
.dark .chat-room-sheikh-text h3 {
  color: #f8fbf8 !important;
}

.ask-page-back-btn,
.chat-room-back,
.quote-share-close,
.consultations-refresh-btn {
  background: rgba(15, 61, 46, 0.07) !important;
  color: var(--faqih-green) !important;
  border: 1px solid rgba(15, 61, 46, 0.10) !important;
}

.dark .ask-page-back-btn,
.dark .chat-room-back,
.dark .quote-share-close,
.dark .consultations-refresh-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--faqih-gold-soft) !important;
  border-color: rgba(232, 215, 168, 0.14) !important;
}

.ask-page-media-btn,
.chat-compose-icon {
  background: rgba(15, 61, 46, 0.06) !important;
  border-color: rgba(15, 61, 46, 0.10) !important;
  color: var(--faqih-green) !important;
}

.dark .ask-page-media-btn,
.dark .chat-compose-icon {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(232, 215, 168, 0.12) !important;
  color: var(--faqih-gold-soft) !important;
}

.chat-bubble-user,
.bubble-row.from-user .chat-bubble,
.message-bubble.user {
  background: var(--faqih-green) !important;
  color: #fff !important;
}

.chat-bubble-sheikh,
.bubble-row.from-sheikh .chat-bubble,
.message-bubble.sheikh {
  background: rgba(255, 254, 250, 0.92) !important;
  border: 1px solid rgba(15, 61, 46, 0.10) !important;
  color: var(--faqih-ink) !important;
}

.dark .chat-bubble-sheikh,
.dark .bubble-row.from-sheikh .chat-bubble,
.dark .message-bubble.sheikh {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(232, 215, 168, 0.13) !important;
  color: #f8fbf8 !important;
}

.app-status-toast,
.loading-orb,
.faqih-loader-dialog,
.maintenance-card {
  border: 1px solid rgba(201, 167, 93, 0.18) !important;
  background: rgba(8, 36, 27, 0.92) !important;
  color: var(--faqih-ivory) !important;
  box-shadow: var(--faqih-shadow-strong) !important;
}

.faqih-reveal,
.questioner-sheikh-card,
.quote-card,
.fatwa-card,
.consultation-card {
  animation: faqih-premium-rise 0.52s var(--faqih-ease) both;
}

.faqih-reveal-1 { animation-delay: 0.04s; }
.faqih-reveal-2 { animation-delay: 0.08s; }
.faqih-reveal-3 { animation-delay: 0.12s; }
.faqih-reveal-4 { animation-delay: 0.16s; }

@keyframes faqih-premium-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 430px) {
  .questioner-home-header-card {
    min-height: 86px !important;
    border-radius: 26px !important;
  }

  .questioner-home-profile-ring {
    width: 52px !important;
    height: 52px !important;
  }

  .questioner-home-username {
    font-size: 1.18rem !important;
  }

  .questioner-home-logo-wrap {
    width: 62px !important;
    height: 62px !important;
  }

  .questioner-home-header-logo {
    width: 54px !important;
    height: 54px !important;
  }

  .questioner-home-section,
  .questioner-hero-card,
  .questioner-home-instant-card,
  .quote-card {
    border-radius: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
/* V8 ABSOLUTE FINAL OVERRIDE: this block must remain the last CSS in the file. */
:root {
  --v8-green: #0f3d2e;
  --v8-green-2: #164a3a;
  --v8-dark: #07231a;
  --v8-ivory: #f7f4ee;
  --v8-pearl: #fffdf8;
  --v8-gold: #d9c48b;
  --v8-gold-2: #b99455;
  --v8-ink: #1c2b25;
  --v8-muted: #66756e;
  --v8-shadow: 0 18px 48px rgba(15, 61, 46, .13);
  --v8-shadow-strong: 0 28px 72px rgba(7, 35, 26, .28);
}

html,
body,
#appView {
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 196, 139, .18), transparent 36%),
    linear-gradient(180deg, #fbfaf5 0%, #f1ede3 100%) !important;
  color: var(--v8-ink) !important;
}

body > main {
  max-width: 440px !important;
}

#welcomeView.welcome-screen {
  position: relative !important;
  min-height: 100svh !important;
  padding: 22px 18px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  justify-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(217, 196, 139, .18), transparent 34%),
    radial-gradient(circle at 50% 92%, rgba(255, 242, 195, .11), transparent 28%),
    linear-gradient(180deg, #123f31 0%, #0b2b21 56%, #061a14 100%) !important;
}

#welcomeView::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  opacity: .12 !important;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32)),
    linear-gradient(150deg, rgba(255, 255, 255, .32) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .32) 87.5%, rgba(255, 255, 255, .32)) !important;
  background-size: 64px 110px !important;
  mask-image: linear-gradient(180deg, #000, transparent 72%) !important;
}

#welcomeView::after {
  content: "" !important;
  position: absolute !important;
  left: -14% !important;
  right: -14% !important;
  bottom: -74px !important;
  height: 245px !important;
  opacity: .72 !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 196, 139, .18), transparent 44%),
    linear-gradient(180deg, transparent 0 16%, rgba(3, 17, 13, .82) 17% 100%) !important;
  clip-path: polygon(0 100%, 0 64%, 14% 64%, 14% 38%, 22% 38%, 22% 20%, 32% 20%, 32% 42%, 42% 42%, 42% 14%, 50% 0, 58% 14%, 58% 42%, 68% 42%, 68% 20%, 78% 20%, 78% 38%, 86% 38%, 86% 64%, 100% 64%, 100% 100%) !important;
}

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

#welcomeView .welcome-content {
  z-index: 2 !important;
  width: 100% !important;
  min-height: calc(100svh - 48px) !important;
  padding: 44px 22px 28px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .20) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) !important;
  box-shadow: var(--v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

#welcomeView .welcome-logo-shell {
  width: 154px !important;
  height: 154px !important;
  border-radius: 44px !important;
  margin: 0 auto 24px !important;
  border: 1px solid rgba(217, 196, 139, .18) !important;
  background: radial-gradient(circle at 50% 20%, rgba(217, 196, 139, .10), rgba(255, 255, 255, .035)) !important;
}

#welcomeView .welcome-turban-logo {
  width: 116px !important;
  height: 116px !important;
  object-fit: contain !important;
}

#welcomeView .welcome-wordmark-logo {
  display: none !important;
}

#welcomeView .welcome-title {
  color: #fffaf0 !important;
  font-size: clamp(2rem, 9vw, 2.65rem) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

#welcomeView .welcome-copy::after {
  content: "" !important;
  display: block !important;
  width: 164px !important;
  height: 2px !important;
  margin: 22px auto 0 !important;
  background: linear-gradient(90deg, transparent, var(--v8-gold), transparent) !important;
}

#welcomeView .welcome-subtitle {
  color: rgba(255, 250, 240, .80) !important;
  font-size: 1.02rem !important;
  line-height: 2.05 !important;
  font-weight: 700 !important;
}

#welcomeView .welcome-features {
  margin-top: auto !important;
}

#welcomeView .welcome-features span {
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f0deaa !important;
  font-weight: 900 !important;
}

#welcomeView .welcome-start-btn,
#emailLoginBtn,
#profileSaveBtn,
.quote-share-action-btn.primary,
#tab-home .questioner-home-instant-cta {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ead49b 0%, #c5a15d 100%) !important;
  color: #153126 !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 36px rgba(185, 148, 85, .26), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

#loginView.login-screen,
#profileView.profile-shell,
#profileView.profile-shell-v2,
#tab-library.fatwa-tab-shell {
  background:
    radial-gradient(circle at 50% -8%, rgba(217, 196, 139, .20), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f3eee3 100%) !important;
}

#loginView .login-brand-card,
#loginView .login-form-shell,
#tab-library .fatwa-topbar-shell,
#tab-library .library-mode-switch,
#quoteCard.quote-card,
#quoteActionBar.quote-action-bar {
  border: 1px solid rgba(15, 61, 46, .09) !important;
  border-radius: 34px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .84) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

#loginView .login-brand-title,
#loginView .login-form-head h2,
#tab-library .fatwa-brand-copy h1,
#quoteText.quote-text {
  color: var(--v8-green) !important;
  font-weight: 900 !important;
}

#loginView .login-brand-subtitle,
#loginView .login-form-head p {
  color: var(--v8-muted) !important;
  font-weight: 700 !important;
}

#loginView .form-input,
#profileView .form-input,
#profileView select {
  height: 58px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 61, 46, .11) !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--v8-ink) !important;
}

#signupBtn,
#googleLoginBtn,
.quote-share-action-btn.secondary {
  border: 1px solid rgba(15, 61, 46, .10) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .70) !important;
  color: var(--v8-green) !important;
  box-shadow: 0 12px 26px rgba(15, 61, 46, .07) !important;
  font-weight: 900 !important;
}

#googleLoginBtn {
  width: 100% !important;
  justify-content: center !important;
  gap: 10px !important;
}

#googleLoginBtn span {
  display: inline !important;
}

#globalLoader.global-loader {
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 196, 139, .22), transparent 32%),
    rgba(5, 24, 18, .76) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
}

#globalLoader .global-loader-card {
  border-radius: 36px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)) !important;
  box-shadow: 0 34px 92px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .20) !important;
  backdrop-filter: blur(28px) saturate(1.18) !important;
}

#globalLoader .global-loader-text {
  color: #fffaf0 !important;
  font-weight: 900 !important;
}

#globalLoader .global-loader-hint {
  color: rgba(255, 250, 240, .76) !important;
}

#globalLoader .global-loader-progress span,
#globalLoader .global-loader-dots span {
  background: linear-gradient(90deg, #ead49b, #b99455) !important;
}

#questionerHomeHeader.questioner-home-header {
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
  z-index: 90 !important;
  padding: 10px 14px 5px !important;
  background: transparent !important;
}

#questionerHomeHeader .questioner-home-header-card {
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: 54px 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48)) !important;
  box-shadow: var(--v8-shadow), inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
}

#questionerHomeHeader .questioner-home-notify {
  width: 50px !important;
  height: 50px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .52) !important;
  color: var(--v8-green) !important;
}

#questionerHomeHeader .questioner-home-logo-wrap {
  justify-self: center !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  gap: 9px !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#questionerHomeHeader .questioner-home-logo-wrap::after {
  content: "فقيه" !important;
  color: var(--v8-green) !important;
  font-size: 1.22rem !important;
  font-weight: 900 !important;
}

#questionerHomeHeader .questioner-home-header-logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

#questionerHomeHeader .questioner-home-profile {
  border-radius: 999px !important;
  padding: 6px 8px 6px 12px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
  box-shadow: 0 13px 28px rgba(15, 61, 46, .22) !important;
}

#questionerHomeHeader .questioner-home-profile-ring {
  width: 42px !important;
  height: 42px !important;
  border-color: rgba(255, 255, 255, .58) !important;
}

#questionerHomeHeader .questioner-home-welcome {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .72rem !important;
}

#questionerHomeHeader .questioner-home-username {
  color: white !important;
  font-size: .92rem !important;
}

#tab-home.questioner-home-main {
  padding: 10px 14px 120px !important;
  background: transparent !important;
}

#tab-home .faqih-home-hero-card.questioner-home-instant-section {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 324px !important;
  padding: 18px !important;
  border-radius: 38px !important;
  border: 1px solid rgba(217, 196, 139, .34) !important;
  background: var(--v8-dark) !important;
  box-shadow: var(--v8-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

#tab-home .faqih-home-door-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: -4 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 61% center !important;
  opacity: 1 !important;
  transform: scale(1.03) !important;
}

#tab-home .faqih-home-hero-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -3 !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 14, .98) 0%, rgba(6, 28, 21, .88) 42%, rgba(6, 28, 21, .48) 70%, rgba(6, 28, 21, .20) 100%),
    radial-gradient(circle at 77% 46%, rgba(255, 199, 91, .42), transparent 24%) !important;
}

#tab-home .faqih-home-hero-panel.questioner-home-instant-card {
  display: grid !important;
  grid-template-columns: minmax(0, .64fr) minmax(120px, .36fr) !important;
  min-height: 224px !important;
  align-items: end !important;
  padding: 18px !important;
  border-radius: 30px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

#tab-home .faqih-home-hero-copy h2 {
  color: #fffaf0 !important;
  font-size: clamp(2.4rem, 10vw, 3.9rem) !important;
  line-height: 1.03 !important;
  font-weight: 900 !important;
}

#tab-home .faqih-home-hero-copy strong {
  color: #f4dfa8 !important;
}

#tab-home .faqih-home-hero-copy p,
#tab-home .faqih-home-eyebrow {
  color: rgba(255, 250, 240, .86) !important;
}

#tab-home .faqih-home-hero-head .questioner-section-kicker,
#tab-home .faqih-home-privacy-chip,
#tab-home .faqih-home-trust-row span {
  border: 1px solid rgba(217, 196, 139, .22) !important;
  background: rgba(255, 255, 255, .10) !important;
  color: #f2dfaa !important;
  border-radius: 999px !important;
}

#tab-home .faqih-home-quote-card,
#tab-home .faqih-home-mini-card,
#tab-home .faqih-home-scholars-section {
  border-radius: 34px !important;
  border: 1px solid rgba(217, 196, 139, .18) !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: var(--v8-shadow) !important;
  backdrop-filter: blur(18px) !important;
}

#tab-home .questioner-home-quote-text {
  color: var(--v8-green) !important;
  font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
  line-height: 1.9 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#quoteText.quote-text {
  color: var(--v8-green) !important;
  font-size: clamp(1.65rem, 7.3vw, 2.35rem) !important;
  line-height: 1.95 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#quoteActionBar.quote-action-bar {
  border-radius: 999px !important;
  padding: 10px !important;
}

.quote-share-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 180 !important;
}

.quote-share-backdrop {
  background: rgba(6, 28, 21, .64) !important;
  backdrop-filter: blur(12px) !important;
}

.quote-share-shell {
  width: min(100%, 430px) !important;
  max-height: min(92svh, 840px) !important;
  overflow-y: auto !important;
  border-radius: 34px !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  background: rgba(255, 253, 248, .90) !important;
  box-shadow: 0 32px 84px rgba(6, 28, 21, .34) !important;
  backdrop-filter: blur(24px) !important;
}

.quote-share-title {
  color: var(--v8-green) !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
}

.quote-share-theme-row {
  margin: 8px 18px 16px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .56) !important;
}

.quote-share-theme-btn.active {
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
}

.quote-share-preview-wrap {
  width: min(100% - 28px, 360px) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  border-radius: 22px !important;
}

.quote-share-capture,
.quote-share-capture.theme-dark,
.quote-share-capture.theme-light,
.quote-share-capture.theme-gold {
  position: relative !important;
  flex: 0 0 1122px !important;
  width: 1122px !important;
  height: 1402px !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  transform-origin: top center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
}

.quote-share-capture.theme-dark {
  background-image: url("assets/share-templates/faqih_quote_template_dark.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-light {
  background-image: url("assets/share-templates/faqih_quote_template_light.png?v=20260429-square-hero") !important;
}

.quote-share-capture.theme-gold {
  background-image: url("assets/share-templates/faqih_quote_template_gold.png?v=20260429-square-hero") !important;
}

.quote-share-capture .quote-share-pattern,
.quote-share-capture .quote-share-vignette,
.quote-share-capture .quote-share-topline,
.quote-share-capture .quote-share-cta,
.quote-share-capture .quote-share-footer,
.quote-share-capture .quote-share-ornament {
  display: none !important;
}

.quote-share-capture .quote-share-body {
  position: absolute !important;
  inset: 500px 150px auto 150px !important;
  width: 822px !important;
  height: 450px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.quote-share-capture .quote-share-arch-panel {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quote-share-capture .quote-share-text {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 365px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #f5f5f5 !important;
  text-align: center !important;
  white-space: pre-line !important;
  font-size: 78px !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .28) !important;
}

.quote-share-capture.is-medium .quote-share-text {
  font-size: 60px !important;
}

.quote-share-capture.is-long .quote-share-text {
  font-size: 48px !important;
}

.quote-share-capture.theme-light .quote-share-text {
  color: var(--v8-green) !important;
}

.quote-share-capture.theme-gold .quote-share-text {
  color: #4f350c !important;
}

.quote-share-capture .quote-share-source-stack {
  position: absolute !important;
  top: 385px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(245, 245, 245, .92) !important;
  text-align: center !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

.quote-share-capture .quote-share-attribution {
  display: none !important;
}

.quote-share-capture.theme-light .quote-share-source-stack {
  color: rgba(15, 61, 46, .86) !important;
}

.quote-share-capture.theme-gold .quote-share-source-stack {
  color: rgba(79, 53, 12, .86) !important;
}

#profileView .profile-avatar-wrap {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(217, 196, 139, .62) !important;
}

#profileView .gender-option:has(input:checked),
#profileView .gender-option.is-selected {
  border-color: rgba(185, 148, 85, .72) !important;
  background: rgba(217, 196, 139, .18) !important;
  box-shadow: 0 0 0 4px rgba(217, 196, 139, .12) !important;
}

#profileView .faqih-profile-privacy-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 61, 46, .08) !important;
  background: rgba(255, 255, 255, .62) !important;
  color: var(--v8-muted) !important;
}

#profileView .faqih-profile-privacy-note p {
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.8 !important;
  font-weight: 800 !important;
}

.chat-room-composer,
.sheikh-chat-thread-panel .chat-room-composer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 80 !important;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, .76) 38%, rgba(247, 244, 238, .96)) !important;
  backdrop-filter: blur(12px) !important;
}

.chat-room-form {
  display: grid !important;
  grid-template-columns: 48px 48px minmax(0, 1fr) 54px !important;
  gap: 8px !important;
  padding: 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 18px 40px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
}

.chat-compose-input-wrap {
  min-height: 52px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .60) !important;
}

.chat-compose-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .60) !important;
}

.chat-send-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .24) !important;
}

.app-bottom-nav {
  width: min(100% - 24px, 420px) !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 20px 48px rgba(15, 61, 46, .14), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(24px) saturate(1.16) !important;
}

.questioner-tab-btn.active {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--v8-green-2), var(--v8-green)) !important;
  color: white !important;
  box-shadow: 0 12px 24px rgba(15, 61, 46, .18) !important;
}

@media (max-width: 430px) {
  #tab-home .faqih-home-hero-panel.questioner-home-instant-card {
    grid-template-columns: 1fr !important;
    background: linear-gradient(90deg, rgba(3, 18, 13, .68), rgba(3, 18, 13, .18)) !important;
  }

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

  #tab-home .questioner-home-instant-cta {
    width: min(100%, 232px) !important;
  }

  .chat-room-form {
    grid-template-columns: 44px 44px minmax(0, 1fr) 50px !important;
    gap: 6px !important;
  }
}
/* Public instant Q&A experience */
.faqih-public-home-section {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 167, 93, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(248,246,241,0.7));
  border: 1px solid rgba(15, 61, 46, 0.08);
  box-shadow: 0 18px 44px rgba(15, 61, 46, 0.1);
}

.faqih-public-questions-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
}

.faqih-public-mini-card {
  scroll-snap-align: start;
  min-height: 172px;
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(150deg, rgba(11, 47, 36, 0.96), rgba(15, 61, 46, 0.9)),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.18), transparent 28%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 34px rgba(15, 61, 46, 0.18);
}

.faqih-public-mini-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.13);
  color: #f2dba7;
  font-size: 11px;
  font-weight: 900;
}

.faqih-public-mini-card h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 900;
}

.faqih-public-mini-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.75;
}

.faqih-public-mini-card.is-pending {
  background:
    linear-gradient(150deg, rgba(248,246,241,0.95), rgba(255,255,255,0.8)),
    radial-gradient(circle at 20% 10%, rgba(201,167,93,0.16), transparent 28%);
  color: #173127;
  border-color: rgba(201, 167, 93, 0.26);
}

.faqih-public-mini-card.is-pending h3 {
  color: #173127;
}

.faqih-public-mini-card.is-pending p {
  color: rgba(23,49,39,0.72);
}

.faqih-public-mini-card.is-pending span {
  color: #8b6a2e;
  background: rgba(201,167,93,0.16);
}

.faqih-public-questions-open {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #164a3a, #0f3d2e);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 16px 28px rgba(15, 61, 46, 0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.faqih-public-questions-open:active {
  transform: scale(.985);
}

.faqih-sheikhs-tab-shell {
  min-height: 100%;
  padding: calc(env(safe-area-inset-top) + 18px) 14px calc(env(safe-area-inset-bottom) + 110px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% -8%, rgba(201,167,93,0.16), transparent 28%),
    linear-gradient(180deg, #f8f6f1 0%, #f1ece2 100%);
}

.faqih-sheikhs-tab-header {
  margin-bottom: 16px;
}

.faqih-sheikhs-tab-glass {
  border-radius: 30px;
  padding: 22px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 18px 44px rgba(15,61,46,0.1);
}

.faqih-sheikhs-tab-glass h1 {
  margin: 10px 0 8px;
  color: #173127;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 1000;
}

.faqih-sheikhs-tab-glass p {
  margin: 0;
  color: #5f6e66;
  font-size: 14px;
  line-height: 1.8;
}

.faqih-sheikhs-tab-main {
  padding-bottom: 26px;
}

.faqih-sheikhs-nav-btn {
  width: 68px;
  height: 68px;
  margin-top: -30px;
  border-radius: 999px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,0.28), transparent 32%),
    linear-gradient(180deg, #1b5946, #0f3d2e) !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow:
    0 18px 32px rgba(15,61,46,0.26),
    inset 0 1px 0 rgba(255,255,255,0.32) !important;
}

.faqih-sheikhs-nav-btn .questioner-tab-icon-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.faqih-sheikhs-nav-btn .questioner-tab-icon-img {
  filter: brightness(0) invert(1);
}

.faqih-sheikhs-nav-btn .questioner-tab-label {
  color: #fff !important;
  font-size: 10px;
}

.faqih-public-feed-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 18px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,61,46,0.08);
  box-shadow: 0 18px 42px rgba(15,61,46,0.1);
}

.faqih-public-feed-card::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201,167,93,0.9), transparent);
}

.faqih-public-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #66756e;
  font-size: 12px;
  font-weight: 800;
}

.faqih-public-feed-meta strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,61,46,0.08);
  color: #0f3d2e;
}

.faqih-public-feed-card h3 {
  margin: 14px 0;
  color: #173127;
  font-size: 19px;
  line-height: 1.85;
  font-weight: 950;
}

.faqih-public-answer-box {
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248,246,241,0.95), rgba(255,255,255,0.76));
  border: 1px solid rgba(15,61,46,0.07);
}

.faqih-public-answer-box span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9a7430;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-answer-box p {
  margin: 0;
  color: #37483f;
  font-size: 14px;
  line-height: 1.85;
}

.faqih-public-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.8;
}

/* Public questions white premium cards */
.faqih-public-mini-card,
.faqih-public-mini-card.is-pending,
.faqih-public-mini-card.is-answered {
  min-height: 202px;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 167, 93, 0.14), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(15, 61, 46, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(250,248,243,0.94)) !important;
  color: #173127 !important;
  border: 1px solid rgba(15, 61, 46, 0.08) !important;
  box-shadow:
    0 18px 40px rgba(15, 61, 46, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.faqih-public-card-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faqih-public-card-person img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(201, 167, 93, 0.46);
  box-shadow: 0 10px 22px rgba(15, 61, 46, 0.12);
}

.faqih-public-card-person strong,
.faqih-public-feed-meta .faqih-public-card-person strong {
  display: block;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #173127 !important;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.25;
}

.faqih-public-card-person span,
.faqih-public-mini-card .faqih-public-card-person span {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.07) !important;
  color: #66756e !important;
  font-size: 11px;
  font-weight: 900;
}

.faqih-public-mini-card h3 {
  margin: 16px 0 10px;
  color: #173127 !important;
  font-size: 16.5px;
  line-height: 1.9;
  font-weight: 1000;
}

.faqih-public-mini-card h3 em,
.faqih-public-feed-card h3 em {
  display: inline-flex;
  margin-inline-end: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(201, 167, 93, 0.16);
  color: #8b6a2e;
  font-size: 11px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1.4;
  vertical-align: middle;
}

.faqih-public-mini-card p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(15, 61, 46, 0.04);
  border: 1px solid rgba(15, 61, 46, 0.055);
  color: rgba(23, 49, 39, 0.72) !important;
  font-size: 13px;
  line-height: 1.8;
}

.faqih-public-feed-card,
.faqih-public-feed-card.is-pending,
.faqih-public-feed-card.is-answered {
  background:
    radial-gradient(circle at 6% 0%, rgba(201, 167, 93, 0.12), transparent 24%),
    linear-gradient(180deg, #fff, rgba(250, 248, 243, 0.96));
  border: 1px solid rgba(15, 61, 46, 0.08);
  box-shadow:
    0 18px 42px rgba(15,61,46,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.faqih-public-feed-meta {
  justify-content: space-between;
  align-items: center;
}

.faqih-public-status-pill,
.faqih-public-feed-meta .faqih-public-status-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.08);
  color: #0f3d2e;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-feed-card h3 {
  margin: 14px 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(15, 61, 46, 0.06);
  color: #173127;
  font-size: 19px;
  line-height: 1.9;
}

.faqih-public-answer-box {
  background: linear-gradient(180deg, rgba(248,246,241,0.96), rgba(255,255,255,0.88));
  border-color: rgba(15, 61, 46, 0.08);
}

/* Public Q&A v2: rotating rectangular card + fatwa detail page */
.faqih-public-home-section {
  padding: 16px !important;
}

.faqih-public-questions-rail {
  display: block !important;
  overflow: visible !important;
  padding: 8px 0 12px !important;
}

.faqih-public-feature-card {
  width: 100%;
  min-height: 196px;
  border: 0;
  border-radius: 30px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  color: #173127;
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 167, 93, 0.16), transparent 30%),
    radial-gradient(circle at 94% 20%, rgba(15, 61, 46, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,247,242,0.94));
  border: 1px solid rgba(15, 61, 46, 0.08);
  box-shadow:
    0 20px 44px rgba(15, 61, 46, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.94);
  transition: transform .22s ease, box-shadow .22s ease;
}

.faqih-public-feature-card:active {
  transform: scale(.985);
  box-shadow:
    0 14px 30px rgba(15, 61, 46, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.94);
}

.faqih-public-feature-top,
.faqih-public-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faqih-public-feature-date {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(15, 61, 46, 0.06);
  color: #607167;
  font-size: 11px;
  font-weight: 900;
}

.faqih-public-feature-card h3 {
  margin: 0;
  color: #102d23;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 1000;
  letter-spacing: -.15px;
}

.faqih-public-feature-card p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(15, 61, 46, 0.045);
  border: 1px solid rgba(15, 61, 46, 0.06);
  color: rgba(23, 49, 39, 0.74);
  font-size: 13.5px;
  line-height: 1.85;
}

.faqih-public-feature-footer span {
  color: #8b6a2e;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-feature-footer strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #164a3a, #0f3d2e);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(15,61,46,.16);
}

.faqih-public-feature-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.faqih-public-feature-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.18);
  transition: width .24s ease, background .24s ease;
}

.faqih-public-feature-dots span.is-active {
  width: 24px;
  background: linear-gradient(90deg, #0f3d2e, #c9a75d);
}

.consultations-tab-shell.is-public-detail .consultations-toolbar,
.consultations-tab-shell.is-public-detail .consultations-filters,
.consultations-tab-shell.is-public-detail .consultations-stats-grid {
  display: none !important;
}

.consultations-tab-shell.is-public-detail .consultations-header {
  padding-bottom: 8px;
}

.faqih-public-feed-card {
  cursor: pointer;
}

.faqih-public-feed-card:active {
  transform: scale(.99);
}

.faqih-public-answer-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(15,61,46,.06);
}

.faqih-public-answer-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,167,93,.46);
}

.faqih-public-answer-author strong {
  color: #173127 !important;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-feed-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.faqih-public-feed-cta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 61, 46, 0.08);
  color: #0f3d2e;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 26px;
}

.faqih-public-back-btn {
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f3d2e;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(15,61,46,.08);
  box-shadow: 0 12px 28px rgba(15,61,46,.08);
  font-weight: 1000;
}

.faqih-public-fatwa-post {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% -8%, rgba(201,167,93,.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,247,242,.96));
  border: 1px solid rgba(15,61,46,.08);
  box-shadow:
    0 24px 54px rgba(15,61,46,.13),
    inset 0 1px 0 rgba(255,255,255,.92);
}

.faqih-public-fatwa-post::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201,167,93,.96), transparent);
}

.faqih-public-fatwa-ribbon {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #164a3a, #0f3d2e);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 12px 22px rgba(15,61,46,.16);
}

.faqih-public-fatwa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.faqih-public-detail-question,
.faqih-public-detail-answer {
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(15,61,46,.08);
  background:
    radial-gradient(circle at 12% 0%, rgba(201,167,93,.10), transparent 26%),
    rgba(255,255,255,.72);
}

.faqih-public-detail-question span,
.faqih-public-detail-answer small {
  display: inline-flex;
  margin-bottom: 10px;
  color: #8b6a2e;
  font-size: 12px;
  font-weight: 1000;
}

.faqih-public-detail-question h2 {
  margin: 0;
  color: #102d23;
  font-size: 22px;
  line-height: 1.9;
  font-weight: 1000;
}

.faqih-public-detail-answer {
  margin-top: 14px;
  background:
    radial-gradient(circle at 82% 8%, rgba(15,61,46,.09), transparent 24%),
    linear-gradient(180deg, rgba(248,246,241,.96), rgba(255,255,255,.86));
}

.faqih-public-sheikh-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.faqih-public-sheikh-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,167,93,.5);
  box-shadow: 0 12px 24px rgba(15,61,46,.12);
}

.faqih-public-sheikh-author strong {
  display: block;
  color: #173127;
  font-size: 16px;
  font-weight: 1000;
}

.faqih-public-detail-answer p {
  margin: 0;
  color: #37483f;
  font-size: 16px;
  line-height: 2;
  font-weight: 750;
}

.faqih-public-detail-actions {
  display: flex;
  margin-top: 16px;
}

.faqih-public-share-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(180deg, #164a3a, #0f3d2e);
  box-shadow: 0 16px 30px rgba(15,61,46,.2);
  font-size: 15px;
  font-weight: 1000;
}

.app-bottom-nav {
  overflow: visible !important;
}

.faqih-sheikhs-nav-btn {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  flex: 0 0 72px !important;
  margin: -28px 2px -6px !important;
  border-radius: 50% !important;
  padding: 7px !important;
}

.faqih-sheikhs-nav-btn::before {
  inset: -4px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.38) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  opacity: 1 !important;
  transform: none !important;
}

.faqih-sheikhs-nav-btn .questioner-tab-label {
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
}

/* Public consultations polish: remove duplicate CTA and align sheikh identity */
#tab-questions .consult-fab {
  display: none !important;
}

.faqih-public-detail-answer {
  text-align: right !important;
}

.faqih-public-sheikh-author,
.faqih-public-answer-author {
  width: 100%;
  direction: rtl;
  justify-content: flex-start !important;
  text-align: right !important;
}

.faqih-public-sheikh-author > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.faqih-public-sheikh-author small,
.faqih-public-sheikh-author strong,
.faqih-public-answer-author strong {
  text-align: right !important;
}

.faqih-public-answer-author {
  width: fit-content;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
