
/* =========================================================
   ZOOM BAC 2027 — PREMIUM STAGE 4A
   VISUAL / SAFE ENHANCEMENT LAYER
   ========================================================= */

/* ---------- SPLASH ---------- */
#zbSplash{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 38%,
      color-mix(in srgb,var(--accent) 13%,transparent),
      transparent 31%),
    linear-gradient(160deg,#07101e,#09182a 55%,#07111f);
  opacity:1;
  transition:opacity .30s ease,visibility .30s ease;
}

#zbSplash.hide{
  opacity:0;
  visibility:hidden;
}

.zbSplashCore{
  text-align:center;
  transform:translateY(-5px);
}

.zbSplashMark{
  width:76px;
  height:76px;
  margin:auto;
  border-radius:25px;
  display:grid;
  place-items:center;
  position:relative;
  color:var(--accent,#d9ad52);
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.025));
  border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);
  box-shadow:
    0 18px 60px rgba(0,0,0,.30),
    0 0 42px color-mix(in srgb,var(--accent) 16%,transparent),
    inset 0 1px 0 rgba(255,255,255,.10);
  animation:zbSplashMark .72s cubic-bezier(.2,.8,.2,1);
}

.zbSplashMark::before{
  content:"";
  position:absolute;
  inset:-9px;
  border-radius:31px;
  border:1px solid color-mix(in srgb,var(--accent) 13%,transparent);
}

.zbSplashMark svg{
  width:38px;
  height:38px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.zbSplashTitle{
  margin-top:20px;
  font-weight:900;
  font-size:19px;
  color:#fff;
  letter-spacing:.1px;
}

.zbSplashSub{
  margin-top:6px;
  color:rgba(255,255,255,.48);
  font-size:12px;
}

.zbSplashLine{
  width:74px;
  height:2px;
  overflow:hidden;
  margin:17px auto 0;
  border-radius:999px;
  background:rgba(255,255,255,.07);
}

.zbSplashLine::after{
  content:"";
  display:block;
  width:35%;
  height:100%;
  border-radius:inherit;
  background:var(--accent,#d9ad52);
  box-shadow:0 0 10px var(--accent,#d9ad52);
  animation:zbSplashLoad .65s ease-in-out;
}

@keyframes zbSplashMark{
  from{opacity:0;transform:scale(.72) rotate(-5deg)}
  to{opacity:1;transform:scale(1)}
}

@keyframes zbSplashLoad{
  from{transform:translateX(-210%)}
  to{transform:translateX(205%)}
}

/* ---------- THEME CARDS FIX ---------- */
/* إزالة شكل المستطيل الصغير داخل البطاقة */
.themeChoice{
  position:relative!important;
  min-height:150px!important;
  overflow:hidden!important;
  padding:0!important;
  isolation:isolate;
  background:var(--panel)!important;
}

.themeChoice .themePreview{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  border-radius:inherit!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  transform:scale(1.01);
  transition:transform .35s ease,filter .35s ease;
  z-index:0;
}

/* بعض نسخ الـtheme UI تضع الصورة داخل عنصر آخر */
.themeChoice > [style*="background-image"]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background-size:cover!important;
  background-position:center!important;
  border-radius:inherit!important;
}

.themeChoice::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(to top,
      rgba(3,8,15,.92) 0%,
      rgba(3,8,15,.42) 52%,
      rgba(3,8,15,.10) 100%);
}

.themeChoice::after{
  content:"";
  position:absolute;
  inset:1px;
  z-index:3;
  border-radius:inherit;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.055);
}

.themeChoice .themeChoiceInfo,
.themeChoice > div:not(.themePreview){
  position:relative;
  z-index:2;
}

.themeChoice .themeChoiceInfo{
  position:absolute!important;
  inset:auto 10px 10px 10px!important;
  width:auto!important;
  min-height:58px;
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  padding:11px 12px!important;
  border-radius:16px!important;
  background:rgba(5,11,20,.58)!important;
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);
  box-shadow:0 9px 25px rgba(0,0,0,.17);
}

.themeChoice.active,
.themeChoice.selected{
  box-shadow:
    0 0 0 1px var(--accent),
    0 12px 34px color-mix(in srgb,var(--accent) 12%,transparent)!important;
}

.themeChoice:active .themePreview{
  transform:scale(1.045);
}

/* ---------- PREMIUM SUBJECT CARDS ---------- */
.subjectCard{
  min-height:205px!important;
  border-radius:28px!important;
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  padding:26px!important;
  background:
    radial-gradient(circle at 12% 12%,
      color-mix(in srgb,var(--accent) 8%,transparent),
      transparent 35%),
    linear-gradient(145deg,
      color-mix(in srgb,var(--panel2) 96%,transparent),
      color-mix(in srgb,var(--panel) 98%,transparent))!important;

  border:1px solid color-mix(in srgb,var(--accent) 14%,var(--line))!important;

  box-shadow:
    0 18px 40px rgba(0,0,0,.11),
    inset 0 1px 0 rgba(255,255,255,.045);

  transition:
    transform .18s ease,
    border-color .22s ease,
    box-shadow .22s ease!important;
}

/* premium abstract subject artwork — no external image yet */
.subjectCard::before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  left:-75px;
  top:-80px;
  z-index:-1;
  border-radius:50%;
  background:
    radial-gradient(circle,
      color-mix(in srgb,var(--accent) 18%,transparent),
      color-mix(in srgb,var(--accent) 3%,transparent) 55%,
      transparent 72%);
  filter:blur(1px);
}

.subjectCard::after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  left:-45px;
  bottom:-95px;
  z-index:-1;
  border-radius:42px;
  transform:rotate(25deg);
  border:1px solid color-mix(in srgb,var(--accent) 11%,transparent);
  background:
    linear-gradient(145deg,
      color-mix(in srgb,var(--accent) 5%,transparent),
      transparent);
}

.subjectCard:hover{
  border-color:color-mix(in srgb,var(--accent) 27%,var(--line))!important;
}

.subjectCard:active{
  transform:scale(.982)!important;
}

/* Subject number */
.subjectCard .num,
.subjectCard .number,
.subjectCard [class*="number"],
.subjectCard [class*="num"]{
  text-shadow:
    0 7px 25px color-mix(in srgb,var(--accent) 16%,transparent);
}

/* premium corner decoration */
.zbSubjectDecoration{
  position:absolute;
  left:22px;
  top:22px;
  width:55px;
  height:55px;
  border-radius:18px;
  pointer-events:none;
  opacity:.55;
  background:
    linear-gradient(145deg,
      color-mix(in srgb,var(--accent) 10%,transparent),
      transparent);
  border:1px solid color-mix(in srgb,var(--accent) 11%,transparent);
}

.zbSubjectDecoration::before,
.zbSubjectDecoration::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:var(--accent);
  opacity:.38;
}

.zbSubjectDecoration::before{
  width:16px;
  height:2px;
  left:18px;
  top:22px;
}

.zbSubjectDecoration::after{
  width:2px;
  height:16px;
  left:25px;
  top:15px;
}

/* ---------- CHAPTER / LESSON POLISH ---------- */
.chapter,
.topic,
.lessonCard,
.lesson-card{
  border-radius:22px!important;
  border-color:color-mix(in srgb,var(--accent) 11%,var(--line))!important;
  box-shadow:
    0 12px 30px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.035);
}

/* ---------- SKELETON ---------- */
.zbSkeleton{
  position:relative;
  overflow:hidden;
  pointer-events:none;
}

.zbSkeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-110%);
  background:
    linear-gradient(
      100deg,
      transparent 20%,
      rgba(255,255,255,.055) 45%,
      rgba(255,255,255,.11) 50%,
      rgba(255,255,255,.055) 55%,
      transparent 80%
    );
  animation:zbSkeletonMove 1.35s infinite;
}

@keyframes zbSkeletonMove{
  to{transform:translateX(110%)}
}

/* ---------- OFFLINE BANNER ---------- */
#zbOffline{
  position:fixed;
  left:14px;
  right:14px;
  top:calc(12px + env(safe-area-inset-top));
  z-index:99990;
  max-width:620px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  color:#fff;
  background:rgba(18,23,31,.94);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 15px 40px rgba(0,0,0,.27);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transform:translateY(-150%);
  opacity:0;
  transition:.3s ease;
}

#zbOffline.show{
  transform:translateY(0);
  opacity:1;
}

.zbOfflineIcon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#ffbf62;
  background:rgba(255,166,44,.10);
  border:1px solid rgba(255,183,75,.17);
}

.zbOfflineIcon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.zbOfflineText{
  min-width:0;
  flex:1;
}

.zbOfflineText b{
  display:block;
  font-size:13px;
  margin-bottom:2px;
}

.zbOfflineText span{
  display:block;
  color:rgba(255,255,255,.55);
  font-size:11px;
  line-height:1.5;
}

#zbOfflineRetry{
  flex:0 0 auto;
  border:0;
  border-radius:11px;
  padding:8px 10px;
  font-family:inherit;
  font-weight:800;
  font-size:11px;
  color:#111;
  background:#f1c75d;
}

/* ---------- ONLINE RESTORED ---------- */
#zbOnlineToast{
  position:fixed;
  left:50%;
  bottom:calc(20px + env(safe-area-inset-bottom));
  transform:translate(-50%,30px);
  z-index:99991;
  padding:10px 15px;
  border-radius:999px;
  background:rgba(17,28,25,.94);
  border:1px solid rgba(87,220,157,.20);
  color:#bff6dc;
  font-size:12px;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transition:.28s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}

#zbOnlineToast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* ---------- THEMED GLASS ---------- */
html:not([data-theme="basic"]) .subjectCard,
html:not([data-theme="basic"]) .chapter,
html:not([data-theme="basic"]) .topic{
  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:430px){
  .themeChoice{
    min-height:142px!important;
  }

  .subjectCard{
    min-height:195px!important;
    padding:23px!important;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media(prefers-reduced-motion:reduce){
  #zbSplash,
  .zbSplashMark,
  .zbSplashLine::after,
  .zbSkeleton::after{
    animation:none!important;
    transition:none!important;
  }
}

/* SUBJECT IMAGE CARDS FIX */
.subjectCard .zbSubjectDecoration{
  display:none!important;
}

/* FULL SUBJECT IMAGE CARD */
.subjectCard{
  position:relative!important;
  overflow:hidden!important;
  min-height:225px!important;
  border-radius:28px!important;

  background:
    linear-gradient(
      to top,
      rgba(3,8,16,.94) 0%,
      rgba(3,8,16,.58) 38%,
      rgba(3,8,16,.10) 75%,
      transparent 100%
    ),
    var(--subject-image,linear-gradient(145deg,#12263d,#091726))!important;

  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;

  border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line))!important;
  box-shadow:
    0 18px 42px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.05)!important;
}

.subjectCard:active{
  transform:scale(.98)!important;
}


/* ELEGANT THEME LABEL */
.themeChoice{
  overflow:hidden!important;
}

.themeChoice .themeChoiceInfo{
  position:absolute!important;
  right:10px!important;
  left:10px!important;
  bottom:9px!important;
  top:auto!important;

  padding:7px 10px!important;
  min-height:0!important;
  border-radius:12px!important;

  background:rgba(5,10,18,.48)!important;
  border:1px solid rgba(255,255,255,.10)!important;

  backdrop-filter:blur(9px)!important;
  -webkit-backdrop-filter:blur(9px)!important;

  box-shadow:0 5px 15px rgba(0,0,0,.12)!important;
}

.themeChoice .themeChoiceInfo strong,
.themeChoice .themeChoiceInfo b{
  font-size:14px!important;
}

.themeChoice .themeChoiceInfo span,
.themeChoice .themeChoiceInfo small{
  font-size:9px!important;
  opacity:.68!important;
}

/* SUBJECT PREMIUM IMAGES */
.subjectCard:nth-child(1){--subject-image:url("https://i.ibb.co/PvnMjHwH/file-000000003c0481f4b8eba6ec4a0cd505.png")}
.subjectCard:nth-child(2){--subject-image:url("https://i.ibb.co/FLvbnksn/file-000000008f5c81f49e1d2c2327c9ff10.png")}
.subjectCard:nth-child(3){--subject-image:url("https://i.ibb.co/xt4PD3jS/file-000000002aa481f4991d98a5282df372.png")}
.subjectCard:nth-child(4){--subject-image:url("https://i.ibb.co/BVRnn01X/file-00000000faf881f49ea448be59faf078.png")}
.subjectCard:nth-child(5){--subject-image:url("https://i.ibb.co/5x2ZqvX3/file-000000008e248246893234acc8448325.png")}
.subjectCard:nth-child(6){--subject-image:url("https://i.ibb.co/fzRZD4Nk/file-00000000005881f49984217de5535282.png")}
.subjectCard:nth-child(7){--subject-image:url("https://i.ibb.co/spLHWcZM/file-00000000f64882469ca1598d693ba94c.png")}
.subjectCard:nth-child(8){--subject-image:url("https://i.ibb.co/rRR8kv6d/file-00000000266c81f4913acb8d0b3945f4.png")}
.subjectCard:nth-child(9){--subject-image:url("https://i.ibb.co/R4QG9723/file-00000000decc8246bb39de806c59002a.png")}


/* THEME LABEL FINAL */
.themeChoice .themeChoiceInfo{
  right:8px!important;
  left:8px!important;
  bottom:7px!important;
  padding:5px 9px!important;
  min-height:38px!important;
  border-radius:11px!important;
  background:rgba(4,9,16,.38)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
  box-shadow:none!important;
}

.themeChoice .themeChoiceInfo strong,
.themeChoice .themeChoiceInfo b{
  font-size:13px!important;
  line-height:1.2!important;
}

.themeChoice .themeChoiceInfo span,
.themeChoice .themeChoiceInfo small{
  font-size:8px!important;
  opacity:.58!important;
}

/* THEME LABEL - NO BLACK BUTTON */
.themeChoice .themeChoiceInfo{
  right:14px!important;
  left:14px!important;
  bottom:10px!important;
  padding:4px 2px!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}

.themeChoice .themeChoiceInfo b,
.themeChoice .themeChoiceInfo strong{
  font-size:15px!important;
  font-weight:800!important;
  text-shadow:0 2px 8px rgba(0,0,0,.9)!important;
}

.themeChoice .themeChoiceInfo small,
.themeChoice .themeChoiceInfo span{
  font-size:9px!important;
  opacity:.78!important;
  text-shadow:0 2px 7px rgba(0,0,0,.95)!important;
}

/* RESUME CARD */
.resumeCard{
  position:relative;
  overflow:hidden;
  margin:0 0 18px;
  padding:16px 18px;
  border-radius:22px;
  cursor:pointer;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--accent) 18%,var(--card)),
    color-mix(in srgb,var(--accent2) 8%,var(--card))
  );
  border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);
  box-shadow:0 12px 30px rgba(0,0,0,.14);
}

.resumeCard::before{
  content:"▶";
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:27px;
  color:var(--accent);
}

.resumeCard .resumeLabel{
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}

.resumeCard .resumeTitle{
  color:var(--text);
  font-size:17px;
  font-weight:900;
}

.resumeCard .resumeHint{
  color:var(--muted);
  font-size:11px;
  margin-top:4px;
}

.resumeCard:active{
  transform:scale(.985);
}

/* PER SUBJECT RESUME */
.subjectResume{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:10px;
  padding:6px 10px;
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  color:var(--text);
  background:color-mix(in srgb,var(--accent) 25%,rgba(5,10,20,.72));
  border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 5px 15px rgba(0,0,0,.15);
}


/* SUBJECT PROGRESS */
.subjectProgress{
  margin:0 0 14px;
  padding:15px 17px;
  border-radius:19px;
  background:rgba(10,18,38,.72);
  border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

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

.subjectProgressTitle{
  font-size:13px;
  font-weight:800;
  color:var(--text);
}

.subjectProgressPercent{
  font-size:16px;
  font-weight:900;
  color:var(--accent);
}

.subjectProgressText{
  margin-top:5px;
  font-size:11px;
  color:var(--muted);
}

.subjectProgressBar{
  height:7px;
  margin-top:11px;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.09);
}

.subjectProgressFill{
  height:100%;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  transition:width .5s ease;
}


/* HOME FINAL UPGRADE 2027 */

/* LIVE button */
#zoomLiveBtn{
  position:relative;
  overflow:visible;
  min-height:50px;
}

#zoomLiveBtn .zoomLogo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#2d8cff;
  box-shadow:0 5px 16px rgba(45,140,255,.28);
}

#zoomLiveBtn .zoomLogo svg{
  width:20px;
  height:20px;
  fill:#fff;
  stroke:none;
}

.zbLiveBadge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-inline-start:8px;
  padding:3px 7px;
  border-radius:999px;
  background:#e92b3a;
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.6px;
  box-shadow:0 0 0 0 rgba(233,43,58,.45);
  animation:zbLivePulse 1.8s infinite;
}

.zbLiveBadge::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fff;
}

@keyframes zbLivePulse{
  0%{box-shadow:0 0 0 0 rgba(233,43,58,.42)}
  70%{box-shadow:0 0 0 9px rgba(233,43,58,0)}
  100%{box-shadow:0 0 0 0 rgba(233,43,58,0)}
}

/* IMPORTANT */
#importantBtn{
  position:relative;
  border-color:rgba(255,70,82,.75)!important;
  background:linear-gradient(135deg,#c9182b,#8f0d1b)!important;
  color:#fff!important;
  box-shadow:
    0 8px 24px rgba(201,24,43,.25),
    0 0 0 0 rgba(238,45,65,.38)!important;
  animation:zbImportantPulse 2s ease-out infinite;
}

@keyframes zbImportantPulse{
  0%{
    box-shadow:
      0 8px 24px rgba(201,24,43,.25),
      0 0 0 0 rgba(238,45,65,.42)
  }
  70%{
    box-shadow:
      0 8px 24px rgba(201,24,43,.30),
      0 0 0 10px rgba(238,45,65,0)
  }
  100%{
    box-shadow:
      0 8px 24px rgba(201,24,43,.25),
      0 0 0 0 rgba(238,45,65,0)
  }
}

/* Blood theme: use gold instead of red */
body[data-theme="blood"] #importantBtn{
  background:linear-gradient(135deg,#f1c65b,#b77b16)!important;
  border-color:rgba(255,226,145,.85)!important;
  color:#241300!important;
  box-shadow:
    0 8px 24px rgba(255,194,62,.22),
    0 0 0 0 rgba(255,218,112,.42)!important;
  animation:zbImportantGold 2s ease-out infinite;
}

@keyframes zbImportantGold{
  0%{box-shadow:0 8px 24px rgba(255,194,62,.22),0 0 0 0 rgba(255,218,112,.45)}
  70%{box-shadow:0 8px 24px rgba(255,194,62,.28),0 0 0 10px rgba(255,218,112,0)}
  100%{box-shadow:0 8px 24px rgba(255,194,62,.22),0 0 0 0 rgba(255,218,112,0)}
}

/* BAC countdown button */
.bacCountdownBtn{
  width:100%;
  min-height:50px;
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:15px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,transparent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb,var(--accent) 18%,rgba(7,15,29,.88)),
      rgba(7,15,29,.76)
    );
  color:var(--text);
  font-weight:900;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 9px 25px rgba(0,0,0,.14);
}

.bacHourglass{
  display:inline-flex;
  width:23px;
  height:23px;
  align-items:center;
  justify-content:center;
}

.bacHourglass svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:var(--accent);
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.bacCountdownBtn:active{
  transform:scale(.985);
}

/* Modal content */
.zbModalHero{
  text-align:center;
  margin-bottom:15px;
}

.zbModalIcon{
  width:58px;
  height:58px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:color-mix(in srgb,var(--accent) 16%,var(--card));
  border:1px solid color-mix(in srgb,var(--accent) 32%,transparent);
}

.zbModalIcon svg{
  width:31px;
  height:31px;
}

.zbZoomIcon{
  background:#2d8cff;
  border-color:#5ba5ff;
  box-shadow:0 10px 25px rgba(45,140,255,.24);
}

.zbZoomIcon svg{
  fill:#fff;
}

.zbModalSub{
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.zbLiveSchedule{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:15px 0;
  padding:13px 15px;
  border-radius:15px;
  background:color-mix(in srgb,#2d8cff 12%,var(--card));
  border:1px solid rgba(45,140,255,.25);
}

.zbLiveSchedule strong{
  font-size:20px;
  color:#65aaff;
}

.zbCountdownGrid{
  direction:ltr;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin:16px 0;
}

.zbTimeBox{
  padding:12px 3px 9px;
  border-radius:14px;
  text-align:center;
  background:color-mix(in srgb,var(--accent) 11%,var(--card));
  border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);
}

.zbTimeBox b{
  display:block;
  color:var(--text);
  font-size:21px;
  line-height:1;
}

.zbTimeBox span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:9px;
}

.zbBacDate{
  text-align:center;
  padding:11px;
  border-radius:13px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  background:color-mix(in srgb,var(--accent) 8%,transparent);
}

.zbInstallChoices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:15px 0;
}

.zbInstallChoice{
  min-height:92px;
  border-radius:17px;
  border:1px solid color-mix(in srgb,var(--accent) 26%,var(--line));
  background:color-mix(in srgb,var(--accent) 8%,var(--card));
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}

.zbInstallChoice svg{
  display:block;
  width:27px;
  height:27px;
  margin:0 auto 8px;
  fill:none;
  stroke:var(--accent);
  stroke-width:1.7;
}

.zbInstallSteps{
  margin:14px 0;
  padding:0 20px 0 0;
  color:var(--text);
  font-size:12px;
  line-height:2;
}

.zbInstallNote{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-size:11px;
  line-height:1.7;
  background:rgba(255,255,255,.04);
}

.zbBackChoice{
  margin-top:9px;
  width:100%;
  min-height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--muted);
}

@media(prefers-reduced-motion:reduce){
  #importantBtn,
  .zbLiveBadge{
    animation:none!important;
  }
}

/* ===== MODAL POSITION FINAL FIX ===== */
#modal{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:18px !important;
  box-sizing:border-box !important;

  display:none !important;
  align-items:center !important;
  justify-content:center !important;

  z-index:99999 !important;
  overflow-y:auto !important;
}

#modal.show{
  display:flex !important;
}

#modal > div,
#modal .modalBox,
#modal .modalCard,
#modal .modalContent{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;

  width:min(100%,520px) !important;
  max-width:520px !important;
  margin:auto !important;
  box-sizing:border-box !important;
}

@media(max-width:600px){
  #modal{
    padding:14px !important;
  }

  #modal > div,
  #modal .modalBox,
  #modal .modalCard,
  #modal .modalContent{
    width:100% !important;
    max-width:100% !important;
  }
}

/* ===== HOME SCALE / RETURN FINAL FIX ===== */
#home.screen,
#home.screen.active,
body #home.screen,
body #home.screen.active{
  transform:none !important;
  scale:1 !important;
  zoom:1 !important;
  translate:none !important;

  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  left:auto !important;
  right:auto !important;
}

#home.screen.active{
  display:block !important;
}

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


/* =========================================================
   FINAL HOME MODALS + IMPORTANT + BAC COUNTDOWN
   ========================================================= */

/* IMPORTANT — attention pulse */
#importantBtn{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#f11932,#a90018)!important;
  border:1px solid rgba(255,102,115,.9)!important;
  color:#fff!important;
  font-weight:950!important;
  box-shadow:0 8px 30px rgba(231,17,45,.42)!important;
  animation:finalImportantPulse 1.45s ease-in-out infinite!important;
}

#importantBtn::after{
  content:""!important;
  position:absolute!important;
  inset:-3px!important;
  border-radius:inherit!important;
  border:2px solid rgba(255,69,91,.75)!important;
  opacity:0;
  animation:finalImportantRing 1.45s ease-out infinite!important;
  pointer-events:none!important;
}

@keyframes finalImportantPulse{
  0%,100%{
    transform:scale(1);
    box-shadow:0 8px 26px rgba(231,17,45,.35);
  }
  50%{
    transform:scale(1.025);
    box-shadow:0 8px 38px rgba(255,28,58,.7);
  }
}

@keyframes finalImportantRing{
  0%{transform:scale(.98);opacity:.75}
  100%{transform:scale(1.09);opacity:0}
}

/* Blood theme contrast */
body[data-theme="blood"] #importantBtn{
  background:linear-gradient(135deg,#ffd86a,#d99b19)!important;
  border-color:#ffe9a6!important;
  color:#2a1700!important;
  box-shadow:0 8px 32px rgba(255,199,55,.48)!important;
}

body[data-theme="blood"] #importantBtn::after{
  border-color:#ffe39a!important;
}

/* ===== Center modal correctly ===== */
#modal{
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:18px!important;
  box-sizing:border-box!important;
  z-index:999999!important;

  display:none!important;
  align-items:center!important;
  justify-content:center!important;

  background:rgba(2,7,20,.66)!important;
  backdrop-filter:blur(13px)!important;
  -webkit-backdrop-filter:blur(13px)!important;

  overflow-y:auto!important;
}

#modal.show{
  display:flex!important;
}

/* Whatever wrapper the original modal uses */
#modal > div{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;

  width:min(92vw,470px)!important;
  max-width:470px!important;
  max-height:88vh!important;
  overflow-y:auto!important;

  margin:auto!important;
  padding:25px 22px!important;
  box-sizing:border-box!important;

  border-radius:27px!important;
  border:1px solid rgba(143,158,255,.28)!important;

  background:
    linear-gradient(145deg,rgba(15,25,52,.97),rgba(5,12,31,.98))!important;

  box-shadow:
    0 30px 90px rgba(0,0,0,.55),
    inset 0 1px rgba(255,255,255,.06)!important;
}

/* Modal hero */
.finalModalHero{
  text-align:center;
  margin-bottom:18px;
}

.finalModalIcon{
  width:70px;
  height:70px;
  margin:0 auto 13px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;

  background:linear-gradient(145deg,
    color-mix(in srgb,var(--accent) 28%,#172342),
    color-mix(in srgb,var(--accent) 12%,#091229));

  border:1px solid color-mix(in srgb,var(--accent) 48%,transparent);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.finalModalIcon svg{
  width:38px;
  height:38px;
}

.finalModalHero h2{
  margin:5px 0 6px!important;
  font-size:25px!important;
  line-height:1.4!important;
}

.finalModalHero p{
  margin:0!important;
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:1.8!important;
}

/* Zoom */
.finalZoomIcon{
  background:linear-gradient(145deg,#55a8ff,#1679ef)!important;
  border-color:#80c0ff!important;
  box-shadow:0 13px 34px rgba(45,140,255,.3)!important;
}

.finalZoomIcon svg{
  fill:#fff!important;
}

.finalLive{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  margin-bottom:8px;
  border-radius:999px;
  background:#e92742;
  color:white;
  font-size:10px;
  font-weight:950;
  letter-spacing:.7px;
}

.finalLive::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:white;
  box-shadow:0 0 10px white;
}

.finalSchedule{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;

  margin:17px 0;
  padding:15px 17px;

  border-radius:18px;
  background:linear-gradient(135deg,rgba(45,140,255,.17),rgba(104,81,255,.09));
  border:1px solid rgba(70,157,255,.35);
}

.finalSchedule span{
  font-weight:800;
}

.finalSchedule strong{
  color:#55aaff;
  font-size:24px;
}

.finalInfo{
  padding:14px;
  margin:13px 0;
  border-radius:16px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  line-height:1.9;
  font-size:12px;
}

/* Important modal */
.finalWarningIcon{
  color:#ff5267;
  background:linear-gradient(145deg,rgba(255,45,72,.2),rgba(116,8,30,.18))!important;
  border-color:rgba(255,77,99,.38)!important;
}

.finalWarningBox{
  margin:16px 0;
  padding:15px 16px;
  border-radius:17px;
  border-right:4px solid #ff4b62;
  background:linear-gradient(90deg,rgba(255,45,72,.08),rgba(255,45,72,.14));
  line-height:1.9;
  font-weight:750;
}

/* ===== BAC COUNTDOWN ===== */
.bacFinalHeader{
  text-align:center;
}

.bacOfficial{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:7px 14px;
  margin-bottom:9px;

  border-radius:999px;
  color:#dfeaff;
  border:1px solid rgba(65,174,255,.5);
  background:rgba(20,90,170,.12);
  font-size:11px;
  font-weight:800;
}

.bacFinalHeader h2{
  margin:3px 0!important;
  font-size:27px!important;
  background:linear-gradient(90deg,#fff,#75c7ff,#b58cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.bacFinalHeader strong{
  display:block;
  margin-top:3px;
  color:#ffc64b;
  font-size:28px;
}

.bacQuote{
  margin:13px 0 18px;
  padding:10px 12px;
  text-align:center;
  border-radius:15px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  color:#e7e9f5;
  font-size:11px;
}

/* four circular counters */
.bacRings{
  direction:rtl;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin:10px 0 19px;
}

.bacRing{
  --ring:#37a9ff;

  position:relative;
  aspect-ratio:1/1;
  min-width:0;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  border-radius:50%;

  background:
    radial-gradient(circle at center,#0b1632 56%,transparent 58%),
    conic-gradient(var(--ring) 0 84%,rgba(255,255,255,.09) 84% 100%);

  box-shadow:
    0 0 20px color-mix(in srgb,var(--ring) 23%,transparent),
    inset 0 0 18px rgba(0,0,0,.4);
}

.bacRing::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:50%;
  border:1px solid color-mix(in srgb,var(--ring) 35%,transparent);
  pointer-events:none;
}

.bacRing b{
  position:relative;
  z-index:2;
  font-size:22px;
  line-height:1;
  color:#fff;
  font-variant-numeric:tabular-nums;
}

.bacRing span{
  position:relative;
  z-index:2;
  margin-top:6px;
  font-size:8px;
  color:#d8def1;
}

.bacDays{--ring:#ffad25}
.bacHours{--ring:#25b8ff}
.bacMinutes{--ring:#2ed96b}
.bacSeconds{--ring:#a961ff}

.bacStartCard{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:4px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(22,199,120,.13),rgba(31,132,255,.08));
  border:1px solid rgba(65,221,156,.3);
}

.bacStartIcon{
  flex:0 0 45px;
  width:45px;
  height:45px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(38,213,126,.17);
  color:#56efaa;
}

.bacStartIcon svg{
  width:25px;
  height:25px;
}

.bacStartText{
  text-align:right;
}

.bacStartText b{
  display:block;
  font-size:12px;
  margin-bottom:3px;
}

.bacStartText span{
  color:var(--muted);
  font-size:11px;
}

/* ===== INSTALLER ===== */

.installDeviceGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:17px 0 5px;
}

.installDevice{
  min-height:120px;
  padding:14px 8px;

  border-radius:21px;
  border:1px solid rgba(130,143,255,.27);

  background:linear-gradient(145deg,rgba(79,73,175,.15),rgba(255,255,255,.035));
  color:#fff;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;

  font-weight:900;
  cursor:pointer;
}

.installDevice:active{
  transform:scale(.97);
}

.installDevice svg{
  width:42px;
  height:42px;
}

/* Apple */
.appleLogo svg{
  fill:#fff;
  stroke:none;
}

/* Android */
.androidLogo{
  color:#3DDC84;
}

.androidLogo svg{
  fill:currentColor;
  stroke:none;
}

.deviceGeneric svg{
  fill:none;
  stroke:#9b8cff;
  stroke-width:1.7;
}

.installSteps{
  padding:0 22px 0 0;
  margin:15px 0;
  color:#e3e6f2;
  line-height:2.1;
  font-size:12px;
}

.installSteps b{
  color:#fff;
}

.finalAction{
  width:100%;
  min-height:50px;
  margin-top:12px;
  border:0;
  border-radius:16px;
  background:linear-gradient(100deg,#58c3ff,#9c7cff);
  color:#071020;
  font-weight:950;
  font-size:14px;
}

.finalSecondary{
  width:100%;
  min-height:43px;
  margin-top:8px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.035);
  color:#c9cede;
}

@media(max-width:380px){
  .bacRings{gap:4px}
  .bacRing b{font-size:18px}
  .bacRing span{font-size:7px}
  #modal > div{padding:22px 16px!important}
}

@media(prefers-reduced-motion:reduce){
  #importantBtn,
  #importantBtn::after{
    animation:none!important;
  }
}


/* ===== ABSOLUTE FINAL MODAL CENTER FIX ===== */

#modal.show{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  margin:0!important;
  padding:16px!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  overflow:auto!important;
  box-sizing:border-box!important;
}

#modal.show .modal,
#modal.show .modalBox,
#modal.show .modalCard,
#modal.show .modalContent,
#modal.show > div{
  position:relative!important;

  top:auto!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;

  float:none!important;
  translate:none!important;
  transform:none!important;

  width:min(94vw,480px)!important;
  min-width:0!important;
  max-width:480px!important;

  height:auto!important;
  min-height:0!important;
  max-height:90dvh!important;

  margin:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
}

/* Prevent old modal rules from squeezing content */
#modal.show .finalModalHero,
#modal.show .finalInfo,
#modal.show .finalWarningBox,
#modal.show .finalSchedule,
#modal.show .bacFinalHeader,
#modal.show .bacQuote,
#modal.show .bacRings,
#modal.show .bacStartCard,
#modal.show .installDeviceGrid,
#modal.show .installSteps{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  transform:none!important;
}

/* Better countdown proportions */
#modal.show .bacRings{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}

#modal.show .bacRing{
  width:100%!important;
  min-width:0!important;
}

/* Important text must stay readable */
#modal.show .finalWarningBox{
  font-size:14px!important;
  line-height:2!important;
}

/* Mobile */
@media(max-width:520px){
  #modal.show{
    padding:14px!important;
  }

  #modal.show .modal,
  #modal.show .modalBox,
  #modal.show .modalCard,
  #modal.show .modalContent,
  #modal.show > div{
    width:94vw!important;
    max-width:430px!important;
  }
}


/* ===== TRUE FINAL MODAL RESET ===== */
body #modal{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  width:100%!important;
  height:100%!important;
  padding:18px!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:auto!important;
  transform:none!important;
}

body #modal.show{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

body #modal > .modalBox{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;

  width:min(92vw,500px)!important;
  max-width:500px!important;
  min-width:0!important;
  height:auto!important;
  max-height:90dvh!important;

  margin:auto!important;
  transform:none!important;
  translate:none!important;
  scale:1!important;

  overflow-x:hidden!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
}

/* remove premium animations/transforms that push modal sideways */
body #modal.show > .modalBox,
body #modal.show .modalBox{
  animation:none!important;
  transform:none!important;
}

/* countdown stays readable */
body #modal .bacRings{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}

body #modal .bacRing{
  width:100%!important;
  min-width:0!important;
  transform:none!important;
}

@media(max-width:520px){
  body #modal{
    padding:12px!important;
  }

  body #modal > .modalBox{
    width:calc(100vw - 24px)!important;
    max-width:430px!important;
  }
}


/* ==================================================
   FINAL REAL DIALOG FIX
   ================================================== */

html body #modal.modal.show{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  margin:0!important;
  padding:14px!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  overflow-y:auto!important;
  overflow-x:hidden!important;

  transform:none!important;
  translate:none!important;
  scale:1!important;

  z-index:999999!important;
}

html body #modal.modal.show > .shade{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
}

html body #modal.modal.show > .dialog{
  position:relative!important;

  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  inset:auto!important;

  width:min(94vw,500px)!important;
  min-width:0!important;
  max-width:500px!important;

  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 28px)!important;

  margin:auto!important;
  padding:26px 20px!important;

  overflow-x:hidden!important;
  overflow-y:auto!important;

  transform:none!important;
  translate:none!important;
  scale:1!important;
  float:none!important;

  box-sizing:border-box!important;
}

/* عناصر النوافذ الداخلية لا تتجاوز البطاقة */
html body #modal .dialog > *{
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* العداد */
html body #modal .dialog .bacRings{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
  margin-inline:auto!important;
}

html body #modal .dialog .bacRing{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

/* الهاتف */
@media(max-width:520px){
  html body #modal.modal.show{
    padding:12px!important;
  }

  html body #modal.modal.show > .dialog{
    width:calc(100vw - 24px)!important;
    max-width:440px!important;
    max-height:calc(100dvh - 24px)!important;
    margin:auto!important;
  }
}


/* ==================================================
   PREMIUM PDF REDESIGN
   ================================================== */

/* ---------- ADMIN PDF EDITOR ---------- */

#pdfFields{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  margin-top:12px!important;
}

#pdfFields .pdfAdminRow{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;

  width:100%!important;
  margin:0!important;
  padding:16px!important;

  border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line))!important;
  border-radius:18px!important;
  background:color-mix(in srgb,var(--panel) 94%,transparent)!important;
  box-sizing:border-box!important;
}

#pdfFields .pdfAdminRow::before{
  content:"PDF مرفق";
  display:flex;
  align-items:center;
  width:max-content;
  padding:5px 10px;
  border-radius:999px;
  background:#ef444418;
  border:1px solid #ef444435;
  color:#ff6262;
  font-size:11px;
  font-weight:900;
}

#pdfFields .pdfAdminRow .field{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}

#pdfFields .pdfAdminRow label{
  display:block!important;
  margin-bottom:6px!important;
  font-size:12px!important;
  font-weight:800!important;
}

#pdfFields .pdfAdminRow input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  padding:10px 13px!important;
  box-sizing:border-box!important;
}

#pdfFields .deletePdf{
  width:100%!important;
  min-height:45px!important;
  margin:2px 0 0!important;
  border-radius:12px!important;

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

  background:#ef444412!important;
  border:1px solid #ef444435!important;
  color:#ff6262!important;
}

#pdfFields .deletePdf::after{
  content:"حذف الملف";
  font-size:12px;
  font-weight:800;
}

#addPdfField{
  width:100%!important;
  min-height:52px!important;
  border-radius:14px!important;
}

/* ---------- STUDENT STANDALONE PDF ---------- */

.lesson.pdfPremiumCard{
  position:relative!important;
  display:grid!important;
  grid-template-columns:78px 1fr 42px!important;
  align-items:center!important;
  gap:14px!important;

  width:100%!important;
  min-height:112px!important;
  padding:15px!important;

  overflow:hidden!important;
  cursor:pointer!important;

  background:
    linear-gradient(
      135deg,
      color-mix(in srgb,var(--panel) 96%,transparent),
      color-mix(in srgb,var(--accent) 8%,var(--panel))
    )!important;

  border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line))!important;
  border-radius:20px!important;
}

.pdfPremiumIcon{
  width:68px;
  height:76px;
  display:grid;
  place-items:center;

  border-radius:17px;
  background:linear-gradient(145deg,#ff5252,#b81728);
  box-shadow:0 10px 25px #0003;
  color:#fff;
}

.pdfPremiumIcon svg{
  width:34px;
  height:34px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.pdfPremiumInfo{
  min-width:0;
  text-align:right;
}

.pdfPremiumBadge{
  display:inline-flex;
  align-items:center;
  gap:5px;

  padding:4px 9px;
  margin-bottom:7px;

  border-radius:999px;
  background:#ef444418;
  border:1px solid #ef444435;

  color:#ff6262;
  font-size:10px;
  font-weight:900;
}

.pdfPremiumInfo h3{
  margin:0 0 5px!important;
  font-size:14px!important;
  line-height:1.6!important;
  color:var(--text)!important;
}

.pdfPremiumInfo p{
  margin:0!important;
  color:var(--muted)!important;
  font-size:10px!important;
}

.pdfPremiumOpen{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;

  border-radius:12px;
  background:var(--soft);
  color:var(--accent);
}

.pdfPremiumOpen svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}

@media(max-width:520px){
  .lesson.pdfPremiumCard{
    grid-template-columns:65px 1fr 38px!important;
    gap:11px!important;
    padding:13px!important;
  }

  .pdfPremiumIcon{
    width:60px;
    height:66px;
  }
}


/* ===== FINAL PDF DOCUMENT DESIGN ===== */

.lesson.pdfLesson{
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr) 44px!important;
  align-items:center!important;
  gap:14px!important;

  min-height:116px!important;
  padding:14px!important;
  cursor:pointer!important;
  overflow:hidden!important;

  border-radius:20px!important;
  border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line))!important;

  background:
    linear-gradient(
      135deg,
      color-mix(in srgb,var(--panel) 97%,transparent),
      color-mix(in srgb,var(--accent) 9%,var(--panel))
    )!important;
}

.pdfDocIcon{
  width:68px!important;
  height:78px!important;
  border-radius:17px!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;

  background:linear-gradient(145deg,#ff5757,#bd1729)!important;
  color:white!important;
  box-shadow:0 10px 25px #0004!important;
}

.pdfDocIcon span{
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:1px!important;
}

.pdfDocIcon svg{
  width:29px!important;
  height:29px!important;
  fill:none!important;
  stroke:currentColor!important;
}

.pdfDocInfo{
  min-width:0!important;
  text-align:right!important;
}

.pdfDocBadge{
  display:inline-flex!important;
  padding:4px 9px!important;
  margin-bottom:6px!important;

  border-radius:999px!important;
  background:#ef444418!important;
  border:1px solid #ef444438!important;

  color:#ff6262!important;
  font-size:10px!important;
  font-weight:900!important;
}

.pdfDocInfo h3{
  margin:0!important;
  font-size:15px!important;
  line-height:1.7!important;
  color:var(--text)!important;
}

.pdfDocInfo p{
  margin:3px 0 0!important;
  font-size:10px!important;
  color:var(--muted)!important;
}

.pdfDocOpen{
  width:42px!important;
  height:42px!important;
  padding:0!important;
  margin:0!important;

  display:grid!important;
  place-items:center!important;

  border-radius:13px!important;
  border:1px solid var(--line)!important;
  background:var(--soft)!important;
  color:var(--accent)!important;
}

.pdfDocOpen svg{
  width:19px!important;
  height:19px!important;
}


/* ===== FIX ADMIN PDF DELETE BUTTON ===== */

#pdfFields .pdfAdminRow .deletePdf{
  width:auto!important;
  min-width:0!important;
  max-width:max-content!important;
  min-height:38px!important;
  height:38px!important;

  padding:0 13px!important;
  margin:2px 0 0 auto!important;

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

  border-radius:11px!important;

  background:#ef444414!important;
  border:1px solid #ef44443d!important;
  color:#ff6262!important;
}

#pdfFields .pdfAdminRow .deletePdf svg{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
}

#pdfFields .pdfAdminRow .deletePdf::after{
  content:"حذف الملف"!important;
  font-size:11px!important;
  font-weight:900!important;
}


/* الهاتف */

@media(max-width:520px){

  .lesson.pdfLesson{
    grid-template-columns:62px minmax(0,1fr) 39px!important;
    gap:11px!important;
    min-height:105px!important;
    padding:12px!important;
  }

  .pdfDocIcon{
    width:58px!important;
    height:67px!important;
  }

  .pdfDocOpen{
    width:38px!important;
    height:38px!important;
  }
}


/* PDF OPEN ARROW FINAL FIX */
.pdfDocOpen svg{
  width:20px!important;
  height:20px!important;
  display:block!important;
  fill:none!important;
  stroke:var(--accent)!important;
  stroke-width:2.4!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.pdfDocOpen svg path{
  fill:none!important;
  stroke:inherit!important;
}


/* ===== DUA TOP BUTTON ===== */
.duaTopBtn{
  font-size:21px!important;
  position:relative;
}

.duaTopBtn::after{
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  top:6px;
  right:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 9px var(--accent);
  animation:duaDot 2s ease-in-out infinite;
}

@keyframes duaDot{
  50%{opacity:.35;transform:scale(.7)}
}

/* ========== FINAL DUA DESIGN ========== */

.zbDuaFinal{
  width:100%;
  direction:rtl;
  text-align:center;
}

.zbDuaHead{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:4px 0 16px;
}

.zbDuaHands{
  font-size:34px;
}

.zbDuaHead b{
  display:block;
  font-size:22px;
  margin-bottom:3px;
}

.zbDuaHead small{
  opacity:.7;
  font-size:13px;
}

.zbDuaPaper{
  position:relative;
  width:100%;
  min-height:390px;
  border-radius:22px;
  background-size:100% 100%;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.zbDuaShade{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.05);
}

.zbDuaContent{
  position:relative;
  z-index:2;
  width:76%;
  color:#342719;
  padding:55px 10px;
}

.zbDuaQuote{
  font-size:14px;
  opacity:.75;
  margin-bottom:25px;
}

.zbDuaText{
  font-size:21px;
  line-height:2;
  font-weight:700;
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}

.zbDuaNumber{
  margin-top:28px;
  font-size:12px;
  opacity:.6;
}

.zbDuaButtons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:15px;
}

.zbDuaButtons button{
  border:0;
  border-radius:16px;
  min-height:54px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}

.zbDuaCopy{
  background:linear-gradient(135deg,#f3c66c,#dca442);
  color:#2c210f;
}

.zbDuaNext{
  background:rgba(255,255,255,.09);
  color:inherit;
  border:1px solid rgba(255,255,255,.14)!important;
}

.zbDuaShareMsg{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-5px);
  transition:.35s ease;
  font-size:14px;
  line-height:1.8;
}

.zbDuaShareMsg.show{
  max-height:100px;
  opacity:1;
  transform:none;
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  background:rgba(57,180,104,.12);
  border:1px solid rgba(57,180,104,.28);
}

@media(max-width:520px){
  .zbDuaPaper{
    min-height:350px;
  }

  .zbDuaText{
    font-size:18px;
    line-height:1.9;
  }

  .zbDuaContent{
    width:78%;
  }
}

/* ==================================================
   ZOOMBAC — WELCOME EXPERIENCE
================================================== */

.zbWelcome{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,105,105,.18),transparent 38%),
    rgba(8,3,5,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:1;
  visibility:visible;
  transition:opacity .55s ease,visibility .55s ease;
}

.zbWelcome.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.zbWelcomeGlow{
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(255,80,80,.13);
  filter:blur(70px);
  animation:zbWelcomeGlow 3s ease-in-out infinite alternate;
}

.zbWelcomeCard{
  position:relative;
  z-index:2;
  width:min(100%,470px);
  padding:28px 20px 22px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:30px;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(145deg,rgba(75,17,22,.88),rgba(17,8,14,.94));
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  animation:zbWelcomeIn .7s cubic-bezier(.2,.8,.2,1);
}

.zbWelcomeTop{
  font-size:48px;
  line-height:1;
  margin-bottom:15px;
  color:#ffd9a1;
  text-shadow:0 0 28px rgba(255,199,113,.25);
}

.zbWelcomeMini{
  font-size:13px;
  opacity:.68;
  margin-bottom:5px;
}

.zbWelcomeCard h1{
  margin:0 0 22px;
  font-size:29px;
  color:#fff;
}

.zbWelcomeSteps{
  display:grid;
  gap:10px;
  text-align:right;
}

.zbWelcomeStep{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
}

.zbWelcomeStep>span{
  flex:0 0 40px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  font-size:17px;
  font-weight:900;
  color:#ffd3a0;
  background:rgba(255,126,126,.12);
  border:1px solid rgba(255,154,154,.2);
}

.zbWelcomeStep div{
  min-width:0;
}

.zbWelcomeStep small{
  display:block;
  opacity:.6;
  font-size:11px;
  margin-bottom:3px;
}

.zbWelcomeStep b{
  display:block;
  font-size:15px;
  line-height:1.65;
}

#zbWelcomeStart{
  width:100%;
  border:0;
  margin-top:19px;
  padding:14px 16px;
  min-height:67px;
  border-radius:19px;
  cursor:pointer;
  color:#21090c;
  background:linear-gradient(135deg,#ff8179,#ff5757);
  box-shadow:0 12px 30px rgba(255,74,74,.24);
  transition:transform .18s ease;
}

#zbWelcomeStart:active{
  transform:scale(.97);
}

#zbWelcomeStart strong{
  display:block;
  font-size:19px;
}

#zbWelcomeStart small{
  display:block;
  margin-top:4px;
  font-size:11px;
  opacity:.72;
}

.zbWelcomeFoot{
  margin-top:18px;
  font-size:13px;
  opacity:.6;
}

@keyframes zbWelcomeIn{
  from{
    opacity:0;
    transform:translateY(22px) scale(.96);
  }
  to{
    opacity:1;
    transform:none;
  }
}

@keyframes zbWelcomeGlow{
  from{transform:scale(.85);opacity:.55}
  to{transform:scale(1.15);opacity:1}
}

@media(max-width:520px){
  .zbWelcome{
    padding:14px;
  }

  .zbWelcomeCard{
    padding:24px 16px 19px;
    border-radius:25px;
  }

  .zbWelcomeTop{
    font-size:42px;
  }

  .zbWelcomeCard h1{
    font-size:25px;
  }

  .zbWelcomeStep{
    padding:12px;
  }
}


/* ===== WELCOME CINEMATIC SEQUENCE ===== */

/* نفس خلفية الوضع المختار */
#zbWelcome{
  background:
    linear-gradient(rgba(0,0,0,.48),rgba(0,0,0,.62)),
    var(--theme-image, var(--bg)) center/cover no-repeat !important;
  transition:background .6s ease;
}

/* البداية: العناصر مخفية */
#zbWelcome .zbWelcomeTop,
#zbWelcome .zbWelcomeMini,
#zbWelcome h1,
#zbWelcome .zbWelcomeStep,
#zbWelcome #zbWelcomeStart,
#zbWelcome .zbWelcomeFoot{
  opacity:0;
  animation-fill-mode:forwards !important;
  will-change:transform,opacity,filter;
}

/* البسملة */
#zbWelcome .zbWelcomeTop{
  animation:zbCineSoft 1.15s cubic-bezier(.16,1,.3,1) .35s forwards !important;
}

/* قبل أن تبدأ رحلتك */
#zbWelcome .zbWelcomeMini{
  animation:zbCineSoft .9s ease 1.25s forwards !important;
}

/* تهيأ للنجاح */
#zbWelcome h1{
  animation:zbCineTitle 1.15s cubic-bezier(.16,1,.3,1) 1.75s forwards !important;
}

/* الصلاة على النبي */
#zbWelcome .zbWelcomeStep:nth-child(1){
  animation:zbCineStep 1.05s cubic-bezier(.16,1,.3,1) 2.75s forwards !important;
}

/* توكل على الله */
#zbWelcome .zbWelcomeStep:nth-child(2){
  animation:zbCineStep 1.05s cubic-bezier(.16,1,.3,1) 3.85s forwards !important;
}

/* قل بسم الله */
#zbWelcome .zbWelcomeStep:nth-child(3){
  animation:zbCineStep 1.05s cubic-bezier(.16,1,.3,1) 4.95s forwards !important;
}

/* ابدأ الآن */
#zbWelcome #zbWelcomeStart{
  animation:
    zbCineButton 1.2s cubic-bezier(.16,1,.3,1) 6.05s forwards,
    zbCineButtonGlow 2.6s ease-in-out 7.25s infinite !important;
}

/* الآية في النهاية */
#zbWelcome .zbWelcomeFoot{
  animation:zbCineSoft .9s ease 6.75s forwards !important;
}

@keyframes zbCineSoft{
  0%{
    opacity:0;
    transform:translateY(16px);
    filter:blur(8px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
  }
}

@keyframes zbCineTitle{
  0%{
    opacity:0;
    transform:scale(.88);
    filter:blur(10px);
  }
  65%{
    opacity:1;
    transform:scale(1.025);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:scale(1);
    filter:blur(0);
  }
}

@keyframes zbCineStep{
  0%{
    opacity:0;
    transform:translateY(24px) scale(.97);
    filter:blur(5px);
  }
  60%{
    opacity:1;
    transform:translateY(-3px) scale(1.008);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

@keyframes zbCineButton{
  0%{
    opacity:0;
    transform:translateY(30px) scale(.92);
    filter:blur(8px);
  }
  65%{
    opacity:1;
    transform:translateY(-4px) scale(1.025);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

@keyframes zbCineButtonGlow{
  0%,100%{
    box-shadow:0 10px 30px rgba(255,100,100,.18);
  }
  50%{
    box-shadow:0 14px 42px rgba(255,120,100,.48);
  }
}

/* كل Theme يمرر خلفيته الحقيقية إلى شاشة البداية */
body[data-theme] #zbWelcome{
  background-image:
    linear-gradient(rgba(0,0,0,.42),rgba(0,0,0,.62)),
    var(--theme-image) !important;
  background-position:center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
}

/* لمن يوقف الحركات من إعدادات الجهاز */
@media (prefers-reduced-motion:reduce){
  #zbWelcome .zbWelcomeTop,
  #zbWelcome .zbWelcomeMini,
  #zbWelcome h1,
  #zbWelcome .zbWelcomeStep,
  #zbWelcome #zbWelcomeStart,
  #zbWelcome .zbWelcomeFoot{
    opacity:1 !important;
    animation:none !important;
    transform:none !important;
    filter:none !important;
  }
}

/* iPhone installation video button */
.iosVideoBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  box-sizing:border-box;
  margin-top:10px;
  padding:15px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(255,0,51,.16),rgba(255,0,51,.06));
  border:1px solid rgba(255,50,80,.35);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 8px 28px rgba(255,0,51,.12);
}
.iosVideoBtn svg{
  flex:none;
  filter:drop-shadow(0 4px 8px rgba(255,0,51,.3));
}

/* ==================================================
   DUA RANDOM BACKGROUNDS + RANDOM ANIMATIONS
   ================================================== */

.zbDuaPaper{
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}

/* 1 — Fade Up */
.zbDuaAnimFadeUp{
  animation:zbDuaFadeUp .85s cubic-bezier(.22,1,.36,1) both;
}
@keyframes zbDuaFadeUp{
  from{opacity:0;transform:translateY(38px)}
  to{opacity:1;transform:translateY(0)}
}

/* 2 — Cinematic Zoom */
.zbDuaAnimZoom{
  animation:zbDuaZoom .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes zbDuaZoom{
  from{opacity:0;transform:scale(.78)}
  to{opacity:1;transform:scale(1)}
}

/* 3 — Slide Right */
.zbDuaAnimSlideRight{
  animation:zbDuaRight .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes zbDuaRight{
  from{opacity:0;transform:translateX(-55px)}
  to{opacity:1;transform:translateX(0)}
}

/* 4 — Slide Left */
.zbDuaAnimSlideLeft{
  animation:zbDuaLeft .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes zbDuaLeft{
  from{opacity:0;transform:translateX(55px)}
  to{opacity:1;transform:translateX(0)}
}

/* 5 — Blur Reveal */
.zbDuaAnimBlur{
  animation:zbDuaBlur 1s ease both;
}
@keyframes zbDuaBlur{
  from{opacity:0;filter:blur(15px);transform:scale(1.08)}
  to{opacity:1;filter:blur(0);transform:scale(1)}
}

/* 6 — Rise */
.zbDuaAnimRise{
  animation:zbDuaRise .95s cubic-bezier(.16,1,.3,1) both;
}
@keyframes zbDuaRise{
  from{opacity:0;transform:translateY(65px) scale(.94)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* 7 — Soft Rotate */
.zbDuaAnimSoftRotate{
  animation:zbDuaRotate .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes zbDuaRotate{
  from{opacity:0;transform:scale(.88) rotate(-2.5deg)}
  to{opacity:1;transform:scale(1) rotate(0)}
}

/* 8 — Golden Glow */
.zbDuaAnimGlow{
  animation:zbDuaGlow 1.05s ease both;
}
@keyframes zbDuaGlow{
  0%{
    opacity:0;
    transform:scale(.92);
    filter:blur(8px);
    text-shadow:0 0 30px rgba(255,220,130,.95);
  }
  55%{
    opacity:1;
    text-shadow:0 0 18px rgba(255,220,130,.7);
  }
  100%{
    opacity:1;
    transform:scale(1);
    filter:blur(0);
    text-shadow:inherit;
  }
}

/* ===== DUA PREMIUM ICONS ===== */

.zbDuaHandsPro{
  width:64px !important;
  height:64px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 64px;
  filter:
    drop-shadow(0 5px 8px rgba(0,0,0,.3))
    drop-shadow(0 0 10px rgba(238,188,92,.25));
}

.zbPrayerHandsIcon{
  width:58px;
  height:58px;
  overflow:visible;
  animation:zbPrayerHandsFloat 3.4s ease-in-out infinite;
}

@keyframes zbPrayerHandsFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-4px) scale(1.035)}
}

.zbBtnSvg{
  width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 25px;
}

.zbBtnSvg svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* لمسة احترافية لزر دعاء آخر */
.zbDuaNext .zbBtnSvg{
  transition:transform .45s cubic-bezier(.2,.8,.2,1);
}

.zbDuaNext:active .zbBtnSvg{
  transform:rotate(180deg) scale(.9);
}

/* لمسة احترافية لزر النسخ */
.zbDuaCopy .zbBtnSvg{
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.18));
}

/* إخفاء أي عداد قديم احتياطياً */
.zbDuaNumber{
  display:none !important;
}


/* ===== DUA TEXT READABILITY ON ALL BACKGROUNDS ===== */

.zbDuaContent{
  position:relative !important;
  z-index:3 !important;
  padding:22px 18px !important;
  margin:14px !important;
  border-radius:24px !important;

  background:linear-gradient(
    135deg,
    rgba(5,10,22,.62),
    rgba(8,15,30,.48)
  ) !important;

  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);

  box-shadow:
    0 10px 35px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

.zbDuaText{
  color:#fff !important;
  font-weight:800 !important;
  text-shadow:
    0 2px 4px rgba(0,0,0,.95),
    0 0 12px rgba(0,0,0,.65) !important;
}

.zbDuaQuote{
  color:rgba(255,255,255,.88) !important;
  text-shadow:0 2px 5px rgba(0,0,0,.9) !important;
}


/* ===== FINAL PREMIUM DUA ICONS ===== */

.zbDuaHandsFinal{
  width:82px !important;
  height:66px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 82px;
}

.zbPrayerFinalIcon{
  width:82px;
  height:62px;
  overflow:visible;
  filter:
    drop-shadow(0 5px 8px rgba(0,0,0,.28))
    drop-shadow(0 0 10px rgba(236,174,87,.22));
  animation:zbPrayerFinalFloat 3.2s ease-in-out infinite;
}

@keyframes zbPrayerFinalFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

.zbDuaActionIcon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  border-radius:9px;
}

.zbDuaActionIcon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* COPY */
.zbDuaCopy .zbCopyIcon{
  color:#38280f;
  background:rgba(255,255,255,.18);
  box-shadow:inset 0 0 0 1px rgba(70,45,10,.12);
}

/* NEXT DUA */
.zbDuaNext .zbRefreshIcon{
  color:#f5cb68;
  background:rgba(245,203,104,.09);
  box-shadow:
    inset 0 0 0 1px rgba(245,203,104,.22),
    0 0 12px rgba(245,203,104,.08);
}

.zbDuaNext .zbRefreshIcon svg{
  transition:transform .55s cubic-bezier(.2,.8,.2,1);
}

.zbDuaNext:active .zbRefreshIcon svg{
  transform:rotate(240deg);
}


/* ===== REAL PRAYER HANDS ===== */

.zbDuaHandsPhoto{
  width:82px !important;
  height:72px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 82px;
  overflow:hidden;
  border-radius:22px;
}

.zbPrayerHandsPhoto{
  width:82px;
  height:72px;
  object-fit:cover;
  object-position:center 35%;
  border-radius:22px;

  -webkit-mask-image:
    radial-gradient(ellipse at center,#000 52%,transparent 78%);
  mask-image:
    radial-gradient(ellipse at center,#000 52%,transparent 78%);

  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,.30))
    drop-shadow(0 0 10px rgba(232,178,83,.22));

  animation:zbRealHandsFloat 3.4s ease-in-out infinite;
}

@keyframes zbRealHandsFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-3px) scale(1.025)}
}


/* ==========================================
   PREMIUM DUA COPY SUCCESS EXPERIENCE
   ========================================== */

.zbCopySuccessIcon{
  width:27px;
  height:27px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#2d210d;
  background:rgba(255,255,255,.24);
  box-shadow:
    inset 0 0 0 1px rgba(70,45,10,.10),
    0 4px 12px rgba(0,0,0,.10);
  animation:zbCopyCheckPop .45s cubic-bezier(.2,1.5,.4,1);
}

.zbCopySuccessIcon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@keyframes zbCopyCheckPop{
  0%{transform:scale(.35) rotate(-15deg);opacity:0}
  70%{transform:scale(1.12) rotate(2deg);opacity:1}
  100%{transform:scale(1);opacity:1}
}

/* رسالة نجاح النسخ */
.zbDuaShareMsg{
  position:relative !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;

  margin-top:18px !important;
  padding:16px 18px !important;
  min-height:76px;

  border-radius:20px !important;
  border:1px solid rgba(91,224,171,.24) !important;

  background:
    linear-gradient(
      135deg,
      rgba(8,38,43,.96),
      rgba(8,29,42,.96)
    ) !important;

  box-shadow:
    0 12px 35px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.05) !important;

  text-align:right !important;
}

.zbDuaToastIcon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:15px;
  color:#dffff2;

  background:
    linear-gradient(145deg,#35c98d,#168e68);

  box-shadow:
    0 7px 18px rgba(20,183,127,.25),
    inset 0 1px 0 rgba(255,255,255,.25);

  animation:zbToastIconIn .55s cubic-bezier(.2,1.4,.4,1);
}

.zbDuaToastIcon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.zbDuaToastText{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.zbDuaToastText strong{
  color:#fff !important;
  font-size:17px;
  font-weight:900;
  line-height:1.4;
}

.zbDuaToastText span{
  color:rgba(222,241,239,.72) !important;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
}

.zbDuaToastSpark{
  position:absolute;
  top:8px;
  left:11px;
  color:#e8c56c;
  font-size:13px;
  opacity:.8;
  animation:zbToastSpark 1.8s ease-in-out infinite;
}

.zbDuaShareMsg.show{
  animation:zbToastReveal .55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes zbToastReveal{
  from{
    opacity:0;
    transform:translateY(15px) scale(.96);
    filter:blur(5px);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

@keyframes zbToastIconIn{
  from{transform:scale(.4) rotate(-12deg);opacity:0}
  to{transform:scale(1) rotate(0);opacity:1}
}

@keyframes zbToastSpark{
  0%,100%{opacity:.35;transform:scale(.8)}
  50%{opacity:1;transform:scale(1.2)}
}

