/* ==========================================================================
   SUPER MUSLIM · ORCHID PEARL LUXURY EDITORIAL & 3D SPATIAL DESIGN SYSTEM
   Signature 4-Colour Botanical Palette:
     Blush Pearl (#F5DFD6) · Deep Imperial Plum (#60023D) · Orchid Citron (#F5DFD6) · Saffron-Amber Jewel (#F6B204)
   ========================================================================== */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/dream/fonts/BodoniModa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/dream/fonts/BodoniModa-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/dream/fonts/BodoniModa-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/dream/fonts/BodoniModa-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/dream/fonts/BodoniModa-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('/fonts/NotoNaskhArabic-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin-400-normal.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Signature 4-Colour Botanical Orchid Palette — Super Muslim */
  --sand: #F5DFD6;
  --sand-parchment: #F8E7E0;
  --sand-light: #FCF4F0;
  --sand-bright: #FFF9F7;
  --sand-deep: #EBD0C5;
  --sand-border: rgba(96, 2, 61, 0.14);
  --border-soft: rgba(96, 2, 61, 0.14);

  /* Primary Architectural Anchor: Deep Imperial Plum (#60023D) */
  --mocha: #60023D;
  --mocha-deep: #3E0127;
  --mocha-desk: #4A022F;
  --mocha-ink: #60023D;
  --mocha-soft: #752256;
  --mocha-muted: #8E4A74;
  --mocha-tint: rgba(96, 2, 61, 0.06);

  /* Luminous Orchid Citron (#F5DFD6) — Measured Joyful Secondary Highlight */
  --sky: #F5DFD6;
  --sky-deep: #EED3C8;
  --sky-tint: rgba(245, 223, 214, 0.34);

  /* Warm Saffron-Amber Jewel (#F6B204) — Precious Focal Spark */
  --watermelon: #F6B204;
  --crimson: #F6B204;
  --watermelon-glow: rgba(246, 178, 4, 0.38);
  --watermelon-tint: rgba(246, 178, 4, 0.14);

  /* Saffron-Citron Jewel Shimmer — Micro-Accents & Interactive Rim */
  --gold-dark: #A67400;
  --gold-mid: #D89B02;
  --gold-bright: #F6B204;
  --gold-glint: #F5DFD6;
  --gold-warm: #F6B204;
  --gold-glow: rgba(246, 178, 4, 0.38);

  /* Typography */
  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Literata', Georgia, serif;
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;

  /* Live Mushaf Font Sizes (controlled by Aa Edge Tab — Recommended V2c Defaults) */
  --mushaf-ar-size: 28px;
  --mushaf-wbw-size: 12px;
  --mushaf-tl-size: 14px;
  --mushaf-tr-size: 16px;
  --mushaf-tf-size: 15px;

  /* Layout */
  --header-h: 64px;
  --prayer-bar-h: 38px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--sand);
  color: var(--mocha);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 252, 248, 0.78), transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(96, 2, 61, 0.07), transparent 60%);
  padding-bottom: 96px;
}

/* ==========================================================================
   TOP ARCHITECTURAL CHROME & LIVE PRAYER RIBBON
   ========================================================================== */

.sm3-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 223, 214, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-border);
}

.sm3-header-top {
  max-width: 1440px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm3-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mocha);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.sm3-brand-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #820855, var(--mocha) 65%, var(--mocha-deep));
  display: grid;
  place-items: center;
  color: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(96, 2, 61, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

.sm3-brand-orb::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--watermelon);
  box-shadow: 0 0 6px var(--watermelon);
}

.sm3-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sm3-brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--mocha);
}

.sm3-brand-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mocha-muted);
  margin-top: 2px;
}

.sm3-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm3-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96, 2, 61, 0.22);
  background: var(--sand-bright);
  color: var(--mocha);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sm3-pill-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 4px 12px rgba(96, 2, 61, 0.1);
}

.sm3-pill-btn.primary {
  background: var(--mocha);
  color: var(--sand);
  border-color: var(--mocha);
}

.sm3-pill-btn.primary:hover {
  background: var(--mocha-deep);
}

.sm3-spark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--watermelon);
  box-shadow: 0 0 8px var(--watermelon);
  display: inline-block;
  flex-shrink: 0;
}

/* Prayer Ribbon */
.sm3-prayer-ribbon {
  background: var(--mocha);
  color: var(--sand);
  font-size: 12px;
  border-top: 1px solid rgba(245, 223, 214, 0.1);
  cursor: pointer;
  transition: background 0.18s ease;
}

.sm3-prayer-ribbon:hover,
.sm3-prayer-ribbon:focus-visible {
  background: var(--mocha-deep);
}

.sm3-prayer-ribbon-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: var(--prayer-bar-h);
  padding: 4px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sm3-prayer-cells {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm3-prayer-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 223, 214, 0.08);
  color: rgba(245, 223, 214, 0.85);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}

.sm3-prayer-cell.next {
  background: rgba(245, 223, 214, 0.18);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(246, 178, 4, 0.55);
}

.sm3-prayer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(245, 223, 214, 0.82);
}

.sm3-prayer-city-btn {
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  border: 1px solid rgba(245, 223, 214, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  cursor: pointer;
}

/* Hub Quick Switcher Bar (shown when inside a Hub) */
.sm3-hub-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sm3-hub-nav::-webkit-scrollbar { display: none; }

.sm3-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(96, 2, 61, 0.18);
  background: rgba(245, 223, 214, 0.72);
  color: var(--mocha);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sm3-hub-chip:hover {
  background: var(--sand-bright);
}

.sm3-hub-chip.active {
  background: var(--mocha);
  color: var(--sand);
  border-color: var(--mocha);
}

.sm3-hub-chip.active .chip-num {
  color: var(--watermelon);
}

.chip-num {
  font-family: var(--font-display);
  font-size: 11px;
  opacity: 0.75;
}

/* ==========================================================================
   3D SPATIAL HOME SCREEN (60FPS HARDWARE-ACCELERATED ON ALL DEVICES)
   No FAQ questions/riddles. No flat mobile fallback.
   ========================================================================== */

.sm3-home-stage {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.sm3-home-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sm3-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mocha-soft);
  margin-bottom: 6px;
}

.sm3-home-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--mocha);
  letter-spacing: -0.01em;
}

.sm3-home-subtitle {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--mocha-soft);
  max-width: 640px;
}

.sm3-home-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm3-shortcuts-dock {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1.5px dashed rgba(96, 2, 61, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 520px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sm3-shortcuts-dock.is-drag-over {
  border-color: var(--mocha);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(96, 2, 61, 0.16);
}

.sm3-shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm3-shortcuts-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mocha);
  line-height: 1.2;
}

.sm3-shortcuts-sub {
  font-size: 11px;
  color: var(--mocha-soft);
  line-height: 1.3;
}

.sm3-shortcuts-add-btn {
  border: 1px solid rgba(96, 2, 61, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--mocha);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.sm3-shortcuts-add-btn:hover {
  background: #fff;
  border-color: var(--mocha);
}

.sm3-shortcuts-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sm3-shortcut-item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(96, 2, 61, 0.2);
  color: var(--mocha);
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.sm3-shortcut-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 2, 61, 0.12);
}

.sm3-shortcut-item.is-accent {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--sand);
}

.sm3-shortcut-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px 5px 11px;
  cursor: pointer;
}

.sm3-shortcut-remove {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  font-size: 13px;
  line-height: 1;
  padding: 5px 8px 5px 2px;
  cursor: pointer;
}

.sm3-shortcut-remove:hover {
  opacity: 1;
}

.sm3-shortcuts-empty {
  font-size: 11.5px;
  color: var(--mocha-soft);
  padding: 4px 2px;
}

.sm3-shortcut-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.sm3-shortcut-pick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(96, 2, 61, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--mocha);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.sm3-shortcut-pick-btn.is-selected {
  border-color: var(--mocha);
  background: rgba(96, 2, 61, 0.1);
}

.sm3-shortcut-pick-state {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* 3D Spatial Viewport */
.sm3-spatial-viewport {
  position: relative;
  width: 100%;
  height: 550px;
  perspective: 1500px;
  perspective-origin: 50% 44%;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 249, 247, 0.82), rgba(245, 223, 214, 0.48) 56%, rgba(96, 2, 61, 0.07) 100%),
    linear-gradient(180deg, #FCF3EF 0%, #F5DFD6 66%, #ECD0C5 100%);
  border: 1px solid rgba(96, 2, 61, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 50px rgba(96, 2, 61, 0.1);
  user-select: none;
  touch-action: pan-y;
}

/* Subtle architectural floor grid in 3D space */
.sm3-spatial-floor {
  position: absolute;
  inset: 55% -20% -35% -20%;
  background-image:
    linear-gradient(to right, rgba(96, 2, 61, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 2, 61, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotateX(72deg);
  transform-origin: 50% 0%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 20%, transparent 75%);
}

.sm3-spatial-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Sleek 60fps Hardware-Accelerated 3D Spatial Card */
.sm3-spatial-card {
  position: absolute;
  top: -175px;
  left: -155px;
  width: 310px;
  height: 350px;
  border-radius: 22px;
  background: linear-gradient(160deg, #76054C 0%, #60023D 52%, #3E0127 100%);
  color: var(--sand);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(245, 223, 214, 0.22);
  box-shadow:
    0 24px 48px rgba(62, 1, 39, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform-style: flat;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.sm3-spatial-card .sm3-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.4px;
  line-height: 1.52;
}

.sm3-spatial-card .sm3-card-pills {
  margin-top: 8px;
  gap: 4px;
  max-height: 52px;
  overflow: hidden;
}

.sm3-spatial-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(245, 223, 214, 0.1);
  pointer-events: none;
}

.sm3-spatial-card.is-front {
  border-color: rgba(246, 178, 4, 0.65);
  box-shadow:
    0 28px 60px rgba(62, 1, 39, 0.45),
    0 0 0 1px rgba(246, 178, 4, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.sm3-card-index {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  font-variant-numeric: tabular-nums;
  color: #F5DFD6;
  background: rgba(245, 223, 214, 0.11);
  border: 1px solid rgba(246, 178, 4, 0.42);
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sm3-card-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  border: 1px solid rgba(246, 178, 4, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sm3-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--sand);
  margin: 10px 0 8px;
}

.sm3-card-desc {
  font-size: 12.8px;
  line-height: 1.48;
  color: rgba(245, 223, 214, 0.82);
  margin: 0;
}

.sm3-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.sm3-card-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 223, 214, 0.1);
  color: rgba(245, 223, 214, 0.9);
  border: 1px solid rgba(245, 223, 214, 0.14);
}

.sm3-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 223, 214, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
}

.sm3-card-footer-center {
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 4px;
}

.sm3-card-footer-center .sm3-card-cta {
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(245, 223, 214, 0.12);
  border: 1px solid rgba(245, 223, 214, 0.22);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta {
  background: rgba(245, 223, 214, 0.18);
  border-color: rgba(246, 178, 4, 0.55);
}

.sm3-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sand);
}

.sm3-spatial-card.is-front .sm3-card-cta {
  color: #fff;
}

.sm3-spatial-hud {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(96, 2, 61, 0.9);
  color: var(--sand);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 223, 214, 0.22);
  box-shadow: 0 8px 24px rgba(62, 1, 39, 0.25);
  z-index: 20;
}

.sm3-hud-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sm3-hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 223, 214, 0.32);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.sm3-hud-dot.active {
  background: var(--watermelon);
  box-shadow: 0 0 8px var(--watermelon);
  transform: scale(1.25);
}

.sm3-hud-arrow {
  background: rgba(245, 223, 214, 0.14);
  color: var(--sand);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.sm3-hud-view-btn {
  background: rgba(245, 223, 214, 0.16);
  color: #F5DFD6;
  border: 1px solid rgba(245, 223, 214, 0.35);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sm3-hud-view-btn:hover {
  background: #F5DFD6;
  color: #60023D;
}

/* Architectural 3D Grid Deck below / alternate view */
.sm3-spatial-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.sm3-deck-card {
  background: var(--mocha);
  color: var(--sand);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(96, 2, 61, 0.25);
  box-shadow: 0 12px 28px rgba(62, 1, 39, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sm3-deck-card:hover {
  transform: translate3d(0, -5px, 14px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 20px 38px rgba(62, 1, 39, 0.26);
}

/* ==========================================================================
   THE SPATIAL MUSHAF (QURAN READER UX)
   Floating Soft Sand (#F5DFD6) parchment over Mocha Green (#60023D) studio desk,
   4 Physical Right-Edge Index Tabs (WBW, TR, TF, Aa),
   Tajweed color-coding with tap-to-peek,
   3D Bent Bottom Corner (#mushafCornerCurl) lifting page to reveal Under-Desk,
   Verse-Ending Surah:Ayah Rosette with 4-Bubble Fan.
   ========================================================================== */

.sm3-hub-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}

.sm3-studio-modes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(96, 2, 61, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(96, 2, 61, 0.14);
}

.sm3-mode-btn {
  padding: 8px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mocha);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.sm3-mode-btn:hover {
  background: rgba(245, 223, 214, 0.65);
}

.sm3-mode-btn.active {
  background: var(--mocha);
  color: var(--sand);
  box-shadow: 0 4px 12px rgba(96, 2, 61, 0.2);
}

/* Mocha Green Studio Desk Layer */
.sm3-mushaf-desk {
  position: relative;
  background:
    radial-gradient(circle at 50% 15%, #7A064F 0%, #60023D 52%, #360122 100%);
  border-radius: 28px;
  padding: 18px 56px 34px 18px;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.12),
    inset 0 -18px 40px rgba(0, 0, 0, 0.35),
    0 24px 60px rgba(62, 1, 39, 0.28);
  border: 1px solid rgba(245, 223, 214, 0.18);
  perspective: 1800px;
  overflow: visible;
}

/* Mushaf Desk Unified Sticky Header & Context Strip */
.sm3-mushaf-sticky-header {
  position: sticky;
  top: 98px;
  z-index: 90;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(74, 2, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 223, 214, 0.22);
  box-shadow: 0 10px 28px rgba(48, 1, 30, 0.28);
  color: var(--sand);
  overflow: hidden;
}

.sm3-mushaf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  color: var(--sand);
}

.sm3-mushaf-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 14px;
  background: rgba(245, 223, 214, 0.09);
  border-top: 1px solid rgba(245, 223, 214, 0.14);
  font-size: 12.5px;
  color: rgba(245, 223, 214, 0.92);
}

.sm3-mushaf-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 223, 214, 0.14);
  border: 1px solid rgba(245, 223, 214, 0.2);
  font-weight: 600;
  font-size: 12px;
}

.sm3-mushaf-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm3-desk-select, .sm3-desk-input {
  background: rgba(245, 223, 214, 0.95);
  color: var(--mocha);
  border: 1px solid rgba(96, 2, 61, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.sm3-desk-btn {
  background: rgba(245, 223, 214, 0.14);
  color: var(--sand);
  border: 1px solid rgba(245, 223, 214, 0.26);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.sm3-desk-btn:hover {
  background: rgba(245, 223, 214, 0.24);
}

.sm3-desk-btn.active {
  background: var(--sand);
  color: var(--mocha);
}

.sm3-desk-btn.is-stop-danger {
  background: #F6B204 !important;
  color: #60023D !important;
  border-color: #F6B204 !important;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(246, 178, 4, 0.38);
}

.sm3-toolbar-audio-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 3px 6px;
  border-radius: 12px;
  background: rgba(245, 223, 214, 0.08);
  border: 1px solid rgba(245, 223, 214, 0.18);
}

/* Floating Soft Sand Parchment Card */
.sm3-mushaf-page-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.sm3-mushaf-parchment {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 252, 250, 0.74), transparent 70%),
    linear-gradient(180deg, #FCF3EF 0%, #F5DFD6 56%, #EED2C6 100%);
  color: var(--mocha);
  border-radius: 18px 18px 26px 18px;
  padding: 26px 34px 52px;
  min-height: 640px;
  box-shadow:
    0 2px 0 #E6C4B7,
    0 5px 0 #DAB2A3,
    0 8px 0 #CCA090,
    0 28px 60px rgba(48, 1, 30, 0.50),
    inset 0 0 0 1px rgba(96, 2, 61, 0.18);
  transform-origin: 50% 0%;
  transition: box-shadow 0.35s ease;
  z-index: 5;
}

.sm3-mushaf-tip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(96, 2, 61, 0.055);
  border: 1px solid rgba(96, 2, 61, 0.12);
  font-size: 12px;
  color: var(--mocha-soft);
}

/* Inner ornamental border on the Mushaf page */
.sm3-mushaf-parchment::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(96, 2, 61, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

/* When Under-Desk Studio is open, keep parchment flat and legible (no 3D warp on tall pages) */
.sm3-mushaf-desk.desk-open .sm3-mushaf-parchment {
  transform: none;
  box-shadow:
    0 28px 65px rgba(48, 1, 30, 0.65),
    inset 0 0 0 1.5px rgba(246, 178, 4, 0.55);
}

/* 4 PHYSICAL EDGE INDEX TABS sticking out the right edge of the floating page */
.sm3-edge-tabs {
  position: absolute;
  top: 44px;
  right: -52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 12;
}

.sm3-edge-tab {
  width: 54px;
  height: 48px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #4A022F 0%, #60023D 35%, #76054C 100%);
  color: var(--sand);
  border: 1px solid rgba(245, 223, 214, 0.28);
  border-left: none;
  box-shadow: 6px 6px 16px rgba(54, 1, 34, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease;
}

.sm3-edge-tab:hover {
  transform: translateX(4px);
}

.sm3-edge-tab.active {
  background: linear-gradient(90deg, #60023D 0%, #820855 100%);
  transform: translateX(6px);
  border-color: var(--watermelon);
}

.sm3-edge-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 223, 214, 0.28);
  margin-top: 3px;
}

.sm3-edge-tab.active .tab-dot {
  background: var(--watermelon);
  box-shadow: 0 0 8px var(--watermelon);
}

/* Aa Popover (Transliteration Toggle + Live Independent Font-Size Sliders) */
.sm3-aa-popover {
  position: absolute;
  top: 190px;
  right: 16px;
  width: 290px;
  background: var(--mocha);
  color: var(--sand);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(246, 178, 4, 0.45);
  box-shadow: 0 20px 44px rgba(54, 1, 34, 0.48);
  z-index: 30;
}

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

.sm3-slider-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.sm3-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--watermelon);
}

/* 3D Bent Bottom-Right Corner Curl */
.sm3-corner-curl {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 78px;
  height: 78px;
  cursor: pointer;
  z-index: 15;
  border: none;
  background: linear-gradient(
    135deg,
    transparent 46%,
    #E6C4B7 48%,
    #FFF9F7 56%,
    #D6AE9E 72%,
    rgba(96, 2, 61, 0.88) 100%
  );
  border-radius: 18px 0 24px 0;
  box-shadow: -6px -6px 16px rgba(96, 2, 61, 0.24);
  transition: width 0.25s ease, height 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 10px;
  color: var(--sand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sm3-corner-curl:hover,
.sm3-mushaf-desk.desk-open .sm3-corner-curl {
  width: 96px;
  height: 96px;
  box-shadow: -10px -10px 24px rgba(96, 2, 61, 0.35);
}

.sm3-corner-curl-label {
  background: rgba(96, 2, 61, 0.92);
  color: var(--sand);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(246, 178, 4, 0.55);
  font-size: 9.5px;
  white-space: nowrap;
}

/* Under-Desk Compartment (Reader Settings, Offline Downloads, Reciter Studio) */
.sm3-under-desk {
  position: relative;
  z-index: 20;
  max-width: 1320px;
  margin: 0 auto 20px;
  background: linear-gradient(160deg, #6E0446 0%, #4A022F 100%);
  color: var(--sand);
  border-radius: 20px;
  padding: 20px 22px;
  border: 1.5px solid rgba(246, 178, 4, 0.55);
  box-shadow: 0 18px 40px rgba(48, 1, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: none;
}

.sm3-mushaf-desk.desk-open .sm3-under-desk {
  display: block;
  animation: sm3SlideIn 0.3s ease;
}

@keyframes sm3SlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm3-under-desk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.sm3-under-desk-card {
  background: rgba(245, 223, 214, 0.07);
  border: 1px solid rgba(245, 223, 214, 0.16);
  border-radius: 14px;
  padding: 16px;
}

.sm3-under-desk-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mushaf Page Header & Verses */
.sm3-page-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(96, 2, 61, 0.16);
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--mocha-soft);
}

.sm3-surah-banner {
  margin: 18px 0 14px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(96, 2, 61, 0.09), rgba(96, 2, 61, 0.16), rgba(96, 2, 61, 0.09));
  border: 1px solid rgba(96, 2, 61, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm3-surah-banner-ar {
  font-family: var(--font-arabic);
  font-size: 24px;
  color: var(--mocha);
}

.sm3-surah-banner-en {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--mocha);
}

.sm3-bismillah {
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 25px;
  color: var(--mocha);
  margin: 8px 0 18px;
  letter-spacing: 0.02em;
}

/* Individual Verse Block on Mushaf Page */
.sm3-ayah-block {
  position: relative;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(96, 2, 61, 0.1);
  border-radius: 12px;
  transition: background 0.18s ease;
}

.sm3-ayah-block:hover {
  background: rgba(96, 2, 61, 0.035);
}

.sm3-ayah-block.is-playing {
  background: rgba(246, 178, 4, 0.1);
  box-shadow: inset 3px 0 0 var(--watermelon);
}

.sm3-ayah-block.is-stopped {
  background: rgba(96, 2, 61, 0.075);
  box-shadow: inset 3px 0 0 var(--mocha);
}

.sm3-ayah-arabic {
  font-family: var(--font-arabic);
  font-size: var(--mushaf-ar-size);
  line-height: 2.05;
  direction: rtl;
  text-align: right;
  color: var(--mocha-ink);
  word-spacing: 3px;
}

.sm3-ayah-word {
  cursor: pointer;
  padding: 2px 3px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.sm3-ayah-word:hover {
  background: rgba(96, 2, 61, 0.1);
}

/* Word-by-Word Inline Grid (when WBW Edge Tab is ON) */
.sm3-wbw-strip {
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.52);
  border-radius: 10px;
  border: 1px dashed rgba(96, 2, 61, 0.18);
}

.sm3-wbw-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sand-bright);
  border: 1px solid rgba(96, 2, 61, 0.14);
  cursor: pointer;
  min-width: 68px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.sm3-wbw-chip:hover {
  transform: translateY(-2px);
  border-color: var(--watermelon);
}

.sm3-wbw-ar {
  font-family: var(--font-arabic);
  font-size: calc(var(--mushaf-wbw-size) * 1.45);
  line-height: 1.5;
  color: var(--mocha);
}

.sm3-wbw-tl {
  font-size: calc(var(--mushaf-wbw-size) * 0.9);
  color: var(--mocha-muted);
  font-style: italic;
  direction: ltr;
}

.sm3-wbw-en {
  font-size: var(--mushaf-wbw-size);
  font-weight: 600;
  color: var(--mocha);
  direction: ltr;
  text-align: center;
}

/* Layers below Arabic: Transliteration, Translation, Progressive Tafsir */
.sm3-ayah-tl {
  margin-top: 8px;
  font-size: var(--mushaf-tl-size);
  color: var(--mocha-soft);
  font-style: italic;
}

.sm3-ayah-tr {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: var(--mushaf-tr-size);
  line-height: 1.62;
  color: var(--mocha-ink);
}

.sm3-ayah-tf {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(96, 2, 61, 0.06);
  border-left: 3px solid var(--mocha);
  font-size: var(--mushaf-tf-size);
  line-height: 1.58;
  color: var(--mocha);
}

.sm3-tf-more-btn {
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--mocha);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--watermelon);
}

/* ==========================================================================
   VERSE-ENDING SURAH:AYAH ROSETTE CIRCLE & 4-BUBBLE MICRO-ARC FAN
   ========================================================================== */

.sm3-rosette-wrap {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin: 0 6px;
  direction: ltr;
}

.sm3-ayah-rosette {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mocha);
  color: #F5DFD6;
  border: 1.5px solid rgba(246, 178, 4, 0.65);
  box-shadow: 0 3px 10px rgba(96, 2, 61, 0.24);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.sm3-stopped-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: #F5DFD6;
  color: #60023D;
  border: 1.5px solid #F6B204;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease, color 0.15s ease;
}

.sm3-stopped-badge-btn:hover {
  background: #F6B204;
  color: #60023D;
}

.sm3-ayah-rosette:hover,
.sm3-ayah-rosette.fan-open {
  transform: scale(1.08);
  border-color: var(--watermelon);
  box-shadow: 0 0 0 3px var(--watermelon-tint);
}

.sm3-ayah-rosette.is-bookmarked::after,
.sm3-ayah-rosette.is-stopped-rosette::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--watermelon);
  box-shadow: 0 0 6px var(--watermelon);
  margin-left: 5px;
}

.sm3-ayah-stop-pill {
  display: none;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: #F6B204;
  color: #60023D;
  border: 1px solid #F6B204;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 3px 10px rgba(246, 178, 4, 0.35);
}

.sm3-ayah-block.is-playing .sm3-ayah-stop-pill {
  display: inline-flex;
}

/* 4-Bubble Micro-Arc Fan */
.sm3-bubble-fan {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(155deg, #76054C 0%, #60023D 60%, #3E0127 100%);
  border: 1.5px solid var(--watermelon);
  box-shadow: 0 14px 34px rgba(54, 1, 34, 0.38);
  z-index: 60;
  direction: ltr;
  animation: sm3FanPop 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes sm3FanPop {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sm3-fan-bubble {
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  border: 1px solid rgba(245, 223, 214, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.sm3-fan-bubble:hover {
  background: rgba(245, 223, 214, 0.24);
  border-color: var(--watermelon);
  transform: translateY(-2px);
}

.sm3-fan-bubble.is-stop {
  background: var(--watermelon);
  color: #FFF9F7;
  border-color: var(--watermelon);
  font-weight: 700;
}

.sm3-xref-row:hover {
  border-color: var(--watermelon) !important;
  background: rgba(246, 178, 4, 0.08) !important;
}

.sm3-fan-bubble .fan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--watermelon);
  box-shadow: 0 0 6px var(--watermelon);
  flex-shrink: 0;
}

/* ==========================================================================
   TAJWEED COLOR-CODING PALETTE (Always Active + Tap-to-Peek)
   ========================================================================== */

span.tj {
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
  transition: background 0.14s ease;
}
span.tj:hover {
  background: rgba(246, 178, 4, 0.18);
}

.tj.ghunnah, .tj.idgham_ghunnah, .tj.idgham_shafawi { color: #1B7F4E; }
.tj.ikhafa, .tj.ikhafa_shafawi { color: #B85B00; }
.tj.iqlab { color: #7B3FA0; }
.tj.qalaqah { color: #C42847; }
.tj.madda_normal { color: #8C6218; }
.tj.madda_permissible { color: #B5461A; }
.tj.madda_obligatory, .tj.madda_necessary { color: #A6192E; font-weight: 600; }
.tj.ham_wasl, .tj.slnt, .tj.laam_shamsiyah { color: #8A8268; }
.tj.idgham_wo_ghunnah, .tj.idgham_mutajanisayn, .tj.idgham_mutaqaribayn { color: #2D688A; }

/* ==========================================================================
   DOCKED BOTTOM AUDIO RIBBON (From [Surah:Ayah] -> To [Surah:Ayah] + Speed)
   ========================================================================== */

.sm3-audio-ribbon {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(96, 2, 61, 0.97);
  backdrop-filter: blur(16px);
  color: var(--sand);
  border-top: 1px solid rgba(246, 178, 4, 0.45);
  box-shadow: 0 -10px 32px rgba(54, 1, 34, 0.35);
  padding: 10px 20px;
}

.sm3-audio-ribbon[hidden] {
  display: none !important;
}

.sm3-audio-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sm3-audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm3-audio-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 223, 214, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.sm3-audio-range input {
  width: 66px;
  background: var(--sand);
  color: var(--mocha);
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   SHARED CARDS, DRAWERS, MODALS & HUB LAYOUTS
   ========================================================================== */

.sm3-card {
  background: var(--sand-bright);
  border: 1px solid rgba(96, 2, 61, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(96, 2, 61, 0.06);
}

.sm3-card.mocha {
  background: var(--mocha);
  color: var(--sand);
  border-color: rgba(245, 223, 214, 0.2);
}

.sm3-grid-2 > *,
.sm3-grid-3 > *,
.sm3-card {
  min-width: 0;
}

.sm3-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 18px;
}

.sm3-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}

.sm3-section-header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sm3-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  margin: 4px 0 0;
  color: var(--mocha);
}

.sm3-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(96, 2, 61, 0.1);
  color: var(--mocha);
}

.sm3-tag.pink {
  background: #F5DFD6;
  color: #60023D;
  border: 1px solid rgba(96, 2, 61, 0.16);
}

.sm3-card.mocha .sm3-tag.pink {
  background: rgba(246, 178, 4, 0.18) !important;
  color: #F5DFD6 !important;
  border: 1px solid rgba(245, 223, 214, 0.45) !important;
}

/* Inline Tap Counter on Wird Cards */
.sm3-tap-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mocha);
  color: var(--sand);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 178, 4, 0.45);
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  transition: transform 0.1s ease;
}

.sm3-tap-counter:active {
  transform: scale(0.96);
}

.sm3-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(96, 2, 61, 0.14);
  overflow: hidden;
  margin-top: 8px;
}

.sm3-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mocha), var(--watermelon));
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Modal / Drawer Backdrop */
.sm3-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(52, 2, 33, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.sm3-modal-sheet {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--sand-bright);
  color: var(--mocha);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(96, 2, 61, 0.25);
  box-shadow: 0 28px 70px rgba(54, 1, 34, 0.45);
}

.sm3-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.sm3-split-pane {
  background: var(--sand);
  border: 1px solid rgba(96, 2, 61, 0.18);
  border-radius: 16px;
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}

/* Toast Notification — Centered at Bottom So It Never Overlaps the Porcelain Tasbih Vessel */
.sm3-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  z-index: 500;
  background: var(--mocha);
  color: var(--sand);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--watermelon);
  box-shadow: 0 14px 32px rgba(54, 1, 34, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

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

/* Responsive Adjustments */
@media (max-width: 900px) {
  .sm3-mushaf-desk {
    padding: 18px 46px 36px 14px;
  }
  .sm3-mushaf-parchment {
    padding: 22px 18px 52px;
  }
  .sm3-edge-tabs {
    right: -42px;
  }
  .sm3-edge-tab {
    width: 44px;
    height: 42px;
    font-size: 11px;
  }
  .sm3-spatial-viewport {
    height: 440px;
  }
  .sm3-spatial-card {
    width: 270px;
    height: 325px;
    left: -135px;
    top: -162px;
  }
}

/* ==========================================================================
   BOOKMARK INLINE BUTTONS, CHIPS & FLOATING QUICK TASBIH
   ========================================================================== */

.sm3-bm-inline-btn {
  padding: 5px 10px;
  font-size: 11.5px;
}

.sm3-bm-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--sand-border);
  background: var(--sand-parchment);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sm3-bm-chip:hover {
  border-color: var(--mocha);
  transform: translateY(-1px);
}

.sm3-bm-chip-go {
  background: transparent;
  border: none;
  color: var(--mocha);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px 6px 12px;
  cursor: pointer;
}

.sm3-bm-chip-go:hover {
  background: var(--mocha-tint);
}

.sm3-bm-chip-del {
  background: transparent;
  border: none;
  border-left: 1px solid var(--sand-border);
  color: var(--mocha-muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.sm3-bm-chip-del:hover {
  background: #F5DFD6;
  color: #60023D;
}

/* Floating Quick Tasbih */
.sm3-floating-tasbih {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 900;
  transition: bottom 0.22s ease;
}

.sm3-floating-tasbih.above-audio {
  bottom: 84px;
}

.sm3-ft-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 223, 214, 0.36);
  background: linear-gradient(155deg, #76054C 0%, #60023D 60%, #3E0127 100%);
  color: var(--sand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(54, 1, 34, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sm3-ft-fab:hover {
  transform: translateY(-2px);
  border-color: var(--watermelon);
  box-shadow: 0 16px 34px rgba(54, 1, 34, 0.42);
}

.sm3-ft-fab-icon {
  font-size: 16px;
  line-height: 1;
}

.sm3-ft-card {
  width: 274px;
  padding: 14px;
  border-radius: 22px;
  border: 1.5px solid rgba(246, 178, 4, 0.55);
  background: linear-gradient(160deg, #720549 0%, #60023D 55%, #3E0127 100%);
  color: var(--sand);
  box-shadow: 0 20px 44px rgba(54, 1, 34, 0.48);
  animation: sm3FanPop 0.18s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.sm3-ft-preview {
  background: rgba(245, 223, 214, 0.08);
  border: 1px solid rgba(245, 223, 214, 0.18);
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 8px;
  max-height: 78px;
  overflow-y: auto;
}

.sm3-ft-preview-ar {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.55;
  direction: rtl;
  text-align: right;
  color: #F5DFD6;
}

.sm3-ft-preview-en {
  font-size: 11px;
  line-height: 1.38;
  color: rgba(245, 223, 214, 0.84);
  margin-top: 2px;
}

.sm3-ft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sm3-ft-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sand);
}

.sm3-ft-min-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(245, 223, 214, 0.28);
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.sm3-ft-min-btn:hover {
  background: rgba(245, 223, 214, 0.24);
}

.sm3-ft-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(245, 223, 214, 0.25);
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  font-size: 11.5px;
  margin-bottom: 10px;
}

.sm3-ft-select option,
.sm3-ft-select optgroup {
  color: #60023D;
  background: var(--sand-bright);
}

.sm3-ft-circle-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.sm3-ft-circle {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, rgba(245, 223, 214, 0.18), rgba(0, 0, 0, 0.16));
  color: var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.sm3-ft-circle:active:not(:disabled) {
  transform: scale(0.95);
}

.sm3-ft-circle.is-paused {
  opacity: 0.58;
  cursor: not-allowed;
}

.sm3-ft-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sm3-ft-ring-bg {
  fill: none;
  stroke: rgba(245, 223, 214, 0.18);
  stroke-width: 6;
}

.sm3-ft-ring-fg {
  fill: none;
  stroke: var(--watermelon);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.18s ease;
}

.sm3-ft-circle-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.sm3-ft-count {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.sm3-ft-of {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.sm3-ft-tap-hint {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--watermelon);
  margin-top: 4px;
}

.sm3-ft-target-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.sm3-ft-target-btn {
  background: rgba(245, 223, 214, 0.12);
  border: 1px solid rgba(245, 223, 214, 0.24);
  color: var(--sand);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-ft-target-pop {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(245, 223, 214, 0.2);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
}

.sm3-ft-mini-btn {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 223, 214, 0.25);
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-ft-mini-btn.active {
  background: var(--watermelon);
  border-color: var(--watermelon);
  color: #FFF9F7;
}

.sm3-ft-target-input {
  width: 82px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(245, 223, 214, 0.3);
  background: rgba(245, 223, 214, 0.14);
  color: #fff;
  font-size: 11.5px;
  text-align: center;
}

.sm3-ft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sm3-ft-act-btn {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(245, 223, 214, 0.24);
  background: rgba(245, 223, 214, 0.12);
  color: var(--sand);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-ft-act-btn:hover {
  background: rgba(245, 223, 214, 0.22);
}

.sm3-ft-act-btn.is-active {
  background: var(--watermelon);
  border-color: var(--watermelon);
  color: #FFF9F7;
}

/* ---------- Salah Posture Diagrams & Prayer Reference ---------- */
.sm3-salah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.sm3-salah-card {
  background: #F5DFD6;
  border: 1px solid rgba(96, 2, 61, 0.14);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.sm3-salah-svg {
  width: 74px;
  height: 74px;
  display: block;
}

.sm3-salah-step {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #60023D;
  background: rgba(96, 2, 61, 0.09);
  padding: 2px 8px;
  border-radius: 999px;
}

.sm3-salah-title {
  font-weight: 700;
  font-size: 12.5px;
  color: #60023D;
}

.sm3-salah-dhikr {
  font-size: 11.5px;
  font-style: italic;
  color: #60023D;
}

.sm3-salah-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(96, 2, 61, 0.82);
}

.sm3-salah-subdetails {
  background: #F5DFD6;
  border: 1px solid rgba(96, 2, 61, 0.14);
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 8px;
}

.sm3-salah-subdetails > summary {
  font-weight: 700;
  font-size: 12.5px;
  color: #60023D;
  cursor: pointer;
}

.sm3-rakat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.sm3-rakat-table th,
.sm3-rakat-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(96, 2, 61, 0.12);
}

.sm3-rakat-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #60023D;
}

/* Wird Builder Collections, Drag Reorder & Tasbih Click Target */
.sm3-wird-card {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.sm3-wird-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(96, 2, 61, 0.11);
  border-color: rgba(96, 2, 61, 0.34);
}

.sm3-wird-card.is-dragging {
  opacity: 0.48;
  transform: scale(0.99);
}

.sm3-wird-card.is-dragover {
  border-color: var(--watermelon);
  box-shadow: 0 0 0 2px rgba(246, 178, 4, 0.35);
}

.sm3-tap-counter.is-disabled {
  background: rgba(96, 2, 61, 0.14);
  color: rgba(96, 2, 61, 0.45);
  border-color: rgba(96, 2, 61, 0.16);
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.sm3-wird-inline-search {
  background: rgba(245, 223, 214, 0.55);
  border: 1px solid rgba(96, 2, 61, 0.22);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm3-wird-top-fields {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.95fr 1.15fr;
  gap: 12px;
  align-items: start;
}

.sm3-wird-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .sm3-wird-top-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sm3-wird-top-fields,
  .sm3-wird-cards-grid {
    grid-template-columns: 1fr;
  }
  .sm3-header-top {
    padding: 6px 12px;
    gap: 8px;
  }
  .sm3-header-actions {
    gap: 5px;
  }
  .sm3-header-actions .sm3-pill-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .sm3-prayer-ribbon-inner {
    padding: 4px 12px;
    gap: 6px;
  }
  .sm3-prayer-cell {
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .sm3-mushaf-sticky-header {
    top: 84px;
    margin-bottom: 12px;
  }
  .sm3-mushaf-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }
  .sm3-mushaf-context-strip {
    padding: 5px 10px;
    font-size: 11px;
  }
  .sm3-desk-btn,
  .sm3-desk-select,
  .sm3-desk-input {
    padding: 5px 8px;
    font-size: 11.5px;
  }
}


/* ==========================================================================
   OFFICIAL SUPER MUSLIM BRAND IDENTITY & GLISTENING 24K GOLD INTERACTION
   Warm Alabaster (#F5DFD6) · Deep Midnight Ink (#60023D) · Luminous Sky (#F5DFD6)
   Radiant Crimson (#F6B204) · Shimmering 24k Metallic Gold
   ========================================================================== */

@property --sm3-gold-angle {
  syntax: '<angle>';
  initial-value: 115deg;
  inherits: false;
}

@keyframes sm3GoldOrbit {
  0%   { --sm3-gold-angle: 0deg; }
  100% { --sm3-gold-angle: 360deg; }
}

@keyframes sm3GoldTextShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sm3GoldHaloBurst {
  0%   { box-shadow: 0 0 0 1.5px rgba(245, 223, 214, 0.92), 0 0 28px rgba(246, 178, 4, 0.62); }
  100% { box-shadow: 0 0 0 1px rgba(245, 223, 214, 0.58), 0 0 18px rgba(246, 178, 4, 0.30); }
}

/* Luminous Warm Alabaster Canvas & Frosted Header */
body {
  background-color: var(--sand);
  background-image:
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(255, 251, 249, 0.72), transparent 66%),
    radial-gradient(ellipse 65% 50% at 92% 100%, rgba(245, 223, 214, 0.16), transparent 62%);
}

.sm3-header {
  background: rgba(249, 232, 225, 0.93);
  border-bottom: 1px solid rgba(96, 2, 61, 0.13);
}

/* Official Long Logo Header Lockup */
.sm3-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 3px 8px 3px 3px;
  border-radius: 14px;
  transition: transform 0.16s ease;
}

.sm3-brand:hover {
  transform: translateY(-1px);
}

.sm3-brand-emblem {
  width: 44px;
  height: 44px;
  min-width: 44px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.sm3-brand-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sm3-brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.05;
  color: var(--mocha);
}

.sm3-gold-text {
  background: linear-gradient(
    115deg,
    #B07800 0%,
    #DE9B00 22%,
    #F6B204 42%,
    #FFCA28 52%,
    #E09E00 68%,
    #B07800 84%,
    #F6B204 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sm3GoldTextShimmer 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0.9px 0.7px rgba(96, 2, 61, 0.34));
}

.sm3-brand-muslim {
  color: #60023D;
}

.sm3-brand-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.025em;
  color: rgba(96, 2, 61, 0.84);
  margin-top: 2px;
  line-height: 1.2;
}

/* Prayer Ribbon: Deep Midnight Ink + Luminous Sky Active Pill + Gold Hairline */
.sm3-prayer-ribbon {
  background: #60023D;
  color: #F5DFD6;
  border-top: 1px solid rgba(245, 223, 214, 0.14);
  border-bottom: 1.5px solid rgba(246, 178, 4, 0.58);
}

.sm3-prayer-ribbon:hover,
.sm3-prayer-ribbon:focus-visible {
  background: #6E0446;
}

.sm3-prayer-cell {
  background: rgba(245, 223, 214, 0.09);
  color: rgba(245, 223, 214, 0.88);
}

.sm3-prayer-cell.next {
  background: #F5DFD6;
  color: #60023D;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.sm3-prayer-cell.next .sm3-spark-dot {
  background: #F6B204;
  box-shadow: 0 0 8px rgba(246, 178, 4, 0.55);
}

.sm3-prayer-city-btn {
  background: rgba(245, 223, 214, 0.14);
  color: #F5DFD6;
  border-color: rgba(245, 223, 214, 0.28);
}

/* Header & Shortcuts Polish */
.sm3-pill-btn {
  background: #FFF9F7;
  color: #60023D;
  border-color: rgba(96, 2, 61, 0.16);
}

.sm3-pill-btn.primary {
  background: #60023D;
  color: #F5DFD6;
  border-color: rgba(246, 178, 4, 0.55);
}

.sm3-pill-btn.primary:hover {
  background: #720549;
}

.sm3-shortcuts-dock {
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px dashed rgba(96, 2, 61, 0.18);
}

.sm3-shortcuts-add-btn {
  background: #60023D;
  color: #F5DFD6;
  border-color: #60023D;
}

.sm3-shortcuts-add-btn:hover {
  background: #7A064F;
}

/* Luminous Sky Blue (#F5DFD6) + Deep Midnight Ink (#60023D) Active Pills & Card Pills */
.sm3-hub-chip {
  background: #FFF9F7;
  color: #60023D;
  border-color: rgba(96, 2, 61, 0.14);
}

.sm3-hub-chip.active,
.sm3-shortcut-item.is-accent,
.sm3-card-badge,
.sm3-card-pill,
.sm3-card-footer-center .sm3-card-cta,
.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta,
.sm3-mode-btn.active,
.sm3-desk-btn.active,
.sm3-ft-mini-btn.active,
.sm3-ft-act-btn.is-active {
  background: #F5DFD6 !important;
  color: #60023D !important;
  border-color: rgba(96, 2, 61, 0.16) !important;
  font-weight: 700;
}

.sm3-hub-chip.active .chip-num {
  color: #60023D !important;
  opacity: 0.78;
}

.sm3-spatial-card.is-front .sm3-card-cta {
  color: #60023D !important;
}

.sm3-card-footer-center .sm3-card-cta:hover,
.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta:hover {
  background: #FAF0EC !important;
}

.sm3-deck-card {
  background: linear-gradient(160deg, #76054C 0%, #60023D 56%, #3E0127 100%);
  border: 1px solid rgba(245, 223, 214, 0.22);
}

.sm3-deck-card .sm3-card-cta {
  color: #F5DFD6;
}

/* Mushaf Right-Edge Active Tab & High-Contrast Stop Controls */
.sm3-edge-tab.active {
  background: linear-gradient(135deg, #F5DFD6 0%, #FAF0EC 100%) !important;
  color: #60023D !important;
  border-color: rgba(246, 178, 4, 0.65) !important;
}

.sm3-edge-tab.active .tab-dot {
  background: #F6B204 !important;
  box-shadow: 0 0 8px rgba(246, 178, 4, 0.55) !important;
}

.sm3-ayah-stop-pill,
.sm3-fan-bubble.is-stop,
#arStopPrimaryBtn {
  background: #F6B204 !important;
  color: #60023D !important;
  border-color: #F6B204 !important;
  font-weight: 800;
}

/* Floating Tasbih FAB with Signature Gold Rim */
.sm3-ft-fab {
  background: linear-gradient(155deg, #76054C 0%, #60023D 58%, #3E0127 100%);
  border: 1.5px solid rgba(246, 178, 4, 0.72);
  color: #F5DFD6;
  box-shadow: 0 12px 28px rgba(62, 1, 39, 0.34), 0 0 14px rgba(246, 178, 4, 0.2);
}

.sm3-ft-fab:hover {
  border-color: #F5DFD6;
  box-shadow: 0 16px 34px rgba(62, 1, 39, 0.42), 0 0 22px rgba(246, 178, 4, 0.38);
}

.sm3-ft-ring-fg {
  stroke: #F6B204;
}

.sm3-ft-tap-hint {
  color: #F5DFD6;
}

/* ==========================================================================
   SIGNATURE GLISTENING 24K METALLIC GOLD BORDER ON CLICK & FRONT CARD
   ========================================================================== */

.sm3-spatial-card.is-front {
  border-color: rgba(246, 178, 4, 0.75);
  box-shadow:
    0 28px 60px rgba(62, 1, 39, 0.46),
    0 0 0 1px rgba(245, 223, 214, 0.52),
    0 0 26px rgba(246, 178, 4, 0.28),
    inset 0 1px 0 rgba(245, 223, 214, 0.26);
}

.sm3-spatial-card.is-front::after,
.sm3-gold-active:not(.sm3-ayah-rosette)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from var(--sm3-gold-angle),
    #B07A00 0deg,
    #F6B204 42deg,
    #F5DFD6 78deg,
    #FFF9F7 92deg,
    #F6B204 118deg,
    #60023D 185deg,
    #B07A00 232deg,
    #F6B204 272deg,
    #F5DFD6 304deg,
    #F6B204 334deg,
    #B07A00 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 25;
  animation: sm3GoldOrbit 3.4s linear infinite;
}

.sm3-gold-active:not(.sm3-ayah-rosette) {
  box-shadow:
    0 0 0 1px rgba(245, 223, 214, 0.58),
    0 0 20px rgba(246, 178, 4, 0.34);
}

.sm3-gold-active.sm3-gold-pos-rel {
  position: relative;
}

.sm3-gold-active.sm3-gold-flash:not(.sm3-ayah-rosette) {
  animation: sm3GoldHaloBurst 0.95s ease-out forwards;
}

.sm3-gold-active.sm3-gold-flash:not(.sm3-ayah-rosette)::after {
  padding: 3px;
  animation: sm3GoldOrbit 1.35s linear infinite;
  filter: brightness(1.16) drop-shadow(0 0 6px rgba(245, 223, 214, 0.65));
}

/* Safe gold glint on Mushaf ayah rosettes (preserves bookmark ::after badge) */
.sm3-ayah-rosette.sm3-gold-active {
  box-shadow:
    0 0 0 2px #F6B204,
    0 0 0 4px rgba(245, 223, 214, 0.55),
    0 0 16px rgba(246, 178, 4, 0.55) !important;
}

/* Mobile Responsive Brand Header Polish */
@media (max-width: 640px) {
  .sm3-brand-emblem {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .sm3-brand-title {
    font-size: 18px;
    gap: 4px;
  }
  .sm3-brand-sub {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm3-gold-text,
  .sm3-spatial-card.is-front::after,
  .sm3-gold-active::after,
  .sm3-gold-active.sm3-gold-flash {
    animation: none !important;
  }
}


/* ==========================================================================
   V1 OPTIMAL UPGRADE — HEADER BADGES, SIMPLE BACK ARROWS, STICKY MUSHAF &
   FLOATING EDGE TABS, BOTTOM PAGE LIFT, TACTILE + BARS & ASK COMPANION
   ========================================================================== */

/* Crisp SVG Gear & Customizable User Initials Badge */
.sm3-gear-btn {
  padding: 7px 11px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm3-gear-btn svg {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sm3-gear-btn:hover svg {
  transform: rotate(55deg);
}

.sm3-initials-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #76054C 0%, #60023D 65%, #3E0127 100%);
  color: #F5DFD6;
  border: 1.5px solid rgba(246, 178, 4, 0.78);
  box-shadow: 0 4px 12px rgba(96, 2, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.sm3-initials-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: #F5DFD6;
  box-shadow: 0 6px 16px rgba(96, 2, 61, 0.32), 0 0 12px rgba(246, 178, 4, 0.35);
}

.sm3-initials-hero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #76054C 0%, #60023D 70%);
  color: #F5DFD6;
  border: 2px solid #F6B204;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Qibla Badge in Top Prayer Bar */
.sm3-prayer-qibla-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(246, 178, 4, 0.18);
  color: #F5DFD6;
  border: 1px solid rgba(246, 178, 4, 0.45);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Simple Borderless Back Arrows (fb17.5) */
.sm3-nav-back-arrow {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--mocha);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px 4px 2px;
  margin-right: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sm3-nav-back-arrow:hover {
  transform: translateX(-3px);
}

.sm3-simple-back-row {
  margin: 0 0 6px;
}
.sm3-simple-back-arrow {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--mocha);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 8px 2px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}
.sm3-simple-back-arrow:hover {
  transform: translateX(-3px);
}

/* Grid Helpers */
.sm3-grid-2 > *,
.sm3-grid-3 > *,
.sm3-card {
  min-width: 0;
}

.sm3-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sm3-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 960px) {
  .sm3-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .sm3-grid-2,
  .sm3-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Conversational AI-Style Ask Companion Modal */
.sm3-ask-chat-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sm3-ask-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: var(--sand);
  border: 1px solid rgba(96, 2, 61, 0.12);
}
.sm3-ask-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13.8px;
  line-height: 1.6;
  max-width: 92%;
}
.sm3-ask-bubble.is-user {
  align-self: flex-end;
  background: var(--mocha);
  color: var(--sand);
  border-bottom-right-radius: 4px;
}
.sm3-ask-bubble.is-assistant {
  align-self: flex-start;
  background: #FFF9F7;
  color: var(--mocha);
  border: 1px solid rgba(96, 2, 61, 0.14);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(96, 2, 61, 0.05);
}
.sm3-ask-source-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sand);
  border: 1px solid rgba(96, 2, 61, 0.12);
}

/* Spatial Mushaf: True Sticky Header, Floating Edge Tabs & Bottom Page Corner Lift */
.sm3-mushaf-desk {
  perspective: none;
  overflow: visible;
}

.sm3-mushaf-sticky-header {
  position: sticky;
  top: var(--sm3-header-live-h, 146px);
  z-index: 120;
  margin-bottom: 18px;
}

.sm3-mushaf-context-strip {
  border-top: none;
  border-bottom: 1px solid rgba(245, 223, 214, 0.14);
}

.sm3-mushaf-page-wrap {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.sm3-mushaf-parchment {
  flex: 1;
  min-width: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.35s ease, box-shadow 0.35s ease;
}

/* Localized Bottom-Right Page Lift Revealing Under-Desk Studio Underneath (fb03 + fb20.1) */
.sm3-mushaf-parchment.is-bottom-lifted {
  transform: translateY(-6px);
  border-bottom-right-radius: 86px 64px;
  box-shadow:
    0 2px 0 #E6C4B7,
    0 5px 0 #DAB2A3,
    0 34px 68px rgba(48, 1, 30, 0.62),
    inset 0 0 0 1.5px rgba(246, 178, 4, 0.55);
}

.sm3-under-desk {
  margin: 16px auto 6px;
}

/* Sticky Right-Edge Rail: WBW, TL, TR, TF, Aa float smoothly down tall pages */
.sm3-edge-rail {
  position: sticky;
  top: calc(var(--sm3-header-live-h, 146px) + 116px);
  align-self: flex-start;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 110;
  flex-shrink: 0;
}

.sm3-edge-rail .sm3-edge-tabs {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
}

.sm3-edge-rail .sm3-aa-popover {
  position: absolute;
  top: 0;
  right: 12px;
}

@media (max-width: 920px) {
  .sm3-mushaf-desk {
    padding: 12px 12px 26px;
    border-radius: 20px;
  }
  .sm3-mushaf-parchment {
    padding: 18px 16px 54px;
  }
  .sm3-mushaf-page-wrap {
    flex-direction: column;
  }
  .sm3-edge-rail {
    order: -1;
    position: sticky;
    top: calc(var(--sm3-header-live-h, 134px) + 92px);
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .sm3-edge-rail .sm3-edge-tabs {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
  }
  .sm3-edge-tab {
    width: auto;
    min-width: 52px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border-left: 1px solid rgba(245, 223, 214, 0.28);
  }
  .sm3-edge-tab:hover,
  .sm3-edge-tab.active {
    transform: translateY(-2px);
  }
  .sm3-edge-rail .sm3-aa-popover {
    position: relative;
    top: 8px;
    right: auto;
    width: 100%;
  }
}

/* Purposeful 3D-Stacked Tactile Expandable `+` Bars (.sm3-plus-bar & .sm3-sunnah-plus-card) */
.sm3-plus-bar {
  background: var(--sand-bright);
  border: 1px solid rgba(96, 2, 61, 0.14);
  border-radius: 13px;
  box-shadow: 0 2px 0 rgba(96, 2, 61, 0.06), 0 6px 16px rgba(96, 2, 61, 0.04);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.sm3-plus-bar:hover {
  border-color: rgba(96, 2, 61, 0.26);
}
.sm3-plus-bar > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mocha-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.sm3-plus-bar > summary::-webkit-details-marker {
  display: none;
}
.sm3-plus-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(96, 2, 61, 0.08);
  color: var(--mocha);
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sm3-plus-bar[open] > summary .sm3-plus-icon,
.sm3-sunnah-details[open] > summary .sm3-plus-icon {
  transform: rotate(45deg);
  background: var(--mocha);
  color: #F5DFD6;
}
.sm3-plus-body {
  padding: 0 14px 13px;
  font-size: 13.2px;
  line-height: 1.62;
  color: var(--mocha-soft);
  border-top: 1px solid rgba(96, 2, 61, 0.08);
  padding-top: 10px;
}

/* Unified Sunnah / Heart / Adab Checkable + Expandable Cards */
.sm3-sunnah-plus-card {
  background: var(--sand);
  border: 1px solid rgba(96, 2, 61, 0.14);
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(96, 2, 61, 0.05), 0 6px 14px rgba(96, 2, 61, 0.035);
  padding: 10px 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.sm3-sunnah-plus-card.is-done {
  background: rgba(245, 223, 214, 0.22);
  border-color: rgba(96, 2, 61, 0.28);
}
.sm3-sunnah-plus-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sm3-sunnah-check-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(96, 2, 61, 0.35);
  background: #FFF9F7;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}
.sm3-sunnah-check-btn.is-checked {
  background: var(--mocha);
  border-color: #F6B204;
  color: #F5DFD6;
}
.sm3-sunnah-details {
  flex: 1;
  min-width: 0;
}
.sm3-sunnah-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}
.sm3-sunnah-details > summary::-webkit-details-marker {
  display: none;
}
.sm3-sunnah-details-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(96, 2, 61, 0.1);
}

/* City Chip Wrap in Settings */
.sm3-city-chip-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(96, 2, 61, 0.18);
  background: #FFF9F7;
  overflow: hidden;
}
.sm3-city-chip-wrap.is-active {
  background: #F5DFD6;
  border-color: var(--mocha);
}

.sm3-city-chip-go {
  border: 0;
  background: transparent;
  color: var(--mocha);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px 5px 11px;
  cursor: pointer;
}
.sm3-city-chip-del {
  border: 0;
  background: transparent;
  color: var(--mocha-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 9px 5px 3px;
  cursor: pointer;
}
.sm3-city-chip-del:hover {
  background: #F5DFD6;
  color: #60023D;
}

/* Ensure [hidden] always overrides display: inline-flex / flex */
[hidden] {
  display: none !important;
}

/* Compact 2-Row Mobile Header Polish */
@media (max-width: 680px) {
  .sm3-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 12px 6px;
  }
  .sm3-header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
  }
  .sm3-header-actions .sm3-pill-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .sm3-header-actions::-webkit-scrollbar {
    display: none;
  }
  .sm3-kbd-hint {
    display: none;
  }
  .sm3-initials-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 11.5px;
  }
}




/* ==========================================================================
   SUPER MUSLIM · HAUTE-COUTURE BRILLIANT WHITE, SHIMMERING PEARL,
   SHIMMERING 24K GOLD & BOTANICAL ORCHID DESIGN SYSTEM
   ========================================================================== */

:root {
  --sand: #FBF9F8;
  --sand-parchment: #FFFFFF;
  --sand-light: #FFFFFF;
  --sand-bright: #FFFFFF;
  --sand-deep: #F3EFEF;
  --sand-border: rgba(17, 17, 17, 0.08);
  --border-soft: rgba(17, 17, 17, 0.08);

  --mocha: #111111;
  --mocha-deep: #000000;
  --mocha-desk: #FAF8F7;
  --mocha-ink: #0F0F0F;
  --mocha-soft: #282627;
  --mocha-muted: #666264;

  --ruby: #C41038;
  --ruby-deep: #8C0726;
  --crimson: #DC1628;
  --watermelon: #C41038;
  --watermelon-tint: rgba(196, 16, 56, 0.14);
  --watermelon-glow: rgba(196, 16, 56, 0.28);

  --gold-dark: #8A5C0E;
  --gold-mid: #C99226;
  --gold-bright: #F2D178;
  --gold-glint: #FFF3BA;
  --gold-warm: #D49D2E;
  --gold-glow: rgba(212, 157, 46, 0.34);
}

@keyframes sm3PearlSheen {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sm3FloralSettle {
  0%   { opacity: 0; transform: scale(0.92) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 1. Pure Brilliant White Minimalist Canvas Across the Entire App */
html, body {
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #111111;
}

/* 2. Signature 3D Iridescent Shimmering Brilliant White Mother-of-Pearl Pill */
.sm3-pearl-shimmer,
.sm3-prayer-cell.next,
.sm3-hub-chip.active,
.sm3-spatial-card.is-front .sm3-card-index,
.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta,
.sm3-ft-fab,
.sm3-mode-btn.active,
.sm3-edge-tab.active,
.sm3-desk-btn.active {
  position: relative;
  background-color: #FFFFFF !important;
  background-image:
    radial-gradient(ellipse 92% 52% at 50% 12%, #FFFFFF 0%, rgba(255, 255, 255, 0.94) 48%, transparent 76%),
    linear-gradient(
      112deg,
      #FFFFFF 0%,
      #FFFFFF 26%,
      #FCF7FA 36%,
      #FFFFFF 47%,
      #F6FAFC 56%,
      #FCF8F3 66%,
      #FFFFFF 76%,
      #FFFFFF 100%
    ) !important;
  background-size: 100% 100%, 260% 100% !important;
  animation: sm3PearlSheen 4.4s ease-in-out infinite !important;
  color: #0B0B0B !important;
  border: 1px solid rgba(208, 195, 188, 0.85) !important;
  box-shadow:
    inset 0 2.5px 2px #FFFFFF,
    inset 0 -3.5px 7px rgba(214, 198, 190, 0.52),
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.94),
    0 7px 18px rgba(34, 20, 26, 0.11),
    0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* 3. Top Header: Short Logo + '|' Divider + Shimmering Gold 'SUPER' & Black 'MUSLIM' */
.sm3-header {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: none !important;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
}

.sm3-header-top {
  padding: 10px 24px 6px;
}

.sm3-brand {
  gap: 12px;
}

.sm3-brand-emblem {
  width: 46px;
  height: 46px;
  min-width: 46px;
}

.sm3-brand-divider {
  width: 1.3px;
  height: 36px;
  background: rgba(17, 17, 17, 0.42);
  flex-shrink: 0;
}

.sm3-brand-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.03em;
  gap: 6px;
}

/* Shimmering 24k Gold ONLY on 'SUPER', 'superpower.' & Active Card Border */
.sm3-gold-text,
.sm3-gold-italic {
  background: linear-gradient(
    115deg,
    #8A5A0A 0%,
    #C68E20 18%,
    #DFB042 35%,
    #F8DF8E 48%,
    #CA9122 60%,
    #8A5A0A 78%,
    #DBA93A 92%,
    #A67114 100%
  ) !important;
  background-size: 230% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: sm3GoldTextShimmer 6s ease-in-out infinite !important;
  filter: drop-shadow(0 0.6px 0.5px rgba(120, 76, 8, 0.18)) !important;
}

.sm3-gold-italic {
  font-style: italic;
  font-weight: 600;
  padding-right: 3px;
}

.sm3-brand-muslim {
  color: #0B0B0B !important;
}

.sm3-brand-sub {
  color: #111111 !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Clean Non-Shimmering Brilliant White Pills Across Header, Prayer Row & Nav */
.sm3-pill-btn {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.045) !important;
  font-weight: 600;
}

.sm3-pill-btn:hover {
  border-color: rgba(17, 17, 17, 0.18) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.075) !important;
}

.sm3-hdr-icon {
  flex-shrink: 0;
  display: block;
}

/* Top-Right Ruby-Crimson 'Qur'an' CTA Pill & Primary Spotted Ruby Buttons */
.sm3-pill-btn.primary {
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #9E0A2C !important;
  box-shadow: 0 6px 16px rgba(184, 14, 48, 0.24) !important;
}

.sm3-pill-btn.primary.sm3-quran-cta-btn {
  background: linear-gradient(180deg, #E61938 0%, #B80B27 100%) !important;
  border-color: #BE0D29 !important;
  box-shadow: 0 6px 16px rgba(214, 20, 46, 0.28) !important;
  padding: 7px 15px !important;
}

.sm3-pill-btn.primary:hover {
  filter: brightness(1.06);
}

.sm3-gear-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* Top-Right Initials Circle -> Shimmering Brilliant White Mother-of-Pearl */
.sm3-initials-btn {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #0B0B0B !important;
}

.sm3-initials-hero {
  background: #FFFFFF !important;
  color: #0B0B0B !important;
  border: 1.5px solid rgba(190, 176, 168, 0.85) !important;
  box-shadow: inset 0 2px 3px #FFFFFF, inset 0 -3px 6px rgba(212, 198, 190, 0.5), 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* 4. Row 2 — Centred Brilliant White Prayer & Location Pills */
.sm3-prayer-ribbon {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: none !important;
  padding: 2px 0 4px;
}

.sm3-prayer-ribbon:hover,
.sm3-prayer-ribbon:focus-visible {
  background: #FFFFFF !important;
}

.sm3-prayer-ribbon-inner {
  justify-content: center !important;
  gap: 10px !important;
  padding: 4px 20px;
}

.sm3-prayer-cells {
  justify-content: center;
  gap: 8px;
}

.sm3-prayer-cell {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 500;
}

.sm3-prayer-cell.next {
  padding: 6px 15px !important;
  font-weight: 700 !important;
  color: #0B0B0B !important;
}

.sm3-prayer-cell.next strong {
  color: #0B0B0B !important;
}

.sm3-prayer-divider {
  width: 1px;
  height: 22px;
  background: rgba(17, 17, 17, 0.18);
  margin: 0 4px;
}

.sm3-prayer-meta {
  gap: 8px;
  color: #111111 !important;
}

.sm3-prayer-city-btn,
.sm3-prayer-qibla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 5px 13px !important;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
}

/* 5. Row 3 — Centred Superpower Pills + Shimmering Pearl House Icon Pill */
.sm3-hub-nav {
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding: 6px 20px 10px !important;
}

.sm3-hub-chip {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  font-weight: 500;
  gap: 5px;
}

.sm3-hub-chip .chip-num {
  color: #444444 !important;
  font-weight: 500;
  opacity: 0.85;
}

.sm3-hub-chip strong {
  font-weight: 700;
  color: #0F0F0F;
}

.sm3-hub-chip.sm3-home-icon-chip {
  padding: 7px 14px !important;
  min-width: 44px;
  justify-content: center;
}

.sm3-hub-chip.active .chip-num,
.sm3-hub-chip.active strong {
  color: #0B0B0B !important;
  opacity: 1 !important;
}

/* 6. Hero Headline & Dotted Shortcuts Box */
.sm3-home-stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px 36px;
}

.sm3-home-hero {
  align-items: center;
  margin-bottom: 14px;
}

.sm3-home-title {
  color: #0B0B0B !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.7vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 6px;
}

.sm3-home-subtitle {
  color: #141414 !important;
  font-size: 15.5px;
  font-weight: 400;
  margin: 0;
}

.sm3-shortcuts-dock {
  background-color: #FFFFFF !important;
  background-image:
    radial-gradient(ellipse 88% 54% at 50% 16%, #FFFFFF 0%, rgba(255, 255, 255, 0.96) 46%, transparent 80%),
    linear-gradient(
      115deg,
      #F4EEE9 0%,
      #FFFFFF 20%,
      #F7F1EC 36%,
      #FFFFFF 50%,
      #EFF4F7 64%,
      #FFFFFF 80%,
      #F4EEE9 100%
    ) !important;
  background-size: 100% 100%, 250% 100% !important;
  animation: sm3PearlSheen 4.4s ease-in-out infinite !important;
  border: 1px solid rgba(196, 180, 170, 0.92) !important;
  border-radius: 22px !important;
  padding: 10px 16px 12px !important;
  box-shadow:
    inset 0 3px 3px #FFFFFF,
    inset 0 -6px 12px rgba(198, 180, 168, 0.56),
    inset 4px 0 9px rgba(214, 198, 188, 0.36),
    inset -4px 0 9px rgba(214, 198, 188, 0.36),
    0 10px 26px rgba(32, 18, 24, 0.11),
    0 2px 5px rgba(0, 0, 0, 0.05) !important;
  min-width: min(100%, 500px);
}

.sm3-shortcuts-head {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 8px;
}

.sm3-shortcuts-title {
  text-align: center;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #0B0B0B !important;
}

.sm3-shortcuts-add-wrap {
  display: flex;
  justify-content: flex-end;
}

.sm3-shortcuts-add-btn {
  background: linear-gradient(180deg, #B90F3B 0%, #800626 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 5px 15px !important;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(154, 10, 44, 0.24);
}

.sm3-shortcuts-list {
  justify-content: center;
  gap: 8px;
}

.sm3-shortcut-item,
.sm3-shortcut-item.is-accent {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.045) !important;
  border-radius: 999px;
}

.sm3-shortcut-icon {
  display: inline-flex;
  align-items: center;
}

.sm3-shortcut-go {
  font-weight: 600;
  color: #111111 !important;
}

.sm3-shortcut-remove {
  color: #B50E3A !important;
  font-weight: 700;
  opacity: 0.85;
}

/* 7. Pure White 3D Spatial Stage + Botanical Spotted Orchids & Floating Petals */
.sm3-spatial-viewport {
  background: #FFFFFF !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  height: 535px;
}

.sm3-spatial-floor {
  display: none !important;
}

/* Botanical Margin Florals */
.sm3-stage-florals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 28;
}

.sm3-floral-left-bloom {
  position: absolute;
  left: -58px;
  bottom: 48px;
  width: 245px;
  height: auto;
  transform: rotate(18deg);
  filter: drop-shadow(0 12px 22px rgba(45, 22, 12, 0.12));
}

.sm3-floral-petal {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(45, 22, 12, 0.10));
  transition: transform 0.25s ease-out;
}

.sm3-petal-tl {
  left: 6px;
  top: 38px;
  width: 68px;
  transform: translate3d(var(--petal-dx, 0px), var(--petal-dy, 0px), 0) rotate(-24deg);
}

.sm3-petal-bl {
  left: 118px;
  bottom: 34px;
  width: 72px;
  transform: translate3d(var(--petal-dx, 0px), var(--petal-dy, 0px), 0) rotate(148deg);
}

.sm3-petal-tr {
  right: 2px;
  top: 42px;
  width: 68px;
  transform: translate3d(var(--petal-dx, 0px), var(--petal-dy, 0px), 0) rotate(32deg);
}

.sm3-petal-br {
  right: 12px;
  bottom: 92px;
  width: 58px;
  transform: translate3d(var(--petal-dx, 0px), var(--petal-dy, 0px), 0) rotate(-142deg);
}

/* 8. 3D Spatial Cards: Brilliant White Porcelain + Shimmering Gold Front Border + Shimmering Pearl Active Pills */
.sm3-spatial-card,
.sm3-deck-card {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.07) !important;
  border-radius: 24px !important;
  box-shadow:
    0 22px 48px rgba(17, 17, 17, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.sm3-spatial-card::before {
  border: 1px solid rgba(17, 17, 17, 0.045) !important;
  border-radius: 18px;
}

.sm3-spatial-card.is-front {
  overflow: visible !important;
  border-color: rgba(212, 157, 46, 0.85) !important;
  box-shadow:
    0 28px 60px rgba(138, 92, 14, 0.14),
    0 0 0 1.5px rgba(242, 209, 120, 0.72),
    0 0 26px rgba(212, 157, 46, 0.22) !important;
}

/* Active Card Corner Botanical Orchid Sprig & Bottom-Left Budded Stem */
.sm3-card-orchid-sprig,
.sm3-card-orchid-stem {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 35;
}

.sm3-card-orchid-sprig {
  top: -66px;
  right: -66px;
  width: 196px;
  height: auto;
  transform: scale(0.88) rotate(-8deg);
  filter: drop-shadow(0 10px 18px rgba(45, 20, 10, 0.15));
}

.sm3-card-orchid-stem {
  bottom: -36px;
  left: -138px;
  width: 248px;
  height: auto;
  transform: scaleX(-1) rotate(-8deg) scale(0.92);
  filter: drop-shadow(0 8px 14px rgba(45, 20, 10, 0.13));
}

.sm3-spatial-card.is-front .sm3-card-orchid-sprig {
  opacity: 1;
  transform: scale(1) rotate(-4deg);
}

.sm3-spatial-card.is-front .sm3-card-orchid-stem {
  opacity: 1;
  transform: scaleX(-1) rotate(-6deg) scale(1);
}

/* Upper Card Pill: Non-shimmering White on Side Cards, 3D Shimmering Pearl + Lightning Bolt on Front Card */
.sm3-card-top {
  justify-content: center !important;
  margin-bottom: 4px;
}

.sm3-card-index {
  background: #FFFFFF !important;
  color: #0F0F0F !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
  padding: 5px 15px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

.sm3-card-bolt-svg {
  display: none;
}

.sm3-spatial-card:not(.is-front) .sm3-card-index .sm3-spark-dot,
.sm3-deck-card .sm3-card-index .sm3-spark-dot {
  background: #F4BE18 !important;
  box-shadow: none !important;
  width: 8px;
  height: 8px;
}

.sm3-spatial-card.is-front .sm3-card-index {
  padding: 7px 20px !important;
  font-size: 12px !important;
}

.sm3-spatial-card.is-front .sm3-card-index .sm3-card-bolt-svg {
  display: block;
}

.sm3-spatial-card.is-front .sm3-card-index .sm3-spark-dot {
  display: none;
}

/* Card Titles & Copy */
.sm3-card-title {
  color: #0F0F0F !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.16;
}

.sm3-spatial-card.is-front .sm3-card-title {
  color: #A6731E !important;
}

.sm3-card-desc {
  color: #2B1020 !important;
  font-size: 13px;
  line-height: 1.52;
}

.sm3-card-footer {
  border-top: none !important;
  padding-top: 8px;
}

/* Lower Card CTA Pill: Non-Shimmering White on Side Cards, Sculpted Shimmering Pearl on Active Card */
.sm3-card-footer-center .sm3-card-cta,
.sm3-deck-card .sm3-card-cta {
  background: #FFFFFF !important;
  color: #0F0F0F !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
  padding: 9px 22px !important;
  width: 88%;
  justify-content: center;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700 !important;
}

.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta {
  padding: 11px 26px !important;
  width: 90%;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0B0B0B !important;
}

/* 9. Bottom Carousel HUD & Always-Active Shimmering Pearl Tasbih Pill */
.sm3-spatial-hud {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.07) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07) !important;
  padding: 6px 8px 6px 10px !important;
  bottom: 4px;
}

.sm3-hud-arrow {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 28px;
  height: 28px;
  font-weight: 700;
}

.sm3-hud-dot {
  background: #E2DFE0 !important;
  width: 7px;
  height: 7px;
}

.sm3-hud-dot.active {
  background: #DC1628 !important;
  box-shadow: 0 0 6px rgba(220, 22, 40, 0.45) !important;
  transform: scale(1.28);
}

.sm3-hud-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, #C8123A 0%, #8E0828 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(174, 12, 44, 0.25);
}

/* Always-Active Shimmering Pearl Floating Tasbih Pill */
.sm3-ft-fab {
  padding: 8px 22px 8px 15px !important;
  gap: 10px !important;
  font-family: var(--font-display) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: #0B0B0B !important;
}

.sm3-tasbih-beads-svg {
  display: block;
  flex-shrink: 0;
}

.sm3-ft-card {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12) !important;
}

.sm3-ft-preview,
.sm3-ft-min-btn,
.sm3-ft-select,
.sm3-ft-target-btn,
.sm3-ft-mini-btn,
.sm3-ft-target-input,
.sm3-ft-act-btn,
.sm3-ft-target-pop {
  background: #FAF8F7 !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
}

.sm3-ft-preview-ar,
.sm3-ft-title,
.sm3-ft-count,
.sm3-ft-tap-hint {
  color: #111111 !important;
}

.sm3-ft-circle {
  background: #FFFFFF !important;
  color: #111111 !important;
  box-shadow: inset 0 2px 3px #FFFFFF, inset 0 -3px 6px rgba(212, 198, 190, 0.45), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.sm3-ft-ring-bg {
  stroke: rgba(17, 17, 17, 0.09) !important;
}

.sm3-ft-ring-fg {
  stroke: #D49D2E !important;
}

/* 10. Full-App Inner Pages & Spatial Mushaf Continuity (Brilliant White + Whisper Orchid + Shimmering Pearl) */
.sm3-section-header {
  position: relative;
}

.sm3-section-header::after {
  content: '';
  position: absolute;
  top: -18px;
  right: -8px;
  width: 112px;
  height: 128px;
  background: url('/sm3/assets/florals/orchid-corner-sprig.png') no-repeat center / contain;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(45, 20, 10, 0.10));
}

.sm3-mode-bar,
.sm3-subnav-bar {
  background: #FAF8F7 !important;
  border: 1px solid rgba(17, 17, 17, 0.07) !important;
}

.sm3-mode-btn {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.07) !important;
}

.sm3-card,
.sm3-card.mocha {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045) !important;
}

.sm3-tag,
.sm3-tag.pink,
.sm3-card.mocha .sm3-tag.pink {
  background: #FAF8F7 !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
}

.sm3-mushaf-desk {
  background: #FAF8F7 !important;
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.06) !important;
}

.sm3-mushaf-sticky-header {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.sm3-mushaf-toolbar,
.sm3-mushaf-context-strip {
  color: #111111 !important;
}

.sm3-mushaf-context-strip {
  background: #FAF8F7 !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07) !important;
}

.sm3-mushaf-context-pill,
.sm3-desk-select,
.sm3-desk-input,
.sm3-desk-btn {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.11) !important;
}

.sm3-toolbar-audio-cluster {
  background: #FAF8F7 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
}

.sm3-mushaf-parchment {
  background: #FFFFFF !important;
  color: #111111 !important;
  box-shadow:
    0 2px 0 #EFECEB,
    0 5px 0 #E5E0DE,
    0 8px 0 #DAD4D1,
    0 22px 48px rgba(0, 0, 0, 0.07),
    inset 0 0 0 1px rgba(17, 17, 17, 0.08) !important;
}

.sm3-ayah-rosette {
  background: linear-gradient(180deg, #C41038 0%, #8C0726 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #E5B952 !important;
}

.sm3-stopped-badge-btn {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(208, 195, 188, 0.9) !important;
  box-shadow: inset 0 2px 2px #FFFFFF, inset 0 -2px 5px rgba(214, 198, 190, 0.5), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.sm3-edge-tab {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
  border-left: none !important;
  box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.06) !important;
}

.sm3-edge-tab .tab-dot {
  background: rgba(17, 17, 17, 0.2) !important;
}

.sm3-edge-tab.active .tab-dot {
  background: #DC1628 !important;
  box-shadow: 0 0 6px rgba(220, 22, 40, 0.55) !important;
}

.sm3-under-desk,
.sm3-aa-popover,
.sm3-bubble-fan,
.sm3-audio-ribbon {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.10) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10) !important;
}

@media (max-width: 900px) {
  .sm3-floral-left-bloom {
    width: 150px;
    left: -42px;
    bottom: 24px;
  }
  .sm3-card-orchid-sprig {
    width: 145px;
    top: -46px;
    right: -42px;
  }
  .sm3-card-orchid-stem {
    width: 185px;
    left: -88px;
    bottom: -26px;
  }
  .sm3-floral-petal {
    width: 44px !important;
  }
  .sm3-section-header::after {
    width: 76px;
    height: 86px;
    top: -10px;
    opacity: 0.72;
  }
}

@media (max-width: 680px) {
  .sm3-brand-divider {
    height: 28px;
  }
  .sm3-hub-nav {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
  }
}

/* ==========================================================================
   EXECUTIVE PRECISION POLISH — CENTERED SUPERPOWER PILLS, FULL-APP SHIMMERING
   SOUTH SEA MOTHER-OF-PEARL PILLS & SECTIONS, PURE 24K GOLD & INNER CONTRAST
   ========================================================================== */

/* 1. Rich 3D South Sea Mother-of-Pearl Cabochon Bevel on ALL Active Pills */
.sm3-pearl-shimmer,
.sm3-pill-btn.sm3-pearl-shimmer,
.sm3-prayer-cell.next,
.sm3-hub-chip.active,
.sm3-spatial-card.is-front .sm3-card-index,
.sm3-spatial-card.is-front .sm3-card-footer-center .sm3-card-cta,
.sm3-ft-fab,
.sm3-mode-btn.active,
.sm3-edge-tab.active,
.sm3-desk-btn.active,
.sm3-city-chip-wrap.is-active,
.sm3-fan-bubble.is-active-fan,
.sm3-stopped-badge-btn,
.sm3-tap-counter,
.sm3-ft-act-btn.is-active,
[data-pick-shortcut].is-selected,
.sm3-toast {
  background-color: #FFFFFF !important;
  background-image:
    radial-gradient(ellipse 86% 52% at 50% 18%, #FFFFFF 0%, rgba(255, 255, 255, 0.96) 46%, transparent 78%),
    linear-gradient(
      115deg,
      #F4EEE9 0%,
      #FFFFFF 20%,
      #F7F1EC 36%,
      #FFFFFF 50%,
      #EFF4F7 64%,
      #FFFFFF 80%,
      #F4EEE9 100%
    ) !important;
  background-size: 100% 100%, 250% 100% !important;
  animation: sm3PearlSheen 4.4s ease-in-out infinite !important;
  border: 1px solid rgba(196, 180, 170, 0.92) !important;
  box-shadow:
    inset 0 3px 3px #FFFFFF,
    inset 0 -5px 9px rgba(198, 180, 168, 0.56),
    inset 3px 0 7px rgba(214, 198, 188, 0.36),
    inset -3px 0 7px rgba(214, 198, 188, 0.36),
    0 8px 20px rgba(32, 18, 24, 0.11),
    0 2px 4px rgba(0, 0, 0, 0.05) !important;
  color: #0B0B0B !important;
}

/* 2. Sculpted Shimmering Mother-of-Pearl Hero Sections (Shortcuts Box, Mushaf Sticky Bar, Surah Banner, Living Stepper, Hero Counters) */
.sm3-shortcuts-dock,
.sm3-mushaf-sticky-header,
.sm3-surah-banner,
.sm3-living-stepper,
.sm3-card.mocha,
.sm3-audio-ribbon,
.sm3-pearl-section {
  background-color: #FFFFFF !important;
  background-image:
    radial-gradient(ellipse 92% 58% at 50% 10%, #FFFFFF 0%, rgba(255, 255, 255, 0.96) 52%, transparent 84%),
    linear-gradient(
      118deg,
      #F6F0EC 0%,
      #FFFFFF 22%,
      #FBF6F3 38%,
      #FFFFFF 52%,
      #F1F6F9 68%,
      #FFFFFF 84%,
      #F6F0EC 100%
    ) !important;
  background-size: 100% 100%, 240% 100% !important;
  animation: sm3PearlSheen 5.6s ease-in-out infinite !important;
  border: 1px solid rgba(198, 182, 172, 0.86) !important;
  box-shadow:
    inset 0 3px 4px #FFFFFF,
    inset 0 -6px 12px rgba(202, 185, 174, 0.42),
    inset 3px 0 8px rgba(216, 200, 190, 0.28),
    inset -3px 0 8px rgba(216, 200, 190, 0.28),
    0 12px 30px rgba(28, 16, 22, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04) !important;
  color: #111111 !important;
}

/* Pure 24k Metallic Gold Conic-Gradient on Active Front Card & Click-Flash (Zero Plum/Blush) */
.sm3-spatial-card.is-front::after,
.sm3-gold-active:not(.sm3-ayah-rosette)::after {
  background: conic-gradient(
    from var(--sm3-gold-angle),
    #9E6B10 0deg,
    #DFB042 42deg,
    #FFF5BF 78deg,
    #FFFFFF 92deg,
    #E2B448 118deg,
    #8C5C0A 185deg,
    #C99226 232deg,
    #F3D27A 272deg,
    #FFF2B2 304deg,
    #D6A12E 334deg,
    #9E6B10 360deg
  ) !important;
}

.sm3-gold-active:not(.sm3-ayah-rosette) {
  box-shadow:
    0 0 0 1px rgba(242, 209, 120, 0.72),
    0 0 20px rgba(212, 157, 46, 0.28) !important;
}

.sm3-ayah-rosette.sm3-gold-active {
  box-shadow:
    0 0 0 2px #E5B952,
    0 0 0 4px rgba(242, 209, 120, 0.45),
    0 0 16px rgba(212, 157, 46, 0.48) !important;
}

/* 3. Side-by-Side Single-Row Desktop Hero + Single-Row Shortcuts + Full Carousel Above the Fold */
.sm3-home-stage {
  max-width: 1420px;
  padding: 6px 24px 20px !important;
}

@media (min-width: 1120px) {
  .sm3-home-hero {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 18px !important;
  }

  .sm3-home-title {
    font-size: clamp(30px, 3.05vw, 44px) !important;
    white-space: nowrap;
    margin-bottom: 4px !important;
  }

  .sm3-shortcuts-dock {
    min-width: 0 !important;
    width: auto !important;
    max-width: 590px;
    flex-shrink: 0;
    padding: 8px 14px 10px !important;
  }

  .sm3-shortcuts-list {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .sm3-shortcut-go {
    font-size: 11.8px !important;
    padding: 4px 8px 4px 10px !important;
    white-space: nowrap;
  }
}

.sm3-spatial-viewport {
  height: 505px !important;
}

.sm3-spatial-hud {
  bottom: 8px !important;
}

/* 4. Centered 'SUPERPOWER' Top Pills on All Rotating 3D Cards & Grid Cards + Precision Orchid Framing */
.sm3-card-top,
.sm3-spatial-card .sm3-card-top,
.sm3-spatial-card.is-front .sm3-card-top,
.sm3-deck-card .sm3-card-top {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}

.sm3-card-desc {
  color: #262626 !important;
}

.sm3-card-orchid-sprig {
  top: -56px !important;
  right: -34px !important;
  width: 108px !important;
  transform: scale(0.9) rotate(20deg) !important;
}

.sm3-spatial-card.is-front .sm3-card-orchid-sprig {
  opacity: 1;
  transform: scale(1) rotate(24deg) !important;
}

.sm3-card-orchid-stem {
  bottom: -20px !important;
  left: -76px !important;
  width: 176px !important;
  transform: scaleX(-1) scaleY(-1) rotate(6deg) scale(0.92) !important;
}

.sm3-spatial-card.is-front .sm3-card-orchid-stem {
  opacity: 1;
  transform: scaleX(-1) scaleY(-1) rotate(8deg) scale(1) !important;
}

.sm3-floral-left-bloom {
  left: -52px !important;
  bottom: 58px !important;
  width: 215px !important;
}

/* 5. Pure Brilliant White Mushaf, Under-Desk Studio, Ayah Bubble Fan, Modals & Inner Cards */
.sm3-studio-modes,
.sm3-mode-bar,
.sm3-subnav-bar,
.sm3-ayah-block,
.sm3-mushaf-tip-bar {
  background: #FFFFFF !important;
  border-color: rgba(17, 17, 17, 0.08) !important;
}

.sm3-mode-btn:hover:not(.active) {
  background: #FAF9F8 !important;
  border-color: rgba(17, 17, 17, 0.16) !important;
}

.sm3-ayah-block:hover {
  background: #FCFBFA !important;
}

.sm3-ayah-block.is-playing {
  background: rgba(212, 157, 46, 0.08) !important;
  box-shadow: inset 3px 0 0 #C41038 !important;
}

.sm3-ayah-block.is-stopped {
  background: #FAF8F7 !important;
  box-shadow: inset 3px 0 0 #D49D2E !important;
}

.sm3-ayah-word:hover,
span.tj:hover {
  background: rgba(212, 157, 46, 0.14) !important;
}

.sm3-wbw-strip {
  background: #FAF9F8 !important;
  border: 1px dashed rgba(17, 17, 17, 0.14) !important;
}

.sm3-wbw-chip {
  background: #FFFFFF !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
}

.sm3-ayah-tf {
  background: #FAF9F8 !important;
  border-left: 3px solid #C41038 !important;
  color: #1A1A1A !important;
}

.sm3-mushaf-context-strip {
  background: rgba(255, 255, 255, 0.65) !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07) !important;
}

.sm3-mushaf-parchment.is-bottom-lifted,
.sm3-mushaf-desk.desk-open .sm3-mushaf-parchment {
  box-shadow:
    0 2px 0 #ECE8E6,
    0 5px 0 #DFD9D6,
    0 28px 56px rgba(17, 17, 17, 0.12),
    inset 0 0 0 1.5px rgba(212, 157, 46, 0.55) !important;
}

.sm3-corner-curl {
  background: linear-gradient(
    135deg,
    transparent 46%,
    #EAE4E0 48%,
    #FFFFFF 56%,
    #DDD5CF 74%,
    #1F1F1F 100%
  ) !important;
  box-shadow: -5px -5px 14px rgba(17, 17, 17, 0.12) !important;
}

.sm3-corner-curl-label {
  background: linear-gradient(180deg, #C8123A 0%, #8E0828 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(229, 185, 82, 0.7) !important;
}

.sm3-under-desk-card {
  background: #FAF9F8 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  color: #111111 !important;
}

.sm3-under-desk-card h4 {
  color: #111111 !important;
}

/* Ayah {1:1} 4-Bubble Fan & Audio Controls */
.sm3-bubble-fan {
  background: #FFFFFF !important;
  border: 1px solid rgba(196, 180, 170, 0.85) !important;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12) !important;
}

.sm3-fan-bubble {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.11) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sm3-fan-bubble:hover {
  background: #FAF8F7 !important;
  border-color: rgba(196, 16, 56, 0.45) !important;
}

.sm3-fan-bubble.is-stop,
.sm3-ayah-stop-pill,
#arStopPrimaryBtn,
.sm3-desk-btn.is-stop-danger {
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #9E0A2C !important;
  box-shadow: 0 4px 12px rgba(184, 14, 48, 0.24) !important;
}

.sm3-audio-range {
  background: #FFFFFF !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
  color: #111111 !important;
}

.sm3-audio-range input {
  background: #FAF8F7 !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
}

/* Salah Cards, Sunnah Checkable Cards, Plus Bars, Modals & Ask Companion */
.sm3-salah-card,
.sm3-plus-bar,
.sm3-sunnah-plus-card,
.sm3-bm-chip,
.sm3-city-chip-wrap {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035) !important;
}

.sm3-salah-subdetails,
.sm3-wird-inline-search,
.sm3-split-pane,
.sm3-ask-thread,
.sm3-ask-source-card {
  background: #FAF9F8 !important;
  color: #111111 !important;
  border-color: rgba(17, 17, 17, 0.09) !important;
}

.sm3-salah-step,
.sm3-salah-title,
.sm3-salah-dhikr,
.sm3-salah-subdetails > summary,
.sm3-rakat-table th {
  color: #111111 !important;
}

.sm3-sunnah-plus-card.is-done,
.sm3-action-check-row.is-checked {
  background-color: #FFFFFF !important;
  background-image:
    linear-gradient(115deg, #F6F0EC 0%, #FFFFFF 28%, #F2F6F9 62%, #FFFFFF 100%) !important;
  border-color: rgba(196, 180, 170, 0.9) !important;
  box-shadow:
    inset 0 2px 3px #FFFFFF,
    inset 0 -3px 6px rgba(202, 185, 174, 0.36),
    0 4px 12px rgba(17, 17, 17, 0.06) !important;
}

.sm3-sunnah-check-btn {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(17, 17, 17, 0.24) !important;
}

.sm3-sunnah-check-btn.is-checked {
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%) !important;
  border-color: #9E0A2C !important;
  color: #FFFFFF !important;
}

.sm3-plus-icon {
  background: #FAF8F7 !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10);
}

.sm3-plus-bar[open] > summary .sm3-plus-icon,
.sm3-sunnah-details[open] > summary .sm3-plus-icon {
  background: #FFF8F9 !important;
  color: #BD122F !important;
  border: 1.5px solid rgba(189, 18, 47, 0.42) !important;
}

.sm3-bm-chip-del:hover,
.sm3-city-chip-del:hover {
  background: rgba(196, 16, 56, 0.10) !important;
  color: #C41038 !important;
}

.sm3-progress-bar {
  background: rgba(17, 17, 17, 0.08) !important;
}

.sm3-progress-fill {
  background: linear-gradient(90deg, #C99226, #E61938) !important;
}

.sm3-modal-backdrop {
  background: rgba(17, 17, 17, 0.42) !important;
}

.sm3-modal-sheet {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.18) !important;
}

.sm3-ask-bubble.is-user {
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%) !important;
  color: #FFFFFF !important;
}

.sm3-ask-bubble.is-assistant {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

.sm3-section-header::after {
  top: -24px !important;
  right: 355px !important;
  width: 80px !important;
  height: 92px !important;
  opacity: 0.9 !important;
}

@media (max-width: 1120px) {
  .sm3-section-header::after {
    display: none !important;
  }
}

/* 6. Mobile Header Fit & Clean Wrapped Prayer Pills (Zero Clipped Icons on 390px) */
@media (max-width: 680px) {
  .sm3-header-top {
    padding: 8px 10px 6px !important;
  }
  .sm3-prayer-divider {
    display: none !important;
  }
  .sm3-header-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 5px !important;
  }
  .sm3-header-actions .sm3-pill-btn {
    padding: 5px 7px !important;
    font-size: 10.5px !important;
    gap: 3px !important;
  }
  .sm3-header-actions .sm3-pill-btn.primary.sm3-quran-cta-btn {
    padding: 5px 9px !important;
  }
  .sm3-gear-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .sm3-initials-btn {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    font-size: 11px !important;
  }
  .sm3-card-orchid-sprig {
    width: 110px !important;
    top: -36px !important;
    right: -28px !important;
  }
  .sm3-card-orchid-stem {
    width: 145px !important;
    left: -46px !important;
    bottom: -18px !important;
  }
}


/* ==========================================================================
   V2 ROUND 1 MASTER OVERRIDES & ARCHITECTURAL UPGRADES
   - Overscroll Guard (Zero Accidental Browser History Swipe on Carousel)
   - Live Unidirectional 24k Gold Shimmer & True Specular Mother-of-Pearl Sheen
   - Full-Width Real-Time Sky-Timeline Prayer Bar (Matching fb1 Reference Art)
   - Uniform Fixed `←` Back Arrow + 8-Bloom Round Bouquet Initials Wreath
   - Compact Porcelain `SHORTCUTS` Box + Overlapping Silk Petal + `+N More` Popover
   - Centered 3D & Botanical Grid Cards + `Pick this flower` / `Pick me` Flight
   - Centered Modal Headers + Pinned Borderless Golden `✕`
   - Bilingual RTL/LTR Tasbih Picker, Bidi Input, Red `+` City Search & Info Tooltip
   ========================================================================== */

html,
body {
  overscroll-behavior-x: none;
}

/* 1. Unidirectional Live 24k Gold Shimmer (`SUPER`, `superpower.`, and Modal `✕`) */
@keyframes sm3V2GoldSweep {
  0% { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}

.sm3-gold-text,
.sm3-gold-italic,
.sm3-gold-close-x {
  background: linear-gradient(
    112deg,
    #8A5A0A 0%,
    #C68E20 18%,
    #E6BC53 34%,
    #FFFDF2 47%,
    #FFFFFF 50%,
    #FFE588 54%,
    #CA9122 70%,
    #8A5A0A 86%,
    #C68E20 100%
  ) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: sm3V2GoldSweep 3.4s linear infinite !important;
  filter: drop-shadow(0 0.7px 0.6px rgba(115, 72, 8, 0.22)) !important;
}

/* 2. Pure Brilliant White & Cool Sterling-Silver Specular Shimmer (Zero Warm/Orange/Reddish Hues — fb15 15.6, fb19 19.4) */
@keyframes sm3V2PearlSweep {
  0% { background-position: 220% 50%, 0% 0%; }
  100% { background-position: -30% 50%, 0% 0%; }
}

.sm3-pearl-shimmer,
.sm3-pill-btn.sm3-pearl-shimmer,
.sm3-prayer-cell.is-current,
.sm3-hub-chip.active,
.sm3-spatial-card.is-front .sm3-card-index,
.sm3-ft-fab,
.sm3-mode-btn.active,
.sm3-edge-tab.active,
.sm3-desk-btn.active,
.sm3-city-chip-wrap.is-active,
.sm3-fan-bubble.is-active-fan,
.sm3-stopped-badge-btn,
.sm3-tap-counter,
.sm3-ft-act-btn.is-active,
[data-pick-shortcut].is-selected,
.sm3-toast {
  background-color: #FFFFFF !important;
  background-image:
    linear-gradient(
      114deg,
      rgba(255, 255, 255, 0) 24%,
      rgba(210, 222, 238, 0.55) 40%,
      #FFFFFF 50%,
      rgba(214, 225, 240, 0.58) 60%,
      rgba(255, 255, 255, 0) 76%
    ),
    linear-gradient(
      172deg,
      #FFFFFF 0%,
      #F4F7FB 45%,
      #FFFFFF 72%,
      #EBF0F7 100%
    ) !important;
  background-size: 235% 100%, 100% 100% !important;
  animation: sm3V2PearlSweep 3.1s linear infinite !important;
  border: 1.25px solid rgba(182, 196, 216, 0.96) !important;
  box-shadow:
    inset 0 2.5px 2px #FFFFFF,
    inset 0 -3.5px 7px rgba(184, 198, 218, 0.46),
    0 6px 16px rgba(15, 23, 42, 0.09),
    0 1px 3px rgba(15, 23, 42, 0.05) !important;
  color: #0B0B0B !important;
}

.sm3-mushaf-sticky-header,
.sm3-surah-banner,
.sm3-living-stepper,
.sm3-card.mocha,
.sm3-audio-ribbon,
.sm3-pearl-section {
  background-color: #FFFFFF !important;
  background-image:
    linear-gradient(
      114deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(214, 225, 240, 0.48) 43%,
      #FFFFFF 50%,
      rgba(214, 225, 240, 0.48) 57%,
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(
      172deg,
      #FFFFFF 0%,
      #F6F9FC 48%,
      #FFFFFF 76%,
      #EEF3F9 100%
    ) !important;
  background-size: 245% 100%, 100% 100% !important;
  animation: sm3V2PearlSweep 4.2s linear infinite !important;
  border: 1px solid rgba(190, 203, 220, 0.9) !important;
  box-shadow:
    inset 0 3px 4px #FFFFFF,
    inset 0 -4px 10px rgba(188, 202, 220, 0.34),
    0 12px 28px rgba(15, 23, 42, 0.065) !important;
  color: #111111 !important;
}

/* 3. Centered Modal Header + Sticky Borderless Golden `✕` Close Button */
.sm3-modal-hdr-centered {
  position: relative;
  text-align: center;
  padding: 2px 44px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-modal-title-centered {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: #0F0F0F;
  line-height: 1.18;
}

.sm3-modal-sub-centered {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--mocha-soft);
}

.sm3-gold-close-x {
  position: absolute;
  top: -2px;
  right: 0;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 12;
  transition: transform 0.16s ease;
}

.sm3-gold-close-x:hover {
  transform: scale(1.14);
}

/* 4. Real-Time Astronomical `clip-path` Sky-Timeline Prayer Bar (fb17 17.5-17.6, fb19 19.3-19.4) */
.sm3-prayer-ribbon {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3px 20px 5px !important;
  background: transparent !important;
  cursor: default !important;
}

.sm3-prayer-stadium {
  --sky-fill-px: 380px;
  --timeline-end-px: 1020px;
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(182, 196, 216, 0.65);
  /* Pure #FFFFFF unreached prayer track on the left; starry night bay begins strictly at --timeline-end-px (.sm3-prayer-divider)! */
  background: #FFFFFF;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 5px 16px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.16s ease;
}

.sm3-prayer-stadium:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 8px 22px rgba(15, 23, 42, 0.13);
}

/* Fixed-coordinate astronomical sky canvas across `0 .. --timeline-end-px`, revealed via `clip-path` up to `--sky-fill-px`! */
.sm3-sky-elapsed-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--timeline-end-px, calc(100% - 265px));
  max-width: 100%;
  background: linear-gradient(
    90deg,
    #080F24 0%,
    #111E42 13%,
    #864359 22%,
    #E67A52 28%,
    #F4BE62 34%,
    #3A8FD9 48%,
    #54A4E6 61%,
    #F2A64B 69%,
    #DA544B 74%,
    #4E2958 80%,
    #172042 88%,
    #080D1F 100%
  );
  clip-path: inset(0 calc(100% - var(--sky-fill-px, 360px)) 0 0);
  pointer-events: none;
  z-index: 1;
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pinpoint starfield on the permanent night-sky right bay (strictly right of .sm3-prayer-divider) */
.sm3-sky-night-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--timeline-end-px, calc(100% - 265px));
  right: 0;
  pointer-events: none;
  z-index: 1;
  background-color: #0B1228;
  background-image:
    radial-gradient(1.3px 1.3px at 26px 11px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.1px 1.1px at 74px 30px, rgba(255, 244, 204, 0.8), transparent),
    radial-gradient(1.3px 1.3px at 132px 14px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 196px 33px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.4px 1.4px at 256px 12px, rgba(255, 236, 179, 0.88), transparent),
    linear-gradient(90deg, #162244 0%, #0D152E 38%, #070C1D 100%);
}

.sm3-prayer-stadium .sm3-prayer-cells {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.sm3-prayer-stadium .sm3-prayer-cell {
  padding: 5px 10px !important;
  border-radius: 999px;
  font-size: 11.5px !important;
  white-space: nowrap;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

/* Sky-Over-Pill Optical Glass: Elapsed pills let the real sky wash visibly through them with crisp legibility! */
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dark-sky {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  text-shadow: 0 1px 2.5px rgba(5, 10, 24, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dark-sky strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dark-sky span {
  color: #FFFFFF !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  text-shadow: 0 1px 2.5px rgba(56, 22, 18, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky span {
  color: #FFFFFF !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky {
  background: rgba(255, 255, 255, 0.20) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  text-shadow: 0 1px 2.5px rgba(10, 36, 68, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky span {
  color: #FFFFFF !important;
}

/* Active Current Prayer Pill: Pure Brilliant White-Silver Shimmer (Zero Orange/Yellow Border!) */
.sm3-prayer-stadium .sm3-prayer-cell.is-current {
  padding: 6px 13px !important;
  font-weight: 800 !important;
  border: 1.5px solid rgba(196, 210, 228, 0.98) !important;
  box-shadow:
    inset 0 2.5px 2px #FFFFFF,
    inset 0 -3px 6px rgba(182, 198, 220, 0.48),
    0 4px 14px rgba(8, 15, 32, 0.22) !important;
}

/* Unreached Upcoming Pills: Pure `#FFFFFF` Until the Sky Reaches Them! */
.sm3-prayer-stadium .sm3-prayer-cell.is-upcoming {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 24, 39, 0.10) !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06) !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-upcoming strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-upcoming span {
  color: #111111 !important;
}

.sm3-prayer-stadium .sm3-prayer-divider {
  position: relative;
  z-index: 2;
  margin-left: auto !important;
  margin-right: 4px !important;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.34) !important;
  flex-shrink: 0;
}

.sm3-prayer-stadium .sm3-prayer-meta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

/* Two Distinct Pearl-Bordered Meta Pills Inside the Starry-Night Right Bay (fb17 17.6, fb19 19.3) */
.sm3-prayer-stadium .sm3-prayer-city-btn,
.sm3-prayer-stadium .sm3-prayer-qibla-badge,
.sm3-prayer-stadium .sm3-meta-pearl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px !important;
  background: rgba(14, 22, 46, 0.78) !important;
  color: #FFFFFF !important;
  border: 1.2px solid rgba(232, 240, 252, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.28) !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
}

.sm3-prayer-stadium .sm3-prayer-city-btn strong,
.sm3-prayer-stadium .sm3-prayer-qibla-badge strong {
  color: #FFFFFF !important;
}

/* 5. Uniform Fixed `←` Back Arrow & Aligned Row 3 Superpowers Navigation */
.sm3-hub-nav {
  max-width: 1440px;
  margin: 0 auto;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  padding: 5px 20px 9px !important;
}

.sm3-nav-back-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.09);
  background: #FFFFFF;
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.sm3-nav-back-arrow:hover:not(.is-disabled) {
  transform: translateX(-1px);
  border-color: rgba(17, 17, 17, 0.24);
}

.sm3-nav-back-arrow.is-disabled {
  opacity: 0.34;
  cursor: default;
}

/* 6. 8-Bloom Round Bouquet Wreath on Header Initials & Personal Journey Hero */
.sm3-initials-btn {
  position: relative !important;
  overflow: visible !important;
  display: inline-grid !important;
  place-items: center !important;
}

.sm3-initials-text {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.sm3-bouquet-wreath-svg.is-header {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
  z-index: 3;
}

.sm3-initials-hero-wrap {
  display: flex;
  justify-content: center;
}

.sm3-initials-hero {
  position: relative !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  overflow: visible !important;
}

.sm3-bouquet-wreath-svg.is-hero {
  position: absolute;
  inset: -9px;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  pointer-events: none;
  z-index: 3;
}

@keyframes sm3BloomArrivalPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(212, 157, 46, 0.38), 0 0 18px rgba(212, 157, 46, 0.55); }
  100% { transform: scale(1); }
}

.sm3-initials-btn.is-bloom-arrived {
  animation: sm3BloomArrivalPulse 0.68s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.sm3-flying-bloom {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(45, 20, 10, 0.22));
  will-change: transform, opacity;
}

/* 7. Compact Porcelain `SHORTCUTS` Box + Overlapping Silk Petal + `+N More` Popover */
.sm3-shortcuts-dock {
  position: relative !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  animation: none !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.05) !important;
  padding: 8px 12px 9px !important;
  min-width: 0 !important;
  max-width: 415px !important;
  width: auto !important;
  overflow: visible !important;
}

.sm3-shortcuts-petal {
  position: absolute;
  top: -15px;
  left: -16px;
  width: 36px;
  height: auto;
  pointer-events: none;
  transform: rotate(-18deg);
  filter: drop-shadow(0 4px 8px rgba(45, 20, 10, 0.12));
  z-index: 4;
}

.sm3-shortcuts-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
  padding-left: 10px;
}

.sm3-shortcuts-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  color: #333333 !important;
}

.sm3-shortcuts-add-btn {
  padding: 3px 10px !important;
  font-size: 11px !important;
}

.sm3-shortcuts-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 5px !important;
}

.sm3-shortcut-item {
  position: relative;
}

.sm3-shortcut-go {
  font-size: 11.2px !important;
  padding: 4px 7px 4px 9px !important;
}

.sm3-shortcut-remove {
  font-size: 12px;
  padding: 2px 6px 2px 2px;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.sm3-shortcut-item:hover .sm3-shortcut-remove {
  opacity: 1;
}

.sm3-shortcuts-more-btn {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FAF8F7;
  color: #111111;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.sm3-shortcuts-more-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
  z-index: 60;
}

/* 8. Centered 3D Carousel Cards + Swapped Top-Right Stem & Bottom `Pick this flower` CTA */
.sm3-spatial-viewport {
  overscroll-behavior: none;
  touch-action: pan-y;
  cursor: grab;
}

.sm3-spatial-viewport.is-dragging {
  cursor: grabbing;
}

.sm3-spatial-card {
  width: 326px !important;
  height: 356px !important;
  left: -163px !important;
  top: -178px !important;
  padding: 22px 22px 26px !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}

.sm3-spatial-card .sm3-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  flex: 1;
}

.sm3-spatial-card .sm3-card-title,
.sm3-deck-card .sm3-card-title {
  text-align: center !important;
  margin: 8px 0 8px !important;
}

.sm3-spatial-card .sm3-card-desc,
.sm3-deck-card .sm3-card-desc {
  text-align: center !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 auto !important;
}

/* Swapped Botanical #1: Budded Orchid Stem now graces Top-Right of Active Card (fb08 8.3) */
.sm3-spatial-card .sm3-card-orchid-stem {
  top: -46px !important;
  right: -72px !important;
  bottom: auto !important;
  left: auto !important;
  width: 172px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: rotate(16deg) scale(0.9) !important;
}

.sm3-spatial-card.is-front .sm3-card-orchid-stem {
  opacity: 1 !important;
  transform: rotate(12deg) scale(1) !important;
}

/* Swapped Botanical #2: Interactive Spotted Orchid Flower CTA at Bottom ("Pick this flower") */
.sm3-card-flower-cta {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 42;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm3-spatial-card.is-front .sm3-card-flower-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.sm3-spatial-card.is-front .sm3-card-flower-cta:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
}

.sm3-card-flower-cta .sm3-card-orchid-sprig {
  position: static !important;
  width: 68px !important;
  height: auto !important;
  opacity: 1 !important;
  transform: rotate(-8deg) !important;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(45, 20, 10, 0.18));
}

.sm3-pick-flower-label {
  background: rgba(255, 255, 255, 0.96);
  color: #8A5A0A;
  border: 1px solid rgba(212, 157, 46, 0.62);
  border-radius: 999px;
  padding: 3px 11px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
}

/* 9. Botanical Grid View: Header Clearance + Intertwining Asymmetric Florals + `Pick me` */
.sm3-home-stage.is-grid-mode {
  padding-top: 16px !important;
}

.sm3-grid-topbar {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 18px;
}

.sm3-spatial-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 18px !important;
  padding-top: 8px;
  padding-bottom: 24px;
}

@media (max-width: 1180px) {
  .sm3-spatial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

.sm3-deck-card {
  position: relative !important;
  overflow: visible !important;
  padding: 24px 18px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 258px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm3-deck-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 157, 46, 0.72) !important;
}

.sm3-deck-card-body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sm3-grid-floral-deco {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(45, 20, 10, 0.12));
}

.sm3-grid-floral-deco.pos-tr {
  top: -22px;
  right: -18px;
  width: 88px;
  transform: rotate(14deg);
}

.sm3-grid-floral-deco.pos-tl {
  top: -18px;
  left: -14px;
  width: 54px;
  transform: rotate(-22deg);
}

.sm3-grid-floral-deco.pos-tl-flip {
  top: -24px;
  left: -20px;
  width: 92px;
  transform: scaleX(-1) rotate(12deg);
}

.sm3-grid-pick-btn {
  position: absolute;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 6px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

.sm3-grid-pick-btn.pick-bl { left: 12px; }
.sm3-grid-pick-btn.pick-br { right: 12px; flex-direction: row-reverse; }
.sm3-grid-pick-btn.pick-bc { left: 50%; transform: translateX(-50%); }

.sm3-grid-pick-btn:hover {
  transform: translateY(-2px) scale(1.05);
}
.sm3-grid-pick-btn.pick-bc:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.05);
}

.sm3-grid-pick-img {
  width: 48px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(45, 20, 10, 0.16));
}

/* 10. Custom Bilingual RTL/LTR Tasbih Picker (Wraps cleanly onto 2 lines!) */
.sm3-bilingual-picker {
  position: relative;
  width: 100%;
}

.sm3-bilingual-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  cursor: pointer;
  text-align: left;
  min-height: 42px;
}

.sm3-bp-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.sm3-bp-tl {
  font-size: 12.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.sm3-bp-en {
  font-size: 10.8px;
  color: var(--mocha-soft);
  line-height: 1.28;
  margin-top: 1px;
  white-space: normal;
}

.sm3-bp-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  max-width: 48%;
}

.sm3-bp-ar {
  font-family: var(--font-arabic);
  font-size: 16.5px;
  color: #111111;
  line-height: 1.45;
  text-align: right;
  white-space: normal;
}

.sm3-bp-caret {
  font-size: 11px;
  color: var(--mocha-muted);
}

.sm3-bilingual-popover {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 270px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.16);
  z-index: 95;
}

.sm3-bp-group-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mocha-muted);
  padding: 6px 8px 3px;
}

.sm3-bp-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #111111;
  cursor: pointer;
  text-align: left;
}

.sm3-bp-option:hover,
.sm3-bp-option.is-selected {
  background: #FAF6F3;
}

.sm3-bp-option.is-selected {
  box-shadow: inset 2.5px 0 0 #C41038;
}

.sm3-bp-opt-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.sm3-bp-opt-tl {
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  line-height: 1.32;
  white-space: normal;
}

.sm3-bp-opt-en {
  font-size: 10.5px;
  color: var(--mocha-soft);
  line-height: 1.28;
  white-space: normal;
}

.sm3-bp-opt-ar {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: #111111;
  line-height: 1.45;
  text-align: right;
  max-width: 48%;
  white-space: normal;
}

.sm3-bidi-input {
  unicode-bidi: plaintext;
}

.sm3-bidi-input::placeholder {
  direction: ltr;
  text-align: left;
}

/* 11. Red Circular `+` Search Prefix, Settings Inline Drawers, Bookmarks & Ask Styles */
.sm3-plus-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sm3-red-plus-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #E01638 0%, #9E0826 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(184, 14, 48, 0.25);
}

.sm3-plus-search-wrap .sm3-red-plus-circle {
  position: absolute;
  left: 9px;
  pointer-events: none;
}

.sm3-plus-search-input {
  width: 100%;
  padding-left: 40px !important;
}

.sm3-red-plus-circle.is-btn {
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  font-size: 16px;
  transition: transform 0.15s ease;
}

.sm3-red-plus-circle.is-btn:hover {
  transform: scale(1.08);
}

/* Settings Layer Rows & Active Edition Chips */
.sm3-layer-group {
  margin-bottom: 10px;
}

.sm3-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sm3-layer-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-layer-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.sm3-drawer-arrow {
  font-size: 12px;
  color: #111111;
  font-weight: 800;
}

.sm3-active-layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 22px;
  margin-bottom: 4px;
}

.sm3-mini-ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FAF8F7;
  border: 1px solid rgba(17, 17, 17, 0.10);
  font-size: 11px;
  color: #111111;
}

.sm3-mini-ed-chip button {
  border: none;
  background: none;
  color: #BD122F;
  font-weight: 800;
  font-size: 12px;
  padding: 0 2px;
  cursor: pointer;
}

.sm3-inline-layer-drawer {
  margin: 6px 0 10px 0;
  padding: 10px;
  border-radius: 12px;
  background: #FAF8F7;
  border: 1px solid rgba(17, 17, 17, 0.10);
}

/* Wird Track Checkbox & Hover/Tap `ⓘ` Tooltip (fb06 6.5-6.6) */
.sm3-wird-track-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #111111;
}

.sm3-wird-track-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sm3-info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  outline: none;
}

.sm3-info-tip-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  cursor: help;
}

.sm3-info-tip-bubble {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 245px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #141414;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.42;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 80;
}

.sm3-info-tip-wrap.is-open .sm3-info-tip-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Jump-target Ayah Highlight & Sticky Clearance (`jumpToAyahRef` — fb03 3.2) */
.sm3-ayah-block {
  scroll-margin-top: 195px;
}

@keyframes sm3JumpTargetGlow {
  0% { background: rgba(212, 157, 46, 0.22); box-shadow: inset 4px 0 0 #D49D2E; }
  100% { background: #FFFFFF; box-shadow: none; }
}

.sm3-ayah-block.is-jump-target {
  animation: sm3JumpTargetGlow 2.6s ease-out forwards;
}

.sm3-search-hl {
  background: rgba(246, 194, 41, 0.36);
  color: #111111;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}

/* Ask Super Muslim Centered Emblem Header & 3-Way Voice/Text Composer */
.sm3-ask-hdr {
  position: relative;
  text-align: center;
  padding: 2px 44px 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-ask-hdr-left {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 5;
}

.sm3-ask-hdr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sm3-ask-emblem {
  display: inline-grid;
  place-items: center;
}

.sm3-ask-sub-role {
  font-size: 12px;
  font-weight: 700;
  color: #333333;
  margin-top: 2px;
}

.sm3-ask-sub-source {
  font-size: 11.5px;
  color: var(--mocha-soft);
}

.sm3-ask-history-popover {
  position: absolute;
  top: 38px;
  left: 0;
  width: min(340px, 92vw);
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.16);
  z-index: 40;
}

.sm3-ask-tts-btn {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FAF8F7;
  color: #111111;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

/* Bookmarks Modal Clean Typography & Continuity Cards */
.sm3-bm-sec-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800 !important;
  color: #0F0F0F;
}

.sm3-bm-continuity-card {
  padding: 13px 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sm3-bm-inactive-card {
  background: #FAF8F7;
  border: 1px solid rgba(17, 17, 17, 0.09);
  color: #111111;
}

.sm3-bm-card-super {
  font-size: 12px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 2px;
}

/* Prayer Cities Strip & Responsive Mobile Refinements (`390px` — fb11 11.5) */
.sm3-prayer-cities-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .sm3-you-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .sm3-ask-hdr {
    padding-top: 34px;
  }
}

@media (max-width: 680px) {
  .sm3-prayer-ribbon {
    padding: 2px 10px 4px !important;
  }
  .sm3-prayer-stadium {
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 18px;
    padding: 5px 8px;
  }
  .sm3-prayer-stadium::-webkit-scrollbar {
    display: none;
  }
  .sm3-hub-nav {
    padding: 4px 10px 8px !important;
    justify-content: flex-start !important;
  }
  .sm3-prayer-cities-strip {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .sm3-prayer-cities-strip::-webkit-scrollbar {
    display: none;
  }
  .sm3-shortcuts-dock {
    width: 100% !important;
    max-width: 100% !important;
  }
  .sm3-shortcuts-list {
    flex-wrap: wrap !important;
  }
  .sm3-spatial-card {
    width: 288px !important;
    height: 346px !important;
    left: -144px !important;
    top: -173px !important;
    padding: 18px 16px 24px !important;
  }
  .sm3-you-grid {
    grid-template-columns: 1fr !important;
  }
}


/* V2 Final Executive Visual Refinements: Tooltip Sync, Assistant Width & Mobile Single-Row Header */
.sm3-wird-track-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sm3-info-i-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #FAF8F7;
  color: #111111;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.sm3-info-tip-pop {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #141414;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.44;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 85;
}

.sm3-info-tip-wrap.is-open .sm3-info-tip-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sm3-ask-bubble.is-assistant {
  max-width: 98% !important;
  width: 100%;
}

@media (max-width: 680px) {
  .sm3-header-actions {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100%;
    justify-content: space-between !important;
  }
  .sm3-header-actions .sm3-pill-btn {
    padding: 4px 6.5px !important;
    font-size: 10px !important;
    gap: 3px !important;
  }
  .sm3-header-actions .sm3-pill-btn.primary.sm3-quran-cta-btn {
    padding: 4px 7.5px !important;
  }
  .sm3-gear-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
  .sm3-initials-btn {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    font-size: 10px !important;
  }
  .sm3-bouquet-wreath-svg.is-header {
    inset: -4px !important;
    width: calc(100% + 8px) !important;
    height: calc(100% + 8px) !important;
  }
  .sm3-floral-left-bloom {
    display: none !important;
  }
  .sm3-spatial-viewport {
    height: 470px !important;
  }
}


/* Ask Super Muslim Free-Tier Quota Pill & Inline Cited-Verse Chips */
.sm3-ask-quota-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.sm3-ask-quota-pill {
  font-size: 10.8px;
  font-weight: 700;
  color: #6B4C12;
  background: rgba(212, 157, 46, 0.12);
  border: 1px solid rgba(212, 157, 46, 0.34);
  padding: 2px 9px;
  border-radius: 999px;
}

.sm3-ask-key-toggle-btn {
  font-size: 10.8px;
  font-weight: 700;
  color: #BD122F;
  background: #FAF8F7;
  border: 1px solid rgba(189, 18, 47, 0.25);
  padding: 2px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.sm3-ask-key-toggle-btn:hover {
  background: rgba(189, 18, 47, 0.07);
}

.sm3-inline-ayah-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(196, 16, 56, 0.08);
  border: 1px solid rgba(196, 16, 56, 0.24);
  color: #9E0826;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-inline-ayah-link:hover {
  background: rgba(196, 16, 56, 0.14);
}

/* ==========================================================================
   V2 ROUND 2 (`fb12`–`fb19`) MASTER VISUAL & ARCHITECTURAL UPGRADES
   1. 3-Zone Header (`1fr auto 1fr`): Brand Left · Living `A[S]K` Center · Pure Icons Right
   2. Active Front 3D Card Pure Brilliant White-Silver Specular Sweep
   3. Homepage `SHORTCUTS` Daily Giving Box + Anchored Stacked Shortcuts Drawer
   4. Porcelain `Tasbih` Bouquet Vessel + Stemmed Miniature Blooms
   5. Ask Super Muslim V2: `A[S]K` + `SUPER MUSLIM` + `ⓘ` & `15/15` + Talk-Bubble Starters
      + Stacked Question Rows + `+` Progressive Paragraph Disclosure + `[S]PEAK` & `⏹ Stop`
   6. Settings Right-Aligned Help Email + Modal & Hub Curated Silk Botanicals
   ========================================================================== */

/* 1. 3-Zone Optical Header Grid & Living Pulsating `A[S]K` Lockup */
.sm3-header-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

.sm3-header-top > .sm3-brand {
  justify-self: start;
}

.sm3-header-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm3-header-top > .sm3-header-actions {
  justify-self: end;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

@keyframes sm3LivingShortLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(212, 157, 46, 0.18));
  }
  50% {
    transform: scale(1.065);
    filter: drop-shadow(0 0 11px rgba(236, 188, 66, 0.52)) drop-shadow(0 0 5px rgba(224, 21, 34, 0.24));
  }
}

.sm3-hdr-ask-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
  padding: 5px 15px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.25px solid rgba(184, 198, 218, 0.85);
  box-shadow:
    inset 0 2px 2px #FFFFFF,
    0 4px 14px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sm3-hdr-ask-lockup:hover {
  transform: translateY(-1px) scale(1.025);
  border-color: rgba(212, 157, 46, 0.72);
  box-shadow:
    inset 0 2px 2px #FFFFFF,
    0 8px 20px rgba(212, 157, 46, 0.18);
}

.sm3-hdr-ask-lockup .sm3-ask-letter {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0F0F0F;
  line-height: 1;
}

.sm3-hdr-ask-lockup .sm3-ask-emblem {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  animation: sm3LivingShortLogoPulse 3.1s ease-in-out infinite;
}

.sm3-hdr-ask-lockup .sm3-ask-emblem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sm3-ask-emblem.is-living svg {
  animation: sm3LivingShortLogoPulse 3.1s ease-in-out infinite;
}

/* Pure Icon-Only Right Cluster: Red Open-Mushaf Pill + Crisp White Circular Icons */
.sm3-quran-icon-pill {
  padding: 7px 14px !important;
  min-height: 36px;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: linear-gradient(180deg, #D6143A 0%, #960827 100%) !important;
  border: 1px solid rgba(245, 196, 56, 0.65) !important;
  box-shadow: 0 5px 14px rgba(180, 14, 46, 0.26) !important;
}

.sm3-quran-icon-pill:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 7px 18px rgba(180, 14, 46, 0.34) !important;
}

.sm3-hdr-circle-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.11);
  background: #FFFFFF;
  color: #111111;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sm3-hdr-circle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 18, 47, 0.38);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.09);
}

/* 2. Active Front 3D Card Pure Brilliant White-Silver Specular Sweep (Preserving 24k Gold `::after` Border!) */
.sm3-spatial-card.is-front {
  background-color: #FFFFFF !important;
  background-image:
    linear-gradient(
      116deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(210, 223, 240, 0.52) 43%,
      #FFFFFF 50%,
      rgba(214, 226, 242, 0.52) 57%,
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(
      170deg,
      #FFFFFF 0%,
      #F5F8FC 48%,
      #FFFFFF 76%,
      #ECF1F8 100%
    ) !important;
  background-size: 245% 100%, 100% 100% !important;
  animation: sm3V2PearlSweep 3.8s linear infinite !important;
}

/* 3. Homepage `SHORTCUTS` & Daily Giving Box + Anchored Stacked Shortcuts Drawer (`fb18` + `fb19`) */
.sm3-shortcuts-dock {
  position: relative !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(182, 196, 216, 0.65) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 10px 14px 10px !important;
  max-width: 440px !important;
  width: 100% !important;
  z-index: 45;
}

.sm3-shortcuts-head.is-centered {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0 6px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.sm3-shortcuts-giving {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.sm3-shortcuts-hadith {
  margin: 0 0 2px;
  font-size: 11.2px;
  line-height: 1.42;
  color: #262626;
  text-align: center;
}

.sm3-shortcuts-cite {
  display: inline-block;
  font-size: 10.2px;
  font-weight: 700;
  color: var(--mocha-muted);
  font-style: normal;
  margin-left: 3px;
}

.sm3-giving-quick-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  background: #F9FAFC;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 11px;
  padding: 4px 8px;
}

.sm3-giving-verb {
  font-size: 11.5px;
  font-weight: 700;
  color: #333333;
}

.sm3-giving-amt-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 8px;
  padding: 2px 6px;
}

.sm3-giving-cur {
  font-size: 11px;
  font-weight: 800;
  color: #555555;
}

.sm3-giving-amt-box input {
  width: 54px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  padding: 1px 0;
}

.sm3-giving-tick-btn {
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid rgba(189, 18, 47, 0.35);
  background: #FFFFFF;
  color: #BD122F;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.sm3-giving-tick-btn:hover {
  background: #BD122F;
  color: #FFFFFF;
}

.sm3-giving-tick-btn.is-saved {
  background: #0D8A56 !important;
  border-color: #0A6E44 !important;
  color: #FFFFFF !important;
  padding: 0 8px;
}

.sm3-giving-link {
  border: none;
  background: transparent;
  color: #1F2937;
  font-size: 11.8px;
  padding: 2px 3px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.sm3-giving-link strong {
  color: #BD122F;
  text-decoration: underline;
  text-decoration-color: rgba(189, 18, 47, 0.35);
  text-underline-offset: 2px;
}

.sm3-giving-link:hover strong {
  text-decoration-color: #BD122F;
}

.sm3-shortcuts-bar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(17, 17, 17, 0.07);
}

.sm3-shortcuts-drawer-toggle {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  background: #F8FAFC;
  color: #111111;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-shortcuts-drawer-toggle:hover,
.sm3-shortcuts-drawer-toggle.is-open {
  background: #FFFFFF;
  border-color: rgba(182, 196, 216, 0.95);
}

.sm3-shortcuts-plus-circle {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 15px !important;
  flex-shrink: 0;
}

.sm3-shortcuts-stacked-drawer {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(182, 196, 216, 0.85) !important;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16) !important;
  z-index: 80 !important;
}

.sm3-shortcuts-stacked-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sm3-shortcut-item.is-stacked {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
}

.sm3-shortcut-item.is-stacked .sm3-shortcut-go {
  flex: 1;
  justify-content: flex-start;
  text-align: left;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.sm3-shortcuts-inline-picker {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(17, 24, 39, 0.12);
}

.sm3-shortcuts-picker-lbl {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mocha-muted);
  margin-bottom: 6px;
}

.sm3-shortcuts-picker-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.sm3-shortcut-inline-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #F9FAFC;
  color: #111111;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-shortcut-inline-opt.is-pinned {
  background: rgba(189, 18, 47, 0.06);
  border-color: rgba(189, 18, 47, 0.32);
}

.sm3-pin-badge {
  font-weight: 800;
  color: #BD122F;
}

/* 4. Genuine Open-Topped Round Porcelain `Tasbih` Vase + Golden Beads Ringing "Tasbih" (`fb1-07`, `fb1-08`) */
.sm3-ft-vessel-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.sm3-ft-bouquet-svg {
  width: 92px;
  height: 50px;
  margin-bottom: -13px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.14));
}

.sm3-ft-fab.sm3-ft-vessel {
  position: relative !important;
  z-index: 2;
  width: 88px !important;
  height: 84px !important;
  padding: 13px 6px 7px !important;
  border-radius: 44% 44% 50% 50% / 36% 36% 58% 58% !important;
  border: 1.25px solid rgba(182, 196, 216, 0.88) !important;
  background: radial-gradient(125% 110% at 32% 24%, #FFFFFF 0%, #F7FAFE 48%, #E6EEF8 82%, #D8E4F3 100%) !important;
  box-shadow:
    inset 0 3px 5px #FFFFFF,
    inset 0 -7px 14px rgba(168, 186, 212, 0.58),
    0 12px 26px rgba(15, 23, 42, 0.17) !important;
  overflow: visible !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sm3-ft-fab.sm3-ft-vessel:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(212, 157, 46, 0.72) !important;
  box-shadow:
    inset 0 3px 5px #FFFFFF,
    inset 0 -7px 14px rgba(168, 186, 212, 0.58),
    0 15px 30px rgba(15, 23, 42, 0.22) !important;
}

/* Open recessed porcelain vase mouth at top where earned flowers drop in (`fb1-07`) */
.sm3-ft-vessel-rim {
  position: absolute;
  top: 4px;
  left: 15px;
  right: 15px;
  height: 8px;
  border-radius: 999px;
  border: 1.2px solid rgba(166, 184, 209, 0.92);
  background: linear-gradient(180deg, #CBD6E7 0%, #E7EEF8 62%, #FFFFFF 100%);
  box-shadow:
    inset 0 2px 3px rgba(15, 23, 42, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.96);
  pointer-events: none;
  z-index: 3;
}

/* Golden Tasbih prayer beads loop framing the word "Tasbih" (`fb1-08`) */
.sm3-ft-tasbih-frame {
  position: relative;
  width: 78px;
  height: 52px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sm3-ft-beads-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.sm3-ft-fab.sm3-ft-vessel .sm3-ft-fab-text {
  position: relative;
  z-index: 2;
  margin-top: -4px;
  align-items: center !important;
  text-align: center;
  pointer-events: none;
  font-size: 11.4px !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em;
  line-height: 1.02;
  color: #111111 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.96);
}

.sm3-ft-fab.sm3-ft-vessel .sm3-ft-fab-sub {
  font-size: 8.8px !important;
  margin-top: 1px;
  color: #9E0826 !important;
}

@media (max-width: 680px) {
  .sm3-ft-fab.sm3-ft-vessel {
    width: 78px !important;
    height: 75px !important;
    padding: 11px 4px 6px !important;
  }
  .sm3-ft-vessel-rim {
    top: 3.5px;
    left: 13px;
    right: 13px;
    height: 7px;
  }
  .sm3-ft-tasbih-frame {
    width: 70px;
    height: 46px;
  }
  .sm3-ft-fab.sm3-ft-vessel .sm3-ft-fab-text {
    font-size: 10.4px !important;
  }
}

.sm3-floating-tasbih.is-bloom-arrived {
  animation: sm3BloomArrivalPulse 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm3-ft-ctx-suggest {
  width: 100%;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid rgba(189, 18, 47, 0.22);
  background: rgba(189, 18, 47, 0.045);
  color: #111111;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.sm3-ft-ctx-suggest strong {
  color: #BD122F;
}

/* 5. Ask Super Muslim V2: Branding, Hover/Click Popovers, Talk Bubbles, Stacked Turns & Voice Controls */
.sm3-ask-brand-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sm3-ask-word-char {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0F0F0F;
  line-height: 1;
}

.sm3-ask-super-line {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-top: 2px;
  color: #111111;
}

.sm3-ask-meta-micro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
}

.sm3-ask-pop-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sm3-ask-info-icon-btn {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #F8FAFC;
  color: #1F2937;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.sm3-ask-bare-quota-pill {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(182, 196, 216, 0.85);
  background: #F8FAFC;
  color: #1F2937;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.sm3-ask-hover-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 268px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #141923;
  color: #FFFFFF;
  font-size: 11.2px;
  font-weight: 500;
  line-height: 1.46;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 90;
}

.sm3-ask-hover-popover.is-pinned {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Pulsating Talk-Bubble Starters (`fb13` 13.5) */
@keyframes sm3TalkBubbleBreathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  }
  50% {
    transform: translateY(-1.5px) scale(1.014);
    box-shadow: 0 6px 15px rgba(189, 18, 47, 0.10);
  }
}

.sm3-ask-starters-wrap {
  padding: 8px 2px 6px;
}

.sm3-ask-starters-compact {
  padding: 4px 2px;
  text-align: center;
}

.sm3-ask-talk-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.sm3-ask-talk-bubble {
  position: relative;
  padding: 7px 13px;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(182, 196, 216, 0.85);
  background: #FFFFFF;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.32;
  cursor: pointer;
  animation: sm3TalkBubbleBreathe 3.8s ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sm3-ask-talk-bubble:hover {
  border-color: rgba(189, 18, 47, 0.45);
  background: #FFF9FA;
}

.sm3-ask-see-all-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  background: transparent;
  color: #374151;
  font-size: 11.2px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-see-all-btn:hover {
  border-color: #BD122F;
  color: #BD122F;
}

/* Stacked Earlier Question Rows & `+` Progressive Paragraph Disclosure (`fb13` 13.6, 13.8) */
.sm3-ask-stacked-row {
  width: 100%;
}

.sm3-ask-stacked-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 196, 216, 0.72);
  background: #FFFFFF;
  color: #111111;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sm3-ask-stacked-btn:hover {
  border-color: rgba(189, 18, 47, 0.42);
}

.sm3-ask-q-num {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(189, 18, 47, 0.09);
  color: #BD122F;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.sm3-ask-q-preview {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm3-ask-q-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F4F6FA;
  color: #BD122F;
  font-weight: 800;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.sm3-ask-fold-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-progressive-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 24, 39, 0.10);
}

.sm3-ask-more-plus-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(189, 18, 47, 0.28);
  background: #FFFFFF;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-more-plus-btn:hover {
  background: rgba(189, 18, 47, 0.05);
  border-color: #BD122F;
}

.sm3-red-plus-circle.is-mini {
  width: 20px;
  height: 20px;
  min-width: 20px;
  font-size: 13px;
}

.sm3-ask-expand-all-link {
  border: none;
  background: transparent;
  color: var(--mocha-soft);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

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

/* Composer: Living `[S]PEAK` + Prominent Stop + Icon-Only Mic + Multi-Line Textarea */
.sm3-ask-composer {
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
}

.sm3-ask-speak-lockup-btn {
  height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.25px solid rgba(182, 196, 216, 0.9);
  background: #FFFFFF;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.sm3-speak-letters {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111111;
}

.sm3-live-voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E01522;
  margin-right: 4px;
  box-shadow: 0 0 8px rgba(224, 21, 34, 0.7);
}

.sm3-ask-stop-voice-btn {
  height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #940829;
  background: linear-gradient(180deg, #D6143A 0%, #940829 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(180, 14, 46, 0.28);
}

@keyframes sm3MicPulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 20, 58, 0.42); }
  50% { box-shadow: 0 0 0 6px rgba(214, 20, 58, 0.08); }
}

.sm3-ask-mic-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #FFFFFF;
  color: #BD122F;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sm3-ask-mic-icon-btn.is-starting {
  opacity: 0.7;
}

.sm3-ask-mic-icon-btn.is-recording {
  background: linear-gradient(180deg, #D6143A 0%, #940829 100%);
  border-color: #940829;
  color: #FFFFFF;
  animation: sm3MicPulseRing 1.5s ease-in-out infinite;
}

.sm3-ask-textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 112px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 13px !important;
  overflow-y: auto;
}

/* 6. Settings Right-Aligned Help Footer, Initials Blooms Trigger & Non-Blocking Botanicals */
.sm3-settings-help-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 12px;
  color: var(--mocha-soft);
  text-align: right;
}

.sm3-settings-help-link {
  color: #BD122F;
  font-weight: 700;
  text-decoration: none;
}

.sm3-settings-help-link:hover {
  text-decoration: underline;
}

.sm3-settings-copy-email-btn {
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #F8FAFC;
  color: #374151;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  cursor: pointer;
}

.sm3-prog-blooms-trigger {
  border: 1px solid rgba(182, 196, 216, 0.72);
  background: #F9FAFC;
  color: #111111;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.8px;
  cursor: pointer;
}

.sm3-has-modal-florals {
  position: relative;
}

.sm3-modal-floral {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.78;
  filter: drop-shadow(0 4px 10px rgba(45, 20, 10, 0.10));
}

.sm3-modal-floral.is-tl {
  top: 8px;
  left: 10px;
  width: 34px;
  transform: rotate(-18deg);
}

.sm3-modal-floral.is-tl-stem {
  top: 4px;
  left: 6px;
  width: 58px;
  transform: rotate(-10deg);
  opacity: 0.72;
}

.sm3-modal-floral.is-tr-soft {
  top: 10px;
  right: 54px;
  width: 28px;
  transform: rotate(22deg);
  opacity: 0.68;
}

.sm3-modal-floral.is-br {
  bottom: 10px;
  right: 12px;
  width: 30px;
  transform: rotate(16deg);
  opacity: 0.58;
}

.sm3-modal-floral.is-bl {
  bottom: 12px;
  left: 12px;
  width: 30px;
  transform: rotate(-14deg);
  opacity: 0.65;
}

.sm3-has-hub-floral {
  position: relative;
}

.sm3-hub-floral-accent {
  position: absolute;
  top: 4px;
  right: 260px;
  width: 38px;
  pointer-events: none;
  opacity: 0.68;
  transform: rotate(14deg);
  filter: drop-shadow(0 4px 8px rgba(45, 20, 10, 0.10));
}

/* Responsive Tablet & Mobile Polish (`768px` & `390px`) */
@media (max-width: 960px) {
  .sm3-hub-floral-accent {
    display: none !important;
  }
  .sm3-ask-hdr {
    padding-top: 34px;
  }
}

/* Ensure open modals always layer cleanly above the floating Tasbih vessel */
.sm3-modal-backdrop {
  z-index: 420 !important;
}
.sm3-floating-tasbih {
  z-index: 190 !important;
}

@media (max-width: 680px) {
  .sm3-header-top {
    grid-template-columns: 1fr auto !important;
    row-gap: 6px !important;
    padding: 8px 10px 6px !important;
  }
  .sm3-header-center {
    justify-self: end;
  }
  .sm3-header-top > .sm3-header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between !important;
    width: 100%;
  }
  .sm3-hdr-ask-lockup {
    padding: 4px 11px;
  }
  .sm3-hdr-ask-lockup .sm3-ask-letter {
    font-size: 16.5px;
  }
  .sm3-hdr-ask-lockup .sm3-ask-emblem {
    width: 23px;
    height: 23px;
  }
  .sm3-hdr-circle-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .sm3-quran-icon-pill {
    padding: 5px 12px !important;
    min-height: 32px;
  }
  .sm3-ask-composer {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }
  .sm3-ask-textarea {
    order: -1;
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .sm3-ask-composer > #askSendBtn {
    margin-left: auto;
  }
  .sm3-shortcuts-picker-list {
    grid-template-columns: 1fr;
  }
  .sm3-modal-floral {
    opacity: 0.45;
  }
}


/* ==========================================================================
   V2A POLISH OVERHAUL (`fb1`–`fb3`):
   - Seamless Feathered Sky-Timeline + Elongated Prayer Pills + Active Prayer Fill
   - Breathing Yellow S Circle Header Trigger (Zero Pill) & Bigger Modal Circle
   - Centered Popovers, Ethereal Floating Talk-Cloud Starters, Hero S/PEAK Circle,
     Tucked Inline Dictate Mic, Right-Aligned `+` / `Show all` & Live Voice Orb
   ========================================================================== */

/* 1. Sky-Timeline Prayer Bar: Elongated Pills, Feathered Sky Edge & Proportional Active Fill (`fb1` 1.1–1.3) */
.sm3-prayer-stadium .sm3-prayer-cells {
  flex: 1 1 auto !important;
  min-width: 0;
  gap: 6px !important;
  padding-right: 18px;
}

.sm3-prayer-stadium .sm3-prayer-cell {
  flex: 1 1 0;
  justify-content: center;
  padding: 6px 10px !important;
  min-width: fit-content;
}

.sm3-sky-elapsed-layer {
  clip-path: none !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 calc(var(--sky-fill-px, 360px) - 10px),
    rgba(0, 0, 0, 0.55) var(--sky-fill-px, 360px),
    transparent calc(var(--sky-fill-px, 360px) + 10px)
  );
  mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 calc(var(--sky-fill-px, 360px) - 10px),
    rgba(0, 0, 0, 0.55) var(--sky-fill-px, 360px),
    transparent calc(var(--sky-fill-px, 360px) + 10px)
  );
  transition: -webkit-mask-image 0.55s ease, mask-image 0.55s ease;
}

/* Active Prayer Pill: Elapsed Left % Shows Live Sky Glass, Unelapsed Right % Stays Pure #FFFFFF (`fb1` 1.2) */
.sm3-prayer-stadium .sm3-prayer-cell.is-current {
  background-color: transparent !important;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.28) calc(var(--cell-progress-pct, 30%) - 4%),
    rgba(255, 255, 255, 0.96) calc(var(--cell-progress-pct, 30%) + 5%),
    #FFFFFF 100%
  ) !important;
  background-size: 100% 100% !important;
  animation: none !important;
  color: #0B0B0B !important;
  border: 1.5px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.72),
    0 4px 14px rgba(8, 15, 32, 0.16) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sm3-prayer-stadium .sm3-prayer-cell.is-current strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-current span {
  color: #0B0B0B !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

/* 2. Header Center ASK: Breathing Yellow-Filled Black-Outlined Circle + Smaller Capital A & K (NO Pill! — `fb1` 1.4) */
@keyframes sm3OrganicBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(212, 157, 46, 0.22));
  }
  50% {
    transform: scale(1.068);
    filter: drop-shadow(0 5px 16px rgba(224, 168, 36, 0.44));
  }
}

.sm3-hdr-ask-lockup {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2px 4px !important;
  gap: 3px !important;
}

.sm3-hdr-ask-lockup:hover {
  transform: translateY(-1px) scale(1.03);
  border: none !important;
  box-shadow: none !important;
}

.sm3-hdr-ask-lockup .sm3-ask-letter {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #0B0B0B !important;
}

.sm3-hdr-ask-lockup .sm3-ask-emblem {
  width: 39px !important;
  height: 39px !important;
  animation: sm3OrganicBreath 3.4s ease-in-out infinite !important;
}

/* 3. Ask Modal Header: Bigger 52px Living Circle + Lower SUPER MUSLIM + Centered Popovers (`fb1` 1.5–1.7) */
.sm3-ask-brand-word.is-hero-circle {
  gap: 4px;
}

.sm3-ask-brand-word.is-hero-circle .sm3-ask-word-char {
  font-size: 20px;
  font-weight: 700;
  color: #0B0B0B;
}

.sm3-ask-brand-word.is-hero-circle .sm3-ask-emblem {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
}

.sm3-ask-brand-word.is-hero-circle .sm3-ask-emblem svg {
  animation: sm3OrganicBreath 3.6s ease-in-out infinite !important;
}

.sm3-ask-super-line.is-lowered {
  margin-top: 8px !important;
  font-size: 14px;
}

.sm3-ask-hover-popover.is-centered {
  text-align: center !important;
  width: 264px;
  line-height: 1.5;
}

/* 4. Ethereal Floating Talk-Cloud Starters (`fb2` 2.8) */
@keyframes sm3CloudMaterialize {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

.sm3-ask-cloud-stage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 6px 8px 4px;
}

.sm3-ask-float-cloud {
  position: relative;
  max-width: 315px;
  padding: 11px 18px;
  border-radius: 26px 26px 26px 8px;
  border: 1px solid rgba(188, 204, 228, 0.65);
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.88) 72%, rgba(235, 242, 252, 0.80) 100%);
  color: #161B26;
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.38;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(24, 38, 68, 0.08),
    inset 0 2px 3px #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation:
    sm3CloudMaterialize 0.72s cubic-bezier(0.22, 1, 0.36, 1) both,
    sm3CloudDrift 4.4s ease-in-out 0.72s infinite;
  animation-delay: var(--cloud-delay, 0s), calc(var(--cloud-delay, 0s) + 0.72s);
  transition: opacity 0.58s ease, transform 0.58s ease, filter 0.58s ease, border-color 0.2s ease;
}

.sm3-ask-float-cloud::before {
  content: '';
  position: absolute;
  left: 12px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(246, 249, 255, 0.95);
  border: 1px solid rgba(188, 204, 228, 0.58);
  pointer-events: none;
}

.sm3-ask-float-cloud::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: -11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(246, 249, 255, 0.88);
  border: 1px solid rgba(188, 204, 228, 0.45);
  pointer-events: none;
}

.sm3-ask-float-cloud:hover {
  border-color: rgba(189, 18, 47, 0.48);
  box-shadow: 0 12px 28px rgba(189, 18, 47, 0.13), inset 0 2px 3px #FFFFFF;
}

.sm3-ask-float-cloud.is-dissolving {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.96) !important;
  filter: blur(5px) !important;
}

.sm3-ask-starter-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(182, 196, 216, 0.85);
  background: #FFFFFF;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sm3-ask-starter-pill:hover {
  border-color: rgba(189, 18, 47, 0.48);
  background: #FFF9FA;
}

/* 5. Clear History Divider & Right-Aligned Minimalist `+` / `Show all` (`fb2` 2.6–2.7) */
.sm3-ask-history-divider {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mocha-muted);
  padding: 2px 4px 0;
}

.sm3-ask-progressive-bar.is-right-minimal {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 24, 39, 0.09);
}

.sm3-ask-plus-only-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  font-size: 16px !important;
}

/* 6. Hero Circular Brand S/PEAK Button & Tucked Inline Dictate Mic (`fb2` 2.5, 2.9) */
.sm3-ask-composer {
  align-items: center !important;
  gap: 10px !important;
}

.sm3-ask-hero-speak-btn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sm3-ask-hero-speak-btn .sm3-hero-speak-svg {
  width: 58px;
  height: 58px;
  display: block;
  animation: sm3OrganicBreath 3.4s ease-in-out infinite;
}

.sm3-ask-hero-speak-btn:hover {
  transform: scale(1.06);
}

.sm3-ask-hero-speak-btn.is-active .sm3-hero-speak-svg {
  filter: drop-shadow(0 0 14px rgba(214, 20, 58, 0.45));
}

.sm3-ask-input-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sm3-ask-input-shell .sm3-ask-textarea {
  width: 100%;
  padding-right: 44px !important;
}

.sm3-ask-mic-inline-btn {
  position: absolute;
  right: 7px;
  bottom: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #556070;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.sm3-ask-mic-inline-btn:hover {
  background: rgba(189, 18, 47, 0.08);
  color: #BD122F;
}

.sm3-ask-mic-inline-btn.is-recording {
  background: linear-gradient(180deg, #D6143A 0%, #940829 100%);
  color: #FFFFFF;
  animation: sm3MicPulseRing 1.5s ease-in-out infinite;
}

/* 7. Serene Live Two-Way Voice Companion Presence Bar (`fb2` 2.4 & `fb3`) */
@keyframes sm3LiveOrbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 166, 232, 0.42); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(79, 166, 232, 0.06); }
}

.sm3-ask-live-voice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 4px 2px 6px;
  border-radius: 16px;
  border: 1px solid rgba(154, 192, 232, 0.55);
  background: linear-gradient(135deg, #F5FAFF 0%, #FFFDF4 100%);
  box-shadow: 0 6px 18px rgba(32, 74, 128, 0.08);
}

.sm3-ask-live-orb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #9BD2FA 42%, #4FA6E8 78%, #2973B8 100%);
  animation: sm3LiveOrbPulse 2.1s ease-in-out infinite;
}

.sm3-ask-live-orb.is-speaking {
  background: radial-gradient(circle at 35% 30%, #FFFDF0 0%, #FFE07D 45%, #D49D2E 85%, #B80F33 100%);
}

.sm3-ask-live-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm3-ask-live-copy strong {
  font-size: 13px;
  color: #111111;
}

.sm3-ask-live-copy span {
  font-size: 11.5px;
  color: var(--mocha-soft);
}

.sm3-ask-live-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .sm3-hdr-ask-lockup .sm3-ask-emblem {
    width: 32px !important;
    height: 32px !important;
  }
  .sm3-ask-input-shell {
    order: -1;
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .sm3-ask-hero-speak-btn,
  .sm3-ask-hero-speak-btn .sm3-hero-speak-svg {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  .sm3-ask-live-voice-bar {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   V2B MASTER ARCHITECTURAL & VISUAL UPGRADE (`fb1a`, `fb1b` & `fb2`)
   1. Natural Atmospheric Sky-Timeline Panorama + Glowing Solar Frontier (`fb1b`)
   2. Enlarged Living `ASK` Circle (`A`, Prominent `S`, `K` ALL INSIDE + Orb-Caliber Pulse)
   3. Compact 3-Row Collapsible `SHORTCUTS` Stack + Daily Hadith & Qur’an Rotation
   4. Single Billowy Ethereal Morphing Cloud + Progressive Stacked Starter Dropdowns
   5. Icon-Only Top-Left `←` Back Arrow + Inline Collapsible `History (N)` Accordion
   6. Single-Line `(S)PEAK` Trigger + Pure Zero-Text Sub-Second Live Voice Stage
   ========================================================================== */

/* 1. Natural Painterly Sky-Timeline Prayer Bar (`fb1a` 1.1 & `fb1b` Parity) */
.sm3-prayer-stadium {
  background-color: #EEF2F8 !important;
  background-image: url('/sm3/assets/sky-mist-clouds.jpg') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  border: 1px solid rgba(154, 174, 204, 0.56) !important;
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.72),
    0 6px 20px rgba(15, 23, 42, 0.11) !important;
}

/* Wide ~126px organic atmospheric dissolve — ZERO abrupt mid-bar cutoff! */
.sm3-sky-elapsed-layer {
  clip-path: none !important;
  width: var(--timeline-end-px, calc(100% - 265px)) !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 max(0px, calc(var(--sky-fill-px, 360px) - 62px)),
    rgba(0, 0, 0, 0.76) max(0px, calc(var(--sky-fill-px, 360px) - 18px)),
    rgba(0, 0, 0, 0.34) calc(var(--sky-fill-px, 360px) + 26px),
    transparent calc(var(--sky-fill-px, 360px) + 72px)
  ) !important;
  mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 max(0px, calc(var(--sky-fill-px, 360px) - 62px)),
    rgba(0, 0, 0, 0.76) max(0px, calc(var(--sky-fill-px, 360px) - 18px)),
    rgba(0, 0, 0, 0.34) calc(var(--sky-fill-px, 360px) + 26px),
    transparent calc(var(--sky-fill-px, 360px) + 72px)
  ) !important;
}

/* Glowing golden solar orb / soft twilight corona right at `--sky-fill-px` (`fb1b`) */
.sm3-sky-sun-orb {
  position: absolute;
  top: 50%;
  left: var(--sky-fill-px, 360px);
  width: 128px;
  height: 68px;
  transform: translate(-54%, -50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at 48% 52%,
    rgba(222, 234, 255, 0.52) 0%,
    rgba(134, 162, 224, 0.24) 38%,
    rgba(134, 162, 224, 0) 74%
  );
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

.sm3-prayer-stadium.is-solar-frontier .sm3-sky-sun-orb {
  background: radial-gradient(
    ellipse at 46% 54%,
    rgba(255, 252, 214, 0.96) 0%,
    rgba(255, 214, 62, 0.84) 22%,
    rgba(252, 168, 44, 0.42) 50%,
    rgba(252, 168, 44, 0) 78%
  );
}

/* Seamless pre-divider twilight-to-starry-midnight blend — ZERO white-to-navy vertical wall! */
.sm3-sky-night-layer {
  left: max(0px, calc(var(--timeline-end-px, calc(100% - 265px)) - 120px)) !important;
  right: 0 !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(1.3px 1.3px at calc(100% - 238px) 12px, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1.1px 1.1px at calc(100% - 190px) 32px, rgba(255, 244, 204, 0.80), transparent),
    radial-gradient(1.3px 1.3px at calc(100% - 134px) 14px, rgba(255, 255, 255, 0.86), transparent),
    radial-gradient(1px 1px at calc(100% - 76px) 34px, rgba(255, 255, 255, 0.76), transparent),
    radial-gradient(1.4px 1.4px at calc(100% - 28px) 13px, rgba(255, 236, 179, 0.90), transparent),
    linear-gradient(
      90deg,
      rgba(16, 26, 56, 0) 0px,
      rgba(18, 30, 64, 0.34) 54px,
      rgba(13, 22, 48, 0.82) 106px,
      #0B132B 136px,
      #070D1F 100%
    ) !important;
}

/* Soft, airy frosted-glass prayer capsules (`fb1b` optical glass feel) */
.sm3-prayer-stadium .sm3-prayer-cells {
  gap: 7px !important;
  padding-right: 14px !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.44) !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55) !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-dawn-sky span,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky strong,
.sm3-prayer-stadium .sm3-prayer-cell.is-elapsed.on-day-sky span {
  color: #121212 !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-current {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.36) max(0%, calc(var(--cell-progress-pct, 34%) - 18%)),
    rgba(255, 255, 255, 0.86) min(100%, calc(var(--cell-progress-pct, 34%) + 18%)),
    rgba(255, 255, 255, 0.90) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, 0.85),
    0 4px 12px rgba(12, 20, 42, 0.14) !important;
}

.sm3-prayer-stadium .sm3-prayer-cell.is-upcoming {
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

/* 2. Enlarged Living `ASK` Circle (`A S K` ALL INSIDE + Unmistakable Orb-Caliber Pulse — `fb1a` 1.2, 1.5 & `fb2` 2.3) */
@keyframes sm3V2bLivingEmblemPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 7px rgba(212, 157, 46, 0.28));
  }
  50% {
    transform: scale(1.115);
    filter: drop-shadow(0 5px 16px rgba(235, 178, 38, 0.56));
  }
}

@keyframes sm3V2bAuraHalo {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.sm3-ask-emblem.is-living-orb-pulse,
.sm3-speak-mini-emblem.is-living-orb-pulse {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  animation: sm3V2bLivingEmblemPulse 2.05s ease-in-out infinite !important;
}

.sm3-ask-emblem.is-living-orb-pulse::after,
.sm3-speak-mini-emblem.is-living-orb-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(232, 178, 38, 0.58);
  box-shadow: 0 0 12px rgba(242, 194, 52, 0.42);
  pointer-events: none;
  animation: sm3V2bAuraHalo 2.05s ease-out infinite;
}

.sm3-hdr-ask-lockup.is-inside-circle {
  padding: 2px !important;
  border-radius: 50% !important;
}

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

.sm3-ask-brand-word.is-inside-v2b .sm3-ask-emblem {
  width: 64px !important;
  height: 64px !important;
}

.sm3-ask-brand-word.is-inside-v2b .sm3-ask-emblem svg {
  animation: none !important;
}

/* 3. Compact 3-Row Collapsible `SHORTCUTS` Stack (`fb1a` 1.3, 1.4 & `fb2` 2.8) */
.sm3-shortcuts-dock {
  padding: 7px 11px 8px !important;
  max-width: 408px !important;
  border-radius: 16px !important;
}

.sm3-shortcuts-head.is-compact-v2b {
  padding: 0 0 4px !important;
  margin-bottom: 5px !important;
}

.sm3-shortcuts-v2b-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sm3-sc-acc-group {
  position: relative;
}

.sm3-sc-acc-row {
  width: 100%;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #FAF8F6;
  color: #161616;
  font-size: 11.6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.sm3-sc-acc-row:hover,
.sm3-sc-acc-row.is-open {
  background: #FFFDF8;
  border-color: rgba(212, 157, 46, 0.48);
}

.sm3-sc-acc-spark {
  color: #C98E1B;
  font-size: 11px;
  flex-shrink: 0;
}

.sm3-sc-acc-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm3-sc-acc-text.is-italic {
  font-style: italic;
  color: #262626;
}

.sm3-shortcuts-bar-foot.is-v2b-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}

.sm3-sc-acc-row.is-shortcuts-btn {
  flex: 1;
}

.sm3-sc-acc-panel {
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(182, 196, 216, 0.55);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.sm3-sc-acc-panel.is-giving-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm3-daily-insp-block {
  padding: 2px 0;
}

.sm3-daily-insp-block + .sm3-daily-insp-block {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(17, 24, 39, 0.10);
}

.sm3-daily-insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.sm3-daily-insp-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8A5A0A;
}

.sm3-daily-insp-cite {
  font-size: 10.2px;
  font-weight: 600;
  color: var(--mocha-soft);
}

.sm3-daily-ref-chip {
  border: 1px solid rgba(189, 18, 47, 0.26);
  background: rgba(189, 18, 47, 0.07);
  color: #9E0826;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-daily-insp-copy {
  margin: 0;
  font-size: 11.6px;
  line-height: 1.46;
  color: #181818;
}

.sm3-shortcuts-stacked-drawer.is-inline-v2b {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-shadow: none !important;
}

/* 4. Single Billowy Ethereal Morphing Cloud + Progressive Stacked Starters (`fb1a` 1.6 & 1.7) */
@keyframes sm3EtherealCloudFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-4px) scale(1.012); }
}

.sm3-ask-cloud-stage.is-single-ethereal {
  min-height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 10px 2px;
}

.sm3-ask-ethereal-cloud {
  position: relative;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: min(390px, 90vw);
  max-width: min(490px, 92vw);
  min-height: 98px;
  padding: 26px 46px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: sm3EtherealCloudFloat 4.6s ease-in-out infinite;
  transition: opacity 0.44s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), filter 0.44s ease;
}

.sm3-ethereal-cloud-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.sm3-ask-ethereal-cloud:hover .sm3-ethereal-cloud-svg {
  transform: scale(1.025);
  filter: drop-shadow(0 6px 16px rgba(189, 18, 47, 0.12));
}

.sm3-ethereal-cloud-text {
  position: relative;
  z-index: 1;
  font-size: 13.4px;
  font-weight: 600;
  line-height: 1.42;
  color: #161E2E;
  text-align: center;
  max-width: 380px;
}

.sm3-ask-ethereal-cloud.is-morphing-out {
  opacity: 0;
  transform: translateY(-7px) scale(0.95);
  filter: blur(6px);
}

.sm3-ask-ethereal-cloud.is-morphing-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Progressive Stacked Dropdown Starter Rows (`fb1a` 1.7) */
.sm3-ask-stacked-starters {
  max-width: 520px;
  margin: 4px auto 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm3-ask-stacked-starter-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(182, 196, 216, 0.78);
  background: #FFFFFF;
  color: #121212;
  font-size: 12.4px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.15s ease;
}

.sm3-ask-stacked-starter-row:hover {
  border-color: rgba(189, 18, 47, 0.48);
  background: #FFF9FA;
  transform: translateX(2px);
}

.sm3-ask-starter-idx {
  font-size: 11px;
  font-weight: 800;
  color: #9E0826;
  min-width: 18px;
}

.sm3-ask-starter-lbl {
  flex: 1;
}

.sm3-ask-starter-go {
  font-size: 12px;
  color: var(--mocha-muted);
}

.sm3-ask-stacked-starters-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.sm3-ask-more-starters-btn {
  width: 100%;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(189, 18, 47, 0.36);
  background: #FAF8F7;
  color: #161616;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-more-starters-btn:hover {
  background: #FFFDF8;
  border-color: rgba(212, 157, 46, 0.65);
}

/* 5. Top-Left Icon-Only `←` Back Arrow & Inline Collapsible `History (N)` (`fb1a` 1.8, 1.9 & `fb2` 2.1) */
.sm3-ask-back-arrow-btn {
  width: 31px;
  height: 31px;
  min-width: 31px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #FFFFFF;
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sm3-ask-back-arrow-btn:hover {
  transform: translateX(-1.5px);
  border-color: rgba(189, 18, 47, 0.45);
}

.sm3-ask-history-inline-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mocha-muted);
  padding: 0 4px 4px;
}

.sm3-ask-hist-acc-item {
  border: 1px solid rgba(182, 196, 216, 0.72);
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sm3-ask-hist-acc-item.is-open {
  border-color: rgba(212, 157, 46, 0.62);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.sm3-ask-hist-acc-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  background: #FAF9F7;
}

.sm3-ask-hist-acc-trigger {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  color: #121212;
}

.sm3-ask-hist-num {
  font-size: 11px;
  font-weight: 800;
  color: #9E0826;
  background: rgba(189, 18, 47, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sm3-ask-hist-title {
  flex: 1;
  min-width: 0;
  font-size: 12.8px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm3-ask-hist-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--mocha-soft);
  flex-shrink: 0;
}

.sm3-ask-hist-caret {
  font-size: 12px;
  font-weight: 800;
  color: #111111;
  flex-shrink: 0;
}

.sm3-ask-hist-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #FFFFFF;
  color: #666666;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.sm3-ask-hist-del-btn:hover {
  color: #BD122F;
  border-color: rgba(189, 18, 47, 0.42);
}

.sm3-ask-hist-acc-body {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
}

/* 6. Single-Line Horizontal `(S)PEAK` Trigger Button (`fb2` 2.6) */
.sm3-ask-speak-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  border: 1.4px solid #161616;
  background: linear-gradient(180deg, #FFFDF0 0%, #FDF4BC 100%);
  color: #0E0E0E;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    inset 0 1.5px 1px #FFFFFF,
    0 4px 12px rgba(212, 157, 46, 0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sm3-ask-speak-line-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    inset 0 1.5px 1px #FFFFFF,
    0 7px 18px rgba(212, 157, 46, 0.34);
}

.sm3-speak-mini-emblem {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sm3-speak-inline-word {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.8px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #0E0E0E;
  line-height: 1;
  white-space: nowrap;
}

/* 7. Pure Zero-Text ChatGPT-Grade Live Voice Stage (`fb2` 2.4, 2.5, 2.7) */
@keyframes sm3CenterVoicePulse {
  0%, 100% {
    transform: scale(calc(1 + var(--voice-amp, 0) * 0.22));
  }
  50% {
    transform: scale(calc(1.11 + var(--voice-amp, 0) * 0.26));
  }
}

@keyframes sm3CenterRingWave {
  0% {
    transform: scale(0.94);
    opacity: 0.68;
  }
  100% {
    transform: scale(1.46);
    opacity: 0;
  }
}

.sm3-ask-pure-voice-stage {
  flex: 1;
  min-height: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 10px;
}

.sm3-ask-voice-center-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.sm3-ask-voice-centerpiece {
  --voice-amp: 0;
  position: relative;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.sm3-ask-voice-centerpiece.is-state-listening,
.sm3-ask-voice-centerpiece.is-state-speaking,
.sm3-ask-voice-centerpiece.is-state-thinking,
.sm3-ask-voice-centerpiece.is-state-starting {
  animation: sm3CenterVoicePulse 1.95s ease-in-out infinite;
}

/* Honest paused state: ZERO fake pulsation when microphone is inactive! */
.sm3-ask-voice-centerpiece.is-state-paused {
  animation: none !important;
  opacity: 0.88;
}

.sm3-voice-aura-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2.5px solid rgba(235, 182, 42, 0.56);
  box-shadow: 0 0 24px rgba(242, 194, 52, 0.34);
  pointer-events: none;
  opacity: 0;
}

.sm3-ask-voice-centerpiece.is-style-orb .sm3-voice-aura-ring {
  border-color: rgba(79, 166, 232, 0.58);
  box-shadow: 0 0 26px rgba(79, 166, 232, 0.38);
}

.sm3-ask-voice-centerpiece.is-state-listening .sm3-voice-aura-ring.is-r1,
.sm3-ask-voice-centerpiece.is-state-speaking .sm3-voice-aura-ring.is-r1,
.sm3-ask-voice-centerpiece.is-state-thinking .sm3-voice-aura-ring.is-r1 {
  animation: sm3CenterRingWave 2.1s ease-out infinite;
}

.sm3-ask-voice-centerpiece.is-state-listening .sm3-voice-aura-ring.is-r2,
.sm3-ask-voice-centerpiece.is-state-speaking .sm3-voice-aura-ring.is-r2 {
  animation: sm3CenterRingWave 2.1s ease-out 1.05s infinite;
}

.sm3-voice-short-logo-core {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 12px 28px rgba(212, 157, 46, 0.34));
}

.sm3-voice-sky-sphere {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #B8E1FF 32%, #52AAF0 68%, #226AB3 100%);
  box-shadow:
    inset 0 6px 16px rgba(255, 255, 255, 0.78),
    0 14px 34px rgba(38, 112, 188, 0.36);
}

.sm3-ask-voice-centerpiece.is-state-speaking .sm3-voice-sky-sphere {
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #CFEAFF 28%, #3B9AE8 64%, #1A5699 100%);
}

.sm3-ask-voice-minimal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.sm3-ask-voice-minimal-state strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #121212;
}

.sm3-ask-voice-minimal-state span {
  font-size: 12px;
  color: var(--mocha-soft);
}

.sm3-ask-voice-stage-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

.sm3-ask-voice-style-switch {
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #FAF9F7;
  color: #374151;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-ask-voice-style-switch:hover {
  border-color: rgba(212, 157, 46, 0.55);
  color: #111111;
}

.sm3-ask-stop-voice-btn.is-stage-end {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12.2px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .sm3-hdr-ask-lockup.is-inside-circle .sm3-ask-emblem {
    width: 42px !important;
    height: 42px !important;
  }
  .sm3-ask-brand-word.is-inside-v2b .sm3-ask-emblem {
    width: 54px !important;
    height: 54px !important;
  }
  .sm3-ask-ethereal-cloud {
    min-width: min(300px, 88vw);
    padding: 22px 30px 24px;
  }
  .sm3-ask-speak-line-btn {
    height: 42px;
    padding: 3px 12px 3px 5px;
  }
  .sm3-speak-mini-emblem {
    width: 32px;
    height: 32px;
  }
  .sm3-speak-inline-word {
    font-size: 12.6px;
  }
}

/* Responsive Sky-Timeline Non-Overlap Guardrail on Tablet (`768px`) & Mobile (`390px`) */
@media (max-width: 1120px) {
  .sm3-prayer-stadium {
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .sm3-prayer-stadium::-webkit-scrollbar {
    display: none;
  }
  .sm3-prayer-stadium .sm3-prayer-cells {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }
  .sm3-prayer-stadium .sm3-prayer-cell {
    flex: 0 0 auto !important;
  }
}

/* ==========================================================================
   V2C MASTER ARCHITECTURAL & VISUAL UPGRADE (`fb01`–`fb09` & `fbColour`)
   1. Unblurred Photorealistic 24-Hour Cloudscape Sky Bar + Dual Date Meta Pill
   2. Organic Asymmetric Home Petals, Sculpted Silk Wreath & Cascading Tasbih Vase
   3. In-App Dual Gregorian + Islamic Calendar Picker & Basis Switcher
   4. Superpower 02 Inline City Heading Dropdown + 7-Column Single-Row Salah Grid
   5. Mushaf 2-Row Centered Non-Jumping Header, Instant Word Meaning Hover/Touch
      Tooltip, Proportional Live-Scaling `Aa` Sliders & 3D Shaded Page Corners
   ========================================================================== */

/* 1. V3 Progressive Real-Time Photorealistic Sky-Timeline Prayer Bar (`V3 fb1` 1.1-1.5) */
.sm3-prayer-stadium.is-photoreal-sky {
  /* Pure #FFFFFF base ensures unelapsed prayer time up to the end of Qiyam stays crisp white! */
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(176, 188, 206, 0.72) !important;
  padding: 5px 8px !important;
  min-height: 44px !important;
  gap: 5px !important;
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.92),
    0 6px 18px rgba(15, 23, 42, 0.10) !important;
}

/* Photorealistic sky spans strictly [0 .. --timeline-end-px] (end of Qiyam) and fills ONLY up to --sky-fill-px! */
.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-elapsed-layer {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: var(--timeline-end-px, calc(100% - 340px)) !important;
  max-width: none !important;
  background-image: url('/sm3/assets/sky-v3-master.jpg?v=v3.1') !important;
  background-size: 100% 100% !important;
  background-position: left center !important;
  clip-path: none !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 max(0px, calc(var(--sky-fill-px, 120px) - 2px)),
    transparent calc(var(--sky-fill-px, 120px) + 2px)
  ) !important;
  mask-image: linear-gradient(
    90deg,
    #000000 0px,
    #000000 max(0px, calc(var(--sky-fill-px, 120px) - 2px)),
    transparent calc(var(--sky-fill-px, 120px) + 2px)
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Right-hand 3-pill meta section (after Qiyam) stays deep starry night 24/7 (V3 fb1 00:48-01:21) */
.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-night-layer {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: var(--timeline-end-px, calc(100% - 340px)) !important;
  right: auto !important;
  width: max(0px, calc(var(--stadium-full-w, 100%) - var(--timeline-end-px, 0px))) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background-color: #070C1D !important;
  background-image:
    radial-gradient(1.3px 1.3px at 28px 11px, rgba(255, 255, 255, 0.90), transparent),
    radial-gradient(1.1px 1.1px at 84px 31px, rgba(255, 244, 204, 0.82), transparent),
    radial-gradient(1.3px 1.3px at 148px 13px, rgba(255, 255, 255, 0.86), transparent),
    radial-gradient(1.1px 1.1px at 218px 33px, rgba(255, 255, 255, 0.78), transparent),
    radial-gradient(1.4px 1.4px at 288px 12px, rgba(255, 236, 179, 0.90), transparent),
    radial-gradient(1.2px 1.2px at 352px 29px, rgba(255, 255, 255, 0.82), transparent),
    linear-gradient(90deg, #0B132B 0%, #080E22 45%, #060A18 100%) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-sun-orb {
  display: none !important;
}

/* Elongated tip-touching prayer pills across the timeline — zero confusing dead gap between prayer windows! (V3 fb1 02:04-02:54) */
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cells {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 1.5px !important;
  padding-right: 2px !important;
  flex-wrap: nowrap !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell {
  flex: 1 1 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 4.5px 9px !important;
  font-size: 11.4px !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

/* Unreached Upcoming Prayer Pills: Super Muslim Mother-of-Pearl Capsules on the Pure White Track (V3 fb1 00:57-01:21) */
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-upcoming {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 54%, #F2ECE3 100%) !important;
  border: 1px solid rgba(198, 184, 174, 0.90) !important;
  color: #111111 !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1.5px 1.5px #FFFFFF,
    inset 0 -2px 4px rgba(210, 196, 186, 0.38),
    0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-upcoming span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-upcoming strong {
  color: #111111 !important;
  text-shadow: none !important;
}

/* Elapsed Dark-Sky Zones (`Fajr`, `Maghrib` dark dusk, `Isha`, `Qiyam`): Optical Crystal + Crisp White Text */
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dark-sky {
  background: rgba(8, 14, 36, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92) !important;
  box-shadow: 0 1px 4px rgba(8, 14, 34, 0.16) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dark-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dark-sky strong {
  color: #FFFFFF !important;
}

/* Elapsed Daylight & Sunrise Zones (`Sunrise`, `Dhuhr`, `Asr`): Airy Daylight Crystal + Crisp Deep Ink */
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dawn-sky,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-day-sky {
  background: rgba(255, 255, 255, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  color: #0B0B0B !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.90) !important;
  box-shadow: 0 1px 4px rgba(8, 14, 34, 0.10) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dawn-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-dawn-sky strong,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-day-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-elapsed.on-day-sky strong {
  color: #0B0B0B !important;
}

/* Active Current Prayer Pill: Praised 24k Gold Rim + Collinear Sky-to-Pearl Live Fill + Dual-Clipped Contrast Text! */
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-current-sky {
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1.65px solid #E5BC4E !important;
  box-shadow:
    0 0 0 1px rgba(229, 188, 78, 0.36),
    0 2px 10px rgba(212, 157, 46, 0.30) !important;
  font-weight: 700 !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dark-sky.is-current-sky {
  background: linear-gradient(
    90deg,
    rgba(10, 18, 44, 0.44) 0%,
    rgba(10, 18, 44, 0.44) max(0%, calc(var(--cell-progress-pct, 35%) - 0.8%)),
    #FAF7F2 min(100%, calc(var(--cell-progress-pct, 35%) + 0.8%)),
    #F2ECE3 100%
  ) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dawn-sky.is-current-sky,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-day-sky.is-current-sky {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.46) 0%,
    rgba(255, 255, 255, 0.46) max(0%, calc(var(--cell-progress-pct, 35%) - 0.8%)),
    #FAF7F2 min(100%, calc(var(--cell-progress-pct, 35%) + 0.8%)),
    #F2ECE3 100%
  ) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-cell-layer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 4.5px 9.5px;
  box-sizing: border-box;
  white-space: nowrap;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-cell-layer-sky {
  position: relative;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--cell-progress-pct, 35%)) 0 0);
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-cell-layer-pearl {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 0 0 var(--cell-progress-pct, 35%));
  color: #111111 !important;
  text-shadow: none !important;
  pointer-events: none;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-cell-layer-pearl span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-cell-layer-pearl strong {
  color: #111111 !important;
  text-shadow: none !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dark-sky .sm3-cell-layer-sky,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dark-sky .sm3-cell-layer-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dark-sky .sm3-cell-layer-sky strong {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dawn-sky .sm3-cell-layer-sky,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dawn-sky .sm3-cell-layer-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-dawn-sky .sm3-cell-layer-sky strong,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-day-sky .sm3-cell-layer-sky,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-day-sky .sm3-cell-layer-sky span,
.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.on-day-sky .sm3-cell-layer-sky strong {
  color: #0B0B0B !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.90) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-divider {
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
  width: 1px !important;
  height: 24px !important;
  background: rgba(246, 242, 235, 0.42) !important;
  margin: 0 3px 0 3px !important;
  flex-shrink: 0 !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-meta {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  padding-left: 2px !important;
}

/* Three Right-Hand Meta Pills (`Date`, `Location`, `Qibla`): Crisp Luminous Pearl-White Border! (V3 fb1 01:23-01:47) */
.sm3-prayer-stadium.is-photoreal-sky .sm3-meta-sky-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(11, 18, 40, 0.78) !important;
  border: 1.35px solid rgba(247, 243, 235, 0.90) !important;
  color: #FFFFFF !important;
  padding: 4px 9.5px !important;
  border-radius: 999px !important;
  font-size: 11.2px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    0 2px 7px rgba(2, 6, 18, 0.38) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-meta-sky-pill strong,
.sm3-prayer-stadium.is-photoreal-sky .sm3-meta-sky-pill span {
  color: #FFFFFF !important;
}

@media (max-width: 1220px) {
  .sm3-prayer-stadium.is-photoreal-sky {
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .sm3-prayer-stadium.is-photoreal-sky::-webkit-scrollbar {
    display: none;
  }
  .sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell {
    flex: 1 0 auto !important;
  }
}

/* 2. Organic Asymmetric Home Right Petal (`fb03` 3.4) & Sculpted Silk Petals Wreath (`fb03` 3.8) */
.sm3-petal-tr {
  top: 238px !important;
  right: 16px !important;
  width: 58px !important;
  transform: translate3d(var(--petal-dx, 0px), var(--petal-dy, 0px), 0) rotate(26deg) !important;
}

.sm3-bouquet-wreath-svg.is-header {
  width: 50px !important;
  height: 50px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

.sm3-bouquet-wreath-svg.is-hero {
  width: 80px !important;
  height: 80px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
}

/* 3. Floating Tasbih Persistent Label + Cascading Botanical Vase + Dhikr Bouquet Strip (`fb03` 3.5-3.7) */
.sm3-ft-fab-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.04;
}

.sm3-ft-fab-sub {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 800;
  color: #BD122F;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.sm3-ft-vessel-wrap .sm3-ft-bouquet-svg {
  position: absolute !important;
  width: 112px !important;
  height: 64px !important;
  top: -36px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 4 !important;
  filter: drop-shadow(0 3px 6px rgba(32, 16, 12, 0.18)) !important;
}

@media (max-width: 680px) {
  .sm3-ft-vessel-wrap .sm3-ft-bouquet-svg {
    width: 98px !important;
    height: 56px !important;
    top: -31px !important;
  }
}

.sm3-ft-bouquet-strip {
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF4F0 100%);
  border: 1px solid rgba(212, 157, 46, 0.28);
  border-radius: 11px;
  padding: 6px 9px;
  margin-bottom: 8px;
}

.sm3-ft-bouquet-hdr {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7A4B12;
  margin-bottom: 4px;
}

.sm3-ft-bouquet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sm3-ft-bloom-dhikr-pill {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FFFFFF;
  color: #111111;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10.8px;
  font-weight: 600;
  cursor: pointer;
}

.sm3-ft-bloom-dhikr-pill.is-active,
.sm3-ft-bloom-dhikr-pill:hover {
  border-color: #BD122F;
  background: rgba(189, 18, 47, 0.06);
  color: #9E0826;
}

.sm3-ft-bouquet-empty {
  font-size: 10.8px;
  color: var(--mocha-soft);
  line-height: 1.35;
}

/* 4. In-App Dual Gregorian + Hijri Calendar Picker & Sadaqah Basis Switcher (`fb01` 1.4-1.6) */
.sm3-dual-cal-popover {
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

.sm3-dual-cal-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}

.sm3-dual-jump-pill {
  border: 1px solid rgba(212, 157, 46, 0.42);
  background: #FFFDF6;
  color: #111111;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-dual-jump-pill:hover {
  background: #FFF5D6;
  border-color: #C8921E;
}

.sm3-dual-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--mocha-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sm3-dual-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.sm3-dual-cal-empty {
  height: 36px;
}

.sm3-dual-cal-day {
  position: relative;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #FAF9F7;
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  cursor: pointer;
  line-height: 1.05;
}

.sm3-dual-cal-day:hover {
  border-color: rgba(189, 18, 47, 0.42);
  background: #FFFFFF;
}

.sm3-dual-cal-day.is-sacred {
  background: linear-gradient(180deg, #FFFDF2 0%, #FFF3CC 100%);
  border-color: rgba(212, 157, 46, 0.68);
}

.sm3-dual-cal-day.is-today {
  border-color: #111111;
  box-shadow: inset 0 0 0 1px #111111;
}

.sm3-dual-cal-day.is-selected {
  background: linear-gradient(180deg, #CC123A 0%, #940829 100%);
  border-color: #940829;
  color: #FFFFFF;
}

.sm3-dcal-g {
  font-size: 11.5px;
  font-weight: 800;
}

.sm3-dcal-h {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.72;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sm3-dual-cal-day.is-selected .sm3-dcal-g,
.sm3-dual-cal-day.is-selected .sm3-dcal-h {
  color: #FFFFFF;
  opacity: 0.95;
}

.sm3-dcal-sacred-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D4950A;
}

.sm3-sad-basis-btn {
  border: none;
  background: transparent;
  color: var(--mocha-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-sad-basis-btn.is-active {
  background: #111111;
  color: #FFFFFF;
}

/* 5. Superpower 02 Prayer Hub: 22px City Heading Dropdown + 7-Column Single-Row Salah Grid (`fb03` 3.10-3.11, `fb04` 4.3) */
.sm3-pr-city-dropdown-anchor {
  position: relative;
}

.sm3-pr-city-heading-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.2px solid rgba(17, 17, 17, 0.16);
  background: #FFFFFF;
  color: #0B0B0B;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.055);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sm3-pr-city-heading-btn:hover {
  border-color: rgba(212, 157, 46, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sm3-pr-city-caret {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  opacity: 0.78;
}

.sm3-pr-city-dropdown-panel {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: min(370px, calc(100vw - 32px));
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
  z-index: 65;
}

.sm3-pr-city-dropdown-top,
.sm3-pr-city-dd-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-pr-city-add-lbl-btn {
  border: none;
  background: transparent;
  color: var(--mocha-soft);
  font-size: 12.2px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  text-align: left;
}

.sm3-pr-city-add-lbl-btn:hover {
  color: #111111;
}

.sm3-pr-city-inline-search {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.sm3-pr-city-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.1);
}

.sm3-pr-city-dd-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sm3-pr-city-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-radius: 9px;
}

.sm3-pr-city-dd-item:hover,
.sm3-pr-city-dd-item.is-active {
  background: var(--sand);
}

.sm3-pr-city-dd-pick {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #111111;
  font-size: 12.5px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.sm3-pr-city-dd-del {
  border: none;
  background: transparent;
  color: #BD122F;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  cursor: pointer;
}

.sm3-pr-city-confirm-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #0E8A56 0%, #096840 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(14, 138, 86, 0.28);
}

.sm3-pr-city-saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.sm3-prayer-hub-row7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.sm3-pr-hub-tile {
  background: #FAF9F7;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 13px;
  padding: 8px 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.sm3-pr-hub-tile.is-current {
  border-color: rgba(212, 157, 46, 0.85);
  box-shadow: 0 4px 12px rgba(212, 157, 46, 0.16);
}

.sm3-pr-hub-tile.is-next {
  border-color: rgba(189, 18, 47, 0.36);
  background: #FFF9FA;
}

.sm3-pr-hub-tile-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--mocha-soft);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.sm3-pr-hub-tile-time {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
}

.sm3-pr-hub-tile-state {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8A5A00;
  background: rgba(246, 178, 4, 0.18);
  padding: 1px 6px;
  border-radius: 999px;
}

.sm3-pr-hub-tile-state.is-next {
  color: #9E0826;
  background: rgba(189, 18, 47, 0.1);
}

.sm3-pr-hub-tile-sub {
  font-size: 9.5px;
  color: var(--mocha-muted);
}

@media (max-width: 900px) {
  .sm3-prayer-hub-row7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sm3-prayer-hub-row7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm3-pr-city-dropdown-panel {
    left: 0;
    right: auto;
  }
}

.sm3-bp-filter-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 8px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-bp-filter-tab,
.sm3-bp-filter-chip {
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FAF8F7;
  color: #111111;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-bp-filter-tab.is-active,
.sm3-bp-filter-chip.is-active {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
}

/* 6. Mushaf V2c: 2-Row Centered Non-Jumping Header, Word Hover Tooltip, Proportional `Aa` & Shaded 3D Page Corners */
.sm3-mushaf-sticky-header {
  z-index: 48 !important;
}

.sm3-mushaf-context-strip.is-v2c-centered {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  padding: 8px 14px !important;
  background: #FFFFFF !important;
  border-radius: 16px 16px 0 0 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
}

.sm3-mushaf-center-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}

.sm3-mushaf-nav-pill,
.sm3-mushaf-nav-turn {
  padding: 6px 13px !important;
  font-size: 12.2px !important;
  font-weight: 700 !important;
  flex-shrink: 0;
}

.sm3-mushaf-pill-anchor,
.sm3-mushaf-pop-anchor {
  position: relative;
}

.sm3-mushaf-pill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FAF9F7;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sm3-mushaf-pill-trigger:hover,
.sm3-mushaf-pill-trigger.is-open {
  background: #FFFFFF;
  border-color: rgba(212, 157, 46, 0.72);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.sm3-mpill-ar,
.sm3-mp-ar {
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  line-height: 1.1;
}

.sm3-mushaf-pill-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  max-width: calc(100vw - 28px);
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  z-index: 80;
}

.sm3-mushaf-pill-popover.is-wide {
  width: min(360px, calc(100vw - 28px));
}

.sm3-mushaf-pill-popover.is-narrow {
  width: 215px;
}

.sm3-mushaf-pill-popover.is-right {
  left: auto;
  right: 0;
  transform: none;
  width: min(295px, calc(100vw - 28px));
}

.sm3-mpop-head,
.sm3-mpop-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mocha-muted);
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-mpop-bm-btn {
  border: 1px solid rgba(189, 18, 47, 0.32);
  background: #FFFFFF;
  color: #BD122F;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-mpop-bm-btn.is-active {
  background: #BD122F;
  color: #FFFFFF;
}

.sm3-mpop-scroll {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 3px;
}

.sm3-mpop-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #111111;
  font-size: 12.2px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sm3-mpop-item:hover,
.sm3-mpop-item.is-current {
  background: var(--sand);
}

.sm3-mpop-item.is-current {
  font-weight: 800;
  box-shadow: inset 2.5px 0 0 #BD122F;
}

.sm3-mpop-sub {
  font-size: 10.8px;
  color: var(--mocha-muted);
  font-weight: 500;
}

.sm3-mushaf-audio-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 6px 12px !important;
  background: #FAF9F7 !important;
  border: 1px solid rgba(17, 17, 17, 0.09) !important;
  border-top: none !important;
  border-radius: 0 0 16px 16px !important;
}

.sm3-mushaf-audio-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sm3-desk-btn.is-stop-danger {
  background: linear-gradient(180deg, #D6143A 0%, #960828 100%) !important;
  border-color: #960828 !important;
  color: #FFFFFF !important;
}

/* Crisp Legible Transliteration (`fb08` 8.7) */
.sm3-ayah-tl {
  font-size: var(--mushaf-tl-size, 14px) !important;
  font-weight: 500 !important;
  color: #241F1D !important;
  line-height: 1.62 !important;
}

/* Instant Word-Meaning Hover & Touch Popover Above Every Arabic Word (`fb07` 7.9, `fb08` 8.1) */
.sm3-ayah-word {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  padding: 0 2px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.sm3-ayah-word:hover,
.sm3-ayah-word.is-touch-peek {
  background-color: rgba(212, 157, 46, 0.16);
}

.sm3-word-hover-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 118px;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 157, 46, 0.72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  font-family: var(--font-sans);
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 46;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.sm3-ayah-word:hover .sm3-word-hover-tip,
.sm3-ayah-word.is-touch-peek .sm3-word-hover-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sm3-wht-en {
  font-size: 12px;
  font-weight: 800;
  color: #111111;
  white-space: normal;
}

.sm3-wht-tl {
  font-size: 10.5px;
  font-style: italic;
  color: var(--mocha-soft);
  white-space: nowrap;
}

.sm3-wht-cue {
  font-size: 9.5px;
  font-weight: 700;
  color: #B87E04;
  margin-top: 2px;
  white-space: nowrap;
}

/* Overhauled `Aa` Font Size Popover (`fb08` 8.3-8.6, `fb09` 9.1-9.3) */
.sm3-aa-popover {
  width: 325px !important;
  max-width: calc(100vw - 68px) !important;
}

.sm3-aa-reset-btn {
  width: 100%;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(189, 18, 47, 0.34);
  background: #FFF9FA;
  color: #9E0826;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sm3-aa-reset-btn:hover {
  background: #BD122F;
  border-color: #BD122F;
  color: #FFFFFF;
}

.sm3-slider-lbl-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  overflow: hidden;
}

.sm3-aa-live-heading {
  font-weight: 700;
  color: #111111;
  transition: font-size 0.08s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm3-aa-px-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mocha-muted);
  flex-shrink: 0;
}

/* Inline `✕` Edition Dismiss Button (`fb08` 8.2, `fb09` 9.5) */
.sm3-inline-dismiss-ed {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FFFFFF;
  color: #666666;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.sm3-inline-dismiss-ed:hover {
  border-color: #BD122F;
  background: #BD122F;
  color: #FFFFFF;
}

/* Crimson Red Active `∞ Loop` Toggle Pill (`fb07` 7.3) */
.sm3-pill-btn.is-loop-red {
  background: linear-gradient(180deg, #D91438 0%, #9B0826 100%) !important;
  border: 1px solid #9B0826 !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 15px rgba(196, 16, 52, 0.34) !important;
  font-weight: 800 !important;
}

/* Dark Mauve Bottom Mushaf Page Corners with White Text: Left = Next Page, Right = Prev Page */
.sm3-mushaf-bottom-corners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed rgba(17, 17, 17, 0.09);
}

.sm3-mushaf-bottom-page-ind {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mocha-soft, #5A4B44);
  letter-spacing: 0.02em;
}

.sm3-shaded-page-corner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(89, 51, 71, 0.92);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.sm3-shaded-page-corner:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.sm3-shaded-page-corner.is-left-next {
  border-radius: 6px 18px 18px 26px;
  background: linear-gradient(180deg, #7A4B63 0%, #593347 100%);
  box-shadow: -3px 6px 14px rgba(59, 32, 46, 0.22);
}

.sm3-shaded-page-corner.is-right-prev {
  border-radius: 18px 6px 26px 18px;
  background: linear-gradient(180deg, #7A4B63 0%, #593347 100%);
  box-shadow: 3px 6px 14px rgba(59, 32, 46, 0.22);
}

.sm3-shaded-page-corner.is-left-next:not(:disabled):hover {
  transform: translate(2px, -2px);
  filter: brightness(1.08);
  box-shadow: -5px 9px 18px rgba(59, 32, 46, 0.28);
}

.sm3-shaded-page-corner.is-right-prev:not(:disabled):hover {
  transform: translate(-2px, -2px);
  filter: brightness(1.08);
  box-shadow: 5px 9px 18px rgba(59, 32, 46, 0.28);
}

.sm3-corner-fold {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(196, 168, 136, 0.55) 100%);
  box-shadow: 1px -1px 3px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   V3 MASTER ARCHITECTURAL & VISUAL POLISH (fb01–fb22)
   1. 3-Tier Shaded Box & Compartment Hierarchy (Canvas #FFF -> Shaded Pearl Card -> Crisp #FFF Inner Box)
   2. Centered Section Headers, Static Info Pills & Non-Overlapping Botanical Sprig
   3. Single-Line 10-Chip #sm3HubQuickNav (1280px & 1440px) + Outward-Fanning Initials Wreath
   4. Live Sky-Timeline Feathering, Late-Fajr Contrast & Post-Qiyam Twilight Mist
   5. Bounded Custom Dropdowns (.sm3-bselect-*) & Golden #FCF4DC Qur’an Dropdowns
   6. Unclipped Mushaf Sticky Header, Symmetrical Audio Bar & Flush Outer-Edge Page Corners
   7. 2-Column Puzzle Packing (.sm3-masonry-2col & .sm3-two-col-pack)
   8. Ask Companion V3 (Blockquotes, Starter Dropdown, Continuous Thread, History & Red × Controls)
   ========================================================================== */

/* 1. 3-Tier Shaded Box & Compartment Hierarchy */
.sm3-card:not(.sm3-mushaf-sheet):not(.sm3-spatial-card):not(.sm3-deck-card) {
  background: linear-gradient(180deg, #FCFBF9 0%, #F4EFE9 100%) !important;
  border: 1px solid rgba(186, 173, 161, 0.68) !important;
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 10px 26px rgba(24, 16, 12, 0.055) !important;
}

.sm3-modal-sheet .sm3-card {
  background: linear-gradient(180deg, #FAF8F5 0%, #F2ECE5 100%) !important;
  border: 1px solid rgba(17, 17, 17, 0.10) !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 14px rgba(17, 17, 17, 0.04) !important;
}

.sm3-card .sm3-plus-bar,
.sm3-card .sm3-sub-plus-bar,
.sm3-card .sm3-sunnah-plus-card,
.sm3-card .sm3-salah-card,
.sm3-card .sm3-pr-hub-tile,
.sm3-card .sm3-wird-line-box,
.sm3-card .sm3-video-card,
.sm3-card .sm3-desk-input {
  background: #FFFFFF !important;
  border-color: rgba(17, 17, 17, 0.11) !important;
}

.sm3-sadaqah-static-gold {
  border: 1.5px solid #D49D2E !important;
  background: linear-gradient(180deg, #FFFDF7 0%, #FBF4E3 100%) !important;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 22px rgba(212, 157, 46, 0.10) !important;
  animation: none !important;
}
.sm3-sadaqah-static-gold::after {
  display: none !important;
}

/* 2. Centered Section Headers & Non-Overlapping Top-Right Botanical Sprig */
.sm3-section-header::after {
  right: 12px !important;
  top: -14px !important;
  width: 68px !important;
  height: 78px !important;
  opacity: 0.70 !important;
  pointer-events: none !important;
}

.sm3-section-header.sm3-centered-header,
.sm3-section-header.is-centered-v3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.sm3-section-header.sm3-centered-header h1,
.sm3-section-header.sm3-centered-header h2,
.sm3-section-header.is-centered-v3 h1,
.sm3-section-header.is-centered-v3 h2,
.sm3-section-header-main {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sm3-section-sub {
  font-size: 13.5px;
  color: var(--mocha-soft);
  max-width: 720px;
  line-height: 1.52;
  margin: 2px auto 0;
  text-align: center;
}

.sm3-static-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #FFFDF7;
  border: 1px solid rgba(212, 157, 46, 0.48);
  color: #5C3D08;
  font-size: 11.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: default;
  user-select: none;
}

.sm3-modal-hdr-center {
  position: relative;
  text-align: center;
  padding: 0 36px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

/* 3. Single-Line 10-Chip #sm3HubQuickNav & Outward-Fanning Initials Wreath (fb18 18.1-18.2) */
@media (min-width: 1180px) and (max-width: 1439px) {
  #sm3HubQuickNav {
    gap: 3px !important;
    padding: 5px 10px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }
  #sm3HubQuickNav .sm3-hub-chip {
    padding: 5px 8px !important;
    font-size: 10.9px !important;
    gap: 3.5px !important;
    letter-spacing: -0.012em !important;
    white-space: nowrap !important;
  }
  #sm3HubQuickNav .sm3-hub-chip-num {
    font-size: 9.8px !important;
  }
  #sm3HubQuickNav .sm3-hub-back-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

@media (min-width: 1440px) {
  #sm3HubQuickNav {
    gap: 4.5px !important;
    padding: 6px 14px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }
  #sm3HubQuickNav .sm3-hub-chip {
    padding: 6px 10.5px !important;
    font-size: 11.6px !important;
    gap: 4.5px !important;
    white-space: nowrap !important;
  }
}

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

@media (max-width: 640px) {
  .sm3-bouquet-wreath-svg.is-header {
    width: 48px !important;
    height: 48px !important;
  }
}

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

.sm3-initials-btn {
  overflow: visible !important;
}

/* 4. Live Sky-Timeline Feathering, Late-Fajr Contrast & Post-Qiyam Twilight Mist (fb02 2.1-2.3) */
.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-elapsed-layer {
  background-image: url('/sm3/assets/sky-v3-master.jpg?v=v3.3') !important;
  -webkit-mask-image: linear-gradient(
    to right,
    #000000 0px,
    #000000 calc(var(--sky-fill-px, 0px) - var(--sky-feather-px, 16px)),
    rgba(0, 0, 0, 0) calc(var(--sky-fill-px, 0px) + 6px)
  ) !important;
  mask-image: linear-gradient(
    to right,
    #000000 0px,
    #000000 calc(var(--sky-fill-px, 0px) - var(--sky-feather-px, 16px)),
    rgba(0, 0, 0, 0) calc(var(--sky-fill-px, 0px) + 6px)
  ) !important;
}

.sm3-prayer-stadium.is-photoreal-sky.is-qiyam-complete .sm3-sky-elapsed-layer {
  -webkit-mask-image: linear-gradient(to right, #000000 0%, #000000 100%) !important;
  mask-image: linear-gradient(to right, #000000 0%, #000000 100%) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-prayer-cell.is-late-fajr .sm3-cell-layer-sky {
  background: rgba(18, 16, 38, 0.56) !important;
  text-shadow: 0 1px 4px rgba(8, 6, 20, 0.85) !important;
}

.sm3-prayer-stadium.is-photoreal-sky .sm3-sky-night-layer::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 34px;
  background: radial-gradient(ellipse 100% 85% at 100% 50%, rgba(16, 24, 52, 0.72) 0%, rgba(16, 24, 52, 0) 78%);
  pointer-events: none;
}

/* 5. Bounded Custom Dropdowns (.sm3-bselect-*) & Golden #FCF4DC Qur’an Dropdowns (fb08 8.6, fb18, fb20) */
.sm3-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.sm3-bselect-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
}

.sm3-bselect-wrap.is-open {
  z-index: 340;
}

.sm3-bselect-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 11px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.15);
  color: #111111;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sm3-bselect-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm3-bselect-trigger:hover,
.sm3-bselect-wrap.is-open .sm3-bselect-trigger {
  border-color: #D49D2E;
  box-shadow: 0 4px 12px rgba(212, 157, 46, 0.16);
}

/* Learning Center Pearl Dropdown & Studio Hero Triggers */
#quranHubStage .sm3-bselect-trigger,
.sm3-bselect-wrap.sm3-bselect-wrap--hero .sm3-bselect-trigger {
  background: linear-gradient(180deg, #FFFDF5 0%, #FCF4DC 100%);
  border: 1.5px solid rgba(212, 157, 46, 0.58);
}

.sm3-quran-mode-dropdown-bar .sm3-bselect-trigger {
  background: #FFFFFF;
  border: 1px solid rgba(182, 198, 218, 0.85);
}

.sm3-bselect-wrap.sm3-bselect-wrap--hero .sm3-bselect-trigger {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 157, 46, 0.15);
}

.sm3-quran-mode-dropdown-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 8px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  background: #F6F8FB;
  border: 1px solid rgba(182, 198, 218, 0.85);
}

@media (max-width: 600px) {
  .sm3-quran-mode-dropdown-bar {
    border-radius: 16px;
    padding: 6px 10px;
  }
  .sm3-quran-mode-dropdown-bar select,
  .sm3-quran-mode-dropdown-bar .sm3-bselect-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

.sm3-qmd-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3E4A59;
}

/* Seamless 5-Pill Sunnah Navigation Row Dropdown */
.sm3-sunnah-cat-pill-wrap .sm3-bselect-trigger {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  background: #FFFFFF;
}

.sm3-sunnah-cat-pill-wrap.is-filtered .sm3-bselect-trigger {
  background: #FCF4DC;
  border-color: #D49D2E;
}

.sm3-bselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.sm3-bselect-caret {
  font-size: 11px;
  color: #9B0826;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.sm3-bselect-wrap.is-open .sm3-bselect-caret {
  transform: rotate(180deg);
}

.sm3-bselect-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(370px, calc(100vw - 28px));
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  z-index: 380;
}

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

.sm3-bselect-search-wrap {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  z-index: 2;
}

.sm3-bselect-search {
  width: 100%;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 12px;
  background: #FAF8F5;
  color: #111111;
}

.sm3-bselect-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 2px;
}

.sm3-bselect-group {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7C6A5E;
  padding: 6px 8px 3px;
  margin-top: 2px;
}

.sm3-bselect-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 7px 10px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12.4px;
  font-weight: 600;
  color: #18181B;
  cursor: pointer;
  transition: background 0.12s ease;
}

.sm3-bselect-item:hover {
  background: #F6F2EC;
}

.sm3-bselect-item.is-selected {
  background: #FCF4DC;
  border-color: rgba(212, 157, 46, 0.48);
  font-weight: 800;
  color: #111111;
}

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

/* 6. Unclipped Mushaf Sticky Header, Symmetrical Audio Bar, Juz Rows & Flush Page Corners (fb05–fb09) */
.sm3-mushaf-sticky-header {
  overflow: visible !important;
  z-index: 135 !important;
}

.sm3-mushaf-pill-popover {
  z-index: 220 !important;
}

.sm3-mushaf-pill-popover.is-juz-wide {
  left: 0 !important;
  transform: none !important;
  width: min(375px, calc(100vw - 28px)) !important;
}

.sm3-mpop-juz-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.sm3-mpop-juz-row .sm3-mpop-item.is-juz-main {
  flex: 1;
  min-width: 0;
}

.sm3-mpop-juz-row.is-current .sm3-mpop-item.is-juz-main {
  background: #FCF4DC;
  border-color: rgba(212, 157, 46, 0.55);
}

.sm3-juz-done-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #FFFFFF;
  color: var(--mocha-muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sm3-juz-done-toggle.is-done {
  background: #ECFDF5;
  border-color: rgba(13, 122, 78, 0.4);
  color: #0D7A4E;
}

.sm3-mushaf-audio-row {
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.sm3-mushaf-play-page {
  background: #FFFFFF !important;
  color: #111111 !important;
  border-color: rgba(182, 198, 218, 0.9) !important;
  font-weight: 700 !important;
}

.sm3-mushaf-play-main,
.sm3-mushaf-play-soft-yellow {
  background: linear-gradient(180deg, #FFFDF5 0%, #FCF4DC 100%) !important;
  border-color: rgba(212, 157, 46, 0.58) !important;
  font-weight: 800 !important;
}

.sm3-mushaf-play-page.is-stop-danger,
.sm3-mushaf-play-main.is-stop-danger,
.sm3-mushaf-play-saved.is-stop-danger {
  background: linear-gradient(180deg, #D91438 0%, #9B0826 100%) !important;
  border-color: #9B0826 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.sm3-mushaf-transport-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Flush Outer-Edge Shaded Mushaf Page-Turn Corners (fb05 5.4, fb08 8.2) */
.sm3-mushaf-parchment.sm3-has-shaded-corners {
  border-radius: 18px 18px 26px 26px !important;
}

.sm3-mushaf-parchment.sm3-has-shaded-corners .sm3-mushaf-bottom-corners {
  margin: 28px -34px -52px -34px;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(17, 17, 17, 0.08);
}

@media (max-width: 1120px) {
  .sm3-mushaf-parchment.sm3-has-shaded-corners .sm3-mushaf-bottom-corners {
    margin: 24px -18px -52px -18px;
  }
}

@media (max-width: 760px) {
  .sm3-mushaf-parchment.sm3-has-shaded-corners .sm3-mushaf-bottom-corners {
    margin: 20px -16px -54px -16px;
  }
}

.sm3-mushaf-parchment.sm3-has-shaded-corners .sm3-shaded-page-corner.is-left-next {
  border-radius: 4px 22px 4px 25px;
  padding: 12px 24px;
  border-left: none;
  border-bottom: none;
}

.sm3-mushaf-parchment.sm3-has-shaded-corners .sm3-shaded-page-corner.is-right-prev {
  border-radius: 22px 4px 25px 4px;
  padding: 12px 24px;
  border-right: none;
  border-bottom: none;
}

.sm3-corner-word {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sm3-tj-practice-pill.is-playing-pill {
  background: #FCF4DC !important;
  border-color: #D49D2E !important;
  box-shadow: 0 0 0 2px rgba(212, 157, 46, 0.25);
}

.sm3-edge-tab.sm3-edge-tab-info {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
}

.sm3-rail-info-popover {
  width: min(320px, calc(100vw - 36px));
}

/* 7. 2-Column Puzzle Packing (.sm3-masonry-2col, .sm3-two-col-pack, .sm3-grid-4) */
.sm3-masonry-2col {
  column-count: 2;
  column-gap: 18px;
}

.sm3-masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}

.sm3-two-col-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sm3-pack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

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

@media (max-width: 920px) {
  .sm3-masonry-2col {
    column-count: 1;
  }
  .sm3-two-col-pack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sm3-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Living Qur’an Day 1–365 Jump Picker List */
.sm3-living-day-list {
  max-height: 235px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 2px;
}

.sm3-living-day-opt {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #FFFFFF;
  border-radius: 9px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #111111;
  text-align: left;
  cursor: pointer;
}

.sm3-living-day-opt:hover,
.sm3-living-day-opt.is-current {
  background: #FCF4DC;
  border-color: rgba(212, 157, 46, 0.5);
  font-weight: 700;
}

/* Dual Calendar Hover Readout Bar (fb02 2.5) */
.sm3-dual-cal-readout {
  margin-top: 7px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #FFFDF6;
  border: 1px solid rgba(212, 157, 46, 0.42);
  font-size: 11.4px;
  color: #111111;
  text-align: center;
  line-height: 1.35;
}

/* Always-Red × Clear/Delete Buttons Across App */
.sm3-red-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(189, 18, 47, 0.30) !important;
  background: #FFF6F7 !important;
  color: #BD122F !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.sm3-red-x-btn:hover {
  background: #BD122F !important;
  border-color: #BD122F !important;
  color: #FFFFFF !important;
}

/* 8. Ask Super Muslim Companion V3 Styles (fb21–fb22) */
.sm3-ask-blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3.5px solid #D49D2E;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #FFFDF5 0%, #FAF5E8 100%);
  color: #1C1917;
  font-style: italic;
  line-height: 1.58;
}

.sm3-ask-starters-dd-anchor {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

.sm3-ask-starters-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFDF6 0%, #FCF4DC 100%);
  border: 1.5px solid rgba(212, 157, 46, 0.55);
  color: #111111;
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 157, 46, 0.14);
}

.sm3-ask-starters-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 36px));
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 15px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.sm3-ask-starters-dd-opt {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: #FCFBF9;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: left;
  font-size: 12.6px;
  font-weight: 600;
  color: #18181B;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.sm3-ask-starters-dd-opt:hover {
  background: #FCF4DC;
  border-color: rgba(212, 157, 46, 0.5);
}

.sm3-ask-turn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sm3-ask-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sm3-ask-bubble-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mocha-muted);
}

.sm3-ask-bubble-body {
  font-size: 14px;
  line-height: 1.62;
  color: #111111;
}

.sm3-ask-bubble.is-user .sm3-ask-bubble-body,
.sm3-ask-bubble.is-user p {
  color: #FFFFFF !important;
}

.sm3-ask-bubble.is-user .sm3-ask-bubble-role {
  color: rgba(255, 255, 255, 0.86) !important;
}

.sm3-ask-history-inline-stage {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.sm3-ask-hist-acc-item {
  flex-shrink: 0 !important;
}

.sm3-ask-del-confirm-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #BD122F;
  background: #BD122F;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sm3-ask-del-cancel-btn {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #FFFFFF;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sm3-ask-input-shell {
  position: relative;
}

.sm3-ask-input-shell .sm3-ask-textarea {
  padding-right: 76px !important;
}

.sm3-ask-clear-x-btn {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(189, 18, 47, 0.32);
  background: #FFF5F6;
  color: #BD122F;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.sm3-ask-clear-x-btn:hover {
  background: #BD122F;
  color: #FFFFFF;
}

/* ==========================================================================
   V5 MASTER UPGRADES — MODALS, COMPACT TASBIH, LEARNING CENTER, WIRD & 3D DECKS
   ========================================================================== */

/* 1. Universal Sticky Modal Header & Crisp Top-Right Close ✕ (fb5) */
.sm3-modal-sheet {
  position: relative;
}

.sm3-modal-sheet > .sm3-modal-hdr-centered {
  position: sticky;
  top: -24px;
  z-index: 24;
  background: #FFFFFF;
  margin: -24px -24px 16px;
  padding: 18px 50px 12px;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
}

.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-gold-close-x {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 1px solid rgba(180, 134, 34, 0.38) !important;
  background: #FFFDF7 !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #6B3A52 !important;
  color: #6B3A52 !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.sm3-modal-sheet > .sm3-modal-hdr-centered .sm3-gold-close-x:hover {
  background: #FCF4DC !important;
  border-color: rgba(180, 134, 34, 0.75) !important;
  transform: scale(1.08);
}

/* 2. Compact Floating Tasbih — No Force-Click Text Selection + Bounded Bouquet Dropdown (fb3) */
.sm3-floating-tasbih,
.sm3-floating-tasbih button,
.sm3-floating-tasbih span,
.sm3-floating-tasbih div {
  -webkit-user-select: none;
  user-select: none;
}

.sm3-floating-tasbih input {
  -webkit-user-select: text;
  user-select: text;
}

.sm3-ft-bouquet-strip {
  margin-bottom: 8px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.sm3-ft-bouquet-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid rgba(186, 198, 216, 0.72);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FC 100%);
  color: #1A161E;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sm3-ft-bouquet-trigger:hover {
  border-color: rgba(212, 157, 46, 0.65);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.sm3-ft-bouquet-caret {
  font-size: 11px;
  opacity: 0.75;
}

.sm3-ft-bouquet-dropdown {
  margin-top: 6px;
  max-height: 172px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 11px;
  background: #FAF8F6;
  border: 1px solid rgba(17, 17, 17, 0.09);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sm3-ft-bouquet-dropdown .sm3-ft-bloom-dhikr-pill {
  flex-shrink: 0;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

/* 3. Sparkling Pearl `Learning Center` Dropdown & Sticky Non-Numbered Header (fb6) */
.sm3-bselect-sticky-hdr {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 8px 12px 7px;
  margin: -4px -4px 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #593347;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(122, 75, 99, 0.18);
  border-radius: 10px 10px 0 0;
  user-select: none;
}

.sm3-bselect-wrap--learning-center {
  min-width: 220px;
}

.sm3-bselect-wrap--learning-center .sm3-bselect-trigger {
  background-color: #FFFFFF !important;
  background-image:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0) 28%,
      rgba(218, 228, 242, 0.45) 46%,
      #FFFFFF 50%,
      rgba(218, 228, 242, 0.45) 54%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 55%, #EEF3F9 100%) !important;
  background-size: 240% 100%, 100% 100% !important;
  border: 1px solid rgba(186, 200, 218, 0.92) !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-family: var(--font-display) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  box-shadow:
    inset 0 2px 3px #FFFFFF,
    0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.sm3-bselect-wrap--learning-center .sm3-bselect-trigger:hover {
  border-color: rgba(212, 157, 46, 0.65) !important;
}

/* 4. Nooraniyyah 17-Lesson Dropdown Card Guard (fb5) */
.sm3-noor-drop-card,
.sm3-noor-drop-row {
  flex-shrink: 0 !important;
  min-height: 44px;
}

/* 5. Wird Builder 3-Column Top Metadata, Crimson + Add Line & Column-First Grids (fb4, fb7) */
.sm3-wird-top-fields,
.sm3-wird-top-fields.sm3-wird-top-fields--3 {
  display: grid;
  grid-template-columns: 1.45fr 1.25fr 0.85fr !important;
  gap: 12px;
  align-items: start;
}

@media (max-width: 820px) {
  .sm3-wird-top-fields,
  .sm3-wird-top-fields.sm3-wird-top-fields--3 {
    grid-template-columns: 1fr !important;
  }
}

.sm3-wird-builder-collapsible.is-collapsed {
  padding: 13px 18px !important;
}

.sm3-wird-add-line-btn {
  background: linear-gradient(180deg, #D91E49 0%, #B80D34 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #9E0A2B !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(196, 16, 56, 0.22);
}

.sm3-wird-add-line-btn:hover {
  filter: brightness(1.06);
}

.sm3-wird-card.is-dragging {
  opacity: 0.52;
}

.sm3-wird-card.is-dragover {
  border-color: #D49D2E !important;
  box-shadow: 0 0 0 2px rgba(212, 157, 46, 0.28) !important;
}

.sm3-grid-2,
.sm3-plan30-cols {
  align-items: start;
}

@media (max-width: 560px) {
  .sm3-composer-line-inputs {
    grid-template-columns: 1fr 86px !important;
  }
}

/* 6. Reusable Homepage-Style 3D Spatial Card Deck (.sm3-mini-spatial-*, fb8/fb9/fb11) */
.sm3-mini-spatial-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 6px;
  margin: 10px 0;
}

.sm3-mini-spatial-viewport {
  position: relative;
  width: 100%;
  height: 416px;
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.sm3-mini-spatial-viewport.is-dragging {
  cursor: grabbing;
}

.sm3-mini-spatial-wrap--video .sm3-mini-spatial-viewport,
.sm3-mini-spatial-wrap--tall .sm3-mini-spatial-viewport,
.sm3-mini-spatial-wrap--portrait .sm3-mini-spatial-viewport,
.sm3-mini-spatial-wrap--people .sm3-mini-spatial-viewport {
  height: 458px;
}

.sm3-mini-spatial-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.sm3-mini-spatial-card {
  position: absolute !important;
  box-sizing: border-box !important;
  width: var(--msd-card-w, min(440px, calc(100vw - 56px))) !important;
  height: 376px;
  left: calc(var(--msd-card-w, min(440px, calc(100vw - 56px))) / -2) !important;
  top: -188px;
  border-radius: 22px;
  background: linear-gradient(170deg, #FFFFFF 0%, #F5F8FC 55%, #ECF1F8 100%);
  color: #111111;
  border: 1px solid rgba(186, 200, 218, 0.85);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.10),
    inset 0 2px 3px #FFFFFF;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm3-mini-spatial-wrap--video .sm3-mini-spatial-card,
.sm3-mini-spatial-wrap--tall .sm3-mini-spatial-card,
.sm3-mini-spatial-wrap--portrait .sm3-mini-spatial-card,
.sm3-mini-spatial-wrap--people .sm3-mini-spatial-card {
  height: 418px;
  top: -209px;
  padding: 16px 18px;
}

.sm3-mini-spatial-card.is-front {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(
      116deg,
      rgba(255, 255, 255, 0) 26%,
      rgba(210, 223, 240, 0.48) 43%,
      #FFFFFF 50%,
      rgba(214, 226, 242, 0.48) 57%,
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(170deg, #FFFFFF 0%, #F7FAFD 50%, #EEF3F9 100%);
  background-size: 245% 100%, 100% 100%;
  border: 1.5px solid rgba(212, 157, 46, 0.78);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(255, 235, 168, 0.55),
    inset 0 2px 4px #FFFFFF;
}

.sm3-msd-orchid {
  position: absolute;
  top: -32px;
  right: -46px;
  width: 126px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(14deg) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.sm3-mini-spatial-card.is-front .sm3-msd-orchid {
  opacity: 0.92;
  transform: rotate(11deg) scale(1);
}

.sm3-msd-card-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding-right: 2px;
}

.sm3-msd-yt-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 205px;
  border-radius: 14px;
  overflow: hidden;
  background: #141118;
  flex-shrink: 0;
}

.sm3-msd-yt-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm3-mini-spatial-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.sm3-msd-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: #593347;
  background: #FAF6F8;
  border: 1px solid rgba(122, 75, 99, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
}

@media (max-width: 640px) {
  .sm3-mini-spatial-viewport {
    height: 404px;
  }
  .sm3-mini-spatial-wrap--video .sm3-mini-spatial-viewport,
  .sm3-mini-spatial-wrap--tall .sm3-mini-spatial-viewport {
    height: 440px;
  }
  .sm3-mini-spatial-card {
    width: var(--msd-card-w, calc(100vw - 44px));
    left: calc(var(--msd-card-w, calc(100vw - 44px)) / -2);
    height: 364px;
    top: -182px;
    padding: 14px 15px;
  }
  .sm3-mini-spatial-wrap--video .sm3-mini-spatial-card,
  .sm3-mini-spatial-wrap--tall .sm3-mini-spatial-card {
    height: 402px;
    top: -201px;
  }
}

/* 7. Ramadan Day Grid, Clickable Imsak/Iftar Pills, Carnivore Drag Cards & 4x3 Rolling Events Grid */
.sm3-ram-day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .sm3-ram-day-grid {
    grid-template-columns: 1fr;
  }
}

.sm3-ram-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 157, 46, 0.52);
  background: #FFFDF6;
  color: #111111;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.sm3-carn-sec-bar > summary {
  padding: 14px 18px;
}

.sm3-carn-drag-card.is-dragging-item {
  opacity: 0.52;
  border-style: dashed;
}

.sm3-carn-drag-card.is-drag-over {
  border-color: #BD122F !important;
  box-shadow: 0 0 0 2px rgba(189, 18, 47, 0.18);
}

.sm3-events-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

@media (max-width: 1160px) {
  .sm3-events-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .sm3-events-month-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V8.2 LUXURY LEGAL DRAWERS, AI MICRO-NOTES & NARROW SAMSUNG VIEWPORT POLISH
   ========================================================================== */

.sm3-spatial-hud {
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

@media (max-width: 440px) {
  .sm3-spatial-hud {
    gap: 5px !important;
    padding: 5px 8px !important;
    max-width: calc(100vw - 14px) !important;
  }
  .sm3-spatial-hud .sm3-hud-dots {
    gap: 4px !important;
  }
  .sm3-spatial-hud .sm3-hud-dot {
    width: 6.5px !important;
    height: 6.5px !important;
  }
  .sm3-spatial-hud .sm3-hud-arrow {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
    flex-shrink: 0;
  }
  .sm3-spatial-hud .sm3-pill-btn,
  .sm3-spatial-hud .sm3-hud-view-btn,
  .sm3-spatial-hud #homeOpenSectionsBtn,
  .sm3-spatial-hud #homeToggleViewModeBtn {
    padding: 4px 7px !important;
    font-size: 10px !important;
    gap: 3px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .sm3-spatial-hud .sm3-hud-view-btn svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 440px) {
  .sm3-static-info-pill {
    max-width: calc(100vw - 28px);
    box-sizing: border-box;
    white-space: normal !important;
    text-align: center;
    line-height: 1.35;
  }
  .sm3-bselect-wrap,
  .sm3-bselect-wrap.sm3-bselect-wrap--hero,
  .sm3-bselect-wrap--learning-center {
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
  }
  .sm3-bselect-wrap.sm3-bselect-wrap--hero .sm3-bselect-trigger {
    padding: 7px 12px;
    font-size: 13.5px;
  }
  .sm3-ask-composer {
    gap: 6px !important;
    padding: 8px 8px !important;
  }
  .sm3-ask-textarea {
    min-height: 44px !important;
    font-size: 13px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

.sm3-inline-legal-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: #593347;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.sm3-inline-legal-link:hover {
  color: #BD122F;
}

.sm3-ask-ai-micro-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(17, 17, 17, 0.09);
  font-size: 11px;
  line-height: 1.38;
  color: var(--mocha-muted);
}

.sm3-ask-report-btn {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #FFFFFF;
  color: var(--mocha-soft);
  border-radius: 999px;
  padding: 1.5px 8px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.sm3-ask-report-btn:hover {
  border-color: #D49D2E;
  color: #111111;
}

.sm3-ask-privacy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  margin: 0 6px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FAF5EA 100%);
  border: 1px solid rgba(212, 157, 46, 0.45);
  font-size: 11.4px;
  line-height: 1.4;
  color: #111111;
}

.sm3-legal-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}





