/*
 * The site home page's «مستكشف بيت الوطن» welcome card (includes/bayet-popup.php,
 * assets/js/bayet-popup.js). A centred card on wide screens; a sheet rising from
 * the bottom on phones. Heights use dvh where the browser has it, so a phone's
 * address bar never hides the buttons. Shown with showModal(), so it sits in the
 * top layer above the site header.
 */
.bw-pop{position:fixed;margin:auto;padding:0;border:0;width:calc(100% - 32px);max-width:460px;
  min-height:min(560px,calc(100vh - 40px));max-height:calc(100vh - 40px);
  border-radius:28px;overflow:hidden;color:#fff;text-align:right;direction:rtl;
  background:radial-gradient(circle at 85% 10%,#1F8467 0,#0E5A47 40%,#072E24 100%);
  font-family:"Cairo","Tajawal","Segoe UI",Tahoma,sans-serif;box-shadow:0 40px 100px rgba(0,0,0,.5)}
@supports (height:100dvh){.bw-pop{min-height:min(560px,calc(100dvh - 40px));max-height:calc(100dvh - 40px)}}
.bw-pop[open]{display:flex;flex-direction:column;animation:bwIn .28s ease-out}
.bw-pop::backdrop{background:rgba(4,16,12,.62);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.bw-pop .bw-art{position:absolute;inset:0 0 44% 0}
.bw-pop .bw-art svg{width:100%;height:100%;display:block}
.bw-pop .bw-shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,22,16,.5) 0%,rgba(4,22,16,0) 22%,rgba(4,22,16,0) 40%,rgba(4,22,16,.92) 60%,rgba(4,22,16,.97) 100%)}
.bw-pop .bw-top{position:relative;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;flex:0 0 auto}
.bw-pop .bw-badge{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.18);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);font-weight:700;font-size:14px}
.bw-pop .bw-badge i{width:8px;height:8px;border-radius:50%;background:#F2C66D}
.bw-pop .bw-x{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.18);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.bw-pop .bw-x:hover{background:rgba(255,255,255,.32)}
.bw-pop .bw-body{position:relative;margin-top:auto;padding:24px 26px 22px;display:flex;flex-direction:column;gap:14px;
  overflow-x:hidden;overflow-y:auto;scrollbar-width:none;min-height:0}
.bw-pop h2{margin:0;font-family:inherit;font-weight:800;font-size:29px;line-height:1.4;color:#fff;text-wrap:balance}
.bw-pop h2 span{color:#F2C66D;font-size:23px}
.bw-pop p{margin:0;font-size:16px;line-height:1.85;color:#EAF2EF}
.bw-pop .bw-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.bw-pop .bw-go{flex:1 1 200px;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 22px 0 8px;
  border-radius:999px;background:#fff;color:#0E5A47!important;font-weight:700;font-size:17px;text-decoration:none!important;cursor:pointer}
.bw-pop .bw-go:hover{background:#F2C66D}
.bw-pop .bw-go b{width:38px;height:38px;border-radius:50%;background:#0E5A47;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:400;flex:none}
.bw-pop .bw-later{min-height:54px;padding:0 26px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(255,255,255,.1);
  color:#fff;font:inherit;font-weight:600;font-size:16px;cursor:pointer}
.bw-pop .bw-later:hover{background:rgba(255,255,255,.22)}
.bw-pop .bw-chk{display:flex;align-items:center;gap:8px;font-size:13px;color:#DCE8E4;cursor:pointer;margin:0}
.bw-pop .bw-chk input{width:16px;height:16px;margin:0;accent-color:#F2C66D}
.bw-pop button:focus-visible,.bw-pop a:focus-visible,.bw-pop input:focus-visible{outline:2px solid #F2C66D;outline-offset:2px}
html.bw-lock{overflow:hidden}
@keyframes bwIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (max-width:520px){
  .bw-pop{margin:auto auto 0;max-width:none;width:100%;border-radius:28px 28px 0 0;min-height:min(520px,88vh);max-height:92vh;
    padding-bottom:env(safe-area-inset-bottom,0px)}
  @supports (height:100dvh){.bw-pop{min-height:min(520px,88dvh);max-height:92dvh}}
  .bw-pop h2{font-size:24px}
  .bw-pop h2 span{font-size:19px}
  .bw-pop p{font-size:15px;line-height:1.75}
  .bw-pop{min-height:0}
  .bw-pop .bw-art{inset:0 0 auto 0;height:240px}
  .bw-pop .bw-shade{background:linear-gradient(180deg,rgba(4,22,16,.5) 0,rgba(4,22,16,0) 60px,rgba(4,22,16,0) 140px,rgba(4,22,16,.94) 236px,rgba(4,22,16,.97) 100%)}
  .bw-pop .bw-body{margin-top:150px;padding:20px 20px 18px;gap:12px}
  .bw-pop .bw-later{flex:1 1 100%}
}
@media (max-height:560px) and (min-width:521px){.bw-pop .bw-art{inset:0 0 30% 0}.bw-pop h2{font-size:24px}}
@media (prefers-reduced-motion:reduce){.bw-pop[open]{animation:none}}
