/* =========================================================
   IQEC Activity Guard — Public Activity Composer Guard
   ========================================================= */
.iqec-activity-guard-message{
  display:none;
  margin:10px 0 0;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.18);
  background:rgba(254,242,242,.96);
  color:#991b1b;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:13px;
  font-weight:700;
  line-height:1.9;
  text-align:right;
}
.iqec-activity-guard-message.is-visible{display:block;}
.iqec-activity-guard-message.is-ok{
  border-color:rgba(34,197,94,.18);
  background:rgba(240,253,244,.96);
  color:#166534;
}
#youzify-wall-form.iqec-activity-guard-submitting,
form#whats-new-form.iqec-activity-guard-submitting{
  position:relative;
}
#youzify-wall-form .iqec-guard-busy,
form#whats-new-form .iqec-guard-busy{
  position:relative !important;
  opacity:.78 !important;
  pointer-events:none !important;
  padding-inline-end:36px !important;
}
#youzify-wall-form .iqec-guard-busy::after,
form#whats-new-form .iqec-guard-busy::after{
  content:"";
  width:15px;
  height:15px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  position:absolute;
  inset-inline-end:12px;
  top:50%;
  transform:translateY(-50%);
  animation:iqecActivityGuardSpin .7s linear infinite;
}
@keyframes iqecActivityGuardSpin{to{transform:translateY(-50%) rotate(360deg);}}
@media (max-width:768px){
  .iqec-activity-guard-message{font-size:12px;padding:10px 12px;}
}

/* =========================================================
   IQEC Activity Guard v2 — Comment Guard
   ========================================================= */
.iqec-activity-guard-comment-message{
  display:none;
  margin:8px 0 0;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(239,68,68,.18);
  background:rgba(254,242,242,.98);
  color:#991b1b;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:12px;
  font-weight:700;
  line-height:1.85;
  text-align:right;
}
.iqec-activity-guard-comment-message.is-visible{display:block;}
.iqec-activity-guard-comment-message.is-ok{
  border-color:rgba(34,197,94,.18);
  background:rgba(240,253,244,.98);
  color:#166534;
}
form.ac-form.iqec-comment-guard-submitting,
.ac-form.iqec-comment-guard-submitting{
  position:relative;
}
form.ac-form .iqec-guard-busy,
.ac-form .iqec-guard-busy{
  position:relative !important;
  opacity:.78 !important;
  pointer-events:none !important;
  padding-inline-end:32px !important;
}
form.ac-form .iqec-guard-busy::after,
.ac-form .iqec-guard-busy::after{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  position:absolute;
  inset-inline-end:10px;
  top:50%;
  transform:translateY(-50%);
  animation:iqecActivityGuardSpin .7s linear infinite;
}

/* Extra icon-font safety for profile/activity tabs that may inherit Noto Kufi. */
body.iqec-activity-guard-enabled .youzify i[class^="fa-"],
body.iqec-activity-guard-enabled .youzify i[class*=" fa-"],
body.iqec-activity-guard-enabled .youzify span[class^="fa-"],
body.iqec-activity-guard-enabled .youzify span[class*=" fa-"],
body.iqec-activity-guard-enabled .youzify .fa,
body.iqec-activity-guard-enabled .youzify .fas,
body.iqec-activity-guard-enabled .youzify .far,
body.iqec-activity-guard-enabled .youzify .fab,
body.iqec-activity-guard-enabled .gamipress-user-points i,
body.iqec-activity-guard-enabled .gamipress-user-rank i,
body.iqec-activity-guard-enabled .gamipress-achievement i{
  font-family:"Font Awesome 5 Free" !important;
  font-weight:900 !important;
}
body.iqec-activity-guard-enabled .youzify .fab{
  font-family:"Font Awesome 5 Brands" !important;
  font-weight:400 !important;
}

/* =========================================================
   IQEC Activity Guard v2.1.1 — Comment rejection recovery
   ========================================================= */
.iqec-activity-guard-comment-message .iqec-comment-guard-message-text{
  display:block;
}
.iqec-activity-guard-comment-message .iqec-comment-guard-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  flex-wrap:wrap;
}
.iqec-activity-guard-comment-message .iqec-comment-guard-edit,
.iqec-activity-guard-comment-message .iqec-comment-guard-clear{
  appearance:none !important;
  border:0 !important;
  border-radius:999px !important;
  padding:7px 12px !important;
  min-height:30px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:11.5px !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.iqec-activity-guard-comment-message .iqec-comment-guard-edit{
  background:#5373fd !important;
  color:#fff !important;
}
.iqec-activity-guard-comment-message .iqec-comment-guard-clear{
  background:rgba(153,27,27,.08) !important;
  color:#991b1b !important;
}
.ac-form:not(.iqec-comment-guard-submitting) .acomment-submit:not(.iqec-guard-busy)::after,
.ac-form:not(.iqec-comment-guard-submitting) input[name="ac_form_submit"]:not(.iqec-guard-busy)::after,
.activity-comments:not(.iqec-comment-guard-submitting) .acomment-submit:not(.iqec-guard-busy)::after{
  display:none !important;
}

/* =========================================================
   IQEC Activity Guard v2.1.2 — Hard stop stuck Youzify comment loader
   ========================================================= */
.iqec-comment-guard-rejected .iqec-guard-busy,
.iqec-comment-guard-rejected .loading,
.iqec-comment-guard-rejected .is-loading,
.iqec-comment-guard-rejected .pending,
.iqec-comment-guard-rejected .submitting,
.iqec-comment-guard-rejected .processing{
  pointer-events:auto !important;
  opacity:1 !important;
}
.iqec-comment-guard-rejected .iqec-guard-busy::after,
.iqec-comment-guard-rejected .loading::after,
.iqec-comment-guard-rejected .is-loading::after,
.iqec-comment-guard-rejected .pending::after,
.iqec-comment-guard-rejected .submitting::after,
.iqec-comment-guard-rejected .processing::after,
.iqec-comment-guard-rejected .spinner,
.iqec-comment-guard-rejected .youzify-loading,
.iqec-comment-guard-rejected .bp-ajax-loading{
  display:none !important;
  animation:none !important;
}
.iqec-comment-guard-rejected input[type="submit"],
.iqec-comment-guard-rejected button[type="submit"],
.iqec-comment-guard-rejected .acomment-submit{
  pointer-events:auto !important;
  opacity:1 !important;
}


/* =========================================================
   IQEC Activity Guard v2.1.5 — Keep comment submit button visible after recovery
   ========================================================= */
.iqec-comment-guard-rejected .acomment-options,
.iqec-comment-guard-rejected .acomment-submit-wrap,
.iqec-comment-guard-rejected .ac-reply-content .submit,
.iqec-comment-guard-rejected .ac-reply-content p.submit,
.iqec-comment-guard-rejected .ac-form .submit,
.iqec-comment-guard-rejected .activity-comments .submit{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.ac-form:not(.iqec-comment-guard-submitting) .acomment-options,
.activity-comments:not(.iqec-comment-guard-submitting) .acomment-options,
.ac-form:not(.iqec-comment-guard-submitting) .acomment-submit-wrap{
  visibility:visible !important;
  opacity:1 !important;
}
.ac-form:not(.iqec-comment-guard-submitting) .acomment-submit,
.ac-form:not(.iqec-comment-guard-submitting) input[name="ac_form_submit"],
.ac-form:not(.iqec-comment-guard-submitting) input[type="submit"],
.ac-form:not(.iqec-comment-guard-submitting) button[type="submit"],
.activity-comments:not(.iqec-comment-guard-submitting) .acomment-submit,
.activity-comments:not(.iqec-comment-guard-submitting) input[name="ac_form_submit"]{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

/* =========================================================
   IQEC Activity Guard v2.1.6 — Fallback comment submit button
   يظهر زر نشر بديل إذا أخفى Youzify زر الإرسال الأصلي بعد رفض التعليق
   ========================================================= */
.iqec-comment-guard-submit-holder{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  margin-top:8px !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.iqec-comment-guard-submit-fallback{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:0 16px !important;
  border:0 !important;
  border-radius:12px !important;
  background:#5373fd !important;
  color:#fff !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
.iqec-comment-guard-submit-fallback:hover{
  filter:brightness(1.03) !important;
}
.iqec-comment-guard-submit-fallback:active{
  transform:scale(.98) !important;
}

/* =========================================================
   Activity Guard v2.3 — Feed Curation Badges
   Only visible on the global activity feed when enabled from IQEC settings.
   ========================================================= */
body.iqec-activity-feed-badges-enabled .activity-list li[class*="iqec-ag-type-"] .activity-content,
body.iqec-activity-feed-badges-enabled #activity-stream li[class*="iqec-ag-type-"] .activity-content,
body.iqec-activity-feed-badges-enabled #youzify li[class*="iqec-ag-type-"] .activity-content{
  position:relative !important;
}

body.iqec-activity-feed-badges-enabled .activity-list li[class*="iqec-ag-type-"] .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li[class*="iqec-ag-type-"] .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li[class*="iqec-ag-type-"] .activity-content::before{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:max-content !important;
  max-width:100% !important;
  padding:5px 11px !important;
  margin:0 0 10px 0 !important;
  border-radius:999px !important;
  border:1px solid rgba(83,115,253,.16) !important;
  background:rgba(83,115,253,.08) !important;
  color:#2844c7 !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
}

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-study_template .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-study_template .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-study_template .activity-content::before{ content:"حالة دراسية" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-achievement .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-achievement .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-achievement .activity-content::before{ content:"إنجاز" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-lesson_progress .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-lesson_progress .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-lesson_progress .activity-content::before{ content:"تقدم دراسي" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-help_request .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-help_request .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-help_request .activity-content::before{ content:"طلب مساعدة" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-general_study .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-general_study .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-general_study .activity-content::before{ content:"منشور دراسي" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-safe_social .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-safe_social .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-safe_social .activity-content::before{ content:"تفاعل طلابي" !important; }

body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-unclassified .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-unclassified .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-unclassified .activity-content::before{ content:"نشاط عام" !important; }

@media (max-width:768px){
  body.iqec-activity-feed-badges-enabled .activity-list li[class*="iqec-ag-type-"] .activity-content::before,
  body.iqec-activity-feed-badges-enabled #activity-stream li[class*="iqec-ag-type-"] .activity-content::before,
  body.iqec-activity-feed-badges-enabled #youzify li[class*="iqec-ag-type-"] .activity-content::before{
    font-size:10.5px !important;
    padding:5px 10px !important;
    margin-bottom:8px !important;
  }
}


/* =========================================================
   Activity Hub v3.0 — Guided Activity UI & Safe Posting Tips
   ========================================================= */
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-activity-hub-guide-v3{
  margin:14px 0 12px !important;
  padding:14px !important;
  border-radius:18px !important;
  border:1px solid rgba(83,115,253,.14) !important;
  background:linear-gradient(135deg,rgba(83,115,253,.08),rgba(255,255,255,.96)) !important;
  box-shadow:0 10px 26px rgba(15,23,42,.06) !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  direction:rtl !important;
  text-align:right !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-head{
  display:flex !important;align-items:center !important;gap:10px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-icon{
  width:34px !important;height:34px !important;border-radius:14px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 34px !important;background:#5373fd !important;color:#fff !important;font-family:Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif !important;font-size:18px !important;line-height:1 !important;box-shadow:0 10px 18px rgba(83,115,253,.20) !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-titlewrap{display:flex !important;flex-direction:column !important;gap:4px !important;min-width:0 !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-titlewrap strong{color:#111827 !important;font-size:14px !important;font-weight:900 !important;line-height:1.55 !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-titlewrap span,
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-rules span{color:#4b5563 !important;font-size:12px !important;font-weight:700 !important;line-height:1.8 !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-rules{display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;margin-top:12px !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-rules span{display:block !important;padding:9px 11px !important;border-radius:14px !important;background:rgba(255,255,255,.78) !important;border:1px solid rgba(15,23,42,.06) !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-prompts{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:8px !important;margin-top:12px !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-chip{appearance:none !important;border:1px solid rgba(83,115,253,.16) !important;background:#fff !important;color:#2844c7 !important;border-radius:999px !important;min-height:34px !important;padding:0 13px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;font-size:11.5px !important;font-weight:900 !important;line-height:1 !important;cursor:pointer !important;transition:transform .12s ease,background .12s ease,color .12s ease,border-color .12s ease !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-chip:hover,
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-chip.is-active{background:#5373fd !important;border-color:#5373fd !important;color:#fff !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-chip:active{transform:scale(.98) !important;}

/* Keep only Youzify's native publish loader in the wall composer. */
#youzify-wall-form .youzify-wall-post.iqec-guard-busy,
#youzify-wall-form .youzify-update-post.iqec-guard-busy,
form#whats-new-form .youzify-wall-post.iqec-guard-busy,
form#whats-new-form .youzify-update-post.iqec-guard-busy{
  padding-inline-end:18px !important;
}
#youzify-wall-form .youzify-wall-post.iqec-guard-busy::after,
#youzify-wall-form .youzify-update-post.iqec-guard-busy::after,
form#whats-new-form .youzify-wall-post.iqec-guard-busy::after,
form#whats-new-form .youzify-update-post.iqec-guard-busy::after{
  content:none !important;display:none !important;
}

@media (max-width:768px){
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-activity-hub-guide-v3{padding:12px !important;border-radius:16px !important;}
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ahg-rules{grid-template-columns:1fr !important;}
}


/* =========================================================
   Activity Hub v3.1 — Activity Filters & Student-Friendly Tabs
   Front-end filter tabs for the global activity page only.
   ========================================================= */
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-activity-tabs-v31{
  direction:rtl !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:14px 0 14px !important;
  padding:10px !important;
  border-radius:18px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.06) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:thin !important;
  -webkit-overflow-scrolling:touch !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab{
  appearance:none !important;
  border:1px solid rgba(83,115,253,.14) !important;
  background:#fff !important;
  color:#374151 !important;
  min-height:38px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .12s ease,box-shadow .15s ease !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab:hover{
  background:rgba(83,115,253,.07) !important;
  border-color:rgba(83,115,253,.22) !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab:active{transform:scale(.98) !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab.is-active{
  background:#5373fd !important;
  border-color:#5373fd !important;
  color:#fff !important;
  box-shadow:0 10px 20px rgba(83,115,253,.20) !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-count{
  min-width:20px !important;
  height:20px !important;
  padding:0 6px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(83,115,253,.10) !important;
  color:#2844c7 !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab.is-active .iqec-ah-tab-count{
  background:rgba(255,255,255,.20) !important;
  color:#fff !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn{
  width:16px !important;
  height:16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  flex:0 0 16px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn::before{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
  font-style:normal !important;
  font-size:13px !important;
  line-height:1 !important;
  color:currentColor !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--grid::before{content:"\f00a" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--chat::before{content:"\f4ad" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--study::before{content:"\f02d" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--help::before{content:"\f059" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--star::before{content:"\f005" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab-icn--progress::before{content:"\f201" !important;}

body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) #activity-stream > li.iqec-ah-tabs-hidden,
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) ul.activity-list > li.iqec-ah-tabs-hidden,
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .activity-list > li.iqec-ah-tabs-hidden{
  display:none !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tabs-empty{
  list-style:none !important;
  margin:14px 0 !important;
  padding:0 !important;
  display:block !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tabs-empty-card{
  padding:18px !important;
  border-radius:18px !important;
  text-align:center !important;
  background:#fff !important;
  border:1px dashed rgba(83,115,253,.22) !important;
  color:#6b7280 !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
}
@media (max-width:768px){
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-activity-tabs-v31{
    margin:12px 0 !important;
    padding:8px !important;
    border-radius:16px !important;
  }
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tab{
    min-height:36px !important;
    padding:0 11px !important;
    font-size:11.5px !important;
  }
}

/* =========================================================
   Activity Hub v3.2 — Achievement Cards & Weekly Highlights
   Safe visual layer for global activity only.
   ========================================================= */
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-highlights{
  direction:rtl !important;
  margin:16px 0 12px !important;
  padding:14px !important;
  border-radius:22px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(245,247,255,.95)) !important;
  box-shadow:0 14px 32px rgba(15,23,42,.07) !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:12px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-kicker{
  font-size:11px !important;
  font-weight:900 !important;
  color:#5373fd !important;
  margin-bottom:3px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-title{
  font-size:15px !important;
  font-weight:900 !important;
  color:#111827 !important;
  line-height:1.4 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-pill{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:28px !important;
  padding:0 11px !important;
  border-radius:999px !important;
  background:rgba(83,115,253,.10) !important;
  color:#2844c7 !important;
  font-size:11px !important;
  font-weight:900 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-cards{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card{
  appearance:none !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:#fff !important;
  border-radius:18px !important;
  min-height:88px !important;
  padding:12px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  text-align:right !important;
  cursor:pointer !important;
  transition:transform .12s ease,box-shadow .15s ease,border-color .15s ease !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(83,115,253,.18) !important;
  box-shadow:0 12px 24px rgba(15,23,42,.08) !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card:active{transform:scale(.99) !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-icon{
  width:38px !important;
  height:38px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 38px !important;
  background:rgba(83,115,253,.10) !important;
  color:#5373fd !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-icon::before{
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
  font-size:16px !important;
  line-height:1 !important;
  color:currentColor !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card--achievement .iqec-ah-v32-icon::before{content:"\f005" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card--progress .iqec-ah-v32-icon::before{content:"\f201" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card--help .iqec-ah-v32-icon::before{content:"\f059" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card--social .iqec-ah-v32-icon::before{content:"\f4ad" !important;}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-meta{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-num{
  font-size:20px !important;
  font-weight:900 !important;
  color:#111827 !important;
  line-height:1 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card-title{
  font-size:12px !important;
  font-weight:900 !important;
  color:#111827 !important;
  line-height:1.3 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-note{
  font-size:10.5px !important;
  font-weight:700 !important;
  color:#6b7280 !important;
  line-height:1.5 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-summary{
  margin-top:10px !important;
  padding:9px 12px !important;
  border-radius:14px !important;
  background:rgba(83,115,253,.07) !important;
  color:#4b5563 !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.6 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-summary strong{color:#2844c7 !important;}

body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tabs-scroll-hint{
  direction:rtl !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  margin:2px 4px 7px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
  background:rgba(17,24,39,.06) !important;
  color:#4b5563 !important;
  font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif !important;
  font-size:11px !important;
  font-weight:900 !important;
  transition:opacity .2s ease,transform .2s ease !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-tabs-scroll-hint.is-seen{
  opacity:0 !important;
  transform:translateY(-4px) !important;
  pointer-events:none !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-scroll-hand{
  width:22px !important;
  height:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#5373fd !important;
  animation:iqec_ah_scroll_nudge 1.4s ease-in-out infinite !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-scroll-hand::before{
  content:"\f07e" !important;
  font-family:"Font Awesome 5 Free","FontAwesome" !important;
  font-weight:900 !important;
  font-size:14px !important;
  line-height:1 !important;
  color:currentColor !important;
}
@keyframes iqec_ah_scroll_nudge{
  0%,100%{transform:translateX(0);} 50%{transform:translateX(-7px);}
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-activity-tabs-v31.iqec-ah-tabs-scrollable{
  box-shadow:inset 18px 0 18px rgba(255,255,255,.88), inset -18px 0 18px rgba(255,255,255,.88), 0 10px 24px rgba(15,23,42,.06) !important;
}
@media (max-width:900px){
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-cards{
    display:flex !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding-bottom:2px !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
  }
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card{
    min-width:210px !important;
    scroll-snap-align:start !important;
  }
}
@media (max-width:520px){
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-head{align-items:flex-start !important;}
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-pill{display:none !important;}
  body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card{min-width:190px !important;}
}

/* IQEC Activity Hub v3.4.1: admin announcements are a separate stream type, not achievements */
body.iqec-activity-feed-badges-enabled .activity-list li.iqec-ag-type-admin_announcement .activity-content::before,
body.iqec-activity-feed-badges-enabled #activity-stream li.iqec-ag-type-admin_announcement .activity-content::before,
body.iqec-activity-feed-badges-enabled #youzify li.iqec-ag-type-admin_announcement .activity-content::before{
  content:"إعلان الإدارة" !important;
  background:rgba(83,115,253,.12) !important;
  border-color:rgba(83,115,253,.22) !important;
  color:#3346c8 !important;
}
body.iqec-activity-guard-active:not(.iqec-yz-group-page):not(.iqec-yz-profile-page) .iqec-ah-v32-card--admin .iqec-ah-v32-icon::before{content:"\f0a1" !important;}
