/* ==========================================================================
   SUPER MUSLIM V6 — SHELL, SETTINGS, SHORTCUTS, ASK PILLS, SUPERMUSLIM POT,
   UNIVERSAL DROPDOWN MORE-BAR, LIGHT-RED × & GOLD CONSISTENCY (`v6-shell.css`)
   Owned exclusively by WS2
   ========================================================================== */

/* 1. Sky-Timeline Time-First Pill Spacing (`fb1-02`) */
.sm3-prayer-stadium .sm3-prayer-cell strong,
.sm3-prayer-stadium .sm3-cell-layer strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* 2. Universal Non-Overlapping Bottom Dropdown `⌄` Bar (`fb4-14..16`, `fb9-01`) */
.sm3-bselect-menu:has(.sm3-bselect-scroll-more:not([hidden])) .sm3-dd-more-bar {
  display: none !important;
}

.sm3-dd-more-bar {
  width: 100%;
  height: 24px;
  margin-top: 3px;
  border: 0;
  border-top: 1px solid rgba(212, 157, 46, 0.30);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FCF4DC 100%);
  color: #7A5411;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease, color 0.14s ease;
}

.sm3-dd-more-bar[hidden] {
  display: none !important;
}

.sm3-dd-more-bar:hover {
  background: #FAF0CD;
  color: #111111;
}

.sm3-dd-more-chevron {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-2px);
}

.sm3-ask-starters-dd-list {
  max-height: 222px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}

.sm3-ask-starters-dd-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.sm3-ask-starter-idx {
  font-weight: 800;
  color: #8A5A0A;
  flex-shrink: 0;
}

/* 3. Universal Light-Red / White-Inside `×` Circles Everywhere (`fb5-15`) */
.sm3-plus-bar[open] > summary .sm3-plus-icon,
.sm3-sunnah-details[open] > summary .sm3-plus-icon,
.sm3-red-plus-circle.is-x-open,
.sm3-red-x-btn,
.sm3-noor-red-x,
.sm3-bm-chip-del,
.sm3-city-chip-del,
.sm3-shortcut-remove,
.sm3-ask-clear-x-btn {
  background: #FFF8F9 !important;
  background-image: none !important;
  color: #BD122F !important;
  border: 1.5px solid rgba(189, 18, 47, 0.40) !important;
  box-shadow: 0 2px 6px rgba(189, 18, 47, 0.08) !important;
}

.sm3-shortcut-remove,
.sm3-bm-chip-del,
.sm3-city-chip-del {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  opacity: 0.92 !important;
  cursor: pointer;
  margin-right: 4px;
}

.sm3-red-plus-circle.is-x-open:hover,
.sm3-red-x-btn:hover,
.sm3-noor-red-x:hover,
.sm3-bm-chip-del:hover,
.sm3-city-chip-del:hover,
.sm3-shortcut-remove:hover,
.sm3-ask-clear-x-btn:hover,
.sm3-plus-bar[open] > summary:hover .sm3-plus-icon {
  background: #BD122F !important;
  color: #FFFFFF !important;
  border-color: #BD122F !important;
}

/* Modal header top-right S badge + X close button */
.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-modal-hdr-actions {
  position: absolute;
  top: 11px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 8;
}

.sm3-modal-sheet .sm3-gold-close-x,
.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-modal-hdr-actions .sm3-gold-close-x {
  background: #FFF8F9 !important;
  border: 1.5px solid rgba(189, 18, 47, 0.36) !important;
  -webkit-text-fill-color: #BD122F !important;
  color: #BD122F !important;
}

.sm3-modal-sheet .sm3-gold-close-x:hover,
.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-modal-hdr-actions .sm3-gold-close-x:hover {
  background: #BD122F !important;
  border-color: #BD122F !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-modal-hdr-actions .sm3-gold-close-x {
  position: static !important;
  top: auto !important;
  right: auto !important;
}

.sm3-modal-s-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(45, 20, 10, 0.14));
}

/* 4. Universal Golden Hover & Open Border Consistency (`fb5-11..14`) */
.sm3-plus-bar,
.sm3-sunnah-details,
.sm3-nti-card,
details.sm3-card {
  transition: border-color 0.18s ease, box-shadow 0.2s ease;
}

.sm3-plus-bar:hover,
.sm3-sunnah-details:hover,
.sm3-nti-card:hover,
details.sm3-card:hover {
  border-color: rgba(212, 157, 46, 0.72) !important;
  box-shadow: 0 4px 14px rgba(212, 157, 46, 0.12) !important;
}

.sm3-plus-bar[open],
.sm3-sunnah-details[open],
.sm3-nti-card[open],
.sm3-nti-hub-mini-card.is-open,
details.sm3-card[open] {
  border-color: #D49D2E !important;
  box-shadow:
    0 0 0 1.5px rgba(242, 209, 120, 0.78),
    0 8px 22px rgba(212, 157, 46, 0.16) !important;
}

/* 5. Organic Asymmetric Botanical Modal Florals (`fb2-29`, `fb3-01`, `fb9-14..16`) */
.sm3-modal-floral.is-settings-tl-stem {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 82px;
  z-index: 30;
  opacity: 0.94;
  transform: rotate(8deg);
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(45, 20, 10, 0.16));
}

.sm3-modal-sheet > .sm3-modal-hdr-centered.is-settings-hdr {
  padding-left: 72px;
  padding-right: 92px;
}

.sm3-modal-floral.is-asymm-tl-branch {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 68px;
  z-index: 28;
  opacity: 0.88;
  transform: rotate(6deg);
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(45, 20, 10, 0.14));
}

.sm3-modal-floral.is-asymm-br-petal {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 32px;
  height: auto;
  z-index: 1;
  opacity: 0.42;
  transform: rotate(19deg);
  pointer-events: none;
}

@media (max-width: 680px) {
  .sm3-modal-floral.is-settings-tl-stem {
    width: 60px;
    top: -6px;
    left: -6px;
  }
  .sm3-modal-floral.is-asymm-tl-branch {
    width: 52px;
  }
  .sm3-modal-sheet > .sm3-modal-hdr-centered.is-settings-hdr {
    padding-left: 56px;
    padding-right: 84px;
  }
  .sm3-modal-sheet > .sm3-modal-hdr-centered {
    padding-left: 48px;
    padding-right: 82px;
  }
}

/* 6. Home Quick Setup Banner & Inner Page Silk-Petal `+ Shortcut` Trigger (`fb1-16..17`, `fb7-07`) */
.sm3-quick-setup-banner {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm3-quick-setup-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 157, 46, 0.52);
  background: linear-gradient(180deg, #FFFDF7 0%, #FCF4DC 100%);
  color: #111111;
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 157, 46, 0.12);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.sm3-quick-setup-pill:hover {
  transform: translateY(-1px);
  border-color: #D49D2E;
}

.sm3-setup-dismiss-x {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 12px;
}

.sm3-page-shortcut-bar {
  position: relative;
  z-index: 25;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 8px;
  width: 100%;
}

.sm3-page-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.2px solid rgba(186, 198, 218, 0.85);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FD 100%);
  color: #18181B;
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 2px #FFFFFF,
    0 3px 10px rgba(15, 23, 42, 0.06);
  transition: all 0.16s ease;
  max-width: 100%;
}

.sm3-page-shortcut-btn:hover {
  border-color: rgba(212, 157, 46, 0.78);
  box-shadow: 0 4px 12px rgba(212, 157, 46, 0.16);
}

.sm3-page-shortcut-btn.is-saved {
  background: linear-gradient(180deg, #FFFDF5 0%, #FCF4DC 100%);
  border-color: #D49D2E;
  box-shadow: 0 4px 12px rgba(212, 157, 46, 0.20);
}

.sm3-page-shortcut-sub {
  font-weight: 600;
  color: var(--mocha-soft);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 5px;
  border-left: 1px solid rgba(17, 17, 17, 0.14);
}

.sm3-shortcuts-v2b-stack,
.sm3-sc-acc-group,
.sm3-sc-acc-row {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.sm3-shortcuts-dock {
  max-width: min(408px, 100%) !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .sm3-shortcuts-dock {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .sm3-page-shortcut-sub {
    max-width: 145px;
    font-size: 11px;
  }
}

/* 7. Settings Top Website Teaser Pill, Share Card & Notifications (`fb2`, `fb3`) */
.sm3-settings-top-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.sm3-settings-site-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFDF6 0%, #FCF2D4 100%);
  border: 1.5px solid rgba(212, 157, 46, 0.68);
  color: #111111;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow:
    inset 0 2px 3px #FFFFFF,
    0 6px 18px rgba(212, 157, 46, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sm3-settings-site-pill:hover {
  transform: translateY(-1px);
  border-color: #D49D2E;
  box-shadow: 0 8px 22px rgba(212, 157, 46, 0.24);
}

.sm3-share-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sm3-share-pill {
  justify-content: center;
  text-decoration: none;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.sm3-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FAF8F6;
  border: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.sm3-gs-empty-state {
  text-align: center;
  padding: 26px 16px;
  border-radius: 14px;
  background: #FAF8F5;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  font-size: 13.5px;
  color: var(--mocha-soft);
  line-height: 1.55;
}

/* 8. Ask Super Muslim Reference Pills & No-Card Flow (`fb9-10..12`) */
.sm3-ask-refs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 17, 17, 0.10);
}

.sm3-ask-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid rgba(189, 18, 47, 0.28);
  background: #FFF9FA;
  color: #9E0826;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.sm3-ask-ref-pill:hover {
  background: #FCF4DC;
  border-color: #D49D2E;
  color: #111111;
  transform: translateY(-1px);
}

.sm3-ask-ref-pill.is-hub {
  background: #FFFDF6;
  border-color: rgba(212, 157, 46, 0.45);
  color: #6B4707;
}

.sm3-ask-ref-pill.is-source {
  cursor: default;
  background: #F6F5F3;
  border-color: rgba(17, 17, 17, 0.12);
  color: #44403C;
}

/* 9. Tasbih Pot Floating `ⓘ`, Flower Count Badge, Porcelain Vase & V7 Modal (`fb1`–`fb3`) */
.sm3-ft-pot-info-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 157, 46, 0.78);
  background: #FFFFFF;
  color: #BD122F;
  font-size: 12px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  z-index: 8;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sm3-ft-pot-info-btn:hover {
  transform: scale(1.1);
  background: #FCF4DC;
  color: #111111;
}

.sm3-ft-pot-count {
  position: absolute;
  bottom: 2px;
  left: -6px;
  z-index: 8;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 157, 46, 0.60);
  color: #111111;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
  pointer-events: none;
}

.sm3-pot-ummah-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.sm3-pot-ummah-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.3px solid rgba(212, 157, 46, 0.56);
  background: linear-gradient(180deg, #FFFDF7 0%, #FCF4DC 100%);
  color: #111111;
  font-family: inherit;
  font-size: 12.6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 157, 46, 0.12);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.sm3-pot-ummah-pill:hover {
  transform: translateY(-1px);
  border-color: #D49D2E;
}

.sm3-pot-ummah-note {
  margin-top: 8px;
  max-width: 540px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #FAF6EE;
  border: 1px solid rgba(212, 157, 46, 0.34);
  font-size: 12.6px;
  line-height: 1.54;
  color: #1C1917;
  text-align: center;
}

.sm3-pot-hero-card.is-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF2 100%);
  border: 1.4px solid rgba(212, 157, 46, 0.44);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.sm3-pot-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sm3-pot-hero-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 210px;
}

.sm3-pot-compact-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sm3-pot-vessel-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.sm3-pot-mini-cup {
  padding: 4px 11px;
  border-radius: 10px 10px 15px 15px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF3FA 100%);
  border: 1px solid rgba(180, 195, 216, 0.85);
  font-size: 11.5px;
  font-weight: 800;
  color: #111111;
  box-shadow: inset 0 -2px 5px rgba(176, 192, 214, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sm3-pot-rule-note {
  padding: 8px 12px;
  border-radius: 10px;
  background: #FAF6EC;
  border: 1px dashed rgba(212, 157, 46, 0.48);
  font-size: 12.2px;
  font-weight: 600;
  color: #1C1917;
  line-height: 1.46;
}

.sm3-pot-central-prayer {
  text-align: center;
  padding: 6px 4px 14px;
}

.sm3-pot-prayer-prompt {
  margin: 0 auto 10px;
  max-width: 470px;
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.48;
  color: #1C1917;
}

.sm3-pot-hadith-square {
  max-width: 356px;
  margin: 10px auto;
  padding: 18px 20px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(155deg, #FFFDF7 0%, #FAF3E3 100%);
  border: 1.5px solid rgba(212, 157, 46, 0.56);
  box-shadow: 0 8px 22px rgba(212, 157, 46, 0.12);
  color: #1C1917;
}

.sm3-pot-hadith-quote {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15.2px;
  font-style: italic;
  line-height: 1.54;
  color: #111111;
}

.sm3-pot-hadith-cite {
  font-size: 12px;
  font-weight: 800;
  color: #7A5411;
}

.sm3-pot-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.sm3-pot-rubric-details {
  margin-top: 4px;
}

.sm3-pot-nested-details {
  margin-top: 10px;
  background: #FAF8F5 !important;
}

.sm3-pot-rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .sm3-pot-rubric-grid {
    grid-template-columns: 1fr;
  }
}

.sm3-pot-rubric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #FAF9F7;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-pot-rubric-item.is-done {
  background: #F4FBF7;
  border-color: rgba(13, 122, 78, 0.35);
}

.sm3-pot-rubric-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(212, 157, 46, 0.45);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0D7A4E;
}

.sm3-pot-rubric-detail-row {
  padding: 7px 9px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.07);
  font-size: 11.6px;
  line-height: 1.44;
  color: var(--mocha-soft);
}

.sm3-pot-rubric-detail-row strong {
  color: #111111;
}

/* 9b. Screen-Time Style Qur'an Reading Time Widget (`fb3-09`, `fb3-10`) & Ask Info Listen Pill */
.sm3-quran-screentime-box {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.09);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sm3-qst-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sm3-qst-today {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #111111;
}

.sm3-qst-today strong {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sm3-qst-delta {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FAF8F5;
  color: var(--mocha-soft);
  border: 1px solid rgba(17, 17, 17, 0.09);
}

.sm3-qst-delta.is-ahead {
  background: #EEF9F2;
  color: #0D7A4E;
  border-color: rgba(13, 122, 78, 0.25);
}

.sm3-qst-delta.is-steady {
  background: #FFF9EB;
  color: #7A5411;
  border-color: rgba(212, 157, 46, 0.35);
}

.sm3-qst-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  height: 36px;
  padding-top: 4px;
}

.sm3-qst-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: 100%;
}

.sm3-qst-bar-track {
  width: 100%;
  max-width: 22px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sm3-qst-bar-fill {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: rgba(212, 157, 46, 0.55);
  min-height: 3px;
}

.sm3-qst-bar-fill.is-today {
  background: linear-gradient(180deg, #C8123A 0%, #D49D2E 100%);
}

.sm3-qst-bar-fill.is-zero {
  background: rgba(17, 17, 17, 0.10);
  height: 3px !important;
}

.sm3-qst-bar-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--mocha-soft);
  line-height: 1;
}

.sm3-qst-bar-lbl.is-today {
  color: #9E0826;
}

.sm3-pot-sheet > .sm3-modal-hdr-centered {
  padding: 4px 88px 2px 64px;
}

.sm3-ask-chat-modal .sm3-ask-hdr-left {
  left: 52px !important;
  top: 4px !important;
}

@media (max-width: 680px) {
  .sm3-pot-sheet > .sm3-modal-hdr-centered {
    padding: 4px 82px 2px 48px;
  }
  .sm3-ask-chat-modal .sm3-ask-hdr-left {
    left: 44px !important;
    top: 4px !important;
  }
}

.sm3-ask-info-listen-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  background: #FFFFFF !important;
  color: #111111 !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.sm3-ask-info-listen-btn:hover {
  background: #FCF4DC !important;
  border-color: #D49D2E !important;
}

.sm3-ask-info-listen-btn.is-speaking {
  background: #BD122F !important;
  border-color: #BD122F !important;
  color: #FFFFFF !important;
}

/* 10. Multilingual RTL Guardrails (keep spatial physics, prayer bar & Arabic intact) */
html[dir="rtl"] #sm3PrayerStadium,
html[dir="rtl"] .sm3-spatial-viewport,
html[dir="rtl"] .sm3-mini-spatial-viewport,
html[dir="rtl"] .sm3-ayah-arabic {
  direction: ltr;
}

html[dir="rtl"] .sm3-ayah-arabic {
  direction: rtl;
}

/* Mobile Quick Setup inline alignment & bottom clearance for Floating Pot */
.sm3-quick-setup-banner {
  display: inline-flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.sm3-quick-setup-pill {
  flex: 1 1 auto;
  min-width: 0;
}
.sm3-setup-dismiss-x {
  flex: 0 0 28px;
}
#sm3MainStage {
  padding-bottom: 108px;
}

/* 11. V8 Smart Bilingual Language Picker (`fb1-03`, `fb1-04`), Quick Setup Initials (`fb1-01`) & Pot CTA (`fb1-09`) */
.sm3-lang-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.sm3-lang-active-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
  color: #111111;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm3-lang-active-btn:hover,
.sm3-lang-picker.is-open .sm3-lang-active-btn {
  border-color: rgba(212, 157, 46, 0.75);
  box-shadow: 0 3px 10px rgba(212, 157, 46, 0.14);
}

.sm3-lang-active-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm3-lang-dir-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(212, 157, 46, 0.16);
  color: #7A4B08;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sm3-lang-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sm3-lang-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mocha-soft);
  pointer-events: none;
  display: inline-flex;
}

.sm3-lang-search-input {
  width: 100% !important;
  padding: 8px 30px 8px 30px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
}

.sm3-lang-search-input::-webkit-search-cancel-button,
.sm3-lang-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.sm3-lang-search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(189, 18, 47, 0.10);
  color: #BD122F;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.sm3-lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 232px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1.2px solid rgba(212, 157, 46, 0.55);
  border-radius: 13px;
  padding: 5px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm3-lang-menu[hidden] {
  display: none !important;
}

.sm3-lang-picker.is-upward .sm3-lang-search-shell {
  order: -1;
}

.sm3-lang-picker.is-upward .sm3-lang-menu {
  top: auto;
  bottom: calc(100% + 5px);
}

.sm3-lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #111111;
  font-family: inherit;
  font-size: 12.6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.sm3-lang-opt:hover,
.sm3-lang-opt.is-focused {
  background: #FCF6E3;
}

.sm3-lang-opt.is-selected {
  background: rgba(189, 18, 47, 0.07);
  font-weight: 800;
}

.sm3-lang-opt-native {
  font-weight: 700;
  color: #111111;
}

.sm3-lang-opt-en {
  font-size: 11.6px;
  color: var(--mocha-soft);
  font-weight: 600;
}

.sm3-lang-empty {
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--mocha-soft);
}

.sm3-qs-profile-grid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

@media (max-width: 480px) {
  .sm3-qs-profile-grid {
    grid-template-columns: 1fr;
  }
}

#potDuaAmeenBtn {
  white-space: normal !important;
  text-align: center !important;
  justify-content: center !important;
  line-height: 1.32 !important;
  max-width: 100%;
}

/* 11. Luxury Corner "Report a problem" Pill Button & Compact Popover */
.sm3-problem-fab {
  position: fixed;
  left: max(8px, calc(env(safe-area-inset-left, 0px) + 8px));
  bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  z-index: 460;
  width: auto;
  height: 30px;
  min-width: 0;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1.2px solid rgba(212, 157, 46, 0.68);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #2D180C;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 1px #FFFFFF, 0 3px 11px rgba(45, 20, 10, 0.12);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, bottom 0.22s ease;
}

.sm3-problem-fab svg {
  color: #9E0826;
  flex-shrink: 0;
}

.sm3-problem-fab-short {
  display: none;
}

@media (max-width: 639px) {
  .sm3-problem-fab {
    left: max(6px, calc(env(safe-area-inset-left, 0px) + 6px));
    height: 27px;
    min-height: 27px;
    padding: 0 9px;
    gap: 4px;
    font-size: 11px;
    opacity: 0.9;
  }
  .sm3-problem-fab-full {
    display: none;
  }
  .sm3-problem-fab-short {
    display: inline;
  }
}

.sm3-problem-fab:hover,
.sm3-problem-fab:focus-visible,
.sm3-problem-fab[aria-expanded="true"] {
  opacity: 1;
  border-color: #D49D2E;
  color: #111111;
  background: #FFFDF7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 157, 46, 0.24);
}

body:has(#sm3AudioRibbon:not([hidden])) .sm3-problem-fab {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.sm3-problem-popover {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  z-index: 470;
  width: min(304px, calc(100vw - 20px));
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px 13px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 1.3px solid rgba(212, 157, 46, 0.62);
  box-shadow: 0 18px 42px rgba(24, 16, 12, 0.18), 0 2px 8px rgba(212, 157, 46, 0.12);
  color: #18181B;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 12px;
  line-height: 1.4;
}

.sm3-problem-popover[hidden] {
  display: none !important;
}

body:has(#sm3AudioRibbon:not([hidden])) .sm3-problem-popover {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.sm3-problem-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.sm3-problem-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #141118;
  line-height: 1.25;
}

.sm3-problem-close {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1.3px solid rgba(189, 18, 47, 0.36);
  background: #FFF8F9;
  color: #BD122F;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sm3-problem-close:hover {
  background: #BD122F;
  color: #FFFFFF;
  border-color: #BD122F;
}

.sm3-problem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.sm3-problem-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #FAF8F5;
  color: #2B2420;
  font-family: inherit;
  font-size: 11.3px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.sm3-problem-chip:hover {
  border-color: rgba(212, 157, 46, 0.65);
  background: #FFFDF6;
}

.sm3-problem-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, #FFFDF5 0%, #FCF3D7 100%);
  border-color: #D49D2E;
  color: #111111;
  box-shadow: 0 2px 7px rgba(212, 157, 46, 0.18);
}

.sm3-problem-note {
  width: 100%;
  min-height: 46px;
  max-height: 84px;
  resize: none;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: #FFFFFF;
  color: #111111;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.38;
  margin-bottom: 7px;
}

.sm3-problem-note:focus {
  outline: none;
  border-color: #D49D2E;
  box-shadow: 0 0 0 2px rgba(212, 157, 46, 0.18);
}

.sm3-problem-meta {
  margin: 0 0 9px;
  font-size: 10.4px;
  color: #6B5E57;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sm3-problem-warn {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9E0826;
}

.sm3-problem-warn[hidden] {
  display: none !important;
}

.sm3-problem-send {
  width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.2px solid #D49D2E;
  background: linear-gradient(180deg, #FCE38A 0%, #E6B33D 100%);
  color: #111111;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.sm3-problem-send:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.sm3-problem-send:disabled {
  opacity: 0.65;
  cursor: default;
}

.sm3-problem-done {
  margin: 4px 0 2px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #F4FBF7;
  border: 1px solid rgba(13, 122, 78, 0.30);
  color: #0D5C3B;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media print {
  .sm3-problem-fab,
  .sm3-problem-popover,
  .sm3-getapp-cta,
  .sm3-install-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   12. V8.5 "GET THE APP / ADD TO HOME SCREEN" & MONOCHROME BRAND SOCIAL ICONS
   ========================================================================== */

html.sm3-is-standalone .sm3-getapp-cta,
html.sm3-is-installed .sm3-getapp-cta,
html.sm3-is-standalone .sm3-mobile-welcome-backdrop,
html.sm3-is-installed .sm3-mobile-welcome-backdrop {
  display: none !important;
}

body:has(.sm3-install-backdrop:not([hidden])) .sm3-problem-fab {
  visibility: hidden;
  pointer-events: none;
}

.sm3-hdr-getapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.3px solid rgba(212, 157, 46, 0.72);
  background: linear-gradient(180deg, #FFFDF6 0%, #FCF2D4 100%);
  color: #111111;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1.5px 2px #FFFFFF, 0 3px 10px rgba(212, 157, 46, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sm3-hdr-getapp-btn:hover {
  transform: translateY(-1px);
  border-color: #D49D2E;
  box-shadow: inset 0 1.5px 2px #FFFFFF, 0 6px 16px rgba(212, 157, 46, 0.26);
}

.sm3-getapp-svg {
  color: #9E0826;
  flex-shrink: 0;
}

.sm3-getapp-short {
  display: none;
}

@media (max-width: 980px) {
  .sm3-brand-sub {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .sm3-getapp-full {
    display: none;
  }
  .sm3-getapp-short {
    display: inline;
  }
  .sm3-hdr-getapp-btn {
    padding: 5px 9px;
    gap: 4px;
    min-height: 32px;
    font-size: 11.5px;
  }
}

@media (max-width: 680px) {
  .sm3-header-top > .sm3-header-actions {
    gap: 4px !important;
  }
  .sm3-hdr-getapp-btn {
    padding: 4px 8px;
    min-height: 31px;
    font-size: 11px;
  }
}

.sm3-settings-top-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.sm3-settings-getapp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #18181B 0%, #27272A 100%);
  border: 1.5px solid #D49D2E;
  color: #FFFDF7;
  font-family: var(--font-display, Georgia, serif);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sm3-settings-getapp-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 157, 46, 0.28);
}

.sm3-qs-getapp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FCF4DC 100%);
  border: 1px solid rgba(212, 157, 46, 0.52);
  font-size: 12px;
  color: #111111;
}

/* Luminous Pearl & 24k Gold 2-Step Install Sheet */
.sm3-install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: end center;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sm3-install-backdrop[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .sm3-install-backdrop {
    place-items: center;
  }
}

.sm3-install-sheet {
  width: min(420px, calc(100vw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 1.5px solid rgba(212, 157, 46, 0.68);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22), 0 2px 10px rgba(212, 157, 46, 0.16);
  color: #111111;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.sm3-install-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

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

.sm3-install-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(212, 157, 46, 0.45);
  flex-shrink: 0;
}

.sm3-install-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}

.sm3-install-sub {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mocha-soft, #5C534E);
}

.sm3-install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm3-install-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FAF5E8 100%);
  border: 1px solid rgba(212, 157, 46, 0.42);
}

.sm3-install-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FCE38A 0%, #E6B33D 100%);
  border: 1px solid #D49D2E;
  color: #111111;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.sm3-install-step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sm3-install-step-body strong {
  font-size: 13.2px;
  line-height: 1.38;
  color: #111111;
}

.sm3-install-step-body span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--mocha-soft, #5C534E);
}

.sm3-install-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -3px;
  width: 23px;
  height: 23px;
  margin: 0 2px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 157, 46, 0.55);
  color: #9E0826;
}

.sm3-install-desktop-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FAF5E8 100%);
  border: 1px solid rgba(212, 157, 46, 0.42);
  font-size: 13px;
  line-height: 1.5;
  color: #111111;
}

.sm3-install-foot {
  margin-top: 13px;
  display: flex;
  justify-content: flex-end;
}

/* Monochrome Luxury Inline Social Links (min 38x38px tap targets) */
.sm3-social-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
}

.sm3-social-link {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1.2px solid rgba(212, 157, 46, 0.52);
  background: #FFFDF8;
  color: #2D180C;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sm3-social-link:hover,
.sm3-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: #D49D2E;
  background: #FCF3D7;
  color: #9E0826;
}

.sm3-home-colophon {
  margin: 18px auto 0;
  padding: 12px 44px 36px;
  max-width: 780px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border-top: 1px solid rgba(212, 157, 46, 0.24);
}

.sm3-home-colophon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 11.4px;
  color: var(--mocha-soft, #5C534E);
}

@media (max-width: 480px) {
  .sm3-home-colophon {
    padding: 12px 18px 40px;
  }
}

/* ==========================================================================
   13. V8.7 SAMSUNG MOBILE & ONE UI FONT-ZOOM ARCHITECTURE (312px–430px)
   - Zero right-edge clipping on ASK orb & SM initials even at 135% zoom
   - Clean 2-row compact mobile header + slim Prayer & Hub ribbons
   - Hide bottom-left floating Report sticker on mobile/tablet (preserved in Colophon, Settings & Ask AI)
   - Jewel-proportioned mobile Tasbih vessel + auto-hide when keyboard or dropdown is open
   - Effortless vertical page scrolling across Homepage & all Hubs
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip !important;
  overflow-y: auto !important;
}

/* Auto-tuck floating Tasbih vessel whenever keyboard input is focused or a dropdown is open */
body:has(input:focus, textarea:focus, select:focus) .sm3-floating-tasbih,
body:has(#prCityDropdownMenu, .sm3-lang-picker.is-open, .sm3-bselect-wrap.is-open, .sm3-shortcuts-more-popover:not([hidden])) .sm3-floating-tasbih {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) scale(0.92) !important;
}

/* On mobile & tablet, remove the floating bottom-left Report sticker so it never covers prayer cards or Shortcuts */
@media (max-width: 900px) {
  .sm3-problem-fab {
    display: none !important;
  }
  .sm3-problem-popover {
    left: 12px !important;
    right: 12px !important;
    bottom: max(14px, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 540 !important;
  }
}

@media (max-width: 1220px) {
  .sm3-prayer-stadium,
  .sm3-prayer-stadium.is-photoreal-sky {
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
}

/* Desktop hides the mobile-only inline Download App hero pill (desktop already has #hdrGetAppBtn in top header) */
.sm3-mobile-hero-getapp-row {
  display: none;
}

/* Luminous First-Visit Mobile Browser "Download App" Welcome Sheet */
.sm3-mobile-welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 535;
  display: grid;
  place-items: end center;
  padding: 12px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sm3-mobile-welcome-backdrop[hidden] {
  display: none !important;
}

body:has(.sm3-mobile-welcome-backdrop:not([hidden])) .sm3-floating-tasbih,
body:has(.sm3-install-backdrop:not([hidden])) .sm3-floating-tasbih {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.sm3-mobile-welcome-card {
  position: relative;
  width: min(410px, calc(100vw - 24px));
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
  border: 1.6px solid rgba(212, 157, 46, 0.75);
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.26), 0 2px 12px rgba(212, 157, 46, 0.20);
  text-align: center;
  color: #111111;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.sm3-mobile-welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.2px solid rgba(189, 18, 47, 0.34);
  background: #FFF8F9;
  color: #BD122F;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.sm3-mobile-welcome-crest {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1.2px solid rgba(212, 157, 46, 0.55);
  box-shadow: 0 6px 16px rgba(212, 157, 46, 0.18);
  margin: 0 auto 10px;
  display: block;
}

.sm3-mobile-welcome-title {
  margin: 0 0 6px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  color: #111111;
}

.sm3-mobile-welcome-desc {
  margin: 0 auto 14px;
  max-width: 330px;
  font-size: 13px;
  line-height: 1.46;
  color: var(--mocha-soft, #4A4440);
}

.sm3-mobile-welcome-primary {
  width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.4px solid rgba(245, 200, 76, 0.85);
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%);
  color: #FFFFFF;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(180, 14, 46, 0.28);
}

.sm3-mobile-welcome-secondary {
  margin-top: 9px;
  background: transparent;
  border: none;
  color: var(--mocha-muted, #666264);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  /* Remove Download App from the crowded top 6-icon row on phones so Row 2 is 5 pure, spacious icons */
  #hdrGetAppBtn {
    display: none !important;
  }

  .sm3-mobile-hero-getapp-row {
    display: flex;
    margin-top: 8px;
  }

  .sm3-mobile-hero-getapp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1.3px solid rgba(212, 157, 46, 0.72);
    background: linear-gradient(180deg, #FFFDF6 0%, #FCF2D4 100%);
    color: #111111;
    font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 1.5px 2px #FFFFFF, 0 3px 10px rgba(212, 157, 46, 0.16);
  }

  .sm3-mobile-hero-getapp-pill svg {
    color: #9E0826;
    flex-shrink: 0;
  }

  /* Compact, balanced Row 1 (Brand left + ASK orb right) & Row 2 (5 pure Action icons inside 100vw) */
  .sm3-header-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
    row-gap: 5px !important;
    padding: 6px 12px 4px !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .sm3-header-top > .sm3-brand {
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 7px !important;
    overflow: hidden;
  }

  .sm3-brand-emblem {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .sm3-brand-divider {
    height: 21px !important;
  }

  .sm3-brand-text {
    min-width: 0 !important;
  }

  .sm3-brand-title {
    font-size: clamp(13.5px, 4.2vw, 17.5px) !important;
    letter-spacing: 0.02em !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  .sm3-header-center {
    justify-self: end !important;
    padding-right: 3px !important;
    flex-shrink: 0 !important;
  }

  .sm3-hdr-ask-lockup.is-inside-circle {
    padding: 1px !important;
  }

  .sm3-hdr-ask-lockup.is-inside-circle .sm3-ask-emblem {
    width: 36px !important;
    height: 36px !important;
  }

  .sm3-header-top > .sm3-header-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 3px 0 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  .sm3-quran-icon-pill {
    padding: 4px 9px !important;
    min-height: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }

  .sm3-quran-icon-pill .sm3-mushaf-emblem-svg {
    width: 19px !important;
    height: 16px !important;
  }

  .sm3-hdr-getapp-btn {
    padding: 4px 8px !important;
    min-height: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
    gap: 3.5px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 206px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sm3-hdr-circle-btn,
  .sm3-gear-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex-shrink: 0 !important;
  }

  .sm3-initials-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 10px !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
  }

  .sm3-bouquet-wreath-svg.is-header {
    width: 38px !important;
    height: 38px !important;
  }

  /* Slimmer Prayer Ribbon & Hub Switcher so sticky header stays airy */
  .sm3-prayer-ribbon {
    padding: 1px 10px 3px !important;
  }

  .sm3-prayer-stadium.is-photoreal-sky {
    min-height: 36px !important;
    padding: 3.5px 7px !important;
    border-radius: 999px !important;
  }

  .sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell {
    padding: 3.5px 8px !important;
    font-size: 11px !important;
  }

  .sm3-hub-nav,
  #sm3HubQuickNav {
    padding: 2px 10px 6px !important;
    gap: 5px !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  #sm3HubQuickNav .sm3-hub-chip {
    padding: 5px 10px !important;
    font-size: 11.4px !important;
  }

  /* Organized, spacious mobile Home & Hub stage */
  .sm3-home-stage,
  #sm3MainStage {
    padding: 12px 12px 92px !important;
    box-sizing: border-box !important;
  }

  .sm3-home-hero {
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  .sm3-home-title {
    font-size: clamp(24px, 7.2vw, 31px) !important;
    line-height: 1.12 !important;
  }

  .sm3-home-subtitle {
    font-size: 13.2px !important;
    margin-top: 4px !important;
  }

  /* Ensure daily verse / shortcut rows wrap cleanly instead of clipping mid-sentence */
  .sm3-sc-acc-row {
    white-space: normal !important;
    line-height: 1.34 !important;
    padding: 6px 10px !important;
  }

  .sm3-sc-acc-row > span:first-child {
    min-width: 0 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
  }

  /* Jewel-proportioned mobile Tasbih Pot tucked cleanly inside safe viewport bounds */
  .sm3-floating-tasbih {
    right: max(10px, calc(env(safe-area-inset-right, 0px) + 10px)) !important;
    bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .sm3-ft-fab.sm3-ft-vessel {
    width: 60px !important;
    height: 58px !important;
    padding: 8px 3px 4px !important;
  }

  .sm3-ft-vessel-rim {
    top: 3px !important;
    left: 11px !important;
    right: 11px !important;
    height: 5.5px !important;
  }

  .sm3-ft-tasbih-frame {
    width: 54px !important;
    height: 35px !important;
    margin-top: 3px !important;
  }

  .sm3-ft-fab.sm3-ft-vessel .sm3-ft-fab-text {
    font-size: 9.2px !important;
  }

  .sm3-ft-fab.sm3-ft-vessel .sm3-ft-fab-sub {
    font-size: 7.8px !important;
  }

  .sm3-ft-pot-info-btn {
    top: -5px !important;
    right: -4px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }

  .sm3-ft-vessel-wrap .sm3-ft-bouquet-svg {
    width: 72px !important;
    height: 42px !important;
    top: -24px !important;
  }
}

@media (max-width: 355px) {
  .sm3-hdr-getapp-btn .sm3-getapp-short {
    display: none !important;
  }
  .sm3-hdr-getapp-btn {
    width: 30px !important;
    padding: 0 !important;
  }
}
