/* QC/QA R9 — English: match Arabic checklist bullet color (Why tabs only)
   Scope: ONLY the hero audience tabs list bullets on EN page.
*/
.hero-why-card .mini-list li::before{
  color: var(--accent, #22aed1);
}

/* QC/QA R15 — Quote portlet ~95% fullscreen width/height (both languages)
   Implemented as an override here to avoid touching approved base CSS.
*/
#quoteModal .modal-card{
  width: min(1600px, 95vw, calc(100vw - 36px)) !important;
  max-height: min(95vh, calc(100vh - 36px)) !important;
}
#quoteModal .modal-left,
#quoteModal .modal-right{
  max-height: min(95vh, calc(100vh - 36px)) !important;
}
@media (max-width: 900px){
  #quoteModal .modal-card{
    width: calc(100vw - 22px) !important;
    max-height: calc(100vh - 22px) !important;
  }
  #quoteModal .modal-left,
  #quoteModal .modal-right{
    max-height: calc(100vh - 22px) !important;
  }
}

/* =========================================================
   QC HOTFIX: Back to Top button shape/position (EN + AR)
   - Keeps base intact; only targets the back-to-top control
   - Forces compact pill, correct corner (LTR right / RTL left)
   ========================================================= */

#backToTopBtn,
#backToTop,
.back-to-top,
.aq-backtotop,
.aq-back-to-top,
button[aria-label="Back to Top"],
button[aria-label="العودة إلى الأعلى"]{
  position: fixed !important;
  bottom: 18px !important;

  /* LTR default: bottom-right */
  right: 18px !important;
  left: auto !important;

  z-index: 9999 !important;

  width: auto !important;
  min-width: 140px !important;
  height: 42px !important;
  max-width: max-content !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;

  padding: 0 14px !important;
  border-radius: 12px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;

  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: linear-gradient(90deg, #db324d 0%, #22aed1 100%) !important;

  box-shadow: 0 12px 26px rgba(0,0,0,0.18) !important;
  cursor: pointer !important;

  /* Keep your show/hide logic intact; these just improve animation if used */
  will-change: opacity, transform !important;
  -webkit-tap-highlight-color: transparent !important;
}

.quote-dock .btn,
.back-to-top-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 140px !important;
  height: 42px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.quote-dock .btn .btn-icon,
.quote-dock .btn .btn-label,
.back-to-top-btn .btn-icon,
.back-to-top-btn .btn-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 1;
}

html[dir="rtl"] #backToTopBtn,
html[dir="rtl"] #backToTop,
html[dir="rtl"] .back-to-top,
html[dir="rtl"] .aq-backtotop,
html[dir="rtl"] .aq-back-to-top,
html[dir="rtl"] button[aria-label="Back to Top"],
html[dir="rtl"] button[aria-label="العودة إلى الأعلى"]{
  left: 18px !important;
  right: auto !important;
}

#backToTopBtn:hover,
#backToTop:hover,
.back-to-top:hover,
.aq-backtotop:hover,
.aq-back-to-top:hover,
button[aria-label="Back to Top"]:hover,
button[aria-label="العودة إلى الأعلى"]:hover{
  box-shadow: 0 16px 34px rgba(0,0,0,0.22) !important;
  transform: translateY(-1px) !important;
}

#backToTopBtn:active,
#backToTop:active,
.back-to-top:active,
.aq-backtotop:active,
.aq-back-to-top:active,
button[aria-label="Back to Top"]:active,
button[aria-label="العودة إلى الأعلى"]:active{
  transform: translateY(0) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18) !important;
}

/* Keyboard focus */
#backToTopBtn:focus-visible,
#backToTop:focus-visible,
.back-to-top:focus-visible,
.aq-backtotop:focus-visible,
.aq-back-to-top:focus-visible,
button[aria-label="Back to Top"]:focus-visible,
button[aria-label="العودة إلى الأعلى"]:focus-visible{
  outline: 2px solid rgba(34,174,209,0.85) !important;
  outline-offset: 3px !important;
}


/* =============================
   QA PATCH: Gallery snapshot padding + WebGL watermark/loader
   (No layout changes outside requested areas)
   ============================= */

/* Gallery thumbnails: add breathing space without changing the card layout */
#gallery .g-thumb{
  box-sizing: border-box;
  padding: 0;
}

/* WebGL demo watermark overlay (empty canvas state) */
.demo-stage{ position: relative; }

.demo-watermark{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .38s ease, transform .38s ease, filter .38s ease;
}


.demo-watermark-logo{
  width: min(560px, 72%);
  max-width: 560px;
  opacity: 0.25; /* ~75% faded */
}

.demo-watermark-msg{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.demo-watermark.is-hidden{
  opacity: 0;
  transform: scale(1.02);
  filter: blur(6px);
}


/* Keep loader above watermark */
.demo-loader{ z-index: 3; }

/* Follow-up QA patch: preserve the requested tutorial box metrics in both themes. */
#demo .demo-tutorial{
  margin-top: 14px !important;
  padding-top: 14px !important;
  padding: 10px !important;
  border-top: 1px solid rgba(2, 20, 39, 0.08) !important;
  border-radius: 15px !important;
  -webkit-border-radius: 15px !important;
  -moz-border-radius: 15px !important;
}
