﻿/* MIQYAS 2026-11-08 | Cinematic conversions & heritage popups */
:root{--mp-cream:#f1e3cb;--mp-ink:#51192f;--mp-maroon:#5c1c35;--mp-line:#e4c8b4;--mp-gold:#cba37e}
#miqyasWelcomePopup[hidden],#miqyasNudgePopup[hidden]{display:none!important}
.miqyas-welcome-popup{
  direction:rtl;position:fixed;z-index:94;right:clamp(14px,2.7vw,45px);bottom:clamp(22px,3vw,42px);
  width:min(395px,calc(100vw - 28px));background:linear-gradient(115deg,#fffaf0,#f3e5d4);
  color:#51192f;border:1px solid #e5c7ac;border-radius:23px;
  box-shadow:0 22px 76px #250b1eb0;overflow:hidden;isolation:isolate;
  animation:mpPopIn .42s cubic-bezier(.22,1,.36,1) both;text-align:right
}
.miqyas-welcome-popup:before{
  content:"";position:absolute;left:-50px;top:-82px;width:260px;height:260px;border-radius:50%;
  border:1px solid #b97a635e;box-shadow:0 0 0 18px #b97a6313,0 0 0 45px #b97a630b;
  pointer-events:none;z-index:-1
}
.miqyas-welcome-popup:after{
  content:"";position:absolute;left:0;bottom:0;top:0;width:80%;
  background:url("miqyas-hero-guardian.webp") left center/cover no-repeat;
  opacity:.09;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,#000,transparent);
  mask-image:linear-gradient(90deg,#000,transparent);z-index:-1
}
.mp-welcome-head{display:flex;align-items:center;gap:12px;padding:19px 21px 5px}
.mp-welcome-logo{width:49px;height:49px;object-fit:contain;background:#581c36;padding:7px;border-radius:13px;flex-shrink:0}
.mp-welcome-head small{display:block;font-size:11px;color:#8e5867;font-weight:800}
.mp-welcome-head strong{display:block;font:850 18px/1.55 "Alexandria","IBM Plex Sans Arabic",sans-serif}
.mp-welcome-content{padding:7px 22px 21px}
.mp-welcome-content h2{margin:8px 0 7px;font:850 23px/1.5 "Alexandria","IBM Plex Sans Arabic",sans-serif;letter-spacing:-.02em;color:#501a30}
.mp-welcome-content p{margin:0 0 18px;font-size:12px;line-height:1.9;color:#82656a}
.mp-welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mp-welcome-actions button,.mp-welcome-audio{font:900 12px/1.6 "IBM Plex Sans Arabic",sans-serif;cursor:pointer;border-radius:11px;min-height:46px;border:1px solid #6a2940}
#miqyasWelcomeStart{background:#5b1c35;color:#fff3dd}
#miqyasWelcomeSkip{color:#652a40;background:#fcf6ee;border-color:#dcbfab}
.mp-welcome-audio{min-height:37px;width:100%;margin-top:9px;background:transparent;border:1px solid #d8b8a3;color:#74455c;font-size:11px}
.mp-welcome-close{position:absolute;left:11px;top:10px;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#e2c7b985;color:#5e2540;font-size:22px;cursor:pointer}
.miqyas-welcome-popup button:hover{filter:brightness(1.07)}
.miqyas-welcome-popup button:focus-visible,.miqyas-nudge-popup button:focus-visible{outline:3px solid #ac6e52;outline-offset:2px}
.miqyas-nudge-popup{
  position:fixed;z-index:93;left:clamp(13px,3vw,42px);bottom:clamp(22px,3vw,43px);
  direction:rtl;width:min(350px,calc(100vw - 26px));padding:15px 15px 14px 16px;
  display:grid;grid-template-columns:42px 1fr 28px;gap:9px;align-items:center;
  background:#fffaf0;color:#51192f;border:1px solid #dfc2ab;border-radius:17px;
  box-shadow:0 22px 60px #2b0b2166;animation:mpPopIn .36s ease-out both
}
.mp-nudge-icon{display:grid;place-items:center;width:39px;height:39px;background:#5d203a;border-radius:12px;color:#f3dcba;font:900 21px Arial}
.mp-nudge-copy strong{display:block;font:850 12px/1.55 "IBM Plex Sans Arabic",sans-serif}
.mp-nudge-copy small{display:block;margin-top:2px;font-size:10px;color:#9b6d73}
.mp-nudge-copy button{margin-top:8px;border:0;background:none;color:#702441;padding:0;font-weight:900;font-size:11px;cursor:pointer}
.mp-nudge-close{align-self:start;border:0;background:transparent;color:#9b6478;font-size:20px;cursor:pointer}
@keyframes mpPopIn{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
/* Rebrand the existing consultation popup; do not alter its WhatsApp destination or capture logic. */
.growth-overlay{background:rgba(28,6,20,.74)!important;backdrop-filter:blur(11px)!important}
.growth-popup.growth-popup-v8{background:#fff8eb!important;border:1px solid #e4c09f!important;box-shadow:0 38px 110px #13010f91!important;max-height:min(89dvh,720px)}
.growth-popup-v8 .growth-popup-copy{background:#fffaf1!important;color:#51192f!important}
.growth-popup-v8 .growth-popup-copy h2{color:#54192f!important;line-height:1.45!important}
.growth-popup-v8 .growth-popup-copy h2 em{color:#8d3a4b!important}
.growth-popup-v8 .growth-eyebrow{color:#6e3044!important;background:#f0dfcd!important;border:1px solid #ebcdb5!important}
.growth-popup-v8 .growth-popup-copy>p{color:#7b5862!important}
.growth-popup-v8 .popup-benefits>div{border:1px solid #eed7c4!important;background:#fcf0e3!important}
.growth-popup-v8 .popup-benefits strong{color:#5c2239!important}
.growth-popup-v8 .popup-benefits small{color:#89646a!important}
.growth-popup-v8 .popup-benefits b{color:#8b3c55!important;background:#e9cdb9!important}
.growth-popup-v8 .popup-expert-card{background:linear-gradient(155deg,#5d1b37,#361025)!important;color:#f5e5d0!important}
.growth-popup-v8 .popup-expert-card:before{background:radial-gradient(circle,#bc835c62,transparent 72%)!important}
.growth-popup-v8 .popup-expert-info strong{color:#fff3df!important}
.growth-popup-v8 .popup-expert-info span,.growth-popup-v8 .popup-expert-stat span{color:#e2bbba!important}
.growth-popup-v8 .popup-expert-stat strong{color:#f4dbbb!important}
.growth-popup-v8 .growth-popup-actions #growthPopupWhatsapp{background:#60213c!important;color:#fbe8d6!important;border-color:#60213c!important}
.growth-popup-v8 .growth-popup-actions #growthPopupContinue{background:#fff6eb!important;color:#61233c!important;border:1px solid #d8b99f!important}
.growth-popup-v8 .growth-popup-close{background:#ead6c5!important;color:#592237!important}
.presence-toast{background:#fff8ed!important;border-color:#e1c5ae!important;color:#61223d!important;box-shadow:0 12px 32px #27122240!important}
.presence-icon,.presence-icon span{color:#842f4d!important}
.sticky-audit{background:#fff6e9!important;border-color:#e8ceb4!important;box-shadow:0 17px 53px #23091966!important}
.sticky-audit button#stickyStart{background:#68213f!important;color:#fff2df!important}
.mobile-wa-fab{background:#fff6e9!important;border-color:#dcbba6!important;color:#5b1933!important}
.miqyas-audio-btn[aria-pressed="true"]{background:#f2ddbe;color:#54223d}
@media(max-width:700px){
  .miqyas-welcome-popup{right:12px;left:12px;bottom:max(16px,env(safe-area-inset-bottom));width:auto;max-height:min(63dvh,495px);overflow:auto;border-radius:18px}
  .mp-welcome-head{padding:15px 16px 4px}
  .mp-welcome-content{padding:6px 17px 15px}
  .mp-welcome-content h2{font-size:19px}
  .mp-welcome-content p{font-size:11px}
  .mp-welcome-logo{width:42px;height:42px}
  .mp-welcome-actions button{min-height:42px;font-size:11px}
  .miqyas-nudge-popup{left:11px;right:11px;bottom:max(14px,env(safe-area-inset-bottom));width:auto;max-width:none}
  .growth-overlay{align-items:flex-end!important;padding:0!important}
  .growth-popup.growth-popup-v8{max-height:min(78dvh,620px)!important;overflow:auto!important;border-radius:21px 21px 0 0!important}
  .growth-popup-v8 .growth-popup-copy{padding:16px 18px calc(22px + env(safe-area-inset-bottom))!important}
  .growth-popup-v8 .growth-popup-copy h2{font-size:20px!important}
}
@media(prefers-reduced-motion:reduce){.miqyas-welcome-popup,.miqyas-nudge-popup{animation:none!important}}


/* Avoid stacking sticky CTAs behind the small cinematic popups */
body.miqyas-welcome-active #stickyGrowthBar,
body.miqyas-welcome-active #activityToast,
body.miqyas-welcome-active #mobileWhatsappFab,
body:has(#miqyasNudgePopup:not([hidden])) #stickyGrowthBar,
body:has(#miqyasNudgePopup:not([hidden])) #activityToast,
body:has(#miqyasNudgePopup:not([hidden])) #mobileWhatsappFab{
 opacity:0!important;pointer-events:none!important
}
